diff --git a/main.js b/main.js index 7da1a0bdd..7aeb66b0c 100644 --- a/main.js +++ b/main.js @@ -1 +1 @@ -(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["main"],{96170:(ot,et,b)=>{ot=b.nmd(ot),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,ot.exports=(()=>(()=>{var d={4959:(t,A,C)=>{const U=C(1103),k={};for(const P of Object.keys(U))k[U[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,K=Math.min(I,z,G),at=Math.max(I,z,G),lt=at-K;let bt,Pt;at===K?bt=0:I===at?bt=(z-G)/lt:z===at?bt=2+(G-I)/lt:G===at&&(bt=4+(I-z)/lt),bt=Math.min(60*bt,360),bt<0&&(bt+=360);const Dt=(K+at)/2;return Pt=at===K?0:Dt<=.5?lt/(at+K):lt/(2-at-K),[bt,100*Pt,100*Dt]},D.rgb.hsv=function(P){let I,z,G,K,at;const lt=P[0]/255,bt=P[1]/255,Pt=P[2]/255,Dt=Math.max(lt,bt,Pt),zt=Dt-Math.min(lt,bt,Pt),Vt=function(nt){return(Dt-nt)/6/zt+.5};return 0===zt?(K=0,at=0):(at=zt/Dt,I=Vt(lt),z=Vt(bt),G=Vt(Pt),lt===Dt?K=G-z:bt===Dt?K=.3333333333333333+I-G:Pt===Dt&&(K=.6666666666666666+z-I),K<0?K+=1:K>1&&(K-=1)),[360*K,100*at,100*Dt]},D.rgb.hwb=function(P){const I=P[0],z=P[1];let G=P[2];const K=D.rgb.hsl(P)[0],at=1/255*Math.min(I,Math.min(z,G));return G=1-.00392156862745098*Math.max(I,Math.max(z,G)),[K,100*at,100*G]},D.rgb.cmyk=function(P){const I=P[0]/255,z=P[1]/255,G=P[2]/255,K=Math.min(1-I,1-z,1-G);return[100*((1-I-K)/(1-K)||0),100*((1-z-K)/(1-K)||0),100*((1-G-K)/(1-K)||0),100*K]},D.rgb.keyword=function(P){const I=k[P];if(I)return I;let z,G=1/0;for(const lt of Object.keys(U)){const Pt=((K=P)[0]-(at=U[lt])[0])**2+(K[1]-at[1])**2+(K[2]-at[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],K=I[2];return z/=95.047,G/=100,K/=108.883,z=z>.008856?z**.3333333333333333:7.787*z+.13793103448275862,G=G>.008856?G**.3333333333333333:7.787*G+.13793103448275862,K=K>.008856?K**.3333333333333333:7.787*K+.13793103448275862,[116*G-16,500*(z-G),200*(G-K)]},D.hsl.rgb=function(P){const I=P[0]/360,z=P[1]/100,G=P[2]/100;let K,at,lt;if(0===z)return lt=255*G,[lt,lt,lt];K=G<.5?G*(1+z):G+z-G*z;const bt=2*G-K,Pt=[0,0,0];for(let Dt=0;Dt<3;Dt++)at=I+.3333333333333333*-(Dt-1),at<0&&at++,at>1&&at--,lt=6*at<1?bt+6*(K-bt)*at:2*at<1?K:3*at<2?bt+(K-bt)*(.6666666666666666-at)*6:bt,Pt[Dt]=255*lt;return Pt},D.hsl.hsv=function(P){const I=P[0];let z=P[1]/100,G=P[2]/100,K=z;const at=Math.max(G,.01);return G*=2,z*=G<=1?G:2-G,K*=at<=1?at:2-at,[I,100*(0===G?2*K/(at+K):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 K=Math.floor(I)%6,at=I-Math.floor(I),lt=255*G*(1-z),bt=255*G*(1-z*at),Pt=255*G*(1-z*(1-at));switch(G*=255,K){case 0:return[G,Pt,lt];case 1:return[bt,G,lt];case 2:return[lt,G,Pt];case 3:return[lt,bt,G];case 4:return[Pt,lt,G];case 5:return[G,lt,bt]}},D.hsv.hsl=function(P){const I=P[0],z=P[1]/100,G=P[2]/100,K=Math.max(G,.01);let at,lt;lt=(2-z)*G;const bt=(2-z)*K;return at=z*K,at/=bt<=1?bt:2-bt,at=at||0,lt/=2,[I,100*at,100*lt]},D.hwb.rgb=function(P){const I=P[0]/360;let z=P[1]/100,G=P[2]/100;const K=z+G;let at;K>1&&(z/=K,G/=K);const lt=Math.floor(6*I),bt=1-G;at=6*I-lt,0!=(1<)&&(at=1-at);const Pt=z+at*(bt-z);let Dt,zt,Vt;switch(lt){default:case 6:case 0:Dt=bt,zt=Pt,Vt=z;break;case 1:Dt=Pt,zt=bt,Vt=z;break;case 2:Dt=z,zt=bt,Vt=Pt;break;case 3:Dt=z,zt=Pt,Vt=bt;break;case 4:Dt=Pt,zt=z,Vt=bt;break;case 5:Dt=bt,zt=z,Vt=Pt}return[255*Dt,255*zt,255*Vt]},D.cmyk.rgb=function(P){const z=P[1]/100,G=P[2]/100,K=P[3]/100;return[255*(1-Math.min(1,P[0]/100*(1-K)+K)),255*(1-Math.min(1,z*(1-K)+K)),255*(1-Math.min(1,G*(1-K)+K))]},D.xyz.rgb=function(P){const I=P[0]/100,z=P[1]/100,G=P[2]/100;let K,at,lt;return K=3.2406*I+-1.5372*z+-.4986*G,at=-.9689*I+1.8758*z+.0415*G,lt=.0557*I+-.204*z+1.057*G,K=K>.0031308?1.055*K**.4166666666666667-.055:12.92*K,at=at>.0031308?1.055*at**.4166666666666667-.055:12.92*at,lt=lt>.0031308?1.055*lt**.4166666666666667-.055:12.92*lt,K=Math.min(Math.max(0,K),1),at=Math.min(Math.max(0,at),1),lt=Math.min(Math.max(0,lt),1),[255*K,255*at,255*lt]},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 K=z**3,at=I**3,lt=G**3;return z=K>.008856?K:(z-.13793103448275862)/7.787,I=at>.008856?at:(I-.13793103448275862)/7.787,G=lt>.008856?lt:(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 K;return K=360*Math.atan2(G,z)/2/Math.PI,K<0&&(K+=360),[I,Math.sqrt(z*z+G*G),K]},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,K]=P;let at=null===I?D.rgb.hsv(P)[2]:I;if(at=Math.round(at/50),0===at)return 30;let lt=30+(Math.round(K/255)<<2|Math.round(G/255)<<1|Math.round(z/255));return 2===at&&(lt+=60),lt},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(K=>K+K).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,K=Math.max(Math.max(I,z),G),at=Math.min(Math.min(I,z),G),lt=K-at;let bt,Pt;return bt=lt<1?at/(1-lt):0,Pt=lt<=0?0:K===I?(z-G)/lt%6:K===z?2+(G-I)/lt:4+(I-z)/lt,Pt/=6,Pt%=1,[360*Pt,100*lt,100*bt]},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 K=0;return G<1&&(K=(z-.5*G)/(1-G)),[P[0],100*G,100*K]},D.hsv.hcg=function(P){const z=P[2]/100,G=P[1]/100*z;let K=0;return G<1&&(K=(z-G)/(1-G)),[P[0],100*G,100*K]},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 K=[0,0,0],at=P[0]/360%1*6,lt=at%1,bt=1-lt;let Pt=0;switch(Math.floor(at)){case 0:K[0]=1,K[1]=lt,K[2]=0;break;case 1:K[0]=bt,K[1]=1,K[2]=0;break;case 2:K[0]=0,K[1]=1,K[2]=lt;break;case 3:K[0]=0,K[1]=bt,K[2]=1;break;case 4:K[0]=lt,K[1]=0,K[2]=1;break;default:K[0]=1,K[1]=0,K[2]=bt}return Pt=(1-z)*G,[255*(z*K[0]+Pt),255*(z*K[1]+Pt),255*(z*K[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 K=0;return G<1&&(K=(z-G)/(1-G)),[P[0],100*G,100*K]},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,C)=>{const U=C(4959),k=C(9325),D={};Object.keys(U).forEach(P=>{D[P]={},Object.defineProperty(D[P],"channels",{value:U[P].channels}),Object.defineProperty(D[P],"labels",{value:U[P].labels});const I=k(P);Object.keys(I).forEach(z=>{const G=I[z];D[P][z]=function(K){const at=function(...lt){const bt=lt[0];if(null==bt)return bt;bt.length>1&&(lt=bt);const Pt=K(lt);if("object"==typeof Pt)for(let Dt=Pt.length,zt=0;zt1&&(lt=bt),K(lt))};return"conversion"in K&&(at.conversion=K.conversion),at}(G)})}),t.exports=D},9325:(t,A,C)=>{const U=C(4959);function D(I,z){return function(G){return z(I(G))}}function P(I,z){const G=[z[I].parent,I];let K=U[z[I].parent][I],at=z[I].parent;for(;z[at].parent;)G.unshift(z[at].parent),K=D(U[z[at].parent][at],K),at=z[at].parent;return K.conversion=G,K}t.exports=function(I){const z=function k(I){const z=function(){const K={},at=Object.keys(U);for(let lt=at.length,bt=0;bt{"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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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 C=[];return C.toString=function(){return this.map(function(U){var k=A(U);return U[2]?"@media ".concat(U[2]," {").concat(k,"}"):k}).join("")},C.i=function(U,k,D){"string"==typeof U&&(U=[[null,U,""]]);var P={};if(D)for(var I=0;I{"use strict";function C(U,k){(null==k||k>U.length)&&(k=U.length);for(var D=0,P=new Array(k);D{"use strict";var U,Vt,D=(Vt={},function(nt){if(void 0===Vt[nt]){var Tt=document.querySelector(nt);if(window.HTMLIFrameElement&&Tt instanceof window.HTMLIFrameElement)try{Tt=Tt.contentDocument.head}catch{Tt=null}Vt[nt]=Tt}return Vt[nt]}),P=[];function I(Vt){for(var nt=-1,Tt=0;Tt{var A=t&&t.__esModule?()=>t.default:()=>t;return v.d(A,{a:A}),A},v.d=(t,A)=>{for(var C in A)v.o(A,C)&&!v.o(t,C)&&Object.defineProperty(t,C,{enumerable:!0,get:A[C]})},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",(_,x)=>{if(!r())return;const M="function"==typeof x.composedPath?x.composedPath():[],E="function"==typeof u?u():u;for(const F of E)if(F.contains(x.target)||M.includes(F))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 C({view:m}){m.listenTo(m.element,"submit",(r,c)=>{c.preventDefault(),m.fire("submit")},{useCapture:!0})}v.d(T,{default:()=>m7});const U=function(){try{return navigator.userAgent.toLowerCase()}catch{return""}}(),D_isMac=P(U),D_isGecko=(U.indexOf("windows"),!!U.match(/gecko\/\d+/)),D_isSafari=(m=U).indexOf(" applewebkit/")>-1&&-1===m.indexOf("chrome"),D_isiOS=function(m){return!!m.match(/iphone|ipad/i)||P(m)&&navigator.maxTouchPoints>0}(U),D_isAndroid=function(m){return m.indexOf("android")>-1}(U),D_isBlink=function(m){return m.indexOf("chrome/")>-1&&m.indexOf("edge/")<0}(U);var m;function P(m){return m.indexOf("macintosh")>-1}function I(m,r,c,u){c=c||function(F,V){return F===V};const _=Array.isArray(m)?m:Array.prototype.slice.call(m),x=Array.isArray(r)?r:Array.prototype.slice.call(r),M=function(F,V,W){const dt=z(F,V,W);if(-1===dt)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const Ae=z(G(F,dt),G(V,dt),W);return{firstIndex:dt,lastIndexOld:F.length-Ae,lastIndexNew:V.length-Ae}}(_,x,c);return u?function(F,V){const{firstIndex:W,lastIndexOld:dt,lastIndexNew:Zt}=F;if(-1===W)return Array(V).fill("equal");let ue=[];return W>0&&(ue=ue.concat(Array(W).fill("equal"))),Zt-W>0&&(ue=ue.concat(Array(Zt-W).fill("insert"))),dt-W>0&&(ue=ue.concat(Array(dt-W).fill("delete"))),Zt0&&W.push({index:dt,type:"insert",values:F.slice(dt,ue)}),Zt-dt>0&&W.push({index:dt+(ue-dt),type:"delete",howMany:Zt-dt}),W}(x,M)}function z(m,r,c){for(let u=0;u200||_>200||u+_>300)return K.fastDiff(m,r,c,!0);let x,M;if(_Dn?-1:1;W[Ie+di]&&(W[Ie]=W[Ie+di].slice(0)),W[Ie]||(W[Ie]=[]),W[Ie].push(ln>Dn?x:M);let Ri=Math.max(ln,Dn),Go=Ri-Ie;for(;GoV;ue--)dt[ue]=Zt(ue);dt[V]=Zt(V),Ae++}while(dt[V]!==F);return W[V].slice(1)}!function(){let m=!1;try{m=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch{}}(),K.fastDiff=I;class lt{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 bt=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"+bt[m>>0&255]+bt[m>>8&255]+bt[m>>16&255]+bt[m>>24&255]+bt[r>>0&255]+bt[r>>8&255]+bt[r>>16&255]+bt[r>>24&255]+bt[c>>0&255]+bt[c>>8&255]+bt[c>>16&255]+bt[c>>24&255]+bt[u>>0&255]+bt[u>>8&255]+bt[u>>16&255]+bt[u>>24&255]}const Dt={get(m="normal"){return"number"!=typeof m?this[m]||this.normal:m},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function zt(m,r){const c=Dt.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})}`:"")+ft(_)}(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 nt(r.message,c);throw u.stack=r.stack,u}}function Tt(m,r){console.warn(...Et(m,r))}function At(m,r){console.error(...Et(m,r))}function ft(m){return`\nRead more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${m}`}function Et(m,r){const c=ft(m);return r?[m,r,c]:[m,c]}const It=new Date(2023,9,4);if(globalThis.CKEDITOR_VERSION)throw new nt("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION="40.0.0";const se=Symbol("listeningTo"),Jt=Symbol("emitterId"),ve=Symbol("delegations"),xe=Oe(Object);function Oe(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,(x,...M)=>{_||(_=!0,x.off(),c.call(this,x,...M))},u)}off(r,c){this.stopListening(this,r,c)}listenTo(r,c,u,_={}){let x,M;this[se]||(this[se]={});const E=this[se];$e(r)||qe(r);const F=$e(r);var W,dt,Zt,ue;(x=E[F])||(x=E[F]={emitter:r,callbacks:{}}),(M=x.callbacks[c])||(M=x.callbacks[c]=[]),M.push(u),dt=c,Zt=u,ue=_,(W=r)._addEventListener?W._addEventListener(dt,Zt,ue):this._addEventListener.call(W,dt,Zt,ue)}stopListening(r,c,u){const _=this[se];let x=r&&$e(r);const M=_&&x?_[x]:void 0,E=M&&c?M.callbacks[c]:void 0;if(!(!_||r&&!M||c&&!E))if(u)de(this,r,c,u),-1!==E.indexOf(u)&&(1===E.length?delete M.callbacks[c]:de(this,r,c,u));else if(E){for(;u=E.pop();)de(this,r,c,u);delete M.callbacks[c]}else if(M){for(c in M.callbacks)this.stopListening(r,c);delete _[x]}else{for(x in _)this.stopListening(_[x].emitter);delete this[se]}}fire(r,...c){try{const u=r instanceof lt?r:new lt(this,r),_=u.name;let x=ae(this,_);if(u.path.push(this),x){const E=[u,...c];x=Array.from(x);for(let F=0;F{this[ve]||(this[ve]=new Map),r.forEach(_=>{const x=this[ve].get(_);x?x.set(c,u):this[ve].set(_,new Map([[c,u]]))})}}}stopDelegating(r,c){if(this[ve])if(r)if(c){const u=this[ve].get(r);u&&u.delete(c)}else this[ve].delete(r);else this[ve].clear()}_addEventListener(r,c,u){!function(M,E){const F=Xt(M);if(F[E])return;let V=E,W=null;const dt=[];for(;""!==V&&!F[V];)F[V]={callbacks:[],childEvents:[]},dt.push(F[V]),W&&F[V].childEvents.push(W),W=V,V=V.substr(0,V.lastIndexOf(":"));if(""!==V){for(const Zt of dt)Zt.callbacks=F[V].callbacks.slice();F[V].childEvents.push(W)}}(this,r);const _=we(this,r),x={callback:c,priority:Dt.get(u.priority)};for(const M of _)zt(M,x)}_removeEventListener(r,c){const u=we(this,r);for(const _ of u)for(let x=0;x<_.length;x++)_[x].callback==c&&(_.splice(x,1),x--)}}:xe}function qe(m,r){m[Jt]||(m[Jt]=r||Pt())}function $e(m){return m[Jt]}function Xt(m){return m._events||Object.defineProperty(m,"_events",{value:{}}),m._events}function we(m,r){const c=Xt(m)[r];if(!c)return[];let u=[c.callbacks];for(let _=0;_-1?ae(m,r.substr(0,r.lastIndexOf(":"))):null}function Kt(m,r,c){for(let[u,_]of m){_?"function"==typeof _&&(_=_(r.name)):_=r.name;const x=new lt(r.source,_);x.path=[...r.path],u.fire(x,...c)}}function de(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=>{Oe[m]=xe.prototype[m]});const Wt=function(m){var r=typeof m;return null!=m&&("object"==r||"function"==r)},re=Symbol("observableProperties"),Pe=Symbol("boundObservables"),on=Symbol("boundProperties"),_n=Symbol("decoratedMethods"),ye=Symbol("decoratedOriginal"),gn=Ue(Oe());function Ue(m){return m?class extends m{set(r,c){if(Wt(r))return void Object.keys(r).forEach(_=>{this.set(_,r[_])},this);un(this);const u=this[re];if(r in this&&!u.has(r))throw new nt("observable-set-cannot-override",this);Object.defineProperty(this,r,{enumerable:!0,configurable:!0,get:()=>u.get(r),set(_){const x=u.get(r);let M=this.fire(`set:${r}`,r,_,x);void 0===M&&(M=_),x===M&&u.has(r)||(u.set(r,M),this.fire(`change:${r}`,r,M,x))}}),this[r]=c}bind(...r){if(!r.length||!bi(r))throw new nt("observable-bind-wrong-properties",this);if(new Set(r).size!==r.length)throw new nt("observable-bind-duplicate-properties",this);un(this);const c=this[on];r.forEach(_=>{if(c.has(_))throw new nt("observable-bind-rebind",this)});const u=new Map;return r.forEach(_=>{const x={property:_,to:[]};c.set(_,x),u.set(_,x)}),{to:Mn,toMany:oi,_observable:this,_bindProperties:r,_to:[],_bindings:u}}unbind(...r){if(!this[re])return;const c=this[on],u=this[Pe];if(r.length){if(!bi(r))throw new nt("observable-unbind-wrong-properties",this);r.forEach(_=>{const x=c.get(_);x&&(x.to.forEach(([M,E])=>{const F=u.get(M),V=F[E];V.delete(x),V.size||delete F[E],Object.keys(F).length||(u.delete(M),this.stopListening(M,"change"))}),c.delete(_))})}else u.forEach((_,x)=>{this.stopListening(x,"change")}),u.clear(),c.clear()}decorate(r){un(this);const c=this[r];if(!c)throw new nt("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][ye]=c,this[_n]||(this[_n]=[]),this[_n].push(r)}stopListening(r,c,u){if(!r&&this[_n]){for(const _ of this[_n])this[_]=this[_][ye];delete this[_n]}super.stopListening(r,c,u)}}:gn}function un(m){m[re]||(Object.defineProperty(m,re,{value:new Map}),Object.defineProperty(m,Pe,{value:new Map}),Object.defineProperty(m,on,{value:new Map}))}function Mn(...m){const r=function(...x){if(!x.length)throw new nt("observable-bind-to-parse-error",null);const M={to:[]};let E;return"function"==typeof x[x.length-1]&&(M.callback=x.pop()),x.forEach(F=>{if("string"==typeof F)E.properties.push(F);else{if("object"!=typeof F)throw new nt("observable-bind-to-parse-error",null);E={observable:F,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 nt("observable-bind-to-no-callback",this);if(u>1&&r.callback)throw new nt("observable-bind-to-extra-callback",this);var _;r.to.forEach(x=>{if(x.properties.length&&x.properties.length!==u)throw new nt("observable-bind-to-properties-length",this);x.properties.length||(x.properties=this._bindProperties)}),this._to=r.to,r.callback&&(this._bindings.get(c[0]).callback=r.callback),_=this._observable,this._to.forEach(x=>{const M=_[Pe];let E;M.get(x.observable)||_.listenTo(x.observable,"change",(F,V)=>{E=M.get(x.observable)[V],E&&E.forEach(W=>{ri(_,W.property)})})}),function(x){let M;x._bindings.forEach((E,F)=>{x._to.forEach(V=>{M=V.properties[E.callback?0:x._bindProperties.indexOf(F)],E.to.push([V.observable,M]),function(W,dt,Zt,ue){const Ae=W[Pe],Ie=Ae.get(Zt),ln=Ie||{};ln[ue]||(ln[ue]=new Set),ln[ue].add(dt),Ie||Ae.set(Zt,ln)}(x._observable,E,V.observable,M)})})}(this),this._bindProperties.forEach(x=>{ri(this._observable,x)})}function oi(m,r,c){if(this._bindings.size>1)throw new nt("observable-bind-to-many-not-one-binding",this);this.to(...function(u,_){const x=u.map(M=>[M,_]);return Array.prototype.concat.apply([],x)}(m,r),c)}function bi(m){return m.every(r=>"string"==typeof r)}function ri(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=>{Ue[m]=gn.prototype[m]});class Ke{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 ne(m){let r=0;for(const c of m)r++;return r}function ct(m,r){const c=Math.min(m.length,r.length);for(let u=0;u-1},mn.prototype.set=function(m,r){var c=this.__data__,u=he(c,m);return u<0?(++this.size,c.push([m,r])):c[u][1]=r,this};const An=mn,Fo=function(m){if(!Wt(m))return!1;var r=jn(m);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},ca=oe["__core-js_shared__"];var Ia=function(){var m=/[^.]+$/.exec(ca&&ca.keys&&ca.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),Ge=Function.prototype.toString;const In=function(m){if(null!=m){try{return Ge.call(m)}catch{}try{return m+""}catch{}}return""};var He=/^\[object .+?Constructor\]$/,Q=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Rn=function(m,r){var c=function(m,r){return m?.[r]}(m,r);return function(m){return!(!Wt(m)||function(m){return!!Ia&&Ia in m}(m))&&(Fo(m)?Q:He).test(In(m))}(c)?c:void 0},Gi=Rn(oe,"Map"),Co=Rn(Object,"create");var ls=Object.prototype.hasOwnProperty,Er=Object.prototype.hasOwnProperty;function Br(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=et&&!et.nodeType&&et,Yl=qu&&ot&&!ot.nodeType&&ot,xc=Yl&&Yl.exports===qu&&kt.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 fn(m)&&zl(m.length)&&!!qo[jn(m)]};var bu=Object.prototype.hasOwnProperty;const Dr=function(m,r){var c=Ye(m),u=!c&&Rl(m),_=!c&&!u&&ks(m),x=!c&&!u&&!_&&Jc(m),M=c||u||_||x,E=M?function(m,r){for(var c=-1,u=Array(m);++c{this._setToTarget(r,_,c[_],u)})}}function hn(m){return So(m,Ve)}function Ve(m){return la(m)?m:void 0}function ge(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(Oe());function Xi(m){return m?class extends m{listenTo(r,c,u,_={}){if(ge(r)||Au(r)){const x={capture:!!_.useCapture,passive:!!_.usePassive},M=this._getProxyEmitter(r,x)||new fd(r,x);this.listenTo(M,c,u,_)}else super.listenTo(r,c,u,_)}stopListening(r,c,u){if(ge(r)||Au(r)){const _=this._getAllProxyEmitters(r);for(const x of _)this.stopListening(x,c,u)}else super.stopListening(r,c,u)}_getProxyEmitter(r,c){return function(u,_){const x=u[se];return x&&x[_]?x[_].emitter:null}(this,ts(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(Oe()){constructor(r,c){super(),qe(this,ts(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),Oe().prototype._addEventListener.call(this,r,c,u)}_removeEventListener(r,c){Oe().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 ts(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 Mt=zu;function me(m){return"[object Text]"==Object.prototype.toString.call(m)}function jt(m){return"[object Range]"==Object.prototype.toString.apply(m)}function Qe(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 On(m){return m&&m.parentNode?m.offsetParent===Mt.document.body?null:m.offsetParent:null}const Nt=["top","right","bottom","left","width","height"];class ce{constructor(r){const c=jt(r);if(Object.defineProperty(this,"_source",{value:r._source||r,writable:!0,enumerable:!1}),vn(r)||c)if(c){const u=ce.getDomRangeRects(r);Me(this,ce.getBoundingRect(u))}else Me(this,r.getBoundingClientRect());else if(Au(r)){const{innerWidth:u,innerHeight:_}=r;Me(this,{top:0,right:u,bottom:_,left:0,width:u,height:_})}else Me(this,r)}clone(){return new ce(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 ce(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(tn(r))return c;let u,_=r,x=r.parentNode||r.commonAncestorContainer;for(;x&&!tn(x);){const E="visible"===((M=x)instanceof HTMLElement?M.ownerDocument.defaultView.getComputedStyle(M).overflow:"visible");_ instanceof HTMLElement&&"absolute"===Gn(_)&&(u=_);const F=Gn(x);if(E||u&&("relative"===F&&E||"relative"!==F)){_=x,x=x.parentNode;continue}const V=new ce(x),W=c.getIntersection(V);if(!W)return null;W.getArea(){for(const r of m){const c=Qn._getElementCallbacks(r.target);if(c)for(const u of c)u(r)}})}};let yi=Qn;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 es({element:m,target:r,positions:c,limiter:u,fitInViewport:_,viewportOffsetConfig:x}){Fo(r)&&(r=r()),Fo(u)&&(u=u());const M=On(m),E=function(Zt){Zt=Object.assign({top:0,bottom:0,left:0,right:0},Zt);const ue=new ce(Mt.window);return ue.top+=Zt.top,ue.height-=Zt.top,ue.bottom-=Zt.bottom,ue.height-=Zt.bottom,ue}(x),F=new ce(m),V=Hs(r,E);let W;if(!V||!E.getIntersection(V))return null;const dt={targetRect:V,elementRect:F,positionedElementAncestor:M,viewportRect:E};if(u||_){if(u){const Zt=Hs(u,E);Zt&&(dt.limiterRect=Zt)}W=function(Zt,ue){const{elementRect:Ae}=ue,Ie=Ae.getArea(),ln=Zt.map(Ri=>new ns(Ri,ue)).filter(Ri=>!!Ri.name);let Dn=0,di=null;for(const Ri of ln){const{limiterIntersectionArea:Go,viewportIntersectionArea:Da}=Ri;if(Go===Ie)return Ri;const ws=fa(Da,2)+fa(Go,2);ws>Dn&&(Dn=ws,di=Ri)}return di}(c,dt)}else W=new ns(c[0],dt);return W}function Hs(m,r){const c=new ce(m).getVisible();return c?c.getIntersection(r):null}class ns{constructor(r,c){const u=r(c.targetRect,c.elementRect,c.viewportRect,c.limiterRect);if(!u)return;const{left:_,top:x,name:M,config:E}=u;this.name=M,this.config=E,this._positioningFunctionCoordinates={left:_,top:x},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 is(m){const r=m.parentNode;r&&r.removeChild(m)}function ds({window:m,rect:r,alignToTop:c,forceScroll:u,viewportOffset:_}){const x=r.clone().moveBy(0,_.bottom),M=r.clone().moveBy(0,-_.top),E=new ce(m).excludeScrollbarsAndBorders(),F=c&&u,V=[M,x].every(Ae=>E.contains(Ae));let{scrollX:W,scrollY:dt}=m;const Zt=W,ue=dt;F?dt-=E.top-r.top+_.top:V||(Nc(M,E)?dt-=E.top-r.top+_.top:Xs(x,E)&&(dt+=c?r.top-E.top-_.top:r.bottom-E.bottom+_.bottom)),V||(os(r,E)?W-=E.left-r.left+_.left:Rd(r,E)&&(W+=r.right-E.right+_.right)),W==Zt&&dt===ue||m.scrollTo(W,dt)}function Hr({parent:m,getRect:r,alignToTop:c,forceScroll:u,ancestorOffset:_=0,limiterElement:x}){const M=cr(m),E=c&&u;let F,V,W;const dt=x||M.document.body;for(;m!=dt;)V=r(),F=new ce(m).excludeScrollbarsAndBorders(),W=F.contains(V),E?m.scrollTop-=F.top-V.top+_:W||(Nc(V,F)?m.scrollTop-=F.top-V.top+_:Xs(V,F)&&(m.scrollTop+=c?V.top-F.top-_:V.bottom-F.bottom+_)),W||(os(V,F)?m.scrollLeft-=F.left-V.left+_:Rd(V,F)&&(m.scrollLeft+=V.right-F.right+_)),m=m.parentNode}function Xs(m,r){return m.bottom>r.bottom}function Nc(m,r){return m.topr.right}function cr(m){return jt(m)?m.startContainer.ownerDocument.defaultView:m.ownerDocument.defaultView}function lr(m){if(jt(m)){let r=m.commonAncestorContainer;return me(r)&&(r=r.parentNode),r}return m.parentNode}function As(m,r){const c=cr(m),u=new ce(m);if(c===r)return u;{let _=c;for(;_!=r;){const M=new ce(_.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 nt("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]}Mt.window.CKEDITOR_TRANSLATIONS||(Mt.window.CKEDITOR_TRANSLATIONS={});const jl=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function Yu(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=Yu(this.uiLanguage),this.contentLanguageDirection=Yu(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 nt("translation-service-quantity-not-a-number",null,{quantity:c});const u=Object.keys(Mt.window.CKEDITOR_TRANSLATIONS).length;1===u&&(m=Object.keys(Mt.window.CKEDITOR_TRANSLATIONS)[0]);const _=r.id||r.string;if(0===u||(!Mt.window.CKEDITOR_TRANSLATIONS[F=m]||!Mt.window.CKEDITOR_TRANSLATIONS[F].dictionary[_]))return 1!==c?r.plural:r.string;var F;const M=Mt.window.CKEDITOR_TRANSLATIONS[m].getPluralForm||(F=>1===F?0:1),E=Mt.window.CKEDITOR_TRANSLATIONS[m].dictionary[_];return"string"==typeof E?E:E[Number(M(c))]}(this.uiLanguage,r,r.plural?c[0]:1),x=c,_.replace(/%(\d+)/g,(M,E)=>Ethis._items.length||c<0)throw new nt("collection-add-item-invalid-index",this);let u=0;for(const _ of r){const x=this._getItemIdBeforeAdding(_),M=c+u;this._items.splice(M,0,_),this._itemMap.set(x,_),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 nt("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 nt("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=(_,x,M)=>{const E=c._bindToCollection==this,F=c._bindToInternalToExternalMap.get(x);if(E&&F)this._bindToExternalToInternalMap.set(x,F),this._bindToInternalToExternalMap.set(F,x);else{const V=r(x);if(!V)return void this._skippedIndexesFromExternal.push(M);let W=M;for(const dt of this._skippedIndexesFromExternal)M>dt&&W--;for(const dt of c._skippedIndexesFromExternal)W>=dt&&W++;this._bindToExternalToInternalMap.set(x,V),this._bindToInternalToExternalMap.set(V,x),this.add(V,W);for(let dt=0;dt{const E=this._bindToExternalToInternalMap.get(x);E&&this.remove(E),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((F,V)=>(MV&&F.push(V),F),[])})}_getItemIdBeforeAdding(r){const c=this._idProperty;let u;if(c in r){if(u=r[c],"string"!=typeof u)throw new nt("collection-add-invalid-id",this);if(this.get(u))throw new nt("collection-add-item-already-exists",this)}else r[c]=u=Pt();return u}_remove(r){let c,u,_,x=!1;const M=this._idProperty;if("string"==typeof r?(u=r,_=this._itemMap.get(u),x=!_,_&&(c=this._items.indexOf(_))):"number"==typeof r?(c=r,_=this._items[c],x=!_,_&&(u=_[M])):(_=r,u=_[M],c=this._items.indexOf(_),x=-1==c||!this._itemMap.get(u)),x)throw new nt("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 as(m){const r=m.next();return r.done?null:r.value}class rs extends(Xi(Ue())){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 nt("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 it(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 cn(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 nt("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 x of r)_.delegate(x).to(c)}),this.on("remove",(u,_)=>{for(const x of r)_.stopDelegating(x,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),No=v.n(E1),gd=v(4793);No()(gd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class oa extends(Xi(Ue())){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 Na(r);return this._viewCollections.add(c),c}registerChild(r){it(r)||(r=[r]);for(const c of r)this._unboundChildren.add(c)}deregisterChild(r){it(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 nt("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(Oe()){constructor(r){super(),Object.assign(this,Oa(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 nt("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)ie(u)?yield u:De(u)&&(yield*r(u))}(this)}static bind(r,c){return{to:(u,_)=>new wo({eventNameOrFunction:u,attribute:u,observable:r,emitter:c,callback:_}),if:(u,_,x)=>new v_({observable:r,emitter:c,attribute:u,valueIfTrue:_,callback:x})}}static extend(r,c){if(r._isRendered)throw new nt("template-extend-render",[this,r]);pt(r,Oa(zd(c)))}_renderNode(r){let c;if(c=r.node?this.tag&&this.text:this.tag?this.text:!this.text,c)throw new nt("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(""),B(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 x=c.getAttribute(_),M=this.attributes[_];u&&(u.attributes[_]=x);const E=Nn(M)?M[0].ns:null;if(B(M)){const F=Nn(M)?M[0].value:M;u&&Ii(_)&&F.unshift(x),this._bindToObservable({schema:F,updater:x_(c,_,E),data:r})}else if("style"==_&&"string"!=typeof M[0])this._renderStyleAttribute(M[0],r);else{u&&x&&Ii(_)&&M.unshift(x);const F=M.map(V=>V&&V.value||V).reduce((V,W)=>V.concat(W),[]).reduce(vt,"");Yt(F)||c.setAttributeNS(E,_,F)}}}_renderStyleAttribute(r,c){const u=c.node;for(const _ in r){const x=r[_];B(x)?this._bindToObservable({schema:[x],updater:pp(u,_),data:c}):u.style[_]=x}}_renderElementChildren(r){const c=r.node,u=r.intoFragment?document.createDocumentFragment():c,_=r.isApplying;let x=0;for(const M of this.children)if(Un(M)){if(!_){M.setParent(c);for(const E of M)u.appendChild(E.element)}}else if(ie(M))_||(M.isRendered||M.render(),u.appendChild(M.element));else if(ge(M))u.appendChild(M);else if(_){const E={children:[],bindings:[],attributes:{}};r.revertData.children.push(E),M._renderNode({intoFragment:!1,node:u.childNodes[x++],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[x,M]=c.split("@");return _.activateDomEventListener(x,M,r)});r.revertData&&r.revertData.bindings.push(u)}}_bindToObservable({schema:r,updater:c,data:u}){const _=u.revertData;Jo(r,c,u);const x=r.filter(M=>!Yt(M)).filter(M=>M.observable).map(M=>M.activateAttributeListener(r,c,u));_&&_.bindings.push(x)}_revertTemplateFromNode(r,c){for(const _ of c.bindings)for(const x of _)x();if(c.text)return void(r.textContent=c.text);const u=r;for(const _ in c.attributes){const x=c.attributes[_];null===x?u.removeAttribute(_):u.setAttribute(_,x)}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 wo extends Bu{constructor(r){super(r),this.eventNameOrFunction=r.eventNameOrFunction}activateDomEventListener(r,c,u){const _=(x,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 Bu{constructor(r){super(r),this.valueIfTrue=r.valueIfTrue}getValue(r){return!Yt(super.getValue(r))&&(this.valueIfTrue||!0)}}function B(m){return!!m&&(m.value&&(m=m.value),Array.isArray(m)?m.some(B):m instanceof Bu)}function Jo(m,r,{node:c}){const u=(M=c,m.map(E=>E instanceof Bu?E.getValue(M):E));var M;let _;_=1==m.length&&m[0]instanceof v_?u[0]:u.reduce(vt,""),Yt(_)?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 pp(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 Bu||De(r)||ie(r)||Un(r)))return r})}function Oa(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(Un(m.children))r.push(m.children);else for(const c of m.children)De(c)||ie(c)||ge(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 vt(m,r){return Yt(r)?m:Yt(m)?r:`${m} ${r}`}function yt(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={}),yt(m.attributes,r.attributes)),r.eventListeners&&(m.eventListeners||(m.eventListeners={}),yt(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 nt("ui-template-extend-children-mismatch",m);let c=0;for(const u of r.children)pt(m.children[c++],u)}}function Yt(m){return!m&&0!==m}function ie(m){return m instanceof oa}function De(m){return m instanceof Ur}function Un(m){return m instanceof Na}function Nn(m){return Wt(m[0])&&m[0].ns}function Ii(m){return"class"==m||"style"==m}class Qi extends Na{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=We(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);No()(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);No()(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 x={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)),x.on.mousedown=u.to(()=>{this._focusDelayed()}),x.on.mouseup=u.to(()=>{this._focusDelayed.cancel()})),this.setTemplate(x)}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 Zn=v(5332);No()(Zn.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class ys 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);No()(ha.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),v(1103),v(841);var vd=v(3662);No()(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);No()(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 x=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",x.to("class"),x.if("isEnabled","ck-disabled",M=>!M),x.if("isEmpty","ck-labeled-field-view_empty"),x.if("isFocused","ck-labeled-field-view_focused"),x.if("placeholder","ck-labeled-field-view_placeholder"),x.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 rs,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 mp=v(4879);No()(mp.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 vg extends Gp{constructor(r){super(r),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var I1=v(8182);No()(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():Tt("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);No()(nc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const N1=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 rs,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 _=N1._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:x,southMiddleEast:M,southMiddleWest:E,northMiddleEast:F,northMiddleWest:V}=N1.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[c,u,M,E,m,_,x,F,V,r]:[u,c,E,M,m,x,_,V,F,r]}};let Uu=N1;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=es;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 ul extends(Oe()){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(_,(x,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 x=this.focusables.get(_);if(Im(x))return x;_=(_+u+r)%u}while(_!==c);return null}}function Im(m){return!(!("focus"in m)||!ra(m.element))}class dl extends oa{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class Z2 extends oa{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function _p(m){return Array.isArray(m)?{items:m,removeItems:[]}:m?Object.assign({items:[],removeItems:[]},m):{items:[],removeItems:[]}}class lo extends(Ue()){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",fp,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",fp),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function fp(m){m.return=!1,m.stop()}class Za extends(Ue()){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",F1,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",F1),this.refresh())}execute(...r){}destroy(){this.stopListening()}}function F1(m){m.return=!1,m.stop()}class Qp extends Za{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...r){const c=this._getFirstEnabledCommand();return!!c&&c.execute(r)}registerChildCommand(r,c={}){zt(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 Ef extends(Oe()){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[_,x]of u)this._contextPlugins.set(_,x),this._contextPlugins.set(x,_),_.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 nt("plugincollection-plugin-not-loaded",this._context,{plugin:u})}return c}has(r){return this._plugins.has(r)}init(r,c=[],u=[]){const _=this,x=this._context;(function Ae(Ie,ln=new Set){Ie.forEach(Dn=>{F(Dn)&&(ln.has(Dn)||(ln.add(Dn),Dn.pluginName&&!_._availablePlugins.has(Dn.pluginName)&&_._availablePlugins.set(Dn.pluginName,Dn),Dn.requires&&Ae(Dn.requires,ln)))})})(r),Zt(r);const M=[...function Ae(Ie,ln=new Set){return Ie.map(Dn=>F(Dn)?Dn:_._availablePlugins.get(Dn)).reduce((Dn,di)=>ln.has(di)?Dn:(ln.add(di),di.requires&&(Zt(di.requires,di),Ae(di.requires,ln).forEach(Ri=>Dn.add(Ri))),Dn.add(di)),new Set)}(r.filter(Ae=>!W(Ae,c)))];!function(Ae,Ie){for(const ln of Ie){if("function"!=typeof ln)throw new nt("plugincollection-replace-plugin-invalid-type",null,{pluginItem:ln});const Dn=ln.pluginName;if(!Dn)throw new nt("plugincollection-replace-plugin-missing-name",null,{pluginItem:ln});if(ln.requires&&ln.requires.length)throw new nt("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:Dn});const di=_._availablePlugins.get(Dn);if(!di)throw new nt("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:Dn});const Ri=Ae.indexOf(di);if(-1===Ri){if(_._contextPlugins.has(di))return;throw new nt("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:Dn})}if(di.requires&&di.requires.length)throw new nt("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:Dn});Ae.splice(Ri,1,ln),_._availablePlugins.set(Dn,ln)}}(M,u);const E=M.map(Ae=>{let Ie=_._contextPlugins.get(Ae);return Ie=Ie||new Ae(x),_._add(Ae,Ie),Ie});return ue(E,"init").then(()=>ue(E,"afterInit")).then(()=>E);function F(Ae){return"function"==typeof Ae}function V(Ae){return F(Ae)&&!!Ae.isContextPlugin}function W(Ae,Ie){return Ie.some(ln=>ln===Ae||dt(Ae)===ln||dt(ln)===Ae)}function dt(Ae){return F(Ae)?Ae.pluginName||Ae.name:Ae}function Zt(Ae,Ie=null){Ae.map(ln=>F(ln)?ln:_._availablePlugins.get(ln)||ln).forEach(ln=>{(function(Dn,di){if(!F(Dn))throw di?new nt("plugincollection-soft-required",x,{missingPlugin:Dn,requiredBy:dt(di)}):new nt("plugincollection-plugin-not-found",x,{plugin:Dn})})(ln,Ie),function(Dn,di){if(V(di)&&!V(Dn))throw new nt("plugincollection-context-required",x,{plugin:dt(Dn),requiredBy:dt(di)})}(ln,Ie),function(Dn,di){if(di&&W(Dn,c))throw new nt("plugincollection-required",x,{plugin:dt(Dn),requiredBy:dt(di)})}(ln,Ie)})}function ue(Ae,Ie){return Ae.reduce((ln,Dn)=>Dn[Ie]?_._contextPlugins.has(Dn)?ln:ln.then(Dn[Ie].bind(Dn)):ln,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 nt("plugincollection-plugin-name-conflict",null,{pluginName:u,plugin1:this._plugins.get(u).constructor,plugin2:r});this._plugins.set(u,c)}}}class M2{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 Ef(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 nt("context-initplugins-constructor-only",null,{Plugin:u});if(!0!==u.isContextPlugin)throw new nt("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 nt("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(Ue()){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=(x,M)=>{this.editor.execute(_),M()}}super.set(r,c,u)}}var hp=v(4717);No()(hp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Z=new WeakMap;let Ct=!1;function Y({view:m,element:r,text:c,isDirectHost:u=!0,keepOnFocus:_=!1}){const x=m.document;function M(E){Z.get(x).set(r,{text:E,isDirectHost:u,keepOnFocus:_,hostElement:u?r:null}),m.change(F=>$t(x,F))}Z.has(x)||(Z.set(x,new Map),x.registerPostFixer(E=>$t(x,E)),x.on("change:isComposing",()=>{m.change(E=>$t(x,E))},{priority:"high"})),r.is("editableElement")&&r.on("change:placeholder",(E,F,V)=>{M(V)}),r.placeholder?M(r.placeholder):c&&M(c),c&&(Ct||Tt("enableplaceholder-deprecated-text-option"),Ct=!0)}function $t(m,r){const c=Z.get(m),u=[];let _=!1;for(const[x,M]of c)M.isDirectHost&&(u.push(x),fe(r,x,M)&&(_=!0));for(const[x,M]of c){if(M.isDirectHost)continue;const E=nn(x);E&&(u.includes(E)||(M.hostElement=E,fe(r,x,M)&&(_=!0)))}return _}function fe(m,r,c){const{text:u,isDirectHost:_,hostElement:x}=c;let M=!1;return x.getAttribute("data-placeholder")!==u&&(m.setAttribute("data-placeholder",u,x),M=!0),(_||1==r.childCount)&&function(E,F){if(!E.isAttached()||Array.from(E.getChildren()).some(dt=>!dt.is("uiElement")))return!1;const V=E.document,W=V.selection.anchor;return!(V.isComposing&&W&&W.parent===E||!F&&V.isFocused&&(!W||W.parent===E))}(x,c.keepOnFocus)?(E=m,!(F=x).hasClass("ck-placeholder")&&(E.addClass("ck-placeholder",F),!0)&&(M=!0)):function ht(m,r){return!!r.hasClass("ck-placeholder")&&(m.removeClass("ck-placeholder",r),!0)}(m,x)&&(M=!0),M;var E,F}function nn(m){if(m.childCount){const r=m.getChild(0);if(r.is("element")&&!r.is("uiElement")&&!r.is("attributeElement"))return r}return null}class ni{is(){throw new Error("is() method is abstract")}}const Mi=function(m){return Pi(m,4)};class Ro extends(Oe(ni)){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 nt("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 x=0;for(;u[x]==_[x]&&u[x];)x++;return 0===x?null:u[x-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const c=this.getPath(),u=r.getPath(),_=ct(c,u);switch(_){case"prefix":return!0;case"extension":return!1;default:return c[_]r.data.length)throw new nt("view-textproxy-wrong-offsetintext",this);if(u<0||c+u>r.data.length)throw new nt("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 ps{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 _=Bd(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 x=Bd(u,_);x&&c.push({element:u,pattern:_,match:x})}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 Bd(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 x=new Set(_.getAttributeKeys());return Xe(u)?(void 0!==u.style&&Tt("matcher-pattern-deprecated-attributes-style-key",u),void 0!==u.class&&Tt("matcher-pattern-deprecated-attributes-class-key",u)):(x.delete("style"),x.delete("class")),Vd(u,x,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),x=>_.getStyle(x))}(r.styles,m),!c.styles)?null:c;var u,_}function Vd(m,r,c){const u=(M=m,Array.isArray(M)?M.map(E=>Xe(E)?(void 0!==E.key&&void 0!==E.value||Tt("matcher-pattern-missing-key-or-value",E),[E.key,E.value]):[E,!0]):Xe(M)?Object.entries(M):[[M,!0]]),_=Array.from(r),x=[];var M;if(u.forEach(([M,E])=>{_.forEach(F=>{var V,W;W=F,(!0===(V=M)||V===W||V instanceof RegExp&&W.match(V))&&function(V,W,dt){if(!0===V)return!0;const Zt=dt(W);return V===Zt||V instanceof RegExp&&!!String(Zt).match(V)}(E,F,c)&&x.push(F)})}),u.length&&!(x.length_?0:_+r),(c=c>_?_:c)<0&&(c+=_),_=r>c?0:c-r>>>0,r>>>=0;for(var x=Array(_);++u<_;)x[u]=m[u+r];return x},q1=function(m,r,c){var u=null==m?void 0:pl(m,r);return void 0===u?c:u},P2=function(m,r,c){(void 0!==c&&!Tn(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]},Zg=function m(r,c,u,_,x){r!==c&&function(r,c,u){for(var _=-1,x=Object(r),M=u(r),E=M.length;E--;){var F=M[++_];if(!1===c(x[F],F,x))break}}(c,function(M,E){if(x||(x=new iu),Wt(M))!function(m,r,c,u,_,x,M){var E=M_(m,c),F=M_(r,c),V=M.get(F);if(V)P2(m,c,V);else{var W=x?x(E,F,c+"",m,r,M):void 0,dt=void 0===W;if(dt){var Zt=Ye(F),ue=!Zt&&ks(F),Ae=!Zt&&!ue&&Jc(F);W=F,Zt||ue||Ae?Ye(E)?W=E:function(m){return fn(m)&&Ac(m)}(E)?W=uc(E):ue?(dt=!1,W=aa(F,!0)):Ae?(dt=!1,W=_t(F,!0)):W=[]:Xe(F)||Rl(F)?(W=E,Rl(E)?W=function(m){return Vs(m,us(m))}(E):Wt(E)&&!Fo(E)||(W=ll(F))):dt=!1}dt&&(M.set(F,W),_(W,F,u,x,M),M.delete(F)),P2(m,c,W)}}(r,c,E,u,m,_,x);else{var F=_?_(M_(r,E),M,E+"",r,c,x):void 0;void 0===F&&(F=M),P2(r,E,F)}},us)},ku=function(m){return m},E3=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 bp=Math.max;const Ff=function(m){return function(){return m}},Mg=vc?function(m,r){return vc(m,"toString",{configurable:!0,enumerable:!1,value:Ff(r),writable:!0})}:ku;var kg=Date.now;const k_=function(m){var r=0,c=0;return function(){var u=kg(),_=16-(u-c);if(c=u,_>0){if(++r>=800)return arguments[0]}else r=0;return m.apply(void 0,arguments)}}(Mg),qf=function(m){return function(m,r){return k_(function(m,r,c){return r=bp(void 0===r?m.length-1:r,0),function(){for(var u=arguments,_=-1,x=bp(u.length-r,0),M=Array(x);++_1?c[_-1]:void 0,M=_>2?c[2]:void 0;for(x=m.length>3&&"function"==typeof x?(_--,x):void 0,M&&function(m,r,c){if(!Wt(c))return!1;var u=typeof r;return!!("number"==u?Ac(c)&&ou(r,c.length):"string"==u&&r in c)&&Tn(c[r],m)}(c[0],c[1],M)&&(x=_<3?void 0:x,_=1),r=Object(r);++u<_;){var E=c[u];E&&m(r,E,u,x)}return r})},L2=qf(function(m,r,c){Zg(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,x=0,M=0,E=null;const F=new Map;if(""===u)return F;";"!=u.charAt(u.length-1)&&(u+=";");for(let V=0;Vu===r);return Array.isArray(c)}set(r,c){if(Wt(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=Rf(r);(function(m,r){null==m||function(m,r){null==(m=function(m,r){return r.length<2?m:pl(m,D2(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]&&!Wt(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 Lg{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(r,c,u){if(Wt(c))D_(u,Rf(r),c);else if(this._normalizers.has(r)){const _=this._normalizers.get(r),{path:x,value:M}=_(c);D_(u,x,M)}else D_(u,r,c)}getNormalized(r,c){if(!r)return L2({},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,Rf(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 x=this.getNormalized(_,r);return x&&"object"==typeof x?Object.keys(x).length:x}),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 Rf(m){return m.replace("-",".")}function D_(m,r,c){let u=c;Wt(c)&&(u=L2({},q1(m,r),c)),function(m,r,c){null==m||function(m,r,c,u){if(!Wt(m))return m;for(var _=-1,x=(r=Zu(r,m)).length,M=x-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 ps(...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 _=(x=this.document,"string"==typeof(M=c)?[new Eo(x,M)]:(it(M)||(M=[M]),Array.from(M).map(E=>"string"==typeof E?new Eo(x,E):E instanceof Ha?new Eo(x,E.data):E)));var x,M;for(const x of _)null!==x.parent&&x._remove(),x.parent=this,x.document=this.document,this._children.splice(r,0,x),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 Hf(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 vp extends Xc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=zf}}function zf(){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}vp.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 Nm extends(Ue(vp)){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",x=>x&&r.selection.editableElement==this),this.listenTo(r.selection,"change",()=>{this.isFocused=r.isFocused&&r.selection.editableElement==this})}destroy(){this.stopListening()}}Nm.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 Fm=Symbol("rootName");class qm extends Nm{constructor(r,c){super(r,c),this.rootName="main"}get rootName(){return this.getCustomProperty(Fm)}set rootName(r){this._setCustomProperty(Fm,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 nt("view-tree-walker-no-start-position",null);if(r.direction&&"forward"!=r.direction&&"backward"!=r.direction)throw new nt("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 x,M=_.data.length;return _==this._boundaryEndParent?(M=this.boundaries.end.offset,x=new Ha(_,0,M),r=Uo._createAfter(x)):(x=new Ha(_,0,_.data.length),r.offset++),this._position=r,this._formatReturnValue("text",x,c,r,M)}if("string"==typeof _){let x;x=this.singleCharacters?1:(u===this._boundaryEndParent?this.boundaries.end.offset:u.data.length)-r.offset;const M=new Ha(u,r.offset,x);return r.offset+=x,this._position=r,this._formatReturnValue("text",M,c,r,x)}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 x,M=_.data.length;if(_==this._boundaryStartParent){const E=this.boundaries.start.offset;x=new Ha(_,E,_.data.length-E),M=x.data.length,r=Uo._createBefore(x)}else x=new Ha(_,0,_.data.length),r.offset--;return this._position=r,this._formatReturnValue("text",x,c,r,M)}if("string"==typeof _){let x;x=this.singleCharacters?1:r.offset-(u===this._boundaryStartParent?this.boundaries.start.offset:0),r.offset-=x;const M=new Ha(u,r.offset,x);return this._position=r,this._formatReturnValue("text",M,c,r,x)}return r=Uo._createBefore(u),this._position=r,this._formatReturnValue("elementStart",u,c,r,1)}_formatReturnValue(r,c,u,_,x){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:x}}}}class Uo extends ni{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 Nm);){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 _=ct(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 Zs(m){return!(!m.item.is("attributeElement")&&!m.item.is("uiElement"))}Ma.prototype.is=function(m){return"range"===m||"view:range"===m};class ju extends(Oe(ni)){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=ne(this.getRanges());if(c!=ne(r.getRanges()))return!1;if(0==c)return!0;for(let u of this.getRanges()){u=u.getTrimmed();let _=!1;for(let x of r.getRanges())if(x=x.getTrimmed(),u.start.isEqual(x.start)&&u.end.isEqual(x.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 Ma)this._setRanges([c],_&&_.backward),this._setFakeOptions(_);else if(c instanceof Uo)this._setRanges([new Ma(c)]),this._setFakeOptions(_);else if(c instanceof Ro){const x=!!_&&!!_.backward;let M;if(void 0===u)throw new nt("view-selection-setto-required-second-parameter",this);M="in"==u?Ma._createIn(c):"on"==u?Ma._createOn(c):new Ma(Uo._createAt(c,u)),this._setRanges([M],x),this._setFakeOptions(_)}else{if(!it(c))throw new nt("view-selection-setto-not-selectable",this);this._setRanges(c,_&&_.backward),this._setFakeOptions(_)}this.fire("change")}setFocus(r,c){if(null===this.anchor)throw new nt("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 Ma(u,_),!0):this._addRange(new Ma(_,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 Ma))throw new nt("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 nt("view-selection-range-intersects",this,{addedRange:r,intersectingRange:c});this._ranges.push(new Ma(r.start,r.end))}}ju.prototype.is=function(m){return"selection"===m||"view:selection"===m};class P_ extends(Oe(ni)){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 xp extends lt{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 lt?r:new lt(this,r),_=Yf(this);if(!_.size)return;if(ms(u,"capturing",this),te(_,"$capture",u,...c))return u.return;const x=u.startRange||this.selection.getFirstRange(),M=x?x.getContainedElement():null,E=!!M&&Boolean(Og(_,M));let F=M||function(V){if(!V)return null;const W=V.start.parent,dt=V.end.parent,Zt=W.getPath(),ue=dt.getPath();return Zt.length>ue.length?W:dt}(x);if(ms(u,"atTarget",F),!E){if(te(_,"$text",u,...c))return u.return;ms(u,"bubbling",F)}for(;F;){if(F.is("rootElement")){if(te(_,"$root",u,...c))return u.return}else if(F.is("element")&&te(_,F.name,u,...c))return u.return;if(te(_,F,u,...c))return u.return;F=F.parent,ms(u,"bubbling",F)}return ms(u,"bubbling",this),te(_,"$document",u,...c),u.return}catch(u){nt.rethrowUnexpectedError(u,this)}}_addEventListener(r,c,u){const _=Ss(u.context||"$document"),x=Yf(this);for(const M of _){let E=x.get(M);E||(E=new(Oe()),x.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 ms(m,r,c){m instanceof xp&&(m._eventPhase=r,m._currentTarget=c)}function te(m,r,c,...u){const _="string"==typeof r?m.get(r):Og(m,r);return!!_&&(_.fire(c,...u),c.stop.called)}function Og(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(Ue())){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 nt("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(O2(this))return null;let m=this.parent;for(;m&&m.is("attributeElement");){if(O2(m)>1)return null;m=m.parent}return!m||O2(m)>1?null:this.childCount}function O2(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 E2 extends Xc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=Eg}_insertChild(r,c){if(c&&(c instanceof Ro||Array.from(c).length>0))throw new nt("view-emptyelement-cannot-add",[this,c]);return 0}}function Eg(){return null}E2.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 nt("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 nt("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(Oe(ni)){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 _=(x=this.document,"string"==typeof(M=c)?[new Eo(x,M)]:(it(M)||(M=[M]),Array.from(M).map(E=>"string"==typeof E?new Eo(x,E):E instanceof Ha?new Eo(x,E.data):E)));var x,M;for(const x of _)null!==x.parent&&x._remove(),x.parent=this,this._children.splice(r,0,x),r++,u++;return u}_removeChildren(r,c=1){this._fireChange("children",this);for(let u=r;u{const F=M[M.length-1],V=!E.is("uiElement");return F&&F.breakAttributes==V?F.nodes.push(E):M.push({breakAttributes:V,nodes:[E]}),M},[]);let _=null,x=r;for(const{nodes:M,breakAttributes:E}of u){const F=this._insertNodes(x,M,E);_||(_=F.start),x=F.end}return _?new Ma(_,x):new Ma(r)}remove(r){const c=r instanceof Ma?r:Ma._createOn(r);if(Cp(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 V of E)this._removeFromClonedElementsGroup(V);const F=this.mergeAttributes(u);return c.start=F,c.end=F.clone(),new Td(this.document,E)}clear(r,c){Cp(r,this.document);const u=r.getWalker({direction:"backward",ignoreElementEnd:!0});for(const _ of u){const x=_.item;let M;if(x.is("element")&&c.isSimilar(x))M=Ma._createOn(x);else if(!_.nextPosition.isAfter(r.start)&&x.is("$textProxy")){const E=x.getAncestors().find(F=>F.is("element")&&c.isSimilar(F));E&&(M=Ma._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,x=_.childCount;r=this._breakAttributesRange(r,!0),u=this.remove(r),c.offset+=_.childCount-x}else u=this.remove(r);return this.insert(c,u)}wrap(r,c){if(!(c instanceof tm))throw new nt("view-writer-wrap-invalid-attribute",this.document);if(Cp(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 x=this.document.selection;return x.isCollapsed&&x.getFirstPosition().isEqual(r.start)&&this.setSelection(_),new Ma(_)}return this._wrapRange(r,c)}unwrap(r,c){if(!(c instanceof tm))throw new nt("view-writer-unwrap-invalid-attribute",this.document);if(Cp(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 F=this.mergeAttributes(M.end);return new Ma(E,F)}rename(r,c){const u=new vp(this.document,r,c.getAttributes());return this.insert(Uo._createAfter(c),u),this.move(Ma._createIn(c),Uo._createAt(u,0)),this.remove(Ma._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 Ma(r,c)}createRangeOn(r){return Ma._createOn(r)}createRangeIn(r){return Ma._createIn(r)}createSelection(...r){return new ju(...r)}createSlot(r="children"){if(!this._slotFactory)throw new nt("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 _,x;if(_=u?_s(r):r.parent.is("$text")?r.parent.parent:r.parent,!_)throw new nt("view-writer-invalid-position-container",this.document);x=u?this._breakAttributes(r,!0):r.parent.is("$text")?Zc(r):r;const M=_._insertChild(x.offset,c);for(const W of c)this._addToClonedElementsGroup(W);const E=x.getShiftedBy(M),F=this.mergeAttributes(x);F.isEqual(x)||E.offset--;const V=this.mergeAttributes(E);return new Ma(F,V)}_wrapChildren(r,c,u,_){let x=c;const M=[];for(;x!1,r.parent._insertChild(r.offset,u);const _=new Ma(r,r.getShiftedBy(1));this.wrap(_,c);const x=new Uo(u.parent,u.index);u._remove();const M=x.nodeBefore,E=x.nodeAfter;return M instanceof Eo&&E instanceof Eo?Cr(M,E):Xo(x)}_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(Cp(r,this.document),r.isCollapsed){const F=this._breakAttributes(r.start,c);return new Ma(F,F)}const x=this._breakAttributes(_,c),M=x.parent.childCount,E=this._breakAttributes(u,c);return x.offset+=x.parent.childCount-M,new Ma(E,x)}_breakAttributes(r,c=!1){const u=r.offset,_=r.parent;if(r.parent.is("emptyElement"))throw new nt("view-writer-cannot-break-empty-element",this.document);if(r.parent.is("uiElement"))throw new nt("view-writer-cannot-break-ui-element",this.document);if(r.parent.is("rawElement"))throw new nt("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 x=new Uo(_.parent,_.index+1);return this._breakAttributes(x,c)}if(0===u){const x=new Uo(_.parent,_.index);return this._breakAttributes(x,c)}{const x=_.index+1,M=_._clone();_.parent._insertChild(x,M),this._addToClonedElementsGroup(M);const F=_._removeChildren(u,_.childCount-u);M._appendChild(F);const V=new Uo(_.parent,x);return this._breakAttributes(V,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 _s(m){let r=m.parent;for(;!jd(r);){if(!r)return;r=r.parent}return r}function Ys(m,r){return m.priorityr.priority)&&m.getIdentity()c instanceof u))throw new nt("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 Cp(m,r){const c=_s(m.start),u=_s(m.end);if(!c||!u||c!==u)throw new nt("view-writer-invalid-range-container",r)}function dc(m,r){return null===m.id&&null===r.id}const R1=m=>m.createTextNode("\xa0"),Ig=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:me(m)&&m.data.substr(0,7)===H1}function zm(m){return 7==m.data.length&&Pu(m)}function I2(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 Jl=v(9315);No()(Jl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class F2 extends(Ue()){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 nt("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})),x=this._diffNodeLists(u,_),M=this._findUpdateActions(x,u,_,I3);if(-1!==M.indexOf("update")){const E={equal:0,insert:0,delete:0};for(const F of M)if("update"===F){const V=E.equal+E.insert,W=E.equal+E.delete,dt=r.getChild(V);!dt||dt.is("uiElement")||dt.is("rawElement")||this._updateElementMappings(dt,u[W]),is(_[V]),E.equal++}else E[F]++}}_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&&me(c.parent)&&Pu(c.parent))}_removeInlineFiller(){const r=this._inlineFiller;if(!Pu(r))throw new nt("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(F=>F.hasAttribute("contenteditable"));return!E||"true"==E.getAttribute("contenteditable")}(c)||u===c.getFillerOffset())return!1;const _=r.nodeBefore,x=r.nodeAfter;return!(_ instanceof Eo||x instanceof Eo||D_isAndroid&&(_||x))}_updateText(r,c){const u=this.domConverter.findCorrespondingDomText(r);let _=this.domConverter.viewToDom(r).data;const x=c.inlineFillerPosition;x&&x.parent==r.parent&&x.offset==r.index&&(_=H1+_),Ap(u,_)}_updateAttrs(r){const c=this.domConverter.mapViewToDom(r);if(!c)return;const u=Array.from(c.attributes).map(x=>x.name),_=r.getAttributeKeys();for(const x of _)this.domConverter.setDomElementAttribute(c,x,r.getAttribute(x),r);for(const x of u)r.hasAttribute(x)||this.domConverter.removeDomElementAttribute(c,x)}_updateChildren(r,c){const u=this.domConverter.mapViewToDom(r);if(!u)return;if(D_isAndroid){let dt=null;for(const Zt of Array.from(u.childNodes)){if(dt&&me(dt)&&me(Zt)){u.normalize();break}dt=Zt}}const _=c.inlineFillerPosition,x=u.childNodes,M=Array.from(this.domConverter.viewChildrenToDom(r,{bind:!0}));_&&_.parent===r&&Gu(u.ownerDocument,M,_.offset);const E=this._diffNodeLists(x,M),F=this._findUpdateActions(E,x,M,E_);let V=0;const W=new Set;for(const dt of F)"delete"===dt?(W.add(x[V]),is(x[V])):"equal"!==dt&&"update"!==dt||V++;V=0;for(const dt of F)"insert"===dt?(yo(u,V,M[V]),V++):"update"===dt?(Ap(x[V],M[V].data),V++):"equal"===dt&&(this._markDescendantTextToSync(this.domConverter.domToView(M[V])),V++);for(const dt of W)dt.parentNode||this.domConverter.unbindDomElement(dt)}_diffNodeLists(r,c){return K(r=function(u,_){const x=Array.from(u);return 0==x.length||!_||x[x.length-1]==_&&x.pop(),x}(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 x=[],M=[],E=[];const F={equal:0,insert:0,delete:0};for(const V of r)"insert"===V?E.push(u[F.equal+F.insert]):"delete"===V?M.push(c[F.equal+F.delete]):(x=x.concat(K(M,E,_).map(W=>"equal"===W?"update":W)),x.push("equal"),M=[],E=[]),F[V]++;return x.concat(K(M,E,_).map(V=>"equal"===V?"update":V))}_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(),x=c.createRange();_.removeAllRanges(),x.selectNodeContents(u),_.addRange(x)}_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(x,M){const E=x.parent;if(E.nodeType!=Node.ELEMENT_NODE||x.offset!=E.childNodes.length-1)return;const F=E.childNodes[x.offset];F&&"BR"==F.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(me(_))return _.data=H1+_.data,_;{const x=m.createTextNode(H1);return Array.isArray(r)?u.splice(c,0,x):yo(r,c,x),x}}function I3(m,r){return ge(m)&&ge(r)&&!me(m)&&!me(r)&&!ga(m)&&!ga(r)&&m.tagName.toLowerCase()===r.tagName.toLowerCase()}function E_(m,r){return ge(m)&&ge(r)&&me(m)&&me(r)}function I_(m,r,c){return r===c||(me(r)&&me(c)?r.data===c.data:!(!m.isBlockFiller(r)||!m.isBlockFiller(c)))}function Ap(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_(Mt.document),y1=R1(Mt.document),Jd=Ig(Mt.document),N_="data-ck-unsafe-attribute-",Bf="data-ck-unsafe-element";class F_{constructor(r,{blockFillerMode:c,renderingMode:u="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new ps,this._inlineObjectElementMatcher=new ps,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?Mt.document:Mt.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(),x=u.body.childNodes;for(;x.length>0;)_.appendChild(x[0]);const M=u.createTreeWalker(_,NodeFilter.SHOW_ELEMENT),E=[];let F;for(;F=M.nextNode();)E.push(F);for(const V of E){for(const dt of V.getAttributeNames())this.setDomElementAttribute(V,dt,V.getAttribute(dt));const W=V.tagName.toLowerCase();this._shouldRenameElement(W)&&(yp(W),V.replaceWith(this._createReplacementDomElement(W,V)))}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)?(yp(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 x=this.shouldRenderAttribute(c,u,r.tagName.toLowerCase())||_&&_.shouldRenderUnsafeAttribute(c);x||Tt("domconverter-unsafe-attribute-detected",{domElement:r,key:c,value:u}),function(M){try{Mt.document.createAttribute(M)}catch{return!1}return!0}(c)?(r.hasAttribute(c)&&!x?r.removeAttribute(c):r.hasAttribute(N_+c)&&x&&r.removeAttribute(N_+c),r.setAttribute(x?c:N_+c,u)):Tt("domconverter-invalid-attribute-detected",{domElement:r,key:c,value:u})}removeDomElementAttribute(r,c){c!=Bf&&(r.removeAttribute(c),r.removeAttribute(N_+c))}*viewChildrenToDom(r,c={}){const u=r.getFillerOffset&&r.getFillerOffset();let _=0;for(const x of r.getChildren()){u===_&&(yield this._getBlockFiller());const M=x.is("element")&&!!x.getCustomProperty("dataPipeline:transparentRendering")&&!as(x.getAttributes());M&&"data"==this.renderingMode?yield*this.viewChildrenToDom(x,c):(M&&Tt("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:x}),yield this.viewToDom(x,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,_,x;if(0===r.offset){if(u=this.mapViewToDom(c),!u)return null;x=u.childNodes[0]}else{const M=r.nodeBefore;if(_=M.is("$text")?this.findCorrespondingDomText(M):this.mapViewToDom(M),!_)return null;u=_.parentNode,x=_.nextSibling}return me(x)&&Pu(x)?{parent:x,offset:7}:{parent:u,offset:_?xo(_)+1:0}}}domToView(r,c={}){const u=[],_=this._domToView(r,c,u),x=_.next().value;return x?(_.next(),this._processDomInlineNodes(null,u,c),x.is("$text")&&0==x.data.length?null:x):null}*domChildrenToView(r,c={},u=[]){for(let _=0;_{const{scrollLeft:E,scrollTop:F}=M;x.push([E,F])}),c.focus(),F3(c,M=>{const[E,F]=x.shift();M.scrollLeft=E,M.scrollTop=F}),Mt.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 x=u;for(;x&&x.nodeType!=Node.DOCUMENT_NODE;)_.unshift(x),x=x.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 Ig(this._domDocument);case"br":return O_(this._domDocument)}}_isDomSelectionPositionCorrect(r,c){if(me(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(me(r)){if(zm(r))return null;{const x=r.data;if(""===x)return null;const M=new Eo(this.document,x);return u.push(M),M}}{let x=this.mapDomToView(r);if(x)return this._isInlineObjectElement(x)&&u.push(x),x;if(this.isDocumentFragment(r))x=new Td(this.document),c.bind&&this.bindDocumentFragments(r,x);else{x=this._createViewElement(r,c),c.bind&&this.bindElements(r,x);const E=r.attributes;if(E)for(let F=E.length,V=0;V0?c[x-1]:null,W=x+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(Bf,r),c){for(;c.firstChild;)u.appendChild(c.firstChild);for(const _ of c.getAttributeNames())u.setAttribute(_,c.getAttribute(_))}return u}}function Vf(m,r){return m.getAncestors().some(c=>c.is("element")&&r.includes(c.name))}function F3(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 yp(m){"script"===m&&Tt("domconverter-unsafe-script-element-detected"),"style"===m&&Tt("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 q2=qf(function(m,r){Vs(r,us(r),m)});class pc{constructor(r,c,u){this.view=r,this.document=r.document,this.domEvent=c,this.domTarget=c.target,q2(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 oe.Date.now()};var uu=/\s/,nm=/^\s+/;var q3=/^[-+]0x[0-9a-f]+$/i,z6=/^0b[01]+$/i,Av=/^0o[0-7]+$/i,jf=parseInt;const Lu=function(m){if("number"==typeof m)return m;if(Wn(m))return NaN;if(Wt(m)){var r="function"==typeof m.valueOf?m.valueOf():m;m=Wt(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=z6.test(m);return c||Av.test(m)?jf(m.slice(2),c?2:8):q3.test(m)?NaN:+m};var R3=Math.max,Y6=Math.min;const R_=function(m,r,c){var u,_,x,M,E,F,V=0,W=!1,dt=!1,Zt=!0;if("function"!=typeof m)throw new TypeError("Expected a function");function ue(di){var Ri=u,Go=_;return u=_=void 0,V=di,M=m.apply(Go,Ri)}function Ae(di){var Ri=di-F;return void 0===F||Ri>=r||Ri<0||dt&&di-V>=x}function Ie(){var Ri,Go,di=wd();if(Ae(di))return ln(di);E=setTimeout(Ie,(Go=r-((Ri=di)-F),dt?Y6(Go,x-(Ri-V)):Go))}function ln(di){return E=void 0,Zt&&u?ue(di):(u=_=void 0,M)}function Dn(){var Go,di=wd(),Ri=Ae(di);if(u=arguments,_=this,F=di,Ri){if(void 0===E)return V=Go=F,E=setTimeout(Ie,r),W?ue(Go):M;if(dt)return clearTimeout(E),E=setTimeout(Ie,r),ue(F)}return void 0===E&&(E=setTimeout(Ie,r)),M}return r=Lu(r)||0,Wt(c)&&(W=!!c.leading,x=(dt="maxWait"in c)?R3(Lu(c.maxWait)||0,r):x,Zt="trailing"in c?!!c.trailing:Zt),Dn.cancel=function(){void 0!==E&&clearTimeout(E),V=0,u=F=_=E=void 0},Dn.flush=function(){return void 0===E?M:ln(wd())},Dn};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 Tp(m){var r=-1,c=null==m?0:m.length;for(this.__data__=new Fs;++rE))return!1;var V=x.get(m),W=x.get(r);if(V&&W)return V==r&&W==m;var dt=-1,Zt=!0,ue=2&c?new Fg:void 0;for(x.set(m,r),x.set(r,m);++dt{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this.flush(),r.change(()=>{})},50)}),c.on("blur",(u,_)=>{const x=c.selection.editableElement;null!==x&&x!==_.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",(_,x)=>{this.document.isComposing&&!D_isAndroid||(this._handleSelectionChange(x,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 x={oldSelection:this.selection,newSelection:_,domSelection:u};this.document.fire("selectionChange",x),this._fireSelectionChangeDoneDebounced(x)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class wp 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 Bg extends Wu{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(r){const c=r.getTargetRanges(),u=this.view,_=u.document;let x=null,M=null,E=[];if(r.dataTransfer&&(x=new mc(r.dataTransfer)),null!==r.data?M=r.data:x&&(M=x.getData("text/plain")),_.selection.isFake)E=Array.from(_.selection.getRanges());else if(c.length)E=c.map(F=>{const V=u.domConverter.domPositionToView(F.startContainer,F.startOffset),W=u.domConverter.domPositionToView(F.endContainer,F.endOffset);return V?u.createRange(V,W):W?u.createRange(W):void 0}).filter(F=>!!F);else if(D_isAndroid){const F=r.target.ownerDocument.defaultView.getSelection();E=Array.from(u.domConverter.domSelectionToView(F).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 F=M.split(/\n{1,2}/g);let V=E;for(let W=0;W{if(this.isEnabled&&((_=u.keyCode)==Ka.arrowright||_==Ka.arrowleft||_==Ka.arrowup||_==Ka.arrowdown)){const x=new xp(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(x,u),x.stop.called&&c.stop()}var _})}observe(){}stopObserving(){}}class Qf extends Qu{constructor(r){super(r);const c=this.document;c.on("keydown",(u,_)=>{if(!this.isEnabled||_.keyCode!=Ka.tab||_.ctrlKey)return;const x=new xp(c,"tab",c.selection.getFirstRange());c.fire(x,_),x.stop.called&&u.stop()})}observe(){}stopObserving(){}}const U1=function(m){return Pi(m,5)};class Vg extends(Ue()){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 F_(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new F2(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(wp),this.addObserver(Tv),this.addObserver(Bg),this.addObserver(Qf),this.document.on("arrowKey",Pl,{priority:"low"}),function Uc(m){m.document.on("arrowKey",(r,c)=>function(u,_,x){if(_.keyCode==Ka.arrowright){const M=_.domTarget.ownerDocument.defaultView.getSelection(),E=1==M.rangeCount&&M.getRangeAt(0).collapsed;if(E||_.shiftKey){const W=x.domPositionToView(M.focusNode,M.focusOffset);if(null===W)return;let dt=!1;const Zt=W.getLastMatchingPosition(ue=>(ue.item.is("uiElement")&&(dt=!0),!(!ue.item.is("uiElement")&&!ue.item.is("attributeElement"))));if(dt){const ue=x.viewPositionToDom(Zt);E?M.collapse(ue.parent,ue.offset):M.extend(ue.parent,ue.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 x=()=>{this._writer.setAttribute("contenteditable",(!u.isReadOnly).toString(),u),u.isReadOnly?this._writer.addClass("ck-read-only",u):this._writer.removeClass("ck-read-only",u)};x(),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(x)),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 x=this.document.selection.getFirstRange();if(!x)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(x),viewportOffset:u,ancestorOffset:_,alignToTop:r,forceScroll:c};this.fire("scrollToTheSelection",E,M),function({target:F,viewportOffset:V=0,ancestorOffset:W=0,alignToTop:dt,forceScroll:Zt}){const ue=cr(F);let Ae=ue,Ie=null;for(V="number"==typeof(ln=V)?{top:ln,bottom:ln,left:ln,right:ln}:ln;Ae;){let ln;ln=lr(Ae==ue?F:Ie),Hr({parent:ln,getRect:()=>As(F,Ae),alignToTop:dt,ancestorOffset:W,forceScroll:Zt});const Dn=As(F,Ae);if(ds({window:Ae,rect:Dn,viewportOffset:V,alignToTop:dt,forceScroll:Zt}),Ae.parent!=Ae){if(Ie=Ae.frameElement,Ae=Ae.parent,!Ie)return}else Ae=null}var ln}(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 nt("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){nt.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 Ma(r,c)}createRangeOn(r){return Ma._createOn(r)}createRangeIn(r){return Ma._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 Up{is(){throw new Error("is() method is abstract")}}class oc extends Up{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 nt("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 nt("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 x=0;for(;u[x]==_[x]&&u[x];)x++;return 0===x?null:u[x-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const c=this.getPath(),u=r.getPath(),_=ct(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 nt("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,x).concat(_).concat(u.slice(x+0,u.length));{const E=Array.from(u);return E.splice(x,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 ss 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 ss(this.data,this.getAttributes())}static fromJSON(r){return new ss(r.data,r.attributes)}}ss.prototype.is=function(m){return"$text"===m||"model:$text"===m||"text"===m||"model:text"===m||"node"===m||"model:node"===m};class Ku extends Up{constructor(r,c,u){if(super(),this.textNode=r,c<0||c>r.offsetSize)throw new nt("model-textproxy-wrong-offsetintext",this);if(u<0||c+u>r.offsetSize)throw new nt("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 ss(_)]:(it(_)||(_=[_]),Array.from(_).map(x=>"string"==typeof x?new ss(x):x instanceof Ku?new ss(x.data,x.getAttributes()):x));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):ss.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 nt("model-tree-walker-no-start-position",null);const c=r.direction||"forward";if("forward"!=c&&"backward"!=c)throw new nt("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,_,x;do{_=this.position,x=this._visitedParent,({done:c,value:u}=this.next())}while(!c&&r(u));c||(this._position=_,this._visitedParent=x)}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 _=B1(c,u),x=_||Bm(c,u,_);if(x 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=x;return this._position=c,Y1("elementStart",x,r,c,1)}if(x instanceof ss){let M;if(this.singleCharacters)M=1;else{let V=x.endOffset;this._boundaryEndParent==u&&this.boundaries.end.offsetW&&(W=this.boundaries.start.offset),E=c.offset-W}const V=new Ku(M,c.offset-M.startOffset-E,E);return c.offset-=E,this._position=c,Y1("text",V,r,c,E)}return c.path.pop(),this._position=c,this._visitedParent=u.parent,Y1("elementStart",u,r,c,1)}}function Y1(m,r,c,u,_){return{done:!1,value:{type:m,item:r,previousPosition:c,nextPosition:u,length:_}}}class to extends Up{constructor(r,c,u="toNone"){if(super(),!r.is("element")&&!r.is("documentFragment"))throw new nt("model-position-root-invalid",r);if(!(c instanceof Array)||0===c.length)throw new nt("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"==ct(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"==ct(r.getParentPath(),this.getParentPath())){if(r.offsetthis.offset)return null;u.offset-=c}}else if("prefix"==ct(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"==ct(r.getParentPath(),this.getParentPath()))(r.offset=_;){if(u.path[M]+E!==x.maxOffset)return!1;E=1,M--,x=x.parent}return!0}(m,c+1)}function Vm(m,r){for(;rc+1;){const x=_.maxOffset-u.offset;0!==x&&r.push(new Si(u,u.getShiftedBy(x))),u.path=u.path.slice(0,-1),u.offset++,_=_.parent}for(;u.path.length<=this.end.path.length;){const x=this.end.path[u.path.length-1],M=x-u.offset;0!==M&&r.push(new Si(u,u.getShiftedBy(M))),u.offset=x,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 Si(this.start,this.end)]}getTransformedByOperations(r){const c=[new Si(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 nt("range-create-from-ranges-empty-array",null);if(1==r.length)return r[0].clone();const c=r[0];r.sort((x,M)=>x.start.isAfter(M.start)?1:-1);const u=r.indexOf(c),_=new this(c.start,c.end);if(u>0)for(let x=u-1;r[x].end.isEqual(_.start);x++)_.start=to._createAt(r[x].start);for(let x=u+1;x{if(c.viewPosition)return;const u=this._modelToViewMapping.get(c.modelPosition.parent);if(!u)throw new nt("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),x=this._toModelOffset(c.viewPosition.parent,c.viewPosition.offset,u);c.modelPosition=to._createAt(_,x)},{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 Si(this.toModelPosition(r.start),this.toModelPosition(r.end))}toViewRange(r){return new Ma(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 x of _.getElementsWithSameId())u.add(x);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 x=0;x1?r[0]+":"+r[1]:r[0]}var $f=Object.defineProperty,Kf=Object.defineProperties,V6=Object.getOwnPropertyDescriptors,jg=Object.getOwnPropertySymbols,Y2=Object.prototype.hasOwnProperty,Xf=Object.prototype.propertyIsEnumerable,B_=(m,r,c)=>r in m?$f(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Jg=(m,r)=>{for(var c in r||(r={}))Y2.call(r,c)&&B_(m,c,r[c]);if(jg)for(var c of jg(r))Xf.call(r,c)&&B_(m,c,r[c]);return m},V_=(m,r)=>Kf(m,V6(r));class Gg extends(Oe()){constructor(r){super(),this._conversionApi=Jg({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 x=this._reduceChanges(r.getChanges());for(const M of x)"insert"===M.type?this._convertInsert(Si._createFromPositionAndShift(M.position,M.length),_):"reinsert"===M.type?this._convertReinsert(Si._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 x=this._createConversionApi(u,void 0,_);this._convertInsert(r,x);for(const[M,E]of c)this._convertMarkerAdd(M,E,x);x.consumable.verifyAllConsumed("insert")}convertSelection(r,c,u){const _=this._createConversionApi(u);this.fire("cleanSelection",{selection:r},_);const x=r.getFirstPosition().root;if(!_.mapper.toViewElement(x))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 F=E.getRange();if(!jm(r.getFirstPosition(),E,_.mapper))continue;this.fire(`addMarker:${E.name}`,{item:r,markerName:E.name,markerRange:F},_)}for(const E of r.getAttributeKeys())if(_.consumable.test(r,"attribute:"+E)){const F={item:r,range:r.getFirstRange(),attributeKey:E,attributeOldValue:null,attributeNewValue:r.getAttribute(E)};this.fire(`attribute:${E}:$text`,F,_)}}}_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,_,x){this._addConsumablesForRange(x.consumable,r,`attribute:${c}`);for(const M of r){const E={item:M.item,range:Si._createFromPositionAndShift(M.previousPosition,M.length),attributeKey:c,attributeOldValue:u,attributeNewValue:_};this._testAndFire(`attribute:${c}`,E,x)}}_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_(Jg({},_),{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 x of c.getItems()){if(!u.consumable.test(x,_))continue;const M={item:x,range:Si._createOn(x),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 x of _.getAttributeKeys())r.add(_,"attribute:"+x)}}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}:${(V=c).item.is("element")?V.item.name:"$text"}`,x=c.item.is("$textProxy")?u.consumable._getSymbolForTextProxy(c.item):c.item,M=this._firedEventsMap.get(u),E=M.get(x);var V;if(E){if(E.has(_))return;E.add(_)}else M.set(x,new Set([_]));this.fire(_,c,u)}_testAndFireAddAttributes(r,c){const u={item:r,range:Si._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_(Jg({},this._conversionApi),{consumable:new V3,writer:r,options:u,convertItem:x=>this._convertInsert(Si._createOn(x),_),convertChildren:x=>this._convertInsert(Si._createIn(x),_,{doNotAddConsumables:!0}),convertAttributes:x=>this._testAndFireAddAttributes(x,_),canReuseView:x=>!c.has(_.mapper.toModelElement(x))});return this._firedEventsMap.set(_,new Map),_}}function jm(m,r,c){const u=r.getRange(),_=Array.from(m.getAncestors());return _.shift(),_.reverse(),!_.some(x=>{if(u.containsItem(x))return!!c.toViewElement(x).getCustomProperty("addHighlight")})}function j_(m){return{item:m.item,range:Si._createFromPositionAndShift(m.previousPosition,m.length)}}class Ud extends(Oe(Up)){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 Si(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 Si(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 Si(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 Si)this._setRanges([c],!!_&&!!_.backward);else if(c instanceof to)this._setRanges([new Si(c)]);else if(c instanceof oc){const x=!!_&&!!_.backward;let M;if("in"==u)M=Si._createIn(c);else if("on"==u)M=Si._createOn(c);else{if(void 0===u)throw new nt("model-selection-setto-required-second-parameter",[this,c]);M=new Si(to._createAt(c,u))}this._setRanges([M],x)}else{if(!it(c))throw new nt("model-selection-setto-not-selectable",[this,c]);this._setRanges(c,_&&!!_.backward)}}_setRanges(r,c=!1){const u=Array.from(r),_=u.some(x=>{if(!(x instanceof Si))throw new nt("model-selection-set-ranges-not-range",[this,r]);return this._ranges.every(M=>!M.isEqual(x))});(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 nt("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 Si(u,_)),this._lastRangeBackward=!0):(this._pushRange(new Si(_,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=Wg(c.start,r);B2(u,c)&&(yield u);for(const x of c.getWalker()){const M=x.item;"elementEnd"==x.type&&j3(M,r,c)&&(yield M)}const _=Wg(c.end,r);Kg(_,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 Si(r.start,r.end))}_checkRange(r){for(let c=0;c0;)this._popRange()}_popRange(){this._ranges.pop()}}function Qg(m,r){return!r.has(m)&&(r.add(m),m.root.document.model.schema.isBlock(m)&&!!m.parent)}function j3(m,r,c){return Qg(m,r)&&$g(m,c)}function Wg(m,r){const c=m.parent.root.document.model.schema,u=m.parent.getAncestors({parentFirst:!0,includeSelf:!0});let _=!1;const x=u.find(M=>!_&&(_=c.isLimit(M),!_&&Qg(M,r)));return u.forEach(M=>r.add(M)),x}function $g(m,r){const c=function(u){const _=u.root.document.model.schema;let x=u.parent;for(;x;){if(_.isBlock(x))return x;x=x.parent}}(m);return!c||!r.containsRange(Si._createOn(c),!0)}function B2(m,r){return!!m&&(!(!r.isCollapsed&&!m.isEmpty)||!r.start.isTouching(to._createAt(m,m.maxOffset))&&$g(m,r))}function Kg(m,r){return!!m&&(!(!r.isCollapsed&&!m.isEmpty)||!r.end.isTouching(to._createAt(m,0))&&$g(m,r))}Ud.prototype.is=function(m){return"selection"===m||"model:selection"===m};class Xu extends(Oe(Si)){constructor(r,c){super(r,c),th.call(this)}detach(){this.stopListening()}toRange(){return new Si(this.start,this.end)}static fromRange(r){return new Xu(r.start,r.end)}}function th(){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=Si._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 x=null;if(u){"$graveyard"==c.root.rootName&&(x="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:x})}else _&&this.fire("change:content",this.toRange(),{deletionPosition:x})}Xu.prototype.is=function(m){return"liveRange"===m||"model:liveRange"===m||"range"==m||"model:range"===m};const V2="selection:";class Ou extends(Oe(Up)){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 V2+r}static _isStoreAttributeKey(r){return r.startsWith(V2)}}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,_,x)=>{this._updateMarker(u,x)}),this.listenTo(this._document,"change",(c,u)=>{!function(_,x){const M=_.document.differ;for(const E of M.getChanges()){if("insert"!=E.type)continue;const F=E.position.parent;E.length===F.maxOffset&&_.enqueueChange(x,V=>{const W=Array.from(F.getAttributeKeys()).filter(dt=>dt.startsWith(V2));for(const dt of W)V.removeAttribute(dt,F)})}}(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=x.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 x=_.name.split(":",1)[0];if(!this._observedMarkers.has(x))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 x=Array.from(this.markers),M=this.markers.has(r);if(c){let E=!1;for(const F of this.getRanges())if(c.containsRange(F,!F.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:x,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[x,M]of this._attributePriority)"low"==M&&(this._attrs.delete(x),this._attributePriority.delete(x));this._setAttributesTo(c);const _=[];for(const[x,M]of this.getAttributes())u.has(x)&&u.get(x)===M||_.push(x);for(const[x]of u)this.hasAttribute(x)||_.push(x);_.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(V2)&&(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,x=r.textNode?r.textNode:r.nodeAfter;if(this.isGravityOverridden||(u=j2(_,c)),u||(u=j2(x,c)),!this.isGravityOverridden&&!u){let M=_;for(;M&&!u;)M=M.previousSibling,u=j2(M,c)}if(!u){let M=x;for(;M&&!u;)M=M.nextSibling,u=j2(M,c)}u||(u=this.getStoredAttributes())}else{const _=this.getFirstRange();for(const x of _){if(x.item.is("element")&&c.isObject(x.item)){u=j2(x.item,c);break}if("text"==x.type){u=x.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 ss)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 j6 extends no{elementToElement(r){return this.add(function(c){const u=J2(c.model),_=G2(c.view,"container");return u.attributes.length&&(u.children=!0),x=>{x.on(`insert:${u.name}`,function(M,E=G6){return(F,V,W)=>{if(!E(V.item,W.consumable,{preflight:!0}))return;const dt=M(V.item,W,V);if(!dt)return;E(V.item,W.consumable);const Zt=W.mapper.toViewPosition(V.range.start);W.mapper.bindElements(V.item,dt),W.writer.insert(Zt,dt),W.convertAttributes(V.item),t0(dt,V.item.getChildren(),W,{reconversion:V.reconversion})}}(_,J6(u)),{priority:c.converterPriority||"normal"}),(u.children||u.attributes.length)&&x.on("reduceChanges",J3(u),{priority:"low"})}}(r))}elementToStructure(r){return this.add(function(c){const u=J2(c.model),_=G2(c.view,"container");return u.children=!0,x=>{if(x._conversionApi.schema.checkChild(u.name,"$text"))throw new nt("conversion-element-to-structure-disallowed-text",x,{elementName:u.name});var M,E;x.on(`insert:${u.name}`,(M=_,E=J6(u),(F,V,W)=>{if(!E(V.item,W.consumable,{preflight:!0}))return;const dt=new Map;var Ae,Ie,ln;W.writer._registerSlotFactory((Ae=V.item,Ie=dt,ln=W,(Dn,di)=>{const Ri=Dn.createContainerElement("$slot");let Go=null;if("children"===di)Go=Array.from(Ae.getChildren());else{if("function"!=typeof di)throw new nt("conversion-slot-mode-unknown",ln.dispatcher,{modeOrFilter:di});Go=Array.from(Ae.getChildren()).filter(Da=>di(Da))}return Ie.set(Ri,Go),Ri}));const Zt=M(V.item,W,V);if(W.writer._clearSlotFactory(),!Zt)return;(function(Ae,Ie,ln){const Dn=Array.from(Ie.values()).flat(),di=new Set(Dn);if(di.size!=Dn.length)throw new nt("conversion-slot-filter-overlap",ln.dispatcher,{element:Ae});if(di.size!=Ae.childCount)throw new nt("conversion-slot-filter-incomplete",ln.dispatcher,{element:Ae})})(V.item,dt,W),E(V.item,W.consumable);const ue=W.mapper.toViewPosition(V.range.start);W.mapper.bindElements(V.item,Zt),W.writer.insert(ue,Zt),W.convertAttributes(V.item),function(Ae,Ie,ln,Dn){ln.mapper.on("modelToViewPosition",Go,{priority:"highest"});let di=null,Ri=null;for([di,Ri]of Ie)t0(Ae,Ri,ln,Dn),ln.writer.move(ln.writer.createRangeIn(di),ln.writer.createPositionBefore(di)),ln.writer.remove(di);function Go(Da,ws){const Il=Ri.indexOf(ws.modelPosition.nodeAfter);Il<0||(ws.viewPosition=ws.mapper.findPositionIn(di,Il))}ln.mapper.off("modelToViewPosition",Go)}(Zt,dt,W,{reconversion:V.reconversion})}),{priority:c.converterPriority||"normal"}),x.on("reduceChanges",J3(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]=G2(c.view[M],"attribute");else c.view=G2(c.view,"attribute");const x=Zp(c);return M=>{var E;M.on(_,(E=x,(F,V,W)=>{if(!W.consumable.test(V.item,F.name))return;const dt=E(V.attributeOldValue,W,V),Zt=E(V.attributeNewValue,W,V);if(!dt&&!Zt)return;W.consumable.consume(V.item,F.name);const ue=W.writer;if(V.item instanceof Ud||V.item instanceof Ou)ue.wrap(ue.document.selection.getFirstRange(),Zt);else{let Ie=W.mapper.toViewRange(V.range);null!==V.attributeOldValue&&dt&&(Ie=ue.unwrap(Ie,dt)),null!==V.attributeNewValue&&Zt&&ue.wrap(Ie,Zt)}}),{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 x=Zp(c);return M=>{var E;M.on(_,(E=x,(F,V,W)=>{if(!W.consumable.test(V.item,F.name))return;const dt=E(V.attributeOldValue,W,V),Zt=E(V.attributeNewValue,W,V);if(!dt&&!Zt)return;W.consumable.consume(V.item,F.name);const ue=W.mapper.toViewElement(V.item),Ae=W.writer;if(!ue)throw new nt("conversion-attribute-to-attribute-on-text",W.dispatcher,V);if(null!==V.attributeOldValue&&dt)if("class"==dt.key){const Ie=Ss(dt.value);for(const ln of Ie)Ae.removeClass(ln,ue)}else if("style"==dt.key){const Ie=Object.keys(dt.value);for(const ln of Ie)Ae.removeStyle(ln,ue)}else Ae.removeAttribute(dt.key,ue);if(null!==V.attributeNewValue&&Zt)if("class"==Zt.key){const Ie=Ss(Zt.value);for(const ln of Ie)Ae.addClass(ln,ue)}else if("style"==Zt.key){const Ie=Object.keys(Zt.value);for(const ln of Ie)Ae.setStyle(ln,Zt.value[ln],ue)}else Ae.setAttribute(Zt.key,Zt.value,ue)}),{priority:c.converterPriority||"normal"})}}(r))}markerToElement(r){return this.add(function(c){const u=G2(c.view,"ui");return _=>{var x;_.on(`addMarker:${c.model}`,(x=u,(M,E,F)=>{E.isOpening=!0;const V=x(E,F);E.isOpening=!1;const W=x(E,F);if(!V||!W)return;const dt=E.markerRange;if(dt.isCollapsed&&!F.consumable.consume(dt,M.name))return;for(const Ae of dt)if(!F.consumable.consume(Ae.item,M.name))return;const Zt=F.mapper,ue=F.writer;ue.insert(Zt.toViewPosition(dt.start),V),F.mapper.bindElementToMarker(V,E.markerName),dt.isCollapsed||(ue.insert(Zt.toViewPosition(dt.end),W),F.mapper.bindElementToMarker(W,E.markerName)),M.stop()}),{priority:c.converterPriority||"normal"}),_.on(`removeMarker:${c.model}`,(M,E,F)=>{const V=F.mapper.markerNameToElements(E.markerName);if(V){for(const W of V)F.mapper.unbindElementFromMarkerName(W,E.markerName),F.writer.clear(F.writer.createRangeOn(W),W);F.writer.clearClonedElementsGroup(E.markerName),M.stop()}},{priority:c.converterPriority||"normal"})}}(r))}markerToHighlight(r){return this.add((c=r,u=>{var _,x;u.on(`addMarker:${c.model}`,(_=c.view,(x,M,E)=>{if(!M.item||!(M.item instanceof Ud||M.item instanceof Ou||M.item.is("$textProxy")))return;const F=Q2(_,M,E);if(!F||!E.consumable.consume(M.item,x.name))return;const V=E.writer,W=Xg(V,F);if(M.item instanceof Ud||M.item instanceof Ou)V.wrap(V.document.selection.getFirstRange(),W);else{const Zt=E.mapper.toViewRange(M.range),ue=V.wrap(Zt,W);for(const Ae of ue.getItems())if(Ae.is("attributeElement")&&Ae.isSimilar(W)){E.mapper.bindElementToMarker(Ae,M.markerName);break}}}),{priority:c.converterPriority||"normal"}),u.on(`addMarker:${c.model}`,(x=c.view,(M,E,F)=>{if(!(E.item&&E.item instanceof Jr))return;const V=Q2(x,E,F);if(!V||!F.consumable.test(E.item,M.name))return;const W=F.mapper.toViewElement(E.item);if(W&&W.getCustomProperty("addHighlight")){F.consumable.consume(E.item,M.name);for(const dt of Si._createIn(E.item))F.consumable.consume(dt.item,M.name);W.getCustomProperty("addHighlight")(W,V,F.writer),F.mapper.bindElementToMarker(W,E.markerName)}}),{priority:c.converterPriority||"normal"}),u.on(`removeMarker:${c.model}`,function(x){return(M,E,F)=>{if(E.markerRange.isCollapsed)return;const V=Q2(x,E,F);if(!V)return;const W=Xg(F.writer,V),dt=F.mapper.markerNameToElements(E.markerName);if(dt){for(const Zt of dt)F.mapper.unbindElementFromMarkerName(Zt,E.markerName),Zt.is("attributeElement")?F.writer.unwrap(F.writer.createRangeOn(Zt),W):Zt.getCustomProperty("removeHighlight")(Zt,V.id,F.writer);F.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 _||(_=x=>({group:u,name:x.substr(c.model.length+1)})),x=>{var M,E;x.on(`addMarker:${u}`,(M=_,(E,F,V)=>{const W=M(F.markerName,V);if(!W)return;const dt=F.markerRange;V.consumable.consume(dt,E.name)&&(Eu(dt,!1,V,F,W),Eu(dt,!0,V,F,W),E.stop())}),{priority:c.converterPriority||"normal"}),x.on(`removeMarker:${u}`,(E=_,(F,V,W)=>{const dt=E(V.markerName,W);if(!dt)return;const Zt=W.mapper.markerNameToElements(V.markerName);if(Zt){for(const Ae of Zt)W.mapper.unbindElementFromMarkerName(Ae,V.markerName),Ae.is("containerElement")?(ue(`data-${dt.group}-start-before`,Ae),ue(`data-${dt.group}-start-after`,Ae),ue(`data-${dt.group}-end-before`,Ae),ue(`data-${dt.group}-end-after`,Ae)):W.writer.clear(W.writer.createRangeOn(Ae),Ae);W.writer.clearClonedElementsGroup(V.markerName),F.stop()}function ue(Ae,Ie){if(Ie.hasAttribute(Ae)){const ln=new Set(Ie.getAttribute(Ae).split(","));ln.delete(dt.name),0==ln.size?W.writer.removeAttribute(Ae,Ie):W.writer.setAttribute(Ae,Array.from(ln).join(","),Ie)}}}),{priority:c.converterPriority||"normal"})}}(r))}}function Xg(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 x=r?m.start:m.end,M=x.nodeAfter&&x.nodeAfter.is("element")?x.nodeAfter:null,E=x.nodeBefore&&x.nodeBefore.is("element")?x.nodeBefore:null;if(M||E){let F,V;r&&M||!r&&!E?(F=M,V=!0):(F=E,V=!1);const W=c.mapper.toViewElement(F);if(W)return void function(dt,Zt,ue,Ae,Ie,ln){const Dn=`data-${ln.group}-${Zt?"start":"end"}-${ue?"before":"after"}`,di=dt.hasAttribute(Dn)?dt.getAttribute(Dn).split(","):[];di.unshift(ln.name),Ae.writer.setAttribute(Dn,di.join(","),dt),Ae.mapper.bindElementToMarker(dt,Ie.markerName)}(W,r,V,c,u,_)}!function(F,V,W,dt,Zt){const Ie=W.writer.createUIElement(`${Zt.group}-${V?"start":"end"}`,Zt.name?{name:Zt.name}:null);W.writer.insert(F,Ie),W.mapper.bindElementToMarker(Ie,dt.markerName)}(c.mapper.toViewPosition(x),r,c,u,_)}function J2(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 G2(m,r){return"function"==typeof m?m:(c,u)=>function(_,x,M){let E;"string"==typeof _&&(_={name:_});const F=x.writer,V=Object.assign({},_.attributes);if(E="container"==M?F.createContainerElement(_.name,V):"attribute"==M?F.createAttributeElement(_.name,V,{priority:_.priority||tm.DEFAULT_PRIORITY}):F.createUIElement(_.name,V),_.styles){const W=Object.keys(_.styles);for(const dt of W)F.setStyle(dt,_.styles[dt],E)}if(_.classes){const W=_.classes;if("string"==typeof W)F.addClass(W,E);else for(const dt of W)F.addClass(dt,E)}return E}(m,u,r)}function Zp(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 Q2(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 J3(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 x of u.changes){const M="attribute"==x.type?x.range.start.nodeAfter:x.position.parent;if(M&&r(M,x)){if(!u.reconvertedElements.has(M)){u.reconvertedElements.add(M);const E=to._createBefore(M);let F=_.length;for(let V=_.length-1;V>=0;V--){const W=_[V],dt=("attribute"==W.type?W.range.start:W.position).compareWith(E);if("before"==dt||"remove"==W.type&&"same"==dt)break;F=V}_.splice(F,0,{type:"remove",name:M.name,position:E,length:1},{type:"reinsert",name:M.name,position:E,length:1})}}else _.push(x)}u.changes=_}}function J6(m){return(r,c,u={})=>{const _=["insert"];for(const x of m.attributes)r.hasAttribute(x)&&_.push(`attribute:${x}`);return!!_.every(x=>c.test(r,x))&&(u.preflight||_.forEach(x=>c.consume(r,x)),!0)}}function t0(m,r,c,u){for(const _ of r)cm(m.root,_,c,u)||c.convertItem(_)}function cm(m,r,c,u){const{writer:_,mapper:x}=c;if(!u.reconversion)return!1;const M=x.toViewElement(r);return!(!M||M.root==m||!c.canReuseView(M)||(_.move(_.createRangeOn(M),x.toViewPosition(to._createBefore(r))),0))}function G6(m,r,{preflight:c}={}){return c?r.test(m,"insert"):r.consume(m,"insert")}function eh(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 W2(m,r,c){const u=c.createContext(m);return!!c.checkChild(u,"paragraph")&&!!c.checkChild(u.push("paragraph"),r)}function e0(m,r){const c=r.createElement("paragraph");return r.insert(c,m),r.createPositionAt(c,0)}var G3=Object.defineProperty,$2=Object.defineProperties,nh=Object.getOwnPropertyDescriptors,ih=Object.getOwnPropertySymbols,Qd=Object.prototype.hasOwnProperty,n0=Object.prototype.propertyIsEnumerable,G_=(m,r,c)=>r in m?G3(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Q6 extends no{elementToElement(r){return this.add(Q3(r))}elementToAttribute(r){return this.add(function(c){Sl(c=U1(c));const u=Wd(c,!1),_=oh(c.view),x=_?`element:${_}`:"element";return M=>{M.on(x,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(x){"string"==typeof x.view&&(x.view={key:x.view});const M=x.view.key;let E;return E="class"==M||"style"==M?{["class"==M?"classes":"styles"]:x.view.value}:{attributes:{[M]:void 0===x.view.value?/[\s\S]*/:x.view.value}},x.view.name&&(E.name=x.view.name),x.view=E,M}(c)),Sl(c,u);const _=Wd(c,!0);return x=>{x.on("element",_,{priority:c.converterPriority||"low"})}}(r))}elementToMarker(r){return this.add(function(c){const u=(M=c.model,(E,F)=>{const V="string"==typeof M?M:M(E,F);return F.writer.createElement("$marker",{"data-name":V})});var M,_;return Q3((_=((M,E)=>{for(var F in E||(E={}))Qd.call(E,F)&&G_(M,F,E[F]);if(ih)for(var F of ih(E))n0.call(E,F)&&G_(M,F,E[F]);return M})({},c),$2(_,nh({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(Mp(u,"start")),x=lm(Mp(u,"end"));return M=>{M.on(`element:${c.view}-start`,_,{priority:c.converterPriority||"normal"}),M.on(`element:${c.view}-end`,x,{priority:c.converterPriority||"normal"});const E=Dt.low,F=Dt.highest,V=Dt.get(c.converterPriority)/F;var W;M.on("element",(W=u,(dt,Zt,ue)=>{const Ae=`data-${W.view}`;function Ie(ln,Dn){for(const di of Dn){const Ri=W.model(di,ue),Go=ue.writer.createElement("$marker",{"data-name":Ri});ue.writer.insert(Go,ln),Zt.modelCursor=Zt.modelCursor.isEqual(ln)?Zt.modelCursor.getShiftedBy(1):Zt.modelCursor._getTransformedByInsertion(ln,1),Zt.modelRange=Zt.modelRange._getTransformedByInsertion(ln,1)[0]}}(ue.consumable.test(Zt.viewItem,{attributes:Ae+"-end-after"})||ue.consumable.test(Zt.viewItem,{attributes:Ae+"-start-after"})||ue.consumable.test(Zt.viewItem,{attributes:Ae+"-end-before"})||ue.consumable.test(Zt.viewItem,{attributes:Ae+"-start-before"}))&&(Zt.modelRange||Object.assign(Zt,ue.convertChildren(Zt.viewItem,Zt.modelCursor)),ue.consumable.consume(Zt.viewItem,{attributes:Ae+"-end-after"})&&Ie(Zt.modelRange.end,Zt.viewItem.getAttribute(Ae+"-end-after").split(",")),ue.consumable.consume(Zt.viewItem,{attributes:Ae+"-start-after"})&&Ie(Zt.modelRange.end,Zt.viewItem.getAttribute(Ae+"-start-after").split(",")),ue.consumable.consume(Zt.viewItem,{attributes:Ae+"-end-before"})&&Ie(Zt.modelRange.start,Zt.viewItem.getAttribute(Ae+"-end-before").split(",")),ue.consumable.consume(Zt.viewItem,{attributes:Ae+"-start-before"})&&Ie(Zt.modelRange.start,Zt.viewItem.getAttribute(Ae+"-start-before").split(",")))}),{priority:E+V})}}(r))}}function Q3(m){const r=lm(m=U1(m)),c=oh(m.view),u=c?`element:${c}`:"element";return _=>{_.on(u,r,{priority:m.converterPriority||"normal"})}}function oh(m){return"string"==typeof m?m:"object"==typeof m&&"string"==typeof m.name?m.name:null}function lm(m){const r=new ps(m.view);return(c,u,_)=>{const x=r.match(u.viewItem);if(!x)return;const M=x.match;if(M.name=!0,!_.consumable.test(u.viewItem,M))return;const E=(W=_,(F=m.model)instanceof Function?F(u.viewItem,W):W.writer.createElement(F));var F,W;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||(x=>x.getAttribute(r)):m.model.value}}function Wd(m,r){const c=new ps(m.view);return(u,_,x)=>{if(!_.modelRange&&r)return;const M=c.match(_.viewItem);if(!M||(function(W,dt){const Zt="function"==typeof W?W(dt):W;return!("object"==typeof Zt&&!oh(Zt)||Zt.classes||Zt.attributes||Zt.styles)}(m.view,_.viewItem)?M.match.name=!0:delete M.match.name,!x.consumable.test(_.viewItem,M.match)))return;const E=m.model.key,F="function"==typeof m.model.value?m.model.value(_.viewItem,x):m.model.value;null!==F&&(_.modelRange||Object.assign(_,x.convertChildren(_.viewItem,_.modelCursor)),function(W,dt,Zt,ue){let Ae=!1;for(const Ie of Array.from(W.getItems({shallow:Zt})))ue.schema.checkAttribute(Ie,dt.key)&&(Ae=!0,Ie.hasAttribute(dt.key)||ue.writer.setAttribute(dt.key,dt.value,Ie));return Ae}(_.modelRange,{key:E,value:F},r,x)&&(x.consumable.test(_.viewItem,{name:!0})&&(M.match.name=!0),x.consumable.consume(_.viewItem,M.match)))}}function Mp(m,r){return{view:`${m.view}-${r}`,model:(c,u)=>{const _=c.getAttribute("name"),x=m.model(_,u);return u.writer.createElement("$marker",{"data-name":x})}}}function Ga(m,r){return m.isCollapsed?function(c,u){const _=c.start,x=u.getNearestSelectionRange(_);if(!x){const E=_.getAncestors().reverse().find(F=>u.isObject(F));return E?Si._createOn(E):null}if(!x.isCollapsed)return x;const M=x.start;return _.isEqual(M)?null:new Si(M)}(m,r):function(c,u){const{start:_,end:x}=c,M=u.checkChild(_,"$text"),E=u.checkChild(x,"$text"),F=u.getLimitElement(_),V=u.getLimitElement(x);if(F===V){if(M&&E)return null;if(function(Zt,ue,Ae){const Ie=Zt.nodeAfter&&!Ae.isLimit(Zt.nodeAfter)||Ae.checkChild(Zt,"$text"),ln=ue.nodeBefore&&!Ae.isLimit(ue.nodeBefore)||Ae.checkChild(ue,"$text");return Ie||ln}(_,x,u)){const Zt=_.nodeAfter&&u.isSelectable(_.nodeAfter)?null:u.getNearestSelectionRange(_,"forward"),ue=x.nodeBefore&&u.isSelectable(x.nodeBefore)?null:u.getNearestSelectionRange(x,"backward");return new Si(Zt?Zt.start:_,ue?ue.end:x)}}const W=F&&!F.is("rootElement"),dt=V&&!V.is("rootElement");if(W||dt){const Zt=_.nodeAfter&&x.nodeBefore&&_.nodeAfter.parent===x.nodeBefore.parent,ue=W&&(!Zt||!Q_(_.nodeAfter,u)),Ae=dt&&(!Zt||!Q_(x.nodeBefore,u));let Ie=_,ln=x;return ue&&(Ie=to._createBefore(rh(F,u))),Ae&&(ln=to._createAfter(rh(V,u))),new Si(Ie,ln)}return null}(m,r)}function rh(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(Ue()){constructor(r,c){super(),this.model=r,this.view=new Vg(c),this.mapper=new B3,this.downcastDispatcher=new Gg({mapper:this.mapper,schema:r.schema});const u=this.model.document,_=u.selection,x=this.model.markers;var M,E,F,V,W;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(V=>{this.downcastDispatcher.convertChanges(u.differ,x,V),this.downcastDispatcher.convertSelection(_,x,V)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",(V=this.model,W=this.mapper,(dt,Zt)=>{const ue=Zt.newSelection,Ae=[];for(const ln of ue.getRanges())Ae.push(W.toModelRange(ln));const Ie=V.createSelection(Ae,{backward:ue.isBackward});Ie.isEqual(V.document.selection)||V.change(ln=>{ln.setSelection(Ie)})})),this.listenTo(this.view.document,"beforeinput",(M=this.mapper,E=this.model.schema,F=this.view,(V,W)=>{if(!F.document.isComposing||D_isAndroid)for(let dt=0;dt{if(!dt.consumable.consume(W.item,V.name))return;const Zt=dt.writer,ue=dt.mapper.toViewPosition(W.range.start),Ae=Zt.createText(W.item.data);Zt.insert(ue,Ae)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(V,W,dt)=>{dt.convertAttributes(W.item),W.reconversion||!W.item.is("element")||W.item.isEmpty||dt.convertChildren(W.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(V,W,dt)=>{const Zt=dt.mapper.toViewPosition(W.position),ue=W.position.getShiftedBy(W.length),Ae=dt.mapper.toViewPosition(ue,{isPhantom:!0}),Ie=dt.writer.createRange(Zt,Ae),ln=dt.writer.remove(Ie.getTrimmed());for(const Dn of dt.writer.createRangeIn(ln).getItems())dt.mapper.unbindViewElement(Dn,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("cleanSelection",(V,W,dt)=>{const Zt=dt.writer,ue=Zt.document.selection;for(const Ae of ue.getRanges())Ae.isCollapsed&&Ae.end.parent.isAttached()&&dt.writer.mergeAttributes(Ae.start);Zt.setSelection(null)}),this.downcastDispatcher.on("selection",(V,W,dt)=>{const Zt=W.selection;if(Zt.isCollapsed||!dt.consumable.consume(Zt,"selection"))return;const ue=[];for(const Ae of Zt.getRanges())ue.push(dt.mapper.toViewRange(Ae));dt.writer.setSelection(ue,{backward:Zt.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(V,W,dt)=>{const Zt=W.selection;if(!Zt.isCollapsed||!dt.consumable.consume(Zt,"selection"))return;const ue=dt.writer,Ae=Zt.getFirstPosition(),Ie=dt.mapper.toViewPosition(Ae),ln=ue.breakAttributes(Ie);ue.setSelection(ln)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(V=>{if("$graveyard"==V.rootName)return null;const W=new qm(this.view.document,V.name);return W.rootName=V.rootName,this.mapper.bindElements(V,W),W})}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 nt("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 ch(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 x=r.getStyleNames();for(const M of x)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 sh=["attributes","classes","styles"];class ch{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 sh)c in r&&this._add(c,r[c])}test(r){if(r.name&&!this._canConsumeName)return this._canConsumeName;for(const c of sh)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 sh)c in r&&this._consume(c,r[c])}revert(r){r.name&&(this._canConsumeName=!0);for(const c of sh)c in r&&this._revert(c,r[c])}_add(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const x of u){if("attributes"===r&&("class"===x||"style"===x))throw new nt("viewconsumable-invalid-attribute",this);if(_.set(x,!0),"styles"===r)for(const M of this.element.document.stylesProcessor.getRelatedStyles(x))_.set(M,!0)}}_test(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const x of u)if("attributes"!==r||"class"!==x&&"style"!==x){const M=_.get(x);if(void 0===M)return null;if(!M)return!1}else{const M="class"==x?"classes":"styles",E=this._test(M,[...this._consumables[M].keys()]);if(!0!==E)return E}return!0}_consume(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const x of u)if("attributes"!==r||"class"!==x&&"style"!==x){if(_.set(x,!1),"styles"==r)for(const M of this.element.document.stylesProcessor.getRelatedStyles(x))_.set(M,!1)}else{const M="class"==x?"classes":"styles";this._consume(M,[...this._consumables[M].keys()])}}_revert(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const x of u)if("attributes"!==r||"class"!==x&&"style"!==x)!1===_.get(x)&&_.set(x,!0);else{const M="class"==x?"classes":"styles";this._revert(M,[...this._consumables[M].keys()])}}}class W3 extends(Ue()){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 nt("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 nt("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 nt("schema-check-merge-no-element-before",this);if(!(_ instanceof Jr))throw new nt("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 x=r(u,_);"boolean"==typeof x&&(c.stop(),c.return=x)},{priority:"high"})}addAttributeCheck(r){this.on("checkAttribute",(c,[u,_])=>{const x=r(u,_);"boolean"==typeof x&&(c.stop(),c.return=x)},{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 Si?[r]:Array.from(r.getRanges())).reduce((u,_)=>{const x=_.getCommonAncestor();return u?u.getCommonAncestor(x,{includeSelf:!0}):x},null);!this.isLimit(c)&&c.parent;)c=c.parent;return c}checkAttributeInSelection(r,c){if(r.isCollapsed){const u=[...r.getFirstPosition().getAncestors(),new ss("",r.getAttributes())];return this.checkAttribute(u,c)}{const u=r.getRanges();for(const _ of u)for(const x of _)if(this.checkAttribute(x.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 Si(r);let u,_;const x=r.getAncestors().reverse().find(M=>this.isLimit(M))||r.root;"both"!=c&&"backward"!=c||(u=new Gd({boundaries:Si._createIn(x),startPosition:r,direction:"backward"})),"both"!=c&&"forward"!=c||(_=new Gd({boundaries:Si._createIn(x),startPosition:r}));for(const M of function*(E,F){let V=!1;for(;!V;){if(V=!0,E){const W=E.next();W.done||(V=!1,yield{walker:E,value:W.value})}if(F){const W=F.next();W.done||(V=!1,yield{walker:F,value:W.value})}}}(u,_)){const F=M.value;if(F.type==(M.walker==u?"elementEnd":"elementStart")&&this.isObject(F.item))return Si._createOn(F.item);if(this.checkChild(F.nextPosition,"$text"))return new Si(F.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[x,M]of Object.entries(c))_.schema.checkAttribute(r,x)&&u.setAttribute(x,M,r)}removeDisallowedAttributes(r,c){for(const u of r)if(u.is("$text"))lh(this,u,c);else{const _=Si._createIn(u).getPositions();for(const x of _)lh(this,x.nodeBefore||x.parent,c)}}getAttributesWithProperty(r,c,u){const _={};for(const[x,M]of r.getAttributes()){const E=this.getAttributeProperties(x);void 0!==E[c]&&(void 0!==u&&u!==E[c]||(_[x]=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[_]=o0(c[_],_);for(const _ of u)$3(r,_);for(const _ of u)W6(r,_);for(const _ of u)K3(r,_);for(const _ of u)Zd(r,_),pm(r,_);for(const _ of u)$6(r,_),kp(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 x=this.getDefinition(_);return this._checkContextMatch(x,c,u-1)}}return!1}*_getValidRangesForRange(r,c){let u=r.start,_=r.start;for(const x of r.getItems({shallow:!0}))x.is("element")&&(yield*this._getValidRangesForRange(Si._createIn(x),c)),this.checkAttribute(x,c)||(u.isEqual(_)||(yield new Si(u,_)),u=to._createAfter(x)),_=to._createAfter(x);u.isEqual(_)||(yield new Si(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(Fc)}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 o0(m,r){const c={name:r,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(u,_){for(const x of u){const M=Object.keys(x).filter(E=>E.startsWith("is"));for(const E of M)_[E]=!!x[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 x of u){const M=x.inheritAllFrom;M&&(_.allowContentOf.push(M),_.allowWhere.push(M),_.allowAttributesOf.push(M),_.inheritTypesFrom.push(M))}}(m,c),c}function $3(m,r){const c=m[r];for(const u of c.allowChildren){const _=m[u];_&&_.allowIn.push(r)}c.allowChildren.length=0}function W6(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 K3(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 x=Object.keys(_).filter(M=>M.startsWith("is"));for(const M of x)M in c||(c[M]=_[M])}}delete c.inheritTypesFrom}function $6(m,r){const c=m[r],u=c.allowIn.filter(_=>m[_]);c.allowIn=Array.from(new Set(u))}function kp(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 Fc(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 lh(m,r,c){for(const u of r.getAttributeKeys())m.checkAttribute(r,u)||c.removeAttribute(u,r)}var Md=Object.defineProperty,a0=Object.defineProperties,uh=Object.getOwnPropertyDescriptors,r0=Object.getOwnPropertySymbols,Gm=Object.prototype.hasOwnProperty,K2=Object.prototype.propertyIsEnumerable,X2=(m,r,c)=>r in m?Md(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Qm extends(Oe()){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 x in _||(_={}))Gm.call(_,x)&&X2(u,x,_[x]);if(r0)for(var x of r0(_))K2.call(_,x)&&X2(u,x,_[x]);return u})({},r),a0(c,uh({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 F;for(const V of new dm(M)){const W={};for(const Zt of V.getAttributeKeys())W[Zt]=V.getAttribute(Zt);const dt=E.createElement(V.name,W);F&&E.insert(dt,F),F=to._createAt(dt,0)}return F}(u,c),this.conversionApi.writer=c,this.conversionApi.consumable=W_.createFrom(r),this.conversionApi.store={};const{modelRange:_}=this._convertItem(r,this._modelCursor),x=c.createDocumentFragment();if(_){this._removeEmptyElements();for(const M of Array.from(this._modelCursor.parent.getChildren()))c.append(M,x);x.markers=function(M,E){const F=new Set,V=new Map,W=Si._createIn(M).getItems();for(const dt of W)dt.is("element","$marker")&&F.add(dt);for(const dt of F){const Zt=dt.getAttribute("data-name"),ue=E.createPositionBefore(dt);V.has(Zt)?V.get(Zt).end=ue.clone():V.set(Zt,new Si(ue.clone())),E.remove(dt)}return V}(x,c)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,x}_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 Si))throw new nt("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 Si(u);for(const x of Array.from(r.getChildren())){const M=this._convertItem(x,u);M.modelRange instanceof Si&&(_.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 x=this._cursorParents.get(r);c.modelCursor=x?_.createPositionAt(x,0):c.modelRange.end}_splitToAllowedParent(r,c){const{schema:u,writer:_}=this.conversionApi;let x=u.findAllowedParent(c,r);if(x){if(x===c.parent)return{position:c};this._modelCursor.parent.getAncestors().includes(x)&&(x=null)}if(!x)return W2(c,r,u)?{position:e0(c,_)}:null;const M=this.conversionApi.writer.split(c,x),E=[];for(const V of M.range.getWalker())if("elementEnd"==V.type)E.push(V.item);else{const W=E.pop();this._registerSplitPair(W,V.item)}const F=M.range.end.parent;return this._cursorParents.set(r,F),{position:M.position,cursorParent:F}}_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 s0{constructor(r){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new F_(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(Oe()){constructor(r,c){super(),this.model=r,this.mapper=new B3,this.downcastDispatcher=new Gg({mapper:this.mapper,schema:r.schema}),this.downcastDispatcher.on("insert:$text",(u,_,x)=>{if(!x.consumable.consume(_.item,u.name))return;const M=x.writer,E=x.mapper.toViewPosition(_.range.start),F=M.createText(_.item.data);M.insert(E,F)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(u,_,x)=>{x.convertAttributes(_.item),_.reconversion||!_.item.is("element")||_.item.isEmpty||x.convertChildren(_.item)},{priority:"lowest"}),this.upcastDispatcher=new Qm({schema:r.schema}),this.viewDocument=new Xp(c),this.stylesProcessor=c,this.htmlProcessor=new s0(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Hm(this.viewDocument),this.upcastDispatcher.on("text",(u,_,{schema:x,consumable:M,writer:E})=>{let F=_.modelCursor;if(!M.test(_.viewItem))return;if(!x.checkChild(F,"$text")){if(!W2(F,"$text",x)||0==_.viewItem.data.trim().length)return;const W=F.nodeBefore;F=e0(F,E),W&&W.is("element","$marker")&&(E.move(E.createRangeOn(W),F),F=E.createPositionAfter(W))}M.consume(_.viewItem);const V=E.createText(_.viewItem.data);E.insert(V,F),_.modelRange=E.createRange(F,F.getShiftedBy(V.offsetSize)),_.modelCursor=_.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(u,_,x)=>{if(!_.modelRange&&x.consumable.consume(_.viewItem,{name:!0})){const{modelRange:M,modelCursor:E}=x.convertChildren(_.viewItem,_.modelCursor);_.modelRange=M,_.modelCursor=E}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(u,_,x)=>{if(!_.modelRange&&x.consumable.consume(_.viewItem,{name:!0})){const{modelRange:M,modelCursor:E}=x.convertChildren(_.viewItem,_.modelCursor);_.modelRange=M,_.modelCursor=E}},{priority:"lowest"}),Ue().prototype.decorate.call(this,"init"),Ue().prototype.decorate.call(this,"set"),Ue().prototype.decorate.call(this,"get"),Ue().prototype.decorate.call(this,"toView"),Ue().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},eh)},{priority:"lowest"})}get(r={}){const{rootName:c="main",trim:u="empty"}=r;if(!this._checkIfRootsExists([c]))throw new nt("datacontroller-get-non-existent-root",this);const _=this.model.document.getRoot(c);return _.isAttached()||Tt("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 x=Si._createIn(r),M=new Td(u);this.mapper.bindElements(r,M);const E=r.is("documentFragment")?r.markers:function(F){const V=[],W=F.root.document;if(!W)return new Map;const dt=Si._createIn(F);for(const Zt of W.model.markers){const ue=Zt.getRange(),Ae=ue.isCollapsed,Ie=ue.start.isEqual(dt.start)||ue.end.isEqual(dt.end);if(Ae&&Ie)V.push([Zt.name,ue]);else{const ln=dt.getIntersection(ue);ln&&V.push([Zt.name,ln])}}return V.sort(([Zt,ue],[Ae,Ie])=>{if("after"!==ue.end.compareWith(Ie.start))return 1;if("before"!==ue.start.compareWith(Ie.end))return-1;switch(ue.start.compareWith(Ie.start)){case"before":return 1;case"after":return-1;default:switch(ue.end.compareWith(Ie.end)){case"before":return 1;case"after":return-1;default:return Ae.localeCompare(Zt)}}}),new Map(V)}(r);return this.downcastDispatcher.convert(x,E,_,c),M}init(r){if(this.model.document.version)throw new nt("datacontroller-init-document-not-empty",this);let c={};if("string"==typeof r?c.main=r:c=r,!this._checkIfRootsExists(Object.keys(c)))throw new nt("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},u=>{for(const _ of Object.keys(c)){const x=this.model.document.getRoot(_);u.insert(this.parse(c[_],x),x,0)}}),Promise.resolve()}set(r,c={}){let u={};if("string"==typeof r?u.main=r:u=r,!this._checkIfRootsExists(Object.keys(u)))throw new nt("datacontroller-set-non-existent-root",this);this.model.enqueueChange(c.batchType||{},_=>{_.setSelection(null),_.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const x of Object.keys(u)){const M=this.model.document.getRoot(x);_.remove(_.createRangeIn(M)),_.insert(this.parse(u[x],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 nt("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:r,dispatchers:[c],isDowncast:u})}for(r){if(!this._helpers.has(r))throw new nt("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 nt("conversion-group-exists",this);const _=u?new j6(c):new Q6(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*c0(c,u,_)}else yield*c0(m.model,m.view,m.upcastAlso)}function*c0(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 dh(m,r){const c=mh(r),u=c.reduce((M,E)=>M+E.offsetSize,0),_=m.parent;$m(m);const x=m.index;return _._insertChild(x,c),J1(_,x+c.length),J1(_,x),new Si(m,m.getShiftedBy(u))}function ph(m){if(!m.isFlat)throw new nt("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 nt("operation-utils-move-range-not-flat",this);const c=ph(m);return dh(r=r._getTransformedByDeletion(m.start,m.end.offset-m.start.offset),c)}function mh(m){const r=[];!function c(u){if("string"==typeof u)r.push(new ss(u));else if(u instanceof Ku)r.push(new ss(u.data,u.getAttributes()));else if(u instanceof oc)r.push(u);else if(it(u))for(const _ of u)c(_)}(m);for(let c=1;cr.maxOffset)throw new nt("move-operation-nodes-do-not-exist",this);if(r===c&&u<_&&_=u&&this.targetPosition.path[x]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))),dh(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 x of r.nodes)u.push(x.name?Jr.fromJSON(x):ss.fromJSON(x));const _=new _c(to.fromJSON(r.position,c),u,r.baseVersion);return _.shouldReceiveAttributes=r.shouldReceiveAttributes,_}}class Ar extends ed{constructor(r,c,u,_,x){super(x),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 Si(this.splitPosition,r)}get affectedSelectable(){const r=[Si._createFromPositionAndShift(this.splitPosition,0),Si._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&r.push(Si._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 fs(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(x=>new Wr(x,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,fs,(m,r)=>{const c=[];m.range.start.hasSameParentAs(r.deletionPosition)&&(m.range.containsPosition(r.deletionPosition)||m.range.start.isEqual(r.deletionPosition))&&c.push(Si._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 x=Si._createFromPositionAndShift(_.sourcePosition,_.howMany);let M=null,E=[];x.containsRange(u,!0)?M=u:u.start.hasSameParentAs(x.start)?(E=u.getDifference(x),M=u.getIntersection(x)):E=[u];const F=[];for(let V of E){V=V._getTransformedByDeletion(_.sourcePosition,_.howMany);const W=_.getMovedRangeStart(),dt=V.start.hasSameParentAs(W),Zt=V._getTransformedByInsertion(W,_.howMany,dt);F.push(...Zt)}return M&&F.push(M._getTransformedByMove(_.sourcePosition,_.targetPosition,_.howMany,!1)[0]),F}(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 Si(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,fs,(m,r)=>(m.position=m.position._getTransformedByMergeOperation(r),[m])),Zr(Ts,_c,(m,r)=>(m.oldRange&&(m.oldRange=m.oldRange._getTransformedByInsertOperation(r)[0]),m.newRange&&(m.newRange=m.newRange._getTransformedByInsertOperation(r)[0]),[m])),Zr(Ts,Ts,(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(Ts,fs,(m,r)=>(m.oldRange&&(m.oldRange=m.oldRange._getTransformedByMergeOperation(r)),m.newRange&&(m.newRange=m.newRange._getTransformedByMergeOperation(r)),[m])),Zr(Ts,ir,(m,r,c)=>{if(m.oldRange&&(m.oldRange=Si._createFromRanges(m.oldRange._getTransformedByMoveOperation(r))),m.newRange){if(c.abRelation){const u=Si._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=Si._createFromRanges(m.newRange._getTransformedByMoveOperation(r))}return[m]}),Zr(Ts,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(fs,_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(fs,fs,(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 x=r.targetPosition._getTransformedByMergeOperation(r),M=m.targetPosition._getTransformedByMergeOperation(r);return[new ir(x,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(fs,ir,(m,r,c)=>{const u=Si._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(fs,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=Si._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=Si._createFromPositionAndShift(m.sourcePosition,m.howMany),_=Si._createFromPositionAndShift(r.sourcePosition,r.howMany);let x,M=c.aIsStrong,E=!c.aIsStrong;if("insertBefore"==c.abRelation||"insertAfter"==c.baRelation?E=!0:"insertAfter"!=c.abRelation&&"insertBefore"!=c.baRelation||(E=!1),x=m.targetPosition.isEqual(r.targetPosition)&&E?m.targetPosition._getTransformedByDeletion(r.sourcePosition,r.howMany):m.targetPosition._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),tf(m,r)&&tf(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],x);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],x);const F=ct(m.sourcePosition.getParentPath(),r.sourcePosition.getParentPath());if("prefix"==F||"extension"==F)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],x);"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 V=[],W=u.getDifference(_);for(const Zt of W){Zt.start=Zt.start._getTransformedByDeletion(r.sourcePosition,r.howMany),Zt.end=Zt.end._getTransformedByDeletion(r.sourcePosition,r.howMany);const ue="same"==ct(Zt.start.getParentPath(),r.getMovedRangeStart().getParentPath()),Ae=Zt._getTransformedByInsertion(r.getMovedRangeStart(),r.howMany,ue);V.push(...Ae)}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===V.length?V.push(dt):1==V.length?_.start.isBefore(u.start)||_.start.isEqual(u.start)?V.unshift(dt):V.push(dt):V.splice(1,0,dt)),0===V.length?[new fc(m.baseVersion)]:mm(V,x)}),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 _=Si._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 Si(r.splitPosition,_.end);return M=M._getTransformedBySplitOperation(r),mm([new Si(_.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 x=[_._getTransformedBySplitOperation(r)];if(r.graveyardPosition){const M=_.start.isEqual(r.graveyardPosition)||_.containsPosition(r.graveyardPosition);m.howMany>1&&M&&!c.aWasUndone&&x.push(Si._createFromPositionAndShift(r.insertionPosition,1))}return mm(x,u)}),Zr(ir,fs,(m,r,c)=>{const u=Si._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 x=[];let M=r.graveyardPosition.clone(),E=r.targetPosition._getTransformedByMergeOperation(r);m.howMany>1&&(x.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 F=r.deletionPosition._getCombined(m.sourcePosition,m.targetPosition),V=new ir(M,1,F,0),W=V.getMovedRangeStart().path.slice();W.push(0);const dt=new to(V.targetPosition.root,W);E=E._getTransformedByMove(M,F,1);const Zt=new ir(E,r.howMany,dt,0);return x.push(V),x.push(Zt),x}const _=Si._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,fs,(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"==ct(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(ml,ml,(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),x=Ar.getInsertionPosition(new to(r.graveyardPosition.root,u)),M=new Ar(_,0,x,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=Si._createFromPositionAndShift(r.sourcePosition,r.howMany);if(m.graveyardPosition){const x=u.start.isEqual(m.graveyardPosition)||u.containsPosition(m.graveyardPosition);if(!c.bWasUndone&&x){const M=m.splitPosition._getTransformedByMoveOperation(r),E=m.graveyardPosition._getTransformedByMoveOperation(r),F=E.path.slice();F.push(0);const V=new to(E.root,F);return[new ir(M,m.howMany,V,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:x,offset:M}=c.abRelation;return m.howMany+=x,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 x=[];return r.howMany&&x.push(new ir(r.moveTargetPosition,r.howMany,r.splitPosition,0)),m.howMany&&x.push(new ir(m.splitPosition,m.howMany,m.moveTargetPosition,0)),x}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&&K6.call(this,c)},{priority:"low"})}function K6(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}:{},Tt("batch-constructor-deprecated-string-type"));const{isUndoable:c=!0,isLocal:u=!0,isUndo:_=!1,isTyping:x=!1}=r;this.operations=[],this.isUndoable=c,this.isLocal=u,this.isUndo=_,this.isTyping=x}get type(){return Tt("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 X6=Object.defineProperty,t4=Object.defineProperties,wv=Object.getOwnPropertyDescriptors,fh=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,e4=Object.prototype.propertyIsEnumerable,Gl=(m,r,c)=>r in m?X6(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,nf=(m,r)=>{for(var c in r||(r={}))ef.call(r,c)&&Gl(m,c,r[c]);if(fh)for(var c of fh(r))e4.call(r,c)&&Gl(m,c,r[c]);return m};class n4{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=Si._createFromPositionAndShift(c.position,1);for(const _ of this._markerCollection.getMarkersIntersectingRange(u)){const x=_.getData();this.bufferMarkerChange(_.name,x,x)}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 x=c.targetPosition.parent;this._isInInsertedElement(x)||this._markInsert(x,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,x=r.range&&c.range&&!r.range.isEqual(c.range);if(u||_||x)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((W,dt)=>W.offset===dt.offset?W.type!=dt.type?"remove"==W.type?-1:1:0:W.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(d0),r.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map(r=>{const c=nf({},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 x=this._changedRoots.get(r)||{name:r},M=x.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 x.attributes,void 0===x.state&&this._changedRoots.delete(r)):(x.attributes=M,this._changedRoots.set(r,x))}_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=Si._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=nf({},_),t4(c,wv({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(_>x){const M={type:"attribute",offset:x,howMany:_-x,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.offsetx?(r.nodesToHandle=_-x,r.offset=x):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&&_<=x?(r.nodesToHandle=0,r.howMany=0,r.offset=0):r.offset<=u.offset&&_>=x&&(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[x,M]of c){const E=u.has(x)?u.get(x):null;E!==M&&_.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:x,attributeOldValue:M,attributeNewValue:E,changeCount:this._changeCount++}),u.delete(x)}for(const[x,M]of u)_.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:x,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 x of u)if("insert"==x.type&&_>=x.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 nt("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,F]of this._gaps)r>E&&rE&&_this.lastOperation.baseVersion)return[];let x=this._baseVersionToOperationIndex.get(r);void 0===x&&(x=0);let M=this._baseVersionToOperationIndex.get(_);return void 0===M&&(M=this._operations.length-1),this._operations.slice(x,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,e5=Object.defineProperties,Uv=Object.getOwnPropertyDescriptors,Dp=Object.getOwnPropertySymbols,gh=Object.prototype.hasOwnProperty,bh=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={}))gh.call(r,c)&&fm(m,c,r[c]);if(Dp)for(var c of Dp(r))bh.call(r,c)&&fm(m,c,r[c]);return m},Xm=(m,r)=>e5(m,Uv(r));const af="$graveyard";class n5 extends(Oe()){constructor(r){super(),this.model=r,this.history=new t5,this.selection=new Ou(this),this.roots=new ec({idProperty:"rootName"}),this.differ=new n4(r.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",af),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,_,x,M)=>{const E=Xm(X_({},u.getData()),{range:x});this.differ.bufferMarkerChange(u.name,M,E),null===_&&u.on("change",(F,V)=>{const W=u.getData();this.differ.bufferMarkerChange(u.name,Xm(X_({},W),{range:V}),W)})}),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(af)}createRoot(r="$root",c="main"){if(this.roots.get(c))throw new nt("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!cn(c,u)&&!hd(c,u)}return!0}var vh=Object.defineProperty,p0=Object.defineProperties,o5=Object.getOwnPropertyDescriptors,m0=Object.getOwnPropertySymbols,a5=Object.prototype.hasOwnProperty,xh=Object.prototype.propertyIsEnumerable,Q1=(m,r,c)=>r in m?vh(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class t2 extends(Oe()){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 x=r instanceof hm?r.name:r;if(x.includes(","))throw new nt("markercollection-incorrect-marker-name",this);const M=this._markers.get(x);if(M){const W=M.getData(),dt=M.getRange();let Zt=!1;return dt.isEqual(c)||(M._attachLiveRange(Xu.fromRange(c)),Zt=!0),u!=M.managedUsingOperations&&(M._managedUsingOperations=u,Zt=!0),"boolean"==typeof _&&_!=M.affectsData&&(M._affectsData=_,Zt=!0),Zt&&this.fire(`update:${x}`,M,dt,c,W),M}const E=Xu.fromRange(c),F=new hm(x,E,u,_);var V;return this._markers.set(x,F),this.fire(`update:${x}`,F,null,c,(V=((W,dt)=>{for(var Zt in dt||(dt={}))a5.call(dt,Zt)&&Q1(W,Zt,dt[Zt]);if(m0)for(var Zt of m0(dt))xh.call(dt,Zt)&&Q1(W,Zt,dt[Zt]);return W})({},F.getData()),p0(V,o5({range:null})))),F}_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 nt("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(Oe(Up)){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 nt("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new nt("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new nt("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new nt("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new nt("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 nt("detach-operation-on-document-node",this)}_execute(){ph(Si._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Xd extends Up{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):ss.fromJSON(u));return new Xd(c)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,c){const u="string"==typeof(_=c)?[new ss(_)]:(it(_)||(_=[_]),Array.from(_).map(x=>"string"==typeof x?new ss(x):x instanceof Ku?new ss(x.data,x.getAttributes()):x));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 rf{constructor(r,c){this.model=r,this.batch=c}createText(r,c){return new ss(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 ss&&""==r.data)return;const _=to._createAt(c,u);if(r.parent){if(f0(r.root,_.root))return void this.move(Si._createOn(r),_);if(r.root.document)throw new nt("model-writer-insert-forbidden-move",this);this.remove(r)}const M=new _c(_,r,_.root.document?_.root.document.version:null);if(r instanceof ss&&(M.shouldReceiveAttributes=!0),this.batch.addOperation(M),this.model.applyOperation(M),r instanceof Xd)for(const[E,F]of r.markers){const V=to._createAt(F.root,0),W={range:new Si(F.start._getCombined(V,_),F.end._getCombined(V,_)),usingOperation:!0,affectsData:!0};this.model.markers.has(E)?this.updateMarker(E,W):this.addMarker(E,W)}}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 Si){const _=u.getMinimalFlatRanges();for(const x of _)t_(this,r,c,x)}else Ch(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 Si){const u=c.getMinimalFlatRanges();for(const _ of u)t_(this,r,null,_)}else Ch(this,r,null,c)}clearAttributes(r){this._assertWriterUsedCorrectly();const c=u=>{for(const _ of u.getAttributeKeys())this.removeAttribute(_,u)};if(r instanceof Si)for(const u of r.getItems())c(u);else c(r)}move(r,c,u){if(this._assertWriterUsedCorrectly(),!(r instanceof Si))throw new nt("writer-move-invalid-range",this);if(!r.isFlat)throw new nt("writer-move-range-not-flat",this);const _=to._createAt(c,u);if(_.isEqual(r.start))return;if(this._addOperationForAffectedMarkers("move",r),!f0(r.root,_.root))throw new nt("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 Si?r:Si._createOn(r)).getMinimalFlatRanges().reverse();for(const u of c)this._addOperationForAffectedMarkers("move",u),_0(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 nt("writer-merge-no-element-before",this);if(!(u instanceof Jr))throw new nt("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(Si._createIn(u),to._createAt(c,"end")),this.remove(u)}_merge(r){const c=to._createAt(r.nodeBefore,"end"),u=to._createAt(r.nodeAfter,0),x=new to(r.root.document.graveyard,[0]),E=new fs(u,r.nodeAfter.maxOffset,c,x,r.root.document.version);this.batch.addOperation(E),this.model.applyOperation(E)}rename(r,c){if(this._assertWriterUsedCorrectly(),!(r instanceof Jr))throw new nt("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,_,x=r.parent;if(!x.parent)throw new nt("writer-split-element-no-parent",this);if(c||(c=x.parent),!r.parent.getAncestors({includeSelf:!0}).includes(c))throw new nt("writer-split-invalid-limit-element",this);do{const M=x.root.document?x.root.document.version:null,E=x.maxOffset-r.offset,F=Ar.getInsertionPosition(r),V=new Ar(r,E,F,null,M);this.batch.addOperation(V),this.model.applyOperation(V),u||_||(u=x,_=r.parent.nextSibling),x=(r=this.createPositionAfter(r.parent)).parent}while(x!==c);return{position:r,range:new Si(to._createAt(u,"end"),to._createAt(_,0))}}wrap(r,c){if(this._assertWriterUsedCorrectly(),!r.isFlat)throw new nt("writer-wrap-range-not-flat",this);const u=c instanceof Jr?c:new Jr(c);if(u.childCount>0)throw new nt("writer-wrap-element-not-empty",this);if(null!==u.parent)throw new nt("writer-wrap-element-attached",this);this.insert(u,r.start);const _=new Si(r.start.getShiftedBy(1),r.end.getShiftedBy(1));this.move(_,to._createAt(u,0))}unwrap(r){if(this._assertWriterUsedCorrectly(),null===r.parent)throw new nt("writer-unwrap-element-no-parent",this);this.move(Si._createIn(r),this.createPositionAfter(r)),this.remove(r)}addMarker(r,c){if(this._assertWriterUsedCorrectly(),!c||"boolean"!=typeof c.usingOperation)throw new nt("writer-addmarker-no-usingoperation",this);const u=c.usingOperation,_=c.range,x=void 0!==c.affectsData&&c.affectsData;if(this.model.markers.has(r))throw new nt("writer-addmarker-marker-exists",this);if(!_)throw new nt("writer-addmarker-no-range",this);return u?(Pp(this,r,null,_,x),this.model.markers.get(r)):this.model.markers._set(r,_,u,x)}updateMarker(r,c){this._assertWriterUsedCorrectly();const u="string"==typeof r?r:r.name,_=this.model.markers.get(u);if(!_)throw new nt("writer-updatemarker-marker-not-exists",this);if(!c)return Tt("writer-updatemarker-reconvert-using-editingcontroller",{markerName:u}),void this.model.markers._refresh(_);const x="boolean"==typeof c.usingOperation,M="boolean"==typeof c.affectsData,E=M?c.affectsData:_.affectsData;if(!x&&!c.range&&!M)throw new nt("writer-updatemarker-wrong-options",this);const F=_.getRange(),V=c.range?c.range:F;x&&c.usingOperation!==_.managedUsingOperations?c.usingOperation?Pp(this,u,null,V,E):(Pp(this,u,F,null,E),this.model.markers._set(u,V,void 0,E)):_.managedUsingOperations?Pp(this,u,F,V,E):this.model.markers._set(u,V,void 0,E)}removeMarker(r){this._assertWriterUsedCorrectly();const c="string"==typeof r?r:r.name;if(!this.model.markers.has(c))throw new nt("writer-removemarker-no-marker",this);const u=this.model.markers.get(c);u.managedUsingOperations?Pp(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 nt("writer-addroot-root-exists",this);const _=this.model.document,x=new ml(r,c,!0,_,_.version);return this.batch.addOperation(x),this.model.applyOperation(x),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 nt("writer-detachroot-no-root",this);for(const x of this.model.markers)x.getRange().root===c&&this.removeMarker(x);for(const x of c.getAttributeKeys())this.removeAttribute(x,c);this.remove(this.createRangeIn(c));const u=this.model.document,_=new ml(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 nt("writer-incorrect-use",this)}_addOperationForAffectedMarkers(r,c){for(const u of this.model.markers){if(!u.managedUsingOperations)continue;const _=u.getRange();let x=!1;if("move"===r){const M=c;x=M.containsPosition(_.start)||M.start.isEqual(_.start)||M.containsPosition(_.end)||M.end.isEqual(_.end)}else{const F=c.nodeAfter,W=_.end.parent==F&&0==_.end.offset,dt=_.end.nodeAfter==F,Zt=_.start.nodeAfter==F;x=_.start.parent==c.nodeBefore&&_.start.isAtEnd||W||dt||Zt}x&&this.updateMarker(u.name,{range:_})}}}function t_(m,r,c,u){const _=m.model,x=_.document;let M,E,F,V=u.start;for(const dt of u.getWalker({shallow:!0}))F=dt.item.getAttribute(r),M&&E!=F&&(E!=c&&W(),V=M),M=dt.nextPosition,E=F;function W(){const dt=new Si(V,M),ue=new Wr(dt,r,E,c,dt.root.document?x.version:null);m.batch.addOperation(ue),_.applyOperation(ue)}M instanceof to&&M!=V&&E!=c&&W()}function Ch(m,r,c,u){const _=m.model,x=_.document,M=u.getAttribute(r);let E,F;M!=c&&(u.root===u?F=new $d(u,r,M,c,u.document?x.version:null):(E=new Si(to._createBefore(u),m.createPositionAfter(u)),F=new Wr(E,r,M,c,E.root.document?x.version:null)),m.batch.addOperation(F),_.applyOperation(F))}function Pp(m,r,c,u,_){const x=m.model,E=new Ts(r,c,u,x.markers,!!_,x.document.version);m.batch.addOperation(E),x.applyOperation(E)}function _0(m,r,c,u){let _;if(m.root.document){const x=u.document,M=new to(x.graveyard,[0]);_=new ir(m,r,M,x.version)}else _=new gm(m,r);c.addOperation(_),u.applyOperation(_)}function f0(m,r){return m===r||m instanceof nl&&r instanceof nl}function Ah(m,r,c={}){if(r.isCollapsed)return;const u=r.getFirstRange();if("$graveyard"==u.root.rootName)return;const _=m.schema;m.change(x=>{if(!c.doNotResetEntireContent&&function(V,W){const dt=V.getLimitElement(W);if(!W.containsEntireContent(dt))return!1;const Zt=W.getFirstRange();return Zt.start.parent!=Zt.end.parent&&V.checkChild(dt,"paragraph")}(_,r))return void function(V,W){const dt=V.model.schema.getLimitElement(W);V.remove(V.createRangeIn(dt)),g0(V,V.createPositionAt(dt,0),W)}(x,r);const M={};if(!c.doNotAutoparagraph){const V=r.getSelectedElement();V&&Object.assign(M,_.getAttributesWithProperty(V,"copyOnReplace",!0))}const[E,F]=function(V){const W=V.root.document.model,dt=V.start;let Zt=V.end;if(W.hasContent(V,{ignoreMarkers:!0})){const ue=function(Ae){const Ie=Ae.parent,ln=Ie.root.document.model.schema,Dn=Ie.getAncestors({parentFirst:!0,includeSelf:!0});for(const di of Dn){if(ln.isLimit(di))return null;if(ln.isBlock(di))return di}}(Zt);if(ue&&Zt.isTouching(W.createPositionAt(ue,0))){const Ae=W.createSelection(V);W.modifySelection(Ae,{direction:"backward"});const Ie=Ae.getLastPosition(),ln=W.createRange(Ie,Zt);W.hasContent(ln,{ignoreMarkers:!0})||(Zt=Ie)}}return[el.fromPosition(dt,"toPrevious"),el.fromPosition(Zt,"toNext")]}(u);E.isTouching(F)||x.remove(x.createRange(E,F)),c.leaveUnmerged||(function(V,W,dt){const Zt=V.model;if(!h0(V.model.schema,W,dt))return;const[ue,Ae]=function(Ie,ln){const Dn=Ie.getAncestors(),di=ln.getAncestors();let Ri=0;for(;Dn[Ri]&&Dn[Ri]==di[Ri];)Ri++;return[Dn[Ri],di[Ri]]}(W,dt);!ue||!Ae||(!Zt.hasContent(ue,{ignoreMarkers:!0})&&Zt.hasContent(Ae,{ignoreMarkers:!0})?r5(V,W,dt,ue.parent):i4(V,W,dt,ue.parent))}(x,E,F),_.removeDisallowedAttributes(E.parent.getChildren(),x)),b0(x,r,E),!c.doNotAutoparagraph&&function(V,W){const dt=V.checkChild(W,"$text"),Zt=V.checkChild(W,"paragraph");return!dt&&Zt}(_,E)&&g0(x,E,r,M),E.detach(),F.detach()})}function i4(m,r,c,u){const _=r.parent,x=c.parent;if(_!=u&&x!=u){for(r=m.createPositionAfter(_),(c=m.createPositionBefore(x)).isEqual(r)||m.insert(x,r),m.merge(r);c.parent.isEmpty;){const M=c.parent;c=m.createPositionBefore(M),m.remove(M)}h0(m.model.schema,r,c)&&i4(m,r,c,u)}}function r5(m,r,c,u){const _=r.parent,x=c.parent;if(_!=u&&x!=u){for(r=m.createPositionAfter(_),(c=m.createPositionBefore(x)).isEqual(r)||m.insert(_,c);r.parent.isEmpty;){const M=r.parent;r=m.createPositionBefore(M),m.remove(M)}c=m.createPositionBefore(x),function(M,E){const F=E.nodeBefore,V=E.nodeAfter;F.name!=V.name&&M.rename(F,V.name),M.clearAttributes(F),M.setAttributes(Object.fromEntries(V.getAttributes()),F),M.merge(E)}(m,c),h0(m.model.schema,r,c)&&r5(m,r,c,u)}}function h0(m,r,c){const u=r.parent,_=c.parent;return u!=_&&!m.isLimit(u)&&!m.isLimit(_)&&function(x,M,E){const F=new Si(x,M);for(const V of F.getWalker())if(E.isLimit(V.item))return!1;return!0}(r,c,m)}function g0(m,r,c,u={}){const _=m.createElement("paragraph");m.model.schema.setAllowedAttributes(_,u,m),m.insert(_,r),b0(m,c,m.createPositionAt(_,0))}function b0(m,r,c){r instanceof Ou?m.setSelection(c):r.setTo(c)}function sf(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 x=r.createRangeOn(_);_=_.parent,r.remove(x)}})}class o4{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 nt("insertcontent-invalid-insertion-position",this);this.position=u,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?Si._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Si(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 nt("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 nt("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 v0(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 _=as(m.getSelectedBlocks());if(!_)return r.createRange(m.focus);if(_.isEmpty)return r.createRange(r.createPositionAt(_,0));const x=r.createPositionAfter(_);return m.focus.isTouching(x)?r.createRange(x):r.createRange(r.createPositionBefore(_))}function a4(m,r){const{isForward:c,walker:u,unit:_,schema:x,treatEmojiAsSingleUnit:M}=m,{type:E,item:F,nextPosition:V}=r;if("text"==E)return"word"===m.unit?function(W,dt){let Zt=W.position.textNode;for(Zt||(Zt=dt?W.position.nodeAfter:W.position.nodeBefore);Zt&&Zt.is("$text");){const ue=W.position.offset-Zt.startOffset;if(x0(Zt,ue,dt))Zt=dt?W.position.nodeAfter:W.position.nodeBefore;else{if(s5(Zt.data,ue,dt))break;W.next()}}return W.position}(u,c):function(W,dt,Zt){const ue=W.position.textNode;if(ue){const Ae=ue.data;let Ie=W.position.offset-ue.startOffset;for(;cn(Ae,Ie)||"character"==dt&&hd(Ae,Ie)||Zt&&kl(Ae,Ie);)W.next(),Ie=W.position.offset-ue.startOffset}return W.position}(u,_,M);if(E==(c?"elementStart":"elementEnd")){if(x.isSelectable(F))return to._createAt(F,c?"after":"before");if(x.checkChild(V,"$text"))return V}else{if(x.isLimit(F))return void u.skip(()=>!0);if(x.checkChild(V,"$text"))return V}}function r4(m,r){const u=to._createAt(m.root,r?"end":0);return r?new Si(m,u):new Si(u,m)}function s5(m,r,c){return' ,.?!:;"-()'.includes(m.charAt(r+(c?0:-1)))}function x0(m,r,c){return r===(c?m.offsetSize:0)}class hs extends(Ue()){constructor(){super(),this.markers=new t2,this.document=new n5(this),this.schema=new W3,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 ah(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.selection,x=u.schema,M=[];let E=!1;for(const F of _.getRanges()){const V=Ga(F,x);V&&!V.isEqual(F)?(M.push(V),E=!0):M.push(F)}return E&&c.setSelection(function(F){const V=[...F],W=new Set;let dt=1;for(;dt!W.has(ue))}(M),{backward:_.isBackward}),!1}(r,m))}(this),this.document.registerPostFixer(eh),this.on("insertContent",(r,[c,u])=>{var _,x,M;r.return=(x=c,M=u,(_=this).change(E=>{const F=M||_.document.selection;F.isCollapsed||_.deleteContent(F,{doNotAutoparagraph:!0});const V=new o4(_,E,F.anchor),W=[];let dt;if(x.is("documentFragment")){if(x.markers.size){const Ae=[];for(const[Ie,ln]of x.markers){const{start:Dn,end:di}=ln,Ri=Dn.isEqual(di);Ae.push({position:Dn,name:Ie,isCollapsed:Ri},{position:di,name:Ie,isCollapsed:Ri})}Ae.sort(({position:Ie},{position:ln})=>Ie.isBefore(ln)?1:-1);for(const{position:Ie,name:ln,isCollapsed:Dn}of Ae){let di=null,Ri=null;const Go=Ie.parent===x&&Ie.isAtStart,Da=Ie.parent===x&&Ie.isAtEnd;Go||Da?Dn&&(Ri=Go?"start":"end"):(di=E.createElement("$marker"),E.insert(di,Ie)),W.push({name:ln,element:di,collapsed:Ri})}}dt=x.getChildren()}else dt=[x];V.handleNodes(dt);let Zt=V.getSelectionRange();if(x.is("documentFragment")&&W.length){const Ae=Zt?Xu.fromRange(Zt):null,Ie={};for(let ln=W.length-1;ln>=0;ln--){const{name:Dn,element:di,collapsed:Ri}=W[ln],Go=!Ie[Dn];if(Go&&(Ie[Dn]=[]),di){const Da=E.createPositionAt(di,"before");Ie[Dn].push(Da),E.remove(di)}else{const Da=V.getAffectedRange();if(!Da){Ri&&Ie[Dn].push(V.position);continue}Ie[Dn].push(Ri?Da[Ri]:Go?Da.start:Da.end)}}for(const[ln,[Dn,di]]of Object.entries(Ie))Dn&&di&&Dn.root===di.root&&E.addMarker(ln,{usingOperation:!0,affectsData:!0,range:new Si(Dn,di)});Ae&&(Zt=Ae.toRange(),Ae.detach())}Zt&&(F instanceof Ou?E.setSelection(Zt):F.setTo(Zt));const ue=V.getAffectedRange()||_.createRange(F.anchor);return V.destroy(),ue}))}),this.on("insertObject",(r,[c,u,_])=>{r.return=function mu(m,r,c,u={}){if(!m.schema.isObject(r))throw new nt("insertobject-element-not-an-object",m,{object:r});const _=c||m.document.selection;let x=_;u.findOptimalPosition&&m.schema.isBlock(r)&&(x=m.createSelection(v0(_,m,u.findOptimalPosition)));const M=as(_.getSelectedBlocks()),E={};return M&&Object.assign(E,m.schema.getAttributesWithProperty(M,"copyOnReplace",!0)),m.change(F=>{x.isCollapsed||m.deleteContent(x,{doNotAutoparagraph:!0});let V=r;const W=x.anchor.parent;!m.schema.checkChild(W,r)&&m.schema.checkChild(W,"paragraph")&&m.schema.checkChild("paragraph",r)&&(V=F.createElement("paragraph"),F.insert(r,V)),m.schema.setAllowedAttributes(V,E,F);const dt=m.insertContent(V,x);return dt.isCollapsed||u.setSelection&&function(Zt,ue,Ae,Ie){const ln=Zt.model;if("on"==Ae)return void Zt.setSelection(ue,"on");if("after"!=Ae)throw new nt("insertobject-invalid-place-parameter-value",ln);let Dn=ue.nextSibling;ln.schema.isInline(ue)?Zt.setSelection(ue,"after"):(!(Dn&&ln.schema.checkChild(Dn,"$text"))&&ln.schema.checkChild(ue.parent,"paragraph")&&(Dn=Zt.createElement("paragraph"),ln.schema.setAllowedAttributes(Dn,Ie,Zt),ln.insertContent(Dn,Zt.createPositionAfter(ue))),Dn&&Zt.setSelection(Dn,0))}(F,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){nt.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){nt.rethrowUnexpectedError(u,this)}}applyOperation(r){r._execute()}insertContent(r,c,u,..._){const x=e2(c,u);return this.fire("insertContent",[r,x,u,..._])}insertObject(r,c,u,_,...x){const M=e2(c,u);return this.fire("insertObject",[r,M,_,_,...x])}deleteContent(r,c){Ah(this,r,c)}modifySelection(r,c){!function(u,_,x={}){const M=u.schema,E="backward"!=x.direction,F=x.unit?x.unit:"character",V=!!x.treatEmojiAsSingleUnit,dt=new Gd({boundaries:r4(_.focus,E),singleCharacters:!0,direction:E?"forward":"backward"}),Zt={walker:dt,schema:M,isForward:E,unit:F,treatEmojiAsSingleUnit:V};let ue;for(;ue=dt.next();){if(ue.done)return;const Ae=a4(Zt,ue.value);if(Ae)return void(_ instanceof Ou?u.change(Ie=>{Ie.setSelectionFocus(Ae)}):_.setFocus(Ae))}}(this,r,c)}getSelectedContent(r){return u=r,this.change(_=>{const x=_.createDocumentFragment(),M=u.getFirstRange();if(!M||M.isCollapsed)return x;const E=M.start.root,F=M.start.getCommonPath(M.end),V=E.getNodeByPath(F);let W;W=M.start.parent==M.end.parent?M:_.createRange(_.createPositionAt(V,M.start.path[F.length]),_.createPositionAt(V,M.end.path[F.length]+1));const dt=W.end.offset-W.start.offset;for(const Zt of W.getItems({shallow:!0}))Zt.is("$textProxy")?_.appendText(Zt.data,Zt.getAttributes(),x):_.append(_.cloneElement(Zt,!0),x);if(W!=M){const Zt=M._getTransformedByMove(W.start,_.createPositionAt(x,0),dt)[0],ue=_.createRange(_.createPositionAt(x,0),Zt.start);sf(_.createRange(Zt.end,_.createPositionAt(x,"end")),_),sf(ue,_)}return x});var u}hasContent(r,c={}){const u=r instanceof Si?r:Si._createIn(r);if(u.isCollapsed)return!1;const{ignoreWhitespaces:_=!1,ignoreMarkers:x=!1}=c;if(!x)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 Si(r,c)}createRangeIn(r){return Si._createIn(r)}createRangeOn(r){return Si._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 rf(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 s4 extends Wu{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(r){this.fire(r.type,r)}}class C0 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){Xe(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 Ma(r,c)}createRangeOn(r){return Ma._createOn(r)}createRangeIn(r){return Ma._createIn(r)}createSelection(...r){return new ju(...r)}}class c4{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 nt("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 l4 extends(Ue()){constructor(r={}){super();const c=this.constructor;this._context=r.context||new M2({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 Ef(this,_,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new c4,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new hs,this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});const x=new Lg;this.data=new $_(this.model,x),this.editing=new um(this.model,x),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 nt("editor-isreadonly-has-no-setter")}enableReadOnlyMode(r){if("string"!=typeof r&&"symbol"!=typeof r)throw new nt("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 nt("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")||[],x=r.get("substitutePlugins")||[];return this.plugins.init(c.concat(_),u,x)}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){nt.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 cf(m){return class extends m{updateSourceElement(r=this.data.get()){if(!this.sourceElement)throw new nt("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:"")}}}cf.updateSourceElement=cf(Object).prototype.updateSourceElement;class Th 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 nt("pendingactions-add-invalid-message",this);const c=new(Ue());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 gs={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 A0=v(5542);No()(A0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const{threeVerticalDots:o2}=gs,y0={alignLeft:gs.alignLeft,bold:gs.bold,importExport:gs.importExport,paragraph:gs.paragraph,plus:gs.plus,text:gs.text,threeVerticalDots:gs.threeVerticalDots,pilcrow:gs.pilcrow,dragIndicator:gs.dragIndicator};class T0 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 rs,this.keystrokes=new $c,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new Bs(r),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const x="rtl"===r.uiLanguageDirection;this._focusCycler=new ul({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[x?"arrowright":"arrowleft","arrowup"],focusNext:[x?"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(F=>{F.target===E.element&&F.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new u4(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 _=_p(r),x=u||_.removeItems;return this._cleanItemsConfiguration(_.items,c,x).map(M=>Wt(M)?this._createNestedToolbarDropdown(M,c,x):"|"===M?new dl:"-"===M?new Z2:c.create(M)).filter(M=>!!M)}_cleanItemsConfiguration(r,c,u){const _=r.filter((x,M,E)=>"|"===x||-1===u.indexOf(x)&&("-"===x?!this.options.shouldGroupWhenFull||(Tt("toolbarview-line-break-ignored-when-grouping-items",E),!1):!(!Wt(x)&&!c.has(x)&&(Tt("toolbarview-item-unavailable",{item:x}),1))));return this._cleanSeparatorsAndLineBreaks(_)}_cleanSeparatorsAndLineBreaks(r){const c=M=>"-"!==M&&"|"!==M,u=r.length,_=r.findIndex(c);if(-1===_)return[];const x=u-r.slice().reverse().findIndex(c);return r.slice(_,x).filter((M,E,F)=>!!c(M)||!(E>0&&F[E-1]===M))}_createNestedToolbarDropdown(r,c,u){let{label:_,icon:x,items:M,tooltip:E=!0,withText:F=!1}=r;if(M=this._cleanItemsConfiguration(M,c,u),!M.length)return null;const V=Lp(this.locale);return _||Tt("toolbarview-nested-toolbar-dropdown-missing-label",r),V.class="ck-toolbar__nested-toolbar-dropdown",V.buttonView.set({label:_,tooltip:E,withText:!!F}),!1!==x?V.buttonView.icon=y0[x]||x||o2:V.buttonView.withText=!0,e_(V,()=>V.toolbarView._buildItemsFromConfig(M,c,u)),V}}class Bs 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 u4{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,x=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<_+x.length;M++){const E=x[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 ce(r.lastChild),_=new ce(r);if(!this.cachedPadding){const x=Mt.window.getComputedStyle(r);this.cachedPadding=Number.parseInt(x["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 dl),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=Lp(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 d4(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",x=>!x)]},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);No()(r2.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class d4 extends oa{constructor(r){super(r),this._listItemGroupToChangeListeners=new WeakMap;const c=this.bindTemplate;this.focusables=new Na,this.items=this.createCollection(),this.focusTracker=new rs,this.keystrokes=new $c,this._focusCycler=new ul({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((_,x)=>{this._registerFocusableListItem(_,void 0!==c?c+x: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 Uh 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 Sp extends oa{constructor(r){super(r),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var bm=v(7686);No()(bm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class p4 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 rs,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 Mh=v(7339);No()(Mh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var vm=v(3949);function Lp(m,r=x1){const c=new r(m),u=new y_(m),_=new Uu(m,c,u);return c.bind("isEnabled").to(_),c instanceof p4?c.arrowView.bind("isOn").to(_,"isOpen"):c.bind("isOn").to(_,"isOpen"),(M=x=_).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 ys||(M.isOpen=!1)})}(x),function(M){M.focusTracker.on("change:isFocused",(E,F,V)=>{M.isOpen&&!V&&(M.isOpen=!1)})}(x),function(M){M.keystrokes.set("arrowdown",(E,F)=>{M.isOpen&&(M.panelView.focus(),F())}),M.keystrokes.set("arrowup",(E,F)=>{M.isOpen&&(M.panelView.focusLast(),F())})}(x),function(M){M.on("change:isOpen",(E,F,V)=>{if(V)return;const W=M.panelView.element;W&&W.contains(Mt.document.activeElement)&&M.buttonView.focus()})}(x),function(M){M.on("change:isOpen",(E,F,V)=>{V&&M.panelView.focus()},{priority:"low"})}(x),_;var x,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,x=m.toolbarView=new T0(u),M="function"==typeof r?r():r;x.ariaLabel=c.ariaLabel||_("Dropdown toolbar"),c.maxWidth&&(x.maxWidth=c.maxWidth),c.class&&(x.class=c.class),c.isCompact&&(x.isCompact=c.isCompact),c.isVertical&&(x.isVertical=!0),M instanceof Na?x.items.bindTo(M).using(E=>E):x.items.addMany(M),m.panelView.children.add(x),x.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 Uh&&u.children.first.isOn))}function Cm(m,r,c){const u=m.locale,_=m.listView=new d4(u),x="function"==typeof r?r():r;_.ariaLabel=c.ariaLabel,_.role=c.role,Am(m,_.items,x,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():Tt("ui-dropdown-focus-child-on-open-child-missing-focus",{view:c}))},{priority:Dt.low-10})}function Am(m,r,c,u){r.bindTo(c).using(_=>{if("separator"===_.type)return new Sp(u);if("group"===_.type){const x=new a2(u);return x.set({label:_.label}),Am(m,x.items,_.items,u),x.items.delegate("execute").to(m),x}if("button"===_.type||"switchbutton"===_.type){const x=new Uh(u);let M;return M="button"===_.type?new $o(u):new ys(u),M.bind(...Object.keys(_.model)).to(_.model),M.delegate("execute").to(x),x.children.add(M),x}return null})}No()(vm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const lf=(m,r,c)=>{const u=new vg(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,w0=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}%)`},kh=m=>{const r=m.toString(16);return r.length<2?"0"+r:r},_4=(m,r)=>{if(m===r)return!0;for(const c in m)if(m[c]!==r[c])return!1;return!0},k0={},D0=m=>{let r=k0[m];return r||(r=document.createElement("template"),r.innerHTML=m,k0[m]=r),r},Dh=(m,r,c)=>{m.dispatchEvent(new CustomEvent(r,{bubbles:!0,detail:c}))};let ym=!1;const P0=m=>"touches"in m,uf=(m,r)=>{const c=P0(r)?r.touches[0]:r,u=m.el.getBoundingClientRect();Dh(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 f4{constructor(r,c,u,_){const x=D0(`
`);r.appendChild(x.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&&!P0(c)||(ym||(ym=P0(c)),0)||!ym&&0!=r.button)return;this.el.focus(),uf(this,r),this.dragging=!0;break;case"mousemove":case"touchmove":r.preventDefault(),uf(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(),Dh(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 f4{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 f4{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 st=Symbol("same"),Qt=Symbol("color"),Ne=Symbol("hsva"),pn=Symbol("update"),zn=Symbol("parts"),si=Symbol("css"),_i=Symbol("sliders");class Wi extends HTMLElement{static get observedAttributes(){return["color"]}get[si](){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[_i](){return[R,L]}get color(){return this[Qt]}set color(r){if(!this[st](r)){const c=this.colorModel.toHsva(r);this[pn](c),this[Qt]=r}}constructor(){super();const r=D0(``),c=this.attachShadow({mode:"open"});c.appendChild(r.content.cloneNode(!0)),c.addEventListener("move",this),this[zn]=this[_i].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[st](_)||(this.color=_)}handleEvent(r){const c=this[Ne],u={...c,...r.detail};let _;this[pn](u),_4(u,c)||this[st](_=this.colorModel.fromHsva(u))||(this[Qt]=_,Dh(this,"color-changed",{value:_}))}[st](r){return this.color&&this.colorModel.equal(r,this.color)}[pn](r){this[Ne]=r,this[zn].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),x=_-Math.min(m,r,c),M=x?_===m?(r-c)/x:_===r?2+(c-m)/x:4+(m-r)/x:0;return{h:Ol(60*(M<0?M+6:M)),s:Ol(_?x/_*100:0),v:Ol(_/255*100),a:u}})(w0(m)),fromHsva:({h:m,s:r,v:c})=>(({r:m,g:r,b:c,a:u})=>{const _=u<1?kh(Ol(255*u)):"";return"#"+kh(m)+kh(r)+kh(c)+_})((({h:m,s:r,v:c,a:u})=>{m=m/360*6,r/=100,c/=100;const _=Math.floor(m),x=c*(1-r),M=c*(1-(m-_)*r),E=c*(1-(1-m+_)*r),F=_%6;return{r:Ol(255*[c,M,x,x,E,c][F]),g:Ol(255*[E,c,c,M,x,x][F]),b:Ol(255*[x,x,E,c,c,M][F]),a:Ol(u,2)}})({h:m,s:r,v:c,a:1})),equal:(m,r)=>m.toLowerCase()===r.toLowerCase()||_4(w0(m),w0(r)),fromAttr:m=>m};class co extends Wi{get colorModel(){return $i}}customElements.define("hex-color-picker",class extends co{});var Lo=v(3398);No()(Lo.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ue(ec);var xa=v(4157);No()(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 nt("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);No()(za.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var hc=Object.defineProperty,_l=Object.getOwnPropertySymbols,Es=Object.prototype.hasOwnProperty,Ql=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(_l)for(var c of _l(r))Ql.call(r,c)&&_u(m,c,r[c]);return m};const i_=bo("px"),c2=Mt.document.body,Ph={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}},h4=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=h4.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=h4._getOptimalPosition(c)||Ph,_=parseInt(u.left),x=parseInt(u.top),M=u.name,E=u.config||{},{withArrow:F=!0}=E;this.top=x,this.left=_,this.position=M,this.withArrow=F}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=g4(m.target),c=m.limiter?g4(m.limiter):c2;this.listenTo(Mt.document,"scroll",(u,_)=>{const x=_.target,M=r&&x.contains(r),E=c&&x.contains(c);!M&&!E&&r&&c||this.attachTo(m)},{useCapture:!0}),this.listenTo(Mt.window,"resize",()=>{this.attachTo(m)})}_stopPinning(){this.stopListening(Mt.document,"scroll"),this.stopListening(Mt.window,"resize")}};let id=h4;function g4(m){return la(m)?m:jt(m)?m.commonAncestorContainer:"function"==typeof m?g4(m()):null}function b4(m={}){const{sideOffset:r=id.arrowSideOffset,heightOffset:c=id.arrowHeightOffset,stickyVerticalOffset:u=id.stickyVerticalOffset,config:_}=m;return{northWestArrowSouthWest:(E,F)=>_r({top:x(E,F),left:E.left-r,name:"arrow_sw"},_&&{config:_}),northWestArrowSouthMiddleWest:(E,F)=>_r({top:x(E,F),left:E.left-.25*F.width-r,name:"arrow_smw"},_&&{config:_}),northWestArrowSouth:(E,F)=>_r({top:x(E,F),left:E.left-F.width/2,name:"arrow_s"},_&&{config:_}),northWestArrowSouthMiddleEast:(E,F)=>_r({top:x(E,F),left:E.left-.75*F.width+r,name:"arrow_sme"},_&&{config:_}),northWestArrowSouthEast:(E,F)=>_r({top:x(E,F),left:E.left-F.width+r,name:"arrow_se"},_&&{config:_}),northArrowSouthWest:(E,F)=>_r({top:x(E,F),left:E.left+E.width/2-r,name:"arrow_sw"},_&&{config:_}),northArrowSouthMiddleWest:(E,F)=>_r({top:x(E,F),left:E.left+E.width/2-.25*F.width-r,name:"arrow_smw"},_&&{config:_}),northArrowSouth:(E,F)=>_r({top:x(E,F),left:E.left+E.width/2-F.width/2,name:"arrow_s"},_&&{config:_}),northArrowSouthMiddleEast:(E,F)=>_r({top:x(E,F),left:E.left+E.width/2-.75*F.width+r,name:"arrow_sme"},_&&{config:_}),northArrowSouthEast:(E,F)=>_r({top:x(E,F),left:E.left+E.width/2-F.width+r,name:"arrow_se"},_&&{config:_}),northEastArrowSouthWest:(E,F)=>_r({top:x(E,F),left:E.right-r,name:"arrow_sw"},_&&{config:_}),northEastArrowSouthMiddleWest:(E,F)=>_r({top:x(E,F),left:E.right-.25*F.width-r,name:"arrow_smw"},_&&{config:_}),northEastArrowSouth:(E,F)=>_r({top:x(E,F),left:E.right-F.width/2,name:"arrow_s"},_&&{config:_}),northEastArrowSouthMiddleEast:(E,F)=>_r({top:x(E,F),left:E.right-.75*F.width+r,name:"arrow_sme"},_&&{config:_}),northEastArrowSouthEast:(E,F)=>_r({top:x(E,F),left:E.right-F.width+r,name:"arrow_se"},_&&{config:_}),southWestArrowNorthWest:E=>_r({top:M(E),left:E.left-r,name:"arrow_nw"},_&&{config:_}),southWestArrowNorthMiddleWest:(E,F)=>_r({top:M(E),left:E.left-.25*F.width-r,name:"arrow_nmw"},_&&{config:_}),southWestArrowNorth:(E,F)=>_r({top:M(E),left:E.left-F.width/2,name:"arrow_n"},_&&{config:_}),southWestArrowNorthMiddleEast:(E,F)=>_r({top:M(E),left:E.left-.75*F.width+r,name:"arrow_nme"},_&&{config:_}),southWestArrowNorthEast:(E,F)=>_r({top:M(E),left:E.left-F.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,F)=>_r({top:M(E),left:E.left+E.width/2-.25*F.width-r,name:"arrow_nmw"},_&&{config:_}),southArrowNorth:(E,F)=>_r({top:M(E),left:E.left+E.width/2-F.width/2,name:"arrow_n"},_&&{config:_}),southArrowNorthMiddleEast:(E,F)=>_r({top:M(E),left:E.left+E.width/2-.75*F.width+r,name:"arrow_nme"},_&&{config:_}),southArrowNorthEast:(E,F)=>_r({top:M(E),left:E.left+E.width/2-F.width+r,name:"arrow_ne"},_&&{config:_}),southEastArrowNorthWest:E=>_r({top:M(E),left:E.right-r,name:"arrow_nw"},_&&{config:_}),southEastArrowNorthMiddleWest:(E,F)=>_r({top:M(E),left:E.right-.25*F.width-r,name:"arrow_nmw"},_&&{config:_}),southEastArrowNorth:(E,F)=>_r({top:M(E),left:E.right-F.width/2,name:"arrow_n"},_&&{config:_}),southEastArrowNorthMiddleEast:(E,F)=>_r({top:M(E),left:E.right-.75*F.width+r,name:"arrow_nme"},_&&{config:_}),southEastArrowNorthEast:(E,F)=>_r({top:M(E),left:E.right-F.width+r,name:"arrow_ne"},_&&{config:_}),westArrowEast:(E,F)=>_r({top:E.top+E.height/2-F.height/2,left:E.left-F.width-c,name:"arrow_e"},_&&{config:_}),eastArrowWest:(E,F)=>_r({top:E.top+E.height/2-F.height/2,left:E.right+c,name:"arrow_w"},_&&{config:_}),viewportStickyNorth:(E,F,V,W)=>{const dt=W||V;return E.getIntersection(dt)?dt.height-E.height>u?null:{top:dt.top+u,left:E.left+E.width/2-F.width/2,name:"arrowless",config:_r({withArrow:!1},_)}:null}};function x(E,F){return E.top-F.height-c}function M(E){return E.bottom+c}}id.arrowSideOffset=25,id.arrowHeightOffset=10,id.stickyVerticalOffset=20,id._getOptimalPosition=es,id.defaultPositions=b4();var l5=v(3332);No()(l5.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const u5="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=u5,this.balloonPanelView.content.add(this.tooltipTextView),this._pinTooltipDebounced=R_(this._pinTooltip,600),this.listenTo(Mt.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Mt.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=v4(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(!la(r)||this._currentElementWithTooltip&&r!==this._currentElementWithTooltip)return;const u=v4(r),_=v4(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 _=as(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=[u5,u].filter(x=>x).join(" ");for(const x of od._editors)this.listenTo(x.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 S0=od;function v4(m){return la(m)?m.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}S0.defaultBalloonPositions=b4({heightOffset:5,sideOffset:13}),S0._editors=new Set,S0._instance=null;const Sh=function(m,r,c){var u=!0,_=!0;if("function"!=typeof m)throw new TypeError("Expected a function");return Wt(c)&&(u="leading"in c?!!c.leading:u,_="trailing"in c?!!c.trailing:_),R_(m,r,{leading:u,maxWait:r,trailing:_})};var x4=Object.defineProperty,Mv=Object.getOwnPropertySymbols,d5=Object.prototype.hasOwnProperty,C4=Object.prototype.propertyIsEnumerable,L0=(m,r,c)=>r in m?x4(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Dv extends(Xi()){constructor(r){super(),this.editor=r,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=Sh(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(ue){return ue.length>=40&&ue.length<=255?"VALID":"INVALID"}if(!c)return"INVALID";let _="";try{_=atob(c)}catch{return"INVALID"}const x=_.split("-"),M=x[0],E=x[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 F="";try{atob(M),F=atob(E)}catch{return"INVALID"}if(8!==F.length)return"INVALID";const V=Number(F.substring(0,4)),W=Number(F.substring(4,6))-1,dt=Number(F.substring(6,8)),Zt=new Date(V,W,dt);return Zt{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 y4(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?Oh(u,E=_,(F,V)=>F.left+F.width-V.width-E.horizontalOffset):function(M,E){return Oh(M,E,F=>F.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(x=>r.ui.getEditableElement(x));this._lastFocusedEditableElement=_.includes(u)?u:_[0]}}class y4 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(x=>x.preventDefault())}}]})}}function Oh(m,r,c){return(u,_)=>{const x=new ce(m);if(x.width<350||x.height<50)return null;let M;M="inside"===r.position?x.bottom-_.height:x.bottom-_.height/2,M-=r.verticalOffset;const E=c(x,_),F=u.clone().moveTo(E,M).getIntersection(_.clone().moveTo(E,M)).getVisible();return!F||F.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={}))d5.call(r,c)&&L0(m,c,r[c]);if(Mv)for(var c of Mv(r))C4.call(r,c)&&L0(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 Pv=Object.defineProperty,e1=Object.getOwnPropertySymbols,T4=Object.prototype.hasOwnProperty,E0=Object.prototype.propertyIsEnumerable,M1=(m,r,c)=>r in m?Pv(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Op extends(Ue()){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 rs,this.tooltipManager=new S0(r),this.poweredBy=new Dv(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",(x,M)=>{const E=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(E)&&!Array.from(c.domRoots.values()).includes(E)&&(u=E);const F=this._getCurrentFocusedToolbarDefinition();F&&_||(_=this._getFocusableCandidateToolbarDefinitions());for(let V=0;V<_.length;V++){const W=_.shift();if(_.push(W),W!==F&&this._focusFocusableCandidateToolbar(W)){F&&F.options.afterBlur&&F.options.afterBlur();break}}M()}),r.keystrokes.set("Esc",(x,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)=>Sv(c)-Sv(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=((_,x)=>{for(var M in x||(x={}))T4.call(x,M)&&M1(_,M,x[M]);if(e1)for(var M of e1(x))E0.call(x,M)&&M1(_,M,x[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 Sv(m){const{toolbarView:r,options:c}=m;let u=10;return ra(r.element)&&u--,c.isContextual&&u--,u}var w4=v(9688);No()(w4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class m5 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 Lv extends m5{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 M8 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 x=r.document.getRoot(u.name);_.addClass(u.isFocused?"ck-focused":"ck-blurred",x),_.removeClass(u.isFocused?"ck-blurred":"ck-focused",x)})}r.isRenderingInProgress?function u(_){r.once("change:isRenderingInProgress",(x,M,E)=>{E?u(_):c(_)})}(this):c(this)}}class U4 extends M8{constructor(r,c,u,_={}){super(r,c,u);const x=r.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=_.label||(()=>x("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 Eh=v(8847);No()(Eh.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 Z4 extends(Ue()){constructor(r,c){super(),c&&q2(this,c),r&&this.set(r)}}var N0=v(4650);No()(N0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var df=v(7676);No()(df.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Ih=bo("px");class F0 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 nt("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 nt("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 nt("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 Ov(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 x=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return c("%0 of %1",[x,_])}),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 k8(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 Ov extends oa{constructor(r){super(r);const c=r.t,u=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new rs,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 k8 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",Ih),left:u.to("left",Ih),width:u.to("width",Ih),height:u.to("height",Ih)}},children:this.content}),this.on("change:numberOfPanels",(_,x,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 ce(this._balloonPanelView.element);Object.assign(this,{top:r,left:c,width:u,height:_})}}}var Ev=v(5868);No()(Ev.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const pf=bo("px");class Nv 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?pf(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?pf(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:c.to("_stickyTopOffset",u=>u&&pf(u)),bottom:c.to("_stickyBottomOffset",u=>u&&pf(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(Mt.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 ce(this.limiterElement);let c=r.getVisible();if(c){const u=new ce(Mt.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",x=>!x),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 D8 extends oa{constructor(r){super(r),this.children=this.createCollection(),this.focusTracker=new rs,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new ul({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,qv=RegExp(Fv.source);const f5=function(m){return(m=wg(m))&&qv.test(m)?m.replace(Fv,"\\$&"):m};var h5=v(6770);No()(h5.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var fu=Object.defineProperty,g5=Object.getOwnPropertySymbols,P8=Object.prototype.hasOwnProperty,n1=Object.prototype.propertyIsEnumerable,b5=(m,r,c)=>r in m?fu(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class v5 extends oa{constructor(r,c){super(r),this._config=c,this.filteredView=c.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new rs,this.keystrokes=new $c,this.resultsView=new D8(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 ul({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",(u,{resultsCount:_,totalItemsCount:x})=>{this.resultsCount=_,this.totalItemsCount=x}),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(f5(r),"ig"):null,u=this.filteredView.filter(c);this.fire("search",((_,x)=>{for(var M in x||(x={}))P8.call(x,M)&&b5(_,M,x[M]);if(g5)for(var M of g5(x))n1.call(x,M)&&b5(_,M,x[M]);return _})({query:r},u))}_createSearchTextQueryView(){const r=new Wl(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:x,resultsCount:M,totalItemsCount:E}){return"function"==typeof _?_(x,M,E):_}this.on("search",(_,x)=>{if(x.resultsCount)c.set({isVisible:!1});else{const M=this._config.infoView&&this._config.infoView.text;let E,F;x.totalItemsCount?M&&M.notFound?(E=M.notFound.primary,F=M.notFound.secondary):(E=r("No results found"),F=""):M&&M.noSearchableItems?(E=M.noSearchableItems.primary,F=M.noSearchableItems.secondary):(E=r("No searchable items"),F=""),c.set({primaryText:u(E,x),secondaryText:u(F,x),isVisible:!0})}})}}var S8=v(8157);No()(S8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const q0=class extends v5{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",(_,x,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",(_,x)=>{this.resultsView.isVisible=!1,x()}),this.listenTo(Mt.document,"scroll",()=>{this._updateResultsViewWidthAndPosition()}),this.on("change:isEnabled",()=>{this._updateResultsVisibility()}),this.filteredView.on("execute",(_,{value:x})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=x,this.resultsView.isVisible=!1}),this.resultsView.on("change:isVisible",()=>{this._updateResultsViewWidthAndPosition()})}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new ce(this.queryView.fieldView.element).width;const m=q0._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:q0.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 Ep=q0;Ep.defaultResultsPositions=[m=>({top:m.bottom,left:m.left,name:"s"}),(m,r)=>({top:m.top-r.height,left:m.left,name:"n"})],Ep._getOptimalPosition=es;var Rv=v(8960);No()(Rv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var o1=v(498);No()(o1.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),bo("px");var tp=v(9695);No()(tp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),bo("px"),bo("px");class zv extends Op{constructor(r,c){super(r),this.view=c,this._toolbarConfig=_p(r.config.get("toolbar")),this._elementReplacer=new Ke,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,x=u.editable,M=_.document.getRoot();x.name=M.rootName,u.render();const E=x.element;this.setEditableElement(x.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 x;const M=r.config.get("placeholder");M&&(x="string"==typeof M?M:M[this.view.editable.name]),!x&&_&&"textarea"===_.tagName.toLowerCase()&&(x=_.getAttribute("placeholder")),x&&(u.placeholder=x),Y({view:c,element:u,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(r,c,u){const _=this.view.stickyPanel;if(_.isSticky){const x=new ce(_.element).height;c.viewportOffset.top+=x}else{const x=()=>{this.editor.editing.view.scrollToTheSelection(u)};this.listenTo(_,"change:isSticky",x),setTimeout(()=>{this.stopListening(_,"change:isSticky",x)},20)}}}var Yv=v(3143);No()(Yv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class O8 extends Lv{constructor(r,c,u={}){super(r),this.stickyPanel=new Nv(r),this.toolbar=new T0(r,{shouldGroupWhenFull:u.shouldToolbarGroupWhenFull}),this.editable=new U4(r,c)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class C5{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 x=c[_++];if(!u.has(x)&&R0(x)&&!r.has(x))if(u.add(x),Symbol.iterator in x)try{for(const M of x)c.push(M)}catch{}else for(const M in x)"defaultValue"!==M&&c.push(x[M])}return u}function R0(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),x=d2(r,c);for(const M of _)if(x.has(M))return!0;return!1}var A5=Object.defineProperty,E8=Object.defineProperties,y5=Object.getOwnPropertyDescriptors,H0=Object.getOwnPropertySymbols,Nh=Object.prototype.hasOwnProperty,Vv=Object.prototype.propertyIsEnumerable,k4=(m,r,c)=>r in m?A5(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,D4=(m,r)=>{for(var c in r||(r={}))Nh.call(r,c)&&k4(m,c,r[c]);if(H0)for(var c of H0(r))Vv.call(r,c)&&k4(m,c,r[c]);return m};class P4 extends C5{constructor(r,c={}){super(c),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=Sh(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[F,V]of Object.entries(this._data.roots))V.isLoaded?(r[F]="",_[F]=u[F]||{}):c.push(F);const x=(M=D4({},this._config),E8(M,y5({extraPlugins:this._config.extraPlugins||[],lazyRoots:c,rootsAttributes:_,_watchdogInitialData:this._data})));var M;return delete x.initialData,x.extraPlugins.push(rc),this._initUsingData?this.create(r,x,x.context):la(this._elementOrData)?this.create(this._elementOrData,x,x.context):this.create(this._editables,x,x.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"),x=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}))),x&&(M.suggestions=JSON.stringify(x.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)=>la(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:x}])=>{const M=JSON.parse(_),E=JSON.parse(x),F=c.model.document.getRoot(u);for(const[V,W]of E)r.setAttribute(V,W,F);for(const V of M){const W=this._createNode(r,V);r.insert(W,F,"end")}}),Object.entries(this._data.markers).forEach(([u,_])=>{const{document:x}=c.model,M=_,{rangeJSON:{start:E,end:F}}=M,V=((Ae,Ie)=>{var ln={};for(var Dn in Ae)Nh.call(Ae,Dn)&&Ie.indexOf(Dn)<0&&(ln[Dn]=Ae[Dn]);if(null!=Ae&&H0)for(var Dn of H0(Ae))Ie.indexOf(Dn)<0&&Vv.call(Ae,Dn)&&(ln[Dn]=Ae[Dn]);return ln})(M,["rangeJSON"]),W=x.getRoot(E.root),dt=r.createPositionFromPath(W,E.path,E.stickiness),Zt=r.createPositionFromPath(W,F.path,F.stickiness),ue=r.createRange(dt,Zt);r.addMarker(u,D4({range:ue},V))})}_restoreCollaborationData(){const r=JSON.parse(this._data.commentThreads),c=JSON.parse(this._data.suggestions);r.forEach(u=>{const _=this.editor.config.get("collaboration.channelId"),x=this.editor.plugins.get("CommentsRepository");x.hasCommentThread(u.threadId)&&x.getCommentThread(u.threadId).remove(),x.addCommentThread(D4({channelId:_},u))}),c.forEach(u=>{const _=this.editor.plugins.get("TrackChangesEditing");_.hasSuggestion(u.id)?_.getSuggestion(u.id).attributes=u.attributes:_.addSuggestionData(u)})}}const mf=Symbol("MainQueueId");class T5{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(r){this._onEmptyCallbacks.push(r)}enqueue(r,c){const u=r===mf;this._activeActions++,this._queues.get(r)||this._queues.set(r,Promise.resolve());const _=Promise.all(u?this._queues.values():[this._queues.get(mf),this._queues.get(r)]).then(c),x=_.catch(()=>{});return this._queues.set(r,x),_.finally(()=>{this._activeActions--,this._queues.get(r)===x&&0===this._activeActions&&this._onEmptyCallbacks.forEach(M=>M())})}}function z0(m){return Array.isArray(m)?m:[m]}class Y0 extends(n2(cf(l4))){constructor(r,c={}){if(!Fh(r)&&void 0!==c.initialData)throw new nt("editor-create-initial-data",null);var x,M;super(c),void 0===this.config.get("initialData")&&this.config.set("initialData",Fh(x=r)?(M=x)instanceof HTMLTextAreaElement?M.value:M.innerHTML:x),Fh(r)&&(this.sourceElement=r),this.model.document.createRoot();const u=!this.config.get("toolbar.shouldNotGroupWhenFull"),_=new O8(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:u});this.ui=new zv(this,_),function(x){if(!Fo(x.updateSourceElement))throw new nt("attachtoform-missing-elementapi-interface",x);const M=x.sourceElement;if((E=M)&&"textarea"===E.tagName.toLowerCase()&&M.form){let E;const F=M.form,V=()=>x.updateSourceElement();Fo(F.submit)&&(E=F.submit,F.submit=()=>{V(),E.apply(F)}),F.addEventListener("submit",V),x.on("destroy",()=>{F.removeEventListener("submit",V),E&&(F.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(Fh(r)?r:null)).then(()=>_.data.init(_.config.get("initialData"))).then(()=>_.fire("ready")).then(()=>_))})}}function Fh(m){return la(m)}Y0.Context=M2,Y0.EditorWatchdog=P4,Y0.ContextWatchdog=class extends C5{constructor(m,r={}){super(r),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new T5,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(mf,()=>(this._contextConfig=m,this._create()))}getItem(m){return this._getWatchdog(m)._item}getItemState(m){return this._getWatchdog(m).state}add(m){const r=z0(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 P4(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:x,causesRestart:M})=>{this._fire("itemError",{itemId:c.id,error:x}),M&&this._actionQueues.enqueue(c.id,()=>new Promise(E=>{const F=()=>{u.off("restart",F),this._fire("itemRestart",{itemId:c.id}),E()};u.on("restart",F)}))}),u.create(c.sourceElementOrData,c.config,this._context);throw new Error(`Not supported item type: '${c.type}'.`)})))}remove(m){const r=z0(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(mf,()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(mf,()=>(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 qh extends Wu{constructor(r){super(r),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const c=this.document;function u(_){return(x,M)=>{M.preventDefault();const E=M.dropRange?[M.dropRange]:null,F=new lt(c,_);c.fire(F,{dataTransfer:M.dataTransfer,method:x.name,targetRanges:E,target:M.target,domEvent:M.domEvent}),F.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(x,M){const E=M.target.ownerDocument,F=M.clientX,V=M.clientY;let W;return E.caretRangeFromPoint&&E.caretRangeFromPoint(F,V)?W=E.caretRangeFromPoint(F,V):M.rangeParent&&(W=E.createRange(),W.setStart(M.rangeParent,M.rangeOffset),W.collapse(!0)),W?x.domConverter.domRangeToView(W):null}(this.view,r)),this.fire(r.type,r,_)}}const w5=["figcaption","li"];function U5(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 _=U5(u);c&&(c.is("containerElement")||u.is("containerElement"))&&(w5.includes(c.name)||w5.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(qh),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",(x,M)=>{"paste"!=M.method||r.model.canEditAt(r.model.document.selection)||x.stop()},{priority:"highest"}),this.listenTo(_,"clipboardInput",(x,M)=>{const E=M.dataTransfer;let F;if(M.content)F=M.content;else{let dt="";E.getData("text/html")?dt=E.getData("text/html").replace(/(\s+)<\/span>/g,(ue,Ae)=>1==Ae.length?" ":Ae).replace(//g,""):E.getData("text/plain")&&(((V=(V=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("

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

${V}

`),dt=V),F=this.editor.data.htmlProcessor.toView(dt)}var V;const W=new lt(this,"inputTransformation");this.fire(W,{content:F,dataTransfer:E,targetRanges:M.targetRanges,method:M.method}),W.stop.called&&x.stop(),u.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(x,M)=>{if(M.content.isEmpty)return;const E=this.editor.data.toModel(M.content,"$clipboardHolder");0!=E.childCount&&(x.stop(),c.change(()=>{this.fire("contentInsertion",{content:E,method:M.method,dataTransfer:M.dataTransfer,targetRanges:M.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(x,M)=>{M.resultRange=c.insertContent(M.content)},{priority:"low"})}_setupCopyCut(){const r=this.editor,c=r.model.document,u=r.editing.view.document,_=(x,M)=>{const E=M.dataTransfer;M.preventDefault(),this._fireOutputTransformationEvent(E,c.selection,x.name)};this.listenTo(u,"copy",_,{priority:"low"}),this.listenTo(u,"cut",(x,M)=>{r.model.canEditAt(r.model.document.selection)?_(x,M):M.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(x,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",(x,M)=>{M.content.isEmpty||(M.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(M.content)),M.dataTransfer.setData("text/plain",U5(M.content))),"cut"==M.method&&r.model.deleteContent(c.selection)},{priority:"low"})}}class Z5{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 I8 extends Za{constructor(r,c){super(r),this._buffer=new Z5(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||"",x=_.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,F=>{this._buffer.lock(),c.deleteContent(M),_&&c.insertContent(F.createText(_,u.selection.getAttributes()),M),E?F.setSelection(E):M.is("documentSelection")||F.setSelection(M),this._buffer.unlock(),this._buffer.input(x)})}}const jv=["insertText","insertReplacementText"];class Jv extends Qu{constructor(r){super(r),this.focusObserver=r.getObserver(z_),D_isAndroid&&jv.push("insertCompositionText");const c=r.document;c.on("beforeinput",(u,_)=>{if(!this.isEnabled)return;const{data:x,targetRanges:M,inputType:E,domEvent:F}=_;if(!jv.includes(E))return;this.focusObserver.flush();const V=new lt(c,"insertText");c.fire(V,new pc(r,F,{text:x,selection:r.createSelection(M)})),V.stop.called&&u.stop()}),c.on("compositionend",(u,{data:_,domEvent:x})=>{this.isEnabled&&!D_isAndroid&&_&&c.fire("insertText",new pc(r,x,{text:_,selection:c.selection}))},{priority:"lowest"})}observe(){}stopObserving(){}}class Gv 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 x=new I8(r,r.config.get("typing.undoStep")||20);r.commands.add("insertText",x),r.commands.add("input",x),this.listenTo(u.document,"insertText",(M,E)=>{u.document.isComposing||E.preventDefault();const{text:F,selection:V,resultRange:W}=E,dt=Array.from(V.getRanges()).map(Ae=>r.editing.mapper.toModelRange(Ae));let Zt=F;if(D_isAndroid){const Ae=Array.from(dt[0].getItems()).reduce((Ie,ln)=>Ie+(ln.is("$textProxy")?ln.data:""),"");Ae&&(Ae.length<=Zt.length?Zt.startsWith(Ae)&&(Zt=Zt.substring(Ae.length),dt[0].start=dt[0].start.getShiftedBy(Ae.length)):Ae.startsWith(Zt)&&(dt[0].start=dt[0].start.getShiftedBy(Zt.length),Zt=""))}const ue={text:Zt,selection:c.createSelection(dt)};W&&(ue.resultRange=r.editing.mapper.toModelRange(W)),r.execute("insertText",ue),u.scrollToTheSelection()}),D_isAndroid?this.listenTo(u.document,"keydown",(M,E)=>{!_.isCollapsed&&229==E.keyCode&&u.document.isComposing&&M5(c,x)}):this.listenTo(u.document,"compositionstart",()=>{_.isCollapsed||M5(c,x)})}}function M5(m,r){if(!r.isEnabled)return;const c=r.buffer;c.lock(),m.enqueueChange(c.batch,()=>{m.deleteContent(m.document.selection)}),c.unlock()}class Qv extends Za{constructor(r,c){super(r),this.direction=c,this._buffer=new Z5(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 x=_.createSelection(r.selection||u.selection);if(!c.canEditAt(x))return;const M=r.sequence||1,E=x.isCollapsed;if(x.isCollapsed&&c.modifySelection(x,{direction:this.direction,unit:r.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(M))return void this._replaceEntireContentWithParagraph(_);if(this._shouldReplaceFirstBlockWithParagraph(x,M))return void this.editor.execute("paragraph",{selection:x});if(x.isCollapsed)return;let F=0;x.getFirstRange().getMinimalFlatRanges().forEach(V=>{F+=ne(V.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),c.deleteContent(x,{doNotResetEntireContent:E,direction:this.direction}),this._buffer.input(F),_.setSelection(x),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 x=_.getChild(0);return!x||!x.is("element","paragraph")}_replaceEntireContentWithParagraph(r){const c=this.editor.model,_=c.schema.getLimitElement(c.document.selection),x=r.createElement("paragraph");r.remove(r.createRangeIn(_)),r.insert(x,_),r.setSelection(x,0)}_shouldReplaceFirstBlockWithParagraph(r,c){const u=this.editor.model;if(c>1||"backward"!=this.direction||!r.isCollapsed)return!1;const _=r.getFirstPosition(),x=u.schema.getLimitElement(_),M=x.getChild(0);return _.parent==M&&!!r.containsEntireContent(M)&&!!u.schema.checkChild(x,"paragraph")&&"paragraph"!=M.name}}const p2="selection",Rh="backward",a_="forward",$v={deleteContent:{unit:p2,direction:Rh},deleteContentBackward:{unit:"codePoint",direction:Rh},deleteWordBackward:{unit:"word",direction:Rh},deleteHardLineBackward:{unit:p2,direction:Rh},deleteSoftLineBackward:{unit:p2,direction:Rh},deleteContentForward:{unit:"character",direction:a_},deleteWordForward:{unit:"word",direction:a_},deleteHardLineForward:{unit:p2,direction:a_},deleteSoftLineForward:{unit:p2,direction:a_}};class Kv 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",(_,x)=>{if(!this.isEnabled)return;const{targetRanges:M,domEvent:E,inputType:F}=x,V=$v[F];if(!V)return;const W={direction:V.direction,unit:V.unit,sequence:u};W.unit==p2&&(W.selectionToRemove=r.createSelection(M[0])),"deleteContentBackward"===F&&(D_isAndroid&&(W.sequence=1),function(Zt){if(1!=Zt.length||Zt[0].isCollapsed)return!1;const ue=Zt[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let Ae=0;for(const{nextPosition:Ie}of ue){if(Ie.parent.is("$text")){const ln=Ie.parent.data,Dn=Ie.offset;if(cn(ln,Dn)||hd(ln,Dn)||kl(ln,Dn))continue;Ae++}else Ae++;if(Ae>1)return!0}return!1}(M)&&(W.unit=p2,W.selectionToRemove=r.createSelection(M)));const dt=new xp(c,"delete",M[0]);c.fire(dt,new pc(r,E,W)),dt.stop.called&&_.stop()}),D_isBlink&&function(_){const x=_.view,M=x.document;let E=null,F=!1;function V(dt){return dt==Ka.backspace||dt==Ka.delete}function W(dt){return dt==Ka.backspace?Rh:a_}M.on("keydown",(dt,{keyCode:Zt})=>{E=Zt,F=!1}),M.on("keyup",(dt,{keyCode:Zt,domEvent:ue})=>{const Ae=M.selection,Ie=_.isEnabled&&Zt==E&&V(Zt)&&!Ae.isCollapsed&&!F;if(E=null,Ie){const ln=Ae.getFirstRange(),Dn=new xp(M,"delete",ln),di={unit:p2,direction:W(Zt),selectionToRemove:Ae};M.fire(Dn,new pc(x,ue,di))}}),M.on("beforeinput",(dt,{inputType:Zt})=>{const ue=$v[Zt];V(E)&&ue&&ue.direction==W(E)&&(F=!0)},{priority:"high"}),M.on("beforeinput",(dt,{inputType:Zt,data:ue})=>{E==Ka.delete&&"insertText"==Zt&&"\x7f"==ue&&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(Kv),this._undoOnBackspace=!1;const x=new Qv(r,"forward");r.commands.add("deleteForward",x),r.commands.add("forwardDelete",x),r.commands.add("delete",new Qv(r,"backward")),this.listenTo(u,"delete",(M,E)=>{u.isComposing||E.preventDefault();const{direction:F,sequence:V,selectionToRemove:W,unit:dt}=E,Zt="forward"===F?"deleteForward":"delete",ue={sequence:V};if("selection"==dt){const Ae=Array.from(W.getRanges()).map(Ie=>r.editing.mapper.toModelRange(Ie));ue.selection=r.model.createSelection(Ae)}else ue.unit=dt;r.execute(Zt,ue),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 Ya extends lo{static get requires(){return[Gv,r_]}static get pluginName(){return"Typing"}}function S4(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 Xv extends(Ue()){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,x=u.createRange(u.createPositionAt(_.focus.parent,0),_.focus),{text:M,range:E}=S4(x,u),F=this.testCallback(M);if(!F&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!F,F){const V=Object.assign(c,{text:M,range:E});"object"==typeof F&&Object.assign(V,F),this.fire(`matched:${r}`,V)}}}class k5 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,x=r.model.document.selection;this.listenTo(r.editing.view.document,"arrowKey",(M,E)=>{if(!x.isCollapsed||E.shiftKey||E.altKey||E.ctrlKey)return;const F=E.keyCode==Ka.arrowright,V=E.keyCode==Ka.arrowleft;if(!F&&!V)return;const W=_.contentLanguageDirection;let dt=!1;dt="ltr"===W&&F||"rtl"===W&&V?this._handleForwardMovement(E):this._handleBackwardMovement(E),!0===dt&&M.stop()},{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(x,"change:range",(M,E)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!E.directChange&&B0(x.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&&L4(u,c)||!B0(_,c)||(Hh(r),this._overrideGravity(),0))}_handleBackwardMovement(r){const c=this.attributes,u=this.editor.model,_=u.document.selection,x=_.getFirstPosition();return this._isGravityOverridden?(Hh(r),this._restoreGravity(),O4(u,c,x),!0):x.isAtStart?!!L4(_,c)&&(Hh(r),O4(u,c,x),!0):(E=c,!(!B0(x.getShiftedBy(-1),E)||(x.isAtEnd&&!L4(_,c)&&B0(x,c)?(Hh(r),O4(u,c,x),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 L4(m,r){for(const c of r)if(m.hasAttribute(c))return!0;return!1}function O4(m,r,c){const u=c.nodeBefore;m.change(_=>{if(u){const x=[],M=m.schema.isObject(u)&&m.schema.isInline(u);for(const[E,F]of u.getAttributes())!m.schema.checkAttribute("$text",E)||M&&!1===m.schema.getAttributeProperties(E).copyFromObject||x.push([E,F]);_.setSelectionAttribute(x)}else _.removeSelectionAttribute(r)})}function Hh(m){m.preventDefault()}function B0(m,r){const{nodeBefore:c,nodeAfter:u}=m;for(const _ of r){const x=c?c.getAttribute(_):void 0;if((u?u.getAttribute(_):void 0)!==x)return!0}return!1}const D5={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"]},ua=["symbols","mathematical","typography","quotes"];function tx(m){return"string"==typeof m?new RegExp(`(${f5(m)})$`):m}function E4(m){return"string"==typeof m?()=>[m]:m instanceof Array?()=>m:m}function P5(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(ex(m,r,c,!0,u),ex(m,r,c,!1,u))}function ex(m,r,c,u,_){let x=m.textNode||(u?m.nodeBefore:m.nodeAfter),M=null;for(;x&&x.getAttribute(r)==c;)M=x,x=u?x.previousSibling:x.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 nx extends Za{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,x=u.isCollapsed,M=u.getFirstRange(),E=M.start.parent,F=M.end.parent;if(_.isLimit(E)||_.isLimit(F))return x||E!=F||c.deleteContent(u),!1;if(x){const V=m2(r.model.schema,u.getAttributes());return wi(r,M.start),r.setSelectionAttribute(V),!0}{const V=!(M.start.isAtStart&&M.end.isAtEnd),W=E==F;if(c.deleteContent(u,{leaveUnmerged:V}),V){if(W)return wi(r,u.focus),!0;r.setSelection(F,0)}}return!1}}function wi(m,r){m.split(r),m.setSelection(r.parent.nextSibling,0)}const Bn={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class H extends Qu{constructor(r){super(r);const c=this.document;let u=!1;c.on("keydown",(_,x)=>{u=x.shiftKey}),c.on("beforeinput",(_,x)=>{if(!this.isEnabled)return;let M=x.inputType;D_isSafari&&u&&"insertParagraph"==M&&(M="insertLineBreak");const E=x.domEvent,F=Bn[M];if(!F)return;const V=new xp(c,"enter",x.targetRanges[0]);c.fire(V,new pc(r,E,{isSoft:F.isSoft})),V.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 nx(r)),this.listenTo(u,"enter",(_,x)=>{u.isComposing||x.preventDefault(),x.isSoft||(r.execute("enter"),c.scrollToTheSelection())},{priority:"low"})}}class hu extends Za{execute(){const r=this.editor.model,c=r.document;r.change(u=>{(function(_,x,M){const E=M.isCollapsed,F=M.getFirstRange(),W=F.end.parent,dt=F.start.parent==W;if(E){const Zt=m2(_.schema,M.getAttributes());ka(_,x,F.end),x.removeSelectionAttribute(M.getAttributeKeys()),x.setSelectionAttribute(Zt)}else{const Zt=!(F.start.isAtStart&&F.end.isAtEnd);_.deleteContent(M,{leaveUnmerged:Zt}),dt?ka(_,x,M.focus):Zt&&x.setSelection(W,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 x=_.anchor;if(!x||!u.checkChild(x,"softBreak"))return!1;const M=_.getFirstRange(),E=M.start.parent,F=M.end.parent;return!((I4(E,u)||I4(F,u))&&E!==F)}(r.schema,r.document.selection)}}function ka(m,r,c){const u=r.createElement("softBreak");m.insertContent(u,c),r.setSelection(u,"after")}function I4(m,r){return!m.is("rootElement")&&(r.isLimit(m)||I4(m.parent,r))}class N8 extends lo{static get pluginName(){return"ShiftEnter"}init(){const r=this.editor,u=r.conversion,_=r.editing.view,x=_.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(x,"enter",(M,E)=>{x.isComposing||E.preventDefault(),E.isSoft&&(r.execute("shiftEnter"),_.scrollToTheSelection())},{priority:"low"})}}class ix extends(Oe()){constructor(){super(...arguments),this._stack=[]}add(r,c){const u=this._stack,_=u[0];this._insertDescriptor(r);const x=u[0];_===x||s_(_,x)||this.fire("change:top",{oldDescriptor:_,newDescriptor:x,writer:c})}remove(r,c){const u=this._stack,_=u[0];this._removeDescriptor(r);const x=u[0];_===x||s_(_,x)||this.fire("change:top",{oldDescriptor:_,newDescriptor:x,writer:c})}_insertDescriptor(r){const c=this._stack,u=c.findIndex(x=>x.id===r.id);if(s_(r,c[u]))return;u>-1&&c.splice(u,1);let _=0;for(;c[_]&&F8(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&&_f(m.classes)==_f(r.classes)}function F8(m,r){return m.priority>r.priority||!(m.priority_f(r.classes)}function _f(m){return Array.isArray(m)?m.sort().join(","):m}const ox="ck-widget_selected";function El(m){return!!m.is("element")&&!!m.getCustomProperty("widget")}function ep(m,r,c={}){if(!m.is("containerElement"))throw new nt("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=R8,r.setCustomProperty("widgetLabel",[],m),c.label&&(_=c.label,m.getCustomProperty("widgetLabel").push(_)),c.hasSelectionHandle&&function(u,_){const x=_.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(M){const E=this.toDomElement(M),F=new zs;return F.set("content",''),F.render(),E.appendChild(F.element),E});_.insert(_.createPositionAt(u,0),x),_.addClass(["ck-widget_with-selection-handle"],u)}(m,r),S5(m,r),m;var _}function q8(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 ax(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 S5(m,r,c=q8,u=ax){const _=new ix;_.on("change:top",(x,M)=>{M.oldDescriptor&&u(m,M.oldDescriptor,M.writer),M.newDescriptor&&c(m,M.newDescriptor,M.writer)}),r.setCustomProperty("addHighlight",(x,M,E)=>_.add(M,E),m),r.setCustomProperty("removeHighlight",(x,M,E)=>_.remove(M,E),m)}function L5(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,_,x)=>{r.setAttribute("contenteditable",x?"false":"true",m)}),m.on("change:isFocused",(u,_,x)=>{x?r.addClass("ck-editor__nested-editable_focused",m):r.removeClass("ck-editor__nested-editable_focused",m)}),S5(m,r),m}function F4(m,r){const c=m.getSelectedElement();if(c){const u=np(m);if(u)return r.createRange(r.createPositionAt(c,u))}return v0(m,r)}function R8(){return null}const c_="widget-type-around";function ff(m,r,c){return!!m&&El(m)&&!c.isInline(r)}function np(m){return m.getAttribute(c_)}var rx=v(4921);No()(rx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const hf=["before","after"],_2=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,q4="ck-widget__type-around_disabled";class cx 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,_,x)=>{c.change(M=>{for(const E of c.document.roots)x?M.removeClass(q4,E):M.addClass(q4,E)}),x||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,x=u.model.schema.getAttributesWithProperty(r,"copyOnReplace",!0);u.execute("insertParagraph",{position:u.model.createPositionAt(r,c),attributes:x}),_.focus(),_.scrollToTheSelection()}_listenToIfEnabled(r,c,u,_){this.listenTo(r,c,(...x)=>{this.isEnabled&&u(...x)},_)}_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",(x,M,E)=>{const F=E.mapper.toViewElement(M.item);F&&ff(F,M.item,c)&&(function(V,W,dt){const Zt=V.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(ue){const Ae=this.toDomElement(ue);return function(Ie,ln){for(const Dn of hf){const di=new Ur({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${Dn}`],title:ln[Dn],"aria-hidden":"true"},children:[Ie.ownerDocument.importNode(_2,!0)]});Ie.appendChild(di.render())}}(Ae,W),function(Ie){const ln=new Ur({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});Ie.appendChild(ln.render())}(Ae),Ae});V.insert(V.createPositionAt(dt,"end"),Zt)}(E.writer,_,F),F.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,F)=>{this._handleArrowKeyPress(E,F)},{context:[El,"$text"],priority:"high"}),this._listenToIfEnabled(u,"change:range",(E,F)=>{F.directChange&&r.model.change(V=>{V.removeSelectionAttribute(c_)})}),this._listenToIfEnabled(c.document,"change:data",()=>{const E=u.getSelectedElement();E&&ff(r.editing.mapper.toViewElement(E),E,_)||r.model.change(F=>{F.removeSelectionAttribute(c_)})}),this._listenToIfEnabled(r.editing.downcastDispatcher,"selection",(E,F,V)=>{const W=V.writer;if(this._currentFakeCaretModelElement){const Ae=V.mapper.toViewElement(this._currentFakeCaretModelElement);Ae&&(W.removeClass(hf.map(M),Ae),this._currentFakeCaretModelElement=null)}const dt=F.selection.getSelectedElement();if(!dt)return;const Zt=V.mapper.toViewElement(dt);if(!ff(Zt,dt,_))return;const ue=np(F.selection);ue&&(W.addClass(M(ue),Zt),this._currentFakeCaretModelElement=dt)}),this._listenToIfEnabled(r.ui.focusTracker,"change:isFocused",(E,F,V)=>{V||r.model.change(W=>{W.removeSelectionAttribute(c_)})})}_handleArrowKeyPress(r,c){const u=this.editor,_=u.model,x=_.document.selection,M=_.schema,E=u.editing.view,F=function(dt,Zt){const ue=b1(dt,Zt);return"down"===ue||"right"===ue}(c.keyCode,u.locale.contentLanguageDirection),V=E.document.selection.getSelectedElement();let W;ff(V,u.editing.mapper.toModelElement(V),M)?W=this._handleArrowKeyPressOnSelectedWidget(F):x.isCollapsed?W=this._handleArrowKeyPressWhenSelectionNextToAWidget(F):c.shiftKey||(W=this._handleArrowKeyPressWhenNonCollapsedSelection(F)),W&&(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,x=c.plugins.get("Widget"),M=x._getObjectElementNextToSelection(r);return!!ff(c.editing.mapper.toViewElement(M),M,_)&&(u.change(E=>{x._setSelectionOverElement(M),E.setSelectionAttribute(c_,r?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(r){const c=this.editor,u=c.model,_=u.schema,x=c.editing.mapper,M=u.document.selection,E=r?M.getLastPosition().nodeBefore:M.getFirstPosition().nodeAfter;return!!ff(x.toViewElement(E),E,_)&&(u.change(F=>{F.setSelection(E,"on"),F.setSelectionAttribute(c_,r?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const r=this.editor,c=r.editing.view;this._listenToIfEnabled(c.document,"mousedown",(u,_)=>{const x=_.domTarget.closest(".ck-widget__type-around__button");if(!x)return;const M=x.classList.contains("ck-widget__type-around__button_before")?"before":"after",E=function(V,W){const dt=V.closest(".ck-widget");return W.mapDomToView(dt)}(x,c.domConverter),F=r.editing.mapper.toModelElement(E);this._insertParagraph(F,M),_.preventDefault(),u.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const r=this.editor,c=r.model.document.selection;this._listenToIfEnabled(r.editing.view.document,"enter",(_,x)=>{if("atTarget"!=_.eventPhase)return;const M=c.getSelectedElement(),E=r.editing.mapper.toViewElement(M),F=r.model.schema;let V;this._insertParagraphAccordingToFakeCaretPosition()?V=!0:ff(E,M,F)&&(this._insertParagraph(M,x.isSoft?"before":"after"),V=!0),V&&(x.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",(x,M)=>{if("atTarget"!=x.eventPhase)return;const E=np(u.document.selection);if(!E)return;const F=M.direction,V=u.document.selection.getSelectedElement(),W="forward"==F;if("before"===E===W)r.execute("delete",{selection:u.createSelection(V,"on")});else{const dt=_.getNearestSelectionRange(u.createPositionAt(V,E),F);if(dt)if(dt.isCollapsed){const Zt=u.createSelection(dt.start);if(u.modifySelection(Zt,{direction:F}),Zt.focus.isEqual(dt.start)){const ue=function(Ae,Ie){let ln=Ie;for(const Dn of Ie.getAncestors({parentFirst:!0})){if(Dn.childCount>1||Ae.isLimit(Dn))break;ln=Dn}return ln}(_,dt.start.parent);u.deleteContent(u.createSelection(ue,"on"),{doNotAutoparagraph:!0})}else u.change(ue=>{ue.setSelection(dt),r.execute(W?"deleteForward":"delete")})}else u.change(Zt=>{Zt.setSelection(dt),r.execute(W?"deleteForward":"delete")})}M.preventDefault(),x.stop()},{context:El})}_enableInsertContentIntegration(){const c=this.editor.model,u=c.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(_,[x,M])=>{if(M&&!M.is("documentSelection"))return;const E=np(u);return E?(_.stop(),c.change(F=>{const V=u.getSelectedElement(),W=c.createPositionAt(V,E),dt=F.createSelection(W),Zt=c.insertContent(x,dt);return F.setSelection(dt),Zt})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const c=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"insertObject",(u,_)=>{const[,x,M={}]=_;if(x&&!x.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 ux(m,r,c){const u=m.schema,_=m.createRangeIn(r.root),x="forward"==c?"elementStart":"elementEnd";for(const{previousPosition:M,item:E,type:F}of _.getWalker({startPosition:r,direction:c})){if(u.isLimit(E)&&!u.isInline(E))return M;if(F==x&&u.isBlock(E))return null}return null}function gf(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 zh=v(3488);No()(zh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class V0 extends lo{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[cx,r_]}init(){const r=this.editor,c=r.editing.view,u=c.document;this.editor.editing.downcastDispatcher.on("selection",(_,x,M)=>{const E=M.writer,F=x.selection;if(F.isCollapsed)return;const V=F.getSelectedElement();if(!V)return;const W=r.editing.mapper.toViewElement(V);var dt;El(W)&&M.consumable.consume(F,"selection")&&E.setSelection(E.createRangeOn(W),{fake:!0,label:(dt=W,dt.getCustomProperty("widgetLabel").reduce((Zt,ue)=>"function"==typeof ue?Zt?Zt+". "+ue():ue():Zt?Zt+". "+ue:ue,""))})}),this.editor.editing.downcastDispatcher.on("selection",(_,x,M)=>{this._clearPreviouslySelectedWidgets(M.writer);const E=M.writer,F=E.document.selection;let V=null;for(const W of F.getRanges())for(const dt of W){const Zt=dt.item;El(Zt)&&!H8(Zt,V)&&(E.addClass(ox,Zt),this._previouslySelected.add(Zt),V=Zt)}},{priority:"low"}),c.addObserver(C0),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 lx(m){const r=m.model;return(c,u)=>{const x=u.keyCode==Ka.arrowdown,M=u.shiftKey,E=r.document.selection;if(u.keyCode!=Ka.arrowup&&!x)return;const F=x;if(M&&!(W=E).isCollapsed&&W.isBackward==F)return;var W;const V=function(W,dt,Zt){const ue=W.model;if(Zt){const Ae=dt.isCollapsed?dt.focus:dt.getLastPosition(),Ie=ux(ue,Ae,"forward");if(!Ie)return null;const ln=ue.createRange(Ae,Ie),Dn=gf(ue.schema,ln,"backward");return Dn?ue.createRange(Ae,Dn):null}{const Ae=dt.isCollapsed?dt.focus:dt.getFirstPosition(),Ie=ux(ue,Ae,"backward");if(!Ie)return null;const ln=ue.createRange(Ie,Ae),Dn=gf(ue.schema,ln,"forward");return Dn?ue.createRange(Dn,Ae):null}}(m,E,F);if(V){if(V.isCollapsed&&(E.isCollapsed||M))return;(V.isCollapsed||function(W,dt,Zt){const ue=W.model,Ae=W.view.domConverter;if(Zt){const Ri=ue.createSelection(dt.start);ue.modifySelection(Ri),Ri.focus.isAtEnd||dt.start.isEqual(Ri.focus)||(dt=ue.createRange(Ri.focus,dt.end))}const Ie=W.mapper.toViewRange(dt),ln=Ae.viewRangeToDom(Ie),Dn=ce.getDomRangeRects(ln);let di;for(const Ri of Dn)if(void 0!==di){if(Math.round(Ri.top)>=di)return!1;di=Math.max(di,Math.round(Ri.bottom))}else di=Math.round(Ri.bottom);return!0}(m,V,F))&&(r.change(W=>{const dt=F?V.end:V.start;if(M){const Zt=r.createSelection(E.anchor);Zt.setFocus(dt),W.setSelection(Zt)}else W.setSelection(dt)}),c.stop(),u.preventDefault(),u.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(u,"delete",(_,x)=>{this._handleDelete("forward"==x.direction)&&(x.preventDefault(),_.stop())},{context:"$root"})}_onMousedown(r,c){const u=this.editor,_=u.editing.view,x=_.document;let M=c.target;if(function(F){let V=F;for(;V;){if(V.is("editableElement")&&!V.is("rootElement"))return!0;if(El(V))return!1;V=V.parent}return!1}(M)){if((D_isSafari||D_isGecko)&&c.domEvent.detail>=3){const F=u.editing.mapper,V=M.is("attributeElement")?M.findAncestor(dt=>!dt.is("attributeElement")):M,W=F.toModelElement(V);c.preventDefault(),this.editor.model.change(dt=>{dt.setSelection(W,"in")})}return}if(!El(M)&&(M=M.findAncestor(El),!M))return;D_isAndroid&&c.preventDefault(),x.isFocused||_.focus();const E=u.editing.mapper.toModelElement(M);this._setSelectionOverElement(E)}_handleSelectionChangeOnArrowKeyPress(r,c){const u=c.keyCode,_=this.editor.model,x=_.schema,M=_.document.selection,E=M.getSelectedElement(),F=b1(u,this.editor.locale.contentLanguageDirection),V="down"==F||"right"==F,W="up"==F||"down"==F;if(E&&x.isObject(E)){const Zt=V?M.getLastPosition():M.getFirstPosition(),ue=x.getNearestSelectionRange(Zt,V?"forward":"backward");return void(ue&&(_.change(Ae=>{Ae.setSelection(ue)}),c.preventDefault(),r.stop()))}if(!M.isCollapsed&&!c.shiftKey){const Zt=M.getFirstPosition(),ue=M.getLastPosition(),Ae=Zt.nodeAfter,Ie=ue.nodeBefore;return void((Ae&&x.isObject(Ae)||Ie&&x.isObject(Ie))&&(_.change(ln=>{ln.setSelection(V?ue:Zt)}),c.preventDefault(),r.stop()))}if(!M.isCollapsed)return;const dt=this._getObjectElementNextToSelection(V);if(dt&&x.isObject(dt)){if(x.isInline(dt)&&W)return;this._setSelectionOverElement(dt),c.preventDefault(),r.stop()}}_preventDefaultOnArrowKeyPress(r,c){const u=this.editor.model,_=u.schema,x=u.document.selection.getSelectedElement();x&&_.isObject(x)&&(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 x=c.anchor.parent;for(;x.isEmpty;){const M=x;x=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,x=c.createSelection(_);if(c.modifySelection(x,{direction:r?"forward":"backward"}),x.isEqual(_))return null;const M=r?x.focus.nodeBefore:x.focus.nodeAfter;return M&&u.isObject(M)?M:null}_clearPreviouslySelectedWidgets(r){for(const c of this._previouslySelected)r.removeClass(ox,c);this._previouslySelected.clear()}}function H8(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[F0]}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 x=_.getSelectedElement();return!(!x||!El(x))})(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:x="ck-toolbar-container"}){if(!u.length)return void Tt("widget-toolbar-no-items",{toolbarId:r});const M=this.editor,E=M.t,F=new T0(M.locale);if(F.ariaLabel=c||E("Widget toolbar"),this._toolbarDefinitions.has(r))throw new nt("widget-toolbar-duplicated",this,{toolbarId:r});const V={view:F,getRelatedElement:_,balloonClassName:x,itemsConfig:u,initialized:!1};M.ui.addToolbar(F,{isContextual:!0,beforeFocus:()=>{const W=_(M.editing.view.document.selection);W&&this._showToolbar(V,W)},afterBlur:()=>{this._hideToolbar(V)}}),this._toolbarDefinitions.set(r,V)}_updateToolbarsVisibility(){let r=0,c=null,u=null;for(const _ of this._toolbarDefinitions.values()){const x=_.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&x)if(this.editor.ui.focusTracker.isFocused){const M=x.getAncestors().length;M>r&&(r=M,c=x,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)?O5(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:E5(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);O5(this.editor,_)}}))}_isToolbarVisible(r){return this._balloon.visibleView===r.view}_isToolbarInBalloon(r){return this._balloon.hasView(r.view)}}function O5(m,r){const c=m.plugins.get("ContextualBalloon"),u=E5(m,r);c.updatePosition(u)}function E5(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]}}Ue(),Ue();var px=v(8506);No()(px.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const I5=bo("px");class z8 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=>I5(c)),top:r.to("top",c=>I5(c)),width:r.to("width",c=>I5(c))}}})}}class N5 extends lo{constructor(){super(...arguments),this.removeDropMarkerDelayed=wr(()=>this.removeDropMarker(),40),this._updateDropMarkerThrottled=Sh(r=>this._updateDropMarker(r),40),this._reconvertMarkerThrottled=Sh(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0),this._dropTargetLineView=new z8,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,_,x){this.removeDropMarkerDelayed.cancel();const M=F5(this.editor,r,c,u,_,x);M&&this._updateDropMarkerThrottled(M)}getFinalDropRange(r,c,u,_,x){const M=F5(this.editor,r,c,u,_,x);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,x=r.start.parent,M=u?c.mapper.toViewElement(u):null,E=M?c.view.domConverter.mapViewToDom(M):null,F=_?c.mapper.toViewElement(_):null,V=F?c.view.domConverter.mapViewToDom(F):null,W=c.mapper.toViewElement(x),dt=c.view.domConverter.mapViewToDom(W),Zt=this._getScrollableRect(W),{scrollX:ue,scrollY:Ae}=Mt.window,Ie=E?new ce(E):null,ln=V?new ce(V):null,Dn=new ce(dt).excludeScrollbarsAndBorders(),di=Ie?Ie.bottom:Dn.top,Ri=ln?ln.top:Dn.bottom,Go=Mt.window.getComputedStyle(dt),Da=di<=Ri?(di+Ri)/2:Ri;if(Zt.topZt.is("element")&&!ny(m,Zt));let W=0,dt=V.length;if(0==dt)return M.createRange(M.createPositionAt(F,"end"));for(;Wr in m?Y8(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class V8 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(Mt.document,"dragover",(u,_)=>this._handleBlockDragging(_)),this._domEmitter.listenTo(Mt.document,"drop",(u,_)=>this._handleBlockDragging(_)),this._domEmitter.listenTo(Mt.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&c.setAttribute("draggable","true"),this.on("change:isEnabled",(u,_,x)=>{c.setAttribute("draggable",x?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(r){if(!this.isEnabled)return;const c=this.editor.model,_=this.editor.editing.view,x=Array.from(c.document.selection.getSelectedBlocks()),M=c.createRange(c.createPositionBefore(x[0]),c.createPositionAfter(x[x.length-1]));c.change(E=>E.setSelection(M)),this._isBlockDragging=!0,_.focus(),_.getObserver(qh).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),x=this.editor.editing.view;var M;_&&_.closest(".ck-editor__editable")&&x.getObserver(qh).onDomEvent((M=((F,V)=>{for(var W in V||(V={}))fx.call(V,W)&&hx(F,W,V[W]);if(bf)for(var W of bf(V))q5.call(V,W)&&hx(F,W,V[W]);return F})({},r),B8(M,_x({type:r.type,dataTransfer:r.dataTransfer,target:_,clientX:c,clientY:u,preventDefault:()=>r.preventDefault(),stopPropagation:()=>r.stopPropagation()}))))}_handleBlockDragEnd(){this._isBlockDragging=!1}}var gx=v(903);No()(gx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class vx 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,V0,N5,V8]}init(){const r=this.editor,c=r.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,c.addObserver(qh),c.addObserver(C0),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(r,"change:isReadOnly",(u,_,x)=>{x?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(u,_,x)=>{x||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,x=r.plugins.get(N5);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 F=c.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(E.dataTransfer,F,"dragstart");const{dataTransfer:V,domTarget:W,domEvent:dt}=E,{clientX:Zt}=dt;this._updatePreview({dataTransfer:V,domTarget:W,clientX:Zt}),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(Mt.document,"dragend",()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(_,"dragenter",()=>{this.isEnabled&&u.focus()}),this.listenTo(_,"dragleave",()=>{x.removeDropMarkerDelayed()}),this.listenTo(_,"dragging",(M,E)=>{if(!this.isEnabled)return void(E.dataTransfer.dropEffect="none");const{clientX:F,clientY:V}=E.domEvent;x.updateDropMarker(E.target,E.targetRanges,F,V,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(N5);this.listenTo(c,"clipboardInput",(_,x)=>{if("drop"!=x.method)return;const{clientX:M,clientY:E}=x.domEvent,F=u.getFinalDropRange(x.target,x.targetRanges,M,E,this._blockMode);return F?(this._draggedRange&&this._draggingUid!=x.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==xx(x.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(F,!0)?(this._finalizeDragging(!1),void _.stop()):void(x.targetRanges=[r.editing.mapper.toViewRange(F)])):(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(x=>this.editor.editing.mapper.toModelRange(x));this.editor.model.change(x=>x.setSelection(_))},{priority:"high"}),r.on("contentInsertion",(c,u)=>{if(!this.isEnabled||"drop"!==u.method)return;const _="move"==xx(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",(_,x)=>{if(D_isAndroid||!x)return;this._clearDraggableAttributesDelayed.cancel();let M=Yh(x.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(N5).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 x=u.createSelection(this._draggedRange);u.deleteContent(x,{doNotAutoparagraph:!0});const M=x.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,x=r?Yh(r):null;if(x){const V=c.editing.mapper.toModelElement(x);return this._draggedRange=Xu.fromRange(u.createRangeOn(V)),this._blockMode=u.schema.isBlock(V),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 F=Cx(u,M);if(M.length>1)this._draggedRange=Xu.fromRange(F),this._blockMode=!0;else if(1==M.length){const V=E.start.isTouching(F.start)&&E.end.isTouching(F.end);this._draggedRange=Xu.fromRange(V?F:E),this._blockMode=V}u.change(V=>V.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:r,domTarget:c,clientX:u}){const _=this.editor.editing.view,M=_.domConverter.mapViewToDom(_.document.selection.editableElement),E=Mt.window.getComputedStyle(M);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=We(Mt.document,"div",{style:"position: fixed; left: -999999px;"}),Mt.document.body.appendChild(this._previewContainer));const F=new ce(M);if(M.contains(c))return;const V=parseFloat(E.paddingLeft),W=We(Mt.document,"div");W.className="ck ck-content",W.style.width=E.width,W.style.paddingLeft=`${F.left-u+V}px`,D_isiOS&&(W.style.backgroundColor="white"),W.innerHTML=r.getData("text/html"),r.setDragImage(W,0,0),this._previewContainer.appendChild(W)}}function xx(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 Cx(m,r){const c=r[0],u=r[r.length-1],_=c.getCommonAncestor(u),x=m.createPositionBefore(c),M=m.createPositionAfter(u);if(_&&_.is("element")&&!m.schema.isLimit(_)){const E=m.createRangeOn(_),F=x.isTouching(E.start),V=M.isTouching(E.end);if(F&&V)return Cx(m,[_])}return m.createRange(x,M)}class Ax 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,x=c.document.selection;let M=!1;u.addObserver(qh),this.listenTo(_,"keydown",(E,F)=>{M=F.shiftKey}),r.plugins.get(Np).on("contentInsertion",(E,F)=>{(M||function(V,W){if(V.childCount>1)return!1;const dt=V.getChild(0);return!W.isObject(dt)&&0==Array.from(dt.getAttributeKeys()).length}(F.content,c.schema))&&c.change(V=>{const W=Array.from(x.getAttributes()).filter(([Zt])=>c.schema.getAttributeProperties(Zt).isFormatting);x.isCollapsed||c.deleteContent(x,{doNotAutoparagraph:!0}),W.push(...x.getAttributes());const dt=V.createRangeIn(F.content);for(const Zt of dt.getItems())Zt.is("$textProxy")&&V.setAttributes(W,Zt)})})}}class yx extends lo{static get pluginName(){return"Clipboard"}static get requires(){return[Np,vx,Ax]}}class H4 extends Za{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)||!Tx(r.schema,u))do{if(u=u.parent,!u)return}while(!Tx(r.schema,u));r.change(_=>{_.setSelection(u,"in")})}}function Tx(m,r){return m.isLimit(r)&&(m.checkChild(r,"$text")||m.checkChild(r,"paragraph"))}const wx=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 H4(r)),this.listenTo(c,"keydown",(u,_)=>{Tc(_)===wx&&(r.execute("selectAll"),_.preventDefault())})}}class R5 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 J8 extends lo{static get requires(){return[j8,R5]}static get pluginName(){return"SelectAll"}}var Ux=Object.defineProperty,H5=Object.getOwnPropertySymbols,Zx=Object.prototype.hasOwnProperty,Mx=Object.prototype.propertyIsEnumerable,kx=(m,r,c)=>r in m?Ux(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Bh extends Za{constructor(r){super(r),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(r.data,"set",(c,u)=>{u[1]=((x,M)=>{for(var E in M||(M={}))Zx.call(M,E)&&kx(x,E,M[E]);if(H5)for(var E of H5(M))Mx.call(M,E)&&kx(x,E,M[E]);return x})({},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,x=_.document,M=[],E=r.map(V=>V.getTransformedByOperations(u)),F=E.flat();for(const V of E){const W=V.filter(dt=>dt.root!=x.graveyard).filter(dt=>!Dx(dt,F));W.length&&(G8(W),M.push(W[0]))}M.length&&_.change(V=>{V.setSelection(M,{backward:c})})}_undo(r,c){const u=this.editor.model,_=u.document;this._createdBatches.add(c);const x=r.operations.slice().filter(M=>M.isDocumentOperation);x.reverse();for(const M of x){const F=Array.from(_.history.getOperations(M.baseVersion+1)),V=_h([M.getReversed()],F,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let W of V){const dt=W.affectedSelectable;dt&&!u.canEditAt(dt)&&(W=new fc(W.baseVersion)),c.addOperation(W),u.applyOperation(W),_.history.setOperationAsUndone(M,W)}}}}function G8(m){m.sort((r,c)=>r.start.isBefore(c.start)?-1:1);for(let r=1;rc!==m&&c.containsRange(m,!0))}class Px extends Bh{execute(r=null){const c=r?this._stack.findIndex(x=>x.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 x=this.editor.model.document.history.getOperations(u.batch.baseVersion);this._restoreSelection(u.selection.ranges,u.selection.isBackward,x)}),this.fire("revert",u.batch,_),this.refresh()}}class Q8 extends Bh{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 W8 extends lo{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const r=this.editor;this._undoCommand=new Px(r),this._redoCommand=new Q8(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 x=_.batch,M=this._redoCommand.createdBatches.has(x),E=this._undoCommand.createdBatches.has(x);this._batchRegistry.has(x)||(this._batchRegistry.add(x),x.isUndoable&&(M?this._undoCommand.addBatch(x):E||(this._undoCommand.addBatch(x),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 z5='',Sx='';class $8 extends lo{static get pluginName(){return"UndoUI"}init(){const r=this.editor,c=r.locale,u=r.t,_="ltr"==c.uiLanguageDirection?z5:Sx,x="ltr"==c.uiLanguageDirection?Sx:z5;this._addButton("undo",u("Undo"),"CTRL+Z",_),this._addButton("redo",u("Redo"),"CTRL+Y",x)}_addButton(r,c,u,_){const x=this.editor;x.ui.componentFactory.add(r,M=>{const E=x.commands.get(r),F=new $o(M);return F.set({label:c,icon:_,keystroke:u,tooltip:!0}),F.bind("isEnabled").to(E,"isEnabled"),this.listenTo(F,"execute",()=>{x.execute(r),x.editing.view.focus()}),F})}}class Lx extends lo{static get requires(){return[W8,$8]}static get pluginName(){return"Undo"}}class Ox extends(Ue()){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 x=c.result;this._data=x,u(x)},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[Th]}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 Tt("filerepository-no-upload-adapter"),null;const c=new Y5(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 Y5?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(Th);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 Y5 extends(Ue()){constructor(r,c){super(),this.id=Pt(),this._filePromiseWrapper=this._createFilePromiseWrapper(r),this._adapter=c(this),this._reader=new Ox,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 nt("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 nt("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(x=>{c.isFulfilled=!0,u(x)}).catch(x=>{c.isFulfilled=!0,_(x)})}),c}}class Ex extends oa{constructor(r){super(r),this.buttonView=new $o(r),this._fileInputView=new K8(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 K8 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 X8{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,x=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&&(x.uploadTotal=E.total,x.uploaded=E.loaded)})}_sendRequest(r){const c=new FormData;c.append("upload",r),c.append("ckCsrfToken",function V5(){let m=function(u){u=u.toLowerCase();const _=document.cookie.split(";");for(const x of _){const M=x.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 x=new Uint8Array(40);window.crypto.getRandomValues(x);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 Fp(m,r,c,u){let _,x=null;"function"==typeof u?_=u:(x=m.commands.get(u),_=()=>{m.execute(u)}),m.model.document.on("change:data",(M,E)=>{if(x&&!x.isEnabled||!r.isEnabled)return;const F=as(m.model.document.selection.getRanges());if(!F.isCollapsed||E.isUndo||!E.isLocal)return;const V=Array.from(m.model.document.differ.getChanges()),W=V[0];if(1!=V.length||"insert"!==W.type||"$text"!=W.name||1!=W.length)return;const dt=W.position.parent;if(dt.is("element","codeBlock")||dt.is("element","listItem")&&"function"!=typeof u&&!["numberedList","bulletedList","todoList"].includes(u)||x&&!0===x.value)return;const Zt=dt.getChild(0),ue=m.model.createRangeOn(Zt);if(!ue.containsRange(F)&&!F.end.isEqual(ue.end))return;const Ae=c.exec(Zt.data.substr(0,F.end.offset));Ae&&m.model.enqueueChange(Ie=>{const ln=Ie.createPositionAt(dt,0),Dn=Ie.createPositionAt(dt,Ae[0].length),di=new Xu(ln,Dn);if(!1!==_({match:Ae})){Ie.remove(di);const Ri=m.model.document.selection.getFirstRange(),Go=Ie.createRangeIn(dt);!dt.isEmpty||Go.isEqual(Ri)||Go.containsRange(Ri,!0)||Ie.remove(dt)}di.detach(),m.model.enqueueChange(()=>{m.plugins.get("Delete").requestUndoOnBackspace()})})})}function f2(m,r,c,u){let _,x;c instanceof RegExp?_=c:x=c,x=x||(M=>{let E;const F=[],V=[];for(;null!==(E=_.exec(M))&&!(E&&E.length<4);){let{index:W,1:dt,2:Zt,3:ue}=E;W+=E[0].length-(dt+Zt+ue).length;const ln=[W+dt.length+Zt.length,W+dt.length+Zt.length+ue.length];F.push([W,W+dt.length]),F.push(ln),V.push([W+dt.length,W+dt.length+Zt.length])}return{remove:F,format:V}}),m.model.document.on("change:data",(M,E)=>{if(E.isUndo||!E.isLocal||!r.isEnabled)return;const F=m.model,V=F.document.selection;if(!V.isCollapsed)return;const W=Array.from(F.document.differ.getChanges()),dt=W[0];if(1!=W.length||"insert"!==dt.type||"$text"!=dt.name||1!=dt.length)return;const Zt=V.focus,ue=Zt.parent,{text:Ae,range:Ie}=function(Ri,Go){let Da=Ri.start;return{text:Array.from(Ri.getItems()).reduce((Kr,Il)=>!Il.is("$text")&&!Il.is("$textProxy")||Il.getAttribute("code")?(Da=Go.createPositionAfter(Il),""):Kr+Il.data,""),range:Go.createRange(Da,Ri.end)}}(F.createRange(F.createPositionAt(ue,0),Zt),F),ln=x(Ae),Dn=j5(Ie.start,ln.format,F),di=j5(Ie.start,ln.remove,F);Dn.length&&di.length&&F.enqueueChange(Ri=>{if(!1!==u(Ri,Dn)){for(const Go of di.reverse())Ri.remove(Go);F.enqueueChange(()=>{m.plugins.get("Delete").requestUndoOnBackspace()})}})})}function j5(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 Vh(m,r){return(c,u)=>{if(!m.commands.get(r).isEnabled)return!1;const _=m.model.schema.getValidRanges(u,r);for(const x of _)c.setAttribute(r,!0,x);c.removeSelectionAttribute(r)}}class Ix extends Za{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(x=>{if(u.isCollapsed)_?x.setSelectionAttribute(this.attributeKey,!0):x.removeSelectionAttribute(this.attributeKey);else{const M=c.schema.getValidRanges(u.getRanges(),this.attributeKey);for(const E of M)_?x.setAttribute(this.attributeKey,_,E):x.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 x of _.getItems())if(c.checkAttribute(x,this.attributeKey))return x.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 Ix(r,jh)),r.keystrokes.set("CTRL+B",jh)}}const G5="bold";class Q5 extends lo{static get pluginName(){return"BoldUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add(G5,u=>{const _=r.commands.get(G5),x=new $o(u);return x.set({label:c("Bold"),icon:gs.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),x.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(x,"execute",()=>{r.execute(G5),r.editing.view.focus()}),x})}}var vf=v(8603);No()(vf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Jh="italic";class iy extends lo{static get pluginName(){return"ItalicEditing"}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:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),r.commands.add(Jh,new Ix(r,Jh)),r.keystrokes.set("CTRL+I",Jh)}}const Q0="italic";class B4 extends lo{static get pluginName(){return"ItalicUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add(Q0,u=>{const _=r.commands.get(Q0),x=new $o(u);return x.set({label:c("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),x.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(x,"execute",()=>{r.execute(Q0),r.editing.view.focus()}),x})}}class tA extends Za{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const c=this.editor.model,u=c.schema,x=Array.from(c.document.selection.getSelectedBlocks()),M=void 0===r.forceValue?!this.value:r.forceValue;c.change(E=>{if(M){const F=x.filter(V=>xf(V)||W5(u,V));this._applyQuote(E,F)}else this._removeQuote(E,x.filter(xf))})}_getValue(){const r=as(this.editor.model.document.selection.getSelectedBlocks());return!(!r||!xf(r))}_checkEnabled(){if(this.value)return!0;const c=this.editor.model.schema,u=as(this.editor.model.document.selection.getSelectedBlocks());return!!u&&W5(c,u)}_removeQuote(r,c){Nx(r,c).reverse().forEach(u=>{if(u.start.isAtStart&&u.end.isAtEnd)return void r.unwrap(u.start.parent);if(u.start.isAtStart){const x=r.createPositionBefore(u.start.parent);return void r.move(u,x)}u.end.isAtEnd||r.split(u.end);const _=r.createPositionAfter(u.end.parent);r.move(u,_)})}_applyQuote(r,c){const u=[];Nx(r,c).reverse().forEach(_=>{let x=xf(_.start);x||(x=r.createElement("blockQuote"),r.wrap(_,x)),u.push(x)}),u.reverse().reduce((_,x)=>_.nextSibling==x?(r.merge(r.createPositionAfter(_)),_):x)}}function xf(m){return"blockQuote"==m.parent.name?m.parent:null}function Nx(m,r){let c,u=0;const _=[];for(;u{const E=r.model.document.differ.getChanges();for(const F of E)if("insert"==F.type){const V=F.position.nodeAfter;if(!V)continue;if(V.is("element","blockQuote")&&V.isEmpty)return M.remove(V),!0;if(V.is("element","blockQuote")&&!c.checkChild(F.position,V))return M.unwrap(V),!0;if(V.is("element")){const W=M.createRangeIn(V);for(const dt of W.getItems())if(dt.is("element","blockQuote")&&!c.checkChild(M.createPositionBefore(dt),dt))return M.unwrap(dt),!0}}else if("remove"==F.type){const V=F.position.parent;if(V.is("element","blockQuote")&&V.isEmpty)return M.remove(V),!0}return!1});const u=this.editor.editing.view.document,_=r.model.document.selection,x=r.commands.get("blockQuote");this.listenTo(u,"enter",(M,E)=>{!_.isCollapsed||!x.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||!x.value)return;const F=_.getLastPosition().parent;F.isEmpty&&!F.previousSibling&&(r.execute("blockQuote"),r.editing.view.scrollToTheSelection(),E.preventDefault(),M.stop())},{context:"blockquote"})}}var _a=v(3062);No()(_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"),x=new $o(u);return x.set({label:c("Block quote"),icon:gs.quote,tooltip:!0,isToggleable:!0}),x.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(x,"execute",()=>{r.execute("blockQuote"),r.editing.view.focus()}),x})}}class qx 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 x=new $o(_);return x.set({label:u("Open file manager"),icon:'',tooltip:!0}),x.bind("isOn","isEnabled").to(c,"value","isEnabled"),x.on("execute",()=>{r.execute("ckbox")}),x})}}function Rx(m){const r=[];let c=0;for(const _ in m){const x=parseInt(_,10);isNaN(x)||(x>c&&(c=x),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 eA extends Za{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=We(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",(_,x)=>{if(!this.isEnabled)return;const M=r.commands.get("insertImage"),E=r.commands.get("link"),F=function({assets:V,isImageAllowed:W,isLinkAllowed:dt}){return V.map(Zt=>function(ue){const Ae=ue.data.metadata;return!!Ae&&Ae.width&&Ae.height}(Zt)?{id:Zt.data.id,type:"image",attributes:nA(Zt)}:{id:Zt.data.id,type:"link",attributes:iA(Zt)}).filter(Zt=>"image"===Zt.type?W:dt)}({assets:x,isImageAllowed:M.isEnabled,isLinkAllowed:E.isEnabled});0!==F.length&&c.change(V=>{for(const W of F)this._insertAsset(W,W===F[F.length-1],V),u&&(setTimeout(()=>this._chosenAssets.delete(W),1e3),this._chosenAssets.add(W))})}),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:x}=r.attributes;c.execute("insertImage",{source:{src:u,sources:_,alt:x}})}_insertLink(r,c){const u=this.editor,_=u.model,x=_.document.selection,{linkName:M,linkHref:E}=r.attributes;if(x.isCollapsed){const F=Kc(x.getAttributes()),V=c.createText(M,F),W=_.insertContent(V);c.setSelection(W)}u.execute("link",E)}}function nA(m){const{imageFallbackUrl:r,imageSources:c}=Rx(m.data.imageUrls);return{imageFallbackUrl:r,imageSources:c,imageTextAlternative:m.data.metadata.description||""}}function iA(m){return{linkName:m.data.name,linkHref:K5(m)}}function K5(m){const r=new URL(m.data.url);return r.searchParams.set("download","true"),r.toString()}var Gh=(m,r,c)=>new Promise((u,_)=>{var x=F=>{try{E(c.next(F))}catch(V){_(V)}},M=F=>{try{E(c.throw(F))}catch(V){_(V)}},E=F=>F.done?u(F.value):Promise.resolve(F.value).then(x,M);E((c=c.apply(m,r)).next())});class Hx extends lo{static get requires(){return["ImageUploadEditing","ImageUploadProgress",ip,X5]}static get pluginName(){return"CKBoxUploadAdapter"}afterInit(){return Gh(this,null,function*(){const r=this.editor,c=!!r.config.get("ckbox"),u=!!window.CKBox;if(!c&&!u)return;const _=r.plugins.get(ip),x=r.plugins.get(X5);_.createUploadAdapter=F=>new zx(F,x.getToken(),r);const M=!r.config.get("ckbox.ignoreDataId"),E=r.plugins.get("ImageUploadEditing");M&&E.on("uploadComplete",(F,{imageElement:V,data:W})=>{r.model.change(dt=>{dt.setAttribute("ckboxImageId",W.ckboxImageId,V)})})})}}class zx{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(_,x){const[,M]=_.value.split("."),E=JSON.parse(atob(M)),F=E.auth&&E.auth.ckbox&&E.auth.ckbox.workspaces||[E.aud];return x?"superadmin"==(E.auth&&E.auth.ckbox&&E.auth.ckbox.role)||F.includes(x)?x:null:F[0]}(this.token,c);if(null==u)throw At("ckbox-access-default-workspace-error"),r;return u}getAvailableCategories(r=0){return Gh(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=>Gh(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(),At("ckbox-fetch-category-http-error")})})}getCategoryIdForFile(r){return Gh(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(F=>F.toLowerCase()==c));if(M){const E=u.find(F=>F.id===M||F.name===M);return E?E.id:null}}const x=u.find(M=>M.extensions.find(E=>E.toLowerCase()==c));return x?x.id:null})}upload(){return Gh(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 x=new URL("assets",this.serviceOrigin),M=new FormData;return x.searchParams.set("workspaceId",this.getWorkspaceId()),M.append("categoryId",_),M.append("file",u),this._sendHttpRequest({method:"POST",url:x,data:M,onUploadProgress:F=>{F.lengthComputable&&(this.loader.uploadTotal=F.total,this.loader.uploaded=F.loaded)}}).then(F=>Gh(this,null,function*(){const V=Rx(F.imageUrls);return{ckboxImageId:F.id,default:V.imageFallbackUrl,sources:V.imageSources}})).catch(()=>{const F=r("Cannot upload file:")+` ${u.name}.`;return Promise.reject(F)})})}abort(){this.controller.abort()}_sendHttpRequest({url:r,method:c="GET",data:u,onUploadProgress:_}){const x=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((F,V)=>{x.addEventListener("abort",E),M.addEventListener("loadstart",()=>{x.addEventListener("abort",E)}),M.addEventListener("loadend",()=>{x.removeEventListener("abort",E)}),M.addEventListener("error",()=>{V()}),M.addEventListener("abort",()=>{V()}),M.addEventListener("load",()=>Gh(this,null,function*(){const W=M.response;return!W||W.statusCode>=400?V(W&&W.message):F(W)})),_&&M.upload.addEventListener("progress",W=>{_(W)}),M.send(u)})}}class X5 extends lo{static get pluginName(){return"CKBoxEditing"}static get requires(){return["CloudServices","LinkEditing","PictureEditing",Hx]}init(){return r=this,u=function*(){const _=this.editor,x=!!_.config.get("ckbox"),M=!!window.CKBox;if(!x&&!M)return;this._initConfig();const E=_.plugins.get("CloudServicesCore"),F=_.config.get("ckbox.tokenUrl");if(F===_.config.get("cloudServices.tokenUrl")){const V=_.plugins.get("CloudServices");this._token=V.token}else this._token=yield E.createToken(F).init();_.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),M&&_.commands.add("ckbox",new eA(_))},new Promise((_,x)=>{var M=V=>{try{F(u.next(V))}catch(W){x(W)}},E=V=>{try{F(u.throw(V))}catch(W){x(W)}},F=V=>V.done?_(V.value):Promise.resolve(V.value).then(M,E);F((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 nt("ckbox-plugin-missing-token-url",this);r.plugins.has("ImageBlockEditing")||r.plugins.has("ImageInlineEditing")||At("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,_,x)=>{const{writer:M,mapper:E,consumable:F}=x;if(!F.consume(_.item,u.name))return;const V=[...E.toViewElement(_.item).getChildren()].find(W=>"a"===W.name);V&&(_.item.hasAttribute("ckboxLinkId")?M.setAttribute("data-ckbox-resource-id",_.item.getAttribute("ckboxLinkId"),V):M.removeAttribute("data-ckbox-resource-id",V))},{priority:"low"}),c.on("attribute:ckboxLinkId",(u,_,x)=>{const{writer:M,mapper:E,consumable:F}=x;if(F.consume(_.item,u.name)){if(_.attributeOldValue){const V=aA(M,_.attributeOldValue);M.unwrap(E.toViewRange(_.range),V)}if(_.attributeNewValue){const V=aA(M,_.attributeNewValue);_.item.is("selection")?M.wrap(M.document.selection.getFirstRange(),V):M.wrap(E.toViewRange(_.range),V)}}},{priority:"low"})}),r.conversion.for("upcast").add(c=>{c.on("element:a",(u,_,x)=>{const{writer:M,consumable:E}=x;if(!_.viewItem.getAttribute("href")||!E.consume(_.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const F=_.viewItem.getAttribute("data-ckbox-resource-id");if(F)if(_.modelRange)for(let V of _.modelRange.getItems())V.is("$textProxy")&&(V=V.textNode),rA(V)&&M.setAttribute("ckboxLinkId",F,V);else M.setAttribute("ckboxLinkId",F,_.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,x=>{let M=!1;const E=_.model,F=_.commands.get("ckbox");if(!F)return M;for(const V of E.document.differ.getChanges()){if("insert"!==V.type&&"attribute"!==V.type)continue;const W="insert"===V.type?new Si(V.position,V.position.getShiftedBy(V.length)):V.range,dt="attribute"===V.type&&"linkHref"===V.attributeKey&&null===V.attributeNewValue;for(const Zt of W.getItems()){if(dt&&Zt.hasAttribute("ckboxLinkId")){x.removeAttribute("ckboxLinkId",Zt),M=!0;continue}const ue=oA(Zt,F._chosenAssets);for(const Ae of ue){const Ie="image"===Ae.type?"ckboxImageId":"ckboxLinkId";Ae.id!==Zt.getAttribute(Ie)&&(x.setAttribute(Ie,Ae.id,Zt),M=!0)}}}return M})),c.document.registerPostFixer(function(_){return x=>!(_.hasAttribute("linkHref")||!_.hasAttribute("ckboxLinkId")||(x.removeSelectionAttribute("ckboxLinkId"),0))}(u))}}function oA(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 aA(m,r){const c=m.createAttributeElement("a",{"data-ckbox-resource-id":r},{priority:5});return m.setCustomProperty("link",!0,c),c}function rA(m){return!!m.is("$text")||!(!m.is("element","imageInline")&&!m.is("element","imageBlock"))}class Yx extends lo{static get pluginName(){return"CKFinderUI"}init(){const r=this.editor,u=r.t;r.ui.componentFactory.add("ckfinder",_=>{const x=r.commands.get("ckfinder"),M=new $o(_);return M.set({label:u("Insert image or file"),icon:'',tooltip:!0}),M.bind("isEnabled").to(x),M.on("execute",()=>{r.execute("ckfinder"),r.editing.view.focus()}),M})}}class Bx extends Za{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 nt("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=x=>{_&&_(x),x.on("files:choose",M=>{const E=M.data.files.toArray(),F=E.filter(dt=>!dt.isImage()),V=E.filter(dt=>dt.isImage());for(const dt of F)r.execute("link",dt.getUrl());const W=[];for(const dt of V){const Zt=dt.getUrl();W.push(Zt||x.request("file:getProxyUrl",{file:dt}))}W.length&&tb(r,W)}),x.on("file:choose:resizedImage",M=>{const E=M.data.resizedUrl;if(E)tb(r,[E]);else{const F=r.plugins.get("Notification"),V=r.locale.t;F.showWarning(V("Could not obtain resized image URL."),{title:V("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[c](u)}}function tb(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 Vx 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 nt("ckfinder-missing-image-plugin",r);r.commands.add("ckfinder",new Bx(r))}}class sA 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 x=r.plugins.get("CloudServicesCore");this._uploadGateway=x.createUploadGateway(u,_),r.plugins.get(ip).createUploadAdapter=M=>new cA(this._uploadGateway,M)}}class cA{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 eb extends Za{constructor(r){super(r),this._isEnabledBasedOnSelection=!1}refresh(){const r=this.editor.model,c=as(r.document.selection.getSelectedBlocks());this.value=!!c&&c.is("element","paragraph"),this.isEnabled=!!c&&jx(c,r.schema)}execute(r={}){const c=this.editor.model,_=r.selection||c.document.selection;c.canEditAt(_)&&c.change(x=>{const M=_.getSelectedBlocks();for(const E of M)!E.is("element","paragraph")&&jx(E,c.schema)&&x.rename(E,"paragraph")})}}function jx(m,r){return r.checkChild(m.parent,"paragraph")&&!r.isObject(m)}class lA extends Za{constructor(r){super(r),this._isEnabledBasedOnSelection=!1}execute(r){const c=this.editor.model,u=r.attributes;let _=r.position;c.canEditAt(_)&&c.change(x=>{if(_=this._findPositionToInsertParagraph(_,x),!_)return;const M=x.createElement("paragraph");u&&c.schema.setAllowedAttributes(M,u,x),c.insertContent(M,_),x.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 x=r.parent,M=u.schema.checkChild(x,"$text");return x.isEmpty||M&&r.isAtEnd?u.createPositionAfter(x):!x.isEmpty&&M&&r.isAtStart?u.createPositionBefore(x):c.split(r,_).position}}const nb=class extends lo{static get pluginName(){return"Paragraph"}init(){const m=this.editor,r=m.model;m.commands.add("paragraph",new eb(m)),m.commands.add("insertParagraph",new lA(m)),r.schema.register("paragraph",{inheritAllFrom:"$block"}),m.conversion.elementToElement({model:"paragraph",view:"p"}),m.conversion.for("upcast").elementToElement({model:(c,{writer:u})=>nb.paragraphLikeElements.has(c.name)?c.isEmpty?null:u.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};let ib=nb;ib.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class W0 extends Za{constructor(r,c){super(r),this.modelElements=c}refresh(){const r=as(this.editor.model.document.selection.getSelectedBlocks());this.value=!!r&&this.modelElements.includes(r.name)&&r.name,this.isEnabled=!!r&&this.modelElements.some(c=>V4(r,c,this.editor.model.schema))}execute(r){const c=this.editor.model,u=c.document,_=r.value;c.change(x=>{const M=Array.from(u.selection.getSelectedBlocks()).filter(E=>V4(E,_,c.schema));for(const E of M)E.is("element",_)||x.rename(E,_)})}}function V4(m,r,c){return c.checkChild(m.parent,r)&&!c.isObject(m)}const ob="paragraph";class ab 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[ib]}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 W0(r,u))}afterInit(){const r=this.editor,c=r.commands.get("enter"),u=r.config.get("heading.options");c&&this.listenTo(c,"afterExecute",(_,x)=>{const M=r.model.document.selection.getFirstPosition().parent;u.some(E=>M.is("element",E.model))&&!M.is("element",ob)&&0===M.childCount&&x.writer.rename(M,ob)})}_addDefaultH1Conversion(r){r.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Dt.low+1})}}var rb=v(8733);No()(rb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Gx extends lo{static get pluginName(){return"HeadingUI"}init(){const r=this.editor,c=r.t,u=function(M){const E=M.t,F={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(V=>{const W=F[V.title];return W&&W!=V.title&&(V.title=W),V})}(r),_=c("Choose heading"),x=c("Heading");r.ui.componentFactory.add("heading",M=>{const E={},F=new ec,V=r.commands.get("heading"),W=r.commands.get("paragraph"),dt=[V];for(const ue of u){const Ae={type:"button",model:new Z4({label:ue.title,class:ue.class,role:"menuitemradio",withText:!0})};"paragraph"===ue.model?(Ae.model.bind("isOn").to(W,"value"),Ae.model.set("commandName","paragraph"),dt.push(W)):(Ae.model.bind("isOn").to(V,"value",Ie=>Ie===ue.model),Ae.model.set({commandName:"heading",commandValue:ue.model})),F.add(Ae),E[ue.model]=ue.title}const Zt=Lp(M);return t1(Zt,F,{ariaLabel:x,role:"menu"}),Zt.buttonView.set({ariaLabel:x,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:x}),Zt.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),Zt.bind("isEnabled").toMany(dt,"isEnabled",(...ue)=>ue.some(Ae=>Ae)),Zt.buttonView.bind("label").to(V,"value",W,"value",(ue,Ae)=>{const Ie=ue||Ae&&"paragraph";return"boolean"==typeof Ie?_:E[Ie]?E[Ie]:_}),this.listenTo(Zt,"execute",ue=>{const{commandName:Ae,commandValue:Ie}=ue.source;r.execute(Ae,Ie?{value:Ie}:void 0),r.editing.view.focus()}),Zt})}}function Qx(m){return m.createContainerElement("figure",{class:"image"},[m.createEmptyElement("img"),m.createSlot("children")])}function uA(m,r){const c=m.plugins.get("ImageUtils"),u=m.plugins.has("ImageInlineEditing")&&m.plugins.has("ImageBlockEditing");return x=>c.isInlineImageView(x)?u&&("block"==x.getStyle("display")||x.findAncestor(c.isBlockImageView)?"imageBlock":"imageInline")!==r?null:function _(x){const M={name:!0};return x.hasAttribute("src")&&(M.attributes=["src"]),M}(x):null}function j4(m,r){const c=as(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 sb(m){const r=$0(m.getStyle("width")),c=$0(m.getStyle("height"));return!(!r||!c)}var J4=Object.defineProperty,da=Object.getOwnPropertySymbols,K0=Object.prototype.hasOwnProperty,dA=Object.prototype.propertyIsEnumerable,G4=(m,r,c)=>r in m?J4(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)&&G4(m,c,r[c]);if(da)for(var c of da(r))dA.call(r,c)&&G4(m,c,r[c]);return m};const pA=/^(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 x=this.editor,M=x.model,E=M.document.selection;u=Qh(x,c||E,u),r=Pd(Pd({},Object.fromEntries(E.getAttributes())),r);for(const F in r)M.schema.checkAttribute(u,F)||delete r[F];return M.change(F=>{const{setImageSizes:V=!0}=_,W=F.createElement(u,r);return M.insertObject(W,c,null,{setSelection:"on",findOptimalPosition:c||"imageInline"==u?void 0:"auto"}),W.parent?(V&&this.setImageNaturalSizeAttributes(W),W):null})}setImageNaturalSizeAttributes(r){const c=r.getAttribute("src");c&&(r.getAttribute("width")||r.getAttribute("height")||this.editor.model.change(u=>{const _=new Mt.window.Image;this._domEmitter.listenTo(_,"load",()=>{r.getAttribute("width")||r.getAttribute("height")||this.editor.model.enqueueChange(u.batch,x=>{x.setAttribute("width",_.naturalWidth,r),x.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:pA})}isImageAllowed(){const r=this.editor.model.document.selection;return function(c,u){if("imageBlock"==Qh(c,u,null)){const x=function(M,E){const V=F4(M,E).start.parent;return V.isEmpty&&!V.is("element","$root")?V.parent:V}(u,c.model);if(c.model.schema.checkChild(x,"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 Qh(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 Q4 extends Za{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,x=u.getClosestSelectedImageElement(_.document.selection);_.change(M=>{M.setAttribute("alt",r.newValue,x)})}}class Wx extends lo{static get requires(){return[Sd]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Q4(this.editor))}}var $x=v(1905);No()($x.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var t3=v(6764);No()(t3.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 rs,this.keystrokes=new $c,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(c("Save"),gs.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(c("Cancel"),gs.cancel,"ck-button-cancel","cancel"),this._focusables=new Na,this._focusCycler=new ul({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),C({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 x=new $o(this.locale);return x.set({label:r,icon:c,tooltip:!0}),x.extendTemplate({attributes:{class:u}}),_&&x.delegate("execute").to(this,_),x}_createLabeledInputView(){const r=this.locale.t,c=new Sr(this.locale,lf);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[F0]}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"),x=new $o(u);return x.set({label:c("Change image text alternative"),icon:gs.lowVision,tooltip:!0}),x.bind("isEnabled").to(_,"isEnabled"),x.bind("isOn").to(_,"value",M=>!!M),this.listenTo(x,"execute",()=>{this._showForm()}),x})}_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",(_,x)=>{this._hideForm(!0),x()}),this.listenTo(r.ui,"update",()=>{u.getClosestSelectedImageWidget(c.selection)?this._isVisible&&function(_){const x=_.plugins.get("ContextualBalloon");if(_.plugins.get("ImageUtils").getClosestSelectedImageWidget(_.editing.view.document.selection)){const M=cb(_);x.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 W4 extends lo{static get requires(){return[Wx,Xx]}static get pluginName(){return"ImageTextAlternative"}}function $4(m,r){const c=(u,_,x)=>{if(!x.consumable.consume(_.item,u.name))return;const M=x.writer,E=x.mapper.toViewElement(_.item),F=m.findViewImgElement(E);null===_.attributeNewValue?(M.removeAttribute("srcset",F),M.removeAttribute("sizes",F)):_.attributeNewValue&&(M.setAttribute("srcset",_.attributeNewValue,F),M.setAttribute("sizes","100vw",F))};return u=>{u.on(`attribute:srcset:${r}`,c)}}function K4(m,r,c){const u=(_,x,M)=>{if(!M.consumable.consume(x.item,_.name))return;const E=M.writer,F=M.mapper.toViewElement(x.item),V=m.findViewImgElement(F);E.setAttribute(x.attributeKey,x.attributeNewValue||"",V)};return _=>{_.on(`attribute:${c}:${r}`,u)}}class _A 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 oy=Object.defineProperty,e3=Object.getOwnPropertySymbols,lb=Object.prototype.hasOwnProperty,ub=Object.prototype.propertyIsEnumerable,X4=(m,r,c)=>r in m?oy(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Wh=(m,r)=>{for(var c in r||(r={}))lb.call(r,c)&&X4(m,c,r[c]);if(e3)for(var c of e3(r))ub.call(r,c)&&X4(m,c,r[c]);return m};class db extends Za{constructor(r){super(r);const c=r.config.get("image.insert.type");r.plugins.has("ImageBlockEditing")||"block"===c&&Tt("image-block-plugin-required"),r.plugins.has("ImageInlineEditing")||"inline"===c&&Tt("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"),x=Object.fromEntries(u.getAttributes());c.forEach((M,E)=>{const F=u.getSelectedElement();if("string"==typeof M&&(M={src:M}),E&&F&&_.isImage(F)){const V=this.editor.model.createPositionAfter(F);_.insertImage(Wh(Wh({},M),x),V)}else _.insertImage(Wh(Wh({},M),x))})}}class fA extends Za{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(_A),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 fA(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 x(M,E,F,V){M.on(`attribute:${E}:${r}`,(W,dt,Zt)=>{if(!Zt.consumable.consume(dt.item,W.name))return;const ue=Zt.writer,Ae=Zt.mapper.toViewElement(dt.item),Ie=u.findViewImgElement(Ae);if(null!==dt.attributeNewValue?ue.setAttribute(F,dt.attributeNewValue,Ie):ue.removeAttribute(F,Ie),dt.item.hasAttribute("sources"))return;const ln=dt.item.hasAttribute("resizedWidth");if("imageInline"===r&&!ln&&!V)return;const Dn=dt.item.getAttribute("width"),di=dt.item.getAttribute("height"),Ri=Ie.getStyle("aspect-ratio");Dn&&di&&!Ri&&ue.setStyle("aspect-ratio",`${Dn}/${di}`,Ie)})}c.conversion.for("upcast").attributeToAttribute({view:{name:_,styles:{width:/.+/}},model:{key:"width",value:M=>sb(M)?$0(M.getStyle("width")):null}}).attributeToAttribute({view:{name:_,key:"width"},model:"width"}).attributeToAttribute({view:{name:_,styles:{height:/.+/}},model:{key:"height",value:M=>sb(M)?$0(M.getStyle("height")):null}}).attributeToAttribute({view:{name:_,key:"height"},model:"height"}),c.conversion.for("editingDowncast").add(M=>{x(M,"width","width",!0),x(M,"height","height",!0)}),c.conversion.for("dataDowncast").add(M=>{x(M,"width","width",!1),x(M,"height","height",!1)})}}class _b extends Za{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"),x=_.getClosestSelectedImageElement(u.document.selection),M=Object.fromEntries(x.getAttributes());return M.src||M.uploadId?u.change(E=>{const{setImageSizes:F=!0}=r,V=Array.from(u.markers).filter(Zt=>Zt.getRange().containsItem(x)),W=_.insertImage(M,u.createSelection(x,"on"),this._modelElementName,{setImageSizes:F});if(!W)return null;const dt=E.createRangeOn(W);for(const Zt of V){const ue=Zt.getRange(),Ae="$graveyard"!=ue.root.rootName?ue.getJoined(dt,!0):dt;E.updateMarker(Zt,{range:Ae})}return{oldElement:x,newElement:W}}):null}}class n3 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:(x,{writer:M})=>Qx(M)}),u.for("editingDowncast").elementToStructure({model:"imageBlock",view:(x,{writer:M})=>_.toImageWidget(Qx(M),M,c("image widget"))}),u.for("downcast").add(K4(_,"imageBlock","src")).add(K4(_,"imageBlock","alt")).add($4(_,"imageBlock")),u.for("upcast").elementToElement({view:uA(r,"imageBlock"),model:(x,{writer:M})=>M.createElement("imageBlock",x.hasAttribute("src")?{src:x.getAttribute("src")}:void 0)}).add(function(x){const M=(E,F,V)=>{if(!V.consumable.test(F.viewItem,{name:!0,classes:"image"}))return;const W=x.findViewImgElement(F.viewItem);if(!W||!V.consumable.test(W,{name:!0}))return;V.consumable.consume(F.viewItem,{name:!0,classes:"image"});const dt=as(V.convertItem(W,F.modelCursor).modelRange.getItems());dt?(V.convertChildren(F.viewItem,dt),V.updateConversionResult(dt,F)):V.consumable.revert(F.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"),x=r.plugins.get("ClipboardPipeline");this.listenTo(x,"inputTransformation",(M,E)=>{const F=Array.from(E.content.getChildren());let V;if(!F.every(_.isInlineImageView))return;V=E.targetRanges?r.editing.mapper.toModelRange(E.targetRanges[0]):c.document.selection.getFirstRange();const W=c.createSelection(V);if("imageBlock"===j4(c.schema,W)){const dt=new W1(u.document),Zt=F.map(ue=>dt.createElement("figure",{class:"image"},ue));E.content=dt.createDocumentFragment(Zt)}}),this.listenTo(x,"contentInsertion",(M,E)=>{"paste"===E.method&&c.change(F=>{const V=F.createRangeIn(E.content);for(const W of V.getItems())W.is("element","imageBlock")&&_.setImageNaturalSizeAttributes(W)})})}}var t6=v(3508);No()(t6.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class tC extends lo{static get requires(){return[n3,V0,W4]}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:(x,{writer:M})=>M.createEmptyElement("img")}),u.for("editingDowncast").elementToStructure({model:"imageInline",view:(x,{writer:M})=>{return _.toImageWidget((E=M).createContainerElement("span",{class:"image-inline"},E.createEmptyElement("img")),M,c("image widget"));var E}}),u.for("downcast").add(K4(_,"imageInline","src")).add(K4(_,"imageInline","alt")).add($4(_,"imageInline")),u.for("upcast").elementToElement({view:uA(r,"imageInline"),model:(x,{writer:M})=>M.createElement("imageInline",x.hasAttribute("src")?{src:x.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const r=this.editor,c=r.model,u=r.editing.view,_=r.plugins.get("ImageUtils"),x=r.plugins.get("ClipboardPipeline");this.listenTo(x,"inputTransformation",(M,E)=>{const F=Array.from(E.content.getChildren());let V;if(!F.every(_.isBlockImageView))return;V=E.targetRanges?r.editing.mapper.toModelRange(E.targetRanges[0]):c.document.selection.getFirstRange();const W=c.createSelection(V);if("imageInline"===j4(c.schema,W)){const dt=new W1(u.document),Zt=F.map(ue=>1===ue.childCount?(Array.from(ue.getAttributes()).forEach(Ae=>dt.setAttribute(...Ae,_.findViewImgElement(ue))),ue.getChild(0)):ue);E.content=dt.createDocumentFragment(Zt)}}),this.listenTo(x,"contentInsertion",(M,E)=>{"paste"===E.method&&c.change(F=>{const V=F.createRangeIn(E.content);for(const W of V.getItems())W.is("element","imageInline")&&_.setImageNaturalSizeAttributes(W)})})}}class hA extends lo{static get requires(){return[eC,V0,W4]}static get pluginName(){return"ImageInline"}}class i3 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 Za{refresh(){const r=this.editor,c=r.plugins.get("ImageCaptionUtils"),u=r.plugins.get("ImageUtils");if(!r.plugins.has(n3))return this.isEnabled=!1,void(this.value=!1);const _=r.model.document.selection,x=_.getSelectedElement();if(!x){const M=c.getCaptionFromModelSelection(_);return this.isEnabled=!!M,void(this.value=!!M)}this.isEnabled=u.isImage(x),this.value=!!this.isEnabled&&!!c.getCaptionFromImageModelElement(x)}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"),x=this.editor.plugins.get("ImageUtils");let M=u.getSelectedElement();const E=_._getSavedCaption(M);x.isInlineImage(M)&&(this.editor.execute("imageTypeBlock"),M=u.getSelectedElement());const F=E||r.createElement("caption");r.append(F,M),c&&r.setSelection(F,"in")}_hideImageCaption(r){const c=this.editor,u=c.model.document.selection,_=c.plugins.get("ImageCaptionEditing"),x=c.plugins.get("ImageCaptionUtils");let M,E=u.getSelectedElement();E?M=x.getCaptionFromImageModelElement(E):(M=x.getCaptionFromModelSelection(u),E=M.parent),_._saveCaption(E,M),r.setSelection(E,"on"),r.remove(M)}}class gA extends lo{constructor(r){super(r),this._savedCaptionsMap=new WeakMap}static get requires(){return[Sd,i3]}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"),x=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 F=E.createEditableElement("figcaption");E.setCustomProperty("imageCaption",!0,F),F.placeholder=x("Enter image caption"),Y({view:c,element:F,keepOnFocus:!0});const V=M.parent.getAttribute("alt");return L5(F,E,{label:V?x("Caption for image: %0",[V]):x("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const r=this.editor,c=r.plugins.get("ImageUtils"),u=r.plugins.get("ImageCaptionUtils"),_=r.commands.get("imageTypeInline"),x=r.commands.get("imageTypeBlock"),M=E=>{if(!E.return)return;const{oldElement:F,newElement:V}=E.return;if(!F)return;if(c.isBlockImage(F)){const dt=u.getCaptionFromImageModelElement(F);if(dt)return void this._saveCaption(V,dt)}const W=this._getSavedCaption(F);W&&this._saveCaption(V,W)};_&&this.listenTo(_,"execute",M,{priority:"low"}),x&&this.listenTo(x,"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 x=c.document.differ.getChanges();for(const M of x){if("alt"!==M.attributeKey)continue;const E=M.range.start.nodeAfter;if(u.isBlockImage(E)){const F=_.getCaptionFromImageModelElement(E);if(!F)return;r.editing.reconvertItem(F)}}})}}class hb extends lo{static get requires(){return[i3]}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",x=>{const M=r.commands.get("toggleImageCaption"),E=new $o(x);return E.set({icon:gs.caption,tooltip:!0,isToggleable:!0}),E.bind("isOn","isEnabled").to(M,"value","isEnabled"),E.bind("label").to(M,"value",F=>_(F?"Toggle caption off":"Toggle caption on")),this.listenTo(E,"execute",()=>{r.execute("toggleImageCaption",{focusCaptionOnShow:!0});const F=u.getCaptionFromModelSelection(r.model.document.selection);if(F){const V=r.editing.mapper.toViewElement(F);c.scrollToTheSelection(),c.change(W=>{W.addClass("image__caption_highlighted",V)})}r.editing.view.focus()}),E})}}var gb=v(2640);function Cf(m){const r=m.map(c=>c.replace("+","\\+"));return new RegExp(`^image\\/(${r.join("|")})$`)}function bA(m){return new Promise((r,c)=>{const u=m.getAttribute("src");fetch(u).then(_=>_.blob()).then(_=>{const x=iC(_,u),M=x.replace("image/",""),E=new File([_],`image.${M}`,{type:x});r(E)}).catch(_=>{return _&&"TypeError"===_.name?(x=u,(M=x,new Promise((E,F)=>{const V=Mt.document.createElement("img");V.addEventListener("load",()=>{const W=Mt.document.createElement("canvas");W.width=V.width,W.height=V.height,W.getContext("2d").drawImage(V,0,0),W.toBlob(dt=>dt?E(dt):F())}),V.addEventListener("error",()=>F()),V.src=M})).then(M=>{const E=iC(M,x),F=E.replace("image/","");return new File([M],`image.${F}`,{type:E})})).then(r).catch(c):c(_);var x,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"}No()(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 x=new Ex(_),M=r.commands.get("uploadImage"),E=r.config.get("image.upload.types"),F=Cf(E);return x.set({acceptedType:E.map(V=>`image/${V}`).join(","),allowMultipleFiles:!0}),x.buttonView.set({label:c("Insert image"),icon:gs.image,tooltip:!0}),x.buttonView.bind("isEnabled").to(M),x.on("done",(V,W)=>{const dt=Array.from(W).filter(Zt=>F.test(Zt.type));dt.length&&(r.execute("uploadImage",{file:dt}),r.editing.view.focus())}),x};r.ui.componentFactory.add("uploadImage",u),r.ui.componentFactory.add("imageUpload",u)}}var vA=v(3689);No()(vA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var vb=v(4036);No()(vb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var xb=v(3773);No()(xb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class xA extends lo{constructor(r){super(r),this.uploadStatusChange=(c,u,_)=>{const x=this.editor,M=u.item,E=M.getAttribute("uploadId");if(!_.consumable.consume(u.item,c.name))return;const F=x.plugins.get("ImageUtils"),V=x.plugins.get(ip),W=E?u.attributeNewValue:null,dt=this.placeholder,Zt=x.editing.mapper.toViewElement(M),ue=_.writer;if("reading"==W)return Cb(Zt,ue),void aC(F,dt,Zt,ue);if("uploading"==W){const Ae=V.loaders.get(E);return Cb(Zt,ue),void(Ae?(rC(Zt,ue),function(Ie,ln,Dn,di){const Ri=function(Go){const Da=Go.createUIElement("div",{class:"ck-progress-bar"});return Go.setCustomProperty("progressBar",!0,Da),Da}(ln);ln.insert(ln.createPositionAt(Ie,"end"),Ri),Dn.on("change:uploadedPercent",(Go,Da,ws)=>{di.change(Kr=>{Kr.setStyle("width",ws+"%",Ri)})})}(Zt,ue,Ae,x.editing.view),function(Ie,ln,Dn,di){if(di.data){const Ri=Ie.findViewImgElement(ln);Dn.setAttribute("src",di.data,Ri)}}(F,Zt,ue,Ae)):aC(F,dt,Zt,ue))}"complete"==W&&V.loaders.get(E)&&function(Ae,Ie,ln){const Dn=Ie.createUIElement("div",{class:"ck-image-upload-complete-icon"});Ie.insert(Ie.createPositionAt(Ae,"end"),Dn),setTimeout(()=>{ln.change(di=>di.remove(di.createRangeOn(Dn)))},3e3)}(Zt,ue,x.editing.view),o3(Zt,ue,"progressBar"),rC(Zt,ue),ue.removeClass("ck-appear",Zt)},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(x){const M=x.createUIElement("div",{class:"ck-upload-placeholder-loader"});return x.setCustomProperty("placeholder",!0,M),M}(u))}function rC(m,r){m.hasClass("ck-image-upload-placeholder")&&r.removeClass("ck-image-upload-placeholder",m),o3(m,r,"placeholder")}function sC(m,r){for(const c of m.getChildren())if(c.getCustomProperty(r))return c}function o3(m,r,c){const u=sC(m,c);u&&r.remove(r.createRangeOn(u))}var cC=Object.defineProperty,lC=Object.defineProperties,n6=Object.getOwnPropertyDescriptors,i6=Object.getOwnPropertySymbols,ay=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 Za{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"),x=Object.fromEntries(u.getAttributes());c.forEach((M,E)=>{const F=u.getSelectedElement();if(E&&F&&_.isImage(F)){const V=this.editor.model.createPositionAfter(F);this._uploadImage(M,x,V)}else this._uploadImage(M,x)})}_uploadImage(r,c,u){const _=this.editor,x=_.plugins.get(ip).createLoader(r),M=_.plugins.get("ImageUtils");var E;x&&M.insertImage((E=((V,W)=>{for(var dt in W||(W={}))ay.call(W,dt)&&uC(V,dt,W[dt]);if(i6)for(var dt of i6(W))Ab.call(W,dt)&&uC(V,dt,W[dt]);return V})({},c),lC(E,n6({uploadId:x.id}))),u)}}class Af 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),x=r.plugins.get("ImageUtils"),M=r.plugins.get("ClipboardPipeline"),E=Cf(r.config.get("image.upload.types")),F=new dC(r);r.commands.add("uploadImage",F),r.commands.add("imageUpload",F),u.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(r.editing.view.document,"clipboardInput",(V,W)=>{if(dt=W.dataTransfer,Array.from(dt.types).includes("text/html")&&""!==dt.getData("text/html"))return;var dt;const Zt=Array.from(W.dataTransfer.files).filter(ue=>!!ue&&E.test(ue.type));Zt.length&&(V.stop(),r.model.change(ue=>{W.targetRanges&&ue.setSelection(W.targetRanges.map(Ae=>r.editing.mapper.toModelRange(Ae))),r.execute("uploadImage",{file:Zt})}))}),this.listenTo(M,"inputTransformation",(V,W)=>{const dt=Array.from(r.editing.view.createRangeIn(W.content)).map(ue=>ue.item).filter(ue=>{return!(!x.isInlineImageView(Ie=ue)||!Ie.getAttribute("src")||!Ie.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!Ie.getAttribute("src").match(/^blob:/g)||ue.getAttribute("uploadProcessed"));var Ie}).map(ue=>({promise:bA(ue),imageElement:ue}));if(!dt.length)return;const Zt=new W1(r.editing.view.document);for(const ue of dt){Zt.setAttribute("uploadProcessed",!0,ue.imageElement);const Ae=_.createLoader(ue.promise);Ae&&(Zt.setAttribute("src","",ue.imageElement),Zt.setAttribute("uploadId",Ae.id,ue.imageElement))}}),r.editing.view.document.on("dragover",(V,W)=>{W.preventDefault()}),c.on("change",()=>{const V=c.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),W=new Set;for(const dt of V)if("insert"==dt.type&&"$text"!=dt.name){const Zt=dt.position.nodeAfter,ue="$graveyard"==dt.position.root.rootName;for(const Ae of CA(r,Zt)){const Ie=Ae.getAttribute("uploadId");if(!Ie)continue;const ln=_.loaders.get(Ie);ln&&(ue?W.has(Ie)||ln.abort():(W.add(Ie),this._uploadImageElements.set(Ie,Ae),"idle"==ln.status&&this._readAndUpload(ln)))}}}),this.on("uploadComplete",(V,{imageElement:W,data:dt})=>{const Zt=dt.urls?dt.urls:dt;this.editor.model.change(ue=>{ue.setAttribute("src",Zt.default,W),this._parseAndSetSrcsetAttributeOnImage(Zt,W,ue),x.setImageNaturalSizeAttributes(W)})},{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,x=c.plugins.get(ip),M=c.plugins.get(u2),E=c.plugins.get("ImageUtils"),F=this._uploadImageElements;return u.enqueueChange({isUndoable:!1},W=>{W.setAttribute("uploadStatus","reading",F.get(r.id))}),r.read().then(()=>{const W=r.upload(),dt=F.get(r.id);if(D_isSafari){const Zt=c.editing.mapper.toViewElement(dt),ue=E.findViewImgElement(Zt);c.editing.view.once("render",()=>{if(!ue.parent)return;const Ae=c.editing.view.domConverter.mapViewToDom(ue.parent);if(!Ae)return;const Ie=Ae.style.display;Ae.style.display="none",Ae._ckHack=Ae.offsetHeight,Ae.style.display=Ie})}return u.enqueueChange({isUndoable:!1},Zt=>{Zt.setAttribute("uploadStatus","uploading",dt)}),W}).then(W=>{u.enqueueChange({isUndoable:!1},dt=>{const Zt=F.get(r.id);dt.setAttribute("uploadStatus","complete",Zt),this.fire("uploadComplete",{data:W,imageElement:Zt})}),V()}).catch(W=>{if("error"!==r.status&&"aborted"!==r.status)throw W;"error"==r.status&&W&&M.showWarning(W,{title:_("Upload failed"),namespace:"upload"}),u.enqueueChange({isUndoable:!1},dt=>{dt.remove(F.get(r.id))}),V()});function V(){u.enqueueChange({isUndoable:!1},W=>{const dt=F.get(r.id);W.removeAttribute("uploadId",dt),W.removeAttribute("uploadStatus",dt),F.delete(r.id)}),x.destroyLoader(r)}}_parseAndSetSrcsetAttributeOnImage(r,c,u){let _=0;const x=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(""!=x){const M={srcset:x};c.hasAttribute("width")||c.hasAttribute("height")||(M.width=_),u.setAttributes(M,c)}}}function CA(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 $r=v(1568);No()($r.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var pC=v(3535);No()(pC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var yA=v(6270);No()(yA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class wA extends Za{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(x=>{const M=r.value,{setImageSizes:E=!0}=r;let F=_.getClosestSelectedImageElement(u.document.selection);M&&this.shouldConvertImageType(M,F)&&(this.editor.execute(_.isBlockImage(F)?"imageTypeInline":"imageTypeBlock",{setImageSizes:E}),F=_.getClosestSelectedImageElement(u.document.selection)),!M||this._styles.get(M).isDefault?x.removeAttribute("imageStyle",F):x.setAttribute("imageStyle",M,F),E&&_.setImageNaturalSizeAttributes(F)})}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,o6=(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)&&o6(m,c,r[c]);if(Tb)for(var c of Tb(r))ZA.call(r,c)&&o6(m,c,r[c]);return m};const{objectFullWidth:a6,objectInline:mC,objectLeft:Zb,objectRight:Mb,objectCenter:a3,objectBlockLeft:kb,objectBlockRight:Db}=gs,Kh={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:a6,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){Tt("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)?Kh[c]?Ub({},Kh[c]):{name:c}:function(u,_){const x=Ub({},_);for(const M in u)Object.prototype.hasOwnProperty.call(_,M)||(x[M]=u[M]);return x}(Kh[c.name],c)).icon&&(c.icon=Pb[c.icon]||c.icon),c;var c}).filter(r=>function(c,{isBlockPluginLoaded:u,isInlinePluginLoaded:_}){const{modelElements:x,name:M}=c;if(!(x&&x.length&&M))return MA({style:c}),!1;{const E=[u?"imageBlock":null,_?"imageInline":null];if(!x.some(F=>E.includes(F)))return Tt("image-style-missing-dependency",{style:c,missingPlugins:x.map(F=>"imageBlock"===F?"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:Kh,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"),x=u.plugins.has("ImageInlineEditing");u.config.define("image.styles",c(_,x)),this.normalizedStyles=r({configuredStyles:u.config.get("image.styles"),isBlockPluginLoaded:_,isInlinePluginLoaded:x}),this._setupConversion(_,x),this._setupPostFixer(),u.commands.add("imageStyle",new wA(u,this.normalizedStyles))}_setupConversion(r,c){const u=this.editor,_=u.model.schema,x=(M=this.normalizedStyles,(F,V,W)=>{if(!W.consumable.consume(V.item,F.name))return;const dt=kA(V.attributeNewValue,M),Zt=kA(V.attributeOldValue,M),ue=W.mapper.toViewElement(V.item),Ae=W.writer;Zt&&Ae.removeClass(Zt.className,ue),dt&&Ae.addClass(dt.className,ue)});var M;const E=function(F){const V={imageInline:F.filter(W=>!W.isDefault&&W.modelElements.includes("imageInline")),imageBlock:F.filter(W=>!W.isDefault&&W.modelElements.includes("imageBlock"))};return(W,dt,Zt)=>{if(!dt.modelRange)return;const ue=dt.viewItem,Ae=as(dt.modelRange.getItems());if(Ae&&Zt.schema.checkAttribute(Ae,"imageStyle"))for(const Ie of V[Ae.name])Zt.consumable.consume(ue,{classes:Ie.className})&&Zt.writer.setAttribute("imageStyle",Ie.name,Ae)}}(this.normalizedStyles);u.editing.downcastDispatcher.on("attribute:imageStyle",x),u.data.downcastDispatcher.on("attribute:imageStyle",x),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(x=>[x.name,x]));c.registerPostFixer(x=>{let M=!1;for(const E of c.differ.getChanges())if("insert"==E.type||"attribute"==E.type&&"imageStyle"==E.attributeKey){let F="insert"==E.type?E.position.nodeAfter:E.range.start.nodeAfter;if(F&&F.is("element","paragraph")&&F.childCount>0&&(F=F.getChild(0)),!u.isImage(F))continue;const V=F.getAttribute("imageStyle");if(!V)continue;const W=_.get(V);W&&W.modelElements.includes(F.name)||(x.removeAttribute("imageStyle",F),M=!0)}return M})}}var DA=v(5083);No()(DA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class sy 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 x of u)this._createButton(x);const _=PA([...c.filter(Wt),...r3.getDefaultDropdownDefinitions(r)],this.localizedDefaultStylesTitles);for(const x of _)this._createDropdown(x,u)}_createDropdown(r,c){const u=this.editor.ui.componentFactory;u.add(r.name,_=>{let x;const{defaultItem:M,items:E,title:F}=r,V=E.filter(ue=>c.find(({name:Ae})=>SA(Ae)===ue)).map(ue=>{const Ae=u.create(ue);return ue===M&&(x=Ae),Ae});E.length!==V.length&&r3.warnInvalidStyle({dropdown:r});const W=Lp(_,p4),dt=W.buttonView,Zt=dt.arrowView;return e_(W,V,{enableActiveItemFocusOnDropdownOpen:!0}),dt.set({label:LA(F,x.label),class:null,tooltip:!0}),Zt.unbind("label"),Zt.set({label:F}),dt.bind("icon").toMany(V,"isOn",(...ue)=>{const Ae=ue.findIndex(ku);return Ae<0?x.icon:V[Ae].icon}),dt.bind("label").toMany(V,"isOn",(...ue)=>{const Ae=ue.findIndex(ku);return LA(F,Ae<0?x.label:V[Ae].label)}),dt.bind("isOn").toMany(V,"isOn",(...ue)=>ue.some(ku)),dt.bind("class").toMany(V,"isOn",(...ue)=>ue.some(ku)?"ck-splitbutton_flatten":void 0),dt.on("execute",()=>{V.some(({isOn:ue})=>ue)?W.isOpen=!W.isOpen:x.fire("execute")}),W.bind("isEnabled").toMany(V,"isEnabled",(...ue)=>ue.some(ku)),this.listenTo(W,"execute",()=>{this.editor.editing.view.focus()}),W})}_createButton(r){const c=r.name;this.editor.ui.componentFactory.add(SA(c),u=>{const _=this.editor.commands.get("imageStyle"),x=new $o(u);return x.set({label:r.title,icon:r.icon,tooltip:!0,isToggleable:!0}),x.bind("isEnabled").to(_,"isEnabled"),x.bind("isOn").to(_,"value",M=>M===c),x.on("execute",this._executeCommand.bind(this,c)),x})}_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 r6 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,x="ltr"==c.uiLanguageDirection?Sb:OA;this._defineButton("indent",u("Increase indent"),_),this._defineButton("outdent",u("Decrease indent"),x)}_defineButton(r,c,u){const _=this.editor;_.ui.componentFactory.add(r,x=>{const M=_.commands.get(r),E=new $o(x);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 x=_.writer,M=x.document.selection;for(const E of this._definitions){const F=x.createAttributeElement("a",E.attributes,{priority:5});E.classes&&x.addClass(E.classes,F);for(const V in E.styles)x.setStyle(V,E.styles[V],F);x.setCustomProperty("link",!0,F),E.callback(u.attributeNewValue)?u.item.is("selection")?x.wrap(M.getFirstRange(),F):x.wrap(_.mapper.toViewRange(u.range),F):x.unwrap(_.mapper.toViewRange(u.range),F)}},{priority:"high"})}}getDispatcherForLinkedImage(){return r=>{r.on("attribute:linkHref:imageBlock",(c,u,{writer:_,mapper:x})=>{const M=x.toViewElement(u.item),E=Array.from(M.getChildren()).find(F=>F.is("element","a"));for(const F of this._definitions){const V=Kc(F.attributes);if(F.callback(u.attributeNewValue)){for(const[W,dt]of V)"class"===W?_.addClass(dt,E):_.setAttribute(W,dt,E);F.classes&&_.addClass(F.classes,E);for(const W in F.styles)_.setStyle(W,F.styles[W],E)}else{for(const[W,dt]of V)"class"===W?_.removeClass(dt,E):_.removeAttribute(W,E);F.classes&&_.removeClass(F.classes,E);for(const W in F.styles)_.removeStyle(W,E)}}})}}}var cy=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const c3=function(m){return cy.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}",Xh="[\\ud800-\\udbff][\\udc00-\\udfff]",yC="(?:"+Lb+"|"+Ob+")?",TC="[\\ufe0e\\ufe0f]?",ly=TC+yC+"(?:\\u200d(?:"+[CC,AC,Xh].join("|")+")"+TC+yC+")*",uy="(?:"+[CC+Lb+"?",Lb,AC,Xh,xC].join("|")+")",EA=RegExp(Ob+"(?="+Ob+")|"+uy+ly,"g");const dy=function(r){r=wg(r);var c=c3(r)?function(m){return c3(m)?function(m){return m.match(EA)||[]}(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 D2(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 l3(m){const r=String(m);return r.replace(UC,"").match(ZC)?r:"#"}function s6(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 c6(m){window.open(m,"_blank","noopener")}class Ib extends Za{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()||as(c.getSelectedBlocks());s6(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,x=[],M=[];for(const E in c)c[E]?x.push(E):M.push(E);u.change(E=>{if(_.isCollapsed){const F=_.getFirstPosition();if(_.hasAttribute("linkHref")){const V=DC(_);let W=gc(F,"linkHref",_.getAttribute("linkHref"),u);_.getAttribute("linkHref")===V&&(W=this._updateLinkContent(u,E,W,r)),E.setAttribute("linkHref",r,W),x.forEach(dt=>{E.setAttribute(dt,!0,W)}),M.forEach(dt=>{E.removeAttribute(dt,W)}),E.setSelection(E.createPositionAfter(W.end.nodeBefore))}else if(""!==r){const V=Kc(_.getAttributes());V.set("linkHref",r),x.forEach(dt=>{V.set(dt,!0)});const{end:W}=u.insertContent(E.createText(r,V),F);E.setSelection(W)}["linkHref",...x,...M].forEach(V=>{E.removeSelectionAttribute(V)})}else{const F=u.schema.getValidRanges(_.getRanges(),"linkHref"),V=[];for(const dt of _.getSelectedBlocks())u.schema.checkAttribute(dt,"linkHref")&&V.push(E.createRangeOn(dt));const W=V.slice();for(const dt of F)this._isRangeToUpdate(dt,V)&&W.push(dt);for(const dt of W){let Zt=dt;if(1===W.length){const ue=DC(_);_.getAttribute("linkHref")===ue&&(Zt=this._updateLinkContent(u,E,dt,r),E.setSelection(E.createSelection(Zt)))}E.setAttribute("linkHref",r,Zt),x.forEach(ue=>{E.setAttribute(ue,!0,Zt)}),M.forEach(ue=>{E.removeAttribute(ue,Zt)})}}})}_getDecoratorStateFromModel(r){const c=this.editor.model,u=c.document.selection,_=u.getSelectedElement();return s6(_,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 x=c.createText(_,{linkHref:_});return r.insertContent(x,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 Nb extends Za{refresh(){const r=this.editor.model,c=r.document.selection,u=c.getSelectedElement();this.isEnabled=s6(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(x=>{const M=u.isCollapsed?[gc(u.getFirstPosition(),"linkHref",u.getAttribute("linkHref"),c)]:c.schema.getValidRanges(u.getRanges(),"linkHref");for(const E of M)if(x.removeAttribute("linkHref",E),_)for(const F of _.manualDecorators)x.removeAttribute(F.id,E)})}}class PC extends(Ue()){constructor({id:r,label:c,attributes:u,classes:_,styles:x,defaultValue:M}){super(),this.id=r,this.set("value",void 0),this.defaultValue=M,this.label=c,this.attributes=u,this.classes=_,this.styles=x}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var Fb=v(9773);No()(Fb.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,l6=(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[k5,Gv,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(l3(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 Nb(r));const c=function(u,_){const x={"Open in a new tab":u("Open in a new tab"),Downloadable:u("Downloadable")};return _.forEach(M=>("label"in M&&x[M.label]&&(M.label=x[M.label]),M)),_}(r.t,function(u){const _=[];if(u)for(const[x,M]of Object.entries(u)){const E=Object.assign({},M,{id:`link${dy(x)}`});_.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(k5).registerAttribute("linkHref"),function(u,_,x,M){const E=u.editing.view,F=new Set;E.document.registerPostFixer(V=>{const W=u.model.document.selection;let dt=!1;if(W.hasAttribute(_)){const Zt=gc(W.getFirstPosition(),_,W.getAttribute(_),u.model),ue=u.editing.mapper.toViewRange(Zt);for(const Ae of ue.getItems())Ae.is("element","a")&&!Ae.hasClass(M)&&(V.addClass(M,Ae),F.add(Ae),dt=!0)}return dt}),u.conversion.for("editingDowncast").add(V=>{function W(){E.change(dt=>{for(const Zt of F.values())dt.removeClass(M,Zt),F.delete(Zt)})}V.on("insert",W,{priority:"highest"}),V.on("remove",W,{priority:"highest"}),V.on("attribute",W,{priority:"highest"}),V.on("selection",W,{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 x=new PC(_);u.add(x),c.conversion.for("downcast").attributeToElement({model:x.id,view:(M,{writer:E,schema:F},{item:V})=>{if((V.is("selection")||F.isInline(V))&&M){const W=E.createAttributeElement("a",x.attributes,{priority:5});x.classes&&E.addClass(x.classes,W);for(const dt in x.styles)E.setStyle(dt,x.styles[dt],W);return E.setCustomProperty("link",!0,W),W}}}),c.conversion.for("upcast").elementToAttribute({view:l6({name:"a"},x._createPattern()),model:{key:x.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 x=_.domTarget;if("a"!=x.tagName.toLowerCase()&&(x=x.closest("a")),!x)return;const M=x.getAttribute("href");M&&(u.stop(),_.preventDefault(),c6(M))},{context:"$capture"}),this.listenTo(c,"keydown",(u,_)=>{const x=r.commands.get("link").value;x&&_.keyCode===Ka.enter&&_.altKey&&(u.stop(),c6(x))})}_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(x=>{op(x,NC(r.schema))}))},{priority:"low"})}_enableClickingAfterLink(){const r=this.editor,c=r.model;r.editing.view.addObserver(C0);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 x=_.getFirstPosition(),M=gc(x,"linkHref",_.getAttribute("linkHref"),c);(x.isTouching(M.start)||x.isTouching(M.end))&&c.change(E=>{op(E,NC(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 x=r.model.document.selection;x.isCollapsed||(_?_=!1:IC(r)&&function(M){const E=M.document.selection,F=E.getFirstPosition(),V=E.getLastPosition(),W=F.nodeAfter;return!!(W&&W.is("$text")&&W.hasAttribute("linkHref"))&&(W===(V.textNode||V.nodeBefore)||gc(F,"linkHref",W.getAttribute("linkHref"),M).containsRange(M.createRange(F,V),!0))}(r.model)&&(u=x.getAttributes()))},{priority:"high"}),this.listenTo(r.model,"insertContent",(x,[M])=>{_=!1,IC(r)&&u&&(r.model.change(E=>{for(const[F,V]of u)E.setAttribute(F,V,M)}),u=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const r=this.editor,c=r.model,u=c.document.selection;let x=!1,M=!1;this.listenTo(r.editing.view.document,"delete",(E,F)=>{M="backward"===F.direction},{priority:"high"}),this.listenTo(c,"deleteContent",()=>{x=!1;const E=u.getFirstPosition(),F=u.getAttribute("linkHref");if(!F)return;const V=gc(E,"linkHref",F,c);x=V.containsPosition(E)||V.end.isEqual(E)},{priority:"high"}),this.listenTo(c,"deleteContent",()=>{M&&(M=!1,x||r.model.enqueueChange(E=>{op(E,NC(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",(_,x)=>{c.change(M=>{const E=M.createRangeIn(x.content);for(const F of E.getItems())if(F.hasAttribute("linkHref")){const V=r1(F.getAttribute("linkHref"),u);M.setAttribute("linkHref",V,F)}})})}}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 NC(m){return m.getDefinition("$text").allowAttributes.filter(r=>r.startsWith("link"))}var u3=v(7754);No()(u3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class NA extends oa{constructor(r,c){super(r),this.focusTracker=new rs,this.keystrokes=new $c,this._focusables=new Na;const u=r.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(u("Save"),gs.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(u("Cancel"),gs.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(c),this.children=this._createFormChildren(c.manualDecorators),this._focusCycler=new ul({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(),C({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,lf);return c.label=r("Link URL"),c}_createButton(r,c,u,_){const x=new $o(this.locale);return x.set({label:r,icon:c,tooltip:!0}),x.extendTemplate({attributes:{class:u}}),_&&x.delegate("execute").to(this,_),x}_createManualDecoratorSwitches(r){const c=this.createCollection();for(const u of r.manualDecorators){const _=new ys(this.locale);_.set({name:u.id,label:u.label,withText:!0}),_.bind("isOn").toMany([u,r],"value",(x,M)=>void 0===M&&void 0===x?!!u.defaultValue:!!x),_.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 Yb=v(2347);No()(Yb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class my extends oa{constructor(r){super(r),this.focusTracker=new rs,this.keystrokes=new $c,this._focusables=new Na;const c=r.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(c("Unlink"),'',"unlink"),this.editButtonView=this._createButton(c("Edit link"),gs.pencil,"edit"),this.set("href",void 0),this._focusCycler=new ul({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",_=>_&&l3(_)),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 qp="link-ui";class FA extends lo{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[F0]}static get pluginName(){return"LinkUI"}init(){const r=this.editor;r.editing.view.addObserver(s4),this._balloon=r.plugins.get(F0),this._createToolbarLinkButton(),this._enableBalloonActivators(),r.conversion.for("editingDowncast").markerToHighlight({model:qp,view:{classes:["ck-fake-link-selection"]}}),r.conversion.for("editingDowncast").markerToElement({model:qp,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",(x,M)=>{this._hideUI(),M()}),c.keystrokes.set(k1,(x,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:x}=_.urlInputView.fieldView.element,M=r1(x,u);r.execute("link",M,_.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(_,"cancel",()=>{this._closeFormView()}),_.keystrokes.set("Esc",(x,M)=>{this._closeFormView(),M()}),_}_createToolbarLinkButton(){const r=this.editor,c=r.commands.get("link"),u=r.t;r.ui.componentFactory.add("link",_=>{const x=new $o(_);return x.isEnabled=!0,x.label=u("Link"),x.icon='',x.keystroke=k1,x.tooltip=!0,x.isToggleable=!0,x.bind("isEnabled").to(c,"isEnabled"),x.bind("isOn").to(c,"value",M=>!!M),this.listenTo(x,"execute",()=>this._showUI(!0)),x})}_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 x=()=>{const E=this._getSelectedLinkElement(),F=M();u&&!E||!u&&F!==_?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),u=E,_=F};function M(){return c.selection.focus.getAncestors().reverse().find(E=>E.is("element"))}this.listenTo(r.ui,"update",x),this.listenTo(this._balloon,"change:visibleView",x)}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(qp)){const x=Array.from(this.editor.editing.mapper.markerNameToElements(qp)),M=r.createRange(r.createPositionBefore(x[0]),r.createPositionAfter(x[x.length-1]));_=r.domConverter.viewRangeToDom(M)}else _=()=>{const x=this._getSelectedLinkElement();return x?r.domConverter.mapViewToDom(x):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 u6(c.getFirstPosition());{const _=c.getFirstRange().getTrimmed(),x=u6(_.start),M=u6(_.end);return x&&x==M&&r.createRangeIn(x).getTrimmed().isEqual(_)?x:null}}_showFakeVisualSelection(){const r=this.editor.model;r.change(c=>{const u=r.document.selection.getFirstRange();if(r.markers.has(qp))c.updateMarker(qp,{range:u});else if(u.start.isAtEnd){const _=u.start.getLastMatchingPosition(({item:x})=>!r.schema.isContent(x),{boundaries:u});c.addMarker(qp,{usingOperation:!1,affectsData:!1,range:c.createRange(_,u.end)})}else c.addMarker(qp,{usingOperation:!1,affectsData:!1,range:u})})}_hideFakeVisualSelection(){const r=this.editor.model;r.markers.has(qp)&&r.change(c=>{c.removeMarker(qp)})}}function u6(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 d6 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 Xv(r.model,u=>{if(!((x=u).length>4&&" "===x[x.length-1]&&" "!==x[x.length-2]))return;var x;const _=p6(u.substr(0,u.length-1));return _?{url:_}:void 0});c.on("matched:data",(u,_)=>{const{batch:x,range:M,url:E}=_;if(!x.isTyping)return;const F=M.end.getShiftedBy(-1),V=F.getShiftedBy(-E.length),W=r.model.createRange(V,F);this._applyAutoLink(E,W)}),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 x=c.createRangeIn(_.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(x)})}_enableShiftEnterHandling(){const r=this.editor,c=r.model,u=r.commands.get("shiftEnter");u&&u.on("execute",()=>{const _=c.document.selection.getFirstPosition(),x=c.createRange(c.createPositionAt(_.parent,0),_.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(x)})}_checkAndApplyAutoLinkOnRange(r){const c=this.editor.model,{text:u,range:_}=S4(r,c),x=p6(u);if(x){const M=c.createRange(_.end.getShiftedBy(-x.length),_.end);this._applyAutoLink(x,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(x){const M=x.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(x=>{x.setAttribute("linkHref",r,c),u.enqueueChange(()=>{_.requestUndoOnBackspace()})})}}function p6(m){const r=_y.exec(m);return r?r[2]:null}var p3=v(111);No()(p3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Bb=v(5730);No()(Bb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var m3=v(4564);function zC(m,r,c,u){const _=r.parent,x=c.mapper,M=c.writer;let E=x.toViewPosition(u.createPositionBefore(m));const F=YC(m.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:m.getAttribute("listIndent")}),V=m.previousSibling;if(F&&F.getAttribute("listIndent")==m.getAttribute("listIndent")){const W=x.toViewElement(F);E=M.breakContainer(M.createPositionAfter(W))}else if(V&&"listItem"==V.name){E=x.toViewPosition(u.createPositionAt(V,"end"));const W=x.findMappedViewAncestor(E),dt=function(Zt){for(const ue of Zt.getChildren())if("ul"==ue.name||"ol"==ue.name)return ue;return null}(W);E=dt?M.createPositionBefore(dt):M.createPositionAt(W,"end")}else E=x.toViewPosition(u.createPositionBefore(m));if(E=jb(E),M.insert(E,_),V&&"listItem"==V.name){const W=x.toViewElement(V),dt=M.createRange(M.createPositionAt(W,0),E).getWalker({ignoreElementEnd:!0});for(const Zt of dt)if(Zt.item.is("element","li")){const ue=M.breakContainer(M.createPositionBefore(Zt.item)),Ae=Zt.item.parent,Ie=M.createPositionAt(r,"end");D1(M,Ie.nodeBefore,Ie.nodeAfter),M.move(M.createRangeOn(Ae),Ie),dt._position=ue}}else{const W=_.nextSibling;if(W&&(W.is("element","ul")||W.is("element","ol"))){let dt=null;for(const Zt of W.getChildren()){const ue=x.toModelElement(Zt);if(!(ue&&ue.getAttribute("listIndent")>m.getAttribute("listIndent")))break;dt=Zt}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 jb(m){return m.getLastMatchingPosition(r=>r.item.is("uiElement"))}function YC(m,r){const c=!!r.sameIndent,u=!!r.smallerIndent,_=r.listIndent;let x=m;for(;x&&"listItem"==x.name;){const M=x.getAttribute("listIndent");if(c&&_==M||u&&_>M)return x;x="forward"===r.direction?x.nextSibling:x.previousSibling}return null}function BC(m,r,c,u){m.ui.componentFactory.add(r,_=>{const x=m.commands.get(r),M=new $o(_);return M.set({label:c,icon:u,tooltip:!0,isToggleable:!0}),M.bind("isOn","isEnabled").to(x,"value","isEnabled"),M.on("execute",()=>{m.execute(r),m.editing.view.focus()}),M})}function VC(m,r){const c=[],u=m.parent,_={ignoreElementEnd:!1,startPosition:m,shallow:!0,direction:r},x=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")x)){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}No()(m3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const qA=["disc","circle","square"],jC=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function JC(){const m=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||m?0:zf.call(this)}class RA extends lo{static get pluginName(){return"ListUI"}init(){const r=this.editor.t;BC(this.editor,"numberedList",r("Numbered List"),''),BC(this.editor,"bulletedList",r("Bulleted List"),'')}}const GC={},fy={},hy={},HA=[{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 HA)GC[m]=c,fy[m]=r,r&&(hy[r]=m);var zA=v(4721);No()(zA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var QC=v(6082);No()(QC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var WC=v(2417);No()(WC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Gb extends Za{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 x=u[u.length-1];let M=x.nextSibling;for(;M&&"listItem"==M.name&&M.getAttribute("listIndent")>x.getAttribute("listIndent");)u.push(M),M=M.nextSibling;this._indentBy<0&&(u=u.reverse());for(const E of u){const F=E.getAttribute("listIndent")+this._indentBy;F<0?_.rename(E,"paragraph"):_.setAttribute("listIndent",F,E)}this.fire("_executeCleanup",u)})}_checkEnabled(){const r=as(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 h2 extends Za{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=>_6(M,c.schema)),x=void 0!==r.forceValue?!r.forceValue:this.value;c.change(M=>{if(x){let E=_[_.length-1].nextSibling,F=Number.POSITIVE_INFINITY,V=[];for(;E&&"listItem"==E.name&&0!==E.getAttribute("listIndent");){const W=E.getAttribute("listIndent");W=c;)x>_.getAttribute("listIndent")&&(x=_.getAttribute("listIndent")),_.getAttribute("listIndent")==x&&m[r?"unshift":"push"](_),_=_[r?"previousSibling":"nextSibling"]}}function _6(m,r){return r.checkChild(m.parent,"listItem")&&!r.isObject(m)}class Wb extends lo{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(r){return qA.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 x=c.change(M=>M.createPositionAt(_,0));return[...VC(x,"backward"),...VC(x,"forward")]}).flat();return u=[...new Set(u)],u}(r)}getSiblingNodes(r,c){return VC(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 x=c.item;zC(x,function HC(m,r){const c=r.mapper,u=r.writer,_="numbered"==m.getAttribute("listType")?"ol":"ul",x=function(E){const F=E.createContainerElement("li");return F.getFillerOffset=JC,F}(u),M=u.createContainerElement(_,null);return u.insert(u.createPositionAt(M,0),x),c.bindElements(m,x),x}(x,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)},yf=(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)},f3=(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,x=[];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 F=_.remove(_.createRange(M,E));x.push(F)}u=_.createPositionAfter(u.parent)}if(x.length>0){for(let M=0;M0){const F=D1(_,E,E.nextSibling);F&&F.parent==E&&u.offset--}}D1(_,u.nodeBefore,u.nodeAfter)}}},gy=(m,r,c)=>{const u=c.mapper.toViewPosition(r.position);D1(c.writer,u.nodeBefore,u.nodeAfter)},by=(m,r,c)=>{if(c.consumable.consume(r.viewItem,{name:!0})){const u=c.writer,_=u.createElement("listItem"),x=function(F){let V=0,W=F.parent;for(;W;){if(W.is("element","li"))V++;else{const dt=W.previousSibling;dt&&dt.is("element","li")&&V++}W=W.parent}return V}(r.viewItem);if(u.setAttribute("listIndent",x,_),u.setAttribute("listType",r.viewItem.parent&&"ol"==r.viewItem.parent.name?"numbered":"bulleted",_),!c.safeInsert(_,r.modelCursor))return;const E=function(F,V,W){const{writer:dt,schema:Zt}=W;let ue=dt.createPositionAfter(F);for(const Ae of V)if("ul"==Ae.name||"ol"==Ae.name)ue=W.convertItem(Ae,ue).modelCursor;else{const Ie=W.convertItem(Ae,dt.createPositionAt(F,"end")),ln=Ie.modelRange.start.nodeAfter;ln&&ln.is("element")&&!Zt.checkChild(F,ln.name)&&(F=Ie.modelCursor.parent.is("element","listItem")?Ie.modelCursor.parent:jA(Ie.modelCursor),ue=dt.createPositionAfter(F))}return ue}(_,r.viewItem.getChildren(),c);r.modelRange=u.createRange(r.modelCursor,E),c.updateConversionResult(_,r)}},BA=(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")&&!tg(_)&&_._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 x of u)_&&!tg(x)&&x._remove(),tg(x)&&(_=!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),x=_.getAncestors().find(tg),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==x){c.viewPosition=E.nextPosition;break}}}}}const VA=function(m,[r,c]){let _,x=r.is("documentFragment")?r.getChild(0):r;if(_=c?this.createSelection(c):this.document.selection,x&&x.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 F=E.getAttribute("listIndent");if(F>0)for(;x&&x.is("element","listItem");)x._setAttribute("listIndent",x.getAttribute("listIndent")+F),x=x.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,_,x){const M=YC(r.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:m}),E=_.mapper,F=_.writer,V=M?M.getAttribute("listIndent"):null;let W;if(M)if(V==m){const dt=E.toViewElement(M).parent;W=F.createPositionAfter(dt)}else{const dt=x.createPositionAt(M,"end");W=E.toViewPosition(dt)}else W=c;W=jb(W);for(const dt of[...u.getChildren()])tg(dt)&&(W=F.move(F.createRangeOn(dt),W).end,D1(F,dt,dt.nextSibling),D1(F,dt.previousSibling,dt))}function tg(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,F){const V=E.document.differ.getChanges(),W=new Map;let dt=!1;for(const Ie of V)if("insert"==Ie.type&&"listItem"==Ie.name)Zt(Ie.position);else if("insert"==Ie.type&&"listItem"!=Ie.name){if("$text"!=Ie.name){const ln=Ie.position.nodeAfter;ln.hasAttribute("listIndent")&&(F.removeAttribute("listIndent",ln),dt=!0),ln.hasAttribute("listType")&&(F.removeAttribute("listType",ln),dt=!0),ln.hasAttribute("listStyle")&&(F.removeAttribute("listStyle",ln),dt=!0),ln.hasAttribute("listReversed")&&(F.removeAttribute("listReversed",ln),dt=!0),ln.hasAttribute("listStart")&&(F.removeAttribute("listStart",ln),dt=!0);for(const Dn of Array.from(E.createRangeIn(ln)).filter(di=>di.item.is("element","listItem")))Zt(Dn.previousPosition)}Zt(Ie.position.getShiftedBy(Ie.length))}else"remove"==Ie.type&&"listItem"==Ie.name?Zt(Ie.position):("attribute"==Ie.type&&"listIndent"==Ie.attributeKey||"attribute"==Ie.type&&"listType"==Ie.attributeKey)&&Zt(Ie.range.start);for(const Ie of W.values())ue(Ie),Ae(Ie);return dt;function Zt(Ie){const ln=Ie.nodeBefore;if(ln&&ln.is("element","listItem")){let Dn=ln;if(W.has(Dn))return;for(let di=Dn.previousSibling;di&&di.is("element","listItem");di=Dn.previousSibling)if(Dn=di,W.has(Dn))return;W.set(ln,Dn)}else{const Dn=Ie.nodeAfter;Dn&&Dn.is("element","listItem")&&W.set(Dn,Dn)}}function ue(Ie){let ln=0,Dn=null;for(;Ie&&Ie.is("element","listItem");){const di=Ie.getAttribute("listIndent");if(di>ln){let Ri;null===Dn?(Dn=di-ln,Ri=ln):(Dn>di&&(Dn=di),Ri=di-Dn),F.setAttribute("listIndent",Ri,Ie),dt=!0}else Dn=null,ln=Ie.getAttribute("listIndent")+1;Ie=Ie.nextSibling}}function Ae(Ie){let ln=[],Dn=null;for(;Ie&&Ie.is("element","listItem");){const di=Ie.getAttribute("listIndent");if(Dn&&Dn.getAttribute("listIndent")>di&&(ln=ln.slice(0,di+1)),0!=di)if(ln[di]){const Ri=ln[di];Ie.getAttribute("listType")!=Ri&&(F.setAttribute("listType",Ri,Ie),dt=!0)}else ln[di]=Ie.getAttribute("listType");Dn=Ie,Ie=Ie.nextSibling}}}(r.model,M)),u.mapper.registerViewToModelLength("li",f6),c.mapper.registerViewToModelLength("li",f6),u.mapper.on("modelToViewPosition",Xb(u.view)),u.mapper.on("viewToModelPosition",(_=r.model,(M,E)=>{const F=E.viewPosition,V=F.parent,W=E.mapper;if("ul"==V.name||"ol"==V.name){if(F.isAtEnd){const dt=W.toModelElement(F.nodeBefore),Zt=W.getModelLength(F.nodeBefore);E.modelPosition=_.createPositionBefore(dt).getShiftedBy(Zt)}else{const dt=W.toModelElement(F.nodeAfter);E.modelPosition=_.createPositionBefore(dt)}M.stop()}else if("li"==V.name&&F.nodeBefore&&("ul"==F.nodeBefore.name||"ol"==F.nodeBefore.name)){const dt=W.toModelElement(V);let Zt=1,ue=F.nodeBefore;for(;ue&&tg(ue);)Zt+=W.getModelLength(ue),ue=ue.previousSibling;E.modelPosition=_.createPositionBefore(dt).getShiftedBy(Zt),M.stop()}})),c.mapper.on("modelToViewPosition",Xb(u.view)),r.conversion.for("editingDowncast").add(M=>{var E;M.on("insert",f3,{priority:"high"}),M.on("insert:listItem",$C(r.model)),M.on("attribute:listType:listItem",$b,{priority:"high"}),M.on("attribute:listType:listItem",yf,{priority:"low"}),M.on("attribute:listIndent:listItem",(E=r.model,(F,V,W)=>{if(!W.consumable.consume(V.item,"attribute:listIndent"))return;const dt=W.mapper.toViewElement(V.item),Zt=W.writer;Zt.breakContainer(Zt.createPositionBefore(dt)),Zt.breakContainer(Zt.createPositionAfter(dt));const ue=dt.parent,Ae=ue.previousSibling,Ie=Zt.createRangeOn(ue);Zt.remove(Ie),Ae&&Ae.nextSibling&&D1(Zt,Ae,Ae.nextSibling),KC(V.attributeOldValue+1,V.range.start,Ie.start,dt,W,E),zC(V.item,dt,W,E);for(const ln of V.item.getChildren())W.consumable.consume(ln,"insert")})),M.on("remove:listItem",function(E){return(F,V,W)=>{const dt=W.mapper.toViewPosition(V.position).getLastMatchingPosition(Dn=>!Dn.item.is("element","li")).nodeAfter,Zt=W.writer;Zt.breakContainer(Zt.createPositionBefore(dt)),Zt.breakContainer(Zt.createPositionAfter(dt));const ue=dt.parent,Ae=ue.previousSibling,Ie=Zt.createRangeOn(ue),ln=Zt.remove(Ie);Ae&&Ae.nextSibling&&D1(Zt,Ae,Ae.nextSibling),KC(W.mapper.toModelElement(dt).getAttribute("listIndent")+1,V.position,Ie.start,dt,W,E);for(const Dn of Zt.createRangeIn(ln).getItems())W.mapper.unbindViewElement(Dn);F.stop()}}(r.model)),M.on("remove",gy,{priority:"low"})}),r.conversion.for("dataDowncast").add(M=>{M.on("insert",f3,{priority:"high"}),M.on("insert:listItem",$C(r.model))}),r.conversion.for("upcast").add(M=>{M.on("element:ul",BA,{priority:"high"}),M.on("element:ol",BA,{priority:"high"}),M.on("element:li",Kb,{priority:"high"}),M.on("element:li",by)}),r.model.on("insertContent",VA,{priority:"high"}),r.commands.add("numberedList",new h2(r,"numbered")),r.commands.add("bulletedList",new h2(r,"bulleted")),r.commands.add("indentList",new Gb(r,"forward")),r.commands.add("outdentList",new Gb(r,"backward"));const x=u.view.document;this.listenTo(x,"enter",(M,E)=>{const F=this.editor.model.document,V=F.selection.getLastPosition().parent;F.selection.isCollapsed&&"listItem"==V.name&&V.isEmpty&&(this.editor.execute("outdentList"),E.preventDefault(),M.stop())},{context:"li"}),this.listenTo(x,"delete",(M,E)=>{if("backward"!==E.direction)return;const F=this.editor.model.document.selection;if(!F.isCollapsed)return;const V=F.getFirstPosition();if(!V.isAtStart)return;const W=V.parent;"listItem"===W.name&&(W.previousSibling&&"listItem"===W.previousSibling.name||(this.editor.execute("outdentList"),E.preventDefault(),M.stop()))},{context:"li"}),this.listenTo(r.editing.view.document,"tab",(M,E)=>{const F=E.shiftKey?"outdentList":"indentList";this.editor.commands.get(F).isEnabled&&(r.execute(F),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 f6(m){let r=1;for(const c of m.getChildren())if("ul"==c.name||"ol"==c.name)for(const u of c.getChildren())r+=f6(u);return r}tc("Ctrl+Enter");var ev=v(1199);function XC(m,r){const c=(u,_,x)=>{if(!x.consumable.consume(_.item,u.name))return;const M=_.attributeNewValue,E=x.writer,F=x.mapper.toViewElement(_.item),V=[...F.getChildren()].find(dt=>dt.getCustomProperty("media-content"));E.remove(V);const W=m.getMediaViewElement(E,M,r);E.insert(E.createPositionAt(F,0),W)};return u=>{u.on("attribute:url:media",c)}}function h6(m,r,c,u){return m.createContainerElement("figure",{class:"media"},[r.getMediaViewElement(m,c,u),m.createSlot()])}function h3(m){const r=m.getSelectedElement();return r&&r.is("element","media")?r:null}function GA(m,r,c,u){m.change(_=>{const x=_.createElement("media",{url:r});m.insertObject(x,c,null,{setSelection:"on",findOptimalPosition:u?"auto":void 0})})}No()(ev.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),tc("Ctrl+Enter");class t8 extends Za{refresh(){const r=this.editor.model,c=r.document.selection,u=h3(c);this.value=u?u.getAttribute("url"):void 0,this.isEnabled=function(_){const x=_.getSelectedElement();return!!x&&"media"===x.name}(c)||function(_,x){let E=F4(_,x).start.parent;return E.isEmpty&&!x.schema.isLimit(E)&&(E=E.parent),x.schema.checkChild(E,"media")}(c,r)}execute(r){const c=this.editor.model,u=c.document.selection,_=h3(u);_?c.change(x=>{x.setAttribute("url",r,_)}):GA(c,r,u,!0)}}class g3{constructor(r,c){const u=c.providers,_=c.extraProviders||[],x=new Set(c.removeProviders),M=u.concat(_).filter(E=>{const F=E.name;return F?!x.has(F):(Tt("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 x of _){const M=this._getUrlMatches(r,x);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 x=this._getPreviewHtml(c);_=r.createRawElement("div",u,(M,E)=>{E.setContentOf(M,x)})}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);No()(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 g3(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,x=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:(F,{writer:V})=>{const W=F.getAttribute("url");return h6(V,E,W,{elementName:M,renderMediaPreview:!!W&&x})}}),_.for("dataDowncast").add(XC(E,{elementName:M,renderMediaPreview:x})),_.for("editingDowncast").elementToStructure({model:"media",view:(F,{writer:V})=>{const W=F.getAttribute("url");return dt=h6(V,E,W,{elementName:M,renderForEditingView:!0}),Zt=V,ue=u("media widget"),Zt.setCustomProperty("media",!0,dt),ep(dt,Zt,{label:ue});var dt,Zt,ue}}),_.for("editingDowncast").add(XC(E,{elementName:M,renderForEditingView:!0})),_.for("upcast").elementToElement({view:F=>["oembed",M].includes(F.name)&&F.getAttribute("url")?{name:!0}:null,model:(F,{writer:V})=>{const W=F.getAttribute("url");return E.hasMedia(W)?V.createElement("media",{url:W}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(F,{writer:V})=>{const W=F.getAttribute("data-oembed-url");return E.hasMedia(W)?V.createElement("media",{url:W}):null}}).add(F=>{F.on("element:figure",(V,W,dt)=>{if(!dt.consumable.consume(W.viewItem,{name:!0,classes:"media"}))return;const{modelRange:Zt,modelCursor:ue}=dt.convertChildren(W.viewItem,W.modelCursor);W.modelRange=Zt,W.modelCursor=ue,as(Zt.getItems())||dt.consumable.revert(W.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[yx,r_,Lx]}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(),x=el.fromPosition(_.start);x.stickiness="toPrevious";const M=el.fromPosition(_.end);M.stickiness="toNext",c.once("change:data",()=>{this._embedMediaBetweenPositions(x,M),x.detach(),M.detach()},{priority:"high"})}),r.commands.get("undo").on("execute",()=>{this._timeoutId&&(Mt.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,x=new Xu(r,c),M=x.getWalker({ignoreElementEnd:!0});let E="";for(const F of M)F.item.is("$textProxy")&&(E+=F.item.data);E=E.trim(),E.match(QA)&&_.hasMedia(E)&&u.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=el.fromPosition(r),this._timeoutId=Mt.window.setTimeout(()=>{u.model.change(F=>{this._timeoutId=null,F.remove(x),x.detach();let V=null;"$graveyard"!==this._positionToInsert.root.rootName&&(V=this._positionToInsert),GA(u.model,E,V,!1),this._positionToInsert.detach(),this._positionToInsert=null}),u.plugins.get(r_).requestUndoOnBackspace()},100)):x.detach()}}var i8=v(9292);No()(i8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Cy extends oa{constructor(r,c){super(c);const u=c.t;this.focusTracker=new rs,this.keystrokes=new $c,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(u("Save"),gs.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",_=>!!_),this.cancelButtonView=this._createButton(u("Cancel"),gs.cancel,"ck-button-cancel","cancel"),this._focusables=new Na,this._focusCycler=new ul({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(),C({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,lf),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 x=new $o(this.locale);return x.set({label:r,icon:c,tooltip:!0}),x.extendTemplate({attributes:{class:u}}),_&&x.delegate("execute").to(this,_),x}}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 _=Lp(u);return this._setUpDropdown(_,c),_})}_setUpDropdown(r,c){const u=this.editor,_=u.t,x=r.buttonView,M=u.plugins.get(nv).registry;r.once("change:isOpen",()=>{const E=new(A(Cy))((F=u.t,V=M,[W=>{if(!W.url.length)return F("The URL must not be empty.")},W=>{if(!V.hasMedia(W.url))return F("This media URL is not supported.")}]),u.locale);var F,V;r.panelView.children.add(E),x.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),x.set({label:_("Insert media"),icon:'',tooltip:!0})}}var KA=v(4652);function yy(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),x=u.getChildIndex(r)+1;return c.insertChild(x,_,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),x=c.match(/\s{0,100}level(\d+)/i);u&&_&&x&&(r.id=u[2],r.order=_[1],r.indent=parseInt(x[1]))}return r}function wy(m){return btoa(m.match(/\w{2}/g).map(r=>String.fromCharCode(parseInt(r,16))).join(""))}No()(KA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Uy=//i,h=/xmlns:o="urn:schemas-microsoft-com/i;class g{constructor(r){this.document=r}isActive(r){return Uy.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 F=E.createRangeIn(M),V=new ps({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),W=[];for(const dt of F)if("elementStart"===dt.type&&V.match(dt.item)){const Zt=t7(dt.item);W.push({element:dt.item,id:Zt.id,order:Zt.order,indent:Zt.indent})}return W}(m,c);if(!u.length)return;let _=null,x=1;u.forEach((M,E)=>{const F=function(Ae,Ie){if(!Ae)return!0;if(Ae.id!==Ie.id)return Ie.indent-Ae.indent!=1;const ln=Ie.element.previousSibling;return!ln||!((Dn=ln).is("element","ol")||Dn.is("element","ul"));var Dn}(u[E-1],M),W=(Zt=M,(dt=F?null:u[E-1])?Zt.indent-dt.indent:Zt.indent-1);var dt,Zt;if(F&&(_=null,x=1),!_||0!==W){const Ae=function(Ie,ln){const di=/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${Ie.id}:level${Ie.indent}\\s*({[^}]*)`,"gi").exec(ln);let Da="decimal",ws="ol",Kr=null;if(Go&&Go[1]){const Il=di.exec(Go[1]);if(Il&&Il[1]&&(Da=Il[1].trim(),ws="bullet"!==Da&&"image"!==Da?"ol":"ul"),"bullet"===Da){const fl=function(w6){const b2=function(wf){if(wf.getChild(0).is("$text"))return null;for(const v2 of wf.getChildren()){if(!v2.is("element","span"))continue;const C3=v2.getChild(0);if(C3)return C3.is("$text")?C3:C3.getChild(0)}return null}(w6);if(!b2)return null;const Rp=b2._data;return"o"===Rp?"circle":"\xb7"===Rp?"disc":"\xa7"===Rp?"square":null}(Ie.element);fl&&(Da=fl)}else{const fl=Ri.exec(Go[1]);fl&&fl[1]&&(Kr=parseInt(fl[1]))}}return{type:ws,startIndex:Kr,style:yy(Da)}}(M,r);if(_)if(M.indent>x){const Ie=_.getChild(_.childCount-1),ln=Ie.getChild(Ie.childCount-1);_=XA(Ae,ln,c),x+=1}else M.indentx.indexOf(Ae)>-1)?W.push(Zt):Zt.getAttribute("src")||W.push(Zt)}for(const dt of W)E.remove(dt)})(u,m,c),function(x,M,E){const F=E.createRangeIn(M),V=[];for(const Zt of F)if("elementStart"==Zt.type&&Zt.item.is("element","v:shape")){const ue=Zt.item.getAttribute("id");if(x.includes(ue))continue;W(Zt.item.parent.getChildren(),ue)||V.push(Zt.item)}for(const Zt of V){const ue={src:dt(Zt)};Zt.hasAttribute("alt")&&(ue.alt=Zt.getAttribute("alt"));const Ae=E.createElement("img",ue);E.insertChild(Zt.index+1,Ae,Zt.parent)}function W(Zt,ue){for(const Ae of Zt)if(Ae.is("element")&&("img"==Ae.name&&Ae.getAttribute("v:shapes")==ue||W(Ae.getChildren(),ue)))return!0;return!1}function dt(Zt){for(const ue of Zt.getChildren())if(ue.is("element")&&ue.getAttribute("src"))return ue.getAttribute("src")}}(u,m,c),function(x,M){const E=M.createRangeIn(x),F=new ps({name:/v:(.+)/}),V=[];for(const W of E)"elementStart"==W.type&&F.match(W.item)&&V.push(W.item);for(const W of V)M.remove(W)}(m,c);const _=function(x,M){const E=M.createRangeIn(x),F=new ps({name:"img"}),V=[];for(const W of E)W.item.is("element")&&F.match(W.item)&&W.item.getAttribute("src").startsWith("file://")&&V.push(W.item);return V}(m,c);_.length&&function(x,M,E){if(x.length===M.length)for(let F=0;FM.is("element")&&!u.includes(M.name)&&!_.includes(M.name),{direction:r}),"forward"==r?x.nodeAfter:x.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 j{constructor(r){this.document=r}isActive(r){return q.test(r)}execute(r){const c=new W1(this.document),{body:u}=r._parsedData;(function(_,x){for(const M of _.getChildren())if(M.is("element","b")&&"normal"===M.getStyle("font-weight")){const E=_.getChildIndex(M);x.remove(M),x.insertChild(E,M.getChildren(),_)}})(u,c),function(_,x){for(const M of x.createRangeIn(_)){const E=M.item;if(E.is("element","li")){const F=E.getChild(0);F&&F.is("element","p")&&x.unwrapElement(F)}}}(u,c),function(_,x){const M=new Xp(x.document.stylesProcessor),E=new F_(M,{renderingMode:"data"}),F=E.blockElements,V=E.inlineObjectElements,W=[];for(const dt of x.createRangeIn(_)){const Zt=dt.item;if(Zt.is("element","br")){const ue=w(Zt,"forward",x,{blockElements:F,inlineObjectElements:V}),Ae=w(Zt,"backward",x,{blockElements:F,inlineObjectElements:V}),Ie=O(ue,F);(O(Ae,F)||Ie)&&W.push(Zt)}}for(const dt of W)dt.hasClass("Apple-interchange-newline")?x.remove(dt):x.replace(dt,x.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 je(m,r,c,u,_=1){null!=r&&null!=_&&r>_?u.setAttribute(m,r,c):u.removeAttribute(m,c)}function xn(m,r,c={}){const u=m.createElement("tableCell",c);return m.insertElement("paragraph",u),m.insert(u,r),u}function ai(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 x=u.modelRange.start.nodeAfter,M=_.createPositionAt(x,0);if(u.viewItem.isEmpty)return void _.insertElement("paragraph",M);const E=Array.from(x.getChildren());if(E.every(F=>F.is("element","$marker"))){const F=_.createElement("paragraph");_.insert(F,_.createPositionAt(x,0));for(const V of E)_.move(_.createRangeOn(V),_.createPositionAt(F,"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,x),this._shouldSkipSlot()||(c=this._formatOutValue(_)),this._nextCellAtColumn=this._column+x}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 x=this._row;x0&&!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,x=u.createContainerElement("table",null,[]),M=u.createContainerElement("figure",{class:"table"},x);_>0&&u.insert(u.createPositionAt(x,"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:F}of r.additionalSlots)u.insert(u.createPositionAt(x,E),u.createSlot(F));return u.insert(u.createPositionAt(x,"after"),u.createSlot(E=>!E.is("element","tableRow")&&!r.additionalSlots.some(({filter:F})=>F(E)))),r.asWidget?((F=u).setCustomProperty("table",!0,E=M),ep(E,F,{hasSelectionHandle:!0})):M;var E,F}}function oo(m={}){return(r,{writer:c})=>{const u=r.parent,_=u.parent,x=_.getChildIndex(u),M=new ro(_,{row:x}),E=_.getAttribute("headingRows")||0,F=_.getAttribute("headingColumns")||0;let V=null;for(const W of M)if(W.cell==r){const dt=W.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 Za{refresh(){const r=this.editor.model;this.isEnabled=function(_,x){const M=_.getFirstPosition().parent;return x.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"),x=c.config.get("table.defaultHeadings.rows"),M=c.config.get("table.defaultHeadings.columns");void 0===r.headingRows&&x&&(r.headingRows=x),void 0===r.headingColumns&&M&&(r.headingColumns=M),u.change(E=>{const F=_.createTable(E,r);u.insertObject(F,null,null,{findOptimalPosition:"auto"}),E.setSelection(E.createPositionAt(F.getNodeByPath([0,0,0]),0))})}}class g2 extends Za{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,x=u.getSelectionAffectedTableCells(c),M=u.getRowIndexes(x),E=_?M.first:M.last,F=x[0].findAncestor("table");u.insertRows(F,{at:_?E:E+1,copyStructureFromAbove:!_})}}class g6 extends Za{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,x=u.getSelectionAffectedTableCells(c),M=u.getColumnIndexes(x),E=_?M.first:M.last,F=x[0].findAncestor("table");u.insertColumns(F,{columns:1,at:_?E:E+1})}}class b3 extends Za{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:x,endColumn:M}=r,E=c.createElement("table"),F=x-u+1;for(let W=0;W0&&je("headingRows",Ie-Zt,W,Ae,0);const ln=parseInt(dt.getAttribute("headingColumns")||"0");ln>0&&je("headingColumns",ln-ue,W,Ae,0)}(E,m,u,_,c),E}function v6(m,r,c=0){const u=[],_=new ro(m,{startRow:c,endRow:r-1});for(const x of _){const{row:M,cellHeight:E}=x;M1&&(E.rowspan=F);const V=parseInt(m.getAttribute("colspan")||"1");V>1&&(E.colspan=V);const W=x+M,dt=[...new ro(_,{startRow:x,endRow:W,includeAllSlots:!0})];let Zt,ue=null;for(const Ae of dt){const{row:Ie,column:ln,cell:Dn}=Ae;Dn===m&&void 0===Zt&&(Zt=ln),void 0!==Zt&&Zt===ln&&Ie===W&&(ue=xn(c,Ae.getPositionBefore(),E))}return je("rowspan",M,m,c),ue}function C6(m,r){const c=[],u=new ro(m);for(const _ of u){const{column:x,cellWidth:M}=_;x1&&(x.colspan=M);const E=parseInt(m.getAttribute("rowspan")||"1");E>1&&(x.rowspan=E);const F=xn(u,u.createPositionAfter(m),x);return je("colspan",_,m,u),F}function v3(m,r,c,u,_,x){const M=parseInt(m.getAttribute("colspan")||"1"),E=parseInt(m.getAttribute("rowspan")||"1");c+M-1>_&&je("colspan",_-c+1,m,x,1),r+E-1>u&&je("rowspan",u-r+1,m,x,1)}function x3(m,r){const c=r.getColumns(m),u=new Array(c).fill(0);for(const{column:x}of new ro(m))u[x]++;const _=u.reduce((x,M,E)=>M?x:[...x,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){x3(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 Zy(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 Za{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,x=this.direction;r.change(M=>{const E="right"==x||"down"==x,F=E?u:_,V=E?_:u,W=V.parent;var Ie,ln,Dn;ln=F,Dn=M,My(Ie=V)||(My(ln)&&Dn.remove(Dn.createRangeIn(ln)),Dn.move(Dn.createRangeIn(Ie),Dn.createPositionAt(ln,"end"))),Dn.remove(Ie);const dt=this.isHorizontal?"colspan":"rowspan",Zt=parseInt(u.getAttribute(dt)||"1"),ue=parseInt(_.getAttribute(dt)||"1");M.setAttribute(dt,Zt+ue,F),M.setSelection(M.createRangeIn(F));const Ae=this.editor.plugins.get("TableUtils");e7(W.findAncestor("table"),Ae)})}_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,F,V){const Zt="right"==F?E.nextSibling:E.previousSibling,ue=(E.parent.parent.getAttribute("headingColumns")||0)>0;if(!Zt)return;const Ae="right"==F?E:Zt,Ie="right"==F?Zt:E,{column:ln}=V.getCellLocation(Ae),{column:Dn}=V.getCellLocation(Ie),di=parseInt(Ae.getAttribute("colspan")||"1"),Ri=ai(V,Ae),Go=ai(V,Ie);return ue&&Ri!=Go?void 0:ln+di===Dn?Zt:void 0}(u,this.direction,c):function(E,F,V){const W=E.parent,dt=W.parent,Zt=dt.getChildIndex(W);if("down"==F&&Zt===V.getRows(dt)-1||"up"==F&&0===Zt)return null;const ue=parseInt(E.getAttribute("rowspan")||"1"),Ae=dt.getAttribute("headingRows")||0;if(Ae&&("down"==F&&Zt+ue===Ae||"up"==F&&Zt===Ae))return null;const Dn=parseInt(E.getAttribute("rowspan")||"1"),di="down"==F?Zt+Dn:Zt,Ri=[...new ro(dt,{endRow:di})],Da=Ri.find(Kr=>Kr.cell===E).column,ws=Ri.find(({row:Kr,cellHeight:Il,column:fl})=>fl===Da&&("down"==F?Kr===di:di===Kr+Il));return ws&&ws.cell?ws.cell:null}(u,this.direction,c);if(!_)return;const x=this.isHorizontal?"rowspan":"colspan",M=parseInt(u.getAttribute(x)||"1");return parseInt(_.getAttribute(x)||"1")===M?_:void 0}}function My(m){const r=m.getChild(0);return 1==m.childCount&&r.is("element","paragraph")&&r.isEmpty}class ky extends Za{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"),x=r.getRows(_)-1,M=r.getRowIndexes(c);this.isEnabled=!(0===M.first&&M.last===x)}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),x=u[0],M=x.findAncestor("table"),E=c.getCellLocation(x).column;r.change(F=>{c.removeRows(M,{at:_.first,rows:_.last-_.first+1});const W=function(dt,Zt,ue,Ae){const Ie=dt.getChild(Math.min(Zt,Ae-1));let ln=Ie.getChild(0),Dn=0;for(const di of Ie.getChildren()){if(Dn>ue)return ln;ln=di,Dn+=parseInt(di.getAttribute("colspan")||"1")}return ln}(M,_.first,E,c.getRows(M));F.setSelection(F.createPositionAt(W,0))})}}class Dy extends Za{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"),x=r.getColumns(_),{first:M,last:E}=r.getColumnIndexes(c);this.isEnabled=E-MF.cell===c).column,last:x.find(F=>F.cell===u).column},E=(F=x,V=c,W=u,dt=M,parseInt(W.getAttribute("colspan")||"1")>1?W:V.previousSibling||W.nextSibling?W.nextSibling||V.previousSibling:dt.first?F.reverse().find(({column:ue})=>ueue>dt.last).cell);var F,V,W,dt;this.editor.model.change(F=>{r.removeColumns(_,{at:M.first,columns:M.last-M.first+1}),F.setSelection(F.createPositionAt(E,0))})}}class JT extends Za{refresh(){const u=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection),_=u.length>0;this.isEnabled=_,this.value=_&&u.every(x=>this._isInHeading(x,x.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),x=_[0].findAncestor("table"),{first:M,last:E}=c.getRowIndexes(_),F=this.value?M:E+1,V=x.getAttribute("headingRows")||0;u.change(W=>{if(F){const dt=v6(x,F,F>V?V:0);for(const{cell:Zt}of dt)x6(Zt,F,W)}je("headingRows",F,x,W,0)})}_isInHeading(r,c){const u=parseInt(c.getAttribute("headingRows")||"0");return!!u&&r.parent.index0;this.isEnabled=_,this.value=_&&u.every(x=>ai(c,x))}execute(r={}){if(r.forceValue===this.value)return;const c=this.editor.plugins.get("TableUtils"),u=this.editor.model,_=c.getSelectionAffectedTableCells(u.document.selection),x=_[0].findAncestor("table"),{first:M,last:E}=c.getColumnIndexes(_),F=this.value?M:E+1;u.change(V=>{if(F){const W=C6(x,F);for(const{cell:dt,column:Zt}of W)A6(dt,Zt,F,V)}je("headingColumns",F,x,V,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),x=new ro(u,{row:_});for(const{cell:M,row:E,column:F}of x)if(M===r)return{row:E,column:F}}createTable(r,c){const u=r.createElement("table"),_=c.rows||2,x=c.columns||2;return i7(r,u,0,_,x),c.headingRows&&je("headingRows",Math.min(c.headingRows,_),u,r,0),c.headingColumns&&je("headingColumns",Math.min(c.headingColumns,x),u,r,0),u}insertRows(r,c={}){const u=this.editor.model,_=c.at||0,x=c.rows||1,M=void 0!==c.copyStructureFromAbove,E=c.copyStructureFromAbove?_-1:_,F=this.getRows(r),V=this.getColumns(r);if(_>F)throw new nt("tableutils-insertrows-insert-out-of-range",this,{options:c});u.change(W=>{const dt=r.getAttribute("headingRows")||0;if(dt>_&&je("headingRows",dt+x,r,W,0),!M&&(0===_||_===F))return void i7(W,r,_,x,V);const Zt=M?Math.max(_,E):_,ue=new ro(r,{endRow:Zt}),Ae=new Array(V).fill(1);for(const{row:Ie,column:ln,cellHeight:Dn,cellWidth:di,cell:Ri}of ue){const Go=Ie+Dn-1,Da=Ie<=E&&E<=Go;Ie<_&&_<=Go?(W.setAttribute("rowspan",Dn+x,Ri),Ae[ln]=-di):M&&Da&&(Ae[ln]=di)}for(let Ie=0;Ie0&&xn(W,Ri,di>1?{colspan:di}:void 0),Dn+=Math.abs(di)-1}}})}insertColumns(r,c={}){const _=c.at||0,x=c.columns||1;this.editor.model.change(M=>{const E=r.getAttribute("headingColumns");_x-1)throw new nt("tableutils-removerows-row-index-out-of-range",this,{table:r,options:c});u.change(F=>{const V={first:M,last:E},{cellsToMove:W,cellsToTrim:dt}=function(Zt,{first:ue,last:Ae}){const Ie=new Map,ln=[];for(const{row:Dn,column:di,cellHeight:Ri,cell:Go}of new ro(Zt,{endRow:Ae})){const Da=Dn+Ri-1;if(Dn>=ue&&Dn<=Ae&&Da>Ae&&Ie.set(di,{cell:Go,rowspan:Ri-(Ae-Dn+1)}),Dn=ue){let ws;ws=Da>=Ae?Ae-ue+1:Da-ue+1,ln.push({cell:Go,rowspan:Ri-ws})}}return{cellsToMove:Ie,cellsToTrim:ln}}(r,V);W.size&&function(Zt,ue,Ae,Ie){const Dn=[...new ro(Zt,{includeAllSlots:!0,row:ue})],di=Zt.getChild(ue);let Ri;for(const{column:Go,cell:Da,isAnchor:ws}of Dn)if(Ae.has(Go)){const{cell:Kr,rowspan:Il}=Ae.get(Go),fl=Ri?Ie.createPositionAfter(Ri):Ie.createPositionAt(di,0);Ie.move(Ie.createRangeOn(Kr),fl),je("rowspan",Il,Kr,Ie),Ri=Kr}else ws&&(Ri=Da)}(r,E+1,W,F);for(let Zt=E;Zt>=M;Zt--)F.remove(r.getChild(Zt));for(const{rowspan:Zt,cell:ue}of dt)je("rowspan",Zt,ue,F);(function(Zt,{first:ue,last:Ae},Ie){const ln=Zt.getAttribute("headingRows")||0;ue{!function(V,W,dt){const Zt=V.getAttribute("headingColumns")||0;if(Zt&&W.firstc.is("element","tableColumnGroup"))}(m);return r?Array.from(r.getChildren()):[]}(r);for(let V=M;V>=_;V--){for(const{cell:W,column:dt,cellWidth:Zt}of[...new ro(r)])dt<=V&&Zt>1&&dt+Zt>V?je("colspan",Zt-1,W,E):dt===V&&E.remove(W);if(F[V]){const W=0===V?F[1]:F[V-1],dt=parseFloat(F[V].getAttribute("columnWidth")),Zt=parseFloat(W.getAttribute("columnWidth"));E.remove(F[V]),E.setAttribute("columnWidth",dt+Zt+"%",W)}}a8(r,this)||x3(r,this)})}splitCellVertically(r,c=2){const u=this.editor.model,_=r.parent.parent,x=parseInt(r.getAttribute("rowspan")||"1"),M=parseInt(r.getAttribute("colspan")||"1");u.change(E=>{if(M>1){const{newCellsSpan:F,updatedSpan:V}=Py(M,c);je("colspan",V,r,E);const W={};F>1&&(W.colspan=F),x>1&&(W.rowspan=x),y6(M>c?c-1:M-1,E,E.createPositionAfter(r),W)}if(MAe===r),dt=V.filter(({cell:Ae,cellWidth:Ie,column:ln})=>Ae!==r&&ln===W||lnW);for(const{cell:Ae,cellWidth:Ie}of dt)E.setAttribute("colspan",Ie+F,Ae);const Zt={};x>1&&(Zt.rowspan=x),y6(F,E,E.createPositionAfter(r),Zt);const ue=_.getAttribute("headingColumns")||0;ue>W&&je("headingColumns",ue+F,_,E)}})}splitCellHorizontally(r,c=2){const u=this.editor.model,_=r.parent,x=_.parent,M=x.getChildIndex(_),E=parseInt(r.getAttribute("rowspan")||"1"),F=parseInt(r.getAttribute("colspan")||"1");u.change(V=>{if(E>1){const W=[...new ro(x,{startRow:M,endRow:M+E-1,includeAllSlots:!0})],{newCellsSpan:dt,updatedSpan:Zt}=Py(E,c);je("rowspan",Zt,r,V);const{column:ue}=W.find(({cell:Ie})=>Ie===r),Ae={};dt>1&&(Ae.rowspan=dt),F>1&&(Ae.colspan=F);for(const Ie of W){const{column:ln,row:Dn}=Ie;Dn>=M+Zt&&ln===ue&&(Dn+M+Zt)%dt==0&&y6(1,V,Ie.getPositionBefore(),Ae)}}if(EM&&V.setAttribute("rowspan",Ie+W,Ae);const Zt={};F>1&&(Zt.colspan=F),i7(V,x,M+1,W,1,Zt);const ue=x.getAttribute("headingRows")||0;ue>M&&je("headingRows",ue+W,x,V)}})}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:F}=this.getCellLocation(M),V=parseInt(M.getAttribute("rowspan"))||1,W=parseInt(M.getAttribute("colspan"))||1;c.add(E),u.add(F),V>1&&c.add(E+V-1),W>1&&u.add(F+W-1),_+=V*W}return function(M,E){const F=Array.from(M.values()),V=Array.from(E.values());return(Math.max(...F)-Math.min(...F)+1)*(Math.max(...V)-Math.min(...V)+1)}(c,u)==_}sortRanges(r){return Array.from(r).sort(Sy)}_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 x=this.getColumnIndexes(r),M=parseInt(c.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(x,M)}_areIndexesInSameSection({first:r,last:c},u){return r{const _=c.getSelectedTableCells(r.document.selection),x=_.shift(),{mergeWidth:M,mergeHeight:E}=function(F,V,W){let dt=0,Zt=0;for(const Dn of V){const{row:di,column:Ri}=W.getCellLocation(Dn);dt=Ly(Dn,Ri,dt,"colspan"),Zt=Ly(Dn,di,Zt,"rowspan")}const{row:ue,column:Ae}=W.getCellLocation(F);return{mergeWidth:dt-Ae,mergeHeight:Zt-ue}}(x,_,c);je("colspan",M,x,u),je("rowspan",E,x,u);for(const F of _)Kn(F,x,u);e7(x.findAncestor("table"),c),u.setSelection(x,"in")})}}function Kn(m,r,c){Ba(m)||(Ba(r)&&c.remove(c.createRangeIn(r)),c.move(c.createRangeIn(m),c.createPositionAt(r,"end"))),c.remove(m)}function Ba(m){const r=m.getChild(0);return 1==m.childCount&&r.is("element","paragraph")&&r.isEmpty}function Ly(m,r,c,u){const _=parseInt(m.getAttribute(u)||"1");return Math.max(c,r+_)}class o7 extends Za{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),x=u[0].findAncestor("table"),M=[];for(let E=_.first;E<=_.last;E++)for(const F of x.getChild(E).getChildren())M.push(r.createRangeOn(F));r.change(E=>{E.setSelection(M)})}}class Oy extends Za{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],x=u.pop(),M=_.findAncestor("table"),E=r.getCellLocation(_),F=r.getCellLocation(x),V=Math.min(E.column,F.column),W=Math.max(E.column,F.column),dt=[];for(const Zt of new ro(M,{startColumn:V,endColumn:W}))dt.push(c.createRangeOn(Zt.cell));c.change(Zt=>{Zt.setSelection(dt)})}}function KT(m,r){let c=!1;const u=function(_){const x=parseInt(_.getAttribute("headingRows")||"0"),M=Array.from(_.getChildren()).reduce((F,V)=>V.is("element","tableRow")?F+1:F,0),E=[];for(const{row:F,cell:V,cellHeight:W}of new ro(_)){if(W<2)continue;const dt=Fdt&&E.push({cell:V,rowspan:dt-F})}return E}(m);if(u.length){c=!0;for(const _ of u)je("rowspan",_.rowspan,_.cell,r,1)}return c}function a7(m,r){let c=!1;const u=function(E){const F=new Array(E.childCount).fill(0);for(const{rowIndex:V}of new ro(E,{includeAllSlots:!0}))F[V]++;return F}(m),_=[];for(const[E,F]of u.entries())!F&&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 x=u.filter((E,F)=>m.getChild(F).is("element","tableRow")),M=x[0];if(!x.every(E=>E===M)){const E=x.reduce((F,V)=>V>F?V:F,0);for(const[F,V]of x.entries()){const W=E-V;if(W){for(let dt=0;dtu.is("$text"));for(const u of c)r.wrap(r.createRangeOn(u),"paragraph");return!!c.length}function n9(m){return!!m.position.parent.is("element","tableCell")&&("insert"==m.type&&"$text"==m.name||"remove"==m.type)}function i9(m,r){if(!m.is("element","paragraph"))return!1;const c=r.toViewElement(m);return!!c&&zr(m)!==c.is("element","span")}var Iy=v(3881);No()(Iy.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,x=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,F,V)=>{if(!V.consumable.test(F.viewItem,{name:!0,classes:"table"}))return;const W=function(Zt){for(const ue of Zt.getChildren())if(ue.is("element","table"))return ue}(F.viewItem);if(!W||!V.consumable.test(W,{name:!0}))return;V.consumable.consume(F.viewItem,{name:!0,classes:"table"});const dt=as(V.convertItem(W,F.modelCursor).modelRange.getItems());dt?(V.convertChildren(F.viewItem,V.writer.createPositionAt(dt,"end")),V.updateConversionResult(dt,F)):V.consumable.revert(F.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:x,headingRows:M,headingColumns:E}=function(W){let dt,Zt=0;const ue=[],Ae=[];let Ie;for(const ln of Array.from(W.getChildren())){if("tbody"!==ln.name&&"thead"!==ln.name&&"tfoot"!==ln.name)continue;"thead"!==ln.name||Ie||(Ie=ln);const Dn=Array.from(ln.getChildren()).filter(di=>di.is("element","tr"));for(const di of Dn)if(Ie&&ln===Ie||"tbody"===ln.name&&Array.from(di.getChildren()).length&&Array.from(di.getChildren()).every(Ri=>Ri.is("element","th")))Zt++,ue.push(di);else{Ae.push(di);const Ri=Ao(di);(!dt||Riu.convertItem(W,u.writer.createPositionAt(V,"end"))),u.convertChildren(_,u.writer.createPositionAt(V,"end")),V.isEmpty){const W=u.writer.createElement("tableRow");u.writer.insert(W,u.writer.createPositionAt(V,"end")),xn(u.writer,u.writer.createPositionAt(W,"end"))}u.updateConversionResult(V,c)}})}}()),_.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Ta(x,{asWidget:!0,additionalSlots:this._additionalSlots})}),_.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Ta(x,{additionalSlots:this._additionalSlots})}),_.for("upcast").elementToElement({model:"tableRow",view:"tr"}),_.for("upcast").add(M=>{M.on("element:tr",(E,F)=>{F.viewItem.isEmpty&&0==F.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:Ea({asWidget:!0}),converterPriority:"high"}),_.for("dataDowncast").elementToElement({model:"paragraph",view:Ea(),converterPriority:"high"}),_.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),_.for("upcast").attributeToAttribute({model:{key:"colspan",value:Fy("colspan")},view:"colspan"}),_.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),_.for("upcast").attributeToAttribute({model:{key:"rowspan",value:Fy("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 g2(r,{order:"above"})),r.commands.add("insertTableRowBelow",new g2(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 ky(r)),r.commands.add("removeTableColumn",new Dy(r)),r.commands.add("splitTableCellVertically",new b3(r,{direction:"vertically"})),r.commands.add("splitTableCellHorizontally",new b3(r,{direction:"horizontally"})),r.commands.add("mergeTableCells",new WT(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 GT(r)),r.commands.add("setTableRowHeader",new JT(r)),r.commands.add("selectTableRow",new o7(r)),r.commands.add("selectTableColumn",new Oy(r)),function $T(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.differ.getChanges();let x=!1;const M=new Set;for(const E of _){let F=null;"insert"==E.type&&"table"==E.name&&(F=E.position.nodeAfter),"insert"!=E.type&&"remove"!=E.type||"tableRow"!=E.name&&"tableCell"!=E.name||(F=E.position.findAncestor("table")),XT(E)&&(F=E.range.start.findAncestor("table")),F&&!M.has(F)&&(x=KT(F,c)||x,x=a7(F,c)||x,M.add(F))}return x}(r,m))}(c),function t9(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.differ.getChanges();let x=!1;for(const M of _)"insert"==M.type&&"table"==M.name&&(x=e9(M.position.nodeAfter,c)||x),"insert"==M.type&&"tableRow"==M.name&&(x=Ey(M.position.nodeAfter,c)||x),"insert"==M.type&&"tableCell"==M.name&&(x=ov(M.position.nodeAfter,c)||x),"remove"!=M.type&&"insert"!=M.type||!n9(M)||(x=ov(M.position.parent,c)||x);return x}(r,m))}(c),this.listenTo(c.document,"change:data",()=>{(function(M,E){const F=M.document.differ;for(const V of F.getChanges()){let W,dt=!1;if("attribute"==V.type){const Ie=V.range.start.nodeAfter;if(!Ie||!Ie.is("element","table")||"headingRows"!=V.attributeKey&&"headingColumns"!=V.attributeKey)continue;W=Ie,dt="headingRows"==V.attributeKey}else"tableRow"!=V.name&&"tableCell"!=V.name||(W=V.position.findAncestor("table"),dt="tableRow"==V.name);if(!W)continue;const Zt=W.getAttribute("headingRows")||0,ue=W.getAttribute("headingColumns")||0,Ae=new ro(W);for(const Ie of Ae){const ln=Ie.rowi9(Zt,E.mapper));for(const Zt of dt)E.reconvertItem(Zt)}}(c,r.editing)})}registerAdditionalSlot(r){this._additionalSlots.push(r)}}function Fy(m){return r=>{const c=parseInt(r.getAttribute(m));return Number.isNaN(c)||c<=0?null:c}}var qy=v(1613);No()(qy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class r9 extends oa{constructor(r){super(r);const c=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new $c,this.focusTracker=new rs,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:x,column:M}=_.target.dataset;this.items.get(10*(parseInt(x,10)-1)+(parseInt(M,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(u,_,x)=>{if(!x)return;const{row:M,column:E}=x.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:x}){const M="number"==typeof _?()=>_:_;function E(W){return dt=>{const Zt=u.find(Ie=>Ie.element===c.focusedElement),ue=u.getIndex(Zt),Ae=W(ue,u);u.get(Ae).focus(),dt.stopPropagation(),dt.preventDefault()}}function F(W,dt){return W===dt-1?0:W+1}function V(W,dt){return 0===W?dt-1:W-1}r.set("arrowright",E((W,dt)=>"rtl"===x?V(W,dt.length):F(W,dt.length))),r.set("arrowleft",E((W,dt)=>"rtl"===x?F(W,dt.length):V(W,dt.length))),r.set("arrowup",E((W,dt)=>{let Zt=W-M();return Zt<0&&(Zt=W+M()*Math.floor(dt.length/M()),Zt>dt.length-1&&(Zt-=M())),Zt})),r.set("arrowdown",E((W,dt)=>{let Zt=W+M();return Zt>dt.length-1&&(Zt=W%M()),Zt}))}({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 x=Math.floor(_/10){const x=r.commands.get("insertTable"),M=Lp(_);let E;return M.bind("isEnabled").to(x),M.buttonView.set({icon:'',label:c("Insert table"),tooltip:!0}),M.on("change:isOpen",()=>{E||(E=new r9(_),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 x=[{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"),'',x,_)}),r.ui.componentFactory.add("tableRow",_=>{const x=[{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"),'',x,_)}),r.ui.componentFactory.add("mergeTableCells",_=>{const x=[{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"),'',x,_)})}_prepareDropdown(r,c,u,_){const x=this.editor,M=Lp(_),E=this._fillDropdownWithListOptions(M,u);return M.buttonView.set({label:r,icon:c,tooltip:!0}),M.bind("isEnabled").toMany(E,"isEnabled",(...F)=>F.some(V=>V)),this.listenTo(M,"execute",F=>{x.execute(F.source.commandName),F.source instanceof ys||x.editing.view.focus()}),M}_prepareMergeSplitButtonDropdown(r,c,u,_){const x=this.editor,M=Lp(_,p4),E="mergeTableCells",F=x.commands.get(E),V=this._fillDropdownWithListOptions(M,u);return M.buttonView.set({label:r,icon:c,tooltip:!0,isEnabled:!0}),M.bind("isEnabled").toMany([F,...V],"isEnabled",(...W)=>W.some(dt=>dt)),this.listenTo(M.buttonView,"execute",()=>{x.execute(E),x.editing.view.focus()}),this.listenTo(M,"execute",W=>{x.execute(W.source.commandName),x.editing.view.focus()}),M}_fillDropdownWithListOptions(r,c){const u=this.editor,_=[],x=new ec;for(const M of c)c9(M,u,_,x);return t1(r,x),_}}function c9(m,r,c,u){if("button"===m.type||"switchbutton"===m.type){const _=m.model=new Z4(m.model),{commandName:x,bindIsOn:M}=m.model,E=r.commands.get(x);c.push(E),_.set({commandName:x}),_.bind("isEnabled").to(E),M&&_.bind("isOn").to(E,"value"),_.set({withText:!0})}u.add(m)}var r7=v(6945);No()(r7.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ua 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",(_,x)=>this._handleDeleteContent(_,x),{priority:"high"}),this.listenTo(u.document,"insertText",(_,x)=>this._handleInsertTextEvent(_,x),{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:x,last:M}=r.getColumnIndexes(c),{first:E,last:F}=r.getRowIndexes(c),V=c[0].findAncestor("table");let W=F,dt=M;if(r.isSelectionRectangular(c)){const ue={firstColumn:x,lastColumn:M,firstRow:E,lastRow:F};W=n7(V,ue),dt=Zy(V,ue)}const Zt=b6(V,{startRow:E,startColumn:x,endRow:W,endColumn:dt},u);return u.insert(Zt,_,0),_}):null}setCellSelection(r,c){const u=this._getCellsToSelect(r,c);this.editor.model.change(_=>{_.setSelection(u.cells.map(x=>_.createRangeOn(x)),{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=as(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",(_,x,M)=>{const E=M.writer;!function(W){for(const dt of c)W.removeClass("ck-editor__editable_selected",dt);c.clear()}(E);const F=this.getSelectedTableCells();if(!F)return;for(const W of F){const dt=M.mapper.toViewElement(W);E.addClass("ck-editor__editable_selected",dt),c.add(dt)}const V=M.mapper.toViewElement(F[F.length-1]);E.setSelection(V,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),x=r.model.schema.getNearestSelectionRange(_);u.setSelection(x)})}})}_handleDeleteContent(r,c){const u=this.editor.plugins.get(s1),_=c[0],x=c[1],M=this.editor.model,E=!x||"backward"==x.direction,F=u.getSelectedTableCells(_);F.length&&(r.stop(),M.change(V=>{const W=F[E?F.length-1:0];M.change(Zt=>{for(const ue of F)M.deleteContent(Zt.createSelection(ue,"in"))});const dt=M.schema.getNearestSelectionRange(V.createPositionAt(W,0));_.is("documentSelection")?V.setSelection(dt):_.setTo(dt)}))}_handleInsertTextEvent(r,c){const u=this.editor,_=this.getSelectedTableCells();if(!_)return;const x=u.editing.view,M=u.editing.mapper,E=_.map(F=>x.createRangeOn(M.toViewElement(F)));c.selection=x.createSelection(E)}_getCellsToSelect(r,c){const u=this.editor.plugins.get("TableUtils"),_=u.getCellLocation(r),x=u.getCellLocation(c),M=Math.min(_.row,x.row),E=Math.max(_.row,x.row),F=Math.min(_.column,x.column),V=Math.max(_.column,x.column),W=new Array(E-M+1).fill(null).map(()=>[]),dt={startRow:M,endRow:E,startColumn:F,endColumn:V};for(const{row:Ae,cell:Ie}of new ro(r.findAncestor("table"),dt))W[Ae-M].push(Ie);const Zt=x.row<_.row,ue=x.column<_.column;return Zt&&W.reverse(),ue&&W.forEach(Ae=>Ae.reverse()),{cells:W.flat(),backward:Zt||ue}}}class ya extends lo{static get pluginName(){return"TableClipboard"}static get requires(){return[Ua,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,[_,x])=>this._onInsertContent(u,_,x),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(r,c){const u=this.editor.plugins.get(Ua);if(!u.getSelectedTableCells()||"cut"==r.name&&!this.editor.model.canEditAt(this.editor.model.document.selection))return;c.preventDefault(),r.stop();const x=this.editor.editing.view.document,M=this.editor.data.toView(u.getSelectionAsFragment());x.fire("clipboardOutput",{dataTransfer:c.dataTransfer,content:M,method:r.name})}_onInsertContent(r,c,u){if(u&&!u.is("documentSelection"))return;const _=this.editor.model,x=this.editor.plugins.get(s1);let M=this.getTableIfOnlyTableInContent(c,_);if(!M)return;const E=x.getSelectionAffectedTableCells(_.document.selection);E.length?(r.stop(),_.change(F=>{const V={width:x.getColumns(M),height:x.getRows(M)},W=function(ln,Dn,di,Ri){const Go=ln[0].findAncestor("table"),Da=Ri.getColumnIndexes(ln),ws=Ri.getRowIndexes(ln),Kr={firstColumn:Da.first,lastColumn:Da.last,firstRow:ws.first,lastRow:ws.last},Il=1===ln.length;return Il&&(Kr.lastRow+=Dn.height-1,Kr.lastColumn+=Dn.width-1,function(fl,w6,b2,Rp){const wf=Rp.getColumns(fl),v2=Rp.getRows(fl);b2>wf&&Rp.insertColumns(fl,{at:wf,columns:b2-wf}),w6>v2&&Rp.insertRows(fl,{at:v2,rows:w6-v2})}(Go,Kr.lastRow+1,Kr.lastColumn+1,Ri)),Il||!Ri.isSelectionRectangular(ln)?function(fl,w6,b2){const{firstRow:Rp,lastRow:wf,firstColumn:v2,lastColumn:C3}=w6,nT={first:Rp,last:wf},_7={first:v2,last:C3};s7(fl,v2,nT,b2),s7(fl,C3+1,nT,b2),or(fl,Rp,_7,b2),or(fl,wf+1,_7,b2,Rp)}(Go,Kr,di):(Kr.lastRow=n7(Go,Kr),Kr.lastColumn=Zy(Go,Kr)),Kr}(E,V,F,x),Zt=W.lastColumn-W.firstColumn+1,ue={startRow:0,startColumn:0,endRow:Math.min(W.lastRow-W.firstRow+1,V.height)-1,endColumn:Math.min(Zt,V.width)-1};M=b6(M,ue,F);const Ae=E[0].findAncestor("table"),Ie=this._replaceSelectedCellsWithPasted(M,V,Ae,W,F);if(this.editor.plugins.get("TableSelection").isEnabled){const ln=x.sortRanges(Ie.map(Dn=>F.createRangeOn(Dn)));F.setSelection(ln)}else F.setSelection(Ie[0],0)})):e7(M,x)}_replaceSelectedCellsWithPasted(r,c,u,_,x){const{width:M,height:E}=c,F=function(ln,Dn,di){const Ri=new Array(di).fill(null).map(()=>new Array(Dn).fill(null));for(const{column:Go,row:Da,cell:ws}of new ro(ln))Ri[Da][Go]=ws;return Ri}(r,M,E),V=[...new ro(u,{startRow:_.firstRow,endRow:_.lastRow,startColumn:_.firstColumn,endColumn:_.lastColumn,includeAllSlots:!0})],W=[];let dt;for(const ln of V){const{row:Dn,column:di}=ln;di===_.firstColumn&&(dt=ln.getPositionBefore());const Da=F[(Dn-_.firstRow)%E][(di-_.firstColumn)%M],ws=Da?x.cloneElement(Da):null,Kr=this._replaceTableSlotCell(ln,ws,dt,x);Kr&&(v3(Kr,Dn,di,_.lastRow,_.lastColumn,x),W.push(Kr),dt=x.createPositionAfter(Kr))}const Zt=parseInt(u.getAttribute("headingRows")||"0"),ue=parseInt(u.getAttribute("headingColumns")||"0"),Ie=_.firstColumns8(x,M,c)).map(({cell:x})=>x6(x,r,u))}function s7(m,r,c,u){if(!(r<1))return C6(m,r).filter(({row:_,cellHeight:x})=>s8(_,x,c)).map(({cell:_,column:x})=>A6(_,x,r,u))}function s8(m,r,c){const u=m+r-1,{first:_,last:x}=c;return m>=_&&m<=x||m<_&&u>=_}class u9 extends lo{static get pluginName(){return"TableKeyboard"}static get requires(){return[Ua,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(x=>{x.setSelection(x.createRangeIn(_.getChild(0).getChild(0)))}))}_handleTab(r,c){const u=this.editor,_=this.editor.plugins.get(s1),x=this.editor.plugins.get("TableSelection"),E=!c.shiftKey;let F=_.getTableCellsContainingSelection(u.model.document.selection)[0];if(F||(F=x.getFocusCell()),!F)return;c.preventDefault(),c.stopPropagation(),r.stop();const V=F.parent,W=V.parent,dt=W.getChildIndex(V),Zt=V.getChildIndex(F),ue=0===Zt;if(!E&&ue&&0===dt)return void u.model.change(Dn=>{Dn.setSelection(Dn.createRangeOn(W))});const Ae=Zt===V.childCount-1,Ie=dt===_.getRows(W)-1;if(E&&Ie&&Ae&&(u.execute("insertTableRowBelow"),dt===_.getRows(W)-1))return void u.model.change(Dn=>{Dn.setSelection(Dn.createRangeOn(W))});let ln;if(E&&Ae)ln=W.getChild(dt+1).getChild(0);else if(!E&&ue){const Dn=W.getChild(dt-1);ln=Dn.getChild(Dn.childCount-1)}else ln=V.getChild(Zt+(E?1:-1));u.model.change(Dn=>{Dn.setSelection(Dn.createRangeIn(ln))})}_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"),x=this.editor.model,M=x.document.selection,E=["right","down"].includes(r),F=u.getSelectedTableCells(M);if(F.length){let W;return W=c?_.getFocusCell():E?F[F.length-1]:F[0],this._navigateFromCellInDirection(W,r,c),!0}const V=M.focus.findAncestor("tableCell");if(!V)return!1;if(!M.isCollapsed)if(c){if(M.isBackward==E&&!M.containsEntireContent(V))return!1}else{const W=M.getSelectedElement();if(!W||!x.schema.isObject(W))return!1}return!!this._isSelectionAtCellEdge(M,V,E)&&(this._navigateFromCellInDirection(V,r,c),!0)}_isSelectionAtCellEdge(r,c,u){const _=this.editor.model,x=this.editor.model.schema,M=u?r.getLastPosition():r.getFirstPosition();if(!x.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,x=r.findAncestor("table"),M=[...new ro(x,{includeAllSlots:!0})],{row:E,column:F}=M[M.length-1],V=M.find(({cell:Ie})=>Ie==r);let{row:W,column:dt}=V;switch(c){case"left":dt--;break;case"up":W--;break;case"right":dt+=V.cellWidth;break;case"down":W+=V.cellHeight}if(W<0||W>E||dt<0&&W<=0||dt>F&&W>=E)return void _.change(Ie=>{Ie.setSelection(Ie.createRangeOn(x))});dt<0?(dt=u?0:F,W--):dt>F&&(dt=u?F:0,W++);const Zt=M.find(Ie=>Ie.row==W&&Ie.column==dt).cell,ue=["right","down"].includes(c),Ae=this.editor.plugins.get("TableSelection");if(u&&Ae.isEnabled){const Ie=Ae.getAnchorCell()||r;Ae.setCellSelection(Ie,Zt)}else{const Ie=_.createPositionAt(Zt,ue?0:"end");_.change(ln=>{ln.setSelection(Ie)})}}}class Ry extends Wu{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(r){this.fire(r.type,r)}}class d9 extends lo{static get pluginName(){return"TableMouse"}static get requires(){return[Ua,s1]}init(){this.editor.editing.view.addObserver(Ry),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const r=this.editor,c=r.plugins.get(s1);let u=!1;const _=r.plugins.get(Ua);this.listenTo(r.editing.view.document,"mousedown",(x,M)=>{const E=r.model.document.selection;if(!this.isEnabled||!_.isEnabled||!M.domEvent.shiftKey)return;const F=_.getAnchorCell()||c.getTableCellsContainingSelection(E)[0];if(!F)return;const V=this._getModelTableCellFromDomEvent(M);V&&Hy(F,V)&&(u=!0,_.setCellSelection(F,V),M.preventDefault())}),this.listenTo(r.editing.view.document,"mouseup",()=>{u=!1}),this.listenTo(r.editing.view.document,"selectionChange",x=>{u&&x.stop()},{priority:"highest"})}_enableMouseDragSelection(){const r=this.editor;let c,u,_=!1,x=!1;const M=r.plugins.get(Ua);this.listenTo(r.editing.view.document,"mousedown",(E,F)=>{this.isEnabled&&M.isEnabled&&(F.domEvent.shiftKey||F.domEvent.ctrlKey||F.domEvent.altKey||(c=this._getModelTableCellFromDomEvent(F)))}),this.listenTo(r.editing.view.document,"mousemove",(E,F)=>{if(!F.domEvent.buttons||!c)return;const V=this._getModelTableCellFromDomEvent(F);V&&Hy(c,V)&&(u=V,_||u==c||(_=!0)),_&&(x=!0,M.setCellSelection(c,u),F.preventDefault())}),this.listenTo(r.editing.view.document,"mouseup",()=>{_=!1,x=!1,c=null,u=null}),this.listenTo(r.editing.view.document,"selectionChange",E=>{x&&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 Hy(m,r){return m.parent.parent==r.parent.parent}var c7=v(6306);function m9(m){const r=m.getSelectedElement();return r&&l7(r)?r:null}function zy(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)}No()(c7.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var c8=v(7368);No()(c8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Yy=v(9247);No()(Yy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Vy=v(4070);No()(Vy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Jy=v(6237);No()(Jy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Gy=v(5087);No()(Gy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Qy=v(7341);No()(Qy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var av=v(2128);No()(av.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var $y=v(4101);No()($y.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Tf=Object.defineProperty,u7=Object.getOwnPropertySymbols,T6=Object.prototype.hasOwnProperty,v9=Object.prototype.propertyIsEnumerable,Ky=(m,r,c)=>r in m?Tf(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Xy=(m,r)=>{for(var c in r||(r={}))T6.call(r,c)&&Ky(m,c,r[c]);if(u7)for(var c of u7(r))v9.call(r,c)&&Ky(m,c,r[c]);return m};const x9={autoRefresh:!0};class d7 extends(Ue()){constructor(r,c={}){if(super(),!r)throw new nt("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((_,x)=>{const M=new XMLHttpRequest;M.open("GET",u),M.addEventListener("load",()=>{const E=M.status,F=M.response;return E<200||E>299?x(new nt("token-cannot-download-new-token",null)):_(F)}),M.addEventListener("error",()=>x(new Error("Network Error"))),M.addEventListener("abort",()=>x(new Error("Abort"))),M.send()});var u},this._options=Xy(Xy({},x9),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 nt("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 d7(r,c).init()}}const p7=/^data:(\S*?);base64,/;class C9 extends(Oe()){constructor(r,c,u){if(super(),!r)throw new nt("fileuploader-missing-file",null);if(!c)throw new nt("fileuploader-missing-token",null);if(!u)throw new nt("fileuploader-missing-api-address",null);this.file=function(_){if("string"!=typeof _)return!1;const x=_.match(p7);return!(!x||!x.length)}(r)?function(_,x=512){try{const M=_.match(p7)[1],E=atob(_.replace(p7,"")),F=[];for(let V=0;Vr(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 x=c.status,M=c.response;return x<200||x>299?_(M.message?new nt("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 tT{constructor(r,c){if(!r)throw new nt("uploadgateway-missing-token",null);if(!c)throw new nt("uploadgateway-missing-api-address",null);this._token=r,this._apiAddress=c}upload(r){return new C9(r,this._token,this._apiAddress)}}class A9 extends w_{static get pluginName(){return"CloudServicesCore"}createToken(r,c){return new d7(r,c)}createUploadGateway(r,c){return new tT(r,c)}}var eT=(m,r,c)=>new Promise((u,_)=>{var x=F=>{try{E(c.next(F))}catch(V){_(V)}},M=F=>{try{E(c.throw(F))}catch(V){_(V)}},E=F=>F.done?u(F.value):Promise.resolve(F.value).then(x,M);E((c=c.apply(m,r)).next())});class m7 extends Y0{}m7.builtinPlugins=[class extends lo{static get requires(){return[yx,Tm,J8,N8,Ya,Lx]}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 X8(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")&&Fp(this.editor,this,/^[*-]\s$/,"bulletedList"),m.get("numberedList")&&Fp(this.editor,this,/^1[.|)]\s$/,"numberedList"),m.get("todoList")&&Fp(this.editor,this,/^\[\s?\]\s$/,"todoList"),m.get("checkTodoList")&&Fp(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=Vh(this.editor,"bold");f2(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,r),f2(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,r)}if(m.get("italic")){const r=Vh(this.editor,"italic");f2(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,r),f2(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,r)}if(m.get("code")){const r=Vh(this.editor,"code");f2(this.editor,this,/(`)([^`]+)(`)$/g,r)}if(m.get("strikethrough")){const r=Vh(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$`);Fp(this.editor,this,u,()=>{if(!m.isEnabled||m.value===r)return!1;this.editor.execute("heading",{value:r})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&Fp(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const m=this.editor,r=m.model.document.selection;m.commands.get("codeBlock")&&Fp(m,this,/^```$/,()=>{if(r.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&Fp(this.editor,this,/^---$/,"horizontalLine")}},class extends lo{static get requires(){return[J5,Q5]}static get pluginName(){return"Bold"}},class extends lo{static get requires(){return[iy,B4]}static get pluginName(){return"Italic"}},class extends lo{static get requires(){return[$5,Fx]}static get pluginName(){return"BlockQuote"}},class extends lo{static get pluginName(){return"CKBox"}static get requires(){return[X5,qx]}},class extends lo{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",Vx,Yx]}},class extends w_{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[A9]}init(){return eT(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 eT(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 nt("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[sA,"ImageUpload"]}init(){const m=this.editor;m.plugins.has("ImageBlockEditing")||m.plugins.has("ImageInlineEditing")||Tt("easy-image-image-feature-missing",m)}},class extends lo{static get requires(){return[ab,Gx]}static get pluginName(){return"Heading"}},class extends lo{static get requires(){return[tC,hA]}static get pluginName(){return"Image"}},class extends lo{static get requires(){return[gA,hb]}static get pluginName(){return"ImageCaption"}},class extends lo{static get requires(){return[fC,sy]}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(x=>Wt(x)?x.name:x)),getRelatedElement:x=>u.getClosestSelectedImageWidget(x)})}},class extends lo{static get pluginName(){return"ImageUpload"}static get requires(){return[Af,bb,xA]}},class extends lo{static get pluginName(){return"Indent"}static get requires(){return[r6,s3]}},class extends lo{static get requires(){return[zb,FA,d6]}static get pluginName(){return"Link"}},class extends lo{static get requires(){return[tv,RA]}static get pluginName(){return"List"}},class extends lo{static get requires(){return[nv,$A,WA,V0]}static get pluginName(){return"MediaEmbed"}},ib,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 j(c)),u.push(new Ut(c)),r.on("inputTransformation",(_,x)=>{if(x._isTransformedWithPasteFromOffice||m.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const M=x.dataTransfer.getData("text/html"),E=u.find(F=>F.isActive(M));E&&(x._parsedData||(x._parsedData=function be(m,r){const c=new DOMParser,u=Ht(Ht(function(F){const V="",dt=F.indexOf(V);if(dt<0)return F;const Zt=F.indexOf("",dt+V.length);return F.substring(0,dt+V.length)+(Zt>=0?F.substring(Zt):"")}(m=m.replace(//)>-1||t[D].search(/\]>/)>-1||t[D].search(/!DOCTYPE/)>-1)&&(C=!1)):t[D].search(/-->/)>-1||t[D].search(/\]>/)>-1?(k+=t[D],C=!1):/^<\w/.exec(t[D-1])&&/^<\/\w/.exec(t[D])&&/^<[\w:\-\.\,]+/.exec(t[D-1])==/^<\/[\w:\-\.\,]+/.exec(t[D])[0].replace("/","")?(k+=t[D],C||U--):t[D].search(/<\w/)>-1&&-1==t[D].search(/<\//)&&-1==t[D].search(/\/>/)?k=k+=C?t[D]:P[U++]+t[D]:t[D].search(/<\w/)>-1&&t[D].search(/<\//)>-1?k=k+=C?t[D]:P[U]+t[D]:t[D].search(/<\//)>-1?k=k+=C?t[D]:P[--U]+t[D]:t[D].search(/\/>/)>-1?k=k+=C?t[D]:P[U]+t[D]:t[D].search(/<\?/)>-1||t[D].search(/xmlns\:/)>-1||t[D].search(/xmlns\=/)>-1?k+=P[U]+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,C=0,U="",k=0,D=T?et(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,}\)/,")")},ot.exports=new b},67824:(ot,et,b)=>{"use strict";function d(p){for(var v in p)et.hasOwnProperty(v)||(et[v]=p[v])}Object.defineProperty(et,"__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(ot,et,b){"use strict";var t,d=this&&this.__extends||(t=function(A,C){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,k){U.__proto__=k}||function(U,k){for(var D in k)k.hasOwnProperty(D)&&(U[D]=k[D])})(A,C)},function(A,C){function U(){this.constructor=A}t(A,C),A.prototype=null===C?Object.create(C):(U.prototype=C.prototype,new U)});Object.defineProperty(et,"__esModule",{value:!0});var p=b(15675),v=function(t){function A(C){var U=t.call(this)||this,D=C;return D.trigger&&(U.trigger=D.trigger),D.kick&&(U.kick=D.kick),D.drag&&(U.drag=D.drag),D.on&&(U.on=D.on),U.dragstart=U.dragStart=p.Layout.dragStart,U.dragend=U.dragEnd=p.Layout.dragEnd,U}return d(A,t),A.prototype.trigger=function(C){},A.prototype.kick=function(){},A.prototype.drag=function(){},A.prototype.on=function(C,U){return this},A}(p.Layout);et.LayoutAdaptor=v,et.adaptor=function T(t){return new v(t)}},83292:(ot,et,b)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=b(15675),p=b(76767);et.gridify=function v(A,C,U,k){A.cola.start(0,0,0,10,!1);var D=function T(A,C,U,k){A.forEach(function(P){P.routerNode={name:P.name,bounds:P.bounds.inflate(-U)}}),C.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(C).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}},U-k)}(A.cola.nodes(),A.cola.groups(),U,k);return D.routeEdges(A.powerGraph.powerEdges,C,function(P){return P.source.routerNode.id},function(P){return P.target.routerNode.id})},et.powerGraphGridLayout=function t(A,C,U){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=U})});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(K){return P.push({source:G,target:K.index})}),typeof z.groups<"u"&&z.groups.forEach(function(K){return P.push({source:G,target:K.id+D})})}),k.powerEdges.forEach(function(z){P.push({source:z.source.index,target:z.target.index})}),(new d.Layout).size(C).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(C).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=U})}).start(50,0,100,0,!1),powerGraph:k}}},26243:(ot,et,b)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=b(49346),p=b(22487);et.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(ot,et,b){"use strict";var t,d=this&&this.__extends||(t=function(A,C){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,k){U.__proto__=k}||function(U,k){for(var D in k)k.hasOwnProperty(D)&&(U[D]=k[D])})(A,C)},function(A,C){function U(){this.constructor=A}t(A,C),A.prototype=null===C?Object.create(C):(U.prototype=C.prototype,new U)});Object.defineProperty(et,"__esModule",{value:!0});var p=b(15675),v=function(t){function A(){var C=t.call(this)||this;C.event=d3.dispatch(p.EventType[p.EventType.start],p.EventType[p.EventType.tick],p.EventType[p.EventType.end]);var U=C;return C.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),U.resume()}).on("dragend.d3adaptor",p.Layout.dragEnd);if(!arguments.length)return D;this.call(D)},C}return d(A,t),A.prototype.trigger=function(C){var U={type:p.EventType[C.type],alpha:C.alpha,stress:C.stress};this.event[U.type](U)},A.prototype.kick=function(){var C=this;d3.timer(function(){return t.prototype.tick.call(C)})},A.prototype.on=function(C,U){return this.event.on("string"==typeof C?C:p.EventType[C],U),this},A}(p.Layout);et.D3StyleLayoutAdaptor=v,et.d3adaptor=function T(){return new v}},22487:function(ot,et,b){"use strict";var T,d=this&&this.__extends||(T=function(t,A){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,U){C.__proto__=U}||function(C,U){for(var k in U)U.hasOwnProperty(k)&&(C[k]=U[k])})(t,A)},function(t,A){function C(){this.constructor=t}T(t,A),t.prototype=null===A?Object.create(A):(C.prototype=A.prototype,new C)});Object.defineProperty(et,"__esModule",{value:!0});var p=b(15675),v=function(T){function t(A){var C=T.call(this)||this;C.d3Context=A,C.event=A.dispatch(p.EventType[p.EventType.start],p.EventType[p.EventType.tick],p.EventType[p.EventType.end]);var U=C;return C.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),U.resume()}).on("end.d3adaptor",p.Layout.dragEnd);if(!arguments.length)return D;arguments[0].call(D)},C}return d(t,T),t.prototype.trigger=function(A){var C={type:p.EventType[A.type],alpha:A.alpha,stress:A.stress};this.event.call(C.type,C)},t.prototype.kick=function(){var A=this,C=this.d3Context.timer(function(){return T.prototype.tick.call(A)&&C.stop()})},t.prototype.on=function(A,C){return this.event.on("string"==typeof A?A:p.EventType[A],C),this},t}(p.Layout);et.D3StyleLayoutAdaptor=v},91786:(ot,et)=>{"use strict";Object.defineProperty(et,"__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}();et.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 C=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,U=C;U--;)for(k=C;--k>U;){var D=t[U][k];D>0&&D1e-9)break;var lt=this.offsetDir();for(C=0;C1&&bt>Pt||!isFinite(Pt)){for(C=0;C1&&(Dt=1);var zt=Pt*Pt,Vt=2*Dt*(bt-Pt)/(zt*bt),nt=bt*bt*bt,Tt=2*-Dt/(zt*nt);for(isFinite(Vt)||console.log(Vt),C=0;C0?se-(xe+1)*ft:se-(xe-1)*ft)&&at<=At&&(this.scaleSnapByMaxH?(this.g[C][I]+=P*Bt*at,this.H[C][I][I]+=P*Bt):(this.g[C][I]+=Bt*at,this.H[C][I][I]+=Bt))}this.locks.isEmpty()||this.locks.apply(function(qe,$e){for(C=0;C0;)for(var U=t;U-- >0;)A(C,U)},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 C=this.computeStepSize(this.g);if(this.stepAndProject(T,t,this.g,C),this.project){this.matrixApply(function(k,D){return A.e[k][D]=T[k][D]-t[k][D]});var U=this.computeStepSize(this.e);U=Math.max(.2,Math.min(U,1)),this.stepAndProject(T,t,this.e,U)}},v.prototype.run=function(T){for(var t=Number.MAX_VALUE,A=!1;!A&&T-- >0;){var C=this.rungeKutta();A=Math.abs(t/C-1)>16)/this.range},v.prototype.getNextBetween=function(T,t){return T+this.getNext()*(t-T)},v}();et.PseudoRandom=p},30225:function(ot,et,b){"use strict";var ve,d=this&&this.__extends||(ve=function(xe,Oe){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,$e){qe.__proto__=$e}||function(qe,$e){for(var Xt in $e)$e.hasOwnProperty(Xt)&&(qe[Xt]=$e[Xt])})(xe,Oe)},function(xe,Oe){function qe(){this.constructor=xe}ve(xe,Oe),xe.prototype=null===Oe?Object.create(Oe):(qe.prototype=Oe.prototype,new qe)});Object.defineProperty(et,"__esModule",{value:!0});var p=b(4068),v=function ve(){};et.Point=v;var T=function ve(xe,Oe,qe,$e){this.x1=xe,this.y1=Oe,this.x2=qe,this.y2=$e};et.LineSegment=T;var t=function(ve){function xe(){return null!==ve&&ve.apply(this,arguments)||this}return d(xe,ve),xe}(v);function A(ve,xe,Oe){return(xe.x-ve.x)*(Oe.y-ve.y)-(Oe.x-ve.x)*(xe.y-ve.y)}function C(ve,xe,Oe){return A(ve,xe,Oe)>0}function U(ve,xe,Oe){return A(ve,xe,Oe)<0}function z(ve,xe){var Oe=xe.slice(0);return Oe.push(xe[0]),{rtan:G(ve,Oe),ltan:K(ve,Oe)}}function G(ve,xe){var qe,$e,Xt,ae,Oe=xe.length-1;if(U(ve,xe[1],xe[0])&&!C(ve,xe[Oe-1],xe[0]))return 0;for(qe=0,$e=Oe;;){if($e-qe==1)return C(ve,xe[qe],xe[$e])?qe:$e;if((ae=U(ve,xe[(Xt=Math.floor((qe+$e)/2))+1],xe[Xt]))&&!C(ve,xe[Xt-1],xe[Xt]))return Xt;C(ve,xe[qe+1],xe[qe])?ae||C(ve,xe[qe],xe[Xt])?$e=Xt:qe=Xt:ae&&U(ve,xe[qe],xe[Xt])?$e=Xt:qe=Xt}}function K(ve,xe){var qe,$e,Xt,ae,Oe=xe.length-1;if(C(ve,xe[Oe-1],xe[0])&&!U(ve,xe[1],xe[0]))return 0;for(qe=0,$e=Oe;;){if($e-qe==1)return U(ve,xe[qe],xe[$e])?qe:$e;if(ae=U(ve,xe[(Xt=Math.floor((qe+$e)/2))+1],xe[Xt]),C(ve,xe[Xt-1],xe[Xt])&&!ae)return Xt;U(ve,xe[qe+1],xe[qe])?ae?U(ve,xe[qe],xe[Xt])?$e=Xt:qe=Xt:$e=Xt:ae?qe=Xt:C(ve,xe[qe],xe[Xt])?$e=Xt:qe=Xt}}function at(ve,xe,Oe,qe,$e,Xt){var we,ae;ae=qe(ve[we=Oe(xe[0],ve)],xe);for(var Kt=!1;!Kt;){for(Kt=!0;we===ve.length-1&&(we=0),!$e(xe[ae],ve[we],ve[we+1]);)++we;for(;0===ae&&(ae=xe.length-1),!Xt(ve[we],xe[ae],xe[ae-1]);)--ae,Kt=!1}return{t1:we,t2:ae}}function bt(ve,xe){return at(ve,xe,G,K,C,U)}et.PolyPoint=t,et.isLeft=A,et.ConvexHull=function k(ve){var qe,xe=ve.slice(0).sort(function(Pe,on){return Pe.x!==on.x?on.x-Pe.x:on.y-Pe.y}),Oe=ve.length,Xt=xe[0].x;for(qe=1;qe=0&&xe[qe].x===Wt;qe--);for(Kt=qe+1,qe=we;++qe<=Kt;)if(!(A(xe[0],xe[Kt],xe[qe])>=0&&qe1&&!(A(ae[ae.length-2],ae[ae.length-1],xe[qe])>0);)ae.length-=1;0!=qe&&ae.push(xe[qe])}de!=Kt&&ae.push(xe[de]);var re=ae.length;for(qe=Kt;--qe>=we;)if(!(A(xe[de],xe[we],xe[qe])>=0&&qe>we)){for(;ae.length>re&&!(A(ae[ae.length-2],ae[ae.length-1],xe[qe])>0);)ae.length-=1;0!=qe&&ae.push(xe[qe])}}return ae},et.clockwiseRadialSweep=function D(ve,xe,Oe){xe.slice(0).sort(function(qe,$e){return Math.atan2(qe.y-ve.y,qe.x-ve.x)-Math.atan2($e.y-ve.y,$e.x-ve.x)}).forEach(Oe)},et.tangent_PolyPolyC=at,et.LRtangent_PolyPolyC=function lt(ve,xe){var Oe=bt(xe,ve);return{t1:Oe.t2,t2:Oe.t1}},et.RLtangent_PolyPolyC=bt,et.LLtangent_PolyPolyC=function Pt(ve,xe){return at(ve,xe,K,K,U,U)},et.RRtangent_PolyPolyC=function Dt(ve,xe){return at(ve,xe,G,G,C,C)};var zt=function ve(xe,Oe){this.t1=xe,this.t2=Oe};et.BiTangent=zt;var Vt=function ve(){};et.BiTangents=Vt;var nt=function(ve){function xe(){return null!==ve&&ve.apply(this,arguments)||this}return d(xe,ve),xe}(v);et.TVGPoint=nt;var Tt=function ve(xe,Oe,qe,$e){this.id=xe,this.polyid=Oe,this.polyvertid=qe,this.p=$e,$e.vv=this};et.VisibilityVertex=Tt;var At=function(){function ve(xe,Oe){this.source=xe,this.target=Oe}return ve.prototype.length=function(){var xe=this.source.p.x-this.target.p.x,Oe=this.source.p.y-this.target.p.y;return Math.sqrt(xe*xe+Oe*Oe)},ve}();et.VisibilityEdge=At;var ft=function(){function ve(xe,Oe){if(this.P=xe,this.V=[],this.E=[],Oe)this.V=Oe.V.slice(0),this.E=Oe.E.slice(0);else{for(var qe=xe.length,$e=0;$e0&&this.E.push(new At(Xt[we-1].vv,Kt))}Xt.length>1&&this.E.push(new At(Xt[0].vv,Xt[Xt.length-1].vv))}for($e=0;$e0)return!0;return!1},ve}();function Et(ve,xe){for(var Oe=[],qe=1,$e=xe.length;qe<$e;++qe){var Xt=p.Rectangle.lineIntersection(ve.x1,ve.y1,ve.x2,ve.y2,xe[qe-1].x,xe[qe-1].y,xe[qe].x,xe[qe].y);Xt&&Oe.push(Xt)}return Oe}function Bt(ve,xe){for(var Oe=ve.length-1,qe=xe.length-1,$e=new Vt,Xt=0;Xt=0&&_n>=0&&ye<0&&gn>=0&&Ue>=0&&un<0?$e.ll=new zt(Xt,we):on<=0&&_n<=0&&ye>0&&gn<=0&&Ue<=0&&un>0?$e.rr=new zt(Xt,we):on<=0&&_n>0&&ye<=0&&gn>=0&&Ue<0&&un>=0?$e.rl=new zt(Xt,we):on>=0&&_n<0&&ye>=0&&gn<=0&&Ue>0&&un<=0&&($e.lr=new zt(Xt,we))}return $e}function se(ve,xe){return!ve.every(function(Oe){return!function It(ve,xe){for(var Oe=1,qe=xe.length;Oe0)return!0}return!1}},76767:(ot,et,b)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=b(4068),p=b(98237),v=b(33858),T=function U(k,D,P){this.id=k,this.rect=D,this.children=P,this.leaf=typeof P>"u"||0===P.length};et.NodeWrapper=T;var t=function U(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};et.Vert=t;var A=function(){function U(k,D){this.s=k,this.t=D;var P=U.findMatch(k,D),I=D.slice(0).reverse(),z=U.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 U.findMatch=function(k,D){for(var P=k.length,I=D.length,z={length:0,si:-1,ti:-1},G=new Array(P),K=0;Kz.length&&(z.length=lt,z.si=K-lt+1,z.ti=at-lt+1)}else G[K][at]=0}return z},U.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},U}();et.LongestCommonSubsequence=A;var C=function(){function U(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(nt,Tt){return new T(Tt,D.getBounds(nt),D.getChildren(nt))}),this.leaves=this.nodes.filter(function(nt){return nt.leaf}),this.groups=this.nodes.filter(function(nt){return!nt.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(nt){return nt.children.forEach(function(Tt){return I.nodes[Tt].parent=nt})}),this.root={children:[]},this.nodes.forEach(function(nt){typeof nt.parent>"u"&&(nt.parent=I.root,I.root.children.push(nt.id)),nt.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(nt,Tt){return I.getDepth(nt)-I.getDepth(Tt)}),this.backToFront.slice(0).reverse().filter(function(nt){return!nt.leaf}).forEach(function(nt){var Tt=d.Rectangle.empty();nt.children.forEach(function(At){return Tt=Tt.union(I.nodes[At].rect)}),nt.rect=Tt.inflate(I.groupPadding)});var G=this.midPoints(this.cols.map(function(nt){return nt.pos})),K=this.midPoints(this.rows.map(function(nt){return nt.pos})),at=G[0],lt=G[G.length-1],bt=K[0],Pt=K[K.length-1],Dt=this.rows.map(function(nt){return{x1:at,x2:lt,y1:nt.pos,y2:nt.pos}}).concat(K.map(function(nt){return{x1:at,x2:lt,y1:nt,y2:nt}})),zt=this.cols.map(function(nt){return{x1:nt.pos,x2:nt.pos,y1:bt,y2:Pt}}).concat(G.map(function(nt){return{x1:nt,x2:nt,y1:bt,y2:Pt}})),Vt=Dt.concat(zt);Vt.forEach(function(nt){return nt.verts=[]}),this.verts=[],this.edges=[],Dt.forEach(function(nt){return zt.forEach(function(Tt){var At=new t(I.verts.length,Tt.x1,nt.y1);nt.verts.push(At),Tt.verts.push(At),I.verts.push(At);for(var ft=I.backToFront.length;ft-- >0;){var Et=I.backToFront[ft],Bt=Et.rect,It=Math.abs(At.x-Bt.cx()),se=Math.abs(At.y-Bt.cy());if(It0;){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,K){return G.pos-K.pos}),D},U.prototype.getDepth=function(k){for(var D=0;k.parent!==this.root;)D++,k=k.parent;return D},U.prototype.midPoints=function(k){for(var D=k[1]-k[0],P=[k[0]-D/2],I=1;I.1)&&bt.push(Pt={pos:at[0][D],segments:[]}),Pt.segments.push(at)}return bt},U.nudgeSegs=function(k,D,P,I,z,G){var K=I.length;if(!(K<=1)){for(var at=I.map(function(Et){return new p.Variable(Et[0][k])}),lt=[],bt=0;bt=0&<.push(new p.Constraint(at[Tt],at[At],G))}new p.Solver(at,lt).solve(),at.forEach(function(Et,Bt){var It=I[Bt],se=Et.position();It[0][k]=It[1][k]=se;var Jt=P[It.edgeid];It.i>0&&(Jt[It.i-1][1][k]=se),It.iMath.PI||z<-Math.PI)&&(z=I-P),z},U.isLeft=function(k,D,P){return(D.x-k.x)*(P.y-k.y)-(D.y-k.y)*(P.x-k.x)<=0},U.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]}},U.orderEdges=function(k){for(var D=[],P=0;P=z.length||K.ti+K.length>=G.length)){D.push({l:P,r:I});continue}K.si+K.length>=z.length||K.ti+K.length>=G.length?(at=z[K.si+1],bt=z[K.si-1],lt=G[K.ti-1]):(at=z[K.si+K.length-2],lt=z[K.si+K.length],bt=G[K.ti+K.length]),U.isLeft(at,lt,bt)?D.push({l:I,r:P}):D.push({l:P,r:I})}}return U.getOrder(D)},U.makeSegments=function(k){function D(lt){return{x:lt.x,y:lt.y}}for(var I=[],z=D(k[0]),G=1;G1&&ve>1?1e3:0}).reverse().map(function(At){return P.verts[At]});return Tt.push(this.nodes[z.id].ports[0]),Tt.filter(function(At,ft){return!(ft0&&At.node===z&&Tt[ft-1].node===z)})},U.getRoutePath=function(k,D,P,I){var K,at,lt,Jt,ve,z={routepath:"M "+k[0][0].x+" "+k[0][0].y+" ",arrowpath:""};if(k.length>1)for(var G=0;G0?at-=bt/Math.abs(bt)*D:lt-=Pt/Math.abs(Pt)*D,z.routepath+="L "+at+" "+lt+" ";var Dt=k[G+1],zt=Dt[0].x,Vt=Dt[0].y;bt=Dt[1].x-zt,Pt=Dt[1].y-Vt;var ft,Et,At=U.angleBetween2Lines(K,Dt)<0?1:0;Math.abs(bt)>0?(ft=zt+bt/Math.abs(bt)*D,Et=Vt):(ft=zt,Et=Vt+Pt/Math.abs(Pt)*D);var Bt=Math.abs(ft-at),It=Math.abs(Et-lt);z.routepath+="A "+Bt+" "+It+" 0 0 "+At+" "+ft+" "+Et+" "}else{var se=[at,lt];Math.abs(bt)>0?(Jt=[at-=bt/Math.abs(bt)*I,lt+P],ve=[at,lt-P]):(Jt=[at+P,lt-=Pt/Math.abs(Pt)*I],ve=[at-P,lt]),z.routepath+="L "+at+" "+lt+" ",I>0&&(z.arrowpath="M "+se[0]+" "+se[1]+" L "+Jt[0]+" "+Jt[1]+" L "+ve[0]+" "+ve[1])}}else bt=(at=(K=k[0])[1].x)-K[0].x,Pt=(lt=K[1].y)-K[0].y,se=[at,lt],Math.abs(bt)>0?(Jt=[at-=bt/Math.abs(bt)*I,lt+P],ve=[at,lt-P]):(Jt=[at+P,lt-=Pt/Math.abs(Pt)*I],ve=[at-P,lt]),z.routepath+="L "+at+" "+lt+" ",I>0&&(z.arrowpath="M "+se[0]+" "+se[1]+" L "+Jt[0]+" "+Jt[1]+" L "+ve[0]+" "+ve[1]);return z},U}();et.GridRouter=C},30345:(ot,et)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var b_GOLDEN_SECTION=(1+Math.sqrt(5))/2;et.applyPacking=function d(v,T,t,G,z,U){void 0===z&&(z=1),void 0===U&&(U=!0);var P=T,I=t,K=(z=typeof z<"u"?z:1,G=typeof G<"u"?G:0,0),at=0,lt=0,bt=0,Pt=[];function nt(Et,Bt){Pt=[],K=0,at=0,bt=0;for(var It=0;It=Et.height&&Pt[se].x+Pt[se].width+Et.width+10-Bt<=1e-4){It=Pt[se];break}Pt.push(Et),void 0!==It?(Et.x=It.x+It.width+10,Et.y=It.bottom,Et.space_left=Et.height,Et.bottom=Et.y,It.space_left-=Et.height+10,It.bottom+=Et.height+10):(Et.y=bt,bt+=Et.height+10,Et.x=0,Et.bottom=Et.y,Et.space_left=Et.height),Et.y+Et.height-at>-1e-4&&(at=Et.y+Et.height-0),Et.x+Et.width-K>-1e-4&&(K=Et.x+Et.width-0)}0!=v.length&&(function Dt(Et){Et.forEach(function(It){!function Bt(It){var se=Number.MAX_VALUE,Jt=Number.MAX_VALUE,ve=0,xe=0;It.array.forEach(function(Oe){var qe=typeof Oe.width<"u"?Oe.width:G,$e=typeof Oe.height<"u"?Oe.height:G;qe/=2,$e/=2,ve=Math.max(Oe.x+qe,ve),se=Math.min(Oe.x-qe,se),xe=Math.max(Oe.y+$e,xe),Jt=Math.min(Oe.y-$e,Jt)}),It.width=ve-se,It.height=xe-Jt}(It)})}(v),function Vt(Et,Bt){var It=Number.POSITIVE_INFINITY,se=0;Et.sort(function(de,Wt){return Wt.height-de.height});for(var Jt=ae=lt=Et.reduce(function(de,Wt){return de.widthlt||we>1e-4;){if(1!=$e){var ae=ve-(ve-Jt)/b_GOLDEN_SECTION;Oe=nt(Et,ae)}if(0!=$e){var Kt=Jt+(ve-Jt)/b_GOLDEN_SECTION;qe=nt(Et,Kt)}if(Xt=Math.abs(ae-Kt),we=Math.abs(Oe-qe),Oeqe?(Jt=ae,ae=Kt,Oe=qe,$e=1):(ve=Kt,Kt=ae,qe=Oe,$e=0),xe++>100)break}nt(Et,se)}(v),U&&function zt(Et){Et.forEach(function(Bt){var It={x:0,y:0};Bt.array.forEach(function(ve){It.x+=ve.x,It.y+=ve.y}),It.x/=Bt.array.length,It.y/=Bt.array.length;var Jt_x=Bt.x-(It.x-Bt.width/2)+P/2-K/2,Jt_y=Bt.y-(It.y-Bt.height/2)+I/2-at/2;Bt.array.forEach(function(ve){ve.x+=Jt_x,ve.y+=Jt_y})})}(v))},et.separateGraphs=function p(v,T){for(var t={},A={},C=[],U=0,k=0;k{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var U,P,d=b(33900),p=b(58802),v=b(91786),T=b(4068),t=b(33858),A=b(30225),C=b(30345);function k(P){return typeof P.leaves<"u"||typeof P.groups<"u"}(P=U=et.EventType||(et.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[U[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(K,[G.px,G.py]));var lt=this._descent.rungeKutta();return 0===lt?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=lt),this._lastStress=lt,this.updateNodePositions(),this.trigger({type:U.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],K=this._nodes.length;K--;)(G=this._nodes[K]).x=I[K],G.y=z[K]},P.prototype.nodes=function(I){if(!I){if(0===this._nodes.length&&this._links.length>0){var z=0;this._links.forEach(function(K){z=Math.max(z,K.source,K.target)}),this._nodes=new Array(++z);for(var G=0;G"u"&&(G.padding=1),typeof G.leaves<"u"&&G.leaves.forEach(function(K,at){"number"==typeof K&&((G.leaves[at]=z._nodes[K]).parent=G)}),typeof G.groups<"u"&&G.groups.forEach(function(K,at){"number"==typeof K&&((G.groups[at]=z._groups[K]).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:U.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(K){return I*K.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(K){return I*K.length}),this._linkLengthCalculator=function(){return p.jaccardLinkLengths(G._links,G.linkAccessor,z)},this},P.prototype.start=function(I,z,G,K,at,lt){var bt=this;void 0===I&&(I=0),void 0===z&&(z=0),void 0===G&&(G=0),void 0===K&&(K=0),void 0===at&&(at=!0),void 0===lt&&(lt=!0);var se,zt=this.nodes().length,Vt=zt+2*this._groups.length,Tt=this._canvasSize[0],At=this._canvasSize[1],ft=new Array(Vt),Et=new Array(Vt),Bt=null,It=this._avoidOverlaps;this._nodes.forEach(function(Xt,we){Xt.index=we,typeof Xt.x>"u"&&(Xt.x=Tt/2,Xt.y=At/2),ft[we]=Xt.x,Et[we]=Xt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?se=this._distanceMatrix:(se=new t.Calculator(Vt,this._links,P.getSourceIndex,P.getTargetIndex,function(Xt){return bt.getLinkLength(Xt)}).DistanceMatrix(),Bt=v.Descent.createSquareMatrix(Vt,function(){return 2}),this._links.forEach(function(Xt){"number"==typeof Xt.source&&(Xt.source=bt._nodes[Xt.source]),"number"==typeof Xt.target&&(Xt.target=bt._nodes[Xt.target])}),this._links.forEach(function(Xt){var we=P.getSourceIndex(Xt),ae=P.getTargetIndex(Xt);Bt[we][ae]=Bt[ae][we]=Xt.weight||1}));var Jt=v.Descent.createSquareMatrix(Vt,function(Xt,we){return se[Xt][we]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Pt=zt;this._groups.forEach(function(we){(function(we,ae,Kt,de){Bt[we][ae]=Bt[ae][we]=Kt,Jt[we][ae]=Jt[ae][we]=.1})(Pt,Pt+1,bt._groupCompactness),ft[Pt]=0,Et[Pt++]=0,ft[Pt]=0,Et[Pt++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var xe=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,xe=xe.concat(p.generateDirectedEdgeConstraints(zt,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new v.Descent([ft,Et],Jt),this._descent.locks.clear(),Pt=0;Pt0&&(this._descent.project=new T.Projection(this._nodes,this._groups,this._rootGroup,xe).projectFunctions()),this._descent.run(z),this.separateOverlappingComponents(Tt,At,lt),this.avoidOverlaps(It),It&&(this._nodes.forEach(function(Xt,we){Xt.x=ft[we],Xt.y=Et[we]}),this._descent.project=new T.Projection(this._nodes,this._groups,this._rootGroup,xe,!0).projectFunctions(),this._nodes.forEach(function(Xt,we){ft[we]=Xt.x,Et[we]=Xt.y})),this._descent.G=Bt,this._descent.run(G),K){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=zt,this._descent.scaleSnapByMaxH=zt!=Vt;var $e=v.Descent.createSquareMatrix(Vt,function(Xt,we){return Xt>=zt||we>=zt?Bt[Xt][we]:0});this._descent.G=$e,this._descent.run(K)}return this.updateNodePositions(),this.separateOverlappingComponents(Tt,At,lt),at?this.resume():this},P.prototype.initialLayout=function(I,z,G){if(this._groups.length>0&&I>0){var K=this._nodes.length,at=this._links.map(function(bt){return{source:bt.source.index,target:bt.target.index}}),lt=this._nodes.map(function(bt){return{index:bt.index}});this._groups.forEach(function(bt,Pt){lt.push({index:bt.index=K+Pt})}),this._groups.forEach(function(bt,Pt){typeof bt.leaves<"u"&&bt.leaves.forEach(function(Dt){return at.push({source:bt.index,target:Dt.index})}),typeof bt.groups<"u"&&bt.groups.forEach(function(Dt){return at.push({source:bt.index,target:Dt.index})})}),(new P).size(this.size()).nodes(lt).links(at).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(I,0,0,0,!1),this._nodes.forEach(function(bt){z[bt.index]=lt[bt.index].x,G[bt.index]=lt[bt.index].y})}else this._descent.run(I)},P.prototype.separateOverlappingComponents=function(I,z,G){var K=this;if(void 0===G&&(G=!0),!this._distanceMatrix&&this._handleDisconnected){var at=this._descent.x[0],lt=this._descent.x[1];this._nodes.forEach(function(Pt,Dt){Pt.x=at[Dt],Pt.y=lt[Dt]});var bt=C.separateGraphs(this._nodes,this._links);C.applyPacking(bt,I,z,this._defaultNodeSize,1,G),this._nodes.forEach(function(Pt,Dt){K._descent.x[0][Dt]=Pt.x,K._descent.x[1][Dt]=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 K=[],at=new A.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),lt={x:I.source.x,y:I.source.y},bt={x:I.target.x,y:I.target.y},Pt=at.addPoint(lt,I.source.index),Dt=at.addPoint(bt,I.target.index);at.addEdgeIfVisible(lt,bt,I.source.index,I.target.index),typeof G<"u"&&G(at);var At=new t.Calculator(at.V.length,at.E,function(Jt){return Jt.source.id},function(Jt){return Jt.target.id},function(Jt){return Jt.length()}).PathFromNodeToNode(Pt.id,Dt.id);if(1===At.length||At.length===at.V.length){var ft=T.makeEdgeBetween(I.source.innerBounds,I.target.innerBounds,z);K=[ft.sourceIntersection,ft.arrowStart]}else{for(var Et=At.length-2,Bt=at.V[At[Et]].p,It=at.V[At[0]].p,se=(K=[I.source.innerBounds.rayIntersection(Bt.x,Bt.y)],Et);se>=0;--se)K.push(at.V[At[se]].p);K.push(T.makeEdgeTo(It,I.target.innerBounds,z))}return K},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}();et.Layout=D},86461:(ot,et,b)=>{"use strict";Object.defineProperty(et,"__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}();et.Link3D=t,et.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 C=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"&&(K[Pt]=Math.random())}z.result[0][at]=K.x,z.result[1][at]=K.y,z.result[2][at]=K.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 U;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(),K=p.Descent.createSquareMatrix(I,function(Pt,Dt){return G[Pt][Dt]}),at=p.Descent.createSquareMatrix(I,function(){return 2});this.links.forEach(function(Pt){var Dt=Pt.source,zt=Pt.target;return at[Dt][zt]=at[zt][Dt]=1}),this.descent=new p.Descent(this.result,K),this.descent.threshold=.001,this.descent.G=at,this.constraints&&(this.descent.project=new v.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var lt=0;lt{"use strict";function b(U,k){var D={};for(var P in U)D[P]={};for(var P in k)D[P]={};return Object.keys(D).length}function d(U,k){var D=0;for(var P in U)typeof k[P]<"u"&&++D;return D}function v(U,k,D,P){var I=function p(U,k){var D={},P=function(I,z){typeof D[I]>"u"&&(D[I]={}),D[I][z]={}};return U.forEach(function(I){var z=k.getSourceIndex(I),G=k.getTargetIndex(I);P(z,G),P(G,z)}),D}(U,P);U.forEach(function(z){var G=I[P.getSourceIndex(z)],K=I[P.getTargetIndex(z)];P.setLength(z,1+k*D(G,K))})}function C(U,k,D){var P=[],I=0,z=[],G=[];function K(At){At.index=At.lowlink=I++,z.push(At),At.onStack=!0;for(var ft=0,Et=At.out;ft"u"?(K(Bt),At.lowlink=Math.min(At.lowlink,Bt.lowlink)):Bt.onStack&&(At.lowlink=Math.min(At.lowlink,Bt.index))}if(At.lowlink===At.index){for(var It=[];z.length&&((Bt=z.pop()).onStack=!1,It.push(Bt),Bt!==At););G.push(It.map(function(se){return se.id}))}}for(var at=0;at"u"&&K(Tt)}return G}Object.defineProperty(et,"__esModule",{value:!0}),et.symmetricDiffLinkLengths=function T(U,k,D){void 0===D&&(D=1),v(U,D,function(P,I){return Math.sqrt(b(P,I)-d(P,I))},k)},et.jaccardLinkLengths=function t(U,k,D){void 0===D&&(D=1),v(U,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)},et.generateDirectedEdgeConstraints=function A(U,k,D,P){var I=C(U,k,P),z={};I.forEach(function(K,at){return K.forEach(function(lt){return z[lt]=at})});var G=[];return k.forEach(function(K){var at=P.getSourceIndex(K),lt=P.getTargetIndex(K);z[at]!==z[lt]&&G.push({axis:D,left:at,right:lt,gap:P.getMinSeparation(K)})}),G},et.stronglyConnectedComponents=C},33900:(ot,et)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var b=function k(D,P,I){this.source=D,this.target=P,this.type=I};et.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 K=0;K=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(K){var at=P.modules[K.source],lt=P.modules[K.target];D.push(new b(typeof at.gid>"u"?K.source:I[at.gid],typeof lt.gid>"u"?K.target:I[lt.gid],K.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)}})}et.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}();et.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}();et.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]),K=G.count();K>0&&(P.sets[z]=G,P.n+=K)}}),P},k}();et.LinkSets=A,et.getGroups=function U(k,D,P,I){for(var G=new d(k.length,D,P,I);G.greedyMerge(););var K=[],at=G.getGroupHierarchy(K);return K.forEach(function(lt){var bt=function(Pt){var Dt=lt[Pt];"number"==typeof Dt&&(lt[Pt]=k[Dt])};bt("source"),bt("target")}),{groups:at,powerEdges:K}}},88866:(ot,et)=>{"use strict";Object.defineProperty(et,"__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 C=this._root;null!==C;){var U=this._comparator(A,C.data);if(0===U)return C.data;C=C.get_child(U>0)}return null},t.prototype.lowerBound=function(A){return this._bound(A,this._comparator)},t.prototype.upperBound=function(A){var C=this._comparator;return this._bound(A,function U(k,D){return C(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 U,C=this.iterator();null!==(U=C.next());)A(U)},t.prototype.reach=function(A){for(var U,C=this.iterator();null!==(U=C.prev());)A(U)},t.prototype._bound=function(A,C){for(var U=this._root,k=this.iterator();null!==U;){var D=this._comparator(A,U.data);if(0===D)return k._cursor=U,k;k._ancestors.push(U),U=U.get_child(D>0)}for(var P=k._ancestors.length-1;P>=0;--P)if(C(A,(U=k._ancestors[P]).data)>0)return k._cursor=U,k._ancestors.length=P,k;return k._ancestors.length=0,k},t}();et.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 C;do{if(C=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===C)}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 C;do{if(C=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===C)}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}();et.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,C){A?this.right=C:this.left=C},t}(),T=function(t){function A(C){var U=t.call(this)||this;return U._root=null,U._comparator=C,U.size=0,U}return b(A,t),A.prototype.insert=function(C){var U=!1;if(null===this._root)this._root=new v(C),U=!0,this.size++;else{var k=new v(void 0),D=!1,P=!1,I=null,z=k,G=null,K=this._root;for(z.right=this._root;;){if(null===K?(K=new v(C),G.set_child(D,K),U=!0,this.size++):A.is_red(K.left)&&A.is_red(K.right)&&(K.red=!0,K.left.red=!1,K.right.red=!1),A.is_red(K)&&A.is_red(G)){var at=z.right===I;K===G.get_child(P)?z.set_child(at,A.single_rotate(I,!P)):z.set_child(at,A.double_rotate(I,!P))}var lt=this._comparator(K.data,C);if(0===lt)break;P=D,null!==I&&(z=I),I=G,G=K,K=K.get_child(D=lt<0)}this._root=k.right}return this._root.red=!1,U},A.prototype.remove=function(C){if(null===this._root)return!1;var U=new v(void 0),k=U;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 K=this._comparator(C,k.data);if(z=K>0,0===K&&(I=k),!A.is_red(k)&&!A.is_red(k.get_child(z)))if(A.is_red(k.get_child(!z))){var at=A.single_rotate(k,z);D.set_child(G,at),D=at}else if(!A.is_red(k.get_child(!z))){var lt=D.get_child(!G);if(null!==lt)if(A.is_red(lt.get_child(!G))||A.is_red(lt.get_child(G))){var bt=P.right===D;A.is_red(lt.get_child(G))?P.set_child(bt,A.double_rotate(D,G)):A.is_red(lt.get_child(!G))&&P.set_child(bt,A.single_rotate(D,G));var Pt=P.get_child(bt);Pt.red=!0,k.red=!0,Pt.left.red=!1,Pt.right.red=!1}else D.red=!1,lt.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=U.right,null!==this._root&&(this._root.red=!1),null!==I},A.is_red=function(C){return null!==C&&C.red},A.single_rotate=function(C,U){var k=C.get_child(!U);return C.set_child(!U,k.get_child(U)),k.set_child(U,C),C.red=!0,k.red=!1,k},A.double_rotate=function(C,U){return C.set_child(!U,A.single_rotate(C.get_child(!U),!U)),A.single_rotate(C,U)},A}(d);et.RBTree=T},4068:function(ot,et,b){"use strict";var At,d=this&&this.__extends||(At=function(ft,Et){return(At=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bt,It){Bt.__proto__=It}||function(Bt,It){for(var se in It)It.hasOwnProperty(se)&&(Bt[se]=It[se])})(ft,Et)},function(ft,Et){function Bt(){this.constructor=ft}At(ft,Et),ft.prototype=null===Et?Object.create(Et):(Bt.prototype=Et.prototype,new Bt)});Object.defineProperty(et,"__esModule",{value:!0});var p=b(98237),v=b(94655);function T(At){return At.bounds=typeof At.leaves<"u"?At.leaves.reduce(function(ft,Et){return Et.bounds.union(ft)},t.empty()):t.empty(),typeof At.groups<"u"&&(At.bounds=At.groups.reduce(function(ft,Et){return T(Et).union(ft)},At.bounds)),At.bounds=At.bounds.inflate(At.padding),At.bounds}et.computeGroupBounds=T;var t=function(){function At(ft,Et,Bt,It){this.x=ft,this.X=Et,this.y=Bt,this.Y=It}return At.empty=function(){return new At(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},At.prototype.cx=function(){return(this.x+this.X)/2},At.prototype.cy=function(){return(this.y+this.Y)/2},At.prototype.overlapX=function(ft){var Et=this.cx(),Bt=ft.cx();return Et<=Bt&&ft.x0?Bt[0]:null},At.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}]},At.lineIntersection=function(ft,Et,Bt,It,se,Jt,ve,xe){var Oe=Bt-ft,qe=ve-se,$e=It-Et,Xt=xe-Jt,we=Xt*Oe-qe*$e;if(0==we)return null;var ae=ft-se,Kt=Et-Jt,Wt=(qe*Kt-Xt*ae)/we,Pe=(Oe*Kt-$e*ae)/we;return Wt>=0&&Wt<=1&&Pe>=0&&Pe<=1?{x:ft+Wt*Oe,y:Et+Wt*$e}:null},At.prototype.inflate=function(ft){return new At(this.x-ft,this.X+ft,this.y-ft,this.Y+ft)},At}();et.Rectangle=t,et.makeEdgeBetween=function A(At,ft,Et){var Bt=At.rayIntersection(ft.cx(),ft.cy())||{x:At.cx(),y:At.cy()},It=ft.rayIntersection(At.cx(),At.cy())||{x:ft.cx(),y:ft.cy()},se=It.x-Bt.x,Jt=It.y-Bt.y,ve=Math.sqrt(se*se+Jt*Jt),xe=ve-Et;return{sourceIntersection:Bt,targetIntersection:It,arrowStart:{x:Bt.x+xe*se/ve,y:Bt.y+xe*Jt/ve}}},et.makeEdgeTo=function C(At,ft,Et){var Bt=ft.rayIntersection(At.x,At.y);Bt||(Bt={x:ft.cx(),y:ft.cy()});var It=Bt.x-At.x,se=Bt.y-At.y,Jt=Math.sqrt(It*It+se*se);return{x:Bt.x-Et*It/Jt,y:Bt.y-Et*se/Jt}};var U=function At(ft,Et,Bt){this.v=ft,this.r=Et,this.pos=Bt,this.prev=P(),this.next=P()},k=function At(ft,Et,Bt){this.isOpen=ft,this.v=Et,this.pos=Bt};function D(At,ft){return At.pos>ft.pos?1:At.pos0&&(At[Bt].insert(se),se[It].insert(At))};Et("next","prev"),Et("prev","next")}};function G(At,ft,Et,Bt){void 0===Bt&&(Bt=!1);var It=At.padding,se=typeof At.groups<"u"?At.groups.length:0,Jt=typeof At.leaves<"u"?At.leaves.length:0,ve=se?At.groups.reduce(function(_n,ye){return _n.concat(G(ye,ft,Et,!0))},[]):[],xe=(Bt?2:0)+Jt+se,Oe=new Array(xe),qe=new Array(xe),$e=0,Xt=function(_n,ye){qe[$e]=_n,Oe[$e++]=ye};if(Bt){var we=At.bounds,ae=ft.getCentre(we),Kt=ft.getSize(we)/2,de=ft.getOpen(we),Wt=ft.getClose(we),re=ae-Kt+It/2,Pe=ae+Kt-It/2;At.minVar.desiredPosition=re,Xt(ft.makeRect(de,Wt,re,It),At.minVar),At.maxVar.desiredPosition=Pe,Xt(ft.makeRect(de,Wt,Pe,It),At.maxVar)}Jt&&At.leaves.forEach(function(_n){return Xt(_n.bounds,_n.variable)}),se&&At.groups.forEach(function(_n){var ye=_n.bounds;Xt(ft.makeRect(ft.getOpen(ye),ft.getClose(ye),ft.getCentre(ye),ft.getSize(ye)),_n.minVar)});var on=K(qe,Oe,ft,Et);return se&&(Oe.forEach(function(_n){_n.cOut=[],_n.cIn=[]}),on.forEach(function(_n){_n.left.cOut.push(_n),_n.right.cIn.push(_n)}),At.groups.forEach(function(_n){var ye=(_n.padding-ft.getSize(_n.bounds))/2;_n.minVar.cIn.forEach(function(gn){return gn.gap+=ye}),_n.minVar.cOut.forEach(function(gn){gn.left=_n.maxVar,gn.gap+=ye})})),ve.concat(on)}function K(At,ft,Et,Bt){var It,se=At.length,Jt=2*se;console.assert(ft.length>=se);var ve=new Array(Jt);for(It=0;Itve[Bt]&&(ve[Bt]=xe)}Jt=ve})}},At.prototype.createAlignment=function(ft){var Et=this,Bt=this.nodes[ft.offsets[0].node].variable;this.makeFeasible(ft);var It="x"===ft.axis?this.xConstraints:this.yConstraints;ft.offsets.slice(1).forEach(function(se){It.push(new p.Constraint(Bt,Et.nodes[se.node].variable,se.offset,!0))})},At.prototype.createConstraints=function(ft){var Et=this,Bt=function(It){return typeof It.type>"u"||"separation"===It.type};this.xConstraints=ft.filter(function(It){return"x"===It.axis&&Bt(It)}).map(function(It){return Et.createSeparation(It)}),this.yConstraints=ft.filter(function(It){return"y"===It.axis&&Bt(It)}).map(function(It){return Et.createSeparation(It)}),ft.filter(function(It){return"alignment"===It.type}).forEach(function(It){return Et.createAlignment(It)})},At.prototype.setupVariablesAndBounds=function(ft,Et,Bt,It){this.nodes.forEach(function(se,Jt){se.fixed?(se.variable.weight=se.fixedWeight?se.fixedWeight:1e3,Bt[Jt]=It(se)):se.variable.weight=1;var ve=(se.width||0)/2,xe=(se.height||0)/2,Oe=ft[Jt],qe=Et[Jt];se.bounds=new t(Oe-ve,Oe+ve,qe-xe,qe+xe)})},At.prototype.xProject=function(ft,Et,Bt){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(ft,Et,ft,Bt,function(It){return It.px},this.xConstraints,Dt,function(It){return It.bounds.setXCentre(Bt[It.variable.index]=It.variable.position())},function(It){var se=Bt[It.minVar.index]=It.minVar.position(),Jt=Bt[It.maxVar.index]=It.maxVar.position(),ve=It.padding/2;It.bounds.x=se-ve,It.bounds.X=Jt+ve})},At.prototype.yProject=function(ft,Et,Bt){!this.rootGroup&&!this.yConstraints||this.project(ft,Et,Et,Bt,function(It){return It.py},this.yConstraints,zt,function(It){return It.bounds.setYCentre(Bt[It.variable.index]=It.variable.position())},function(It){var se=Bt[It.minVar.index]=It.minVar.position(),Jt=Bt[It.maxVar.index]=It.maxVar.position(),ve=It.padding/2;It.bounds.y=se-ve,It.bounds.Y=Jt+ve})},At.prototype.projectFunctions=function(){var ft=this;return[function(Et,Bt,It){return ft.xProject(Et,Bt,It)},function(Et,Bt,It){return ft.yProject(Et,Bt,It)}]},At.prototype.project=function(ft,Et,Bt,It,se,Jt,ve,xe,Oe){this.setupVariablesAndBounds(ft,Et,It,se),this.rootGroup&&this.avoidOverlaps&&(T(this.rootGroup),Jt=Jt.concat(ve(this.rootGroup))),this.solve(this.variables,Jt,Bt,It),this.nodes.forEach(xe),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(Oe),T(this.rootGroup))},At.prototype.solve=function(ft,Et,Bt,It){var se=new p.Solver(ft,Et);se.setStartingPositions(Bt),se.setDesiredPositions(It),se.solve()},At}();et.Projection=Tt},33858:(ot,et,b)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=b(88866),p=function A(C,U){this.id=C,this.distance=U},v=function A(C){this.id=C,this.neighbours=[]},T=function A(C,U,k){this.node=C,this.prev=U,this.d=k},t=function(){function A(C,U,k,D,P){this.n=C,this.es=U,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),K=D(z),at=P(z);this.neighbours[G].neighbours.push(new p(K,at)),this.neighbours[K].neighbours.push(new p(G,at))}}return A.prototype.DistanceMatrix=function(){for(var C=new Array(this.n),U=0;Ult&&(K.d=lt,K.prev=z,k.reduceKey(K.q,K,function(Pt,Dt){return Pt.q=Dt}))}}return P},A}();et.Calculator=t},98237:(ot,et)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var b=function(){function C(U){this.scale=U,this.AB=0,this.AD=0,this.A2=0}return C.prototype.addVariable=function(U){var k=this.scale/U.scale,P=U.weight;this.AB+=P*k*(U.offset/U.scale),this.AD+=P*k*U.desiredPosition,this.A2+=P*k*k},C.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},C}();et.PositionStats=b;var d=function(){function C(U,k,D,P){void 0===P&&(P=!1),this.left=U,this.right=k,this.gap=D,this.equality=P,this.active=!1,this.unsatisfiable=!1,this.left=U,this.right=k,this.gap=D,this.equality=P}return C.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},C}();et.Constraint=d;var p=function(){function C(U,k,D){void 0===k&&(k=1),void 0===D&&(D=1),this.desiredPosition=U,this.weight=k,this.scale=D,this.offset=0}return C.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},C.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},C.prototype.visitNeighbours=function(U,k){var D=function(P,I){return P.active&&U!==I&&k(P,I)};this.cOut.forEach(function(P){return D(P,P.right)}),this.cIn.forEach(function(P){return D(P,P.left)})},C}();et.Variable=p;var v=function(){function C(U){this.vars=[],U.offset=0,this.ps=new b(U.scale),this.addVariable(U)}return C.prototype.addVariable=function(U){U.block=this,this.vars.push(U),this.ps.addVariable(U),this.posn=this.ps.getPosn()},C.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var U=0,k=this.vars.length;U=0?this.inactive.push(U):this.bs.merge(U)}}},C.prototype.solve=function(){this.satisfy();for(var U=Number.MAX_VALUE,k=this.bs.cost();Math.abs(U-k)>1e-4;)this.satisfy(),U=k,k=this.bs.cost();return k},C.LAGRANGIAN_TOLERANCE=-1e-4,C.ZERO_UPPERBOUND=-1e-10,C}();et.Solver=t,et.removeOverlapInOneDimension=function A(C,U,k){for(var D=C.map(function(nt){return new p(nt.desiredCenter)}),P=[],I=C.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,ot.exports=p,p.id=46700},7100:(ot,et,b)=>{"use strict";b.d(et,{AB:()=>gi,EC:()=>ei,K:()=>dn,g2:()=>An});var d=b(84080),p=b(94650),v=b(42654),T=b(8929),t=b(36787),A=b(29521),C=b(72986),U=b(1059),k=b(7625),D=b(80013),P=b(92198),I=b(99602),z=b(36895),G=b(3238),K=b(40445),at=b(4859),lt=b(21281),bt=b(98184),Pt=b(24006),Dt=b(59549),zt=b(284),Vt=b(97392),nt=b(65412),Tt=b(83353);const At=["ngx-mat-calendar-body",""];function ft(tt,Rt){if(1&tt&&(p.TgZ(0,"tr",2)(1,"td",3),p._uU(2),p.qZA()()),2&tt){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 Et(tt,Rt){if(1&tt&&(p.TgZ(0,"td",7),p._uU(1),p.qZA()),2&tt){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 Bt(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td",8),p.NdJ("click",function(Be){const Gi=p.CHM(Q).$implicit,Co=p.oxw(2);return p.KtG(Co._cellClicked(Gi,Be))}),p.TgZ(1,"div",9),p._uU(2),p.qZA(),p._UZ(3,"div",10),p.qZA()}if(2&tt){const Q=Rt.$implicit,Ft=Rt.index,Be=p.oxw().index,Rn=p.oxw();p.Udp("width",Rn._cellWidth)("padding-top",Rn._cellPadding)("padding-bottom",Rn._cellPadding),p.ekj("mat-calendar-body-disabled",!Q.enabled)("mat-calendar-body-active",Rn._isActiveCell(Be,Ft))("mat-calendar-body-range-start",Rn._isRangeStart(Q.compareValue))("mat-calendar-body-range-end",Rn._isRangeEnd(Q.compareValue))("mat-calendar-body-in-range",Rn._isInRange(Q.compareValue))("mat-calendar-body-comparison-bridge-start",Rn._isComparisonBridgeStart(Q.compareValue,Be,Ft))("mat-calendar-body-comparison-bridge-end",Rn._isComparisonBridgeEnd(Q.compareValue,Be,Ft))("mat-calendar-body-comparison-start",Rn._isComparisonStart(Q.compareValue))("mat-calendar-body-comparison-end",Rn._isComparisonEnd(Q.compareValue))("mat-calendar-body-in-comparison-range",Rn._isInComparisonRange(Q.compareValue))("mat-calendar-body-preview-start",Rn._isPreviewStart(Q.compareValue))("mat-calendar-body-preview-end",Rn._isPreviewEnd(Q.compareValue))("mat-calendar-body-in-preview",Rn._isInPreview(Q.compareValue)),p.Q6J("ngClass",Q.cssClasses)("tabindex",Rn._isActiveCell(Be,Ft)?0:-1),p.uIk("data-mat-row",Be)("data-mat-col",Ft)("aria-label",Q.ariaLabel)("aria-disabled",!Q.enabled||null)("aria-selected",Rn._isSelected(Q)),p.xp6(1),p.ekj("mat-calendar-body-selected",Rn._isSelected(Q))("mat-calendar-body-today",Rn.todayValue===Q.compareValue),p.xp6(1),p.hij(" ",Q.displayValue," ")}}function It(tt,Rt){if(1&tt&&(p.TgZ(0,"tr",4),p.YNc(1,Et,2,6,"td",5),p.YNc(2,Bt,4,44,"td",6),p.qZA()),2&tt){const Q=Rt.$implicit,Ft=Rt.index,Be=p.oxw();p.xp6(1),p.Q6J("ngIf",0===Ft&&Be._firstRowOffset),p.xp6(1),p.Q6J("ngForOf",Q)}}function se(tt,Rt){if(1&tt&&(p.TgZ(0,"th",5),p._uU(1),p.qZA()),2&tt){const Q=Rt.$implicit;p.uIk("aria-label",Q.long),p.xp6(1),p.Oqu(Q.narrow)}}const Jt=["*"];function ve(tt,Rt){}function xe(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"ngx-mat-month-view",5),p.NdJ("activeDateChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn.activeDate=Be)})("selectedChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._dateSelected(Be))})("_userSelection",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be._userSelected())}),p.qZA()}if(2&tt){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 Oe(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"ngx-mat-year-view",6),p.NdJ("activeDateChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn.activeDate=Be)})("monthSelected",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._monthSelectedInYearView(Be))})("selectedChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._goToDateInView(Be,"month"))}),p.qZA()}if(2&tt){const Q=p.oxw();p.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)}}function qe(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"ngx-mat-multi-year-view",7),p.NdJ("activeDateChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn.activeDate=Be)})("yearSelected",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._yearSelectedInMultiYearView(Be))})("selectedChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._goToDateInView(Be,"year"))}),p.qZA()}if(2&tt){const Q=p.oxw();p.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)}}function $e(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td")(1,"button",10),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw(2);return p.KtG(Be.change("second",!0))}),p.TgZ(2,"mat-icon"),p._uU(3,"expand_less"),p.qZA()()()}if(2&tt){const Q=p.oxw(2);p.xp6(1),p.Q6J("disabled",Q.disabled||Q.disableMinute)}}function Xt(tt,Rt){1&tt&&p._UZ(0,"td",6)}function we(tt,Rt){1&tt&&p._UZ(0,"td")}function ae(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"tr")(1,"td")(2,"button",10),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.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 Be=p.oxw();return p.KtG(Be.change("minute",!0))}),p.TgZ(8,"mat-icon"),p._uU(9,"expand_less"),p.qZA()()(),p._UZ(10,"td"),p.YNc(11,$e,4,1,"td",3),p.YNc(12,Xt,1,0,"td",8),p.YNc(13,we,1,0,"td",3),p.qZA()}if(2&tt){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 Kt(tt,Rt){1&tt&&(p.TgZ(0,"td",6),p._uU(1,":"),p.qZA())}function de(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td")(1,"mat-form-field",4)(2,"input",11),p.NdJ("input",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn.formatInput(Be.target))})("keydown.ArrowUp",function(Be){return p.CHM(Q),p.oxw().change("second",!0),p.KtG(Be.preventDefault())})("keydown.ArrowDown",function(Be){return p.CHM(Q),p.oxw().change("second",!1),p.KtG(Be.preventDefault())})("blur",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.change("second"))}),p.qZA()()()}}function Wt(tt,Rt){1&tt&&p._UZ(0,"td",6)}function re(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td",12)(1,"button",13),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.toggleMeridian())}),p._uU(2),p.qZA()()}if(2&tt){const Q=p.oxw();p.xp6(1),p.Q6J("color",Q.color)("disabled",Q.disabled),p.xp6(1),p.hij(" ",Q.meridian," ")}}function Pe(tt,Rt){1&tt&&p._UZ(0,"td")}function on(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td")(1,"button",14),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw(2);return p.KtG(Be.change("second",!1))}),p.TgZ(2,"mat-icon"),p._uU(3,"expand_more"),p.qZA()()()}if(2&tt){const Q=p.oxw(2);p.xp6(1),p.Q6J("disabled",Q.disabled||Q.disableMinute)}}function _n(tt,Rt){1&tt&&p._UZ(0,"td",6)}function ye(tt,Rt){1&tt&&p._UZ(0,"td")}function gn(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"tr")(1,"td")(2,"button",14),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.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 Be=p.oxw();return p.KtG(Be.change("minute",!1))}),p.TgZ(8,"mat-icon"),p._uU(9,"expand_more"),p.qZA()()(),p.YNc(10,Pe,1,0,"td",3),p.YNc(11,on,4,1,"td",3),p.YNc(12,_n,1,0,"td",8),p.YNc(13,ye,1,0,"td",3),p.qZA()}if(2&tt){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 Ue(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"div",6)(1,"ngx-mat-timepicker",7),p.NdJ("ngModelChange",function(Be){p.CHM(Q);const Rn=p.oxw(2);return p.KtG(Rn.datepicker._selected=Be)}),p.qZA()()}if(2&tt){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 un(tt,Rt){1&tt&&(p.TgZ(0,"mat-icon"),p._uU(1,"done"),p.qZA())}function Mn(tt,Rt){}function oi(tt,Rt){if(1&tt){const Q=p.EpF();p.ynx(0),p.YNc(1,Ue,2,12,"div",2),p.TgZ(2,"div",3)(3,"button",4),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.datepicker.ok())}),p.YNc(4,un,2,0,"mat-icon",1),p.YNc(5,Mn,0,0,"ng-template",5),p.qZA()(),p.BQk()}if(2&tt){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 bi=new p.OlP("ngx-mat-date-formats");class ri{constructor(Rt,Q,Ft,Be,Rn={},Gi=Rt,Co){this.value=Rt,this.displayValue=Q,this.ariaLabel=Ft,this.enabled=Be,this.cssClasses=Rn,this.compareValue=Gi,this.rawValue=Co}}let Ke=(()=>{class tt{constructor(Q,Ft){this._elementRef=Q,this._ngZone=Ft,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=Be=>{if(this._skipNextFocus&&"focus"===Be.type)this._skipNextFocus=!1;else if(Be.target&&this.isRange){const Rn=this._getCellFromElement(Be.target);Rn&&this._ngZone.run(()=>this.previewChange.emit({value:Rn.enabled?Rn:null,event:Be}))}},this._leaveHandler=Be=>{null!==this.previewEnd&&this.isRange&&Be.target&&ne(Be.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Be}))},Ft.runOutsideAngular(()=>{const Be=Q.nativeElement;Be.addEventListener("mouseenter",this._enterHandler,!0),Be.addEventListener("focus",this._enterHandler,!0),Be.addEventListener("mouseleave",this._leaveHandler,!0),Be.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(Q,Ft){Q.enabled&&this.selectedValueChange.emit({value:Q.value,event:Ft})}_isSelected(Q){return this.startValue===Q.compareValue||this.endValue===Q.compareValue}ngOnChanges(Q){const Ft=Q.numCols,{rows:Be,numCols:Rn}=this;(Q.rows||Ft)&&(this._firstRowOffset=Be&&Be.length&&Be[0].length?Rn-Be[0].length:0),(Q.cellAspectRatio||Ft||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Rn+"%"),(Ft||!this._cellWidth)&&(this._cellWidth=100/Rn+"%")}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,Ft){let Be=Q*this.numCols+Ft;return Q&&(Be-=this._firstRowOffset),Be==this.activeCell}_focusActiveCell(Q=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe((0,C.q)(1)).subscribe(()=>{const Ft=this._elementRef.nativeElement.querySelector(".ngx-mat-calendar-body-active");Ft&&(Q||(this._skipNextFocus=!0),Ft.focus())})})}_isRangeStart(Q){return ct(Q,this.startValue,this.endValue)}_isRangeEnd(Q){return it(Q,this.startValue,this.endValue)}_isInRange(Q){return kt(Q,this.startValue,this.endValue,this.isRange)}_isComparisonStart(Q){return ct(Q,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(Q,Ft,Be){if(!this._isComparisonStart(Q)||this._isRangeStart(Q)||!this._isInRange(Q))return!1;let Rn=this.rows[Ft][Be-1];if(!Rn){const Gi=this.rows[Ft-1];Rn=Gi&&Gi[Gi.length-1]}return Rn&&!this._isRangeEnd(Rn.compareValue)}_isComparisonBridgeEnd(Q,Ft,Be){if(!this._isComparisonEnd(Q)||this._isRangeEnd(Q)||!this._isInRange(Q))return!1;let Rn=this.rows[Ft][Be+1];if(!Rn){const Gi=this.rows[Ft+1];Rn=Gi&&Gi[0]}return Rn&&!this._isRangeStart(Rn.compareValue)}_isComparisonEnd(Q){return it(Q,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(Q){return kt(Q,this.comparisonStart,this.comparisonEnd,this.isRange)}_isPreviewStart(Q){return ct(Q,this.previewStart,this.previewEnd)}_isPreviewEnd(Q){return it(Q,this.previewStart,this.previewEnd)}_isInPreview(Q){return kt(Q,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(Q){let Ft;if(ne(Q)?Ft=Q:ne(Q.parentNode)&&(Ft=Q.parentNode),Ft){const Be=Ft.getAttribute("data-ngx-mat-row"),Rn=Ft.getAttribute("data-ngx-mat-col");if(Be&&Rn)return this.rows[parseInt(Be)][parseInt(Rn)]}return null}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(p.SBq),p.Y36(p.R0b))},tt.\u0275cmp=p.Xpm({type:tt,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:At,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,Ft){1&Q&&(p.YNc(0,ft,3,6,"tr",0),p.YNc(1,It,3,2,"tr",1)),2&Q&&(p.Q6J("ngIf",Ft._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}),tt})();function ne(tt){return"TD"===tt.nodeName}function ct(tt,Rt,Q){return null!==Q&&Rt!==Q&&tt=Rt&&tt===Q}function kt(tt,Rt,Q,Ft){return Ft&&null!==Rt&&null!==Q&&Rt!==Q&&tt>=Rt&&tt<=Q}class Gt extends G._A{isSameTime(Rt,Q){return null==Rt||null==Q||this.getHour(Rt)===this.getHour(Q)&&this.getMinute(Rt)===this.getMinute(Q)&&this.getSecond(Rt)===this.getSecond(Q)}copyTime(Rt,Q){this.setHour(Rt,this.getHour(Q)),this.setMinute(Rt,this.getMinute(Q)),this.setSecond(Rt,this.getSecond(Q))}compareDateWithTime(Rt,Q,Ft){let Be=super.compareDate(Rt,Q)||this.getHour(Rt)-this.getHour(Q)||this.getMinute(Rt)-this.getMinute(Q);return Ft&&(Be=Be||this.getSecond(Rt)-this.getSecond(Q)),Be}setTimeByDefaultValues(Rt,Q){if(!Array.isArray(Q))throw Error("@Input DefaultTime should be an array");this.setHour(Rt,Q[0]||0),this.setMinute(Rt,Q[1]||0),this.setSecond(Rt,Q[2]||0)}}const oe=new p.OlP("NGX_MAT_DATE_RANGE_SELECTION_STRATEGY");let Ce=(()=>{class tt{constructor(Q){this._dateAdapter=Q}selectionFinished(Q,Ft){let{start:Be,end:Rn}=Ft;return null==Be?Be=Q:null==Rn&&Q&&this._dateAdapter.compareDate(Q,Be)>=0?Rn=Q:(Be=Q,Rn=null),new I.C0(Be,Rn)}createPreview(Q,Ft){let Be=null,Rn=null;return Ft.start&&!Ft.end&&Q&&(Be=Ft.start,Rn=Q),new I.C0(Be,Rn)}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.LFG(Gt))},tt.\u0275prov=p.Yz7({token:tt,factory:tt.\u0275fac}),tt})();const Ee={minHour:0,maxHour:24,minMinute:0,maxMinute:60,minSecond:0,maxSecond:60,meridian:12},mi=/[^0-9]/g,Oi=/^(2[0-3]|[0-1][0-9]|[0-9])$/,ho=/^([0-5][0-9]|[0-9])$/,fi=/^([0-5][0-9]|[0-9])$/;function Yn(tt){const Rt=tt.toString();return Rt.length>1?Rt:`0${Rt}`}function jn(tt){return Error(`NgxMatDatepicker: No provider found for ${tt}. You must import one of the following modules at your application root: NgxMatNativeDateModule, NgxMatMomentModule, or provide a custom implementation.`)}let ze=(()=>{class tt{constructor(Q,Ft,Be,Rn,Gi){if(this._changeDetectorRef=Q,this._dateFormats=Ft,this._dateAdapter=Be,this._dir=Rn,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 jn("NgxMatDateAdapter");if(!this._dateFormats)throw jn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){const Ft=this._activeDate,Be=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Be,this.minDate,this.maxDate),this._hasSameMonthAndYear(Ft,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,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(Q){const Ft=Q.value,Be=this._dateAdapter.getYear(this.activeDate),Rn=this._dateAdapter.getMonth(this.activeDate),Gi=this._dateAdapter.createDate(Be,Rn,Ft);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!==Ft||gr!==Ft)&&this.selectedChange.emit(Gi),this._userSelection.emit({value:Gi,event:Q.event})}_handleCalendarBodyKeydown(Q){const Ft=this._activeDate,Be=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Be?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Be?-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(Ft,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:Ft}){if(this._rangeStrategy){const Rn=this._rangeStrategy.createPreview(Ft?Ft.rawValue:null,this.selected,Q);this._previewStart=this._getCellCompareValue(Rn.start),this._previewEnd=this._getCellCompareValue(Rn.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const Q=this._dateAdapter.getFirstDayOfWeek(),Ft=this._dateAdapter.getDayOfWeekNames("narrow");let Rn=this._dateAdapter.getDayOfWeekNames("long").map((Gi,Co)=>({long:Gi,narrow:Ft[Co]}));this._weekdays=Rn.slice(Q).concat(Rn.slice(0,Q))}_createWeekCells(){const Q=this._dateAdapter.getNumDaysInMonth(this.activeDate),Ft=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Be=0,Rn=this._firstWeekOffset;Be=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,Ft){return!(!Q||!Ft||this._dateAdapter.getMonth(Q)!=this._dateAdapter.getMonth(Ft)||this._dateAdapter.getYear(Q)!=this._dateAdapter.getYear(Ft))}_getCellCompareValue(Q){if(Q){const Ft=this._dateAdapter.getYear(Q),Be=this._dateAdapter.getMonth(Q),Rn=this._dateAdapter.getDate(Q);return new Date(Ft,Be,Rn).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 tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(p.sBO),p.Y36(bi,8),p.Y36(Gt,8),p.Y36(K.Is,8),p.Y36(oe,8))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-month-view"]],viewQuery:function(Q,Ft){if(1&Q&&p.Gf(Ke,5),2&Q){let Be;p.iGM(Be=p.CRH())&&(Ft._matCalendarBody=Be.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,Ft){1&Q&&(p.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),p.YNc(3,se,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(Rn){return Ft._dateSelected(Rn)})("previewChange",function(Rn){return Ft._previewChanged(Rn)})("keydown",function(Rn){return Ft._handleCalendarBodyKeydown(Rn)}),p.qZA()()),2&Q&&(p.xp6(3),p.Q6J("ngForOf",Ft._weekdays),p.xp6(3),p.Q6J("label",Ft._monthLabel)("rows",Ft._weeks)("todayValue",Ft._todayDate)("startValue",Ft._rangeStart)("endValue",Ft._rangeEnd)("comparisonStart",Ft._comparisonRangeStart)("comparisonEnd",Ft._comparisonRangeEnd)("previewStart",Ft._previewStart)("previewEnd",Ft._previewEnd)("isRange",Ft._isRange)("labelMinRequiredCells",3)("activeCell",Ft._dateAdapter.getDate(Ft.activeDate)-1))},dependencies:[z.sg,Ke],encapsulation:2,changeDetection:0}),tt})(),le=(()=>{class tt{constructor(Q,Ft,Be){if(this._changeDetectorRef=Q,this._dateAdapter=Ft,this._dir=Be,this._rerenderSubscription=v.w.EMPTY,this.selectedChange=new p.vpe,this.yearSelected=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw jn("NgxMatDateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){let Ft=this._activeDate;const Be=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Be,this.minDate,this.maxDate),Je(this._dateAdapter,Ft,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,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Ft=this._dateAdapter.getYear(this._activeDate)-Lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Be=0,Rn=[];Be<24;Be++)Rn.push(Ft+Be),4==Rn.length&&(this._years.push(Rn.map(Gi=>this._createCellForYear(Gi))),Rn=[]);this._changeDetectorRef.markForCheck()}_yearSelected(Q){const Ft=Q.value;this.yearSelected.emit(this._dateAdapter.createDate(Ft,0,1));let Be=this._dateAdapter.getMonth(this.activeDate),Rn=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Ft,Be,1));this.selectedChange.emit(this._dateAdapter.createDate(Ft,Be,Math.min(this._dateAdapter.getDate(this.activeDate),Rn)))}_handleCalendarBodyKeydown(Q){const Ft=this._activeDate,Be=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Be?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Be?-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,-Lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Lt(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(Ft,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),Q.preventDefault()}_getActiveCell(){return Lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(Q){let Ft=this._dateAdapter.getYearName(this._dateAdapter.createDate(Q,0,1));return new ri(Q,Ft,Ft,this._shouldEnableYear(Q))}_shouldEnableYear(Q){if(null==Q||this.maxDate&&Q>this._dateAdapter.getYear(this.maxDate)||this.minDate&&Q{class tt{constructor(Q,Ft,Be,Rn){if(this._changeDetectorRef=Q,this._dateFormats=Ft,this._dateAdapter=Be,this._dir=Rn,this._rerenderSubscription=v.w.EMPTY,this.selectedChange=new p.vpe,this.monthSelected=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw jn("NgxMatDateAdapter");if(!this._dateFormats)throw jn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){let Ft=this._activeDate;const Be=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Be,this.minDate,this.maxDate),this._dateAdapter.getYear(Ft)!==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,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(Q){const Ft=Q.value,Be=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ft,1);this.monthSelected.emit(Be);const Rn=this._dateAdapter.getNumDaysInMonth(Be);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ft,Math.min(this._dateAdapter.getDate(this.activeDate),Rn)))}_handleCalendarBodyKeydown(Q){const Ft=this._activeDate,Be=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Be?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Be?-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(Ft,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(Ft=>Ft.map(Be=>this._createCellForMonth(Be,Q[Be]))),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,Ft){let Be=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Q,1),this._dateFormats.display.monthYearA11yLabel);return new ri(Q,Ft.toLocaleUpperCase(),Be,this._shouldEnableMonth(Q))}_shouldEnableMonth(Q){const Ft=this._dateAdapter.getYear(this.activeDate);if(null==Q||this._isYearAndMonthAfterMaxDate(Ft,Q)||this._isYearAndMonthBeforeMinDate(Ft,Q))return!1;if(!this.dateFilter)return!0;for(let Rn=this._dateAdapter.createDate(Ft,Q,1);this._dateAdapter.getMonth(Rn)==Q;Rn=this._dateAdapter.addCalendarDays(Rn,1))if(this.dateFilter(Rn))return!0;return!1}_isYearAndMonthAfterMaxDate(Q,Ft){if(this.maxDate){const Be=this._dateAdapter.getYear(this.maxDate),Rn=this._dateAdapter.getMonth(this.maxDate);return Q>Be||Q===Be&&Ft>Rn}return!1}_isYearAndMonthBeforeMinDate(Q,Ft){if(this.minDate){const Be=this._dateAdapter.getYear(this.minDate),Rn=this._dateAdapter.getMonth(this.minDate);return Q{class tt{constructor(Q,Ft,Be,Rn,Gi){this._intl=Q,this.calendar=Ft,this._dateAdapter=Be,this._dateFormats=Rn,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 Ft=this._dateAdapter.getYear(this.calendar.activeDate)-Lt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Be=Ft+24-1;return function Ye(tt,Rt){return`${tt} \u2013 ${Rt}`}(this._dateAdapter.getYearName(this._dateAdapter.createDate(Ft,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(Be,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,Ft){return"month"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(Ft)&&this._dateAdapter.getMonth(Q)==this._dateAdapter.getMonth(Ft):"year"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(Ft):Je(this._dateAdapter,Q,Ft,this.calendar.minDate,this.calendar.maxDate)}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(I.S8),p.Y36((0,p.Gpc)(()=>Fe)),p.Y36(Gt,8),p.Y36(bi,8),p.Y36(p.sBO))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-calendar-header"]],exportAs:["ngxMatCalendarHeader"],ngContentSelectors:Jt,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,Ft){1&Q&&(p.F$t(),p.TgZ(0,"div",0)(1,"div",1)(2,"button",2),p.NdJ("click",function(){return Ft.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 Ft.previousClicked()}),p.qZA(),p.TgZ(8,"button",6),p.NdJ("click",function(){return Ft.nextClicked()}),p.qZA()()()),2&Q&&(p.xp6(2),p.uIk("aria-label",Ft.periodButtonLabel),p.xp6(1),p.hij(" ",Ft.periodButtonText," "),p.xp6(1),p.ekj("mat-calendar-invert","month"!=Ft.calendar.currentView),p.xp6(3),p.Q6J("disabled",!Ft.previousEnabled()),p.uIk("aria-label",Ft.prevButtonLabel),p.xp6(1),p.Q6J("disabled",!Ft.nextEnabled()),p.uIk("aria-label",Ft.nextButtonLabel))},dependencies:[at.lW],encapsulation:2,changeDetection:0}),tt})(),Fe=(()=>{class tt{constructor(Q,Ft,Be,Rn){if(this._dateAdapter=Ft,this._dateFormats=Be,this._changeDetectorRef=Rn,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 jn("NgxDateAdapter");if(!this._dateFormats)throw jn("NGX_MAT_DATE_FORMATS");this._intlChanges=Q.changes.subscribe(()=>{Rn.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||Xe),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 Ft=Q.minDate||Q.maxDate||Q.dateFilter;if(Ft&&!Ft.firstChange){const Be=this._getCurrentViewComponent();Be&&(this._changeDetectorRef.detectChanges(),Be._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,Ft){this.activeDate=Q,this.currentView=Ft}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(I.S8),p.Y36(Gt,8),p.Y36(bi,8),p.Y36(p.sBO))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-calendar"]],viewQuery:function(Q,Ft){if(1&Q&&(p.Gf(ze,5),p.Gf(Te,5),p.Gf(le,5)),2&Q){let Be;p.iGM(Be=p.CRH())&&(Ft.monthView=Be.first),p.iGM(Be=p.CRH())&&(Ft.yearView=Be.first),p.iGM(Be=p.CRH())&&(Ft.multiYearView=Be.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,Ft){1&Q&&(p.YNc(0,ve,0,0,"ng-template",0),p.TgZ(1,"div",1),p.YNc(2,xe,1,6,"ngx-mat-month-view",2),p.YNc(3,Oe,1,5,"ngx-mat-year-view",3),p.YNc(4,qe,1,5,"ngx-mat-multi-year-view",4),p.qZA()),2&Q&&(p.Q6J("cdkPortalOutlet",Ft._calendarHeaderPortal),p.xp6(1),p.Q6J("ngSwitch",Ft.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,ze,Te,le],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}),tt})(),Tn=(()=>{class tt{constructor(Q,Ft,Be){if(this._dateAdapter=Q,this.cd=Ft,this.formBuilder=Be,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=Oi,!this._dateAdapter)throw jn("NgxMatDateAdapter");this.form=this.formBuilder.group({hour:[{value:null,disabled:this.disabled},[Pt.kI.required,Pt.kI.pattern(Oi)]],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(fi)]]})}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(mi,"")}toggleMeridian(){this.meridian="AM"===this.meridian?"PM":"AM",this.change("hour")}change(Q,Ft){const Be=this._getNextValueByProp(Q,Ft);this.form.controls[Q].setValue(Yn(Be),{onlySelf:!1,emitEvent:!1}),this._updateModel()}_updateHourMinuteSecond(){let Q=this._dateAdapter.getHour(this._model);const Ft=this._dateAdapter.getMinute(this._model),Be=this._dateAdapter.getSecond(this._model);this.enableMeridian&&(Q>=Ee.meridian?(Q-=Ee.meridian,this.meridian="PM"):this.meridian="AM",0===Q&&(Q=Ee.meridian)),this.form.controls.hour.setValue(Yn(Q)),this.form.controls.minute.setValue(Yn(Ft)),this.form.controls.second.setValue(Yn(Be))}_updateModel(){let Q=this.hour;this.enableMeridian&&("AM"===this.meridian&&Q===Ee.meridian?Q=0:"PM"===this.meridian&&Q!==Ee.meridian&&(Q+=Ee.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,Ft){const Be=Q[0].toUpperCase()+Q.slice(1),Rn=Ee[`min${Be}`];let Co,Gi=Ee[`max${Be}`];return"hour"===Q&&this.enableMeridian&&(Gi=Ee.meridian),null==Ft?(Co=this[Q]%Gi,"hour"===Q&&this.enableMeridian&&0===Co&&(Co=Gi)):(Co=Ft?this[Q]+this[`step${Be}`]:this[Q]-this[`step${Be}`],"hour"===Q&&this.enableMeridian?(Co%=Gi+1,0===Co&&(Co=Ft?1:Gi)):Co%=Gi,Co=Ft?Co>Gi?Co-Gi+Rn:Co:Cott),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,Ft){1&Q&&(p.TgZ(0,"form",0)(1,"table",1)(2,"tbody",2),p.YNc(3,ae,14,5,"tr",3),p.TgZ(4,"tr")(5,"td")(6,"mat-form-field",4)(7,"input",5),p.NdJ("input",function(Rn){return Ft.formatInput(Rn.target)})("keydown.ArrowUp",function(Rn){return Ft.change("hour",!0),Rn.preventDefault()})("keydown.ArrowDown",function(Rn){return Ft.change("hour",!1),Rn.preventDefault()})("blur",function(){return Ft.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(Rn){return Ft.formatInput(Rn.target)})("keydown.ArrowUp",function(Rn){return Ft.change("minute",!0),Rn.preventDefault()})("keydown.ArrowDown",function(Rn){return Ft.change("minute",!1),Rn.preventDefault()})("blur",function(){return Ft.change("minute")}),p.qZA()()(),p.YNc(13,Kt,2,0,"td",8),p.YNc(14,de,3,0,"td",3),p.YNc(15,Wt,1,0,"td",8),p.YNc(16,re,3,3,"td",9),p.qZA(),p.YNc(17,gn,14,6,"tr",3),p.qZA()()()),2&Q&&(p.Q6J("formGroup",Ft.form),p.xp6(3),p.Q6J("ngIf",Ft.showSpinners),p.xp6(10),p.Q6J("ngIf",Ft.showSeconds),p.xp6(1),p.Q6J("ngIf",Ft.showSeconds),p.xp6(1),p.Q6J("ngIf",Ft.enableMeridian),p.xp6(1),p.Q6J("ngIf",Ft.enableMeridian),p.xp6(1),p.Q6J("ngIf",Ft.showSpinners))},dependencies:[z.O5,Dt.KE,zt.Nt,Pt._Y,Pt.Fj,Pt.JJ,Pt.JL,Pt.nD,Pt.sg,Pt.u,Vt.Hw,at.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}),tt})(),he=0;const Re=(0,G.pj)(class{constructor(tt){this._elementRef=tt}});let En=(()=>{class tt extends Re{constructor(Q,Ft,Be){super(Q),this.cd=Ft,this._viewContainerRef=Be}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 tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(p.s_b))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-datetime-content"]],viewQuery:function(Q,Ft){if(1&Q&&(p.Gf(Fe,5),p.Gf(Tn,5)),2&Q){let Be;p.iGM(Be=p.CRH())&&(Ft._calendar=Be.first),p.iGM(Be=p.CRH())&&(Ft._timePicker=Be.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(Q,Ft){2&Q&&(p.d8E("@transformPanel","enter"),p.ekj("mat-datepicker-content-touch",Ft.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,Ft){1&Q&&(p.TgZ(0,"ngx-mat-calendar",0),p.NdJ("selectedChange",function(Rn){return Ft.datepicker.select(Rn)})("yearSelected",function(Rn){return Ft.datepicker._selectYear(Rn)})("monthSelected",function(Rn){return Ft.datepicker._selectMonth(Rn)}),p.qZA(),p.YNc(1,oi,6,5,"ng-container",1)),2&Q&&(p.Q6J("id",Ft.datepicker.id)("ngClass",Ft.datepicker.panelClass)("startAt",Ft.datepicker.startAt)("startView",Ft.datepicker.startView)("minDate",Ft.datepicker._minDate)("maxDate",Ft.datepicker._maxDate)("dateFilter",Ft.datepicker._dateFilter)("headerComponent",Ft.datepicker.calendarHeaderComponent)("selected",Ft.datepicker._selected)("dateClass",Ft.datepicker.dateClass)("@fadeInCalendar","enter"),p.xp6(1),p.Q6J("ngIf",Ft.isViewMonth))},dependencies:[z.mk,z.O5,d.Pl,Pt.JJ,Pt.On,Vt.Hw,at.lW,Tn,Fe],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}),tt})(),gi=(()=>{class tt{constructor(Q,Ft,Be,Rn,Gi,Co,gr,br){if(this._dialog=Q,this._overlay=Ft,this._ngZone=Be,this._viewContainerRef=Rn,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-"+he++,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 jn("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,lt.Ig)(Q)}get hideTime(){return this._hideTime}set hideTime(Q){this._hideTime=(0,lt.Ig)(Q)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(Q){const Ft=(0,lt.Ig)(Q);Ft!==this._disabled&&(this._disabled=Ft,this.stateChanges.next(Ft))}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(),Ft=this._maxValidator();return null==Q&&null==Ft}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(Ft=>this._selected=Ft)}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(En,{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(En,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,C.q)(1)).subscribe(()=>{this._popupRef.updatePosition()}))}_createPopup(){const Q=new bt.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)(Ft=>Ft.keyCode===A.hY||this.datepickerInput&&Ft.altKey&&Ft.keyCode===A.LH))).subscribe(Ft=>{Ft&&Ft.preventDefault(),this._hasBackdrop&&Ft?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 tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(nt.uw),p.Y36(bt.aV),p.Y36(p.R0b),p.Y36(p.s_b),p.Y36(I.Uu),p.Y36(Gt,8),p.Y36(K.Is,8),p.Y36(z.K0,8))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-datetime-picker"]],contentQueries:function(Q,Ft,Be){if(1&Q&&p.Suo(Be,p.Rgc,5),2&Q){let Rn;p.iGM(Rn=p.CRH())&&(Ft._customIcon=Rn.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,Ft){},encapsulation:2,changeDetection:0}),tt})();const go={provide:Pt.JU,useExisting:(0,p.Gpc)(()=>An),multi:!0},_o={provide:Pt.Cf,useExisting:(0,p.Gpc)(()=>An),multi:!0};class mn{constructor(Rt,Q){this.target=Rt,this.targetElement=Q,this.value=this.target.value}}let Zi,An=(()=>{class tt{constructor(Q,Ft,Be,Rn){if(this._elementRef=Q,this._dateAdapter=Ft,this._dateFormats=Be,this._formField=Rn,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 jn("NgxMatDateAdapter");if(!this._dateFormats)throw jn("NGX_MAT_DATE_FORMATS");this._localeSubscription=Ft.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(Ft=>{this.value=Ft,this._cvaOnChange(Ft),this._onTouched(),this.dateInput.emit(new mn(this,this._elementRef.nativeElement)),this.dateChange.emit(new mn(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 Ft=this.value;this._value=Q,this._formatValue(Q),this._dateAdapter.sameDate(Ft,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 Ft=null!=Q&&"false"!=`${Q}`,Be=this._elementRef.nativeElement;this._disabled!==Ft&&(this._disabled=Ft,this.stateChanges.emit(void 0)),Ft&&Be.blur&&Be.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 Ft=this._lastValueValid;let Be=this._dateAdapter.parse(Q,this._dateFormats.parse.dateInput);this._lastValueValid=!Be||this._dateAdapter.isValid(Be),Be=this._getValidDateOrNull(Be);const Rn=this._dateAdapter.isSameTime(Be,this._value);null!=Be&&(!Rn||!this._dateAdapter.sameDate(Be,this._value))||null==Be&&null!=this._value?(this._value=Be,this._cvaOnChange(Be),this._valueChange.emit(Be),this.dateInput.emit(new mn(this,this._elementRef.nativeElement))):Ft!==this._lastValueValid&&this._validatorOnChange()}_onChange(){this.dateChange.emit(new mn(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 tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(p.SBq),p.Y36(Gt,8),p.Y36(bi,8),p.Y36(Dt.KE,8))},tt.\u0275dir=p.lG2({type:tt,selectors:[["input","ngxMatDatetimePicker",""]],hostVars:5,hostBindings:function(Q,Ft){1&Q&&p.NdJ("input",function(Rn){return Ft._onInput(Rn.target.value)})("change",function(){return Ft._onChange()})("blur",function(){return Ft._onBlur()})("focus",function(){return Ft._onFocus()})("keydown",function(Rn){return Ft._onKeydown(Rn)}),2&Q&&(p.Ikx("disabled",Ft.disabled),p.uIk("aria-haspopup",Ft._datepicker?"dialog":null)("aria-owns",(null==Ft._datepicker?null:Ft._datepicker.opened)&&Ft._datepicker.id||null)("min",Ft.min?Ft._dateAdapter.toIso8601(Ft.min):null)("max",Ft.max?Ft._dateAdapter.toIso8601(Ft.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:zt.Jk,useExisting:tt}])]}),tt})(),sn=(()=>{class tt{}return tt.\u0275fac=function(Q){return new(Q||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({imports:[z.ez,zt.c,Pt.UX,Pt.u5,Vt.Ps,at.ot]}),tt})(),ei=(()=>{class tt{}return tt.\u0275fac=function(Q){return new(Q||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({providers:[I.Lv,{provide:oe,useClass:Ce}],imports:[z.ez,I.FA,nt.Is,d.eL,Pt.u5,Vt.Ps,at.ot,zt.c,sn]}),tt})();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"]},Fo=fr(31,tt=>String(tt+1)),ca={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Ia=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function fr(tt,Rt){const Q=Array(tt);for(let Ft=0;Ft{class tt extends Gt{constructor(Q,Ft){super(),this.useUtcForDisplay=!0,super.setLocale(Q),this.useUtcForDisplay=!Ft.TRIDENT,this._clampDate=Ft.TRIDENT||Ft.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 Ft=new Intl.DateTimeFormat(this.locale,{month:Q,timeZone:"utc"});return fr(12,Be=>this._stripDirectionalityCharacters(this._format(Ft,new Date(2017,Be,1))))}return vo[Q]}getDateNames(){if(Zi){const Q=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return fr(31,Ft=>this._stripDirectionalityCharacters(this._format(Q,new Date(2017,0,Ft+1))))}return Fo}getDayOfWeekNames(Q){if(Zi){const Ft=new Intl.DateTimeFormat(this.locale,{weekday:Q,timeZone:"utc"});return fr(7,Be=>this._stripDirectionalityCharacters(this._format(Ft,new Date(2017,0,Be+1))))}return ca[Q]}getYearName(Q){if(Zi){const Ft=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(Ft,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,Ft,Be){if(Ft<0||Ft>11)throw Error(`Invalid month index "${Ft}". Month index has to be between 0 and 11.`);if(Be<1)throw Error(`Invalid date "${Be}". Date has to be greater than 0.`);let Rn=this._createDateWithOverflow(Q,Ft,Be);if(Rn.getMonth()!=Ft)throw Error(`Invalid date "${Be}" for month with index "${Ft}".`);return Rn}today(){return new Date}parse(Q){return"number"==typeof Q?new Date(Q):Q?new Date(Date.parse(Q)):null}format(Q,Ft){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()))),Ft={...Ft,timeZone:"utc"};const Be=new Intl.DateTimeFormat(this.locale,Ft);return this._stripDirectionalityCharacters(this._format(Be,Q))}return this._stripDirectionalityCharacters(Q.toDateString())}addCalendarYears(Q,Ft){return this.addCalendarMonths(Q,12*Ft)}addCalendarMonths(Q,Ft){let Be=this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q)+Ft,this.getDate(Q));return this.getMonth(Be)!=((this.getMonth(Q)+Ft)%12+12)%12&&(Be=this._createDateWithOverflow(this.getYear(Be),this.getMonth(Be),0)),Be}addCalendarDays(Q,Ft){return this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q),this.getDate(Q)+Ft)}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(Ia.test(Q)){let Ft=new Date(Q);if(this.isValid(Ft))return Ft}}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,Ft){Q.setHours(Ft)}setMinute(Q,Ft){Q.setMinutes(Ft)}setSecond(Q,Ft){Q.setSeconds(Ft)}_createDateWithOverflow(Q,Ft,Be){const Rn=new Date(Q,Ft,Be);return Q>=0&&Q<100&&Rn.setFullYear(this.getYear(Rn)-1900),Rn}_2digit(Q){return("00"+Q).slice(-2)}_stripDirectionalityCharacters(Q){return Q.replace(/[\u200e\u200f]/g,"")}_format(Q,Ft){const Be=new Date;return Be.setUTCFullYear(Ft.getFullYear(),Ft.getMonth(),Ft.getDate()),Be.setUTCHours(Ft.getHours(),Ft.getMinutes(),Ft.getSeconds(),Ft.getMilliseconds()),Q.format(Be)}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.LFG(G.Ad,8),p.LFG(Tt.t4))},tt.\u0275prov=p.Yz7({token:tt,factory:tt.\u0275fac}),tt})();const In={year:"numeric",month:"numeric",day:"numeric",hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"},He={parse:{dateInput:In},display:{dateInput:In,monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let ke=(()=>{class tt{}return tt.\u0275fac=function(Q){return new(Q||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({providers:[{provide:Gt,useClass:Ge}],imports:[Tt.ud]}),tt})(),dn=(()=>{class tt{}return tt.\u0275fac=function(Q){return new(Q||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({providers:[{provide:bi,useValue:He}],imports:[ke]}),tt})()},37340:(ot,et,b)=>{"use strict";b.d(et,{F4:()=>D,IO:()=>K,LC:()=>p,SB:()=>k,X$:()=>T,ZE:()=>Pt,ZN:()=>bt,_j:()=>d,eR:()=>P,jt:()=>t,k1:()=>Dt,l3:()=>v,oB:()=>U,pV:()=>z,ru:()=>A,vP:()=>C});class d{}class p{}const v="*";function T(zt,Vt){return{type:7,name:zt,definitions:Vt,options:{}}}function t(zt,Vt=null){return{type:4,styles:Vt,timings:zt}}function A(zt,Vt=null){return{type:3,steps:zt,options:Vt}}function C(zt,Vt=null){return{type:2,steps:zt,options:Vt}}function U(zt){return{type:6,styles:zt,offset:null}}function k(zt,Vt,nt){return{type:0,name:zt,styles:Vt,options:nt}}function D(zt){return{type:5,steps:zt}}function P(zt,Vt,nt=null){return{type:1,expr:zt,animation:Vt,options:nt}}function z(zt=null){return{type:9,options:zt}}function K(zt,Vt,nt=null){return{type:11,selector:zt,animation:Vt,options:nt}}function lt(zt){Promise.resolve().then(zt)}class bt{constructor(Vt=0,nt=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=Vt+nt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Vt=>Vt()),this._onDoneFns=[])}onStart(Vt){this._originalOnStartFns.push(Vt),this._onStartFns.push(Vt)}onDone(Vt){this._originalOnDoneFns.push(Vt),this._onDoneFns.push(Vt)}onDestroy(Vt){this._onDestroyFns.push(Vt)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){lt(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Vt=>Vt()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Vt=>Vt()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Vt){this._position=this.totalTime?Vt*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Vt){const nt="start"==Vt?this._onStartFns:this._onDoneFns;nt.forEach(Tt=>Tt()),nt.length=0}}class Pt{constructor(Vt){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Vt;let nt=0,Tt=0,At=0;const ft=this.players.length;0==ft?lt(()=>this._onFinish()):this.players.forEach(Et=>{Et.onDone(()=>{++nt==ft&&this._onFinish()}),Et.onDestroy(()=>{++Tt==ft&&this._onDestroy()}),Et.onStart(()=>{++At==ft&&this._onStart()})}),this.totalTime=this.players.reduce((Et,Bt)=>Math.max(Et,Bt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Vt=>Vt()),this._onDoneFns=[])}init(){this.players.forEach(Vt=>Vt.init())}onStart(Vt){this._onStartFns.push(Vt)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Vt=>Vt()),this._onStartFns=[])}onDone(Vt){this._onDoneFns.push(Vt)}onDestroy(Vt){this._onDestroyFns.push(Vt)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Vt=>Vt.play())}pause(){this.players.forEach(Vt=>Vt.pause())}restart(){this.players.forEach(Vt=>Vt.restart())}finish(){this._onFinish(),this.players.forEach(Vt=>Vt.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Vt=>Vt.destroy()),this._onDestroyFns.forEach(Vt=>Vt()),this._onDestroyFns=[])}reset(){this.players.forEach(Vt=>Vt.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Vt){const nt=Vt*this.totalTime;this.players.forEach(Tt=>{const At=Tt.totalTime?Math.min(1,nt/Tt.totalTime):1;Tt.setPosition(At)})}getPosition(){const Vt=this.players.reduce((nt,Tt)=>null===nt||Tt.totalTime>nt.totalTime?Tt:nt,null);return null!=Vt?Vt.getPosition():0}beforeDestroy(){this.players.forEach(Vt=>{Vt.beforeDestroy&&Vt.beforeDestroy()})}triggerCallback(Vt){const nt="start"==Vt?this._onStartFns:this._onDoneFns;nt.forEach(Tt=>Tt()),nt.length=0}}const Dt="!"},12687:(ot,et,b)=>{"use strict";b.d(et,{$s:()=>Bt,Em:()=>xe,Kd:()=>mi,X6:()=>ne,ic:()=>qe,kH:()=>jn,mK:()=>un,qV:()=>Ue,qm:()=>We,rt:()=>en,s1:()=>ve,tE:()=>Yn,yG:()=>ct});var d=b(36895),p=b(94650),v=b(83353),T=b(8929),t=b(42654),A=b(591),C=b(21086),U=b(29521),k=b(22868),D=b(80013),P=b(92198),I=b(24850),z=b(72986),G=b(31307),K=b(75778),at=b(7625),lt=b(21281),bt=b(49643),Pt=b(62289);function nt(le,Je){return(le.getAttribute(Je)||"").match(/\S+/g)||[]}const At="cdk-describedby-message",ft="cdk-describedby-host";let Et=0,Bt=(()=>{class le{constructor(Lt,wt){this._platform=wt,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Et++,this._document=Lt,this._id=(0,p.f3M)(p.AFp)+"-"+Et++}describe(Lt,wt,Ot){if(!this._canBeDescribed(Lt,wt))return;const Te=It(wt,Ot);"string"!=typeof wt?(se(wt,this._id),this._messageRegistry.set(Te,{messageElement:wt,referenceCount:0})):this._messageRegistry.has(Te)||this._createMessageElement(wt,Ot),this._isElementDescribedByMessage(Lt,Te)||this._addMessageReference(Lt,Te)}removeDescription(Lt,wt,Ot){if(!wt||!this._isElementNode(Lt))return;const Te=It(wt,Ot);if(this._isElementDescribedByMessage(Lt,Te)&&this._removeMessageReference(Lt,Te),"string"==typeof wt){const Xe=this._messageRegistry.get(Te);Xe&&0===Xe.referenceCount&&this._deleteMessageElement(Te)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Lt=this._document.querySelectorAll(`[${ft}="${this._id}"]`);for(let wt=0;wt0!=Ot.indexOf(At));Lt.setAttribute("aria-describedby",wt.join(" "))}_addMessageReference(Lt,wt){const Ot=this._messageRegistry.get(wt);(function zt(le,Je,Lt){const wt=nt(le,Je);wt.some(Ot=>Ot.trim()==Lt.trim())||(wt.push(Lt.trim()),le.setAttribute(Je,wt.join(" ")))})(Lt,"aria-describedby",Ot.messageElement.id),Lt.setAttribute(ft,this._id),Ot.referenceCount++}_removeMessageReference(Lt,wt){const Ot=this._messageRegistry.get(wt);Ot.referenceCount--,function Vt(le,Je,Lt){const Ot=nt(le,Je).filter(Te=>Te!=Lt.trim());Ot.length?le.setAttribute(Je,Ot.join(" ")):le.removeAttribute(Je)}(Lt,"aria-describedby",Ot.messageElement.id),Lt.removeAttribute(ft)}_isElementDescribedByMessage(Lt,wt){const Ot=nt(Lt,"aria-describedby"),Te=this._messageRegistry.get(wt),Xe=Te&&Te.messageElement.id;return!!Xe&&-1!=Ot.indexOf(Xe)}_canBeDescribed(Lt,wt){if(!this._isElementNode(Lt))return!1;if(wt&&"object"==typeof wt)return!0;const Ot=null==wt?"":`${wt}`.trim(),Te=Lt.getAttribute("aria-label");return!(!Ot||Te&&Te.trim()===Ot)}_isElementNode(Lt){return Lt.nodeType===this._document.ELEMENT_NODE}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(d.K0),p.LFG(v.t4))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();function It(le,Je){return"string"==typeof le?`${Je||""}/${le}`:le}function se(le,Je){le.id||(le.id=`${At}-${Je}-${Et++}`)}class Jt{constructor(Je){this._items=Je,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=Lt=>Lt.disabled,this._pressedLetters=[],this.tabOut=new T.xQ,this.change=new T.xQ,Je instanceof p.n_E&&Je.changes.subscribe(Lt=>{if(this._activeItem){const Ot=Lt.toArray().indexOf(this._activeItem);Ot>-1&&Ot!==this._activeItemIndex&&(this._activeItemIndex=Ot)}})}skipPredicate(Je){return this._skipPredicateFn=Je,this}withWrap(Je=!0){return this._wrap=Je,this}withVerticalOrientation(Je=!0){return this._vertical=Je,this}withHorizontalOrientation(Je){return this._horizontal=Je,this}withAllowedModifierKeys(Je){return this._allowedModifierKeys=Je,this}withTypeAhead(Je=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,k.b)(Lt=>this._pressedLetters.push(Lt)),(0,D.b)(Je),(0,P.h)(()=>this._pressedLetters.length>0),(0,I.U)(()=>this._pressedLetters.join(""))).subscribe(Lt=>{const wt=this._getItemsArray();for(let Ot=1;Ot!Je[Te]||this._allowedModifierKeys.indexOf(Te)>-1);switch(Lt){case U.Mf:return void this.tabOut.next();case U.JH:if(this._vertical&&Ot){this.setNextItemActive();break}return;case U.LH:if(this._vertical&&Ot){this.setPreviousItemActive();break}return;case U.SV:if(this._horizontal&&Ot){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case U.oh:if(this._horizontal&&Ot){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case U.Sd:if(this._homeAndEnd&&Ot){this.setFirstItemActive();break}return;case U.uR:if(this._homeAndEnd&&Ot){this.setLastItemActive();break}return;default:return void((Ot||(0,U.Vb)(Je,"shiftKey"))&&(Je.key&&1===Je.key.length?this._letterKeyStream.next(Je.key.toLocaleUpperCase()):(Lt>=U.A&&Lt<=U.Z||Lt>=U.xE&&Lt<=U.aO)&&this._letterKeyStream.next(String.fromCharCode(Lt))))}this._pressedLetters=[],Je.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(Je){const Lt=this._getItemsArray(),wt="number"==typeof Je?Je:Lt.indexOf(Je);this._activeItem=Lt[wt]??null,this._activeItemIndex=wt}_setActiveItemByDelta(Je){this._wrap?this._setActiveInWrapMode(Je):this._setActiveInDefaultMode(Je)}_setActiveInWrapMode(Je){const Lt=this._getItemsArray();for(let wt=1;wt<=Lt.length;wt++){const Ot=(this._activeItemIndex+Je*wt+Lt.length)%Lt.length;if(!this._skipPredicateFn(Lt[Ot]))return void this.setActiveItem(Ot)}}_setActiveInDefaultMode(Je){this._setActiveItemByIndex(this._activeItemIndex+Je,Je)}_setActiveItemByIndex(Je,Lt){const wt=this._getItemsArray();if(wt[Je]){for(;this._skipPredicateFn(wt[Je]);)if(!wt[Je+=Lt])return;this.setActiveItem(Je)}}_getItemsArray(){return this._items instanceof p.n_E?this._items.toArray():this._items}}class ve extends Jt{setActiveItem(Je){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Je),this.activeItem&&this.activeItem.setActiveStyles()}}class xe extends Jt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Je){return this._origin=Je,this}setActiveItem(Je){super.setActiveItem(Je),this.activeItem&&this.activeItem.focus(this._origin)}}let qe=(()=>{class le{constructor(Lt){this._platform=Lt}isDisabled(Lt){return Lt.hasAttribute("disabled")}isVisible(Lt){return function Xt(le){return!!(le.offsetWidth||le.offsetHeight||"function"==typeof le.getClientRects&&le.getClientRects().length)}(Lt)&&"visible"===getComputedStyle(Lt).visibility}isTabbable(Lt){if(!this._platform.isBrowser)return!1;const wt=function $e(le){try{return le.frameElement}catch{return null}}(function ye(le){return le.ownerDocument&&le.ownerDocument.defaultView||window}(Lt));if(wt&&(-1===Pe(wt)||!this.isVisible(wt)))return!1;let Ot=Lt.nodeName.toLowerCase(),Te=Pe(Lt);return Lt.hasAttribute("contenteditable")?-1!==Te:!("iframe"===Ot||"object"===Ot||this._platform.WEBKIT&&this._platform.IOS&&!function on(le){let Je=le.nodeName.toLowerCase(),Lt="input"===Je&&le.type;return"text"===Lt||"password"===Lt||"select"===Je||"textarea"===Je}(Lt))&&("audio"===Ot?!!Lt.hasAttribute("controls")&&-1!==Te:"video"===Ot?-1!==Te&&(null!==Te||this._platform.FIREFOX||Lt.hasAttribute("controls")):Lt.tabIndex>=0)}isFocusable(Lt,wt){return function _n(le){return!function ae(le){return function de(le){return"input"==le.nodeName.toLowerCase()}(le)&&"hidden"==le.type}(le)&&(function we(le){let Je=le.nodeName.toLowerCase();return"input"===Je||"select"===Je||"button"===Je||"textarea"===Je}(le)||function Kt(le){return function Wt(le){return"a"==le.nodeName.toLowerCase()}(le)&&le.hasAttribute("href")}(le)||le.hasAttribute("contenteditable")||re(le))}(Lt)&&!this.isDisabled(Lt)&&(wt?.ignoreVisibility||this.isVisible(Lt))}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(v.t4))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();function re(le){if(!le.hasAttribute("tabindex")||void 0===le.tabIndex)return!1;let Je=le.getAttribute("tabindex");return!(!Je||isNaN(parseInt(Je,10)))}function Pe(le){if(!re(le))return null;const Je=parseInt(le.getAttribute("tabindex")||"",10);return isNaN(Je)?-1:Je}class gn{constructor(Je,Lt,wt,Ot,Te=!1){this._element=Je,this._checker=Lt,this._ngZone=wt,this._document=Ot,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Te||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Je){this._enabled=Je,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Je,this._startAnchor),this._toggleAnchorTabIndex(Je,this._endAnchor))}destroy(){const Je=this._startAnchor,Lt=this._endAnchor;Je&&(Je.removeEventListener("focus",this.startAnchorListener),Je.remove()),Lt&&(Lt.removeEventListener("focus",this.endAnchorListener),Lt.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(Je){return new Promise(Lt=>{this._executeOnStable(()=>Lt(this.focusInitialElement(Je)))})}focusFirstTabbableElementWhenReady(Je){return new Promise(Lt=>{this._executeOnStable(()=>Lt(this.focusFirstTabbableElement(Je)))})}focusLastTabbableElementWhenReady(Je){return new Promise(Lt=>{this._executeOnStable(()=>Lt(this.focusLastTabbableElement(Je)))})}_getRegionBoundary(Je){const Lt=this._element.querySelectorAll(`[cdk-focus-region-${Je}], [cdkFocusRegion${Je}], [cdk-focus-${Je}]`);return"start"==Je?Lt.length?Lt[0]:this._getFirstTabbableElement(this._element):Lt.length?Lt[Lt.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Je){const Lt=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Lt){if(!this._checker.isFocusable(Lt)){const wt=this._getFirstTabbableElement(Lt);return wt?.focus(Je),!!wt}return Lt.focus(Je),!0}return this.focusFirstTabbableElement(Je)}focusFirstTabbableElement(Je){const Lt=this._getRegionBoundary("start");return Lt&&Lt.focus(Je),!!Lt}focusLastTabbableElement(Je){const Lt=this._getRegionBoundary("end");return Lt&&Lt.focus(Je),!!Lt}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Je){if(this._checker.isFocusable(Je)&&this._checker.isTabbable(Je))return Je;const Lt=Je.children;for(let wt=0;wt=0;wt--){const Ot=Lt[wt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Lt[wt]):null;if(Ot)return Ot}return null}_createAnchor(){const Je=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Je),Je.classList.add("cdk-visually-hidden"),Je.classList.add("cdk-focus-trap-anchor"),Je.setAttribute("aria-hidden","true"),Je}_toggleAnchorTabIndex(Je,Lt){Je?Lt.setAttribute("tabindex","0"):Lt.removeAttribute("tabindex")}toggleAnchors(Je){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Je,this._startAnchor),this._toggleAnchorTabIndex(Je,this._endAnchor))}_executeOnStable(Je){this._ngZone.isStable?Je():this._ngZone.onStable.pipe((0,z.q)(1)).subscribe(Je)}}let Ue=(()=>{class le{constructor(Lt,wt,Ot){this._checker=Lt,this._ngZone=wt,this._document=Ot}create(Lt,wt=!1){return new gn(Lt,this._checker,this._ngZone,this._document,wt)}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(qe),p.LFG(p.R0b),p.LFG(d.K0))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),un=(()=>{class le{constructor(Lt,wt,Ot){this._elementRef=Lt,this._focusTrapFactory=wt,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(Lt){this.focusTrap.enabled=(0,lt.Ig)(Lt)}get autoCapture(){return this._autoCapture}set autoCapture(Lt){this._autoCapture=(0,lt.Ig)(Lt)}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(Lt){const wt=Lt.autoCapture;wt&&!wt.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,v.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.Y36(p.SBq),p.Y36(Ue),p.Y36(d.K0))},le.\u0275dir=p.lG2({type:le,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[p.TTD]}),le})();function ne(le){return 0===le.buttons||0===le.offsetX&&0===le.offsetY}function ct(le){const Je=le.touches&&le.touches[0]||le.changedTouches&&le.changedTouches[0];return!(!Je||-1!==Je.identifier||null!=Je.radiusX&&1!==Je.radiusX||null!=Je.radiusY&&1!==Je.radiusY)}const it=new p.OlP("cdk-input-modality-detector-options"),kt={ignoreKeys:[U.zL,U.jx,U.b2,U.MW,U.JU]},oe=(0,v.i$)({passive:!0,capture:!0});let Ce=(()=>{class le{constructor(Lt,wt,Ot,Te){this._platform=Lt,this._mostRecentTarget=null,this._modality=new A.X(null),this._lastTouchMs=0,this._onKeydown=Xe=>{this._options?.ignoreKeys?.some(Fe=>Fe===Xe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,v.sA)(Xe))},this._onMousedown=Xe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ne(Xe)?"keyboard":"mouse"),this._mostRecentTarget=(0,v.sA)(Xe))},this._onTouchstart=Xe=>{ct(Xe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,v.sA)(Xe))},this._options={...kt,...Te},this.modalityDetected=this._modality.pipe((0,G.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,K.x)()),Lt.isBrowser&&wt.runOutsideAngular(()=>{Ot.addEventListener("keydown",this._onKeydown,oe),Ot.addEventListener("mousedown",this._onMousedown,oe),Ot.addEventListener("touchstart",this._onTouchstart,oe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,oe),document.removeEventListener("mousedown",this._onMousedown,oe),document.removeEventListener("touchstart",this._onTouchstart,oe))}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(v.t4),p.LFG(p.R0b),p.LFG(d.K0),p.LFG(it,8))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const Ee=new p.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Pn(){return null}}),Ln=new p.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let mi=(()=>{class le{constructor(Lt,wt,Ot,Te){this._ngZone=wt,this._defaultOptions=Te,this._document=Ot,this._liveElement=Lt||this._createLiveElement()}announce(Lt,...wt){const Ot=this._defaultOptions;let Te,Xe;return 1===wt.length&&"number"==typeof wt[0]?Xe=wt[0]:[Te,Xe]=wt,this.clear(),clearTimeout(this._previousTimeout),Te||(Te=Ot&&Ot.politeness?Ot.politeness:"polite"),null==Xe&&Ot&&(Xe=Ot.duration),this._liveElement.setAttribute("aria-live",Te),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Fe=>this._currentResolve=Fe)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Lt,"number"==typeof Xe&&(this._previousTimeout=setTimeout(()=>this.clear(),Xe)),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 Lt="cdk-live-announcer-element",wt=this._document.getElementsByClassName(Lt),Ot=this._document.createElement("div");for(let Te=0;Te{class le{constructor(Lt,wt,Ot,Te,Xe){this._ngZone=Lt,this._platform=wt,this._inputModalityDetector=Ot,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=Fe=>{for(let he=(0,v.sA)(Fe);he;he=he.parentElement)"focus"===Fe.type?this._onFocus(Fe,he):this._onBlur(Fe,he)},this._document=Te,this._detectionMode=Xe?.detectionMode||0}monitor(Lt,wt=!1){const Ot=(0,lt.fI)(Lt);if(!this._platform.isBrowser||1!==Ot.nodeType)return(0,C.of)(null);const Te=(0,v.kV)(Ot)||this._getDocument(),Xe=this._elementInfo.get(Ot);if(Xe)return wt&&(Xe.checkChildren=!0),Xe.subject;const Fe={checkChildren:wt,subject:new T.xQ,rootNode:Te};return this._elementInfo.set(Ot,Fe),this._registerGlobalListeners(Fe),Fe.subject}stopMonitoring(Lt){const wt=(0,lt.fI)(Lt),Ot=this._elementInfo.get(wt);Ot&&(Ot.subject.complete(),this._setClasses(wt),this._elementInfo.delete(wt),this._removeGlobalListeners(Ot))}focusVia(Lt,wt,Ot){const Te=(0,lt.fI)(Lt);Te===this._getDocument().activeElement?this._getClosestElementsInfo(Te).forEach(([Fe,Tn])=>this._originChanged(Fe,wt,Tn)):(this._setOrigin(wt),"function"==typeof Te.focus&&Te.focus(Ot))}ngOnDestroy(){this._elementInfo.forEach((Lt,wt)=>this.stopMonitoring(wt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Lt){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Lt)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Lt&&this._isLastInteractionFromInputLabel(Lt)?"mouse":"program"}_shouldBeAttributedToTouch(Lt){return 1===this._detectionMode||!!Lt?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Lt,wt){Lt.classList.toggle("cdk-focused",!!wt),Lt.classList.toggle("cdk-touch-focused","touch"===wt),Lt.classList.toggle("cdk-keyboard-focused","keyboard"===wt),Lt.classList.toggle("cdk-mouse-focused","mouse"===wt),Lt.classList.toggle("cdk-program-focused","program"===wt)}_setOrigin(Lt,wt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Lt,this._originFromTouchInteraction="touch"===Lt&&wt,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Lt,wt){const Ot=this._elementInfo.get(wt),Te=(0,v.sA)(Lt);!Ot||!Ot.checkChildren&&wt!==Te||this._originChanged(wt,this._getFocusOrigin(Te),Ot)}_onBlur(Lt,wt){const Ot=this._elementInfo.get(wt);!Ot||Ot.checkChildren&&Lt.relatedTarget instanceof Node&&wt.contains(Lt.relatedTarget)||(this._setClasses(wt),this._emitOrigin(Ot,null))}_emitOrigin(Lt,wt){Lt.subject.observers.length&&this._ngZone.run(()=>Lt.subject.next(wt))}_registerGlobalListeners(Lt){if(!this._platform.isBrowser)return;const wt=Lt.rootNode,Ot=this._rootNodeFocusListenerCount.get(wt)||0;Ot||this._ngZone.runOutsideAngular(()=>{wt.addEventListener("focus",this._rootNodeFocusAndBlurListener,fi),wt.addEventListener("blur",this._rootNodeFocusAndBlurListener,fi)}),this._rootNodeFocusListenerCount.set(wt,Ot+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,at.R)(this._stopInputModalityDetector)).subscribe(Te=>{this._setOrigin(Te,!0)}))}_removeGlobalListeners(Lt){const wt=Lt.rootNode;if(this._rootNodeFocusListenerCount.has(wt)){const Ot=this._rootNodeFocusListenerCount.get(wt);Ot>1?this._rootNodeFocusListenerCount.set(wt,Ot-1):(wt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,fi),wt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,fi),this._rootNodeFocusListenerCount.delete(wt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Lt,wt,Ot){this._setClasses(Lt,wt),this._emitOrigin(Ot,wt),this._lastFocusOrigin=wt}_getClosestElementsInfo(Lt){const wt=[];return this._elementInfo.forEach((Ot,Te)=>{(Te===Lt||Ot.checkChildren&&Te.contains(Lt))&&wt.push([Te,Ot])}),wt}_isLastInteractionFromInputLabel(Lt){const{_mostRecentTarget:wt,mostRecentModality:Ot}=this._inputModalityDetector;if("mouse"!==Ot||!wt||wt===Lt||"INPUT"!==Lt.nodeName&&"TEXTAREA"!==Lt.nodeName||Lt.disabled)return!1;const Te=Lt.labels;if(Te)for(let Xe=0;Xe{class le{constructor(Lt,wt){this._elementRef=Lt,this._focusMonitor=wt,this._focusOrigin=null,this.cdkFocusChange=new p.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const Lt=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Lt,1===Lt.nodeType&&Lt.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(wt=>{this._focusOrigin=wt,this.cdkFocusChange.emit(wt)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.Y36(p.SBq),p.Y36(Yn))},le.\u0275dir=p.lG2({type:le,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),le})();const Ye="cdk-high-contrast-black-on-white",fn="cdk-high-contrast-white-on-black",ze="cdk-high-contrast-active";let We=(()=>{class le{constructor(Lt,wt){this._platform=Lt,this._document=wt,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 Lt=this._document.createElement("div");Lt.style.backgroundColor="rgb(1,2,3)",Lt.style.position="absolute",this._document.body.appendChild(Lt);const wt=this._document.defaultView||window,Ot=wt&&wt.getComputedStyle?wt.getComputedStyle(Lt):null,Te=(Ot&&Ot.backgroundColor||"").replace(/ /g,"");switch(Lt.remove(),Te){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 Lt=this._document.body.classList;Lt.remove(ze,Ye,fn),this._hasCheckedHighContrastMode=!0;const wt=this.getHighContrastMode();1===wt?Lt.add(ze,Ye):2===wt&&Lt.add(ze,fn)}}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(v.t4),p.LFG(d.K0))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),en=(()=>{class le{constructor(Lt){Lt._applyBodyHighContrastModeCssClasses()}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(We))},le.\u0275mod=p.oAB({type:le}),le.\u0275inj=p.cJS({imports:[bt.Q8]}),le})()},40445:(ot,et,b)=>{"use strict";b.d(et,{Is:()=>C,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 C=(()=>{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:(ot,et,b)=>{"use strict";b.d(et,{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 U{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 U.\u0275fac=function(D){return new(D||U)(p.LFG(d.K0))},U.\u0275prov=p.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})()},21281:(ot,et,b)=>{"use strict";b.d(et,{Eq:()=>t,HM:()=>A,Ig:()=>p,du:()=>U,fI:()=>C,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 C(k){return k instanceof d.SBq?k.nativeElement:k}function U(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:(ot,et,b)=>{"use strict";b.d(et,{A8:()=>P,Ov:()=>k,Z9:()=>t,eX:()=>U,k:()=>I,o2:()=>T,yy:()=>C});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 C{applyChanges(G,K,at,lt,bt){G.forEachOperation((Pt,Dt,zt)=>{let Vt,nt;if(null==Pt.previousIndex){const Tt=at(Pt,Dt,zt);Vt=K.createEmbeddedView(Tt.templateRef,Tt.context,Tt.index),nt=1}else null==zt?(K.remove(Dt),nt=3):(Vt=K.get(Dt),K.move(Vt,zt),nt=2);bt&&bt({context:Vt?.context,operation:nt,record:Pt})})}detach(){}}class U{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(G,K,at,lt,bt){G.forEachOperation((Pt,Dt,zt)=>{let Vt,nt;null==Pt.previousIndex?(Vt=this._insertView(()=>at(Pt,Dt,zt),zt,K,lt(Pt)),nt=Vt?1:0):null==zt?(this._detachAndCacheView(Dt,K),nt=3):(Vt=this._moveView(Dt,zt,K,lt(Pt)),nt=2),bt&&bt({context:Vt?.context,operation:nt,record:Pt})})}detach(){for(const G of this._viewCache)G.destroy();this._viewCache=[]}_insertView(G,K,at,lt){const bt=this._insertViewFromCache(K,at);if(bt)return void(bt.context.$implicit=lt);const Pt=G();return at.createEmbeddedView(Pt.templateRef,Pt.context,Pt.index)}_detachAndCacheView(G,K){const at=K.detach(G);this._maybeCacheView(at,K)}_moveView(G,K,at,lt){const bt=at.get(G);return at.move(bt,K),bt.context.$implicit=lt,bt}_maybeCacheView(G,K){if(this._viewCache.lengththis._markSelected(bt)):this._markSelected(K[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(at=>this._markSelected(at));const K=this._hasQueuedChanges();return this._emitChangeEvent(),K}deselect(...G){this._verifyValueAssignment(G),G.forEach(at=>this._unmarkSelected(at));const K=this._hasQueuedChanges();return this._emitChangeEvent(),K}setSelection(...G){this._verifyValueAssignment(G);const K=this.selected,at=new Set(G);G.forEach(bt=>this._markSelected(bt)),K.filter(bt=>!at.has(bt)).forEach(bt=>this._unmarkSelected(bt));const lt=this._hasQueuedChanges();return this._emitChangeEvent(),lt}toggle(G){return this.isSelected(G)?this.deselect(G):this.select(G)}clear(G=!0){this._unmarkAll();const K=this._hasQueuedChanges();return G&&this._emitChangeEvent(),K}isSelected(G){if(this.compareWith){for(const K of this._selection)if(this.compareWith(K,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(K,at){for(let lt of this._listeners)lt(K,at)}listen(K){return this._listeners.push(K),()=>{this._listeners=this._listeners.filter(at=>K!==at)}}ngOnDestroy(){this._listeners=[]}}return z.\u0275fac=function(K){return new(K||z)},z.\u0275prov=v.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();const I=new v.OlP("_ViewRepeater")},73555:(ot,et,b)=>{"use strict";b.d(et,{Wj:()=>fi,Zt:()=>le,_t:()=>Je,bA:()=>ye});var d=b(94650),p=b(36895),v=b(67376),T=b(83353),t=b(21281),A=b(12687),C=b(8929),U=b(42654),k=b(61715),D=b(90352),P=b(56498),I=b(36787),z=b(7625),G=b(1059),K=b(24850),at=b(72986),lt=b(22868),bt=b(87545),Pt=b(40445);function Dt(Lt,wt,Ot){for(let Te in wt)if(wt.hasOwnProperty(Te)){const Xe=wt[Te];Xe?Lt.setProperty(Te,Xe,Ot?.has(Te)?"important":""):Lt.removeProperty(Te)}return Lt}function zt(Lt,wt){const Ot=wt?"":"none";Dt(Lt.style,{"touch-action":wt?"":"none","-webkit-user-drag":wt?"":"none","-webkit-tap-highlight-color":wt?"":"transparent","user-select":Ot,"-ms-user-select":Ot,"-webkit-user-select":Ot,"-moz-user-select":Ot})}function Vt(Lt,wt,Ot){Dt(Lt.style,{position:wt?"":"fixed",top:wt?"":"0",opacity:wt?"":"0",left:wt?"":"-999em"},Ot)}function nt(Lt,wt){return wt&&"none"!=wt?Lt+" "+wt:Lt}function Tt(Lt){const wt=Lt.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Lt)*wt}function ft(Lt,wt){return Lt.getPropertyValue(wt).split(",").map(Te=>Te.trim())}function Et(Lt){const wt=Lt.getBoundingClientRect();return{top:wt.top,right:wt.right,bottom:wt.bottom,left:wt.left,width:wt.width,height:wt.height,x:wt.x,y:wt.y}}function Bt(Lt,wt,Ot){const{top:Te,bottom:Xe,left:Fe,right:Tn}=Lt;return Ot>=Te&&Ot<=Xe&&wt>=Fe&&wt<=Tn}function It(Lt,wt,Ot){Lt.top+=wt,Lt.bottom=Lt.top+Lt.height,Lt.left+=Ot,Lt.right=Lt.left+Lt.width}function se(Lt,wt,Ot,Te){const{top:Xe,right:Fe,bottom:Tn,left:he,width:Re,height:En}=Lt,gi=Re*wt,go=En*wt;return Te>Xe-go&&Tehe-gi&&Ot{this.positions.set(Ot,{scrollPosition:{top:Ot.scrollTop,left:Ot.scrollLeft},clientRect:Et(Ot)})})}handleScroll(wt){const Ot=(0,T.sA)(wt),Te=this.positions.get(Ot);if(!Te)return null;const Xe=Te.scrollPosition;let Fe,Tn;if(Ot===this._document){const En=this.getViewportScrollPosition();Fe=En.top,Tn=En.left}else Fe=Ot.scrollTop,Tn=Ot.scrollLeft;const he=Xe.top-Fe,Re=Xe.left-Tn;return this.positions.forEach((En,gi)=>{En.clientRect&&Ot!==gi&&Ot.contains(gi)&&It(En.clientRect,he,Re)}),Xe.top=Fe,Xe.left=Tn,{top:he,left:Re}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function ve(Lt){const wt=Lt.cloneNode(!0),Ot=wt.querySelectorAll("[id]"),Te=Lt.nodeName.toLowerCase();wt.removeAttribute("id");for(let Xe=0;Xe{if(this.beforeStarted.next(),this._handles.length){const Re=this._getTargetHandle(he);Re&&!this._disabledHandles.has(Re)&&!this.disabled&&this._initializeDragSequence(Re,he)}else this.disabled||this._initializeDragSequence(this._rootElement,he)},this._pointerMove=he=>{const Re=this._getPointerPositionOnPage(he);if(!this._hasStartedDragging){if(Math.abs(Re.x-this._pickupPositionOnPage.x)+Math.abs(Re.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const mn=Date.now()>=this._dragStartTime+this._getDragStartDelay(he),An=this._dropContainer;if(!mn)return void this._endDragSequence(he);(!An||!An.isDragging()&&!An.isReceiving())&&(he.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(he)))}return}he.preventDefault();const En=this._getConstrainedPointerPosition(Re);if(this._hasMoved=!0,this._lastKnownPointerPosition=Re,this._updatePointerDirectionDelta(En),this._dropContainer)this._updateActiveDropContainer(En,Re);else{const gi=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,go=this._activeTransform;go.x=En.x-gi.x+this._passiveTransform.x,go.y=En.y-gi.y+this._passiveTransform.y,this._applyRootElementTransform(go.x,go.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:En,event:he,distance:this._getDragDistance(En),delta:this._pointerDirectionDelta})})},this._pointerUp=he=>{this._endDragSequence(he)},this._nativeDragStart=he=>{if(this._handles.length){const Re=this._getTargetHandle(he);Re&&!this._disabledHandles.has(Re)&&!this.disabled&&he.preventDefault()}else this.disabled||he.preventDefault()},this.withRootElement(wt).withParent(Ot.parentDragRef||null),this._parentPositions=new Jt(Te),Tn.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(wt){const Ot=(0,t.Ig)(wt);Ot!==this._disabled&&(this._disabled=Ot,this._toggleNativeDragInteractions(),this._handles.forEach(Te=>zt(Te,Ot)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(wt){this._handles=wt.map(Te=>(0,t.fI)(Te)),this._handles.forEach(Te=>zt(Te,this.disabled)),this._toggleNativeDragInteractions();const Ot=new Set;return this._disabledHandles.forEach(Te=>{this._handles.indexOf(Te)>-1&&Ot.add(Te)}),this._disabledHandles=Ot,this}withPreviewTemplate(wt){return this._previewTemplate=wt,this}withPlaceholderTemplate(wt){return this._placeholderTemplate=wt,this}withRootElement(wt){const Ot=(0,t.fI)(wt);return Ot!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{Ot.addEventListener("mousedown",this._pointerDown,we),Ot.addEventListener("touchstart",this._pointerDown,Xt),Ot.addEventListener("dragstart",this._nativeDragStart,we)}),this._initialTransform=void 0,this._rootElement=Ot),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(wt){return this._boundaryElement=wt?(0,t.fI)(wt):null,this._resizeSubscription.unsubscribe(),wt&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(wt){return this._parentDragRef=wt,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(wt){!this._disabledHandles.has(wt)&&this._handles.indexOf(wt)>-1&&(this._disabledHandles.add(wt),zt(wt,!0))}enableHandle(wt){this._disabledHandles.has(wt)&&(this._disabledHandles.delete(wt),zt(wt,this.disabled))}withDirection(wt){return this._direction=wt,this}_withDropContainer(wt){this._dropContainer=wt}getFreeDragPosition(){const wt=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:wt.x,y:wt.y}}setFreeDragPosition(wt){return this._activeTransform={x:0,y:0},this._passiveTransform.x=wt.x,this._passiveTransform.y=wt.y,this._dropContainer||this._applyRootElementTransform(wt.x,wt.y),this}withPreviewContainer(wt){return this._previewContainer=wt,this}_sortFromLastPointerPosition(){const wt=this._lastKnownPointerPosition;wt&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(wt),wt)}_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(wt){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:wt}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(wt),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const Ot=this._getPointerPositionOnPage(wt);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(Ot),dropPoint:Ot,event:wt})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(wt){Pe(wt)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const Ot=this._dropContainer;if(Ot){const Te=this._rootElement,Xe=Te.parentNode,Fe=this._placeholder=this._createPlaceholderElement(),Tn=this._anchor=this._anchor||this._document.createComment(""),he=this._getShadowRoot();Xe.insertBefore(Tn,Te),this._initialTransform=Te.style.transform||"",this._preview=this._createPreviewElement(),Vt(Te,!1,Kt),this._document.body.appendChild(Xe.replaceChild(Fe,Te)),this._getPreviewInsertionPoint(Xe,he).appendChild(this._preview),this.started.next({source:this,event:wt}),Ot.start(),this._initialContainer=Ot,this._initialIndex=Ot.getItemIndex(this)}else this.started.next({source:this,event:wt}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(Ot?Ot.getScrollableParents():[])}_initializeDragSequence(wt,Ot){this._parentDragRef&&Ot.stopPropagation();const Te=this.isDragging(),Xe=Pe(Ot),Fe=!Xe&&0!==Ot.button,Tn=this._rootElement,he=(0,T.sA)(Ot),Re=!Xe&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),En=Xe?(0,A.yG)(Ot):(0,A.X6)(Ot);if(he&&he.draggable&&"mousedown"===Ot.type&&Ot.preventDefault(),Te||Fe||Re||En)return;if(this._handles.length){const _o=Tn.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=Et(this._boundaryElement));const gi=this._previewTemplate;this._pickupPositionInElement=gi&&gi.template&&!gi.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,wt,Ot);const go=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(Ot);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:go.x,y:go.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,Ot)}_cleanupDragArtifacts(wt){Vt(this._rootElement,!0,Kt),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 Ot=this._dropContainer,Te=Ot.getItemIndex(this),Xe=this._getPointerPositionOnPage(wt),Fe=this._getDragDistance(Xe),Tn=Ot._isOverContainer(Xe.x,Xe.y);this.ended.next({source:this,distance:Fe,dropPoint:Xe,event:wt}),this.dropped.next({item:this,currentIndex:Te,previousIndex:this._initialIndex,container:Ot,previousContainer:this._initialContainer,isPointerOverContainer:Tn,distance:Fe,dropPoint:Xe,event:wt}),Ot.drop(this,Te,this._initialIndex,this._initialContainer,Tn,Fe,Xe,wt),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:wt,y:Ot},{x:Te,y:Xe}){let Fe=this._initialContainer._getSiblingContainerFromPosition(this,wt,Ot);!Fe&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(wt,Ot)&&(Fe=this._initialContainer),Fe&&Fe!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=Fe,this._dropContainer.enter(this,wt,Ot,Fe===this._initialContainer&&Fe.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:Fe,currentIndex:Fe.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(Te,Xe),this._dropContainer._sortItem(this,wt,Ot,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(wt,Ot):this._applyPreviewTransform(wt-this._pickupPositionInElement.x,Ot-this._pickupPositionInElement.y))}_createPreviewElement(){const wt=this._previewTemplate,Ot=this.previewClass,Te=wt?wt.template:null;let Xe;if(Te&&wt){const Fe=wt.matchSize?this._initialClientRect:null,Tn=wt.viewContainer.createEmbeddedView(Te,wt.context);Tn.detectChanges(),Xe=on(Tn,this._document),this._previewRef=Tn,wt.matchSize?_n(Xe,Fe):Xe.style.transform=Wt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else Xe=ve(this._rootElement),_n(Xe,this._initialClientRect),this._initialTransform&&(Xe.style.transform=this._initialTransform);return Dt(Xe.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Kt),zt(Xe,!1),Xe.classList.add("cdk-drag-preview"),Xe.setAttribute("dir",this._direction),Ot&&(Array.isArray(Ot)?Ot.forEach(Fe=>Xe.classList.add(Fe)):Xe.classList.add(Ot)),Xe}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const wt=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(wt.left,wt.top);const Ot=function At(Lt){const wt=getComputedStyle(Lt),Ot=ft(wt,"transition-property"),Te=Ot.find(he=>"transform"===he||"all"===he);if(!Te)return 0;const Xe=Ot.indexOf(Te),Fe=ft(wt,"transition-duration"),Tn=ft(wt,"transition-delay");return Tt(Fe[Xe])+Tt(Tn[Xe])}(this._preview);return 0===Ot?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(Te=>{const Xe=Tn=>{(!Tn||(0,T.sA)(Tn)===this._preview&&"transform"===Tn.propertyName)&&(this._preview?.removeEventListener("transitionend",Xe),Te(),clearTimeout(Fe))},Fe=setTimeout(Xe,1.5*Ot);this._preview.addEventListener("transitionend",Xe)}))}_createPlaceholderElement(){const wt=this._placeholderTemplate,Ot=wt?wt.template:null;let Te;return Ot?(this._placeholderRef=wt.viewContainer.createEmbeddedView(Ot,wt.context),this._placeholderRef.detectChanges(),Te=on(this._placeholderRef,this._document)):Te=ve(this._rootElement),Te.style.pointerEvents="none",Te.classList.add("cdk-drag-placeholder"),Te}_getPointerPositionInElement(wt,Ot,Te){const Xe=Ot===this._rootElement?null:Ot,Fe=Xe?Xe.getBoundingClientRect():wt,Tn=Pe(Te)?Te.targetTouches[0]:Te,he=this._getViewportScrollPosition();return{x:Fe.left-wt.left+(Tn.pageX-Fe.left-he.left),y:Fe.top-wt.top+(Tn.pageY-Fe.top-he.top)}}_getPointerPositionOnPage(wt){const Ot=this._getViewportScrollPosition(),Te=Pe(wt)?wt.touches[0]||wt.changedTouches[0]||{pageX:0,pageY:0}:wt,Xe=Te.pageX-Ot.left,Fe=Te.pageY-Ot.top;if(this._ownerSVGElement){const Tn=this._ownerSVGElement.getScreenCTM();if(Tn){const he=this._ownerSVGElement.createSVGPoint();return he.x=Xe,he.y=Fe,he.matrixTransform(Tn.inverse())}}return{x:Xe,y:Fe}}_getConstrainedPointerPosition(wt){const Ot=this._dropContainer?this._dropContainer.lockAxis:null;let{x:Te,y:Xe}=this.constrainPosition?this.constrainPosition(wt,this,this._initialClientRect,this._pickupPositionInElement):wt;if("x"===this.lockAxis||"x"===Ot?Xe=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===Ot)&&(Te=this._pickupPositionOnPage.x),this._boundaryRect){const{x:Fe,y:Tn}=this._pickupPositionInElement,he=this._boundaryRect,{width:Re,height:En}=this._getPreviewRect(),gi=he.top+Tn,go=he.bottom-(En-Tn);Te=re(Te,he.left+Fe,he.right-(Re-Fe)),Xe=re(Xe,gi,go)}return{x:Te,y:Xe}}_updatePointerDirectionDelta(wt){const{x:Ot,y:Te}=wt,Xe=this._pointerDirectionDelta,Fe=this._pointerPositionAtLastDirectionChange,Tn=Math.abs(Ot-Fe.x),he=Math.abs(Te-Fe.y);return Tn>this._config.pointerDirectionChangeThreshold&&(Xe.x=Ot>Fe.x?1:-1,Fe.x=Ot),he>this._config.pointerDirectionChangeThreshold&&(Xe.y=Te>Fe.y?1:-1,Fe.y=Te),Xe}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const wt=this._handles.length>0||!this.isDragging();wt!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=wt,zt(this._rootElement,wt))}_removeRootElementListeners(wt){wt.removeEventListener("mousedown",this._pointerDown,we),wt.removeEventListener("touchstart",this._pointerDown,Xt),wt.removeEventListener("dragstart",this._nativeDragStart,we)}_applyRootElementTransform(wt,Ot){const Te=Wt(wt,Ot),Xe=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=Xe.transform&&"none"!=Xe.transform?Xe.transform:""),Xe.transform=nt(Te,this._initialTransform)}_applyPreviewTransform(wt,Ot){const Te=this._previewTemplate?.template?void 0:this._initialTransform,Xe=Wt(wt,Ot);this._preview.style.transform=nt(Xe,Te)}_getDragDistance(wt){const Ot=this._pickupPositionOnPage;return Ot?{x:wt.x-Ot.x,y:wt.y-Ot.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:wt,y:Ot}=this._passiveTransform;if(0===wt&&0===Ot||this.isDragging()||!this._boundaryElement)return;const Te=this._rootElement.getBoundingClientRect(),Xe=this._boundaryElement.getBoundingClientRect();if(0===Xe.width&&0===Xe.height||0===Te.width&&0===Te.height)return;const Fe=Xe.left-Te.left,Tn=Te.right-Xe.right,he=Xe.top-Te.top,Re=Te.bottom-Xe.bottom;Xe.width>Te.width?(Fe>0&&(wt+=Fe),Tn>0&&(wt-=Tn)):wt=0,Xe.height>Te.height?(he>0&&(Ot+=he),Re>0&&(Ot-=Re)):Ot=0,(wt!==this._passiveTransform.x||Ot!==this._passiveTransform.y)&&this.setFreeDragPosition({y:Ot,x:wt})}_getDragStartDelay(wt){const Ot=this.dragStartDelay;return"number"==typeof Ot?Ot:Pe(wt)?Ot.touch:Ot?Ot.mouse:0}_updateOnScroll(wt){const Ot=this._parentPositions.handleScroll(wt);if(Ot){const Te=(0,T.sA)(wt);this._boundaryRect&&Te!==this._boundaryElement&&Te.contains(this._boundaryElement)&&It(this._boundaryRect,Ot.top,Ot.left),this._pickupPositionOnPage.x+=Ot.left,this._pickupPositionOnPage.y+=Ot.top,this._dropContainer||(this._activeTransform.x-=Ot.left,this._activeTransform.y-=Ot.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(wt,Ot){const Te=this._previewContainer||"global";if("parent"===Te)return wt;if("global"===Te){const Xe=this._document;return Ot||Xe.fullscreenElement||Xe.webkitFullscreenElement||Xe.mozFullScreenElement||Xe.msFullscreenElement||Xe.body}return(0,t.fI)(Te)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(wt){return this._handles.find(Ot=>wt.target&&(wt.target===Ot||Ot.contains(wt.target)))}}function Wt(Lt,wt){return`translate3d(${Math.round(Lt)}px, ${Math.round(wt)}px, 0)`}function re(Lt,wt,Ot){return Math.max(wt,Math.min(Ot,Lt))}function Pe(Lt){return"t"===Lt.type[0]}function on(Lt,wt){const Ot=Lt.rootNodes;if(1===Ot.length&&Ot[0].nodeType===wt.ELEMENT_NODE)return Ot[0];const Te=wt.createElement("div");return Ot.forEach(Xe=>Te.appendChild(Xe)),Te}function _n(Lt,wt){Lt.style.width=`${wt.width}px`,Lt.style.height=`${wt.height}px`,Lt.style.transform=Wt(wt.left,wt.top)}function ye(Lt,wt,Ot){const Te=un(wt,Lt.length-1),Xe=un(Ot,Lt.length-1);if(Te===Xe)return;const Fe=Lt[Te],Tn=Xe0)return null;const he="horizontal"===this.orientation,Re=Fe.findIndex(ei=>ei.drag===wt),En=Fe[Tn],go=En.clientRect,_o=Re>Tn?1:-1,mn=this._getItemOffsetPx(Fe[Re].clientRect,go,_o),An=this._getSiblingOffsetPx(Re,Fe,_o),sn=Fe.slice();return ye(Fe,Re,Tn),Fe.forEach((ei,Zi)=>{if(sn[Zi]===ei)return;const vo=ei.drag===wt,Fo=vo?mn:An,ca=vo?wt.getPlaceholderElement():ei.drag.getRootElement();ei.offset+=Fo,he?(ca.style.transform=nt(`translate3d(${Math.round(ei.offset)}px, 0, 0)`,ei.initialTransform),It(ei.clientRect,0,Fo)):(ca.style.transform=nt(`translate3d(0, ${Math.round(ei.offset)}px, 0)`,ei.initialTransform),It(ei.clientRect,Fo,0))}),this._previousSwap.overlaps=Bt(go,Ot,Te),this._previousSwap.drag=En.drag,this._previousSwap.delta=he?Xe.x:Xe.y,{previousIndex:Re,currentIndex:Tn}}enter(wt,Ot,Te,Xe){const Fe=null==Xe||Xe<0?this._getItemIndexFromPointerPosition(wt,Ot,Te):Xe,Tn=this._activeDraggables,he=Tn.indexOf(wt),Re=wt.getPlaceholderElement();let En=Tn[Fe];if(En===wt&&(En=Tn[Fe+1]),!En&&(null==Fe||-1===Fe||Fe-1&&Tn.splice(he,1),En&&!this._dragDropRegistry.isDragging(En)){const gi=En.getRootElement();gi.parentElement.insertBefore(Re,gi),Tn.splice(Fe,0,wt)}else(0,t.fI)(this._element).appendChild(Re),Tn.push(wt);Re.style.transform="",this._cacheItemPositions()}withItems(wt){this._activeDraggables=wt.slice(),this._cacheItemPositions()}withSortPredicate(wt){this._sortPredicate=wt}reset(){this._activeDraggables.forEach(wt=>{const Ot=wt.getRootElement();if(Ot){const Te=this._itemPositions.find(Xe=>Xe.drag===wt)?.initialTransform;Ot.style.transform=Te||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(wt){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(Te=>Te.drag===wt)}updateOnScroll(wt,Ot){this._itemPositions.forEach(({clientRect:Te})=>{It(Te,wt,Ot)}),this._itemPositions.forEach(({drag:Te})=>{this._dragDropRegistry.isDragging(Te)&&Te._sortFromLastPointerPosition()})}_cacheItemPositions(){const wt="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(Ot=>{const Te=Ot.getVisibleElement();return{drag:Ot,offset:0,initialTransform:Te.style.transform||"",clientRect:Et(Te)}}).sort((Ot,Te)=>wt?Ot.clientRect.left-Te.clientRect.left:Ot.clientRect.top-Te.clientRect.top)}_getItemOffsetPx(wt,Ot,Te){const Xe="horizontal"===this.orientation;let Fe=Xe?Ot.left-wt.left:Ot.top-wt.top;return-1===Te&&(Fe+=Xe?Ot.width-wt.width:Ot.height-wt.height),Fe}_getSiblingOffsetPx(wt,Ot,Te){const Xe="horizontal"===this.orientation,Fe=Ot[wt].clientRect,Tn=Ot[wt+-1*Te];let he=Fe[Xe?"width":"height"]*Te;if(Tn){const Re=Xe?"left":"top",En=Xe?"right":"bottom";-1===Te?he-=Tn.clientRect[Re]-Fe[En]:he+=Fe[Re]-Tn.clientRect[En]}return he}_shouldEnterAsFirstChild(wt,Ot){if(!this._activeDraggables.length)return!1;const Te=this._itemPositions,Xe="horizontal"===this.orientation;if(Te[0].drag!==this._activeDraggables[0]){const Tn=Te[Te.length-1].clientRect;return Xe?wt>=Tn.right:Ot>=Tn.bottom}{const Tn=Te[0].clientRect;return Xe?wt<=Tn.left:Ot<=Tn.top}}_getItemIndexFromPointerPosition(wt,Ot,Te,Xe){const Fe="horizontal"===this.orientation,Tn=this._itemPositions.findIndex(({drag:he,clientRect:Re})=>{if(he===wt)return!1;if(Xe){const En=Fe?Xe.x:Xe.y;if(he===this._previousSwap.drag&&this._previousSwap.overlaps&&En===this._previousSwap.delta)return!1}return Fe?Ot>=Math.floor(Re.left)&&Ot=Math.floor(Re.top)&&Te!0,this.sortPredicate=()=>!0,this.beforeStarted=new C.xQ,this.entered=new C.xQ,this.exited=new C.xQ,this.dropped=new C.xQ,this.sorted=new C.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=U.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new C.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,k.F)(0,D.Z).pipe((0,z.R)(this._stopScrollTimers)).subscribe(()=>{const Tn=this._scrollNode,he=this.autoScrollStep;1===this._verticalScrollDirection?Tn.scrollBy(0,-he):2===this._verticalScrollDirection&&Tn.scrollBy(0,he),1===this._horizontalScrollDirection?Tn.scrollBy(-he,0):2===this._horizontalScrollDirection&&Tn.scrollBy(he,0)})},this.element=(0,t.fI)(wt),this._document=Te,this.withScrollableParents([this.element]),Ot.registerDropContainer(this),this._parentPositions=new Jt(Te),this._sortStrategy=new Mn(this.element,Ot),this._sortStrategy.withSortPredicate((Tn,he)=>this.sortPredicate(Tn,he,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(wt,Ot,Te,Xe){this._draggingStarted(),null==Xe&&this.sortingDisabled&&(Xe=this._draggables.indexOf(wt)),this._sortStrategy.enter(wt,Ot,Te,Xe),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:wt,container:this,currentIndex:this.getItemIndex(wt)})}exit(wt){this._reset(),this.exited.next({item:wt,container:this})}drop(wt,Ot,Te,Xe,Fe,Tn,he,Re={}){this._reset(),this.dropped.next({item:wt,currentIndex:Ot,previousIndex:Te,container:this,previousContainer:Xe,isPointerOverContainer:Fe,distance:Tn,dropPoint:he,event:Re})}withItems(wt){const Ot=this._draggables;return this._draggables=wt,wt.forEach(Te=>Te._withDropContainer(this)),this.isDragging()&&(Ot.filter(Xe=>Xe.isDragging()).every(Xe=>-1===wt.indexOf(Xe))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(wt){return this._sortStrategy.direction=wt,this}connectedTo(wt){return this._siblings=wt.slice(),this}withOrientation(wt){return this._sortStrategy.orientation=wt,this}withScrollableParents(wt){const Ot=(0,t.fI)(this.element);return this._scrollableElements=-1===wt.indexOf(Ot)?[Ot,...wt]:wt.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(wt){return this._isDragging?this._sortStrategy.getItemIndex(wt):this._draggables.indexOf(wt)}isReceiving(){return this._activeSiblings.size>0}_sortItem(wt,Ot,Te,Xe){if(this.sortingDisabled||!this._clientRect||!se(this._clientRect,.05,Ot,Te))return;const Fe=this._sortStrategy.sort(wt,Ot,Te,Xe);Fe&&this.sorted.next({previousIndex:Fe.previousIndex,currentIndex:Fe.currentIndex,container:this,item:wt})}_startScrollingIfNecessary(wt,Ot){if(this.autoScrollDisabled)return;let Te,Xe=0,Fe=0;if(this._parentPositions.positions.forEach((Tn,he)=>{he===this._document||!Tn.clientRect||Te||se(Tn.clientRect,.05,wt,Ot)&&([Xe,Fe]=function ct(Lt,wt,Ot,Te){const Xe=Ke(wt,Te),Fe=ne(wt,Ot);let Tn=0,he=0;if(Xe){const Re=Lt.scrollTop;1===Xe?Re>0&&(Tn=1):Lt.scrollHeight-Re>Lt.clientHeight&&(Tn=2)}if(Fe){const Re=Lt.scrollLeft;1===Fe?Re>0&&(he=1):Lt.scrollWidth-Re>Lt.clientWidth&&(he=2)}return[Tn,he]}(he,Tn.clientRect,wt,Ot),(Xe||Fe)&&(Te=he))}),!Xe&&!Fe){const{width:Tn,height:he}=this._viewportRuler.getViewportSize(),Re={width:Tn,height:he,top:0,right:Tn,bottom:he,left:0};Xe=Ke(Re,Ot),Fe=ne(Re,wt),Te=window}Te&&(Xe!==this._verticalScrollDirection||Fe!==this._horizontalScrollDirection||Te!==this._scrollNode)&&(this._verticalScrollDirection=Xe,this._horizontalScrollDirection=Fe,this._scrollNode=Te,(Xe||Fe)&&Te?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const wt=(0,t.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=wt.msScrollSnapType||wt.scrollSnapType||"",wt.scrollSnapType=wt.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const wt=(0,t.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(wt).clientRect}_reset(){this._isDragging=!1;const wt=(0,t.fI)(this.element).style;wt.scrollSnapType=wt.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(Ot=>Ot._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(wt,Ot){return null!=this._clientRect&&Bt(this._clientRect,wt,Ot)}_getSiblingContainerFromPosition(wt,Ot,Te){return this._siblings.find(Xe=>Xe._canReceive(wt,Ot,Te))}_canReceive(wt,Ot,Te){if(!this._clientRect||!Bt(this._clientRect,Ot,Te)||!this.enterPredicate(wt,this))return!1;const Xe=this._getShadowRoot().elementFromPoint(Ot,Te);if(!Xe)return!1;const Fe=(0,t.fI)(this.element);return Xe===Fe||Fe.contains(Xe)}_startReceiving(wt,Ot){const Te=this._activeSiblings;!Te.has(wt)&&Ot.every(Xe=>this.enterPredicate(Xe,this)||this._draggables.indexOf(Xe)>-1)&&(Te.add(wt),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(wt){this._activeSiblings.delete(wt),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(wt=>{if(this.isDragging()){const Ot=this._parentPositions.handleScroll(wt);Ot&&this._sortStrategy.updateOnScroll(Ot.top,Ot.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const wt=(0,T.kV)((0,t.fI)(this.element));this._cachedShadowRoot=wt||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const wt=this._sortStrategy.getActiveItemsSnapshot().filter(Ot=>Ot.isDragging());this._siblings.forEach(Ot=>Ot._startReceiving(this,wt))}}function Ke(Lt,wt){const{top:Ot,bottom:Te,height:Xe}=Lt,Fe=.05*Xe;return wt>=Ot-Fe&&wt<=Ot+Fe?1:wt>=Te-Fe&&wt<=Te+Fe?2:0}function ne(Lt,wt){const{left:Ot,right:Te,width:Xe}=Lt,Fe=.05*Xe;return wt>=Ot-Fe&&wt<=Ot+Fe?1:wt>=Te-Fe&&wt<=Te+Fe?2:0}const it=(0,T.i$)({passive:!1,capture:!0});let kt=(()=>{class Lt{constructor(Ot,Te){this._ngZone=Ot,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=Xe=>Xe.isDragging(),this.pointerMove=new C.xQ,this.pointerUp=new C.xQ,this.scroll=new C.xQ,this._preventDefaultWhileDragging=Xe=>{this._activeDragInstances.length>0&&Xe.preventDefault()},this._persistentTouchmoveListener=Xe=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&Xe.preventDefault(),this.pointerMove.next(Xe))},this._document=Te}registerDropContainer(Ot){this._dropInstances.has(Ot)||this._dropInstances.add(Ot)}registerDragItem(Ot){this._dragInstances.add(Ot),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,it)})}removeDropContainer(Ot){this._dropInstances.delete(Ot)}removeDragItem(Ot){this._dragInstances.delete(Ot),this.stopDragging(Ot),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,it)}startDragging(Ot,Te){if(!(this._activeDragInstances.indexOf(Ot)>-1)&&(this._activeDragInstances.push(Ot),1===this._activeDragInstances.length)){const Xe=Te.type.startsWith("touch");this._globalListeners.set(Xe?"touchend":"mouseup",{handler:Fe=>this.pointerUp.next(Fe),options:!0}).set("scroll",{handler:Fe=>this.scroll.next(Fe),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:it}),Xe||this._globalListeners.set("mousemove",{handler:Fe=>this.pointerMove.next(Fe),options:it}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((Fe,Tn)=>{this._document.addEventListener(Tn,Fe.handler,Fe.options)})})}}stopDragging(Ot){const Te=this._activeDragInstances.indexOf(Ot);Te>-1&&(this._activeDragInstances.splice(Te,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(Ot){return this._activeDragInstances.indexOf(Ot)>-1}scrolled(Ot){const Te=[this.scroll];return Ot&&Ot!==this._document&&Te.push(new P.y(Xe=>this._ngZone.runOutsideAngular(()=>{const Tn=he=>{this._activeDragInstances.length&&Xe.next(he)};return Ot.addEventListener("scroll",Tn,!0),()=>{Ot.removeEventListener("scroll",Tn,!0)}}))),(0,I.T)(...Te)}ngOnDestroy(){this._dragInstances.forEach(Ot=>this.removeDragItem(Ot)),this._dropInstances.forEach(Ot=>this.removeDropContainer(Ot)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((Ot,Te)=>{this._document.removeEventListener(Te,Ot.handler,Ot.options)}),this._globalListeners.clear()}}return Lt.\u0275fac=function(Ot){return new(Ot||Lt)(d.LFG(d.R0b),d.LFG(p.K0))},Lt.\u0275prov=d.Yz7({token:Lt,factory:Lt.\u0275fac,providedIn:"root"}),Lt})();const Gt={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let oe=(()=>{class Lt{constructor(Ot,Te,Xe,Fe){this._document=Ot,this._ngZone=Te,this._viewportRuler=Xe,this._dragDropRegistry=Fe}createDrag(Ot,Te=Gt){return new de(Ot,Te,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(Ot){return new ri(Ot,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return Lt.\u0275fac=function(Ot){return new(Ot||Lt)(d.LFG(p.K0),d.LFG(d.R0b),d.LFG(v.rL),d.LFG(kt))},Lt.\u0275prov=d.Yz7({token:Lt,factory:Lt.\u0275fac,providedIn:"root"}),Lt})();const Ce=new d.OlP("CDK_DRAG_PARENT"),Ee=new d.OlP("CdkDropListGroup"),Ln=new d.OlP("CDK_DRAG_CONFIG");let Oi=0;const ho=new d.OlP("CdkDropList");let fi=(()=>{class Lt{constructor(Ot,Te,Xe,Fe,Tn,he,Re){this.element=Ot,this._changeDetectorRef=Xe,this._scrollDispatcher=Fe,this._dir=Tn,this._group=he,this._destroyed=new C.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+Oi++,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=Te.createDropList(Ot),this._dropListRef.data=this,Re&&this._assignDefaults(Re),this._dropListRef.enterPredicate=(En,gi)=>this.enterPredicate(En.data,gi.data),this._dropListRef.sortPredicate=(En,gi,go)=>this.sortPredicate(En,gi.data,go.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),Lt._dropLists.push(this),he&&he._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(Ot){this._dropListRef.disabled=this._disabled=(0,t.Ig)(Ot)}addItem(Ot){this._unsortedItems.add(Ot),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(Ot){this._unsortedItems.delete(Ot),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((Ot,Te)=>Ot._dragRef.getVisibleElement().compareDocumentPosition(Te._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const Ot=Lt._dropLists.indexOf(this);Ot>-1&&Lt._dropLists.splice(Ot,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(Ot){this._dir&&this._dir.change.pipe((0,G.O)(this._dir.value),(0,z.R)(this._destroyed)).subscribe(Te=>Ot.withDirection(Te)),Ot.beforeStarted.subscribe(()=>{const Te=(0,t.Eq)(this.connectedTo).map(Xe=>"string"==typeof Xe?Lt._dropLists.find(Tn=>Tn.id===Xe):Xe);if(this._group&&this._group._items.forEach(Xe=>{-1===Te.indexOf(Xe)&&Te.push(Xe)}),!this._scrollableParentsResolved){const Xe=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(Fe=>Fe.getElementRef().nativeElement);this._dropListRef.withScrollableParents(Xe),this._scrollableParentsResolved=!0}Ot.disabled=this.disabled,Ot.lockAxis=this.lockAxis,Ot.sortingDisabled=(0,t.Ig)(this.sortingDisabled),Ot.autoScrollDisabled=(0,t.Ig)(this.autoScrollDisabled),Ot.autoScrollStep=(0,t.su)(this.autoScrollStep,2),Ot.connectedTo(Te.filter(Xe=>Xe&&Xe!==this).map(Xe=>Xe._dropListRef)).withOrientation(this.orientation)})}_handleEvents(Ot){Ot.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),Ot.entered.subscribe(Te=>{this.entered.emit({container:this,item:Te.item.data,currentIndex:Te.currentIndex})}),Ot.exited.subscribe(Te=>{this.exited.emit({container:this,item:Te.item.data}),this._changeDetectorRef.markForCheck()}),Ot.sorted.subscribe(Te=>{this.sorted.emit({previousIndex:Te.previousIndex,currentIndex:Te.currentIndex,container:this,item:Te.item.data})}),Ot.dropped.subscribe(Te=>{this.dropped.emit({previousIndex:Te.previousIndex,currentIndex:Te.currentIndex,previousContainer:Te.previousContainer.data,container:Te.container.data,item:Te.item.data,isPointerOverContainer:Te.isPointerOverContainer,distance:Te.distance,dropPoint:Te.dropPoint,event:Te.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(Ot){const{lockAxis:Te,draggingDisabled:Xe,sortingDisabled:Fe,listAutoScrollDisabled:Tn,listOrientation:he}=Ot;this.disabled=Xe??!1,this.sortingDisabled=Fe??!1,this.autoScrollDisabled=Tn??!1,this.orientation=he||"vertical",Te&&(this.lockAxis=Te)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(Ot=>Ot._dragRef))}}return Lt._dropLists=[],Lt.\u0275fac=function(Ot){return new(Ot||Lt)(d.Y36(d.SBq),d.Y36(oe),d.Y36(d.sBO),d.Y36(v.mF),d.Y36(Pt.Is,8),d.Y36(Ee,12),d.Y36(Ln,8))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(Ot,Te){2&Ot&&(d.uIk("id",Te.id),d.ekj("cdk-drop-list-disabled",Te.disabled)("cdk-drop-list-dragging",Te._dropListRef.isDragging())("cdk-drop-list-receiving",Te._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:Ee,useValue:void 0},{provide:ho,useExisting:Lt}])]}),Lt})();const Yn=new d.OlP("CdkDragHandle"),Ye=new d.OlP("CdkDragPlaceholder"),ze=new d.OlP("CdkDragPreview");let le=(()=>{class Lt{constructor(Ot,Te,Xe,Fe,Tn,he,Re,En,gi,go,_o){this.element=Ot,this.dropContainer=Te,this._ngZone=Fe,this._viewContainerRef=Tn,this._dir=Re,this._changeDetectorRef=gi,this._selfHandle=go,this._parentDrag=_o,this._destroyed=new C.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(mn=>{const An=this._dragRef.moved.pipe((0,K.U)(sn=>({source:this,pointerPosition:sn.pointerPosition,event:sn.event,delta:sn.delta,distance:sn.distance}))).subscribe(mn);return()=>{An.unsubscribe()}}),this._dragRef=En.createDrag(Ot,{dragStartThreshold:he&&null!=he.dragStartThreshold?he.dragStartThreshold:5,pointerDirectionChangeThreshold:he&&null!=he.pointerDirectionChangeThreshold?he.pointerDirectionChangeThreshold:5,zIndex:he?.zIndex}),this._dragRef.data=this,Lt._dragInstances.push(this),he&&this._assignDefaults(he),Te&&(this._dragRef._withDropContainer(Te._dropListRef),Te.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(Ot){this._disabled=(0,t.Ig)(Ot),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(Ot){this._dragRef.setFreeDragPosition(Ot)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,at.q)(1),(0,z.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(Ot){const Te=Ot.rootElementSelector,Xe=Ot.freeDragPosition;Te&&!Te.firstChange&&this._updateRootElement(),Xe&&!Xe.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const Ot=Lt._dragInstances.indexOf(this);Ot>-1&&Lt._dragInstances.splice(Ot,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const Ot=this.element.nativeElement;let Te=Ot;this.rootElementSelector&&(Te=void 0!==Ot.closest?Ot.closest(this.rootElementSelector):Ot.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(Te||Ot)}_getBoundaryElement(){const Ot=this.boundaryElement;return Ot?"string"==typeof Ot?this.element.nativeElement.closest(Ot):(0,t.fI)(Ot):null}_syncInputs(Ot){Ot.beforeStarted.subscribe(()=>{if(!Ot.isDragging()){const Te=this._dir,Xe=this.dragStartDelay,Fe=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,Tn=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;Ot.disabled=this.disabled,Ot.lockAxis=this.lockAxis,Ot.dragStartDelay="object"==typeof Xe&&Xe?Xe:(0,t.su)(Xe),Ot.constrainPosition=this.constrainPosition,Ot.previewClass=this.previewClass,Ot.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(Fe).withPreviewTemplate(Tn).withPreviewContainer(this.previewContainer||"global"),Te&&Ot.withDirection(Te.value)}}),Ot.beforeStarted.pipe((0,at.q)(1)).subscribe(()=>{if(this._parentDrag)return void Ot.withParent(this._parentDrag._dragRef);let Te=this.element.nativeElement.parentElement;for(;Te;){if(Te.classList.contains("cdk-drag")){Ot.withParent(Lt._dragInstances.find(Xe=>Xe.element.nativeElement===Te)?._dragRef||null);break}Te=Te.parentElement}})}_handleEvents(Ot){Ot.started.subscribe(Te=>{this.started.emit({source:this,event:Te.event}),this._changeDetectorRef.markForCheck()}),Ot.released.subscribe(Te=>{this.released.emit({source:this,event:Te.event})}),Ot.ended.subscribe(Te=>{this.ended.emit({source:this,distance:Te.distance,dropPoint:Te.dropPoint,event:Te.event}),this._changeDetectorRef.markForCheck()}),Ot.entered.subscribe(Te=>{this.entered.emit({container:Te.container.data,item:this,currentIndex:Te.currentIndex})}),Ot.exited.subscribe(Te=>{this.exited.emit({container:Te.container.data,item:this})}),Ot.dropped.subscribe(Te=>{this.dropped.emit({previousIndex:Te.previousIndex,currentIndex:Te.currentIndex,previousContainer:Te.previousContainer.data,container:Te.container.data,isPointerOverContainer:Te.isPointerOverContainer,item:this,distance:Te.distance,dropPoint:Te.dropPoint,event:Te.event})})}_assignDefaults(Ot){const{lockAxis:Te,dragStartDelay:Xe,constrainPosition:Fe,previewClass:Tn,boundaryElement:he,draggingDisabled:Re,rootElementSelector:En,previewContainer:gi}=Ot;this.disabled=Re??!1,this.dragStartDelay=Xe||0,Te&&(this.lockAxis=Te),Fe&&(this.constrainPosition=Fe),Tn&&(this.previewClass=Tn),he&&(this.boundaryElement=he),En&&(this.rootElementSelector=En),gi&&(this.previewContainer=gi)}_setupHandlesListener(){this._handles.changes.pipe((0,G.O)(this._handles),(0,lt.b)(Ot=>{const Te=Ot.filter(Xe=>Xe._parentDrag===this).map(Xe=>Xe.element);this._selfHandle&&this.rootElementSelector&&Te.push(this.element),this._dragRef.withHandles(Te)}),(0,bt.w)(Ot=>(0,I.T)(...Ot.map(Te=>Te._stateChanges.pipe((0,G.O)(Te))))),(0,z.R)(this._destroyed)).subscribe(Ot=>{const Te=this._dragRef,Xe=Ot.element.nativeElement;Ot.disabled?Te.disableHandle(Xe):Te.enableHandle(Xe)})}}return Lt._dragInstances=[],Lt.\u0275fac=function(Ot){return new(Ot||Lt)(d.Y36(d.SBq),d.Y36(ho,12),d.Y36(p.K0),d.Y36(d.R0b),d.Y36(d.s_b),d.Y36(Ln,8),d.Y36(Pt.Is,8),d.Y36(oe),d.Y36(d.sBO),d.Y36(Yn,10),d.Y36(Ce,12))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","cdkDrag",""]],contentQueries:function(Ot,Te,Xe){if(1&Ot&&(d.Suo(Xe,ze,5),d.Suo(Xe,Ye,5),d.Suo(Xe,Yn,5)),2&Ot){let Fe;d.iGM(Fe=d.CRH())&&(Te._previewTemplate=Fe.first),d.iGM(Fe=d.CRH())&&(Te._placeholderTemplate=Fe.first),d.iGM(Fe=d.CRH())&&(Te._handles=Fe)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(Ot,Te){2&Ot&&d.ekj("cdk-drag-disabled",Te.disabled)("cdk-drag-dragging",Te._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:Ce,useExisting:Lt}]),d.TTD]}),Lt})(),Je=(()=>{class Lt{}return Lt.\u0275fac=function(Ot){return new(Ot||Lt)},Lt.\u0275mod=d.oAB({type:Lt}),Lt.\u0275inj=d.cJS({providers:[oe],imports:[v.ZD]}),Lt})()},29521:(ot,et,b)=>{"use strict";b.d(et,{A:()=>ae,JH:()=>Dt,JU:()=>A,K5:()=>t,Ku:()=>z,LH:()=>bt,L_:()=>I,MW:()=>Ln,Mf:()=>v,SV:()=>Pt,Sd:()=>at,VM:()=>G,Vb:()=>bc,Z:()=>Pn,ZH:()=>p,aO:()=>Oe,b2:()=>Er,hY:()=>P,jx:()=>C,oh:()=>lt,uR:()=>K,xE:()=>At,yY:()=>Tt,zL:()=>U});const p=8,v=9,t=13,A=16,C=17,U=18,P=27,I=32,z=33,G=34,K=35,at=36,lt=37,bt=38,Pt=39,Dt=40,Tt=46,At=48,Oe=57,ae=65,Pn=90,Ln=91,Er=224;function bc(dr,...Br){return Br.length?Br.some(Gr=>dr[Gr]):dr.altKey||dr.shiftKey||dr.ctrlKey||dr.metaKey}},62289:(ot,et,b)=>{"use strict";b.d(et,{Yg:()=>Dt,u3:()=>Vt,xu:()=>G});var d=b(94650),p=b(21281),v=b(8929),T=b(23426),t=b(61221),A=b(56498),C=b(72986),U=b(31307),k=b(80013),D=b(24850),P=b(1059),I=b(7625),z=b(83353);let G=(()=>{class nt{}return nt.\u0275fac=function(At){return new(At||nt)},nt.\u0275mod=d.oAB({type:nt}),nt.\u0275inj=d.cJS({}),nt})();const K=new Set;let at,lt=(()=>{class nt{constructor(At){this._platform=At,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Pt}matchMedia(At){return(this._platform.WEBKIT||this._platform.BLINK)&&function bt(nt){if(!K.has(nt))try{at||(at=document.createElement("style"),at.setAttribute("type","text/css"),document.head.appendChild(at)),at.sheet&&(at.sheet.insertRule(`@media ${nt} {body{ }}`,0),K.add(nt))}catch(Tt){console.error(Tt)}}(At),this._matchMedia(At)}}return nt.\u0275fac=function(At){return new(At||nt)(d.LFG(z.t4))},nt.\u0275prov=d.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function Pt(nt){return{matches:"all"===nt||""===nt,media:nt,addListener:()=>{},removeListener:()=>{}}}let Dt=(()=>{class nt{constructor(At,ft){this._mediaMatcher=At,this._zone=ft,this._queries=new Map,this._destroySubject=new v.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(At){return zt((0,p.Eq)(At)).some(Et=>this._registerQuery(Et).mql.matches)}observe(At){const Et=zt((0,p.Eq)(At)).map(It=>this._registerQuery(It).observable);let Bt=(0,T.aj)(Et);return Bt=(0,t.z)(Bt.pipe((0,C.q)(1)),Bt.pipe((0,U.T)(1),(0,k.b)(0))),Bt.pipe((0,D.U)(It=>{const se={matches:!1,breakpoints:{}};return It.forEach(({matches:Jt,query:ve})=>{se.matches=se.matches||Jt,se.breakpoints[ve]=Jt}),se}))}_registerQuery(At){if(this._queries.has(At))return this._queries.get(At);const ft=this._mediaMatcher.matchMedia(At),Bt={observable:new A.y(It=>{const se=Jt=>this._zone.run(()=>It.next(Jt));return ft.addListener(se),()=>{ft.removeListener(se)}}).pipe((0,P.O)(ft),(0,D.U)(({matches:It})=>({query:At,matches:It})),(0,I.R)(this._destroySubject)),mql:ft};return this._queries.set(At,Bt),Bt}}return nt.\u0275fac=function(At){return new(At||nt)(d.LFG(lt),d.LFG(d.R0b))},nt.\u0275prov=d.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function zt(nt){return nt.map(Tt=>Tt.split(",")).reduce((Tt,At)=>Tt.concat(At)).map(Tt=>Tt.trim())}const Vt={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:(ot,et,b)=>{"use strict";b.d(et,{Q8:()=>k,wD:()=>U});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})(),C=(()=>{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 at=this._observeElement(z).subscribe(G);return()=>{at.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(K=>z.next(K));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})(),U=(()=>{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(C),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:(ot,et,b)=>{"use strict";b.d(et,{Iu:()=>Oe,U8:()=>ri,X_:()=>Tt,Xj:()=>xe,_G:()=>Xt,aV:()=>ye,pI:()=>Mn,xu:()=>un});var d=b(67376),p=b(36895),v=b(94650),T=b(21281),t=b(83353),A=b(40445),C=b(84080),U=b(8929),k=b(42654),D=b(36787),P=b(72986),I=b(7625),z=b(44290),G=b(29521);const K=(0,t.Mq)();class at{constructor(ct,it){this._viewportRuler=ct,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=it}attach(){}enable(){if(this._canBeEnabled()){const ct=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ct.style.left||"",this._previousHTMLStyles.top=ct.style.top||"",ct.style.left=(0,T.HM)(-this._previousScrollPosition.left),ct.style.top=(0,T.HM)(-this._previousScrollPosition.top),ct.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ct=this._document.documentElement,kt=ct.style,Gt=this._document.body.style,oe=kt.scrollBehavior||"",Ce=Gt.scrollBehavior||"";this._isEnabled=!1,kt.left=this._previousHTMLStyles.left,kt.top=this._previousHTMLStyles.top,ct.classList.remove("cdk-global-scrollblock"),K&&(kt.scrollBehavior=Gt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),K&&(kt.scrollBehavior=oe,Gt.scrollBehavior=Ce)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const it=this._document.body,kt=this._viewportRuler.getViewportSize();return it.scrollHeight>kt.height||it.scrollWidth>kt.width}}class bt{constructor(ct,it,kt,Gt){this._scrollDispatcher=ct,this._ngZone=it,this._viewportRuler=kt,this._config=Gt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(ct){this._overlayRef=ct}enable(){if(this._scrollSubscription)return;const ct=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ct.subscribe(()=>{const it=this._viewportRuler.getViewportScrollPosition().top;Math.abs(it-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ct.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Pt{enable(){}disable(){}attach(){}}function Dt(ne,ct){return ct.some(it=>ne.bottomit.bottom||ne.rightit.right)}function zt(ne,ct){return ct.some(it=>ne.topit.bottom||ne.leftit.right)}class Vt{constructor(ct,it,kt,Gt){this._scrollDispatcher=ct,this._viewportRuler=it,this._ngZone=kt,this._config=Gt,this._scrollSubscription=null}attach(ct){this._overlayRef=ct}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 it=this._overlayRef.overlayElement.getBoundingClientRect(),{width:kt,height:Gt}=this._viewportRuler.getViewportSize();Dt(it,[{width:kt,height:Gt,bottom:Gt,right:kt,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 nt=(()=>{class ne{constructor(it,kt,Gt,oe){this._scrollDispatcher=it,this._viewportRuler=kt,this._ngZone=Gt,this.noop=()=>new Pt,this.close=Ce=>new bt(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ce),this.block=()=>new at(this._viewportRuler,this._document),this.reposition=Ce=>new Vt(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ce),this._document=oe}}return ne.\u0275fac=function(it){return new(it||ne)(v.LFG(d.mF),v.LFG(d.rL),v.LFG(v.R0b),v.LFG(p.K0))},ne.\u0275prov=v.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})();class Tt{constructor(ct){if(this.scrollStrategy=new Pt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,ct){const it=Object.keys(ct);for(const kt of it)void 0!==ct[kt]&&(this[kt]=ct[kt])}}}class Et{constructor(ct,it){this.connectionPair=ct,this.scrollableViewProperties=it}}let se=(()=>{class ne{constructor(it){this._attachedOverlays=[],this._document=it}ngOnDestroy(){this.detach()}add(it){this.remove(it),this._attachedOverlays.push(it)}remove(it){const kt=this._attachedOverlays.indexOf(it);kt>-1&&this._attachedOverlays.splice(kt,1),0===this._attachedOverlays.length&&this.detach()}}return ne.\u0275fac=function(it){return new(it||ne)(v.LFG(p.K0))},ne.\u0275prov=v.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),Jt=(()=>{class ne extends se{constructor(it,kt){super(it),this._ngZone=kt,this._keydownListener=Gt=>{const oe=this._attachedOverlays;for(let Ce=oe.length-1;Ce>-1;Ce--)if(oe[Ce]._keydownEvents.observers.length>0){const Ee=oe[Ce]._keydownEvents;this._ngZone?this._ngZone.run(()=>Ee.next(Gt)):Ee.next(Gt);break}}}add(it){super.add(it),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 ne.\u0275fac=function(it){return new(it||ne)(v.LFG(p.K0),v.LFG(v.R0b,8))},ne.\u0275prov=v.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),ve=(()=>{class ne extends se{constructor(it,kt,Gt){super(it),this._platform=kt,this._ngZone=Gt,this._cursorStyleIsSet=!1,this._pointerDownListener=oe=>{this._pointerDownEventTarget=(0,t.sA)(oe)},this._clickListener=oe=>{const Ce=(0,t.sA)(oe),Ee="click"===oe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ce;this._pointerDownEventTarget=null;const Pn=this._attachedOverlays.slice();for(let Ln=Pn.length-1;Ln>-1;Ln--){const mi=Pn[Ln];if(mi._outsidePointerEvents.observers.length<1||!mi.hasAttached())continue;if(mi.overlayElement.contains(Ce)||mi.overlayElement.contains(Ee))break;const Oi=mi._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Oi.next(oe)):Oi.next(oe)}}}add(it){if(super.add(it),!this._isAttached){const kt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(kt)):this._addEventListeners(kt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=kt.style.cursor,kt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const it=this._document.body;it.removeEventListener("pointerdown",this._pointerDownListener,!0),it.removeEventListener("click",this._clickListener,!0),it.removeEventListener("auxclick",this._clickListener,!0),it.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(it.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(it){it.addEventListener("pointerdown",this._pointerDownListener,!0),it.addEventListener("click",this._clickListener,!0),it.addEventListener("auxclick",this._clickListener,!0),it.addEventListener("contextmenu",this._clickListener,!0)}}return ne.\u0275fac=function(it){return new(it||ne)(v.LFG(p.K0),v.LFG(t.t4),v.LFG(v.R0b,8))},ne.\u0275prov=v.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),xe=(()=>{class ne{constructor(it,kt){this._platform=kt,this._document=it}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const it="cdk-overlay-container";if(this._platform.isBrowser||(0,t.Oy)()){const Gt=this._document.querySelectorAll(`.${it}[platform="server"], .${it}[platform="test"]`);for(let oe=0;oethis._backdropClick.next(Oi),this._backdropTransitionendHandler=Oi=>{this._disposeBackdrop(Oi.target)},this._keydownEvents=new U.xQ,this._outsidePointerEvents=new U.xQ,Gt.scrollStrategy&&(this._scrollStrategy=Gt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Gt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ct){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const it=this._portalOutlet.attach(ct);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 it?.onDestroy&&it.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),it}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ct=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ct}dispose(){const ct=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,ct&&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(ct){ct!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ct,this.hasAttached()&&(ct.attach(this),this.updatePosition()))}updateSize(ct){this._config={...this._config,...ct},this._updateElementSize()}setDirection(ct){this._config={...this._config,direction:ct},this._updateElementDirection()}addPanelClass(ct){this._pane&&this._toggleClasses(this._pane,ct,!0)}removePanelClass(ct){this._pane&&this._toggleClasses(this._pane,ct,!1)}getDirection(){const ct=this._config.direction;return ct?"string"==typeof ct?ct:ct.value:"ltr"}updateScrollStrategy(ct){ct!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ct,this.hasAttached()&&(ct.attach(this),ct.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ct=this._pane.style;ct.width=(0,T.HM)(this._config.width),ct.height=(0,T.HM)(this._config.height),ct.minWidth=(0,T.HM)(this._config.minWidth),ct.minHeight=(0,T.HM)(this._config.minHeight),ct.maxWidth=(0,T.HM)(this._config.maxWidth),ct.maxHeight=(0,T.HM)(this._config.maxHeight)}_togglePointerEvents(ct){this._pane.style.pointerEvents=ct?"":"none"}_attachBackdrop(){const ct="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(ct)})}):this._backdropElement.classList.add(ct)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ct=this._backdropElement;if(ct){if(this._animationsDisabled)return void this._disposeBackdrop(ct);ct.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{ct.addEventListener("transitionend",this._backdropTransitionendHandler)}),ct.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ct)},500))}}_toggleClasses(ct,it,kt){const Gt=(0,T.Eq)(it||[]).filter(oe=>!!oe);Gt.length&&(kt?ct.classList.add(...Gt):ct.classList.remove(...Gt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const ct=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()),ct.unsubscribe())})})}_disposeScrollStrategy(){const ct=this._scrollStrategy;ct&&(ct.disable(),ct.detach&&ct.detach())}_disposeBackdrop(ct){ct&&(ct.removeEventListener("click",this._backdropClickHandler),ct.removeEventListener("transitionend",this._backdropTransitionendHandler),ct.remove(),this._backdropElement===ct&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const qe="cdk-overlay-connected-position-bounding-box",$e=/([A-Za-z%]+)$/;class Xt{constructor(ct,it,kt,Gt,oe){this._viewportRuler=it,this._document=kt,this._platform=Gt,this._overlayContainer=oe,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 U.xQ,this._resizeSubscription=k.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(ct)}get positions(){return this._preferredPositions}attach(ct){this._validatePositions(),ct.hostElement.classList.add(qe),this._overlayRef=ct,this._boundingBox=ct.hostElement,this._pane=ct.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 ct=this._originRect,it=this._overlayRect,kt=this._viewportRect,Gt=this._containerRect,oe=[];let Ce;for(let Ee of this._preferredPositions){let Pn=this._getOriginPoint(ct,Gt,Ee),Ln=this._getOverlayPoint(Pn,it,Ee),mi=this._getOverlayFit(Ln,it,kt,Ee);if(mi.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Ee,Pn);this._canFitWithFlexibleDimensions(mi,Ln,kt)?oe.push({position:Ee,origin:Pn,overlayRect:it,boundingBoxRect:this._calculateBoundingBoxRect(Pn,Ee)}):(!Ce||Ce.overlayFit.visibleAreaPn&&(Pn=mi,Ee=Ln)}return this._isPushed=!1,void this._applyPosition(Ee.position,Ee.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ce.position,Ce.originPoint);this._applyPosition(Ce.position,Ce.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&we(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(qe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ct=this._lastPosition;if(ct){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const it=this._getOriginPoint(this._originRect,this._containerRect,ct);this._applyPosition(ct,it)}else this.apply()}withScrollableContainers(ct){return this._scrollables=ct,this}withPositions(ct){return this._preferredPositions=ct,-1===ct.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ct){return this._viewportMargin=ct,this}withFlexibleDimensions(ct=!0){return this._hasFlexibleDimensions=ct,this}withGrowAfterOpen(ct=!0){return this._growAfterOpen=ct,this}withPush(ct=!0){return this._canPush=ct,this}withLockedPosition(ct=!0){return this._positionLocked=ct,this}setOrigin(ct){return this._origin=ct,this}withDefaultOffsetX(ct){return this._offsetX=ct,this}withDefaultOffsetY(ct){return this._offsetY=ct,this}withTransformOriginOn(ct){return this._transformOriginSelector=ct,this}_getOriginPoint(ct,it,kt){let Gt,oe;if("center"==kt.originX)Gt=ct.left+ct.width/2;else{const Ce=this._isRtl()?ct.right:ct.left,Ee=this._isRtl()?ct.left:ct.right;Gt="start"==kt.originX?Ce:Ee}return it.left<0&&(Gt-=it.left),oe="center"==kt.originY?ct.top+ct.height/2:"top"==kt.originY?ct.top:ct.bottom,it.top<0&&(oe-=it.top),{x:Gt,y:oe}}_getOverlayPoint(ct,it,kt){let Gt,oe;return Gt="center"==kt.overlayX?-it.width/2:"start"===kt.overlayX?this._isRtl()?-it.width:0:this._isRtl()?0:-it.width,oe="center"==kt.overlayY?-it.height/2:"top"==kt.overlayY?0:-it.height,{x:ct.x+Gt,y:ct.y+oe}}_getOverlayFit(ct,it,kt,Gt){const oe=Kt(it);let{x:Ce,y:Ee}=ct,Pn=this._getOffset(Gt,"x"),Ln=this._getOffset(Gt,"y");Pn&&(Ce+=Pn),Ln&&(Ee+=Ln);let ho=0-Ee,fi=Ee+oe.height-kt.height,Yn=this._subtractOverflows(oe.width,0-Ce,Ce+oe.width-kt.width),jn=this._subtractOverflows(oe.height,ho,fi),Ye=Yn*jn;return{visibleArea:Ye,isCompletelyWithinViewport:oe.width*oe.height===Ye,fitsInViewportVertically:jn===oe.height,fitsInViewportHorizontally:Yn==oe.width}}_canFitWithFlexibleDimensions(ct,it,kt){if(this._hasFlexibleDimensions){const Gt=kt.bottom-it.y,oe=kt.right-it.x,Ce=ae(this._overlayRef.getConfig().minHeight),Ee=ae(this._overlayRef.getConfig().minWidth),Ln=ct.fitsInViewportHorizontally||null!=Ee&&Ee<=oe;return(ct.fitsInViewportVertically||null!=Ce&&Ce<=Gt)&&Ln}return!1}_pushOverlayOnScreen(ct,it,kt){if(this._previousPushAmount&&this._positionLocked)return{x:ct.x+this._previousPushAmount.x,y:ct.y+this._previousPushAmount.y};const Gt=Kt(it),oe=this._viewportRect,Ce=Math.max(ct.x+Gt.width-oe.width,0),Ee=Math.max(ct.y+Gt.height-oe.height,0),Pn=Math.max(oe.top-kt.top-ct.y,0),Ln=Math.max(oe.left-kt.left-ct.x,0);let mi=0,Oi=0;return mi=Gt.width<=oe.width?Ln||-Ce:ct.xYn&&!this._isInitialRender&&!this._growAfterOpen&&(Ce=ct.y-Yn/2)}if("end"===it.overlayX&&!Gt||"start"===it.overlayX&&Gt)ho=kt.width-ct.x+this._viewportMargin,mi=ct.x-this._viewportMargin;else if("start"===it.overlayX&&!Gt||"end"===it.overlayX&&Gt)Oi=ct.x,mi=kt.right-ct.x;else{const fi=Math.min(kt.right-ct.x+kt.left,ct.x),Yn=this._lastBoundingBoxSize.width;mi=2*fi,Oi=ct.x-fi,mi>Yn&&!this._isInitialRender&&!this._growAfterOpen&&(Oi=ct.x-Yn/2)}return{top:Ce,left:Oi,bottom:Ee,right:ho,width:mi,height:oe}}_setBoundingBoxStyles(ct,it){const kt=this._calculateBoundingBoxRect(ct,it);!this._isInitialRender&&!this._growAfterOpen&&(kt.height=Math.min(kt.height,this._lastBoundingBoxSize.height),kt.width=Math.min(kt.width,this._lastBoundingBoxSize.width));const Gt={};if(this._hasExactPosition())Gt.top=Gt.left="0",Gt.bottom=Gt.right=Gt.maxHeight=Gt.maxWidth="",Gt.width=Gt.height="100%";else{const oe=this._overlayRef.getConfig().maxHeight,Ce=this._overlayRef.getConfig().maxWidth;Gt.height=(0,T.HM)(kt.height),Gt.top=(0,T.HM)(kt.top),Gt.bottom=(0,T.HM)(kt.bottom),Gt.width=(0,T.HM)(kt.width),Gt.left=(0,T.HM)(kt.left),Gt.right=(0,T.HM)(kt.right),Gt.alignItems="center"===it.overlayX?"center":"end"===it.overlayX?"flex-end":"flex-start",Gt.justifyContent="center"===it.overlayY?"center":"bottom"===it.overlayY?"flex-end":"flex-start",oe&&(Gt.maxHeight=(0,T.HM)(oe)),Ce&&(Gt.maxWidth=(0,T.HM)(Ce))}this._lastBoundingBoxSize=kt,we(this._boundingBox.style,Gt)}_resetBoundingBoxStyles(){we(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){we(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ct,it){const kt={},Gt=this._hasExactPosition(),oe=this._hasFlexibleDimensions,Ce=this._overlayRef.getConfig();if(Gt){const mi=this._viewportRuler.getViewportScrollPosition();we(kt,this._getExactOverlayY(it,ct,mi)),we(kt,this._getExactOverlayX(it,ct,mi))}else kt.position="static";let Ee="",Pn=this._getOffset(it,"x"),Ln=this._getOffset(it,"y");Pn&&(Ee+=`translateX(${Pn}px) `),Ln&&(Ee+=`translateY(${Ln}px)`),kt.transform=Ee.trim(),Ce.maxHeight&&(Gt?kt.maxHeight=(0,T.HM)(Ce.maxHeight):oe&&(kt.maxHeight="")),Ce.maxWidth&&(Gt?kt.maxWidth=(0,T.HM)(Ce.maxWidth):oe&&(kt.maxWidth="")),we(this._pane.style,kt)}_getExactOverlayY(ct,it,kt){let Gt={top:"",bottom:""},oe=this._getOverlayPoint(it,this._overlayRect,ct);return this._isPushed&&(oe=this._pushOverlayOnScreen(oe,this._overlayRect,kt)),"bottom"===ct.overlayY?Gt.bottom=this._document.documentElement.clientHeight-(oe.y+this._overlayRect.height)+"px":Gt.top=(0,T.HM)(oe.y),Gt}_getExactOverlayX(ct,it,kt){let Ce,Gt={left:"",right:""},oe=this._getOverlayPoint(it,this._overlayRect,ct);return this._isPushed&&(oe=this._pushOverlayOnScreen(oe,this._overlayRect,kt)),Ce=this._isRtl()?"end"===ct.overlayX?"left":"right":"end"===ct.overlayX?"right":"left","right"===Ce?Gt.right=this._document.documentElement.clientWidth-(oe.x+this._overlayRect.width)+"px":Gt.left=(0,T.HM)(oe.x),Gt}_getScrollVisibility(){const ct=this._getOriginRect(),it=this._pane.getBoundingClientRect(),kt=this._scrollables.map(Gt=>Gt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:zt(ct,kt),isOriginOutsideView:Dt(ct,kt),isOverlayClipped:zt(it,kt),isOverlayOutsideView:Dt(it,kt)}}_subtractOverflows(ct,...it){return it.reduce((kt,Gt)=>kt-Math.max(Gt,0),ct)}_getNarrowedViewportRect(){const ct=this._document.documentElement.clientWidth,it=this._document.documentElement.clientHeight,kt=this._viewportRuler.getViewportScrollPosition();return{top:kt.top+this._viewportMargin,left:kt.left+this._viewportMargin,right:kt.left+ct-this._viewportMargin,bottom:kt.top+it-this._viewportMargin,width:ct-2*this._viewportMargin,height:it-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ct,it){return"x"===it?ct.offsetX??this._offsetX:ct.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(ct){this._pane&&(0,T.Eq)(ct).forEach(it=>{""!==it&&-1===this._appliedPanelClasses.indexOf(it)&&(this._appliedPanelClasses.push(it),this._pane.classList.add(it))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ct=>{this._pane.classList.remove(ct)}),this._appliedPanelClasses=[])}_getOriginRect(){const ct=this._origin;if(ct instanceof v.SBq)return ct.nativeElement.getBoundingClientRect();if(ct instanceof Element)return ct.getBoundingClientRect();const it=ct.width||0,kt=ct.height||0;return{top:ct.y,bottom:ct.y+kt,left:ct.x,right:ct.x+it,height:kt,width:it}}}function we(ne,ct){for(let it in ct)ct.hasOwnProperty(it)&&(ne[it]=ct[it]);return ne}function ae(ne){if("number"!=typeof ne&&null!=ne){const[ct,it]=ne.split($e);return it&&"px"!==it?null:parseFloat(ct)}return ne||null}function Kt(ne){return{top:Math.floor(ne.top),right:Math.floor(ne.right),bottom:Math.floor(ne.bottom),left:Math.floor(ne.left),width:Math.floor(ne.width),height:Math.floor(ne.height)}}const re="cdk-global-overlay-wrapper";class Pe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(ct){const it=ct.getConfig();this._overlayRef=ct,this._width&&!it.width&&ct.updateSize({width:this._width}),this._height&&!it.height&&ct.updateSize({height:this._height}),ct.hostElement.classList.add(re),this._isDisposed=!1}top(ct=""){return this._bottomOffset="",this._topOffset=ct,this._alignItems="flex-start",this}left(ct=""){return this._xOffset=ct,this._xPosition="left",this}bottom(ct=""){return this._topOffset="",this._bottomOffset=ct,this._alignItems="flex-end",this}right(ct=""){return this._xOffset=ct,this._xPosition="right",this}start(ct=""){return this._xOffset=ct,this._xPosition="start",this}end(ct=""){return this._xOffset=ct,this._xPosition="end",this}width(ct=""){return this._overlayRef?this._overlayRef.updateSize({width:ct}):this._width=ct,this}height(ct=""){return this._overlayRef?this._overlayRef.updateSize({height:ct}):this._height=ct,this}centerHorizontally(ct=""){return this.left(ct),this._xPosition="center",this}centerVertically(ct=""){return this.top(ct),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ct=this._overlayRef.overlayElement.style,it=this._overlayRef.hostElement.style,kt=this._overlayRef.getConfig(),{width:Gt,height:oe,maxWidth:Ce,maxHeight:Ee}=kt,Pn=!("100%"!==Gt&&"100vw"!==Gt||Ce&&"100%"!==Ce&&"100vw"!==Ce),Ln=!("100%"!==oe&&"100vh"!==oe||Ee&&"100%"!==Ee&&"100vh"!==Ee),mi=this._xPosition,Oi=this._xOffset,ho="rtl"===this._overlayRef.getConfig().direction;let fi="",Yn="",jn="";Pn?jn="flex-start":"center"===mi?(jn="center",ho?Yn=Oi:fi=Oi):ho?"left"===mi||"end"===mi?(jn="flex-end",fi=Oi):("right"===mi||"start"===mi)&&(jn="flex-start",Yn=Oi):"left"===mi||"start"===mi?(jn="flex-start",fi=Oi):("right"===mi||"end"===mi)&&(jn="flex-end",Yn=Oi),ct.position=this._cssPosition,ct.marginLeft=Pn?"0":fi,ct.marginTop=Ln?"0":this._topOffset,ct.marginBottom=this._bottomOffset,ct.marginRight=Pn?"0":Yn,it.justifyContent=jn,it.alignItems=Ln?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ct=this._overlayRef.overlayElement.style,it=this._overlayRef.hostElement,kt=it.style;it.classList.remove(re),kt.justifyContent=kt.alignItems=ct.marginTop=ct.marginBottom=ct.marginLeft=ct.marginRight=ct.position="",this._overlayRef=null,this._isDisposed=!0}}let on=(()=>{class ne{constructor(it,kt,Gt,oe){this._viewportRuler=it,this._document=kt,this._platform=Gt,this._overlayContainer=oe}global(){return new Pe}flexibleConnectedTo(it){return new Xt(it,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return ne.\u0275fac=function(it){return new(it||ne)(v.LFG(d.rL),v.LFG(p.K0),v.LFG(t.t4),v.LFG(xe))},ne.\u0275prov=v.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),_n=0,ye=(()=>{class ne{constructor(it,kt,Gt,oe,Ce,Ee,Pn,Ln,mi,Oi,ho,fi){this.scrollStrategies=it,this._overlayContainer=kt,this._componentFactoryResolver=Gt,this._positionBuilder=oe,this._keyboardDispatcher=Ce,this._injector=Ee,this._ngZone=Pn,this._document=Ln,this._directionality=mi,this._location=Oi,this._outsideClickDispatcher=ho,this._animationsModuleType=fi}create(it){const kt=this._createHostElement(),Gt=this._createPaneElement(kt),oe=this._createPortalOutlet(Gt),Ce=new Tt(it);return Ce.direction=Ce.direction||this._directionality.value,new Oe(oe,kt,Gt,Ce,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(it){const kt=this._document.createElement("div");return kt.id="cdk-overlay-"+_n++,kt.classList.add("cdk-overlay-pane"),it.appendChild(kt),kt}_createHostElement(){const it=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(it),it}_createPortalOutlet(it){return this._appRef||(this._appRef=this._injector.get(v.z2F)),new C.u0(it,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return ne.\u0275fac=function(it){return new(it||ne)(v.LFG(nt),v.LFG(xe),v.LFG(v._Vd),v.LFG(on),v.LFG(Jt),v.LFG(v.zs3),v.LFG(v.R0b),v.LFG(p.K0),v.LFG(A.Is),v.LFG(p.Ye),v.LFG(ve),v.LFG(v.QbO,8))},ne.\u0275prov=v.Yz7({token:ne,factory:ne.\u0275fac}),ne})();const gn=[{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"}],Ue=new v.OlP("cdk-connected-overlay-scroll-strategy");let un=(()=>{class ne{constructor(it){this.elementRef=it}}return ne.\u0275fac=function(it){return new(it||ne)(v.Y36(v.SBq))},ne.\u0275dir=v.lG2({type:ne,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ne})(),Mn=(()=>{class ne{constructor(it,kt,Gt,oe,Ce){this._overlay=it,this._dir=Ce,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 C.UE(kt,Gt),this._scrollStrategyFactory=oe,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(it){this._offsetX=it,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(it){this._offsetY=it,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(it){this._hasBackdrop=(0,T.Ig)(it)}get lockPosition(){return this._lockPosition}set lockPosition(it){this._lockPosition=(0,T.Ig)(it)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(it){this._flexibleDimensions=(0,T.Ig)(it)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(it){this._growAfterOpen=(0,T.Ig)(it)}get push(){return this._push}set push(it){this._push=(0,T.Ig)(it)}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(it){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),it.origin&&this.open&&this._position.apply()),it.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=gn);const it=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=it.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=it.detachments().subscribe(()=>this.detach.emit()),it.keydownEvents().subscribe(kt=>{this.overlayKeydown.next(kt),kt.keyCode===G.hY&&!this.disableClose&&!(0,G.Vb)(kt)&&(kt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(kt=>{this.overlayOutsideClick.next(kt)})}_buildConfig(){const it=this._position=this.positionStrategy||this._createPositionStrategy(),kt=new Tt({direction:this._dir,positionStrategy:it,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(kt.width=this.width),(this.height||0===this.height)&&(kt.height=this.height),(this.minWidth||0===this.minWidth)&&(kt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(kt.minHeight=this.minHeight),this.backdropClass&&(kt.backdropClass=this.backdropClass),this.panelClass&&(kt.panelClass=this.panelClass),kt}_updatePositionStrategy(it){const kt=this.positions.map(Gt=>({originX:Gt.originX,originY:Gt.originY,overlayX:Gt.overlayX,overlayY:Gt.overlayY,offsetX:Gt.offsetX||this.offsetX,offsetY:Gt.offsetY||this.offsetY,panelClass:Gt.panelClass||void 0}));return it.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(kt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const it=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(it),it}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof un?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(it=>{this.backdropClick.emit(it)}):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(it=>{this.positionChange.emit(it),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return ne.\u0275fac=function(it){return new(it||ne)(v.Y36(ye),v.Y36(v.Rgc),v.Y36(v.s_b),v.Y36(Ue),v.Y36(A.Is,8))},ne.\u0275dir=v.lG2({type:ne,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]}),ne})();const bi={provide:Ue,deps:[ye],useFactory:function oi(ne){return()=>ne.scrollStrategies.reposition()}};let ri=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275mod=v.oAB({type:ne}),ne.\u0275inj=v.cJS({providers:[ye,bi],imports:[A.vT,C.eL,d.Cl,d.Cl]}),ne})()},83353:(ot,et,b)=>{"use strict";b.d(et,{Mq:()=>G,Oy:()=>zt,_i:()=>K,ht:()=>Pt,i$:()=>P,kV:()=>bt,qK:()=>U,sA:()=>Dt,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 Vt{constructor(Tt){this._platformId=Tt,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 Vt.\u0275fac=function(Tt){return new(Tt||Vt)(d.LFG(d.Lbi))},Vt.\u0275prov=d.Yz7({token:Vt,factory:Vt.\u0275fac,providedIn:"root"}),Vt})(),t=(()=>{class Vt{}return Vt.\u0275fac=function(Tt){return new(Tt||Vt)},Vt.\u0275mod=d.oAB({type:Vt}),Vt.\u0275inj=d.cJS({}),Vt})();const C=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function U(){if(A)return A;if("object"!=typeof document||!document)return A=new Set(C),A;let Vt=document.createElement("input");return A=new Set(C.filter(nt=>(Vt.setAttribute("type",nt),Vt.type===nt))),A}let k,I,z,at;function P(Vt){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}()?Vt:!!Vt.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 Vt=Element.prototype.scrollTo;z=!!Vt&&!/\{\s*\[native code\]\s*\}/.test(Vt.toString())}}return z}function K(){if("object"!=typeof document||!document)return 0;if(null==I){const Vt=document.createElement("div"),nt=Vt.style;Vt.dir="rtl",nt.width="1px",nt.overflow="auto",nt.visibility="hidden",nt.pointerEvents="none",nt.position="absolute";const Tt=document.createElement("div"),At=Tt.style;At.width="2px",At.height="1px",Vt.appendChild(Tt),document.body.appendChild(Vt),I=0,0===Vt.scrollLeft&&(Vt.scrollLeft=1,I=0===Vt.scrollLeft?1:2),Vt.remove()}return I}function bt(Vt){if(function lt(){if(null==at){const Vt=typeof document<"u"?document.head:null;at=!(!Vt||!Vt.createShadowRoot&&!Vt.attachShadow)}return at}()){const nt=Vt.getRootNode?Vt.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&nt instanceof ShadowRoot)return nt}return null}function Pt(){let Vt=typeof document<"u"&&document?document.activeElement:null;for(;Vt&&Vt.shadowRoot;){const nt=Vt.shadowRoot.activeElement;if(nt===Vt)break;Vt=nt}return Vt}function Dt(Vt){return Vt.composedPath?Vt.composedPath()[0]:Vt.target}function zt(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(ot,et,b)=>{"use strict";b.d(et,{C5:()=>D,Pl:()=>Pt,UE:()=>P,eL:()=>zt,en:()=>z,ig:()=>lt,u0:()=>K});var d=b(94650),p=b(36895);class k{attach(Tt){return this._attachedHost=Tt,Tt.attach(this)}detach(){let Tt=this._attachedHost;null!=Tt&&(this._attachedHost=null,Tt.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Tt){this._attachedHost=Tt}}class D extends k{constructor(Tt,At,ft,Et){super(),this.component=Tt,this.viewContainerRef=At,this.injector=ft,this.componentFactoryResolver=Et}}class P extends k{constructor(Tt,At,ft,Et){super(),this.templateRef=Tt,this.viewContainerRef=At,this.context=ft,this.injector=Et}get origin(){return this.templateRef.elementRef}attach(Tt,At=this.context){return this.context=At,super.attach(Tt)}detach(){return this.context=void 0,super.detach()}}class I extends k{constructor(Tt){super(),this.element=Tt instanceof d.SBq?Tt.nativeElement:Tt}}class z{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Tt){return Tt instanceof D?(this._attachedPortal=Tt,this.attachComponentPortal(Tt)):Tt instanceof P?(this._attachedPortal=Tt,this.attachTemplatePortal(Tt)):this.attachDomPortal&&Tt instanceof I?(this._attachedPortal=Tt,this.attachDomPortal(Tt)):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(Tt){this._disposeFn=Tt}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class K extends z{constructor(Tt,At,ft,Et,Bt){super(),this.outletElement=Tt,this._componentFactoryResolver=At,this._appRef=ft,this._defaultInjector=Et,this.attachDomPortal=It=>{const se=It.element,Jt=this._document.createComment("dom-portal");se.parentNode.insertBefore(Jt,se),this.outletElement.appendChild(se),this._attachedPortal=It,super.setDisposeFn(()=>{Jt.parentNode&&Jt.parentNode.replaceChild(se,Jt)})},this._document=Bt}attachComponentPortal(Tt){const ft=(Tt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Tt.component);let Et;return Tt.viewContainerRef?(Et=Tt.viewContainerRef.createComponent(ft,Tt.viewContainerRef.length,Tt.injector||Tt.viewContainerRef.injector),this.setDisposeFn(()=>Et.destroy())):(Et=ft.create(Tt.injector||this._defaultInjector||d.zs3.NULL),this._appRef.attachView(Et.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Et.hostView),Et.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Et)),this._attachedPortal=Tt,Et}attachTemplatePortal(Tt){let At=Tt.viewContainerRef,ft=At.createEmbeddedView(Tt.templateRef,Tt.context,{injector:Tt.injector});return ft.rootNodes.forEach(Et=>this.outletElement.appendChild(Et)),ft.detectChanges(),this.setDisposeFn(()=>{let Et=At.indexOf(ft);-1!==Et&&At.remove(Et)}),this._attachedPortal=Tt,ft}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Tt){return Tt.hostView.rootNodes[0]}}let lt=(()=>{class nt extends P{constructor(At,ft){super(At,ft)}}return nt.\u0275fac=function(At){return new(At||nt)(d.Y36(d.Rgc),d.Y36(d.s_b))},nt.\u0275dir=d.lG2({type:nt,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[d.qOj]}),nt})(),Pt=(()=>{class nt extends z{constructor(At,ft,Et){super(),this._componentFactoryResolver=At,this._viewContainerRef=ft,this._isInitialized=!1,this.attached=new d.vpe,this.attachDomPortal=Bt=>{const It=Bt.element,se=this._document.createComment("dom-portal");Bt.setAttachedHost(this),It.parentNode.insertBefore(se,It),this._getRootNode().appendChild(It),this._attachedPortal=Bt,super.setDisposeFn(()=>{se.parentNode&&se.parentNode.replaceChild(It,se)})},this._document=Et}get portal(){return this._attachedPortal}set portal(At){this.hasAttached()&&!At&&!this._isInitialized||(this.hasAttached()&&super.detach(),At&&super.attach(At),this._attachedPortal=At||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(At){At.setAttachedHost(this);const ft=null!=At.viewContainerRef?At.viewContainerRef:this._viewContainerRef,Bt=(At.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(At.component),It=ft.createComponent(Bt,ft.length,At.injector||ft.injector);return ft!==this._viewContainerRef&&this._getRootNode().appendChild(It.hostView.rootNodes[0]),super.setDisposeFn(()=>It.destroy()),this._attachedPortal=At,this._attachedRef=It,this.attached.emit(It),It}attachTemplatePortal(At){At.setAttachedHost(this);const ft=this._viewContainerRef.createEmbeddedView(At.templateRef,At.context,{injector:At.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=At,this._attachedRef=ft,this.attached.emit(ft),ft}_getRootNode(){const At=this._viewContainerRef.element.nativeElement;return At.nodeType===At.ELEMENT_NODE?At:At.parentNode}}return nt.\u0275fac=function(At){return new(At||nt)(d.Y36(d._Vd),d.Y36(d.s_b),d.Y36(p.K0))},nt.\u0275dir=d.lG2({type:nt,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[d.qOj]}),nt})(),zt=(()=>{class nt{}return nt.\u0275fac=function(At){return new(At||nt)},nt.\u0275mod=d.oAB({type:nt}),nt.\u0275inj=d.cJS({}),nt})()},67376:(ot,et,b)=>{"use strict";b.d(et,{Cl:()=>$e,PQ:()=>nt,ZD:()=>qe,mF:()=>Vt,rL:()=>At});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 Vt=(()=>{class Xt{constructor(ae,Kt,de){this._ngZone=ae,this._platform=Kt,this._scrolled=new v.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=de}register(ae){this.scrollContainers.has(ae)||this.scrollContainers.set(ae,ae.elementScrolled().subscribe(()=>this._scrolled.next(ae)))}deregister(ae){const Kt=this.scrollContainers.get(ae);Kt&&(Kt.unsubscribe(),this.scrollContainers.delete(ae))}scrolled(ae=20){return this._platform.isBrowser?new t.y(Kt=>{this._globalSubscription||this._addGlobalListener();const de=ae>0?this._scrolled.pipe((0,k.e)(ae)).subscribe(Kt):this._scrolled.subscribe(Kt);return this._scrolledCount++,()=>{de.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,T.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ae,Kt)=>this.deregister(Kt)),this._scrolled.complete()}ancestorScrolled(ae,Kt){const de=this.getAncestorScrollContainers(ae);return this.scrolled(Kt).pipe((0,D.h)(Wt=>!Wt||de.indexOf(Wt)>-1))}getAncestorScrollContainers(ae){const Kt=[];return this.scrollContainers.forEach((de,Wt)=>{this._scrollableContainsElement(Wt,ae)&&Kt.push(Wt)}),Kt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ae,Kt){let de=(0,d.fI)(Kt),Wt=ae.getElementRef().nativeElement;do{if(de==Wt)return!0}while(de=de.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ae=this._getWindow();return(0,A.R)(ae.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(p.LFG(p.R0b),p.LFG(I.t4),p.LFG(z.K0,8))},Xt.\u0275prov=p.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})(),nt=(()=>{class Xt{constructor(ae,Kt,de,Wt){this.elementRef=ae,this.scrollDispatcher=Kt,this.ngZone=de,this.dir=Wt,this._destroyed=new v.xQ,this._elementScrolled=new t.y(re=>this.ngZone.runOutsideAngular(()=>(0,A.R)(this.elementRef.nativeElement,"scroll").pipe((0,P.R)(this._destroyed)).subscribe(re)))}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(ae){const Kt=this.elementRef.nativeElement,de=this.dir&&"rtl"==this.dir.value;null==ae.left&&(ae.left=de?ae.end:ae.start),null==ae.right&&(ae.right=de?ae.start:ae.end),null!=ae.bottom&&(ae.top=Kt.scrollHeight-Kt.clientHeight-ae.bottom),de&&0!=(0,I._i)()?(null!=ae.left&&(ae.right=Kt.scrollWidth-Kt.clientWidth-ae.left),2==(0,I._i)()?ae.left=ae.right:1==(0,I._i)()&&(ae.left=ae.right?-ae.right:ae.right)):null!=ae.right&&(ae.left=Kt.scrollWidth-Kt.clientWidth-ae.right),this._applyScrollToOptions(ae)}_applyScrollToOptions(ae){const Kt=this.elementRef.nativeElement;(0,I.Mq)()?Kt.scrollTo(ae):(null!=ae.top&&(Kt.scrollTop=ae.top),null!=ae.left&&(Kt.scrollLeft=ae.left))}measureScrollOffset(ae){const Kt="left",Wt=this.elementRef.nativeElement;if("top"==ae)return Wt.scrollTop;if("bottom"==ae)return Wt.scrollHeight-Wt.clientHeight-Wt.scrollTop;const re=this.dir&&"rtl"==this.dir.value;return"start"==ae?ae=re?"right":Kt:"end"==ae&&(ae=re?Kt:"right"),re&&2==(0,I._i)()?ae==Kt?Wt.scrollWidth-Wt.clientWidth-Wt.scrollLeft:Wt.scrollLeft:re&&1==(0,I._i)()?ae==Kt?Wt.scrollLeft+Wt.scrollWidth-Wt.clientWidth:-Wt.scrollLeft:ae==Kt?Wt.scrollLeft:Wt.scrollWidth-Wt.clientWidth-Wt.scrollLeft}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(p.Y36(p.SBq),p.Y36(Vt),p.Y36(p.R0b),p.Y36(G.Is,8))},Xt.\u0275dir=p.lG2({type:Xt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Xt})(),At=(()=>{class Xt{constructor(ae,Kt,de){this._platform=ae,this._change=new v.xQ,this._changeListener=Wt=>{this._change.next(Wt)},this._document=de,Kt.runOutsideAngular(()=>{if(ae.isBrowser){const Wt=this._getWindow();Wt.addEventListener("resize",this._changeListener),Wt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ae=this._getWindow();ae.removeEventListener("resize",this._changeListener),ae.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ae={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ae}getViewportRect(){const ae=this.getViewportScrollPosition(),{width:Kt,height:de}=this.getViewportSize();return{top:ae.top,left:ae.left,bottom:ae.top+de,right:ae.left+Kt,height:de,width:Kt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ae=this._document,Kt=this._getWindow(),de=ae.documentElement,Wt=de.getBoundingClientRect();return{top:-Wt.top||ae.body.scrollTop||Kt.scrollY||de.scrollTop||0,left:-Wt.left||ae.body.scrollLeft||Kt.scrollX||de.scrollLeft||0}}change(ae=20){return ae>0?this._change.pipe((0,k.e)(ae)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ae=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ae.innerWidth,height:ae.innerHeight}:{width:0,height:0}}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(p.LFG(I.t4),p.LFG(p.R0b),p.LFG(z.K0,8))},Xt.\u0275prov=p.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})(),qe=(()=>{class Xt{}return Xt.\u0275fac=function(ae){return new(ae||Xt)},Xt.\u0275mod=p.oAB({type:Xt}),Xt.\u0275inj=p.cJS({}),Xt})(),$e=(()=>{class Xt{}return Xt.\u0275fac=function(ae){return new(ae||Xt)},Xt.\u0275mod=p.oAB({type:Xt}),Xt.\u0275inj=p.cJS({imports:[G.vT,qe,G.vT,qe]}),Xt})()},12138:(ot,et,b)=>{"use strict";b.d(et,{B8:()=>Dt,KL:()=>z,U5:()=>nt,be:()=>Pt,gx:()=>bt,po:()=>Vt,st:()=>zt,u6:()=>G});var d=b(12687),p=b(40445),v=b(21281),T=b(29521),t=b(94650),A=b(83353),C=b(8929),U=b(21086),k=b(1059),D=b(7625);function P(Tt,At){1&Tt&&t.Hsn(0)}const I=["*"];let z=(()=>{class Tt{constructor(ft){this._elementRef=ft}focus(){this._elementRef.nativeElement.focus()}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36(t.SBq))},Tt.\u0275dir=t.lG2({type:Tt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),Tt})(),G=(()=>{class Tt{constructor(ft){this.template=ft}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36(t.Rgc))},Tt.\u0275dir=t.lG2({type:Tt,selectors:[["","cdkStepLabel",""]]}),Tt})(),K=0;const bt=new t.OlP("STEPPER_GLOBAL_OPTIONS");let Pt=(()=>{class Tt{constructor(ft,Et){this._stepper=ft,this.interacted=!1,this.interactedStream=new t.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Et||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(ft){this._editable=(0,v.Ig)(ft)}get optional(){return this._optional}set optional(ft){this._optional=(0,v.Ig)(ft)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(ft){this._completedOverride=(0,v.Ig)(ft)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(ft){this._customError=(0,v.Ig)(ft)}_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 Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36((0,t.Gpc)(()=>Dt)),t.Y36(bt,8))},Tt.\u0275cmp=t.Xpm({type:Tt,selectors:[["cdk-step"]],contentQueries:function(ft,Et,Bt){if(1&ft&&t.Suo(Bt,G,5),2&ft){let It;t.iGM(It=t.CRH())&&(Et.stepLabel=It.first)}},viewQuery:function(ft,Et){if(1&ft&&t.Gf(t.Rgc,7),2&ft){let Bt;t.iGM(Bt=t.CRH())&&(Et.content=Bt.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(ft,Et){1&ft&&(t.F$t(),t.YNc(0,P,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),Tt})(),Dt=(()=>{class Tt{constructor(ft,Et,Bt){this._dir=ft,this._changeDetectorRef=Et,this._elementRef=Bt,this._destroyed=new C.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=K++}get linear(){return this._linear}set linear(ft){this._linear=(0,v.Ig)(ft)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ft){const Et=(0,v.su)(ft);this.steps&&this._steps?(this._isValidIndex(Et),this.selected?._markAsInteracted(),this._selectedIndex!==Et&&!this._anyControlsInvalidOrPending(Et)&&(Et>=this._selectedIndex||this.steps.toArray()[Et].editable)&&this._updateSelectedItemIndex(Et)):this._selectedIndex=Et}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(ft){this.selectedIndex=ft&&this.steps?this.steps.toArray().indexOf(ft):-1}get orientation(){return this._orientation}set orientation(ft){this._orientation=ft,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===ft)}ngAfterContentInit(){this._steps.changes.pipe((0,k.O)(this._steps),(0,D.R)(this._destroyed)).subscribe(ft=>{this.steps.reset(ft.filter(Et=>Et._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,k.O)(this._stepHeader),(0,D.R)(this._destroyed)).subscribe(ft=>{this._sortedHeaders.reset(ft.toArray().sort((Et,Bt)=>Et._elementRef.nativeElement.compareDocumentPosition(Bt._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,U.of)()).pipe((0,k.O)(this._layoutDirection()),(0,D.R)(this._destroyed)).subscribe(ft=>this._keyManager.withHorizontalOrientation(ft)),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(ft=>ft.reset()),this._stateChanged()}_getStepLabelId(ft){return`cdk-step-label-${this._groupId}-${ft}`}_getStepContentId(ft){return`cdk-step-content-${this._groupId}-${ft}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(ft){const Et=ft-this._selectedIndex;return Et<0?"rtl"===this._layoutDirection()?"next":"previous":Et>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(ft,Et="number"){const Bt=this.steps.toArray()[ft],It=this._isCurrentStep(ft);return Bt._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Bt,It):this._getGuidelineLogic(Bt,It,Et)}_getDefaultIndicatorLogic(ft,Et){return ft._showError()&&ft.hasError&&!Et?"error":!ft.completed||Et?"number":ft.editable?"edit":"done"}_getGuidelineLogic(ft,Et,Bt="number"){return ft._showError()&&ft.hasError&&!Et?"error":ft.completed&&!Et?"done":ft.completed&&Et?Bt:ft.editable&&Et?"edit":Bt}_isCurrentStep(ft){return this._selectedIndex===ft}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(ft){const Et=this.steps.toArray();this.selectionChange.emit({selectedIndex:ft,previouslySelectedIndex:this._selectedIndex,selectedStep:Et[ft],previouslySelectedStep:Et[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(ft):this._keyManager.updateActiveItem(ft),this._selectedIndex=ft,this._stateChanged()}_onKeydown(ft){const Et=(0,T.Vb)(ft),Bt=ft.keyCode,It=this._keyManager;null==It.activeItemIndex||Et||Bt!==T.L_&&Bt!==T.K5?It.onKeydown(ft):(this.selectedIndex=It.activeItemIndex,ft.preventDefault())}_anyControlsInvalidOrPending(ft){return!!(this._linear&&ft>=0)&&this.steps.toArray().slice(0,ft).some(Et=>{const Bt=Et.stepControl;return(Bt?Bt.invalid||Bt.pending||!Et.interacted:!Et.completed)&&!Et.optional&&!Et._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const ft=this._elementRef.nativeElement,Et=(0,A.ht)();return ft===Et||ft.contains(Et)}_isValidIndex(ft){return ft>-1&&(!this.steps||ft{class Tt{constructor(ft){this._stepper=ft,this.type="submit"}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36(Dt))},Tt.\u0275dir=t.lG2({type:Tt,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(ft,Et){1&ft&&t.NdJ("click",function(){return Et._stepper.next()}),2&ft&&t.Ikx("type",Et.type)},inputs:{type:"type"}}),Tt})(),Vt=(()=>{class Tt{constructor(ft){this._stepper=ft,this.type="button"}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36(Dt))},Tt.\u0275dir=t.lG2({type:Tt,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(ft,Et){1&ft&&t.NdJ("click",function(){return Et._stepper.previous()}),2&ft&&t.Ikx("type",Et.type)},inputs:{type:"type"}}),Tt})(),nt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275mod=t.oAB({type:Tt}),Tt.\u0275inj=t.cJS({imports:[p.vT]}),Tt})()},39349:(ot,et,b)=>{"use strict";b.d(et,{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),C=b(57138),U=b(7625),k=b(36895);const D=(0,d.i$)({passive:!0});let P=(()=>{class K{constructor(lt,bt){this._platform=lt,this._ngZone=bt,this._monitoredElements=new Map}monitor(lt){if(!this._platform.isBrowser)return T.E;const bt=(0,v.fI)(lt),Pt=this._monitoredElements.get(bt);if(Pt)return Pt.subject;const Dt=new t.xQ,zt="cdk-text-field-autofilled",Vt=nt=>{"cdk-text-field-autofill-start"!==nt.animationName||bt.classList.contains(zt)?"cdk-text-field-autofill-end"===nt.animationName&&bt.classList.contains(zt)&&(bt.classList.remove(zt),this._ngZone.run(()=>Dt.next({target:nt.target,isAutofilled:!1}))):(bt.classList.add(zt),this._ngZone.run(()=>Dt.next({target:nt.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{bt.addEventListener("animationstart",Vt,D),bt.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(bt,{subject:Dt,unlisten:()=>{bt.removeEventListener("animationstart",Vt,D)}}),Dt}stopMonitoring(lt){const bt=(0,v.fI)(lt),Pt=this._monitoredElements.get(bt);Pt&&(Pt.unlisten(),Pt.subject.complete(),bt.classList.remove("cdk-text-field-autofill-monitored"),bt.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(bt))}ngOnDestroy(){this._monitoredElements.forEach((lt,bt)=>this.stopMonitoring(bt))}}return K.\u0275fac=function(lt){return new(lt||K)(p.LFG(d.t4),p.LFG(p.R0b))},K.\u0275prov=p.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})(),z=(()=>{class K{constructor(lt,bt,Pt,Dt){this._elementRef=lt,this._platform=bt,this._ngZone=Pt,this._destroyed=new t.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=zt=>{this._hasFocus="focus"===zt.type},this._document=Dt,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(lt){this._minRows=(0,v.su)(lt),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(lt){this._maxRows=(0,v.su)(lt),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(lt){lt=(0,v.Ig)(lt),this._enabled!==lt&&((this._enabled=lt)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(lt){this._cachedPlaceholderHeight=void 0,lt?this._textareaElement.setAttribute("placeholder",lt):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const lt=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;lt&&(this._textareaElement.style.minHeight=lt)}_setMaxHeight(){const lt=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;lt&&(this._textareaElement.style.maxHeight=lt)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const lt=this._getWindow();(0,A.R)(lt,"resize").pipe((0,C.e)(16),(0,U.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 lt=this._textareaElement.cloneNode(!1);lt.rows=1,lt.style.position="absolute",lt.style.visibility="hidden",lt.style.border="none",lt.style.padding="0",lt.style.height="",lt.style.minHeight="",lt.style.maxHeight="",lt.style.overflow="hidden",this._textareaElement.parentNode.appendChild(lt),this._cachedLineHeight=lt.clientHeight,lt.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const lt=this._textareaElement,bt=lt.style.marginBottom||"",Pt=this._platform.FIREFOX,Dt=Pt&&this._hasFocus,zt=Pt?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Dt&&(lt.style.marginBottom=`${lt.clientHeight}px`),lt.classList.add(zt);const Vt=lt.scrollHeight-4;return lt.classList.remove(zt),Dt&&(lt.style.marginBottom=bt),Vt}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const lt=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=lt}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(lt=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const bt=this._elementRef.nativeElement,Pt=bt.value;if(!lt&&this._minRows===this._previousMinRows&&Pt===this._previousValue)return;const Dt=this._measureScrollHeight(),zt=Math.max(Dt,this._cachedPlaceholderHeight||0);bt.style.height=`${zt}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(bt)):setTimeout(()=>this._scrollToCaretPosition(bt))}),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(lt){const{selectionStart:bt,selectionEnd:Pt}=lt;!this._destroyed.isStopped&&this._hasFocus&<.setSelectionRange(bt,Pt)}}return K.\u0275fac=function(lt){return new(lt||K)(p.Y36(p.SBq),p.Y36(d.t4),p.Y36(p.R0b),p.Y36(k.K0,8))},K.\u0275dir=p.lG2({type:K,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(lt,bt){1<&&p.NdJ("input",function(){return bt._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),K})(),G=(()=>{class K{}return K.\u0275fac=function(lt){return new(lt||K)},K.\u0275mod=p.oAB({type:K}),K.\u0275inj=p.cJS({}),K})()},57851:(ot,et,b)=>{"use strict";b.d(et,{C2:()=>z,HI:()=>K,Hs:()=>At,Ud:()=>Jt,VY:()=>G,XJ:()=>se,Xx:()=>Bt,_0:()=>Tt,cu:()=>at,nZ:()=>xe,rO:()=>bt});var d=b(95017),p=b(54715),v=b(8929),T=b(591),t=b(21086),A=b(72986),C=b(92198),U=b(7625),k=b(94650),D=b(21281),P=b(40445);class I{constructor(){this.expansionModel=new d.Ov(!0)}toggle(qe){this.expansionModel.toggle(this._trackByValue(qe))}expand(qe){this.expansionModel.select(this._trackByValue(qe))}collapse(qe){this.expansionModel.deselect(this._trackByValue(qe))}isExpanded(qe){return this.expansionModel.isSelected(this._trackByValue(qe))}toggleDescendants(qe){this.expansionModel.isSelected(this._trackByValue(qe))?this.collapseDescendants(qe):this.expandDescendants(qe)}collapseAll(){this.expansionModel.clear()}expandDescendants(qe){let $e=[qe];$e.push(...this.getDescendants(qe)),this.expansionModel.select(...$e.map(Xt=>this._trackByValue(Xt)))}collapseDescendants(qe){let $e=[qe];$e.push(...this.getDescendants(qe)),this.expansionModel.deselect(...$e.map(Xt=>this._trackByValue(Xt)))}_trackByValue(qe){return this.trackBy?this.trackBy(qe):qe}}class z extends I{constructor(qe,$e,Xt){super(),this.getLevel=qe,this.isExpandable=$e,this.options=Xt,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(qe){const Xt=[];for(let we=this.dataNodes.indexOf(qe)+1;wethis._trackByValue(qe)))}}class G extends I{constructor(qe,$e){super(),this.getChildren=qe,this.options=$e,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const qe=this.dataNodes.reduce(($e,Xt)=>[...$e,...this.getDescendants(Xt),Xt],[]);this.expansionModel.select(...qe.map($e=>this._trackByValue($e)))}getDescendants(qe){const $e=[];return this._getDescendants($e,qe),$e.splice(1)}_getDescendants(qe,$e){qe.push($e);const Xt=this.getChildren($e);Array.isArray(Xt)?Xt.forEach(we=>this._getDescendants(qe,we)):(0,p.b)(Xt)&&Xt.pipe((0,A.q)(1),(0,C.h)(Boolean)).subscribe(we=>{for(const ae of we)this._getDescendants(qe,ae)})}}const K=new k.OlP("CDK_TREE_NODE_OUTLET_NODE");let at=(()=>{class Oe{constructor($e,Xt){this.viewContainer=$e,this._node=Xt}}return Oe.\u0275fac=function($e){return new($e||Oe)(k.Y36(k.s_b),k.Y36(K,8))},Oe.\u0275dir=k.lG2({type:Oe,selectors:[["","cdkTreeNodeOutlet",""]]}),Oe})();class lt{constructor(qe){this.$implicit=qe}}let bt=(()=>{class Oe{constructor($e){this.template=$e}}return Oe.\u0275fac=function($e){return new($e||Oe)(k.Y36(k.Rgc))},Oe.\u0275dir=k.lG2({type:Oe,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),Oe})(),Tt=(()=>{class Oe{constructor($e,Xt){this._differs=$e,this._changeDetectorRef=Xt,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($e){this._dataSource!==$e&&this._switchDataSource($e)}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 $e=this._nodeDefs.filter(Xt=>!Xt.when);this._defaultNodeDef=$e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource($e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),$e||this._nodeOutlet.viewContainer.clear(),this._dataSource=$e,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let $e;(0,d.Z9)(this._dataSource)?$e=this._dataSource.connect(this):(0,p.b)(this._dataSource)?$e=this._dataSource:Array.isArray(this._dataSource)&&($e=(0,t.of)(this._dataSource)),$e&&(this._dataSubscription=$e.pipe((0,U.R)(this._onDestroy)).subscribe(Xt=>this.renderNodeChanges(Xt)))}renderNodeChanges($e,Xt=this._dataDiffer,we=this._nodeOutlet.viewContainer,ae){const Kt=Xt.diff($e);!Kt||(Kt.forEachOperation((de,Wt,re)=>{if(null==de.previousIndex)this.insertNode($e[re],re,we,ae);else if(null==re)we.remove(Wt),this._levels.delete(de.item);else{const Pe=we.get(Wt);we.move(Pe,re)}}),this._changeDetectorRef.detectChanges())}_getNodeDef($e,Xt){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(ae=>ae.when&&ae.when(Xt,$e))||this._defaultNodeDef}insertNode($e,Xt,we,ae){const Kt=this._getNodeDef($e,Xt),de=new lt($e);de.level=this.treeControl.getLevel?this.treeControl.getLevel($e):typeof ae<"u"&&this._levels.has(ae)?this._levels.get(ae)+1:0,this._levels.set($e,de.level),(we||this._nodeOutlet.viewContainer).createEmbeddedView(Kt.template,de,Xt),At.mostRecentTreeNode&&(At.mostRecentTreeNode.data=$e)}}return Oe.\u0275fac=function($e){return new($e||Oe)(k.Y36(k.ZZ4),k.Y36(k.sBO))},Oe.\u0275cmp=k.Xpm({type:Oe,selectors:[["cdk-tree"]],contentQueries:function($e,Xt,we){if(1&$e&&k.Suo(we,bt,5),2&$e){let ae;k.iGM(ae=k.CRH())&&(Xt._nodeDefs=ae)}},viewQuery:function($e,Xt){if(1&$e&&k.Gf(at,7),2&$e){let we;k.iGM(we=k.CRH())&&(Xt._nodeOutlet=we.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function($e,Xt){1&$e&&k.GkF(0,0)},dependencies:[at],encapsulation:2}),Oe})(),At=(()=>{class Oe{constructor($e,Xt){this._elementRef=$e,this._tree=Xt,this._destroyed=new v.xQ,this._dataChanges=new v.xQ,Oe.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role($e){this._elementRef.nativeElement.setAttribute("role",$e)}get data(){return this._data}set data($e){$e!==this._data&&(this._data=$e,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 ft(Oe){let qe=Oe.parentElement;for(;qe&&!Et(qe);)qe=qe.parentElement;return qe?qe.classList.contains("cdk-nested-tree-node")?(0,D.su)(qe.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){Oe.mostRecentTreeNode===this&&(Oe.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return Oe.mostRecentTreeNode=null,Oe.\u0275fac=function($e){return new($e||Oe)(k.Y36(k.SBq),k.Y36(Tt))},Oe.\u0275dir=k.lG2({type:Oe,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function($e,Xt){2&$e&&k.uIk("aria-expanded",Xt.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),Oe})();function Et(Oe){const qe=Oe.classList;return!(!qe?.contains("cdk-nested-tree-node")&&!qe?.contains("cdk-tree"))}let Bt=(()=>{class Oe extends At{constructor($e,Xt,we){super($e,Xt),this._differs=we}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const $e=this._tree.treeControl.getChildren(this.data);Array.isArray($e)?this.updateChildrenNodes($e):(0,p.b)($e)&&$e.pipe((0,U.R)(this._destroyed)).subscribe(Xt=>this.updateChildrenNodes(Xt)),this.nodeOutlet.changes.pipe((0,U.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes($e){const Xt=this._getNodeOutlet();$e&&(this._children=$e),Xt&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,Xt.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const $e=this._getNodeOutlet();$e&&($e.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const $e=this.nodeOutlet;return $e&&$e.find(Xt=>!Xt._node||Xt._node===this)}}return Oe.\u0275fac=function($e){return new($e||Oe)(k.Y36(k.SBq),k.Y36(Tt),k.Y36(k.ZZ4))},Oe.\u0275dir=k.lG2({type:Oe,selectors:[["cdk-nested-tree-node"]],contentQueries:function($e,Xt,we){if(1&$e&&k.Suo(we,at,5),2&$e){let ae;k.iGM(ae=k.CRH())&&(Xt.nodeOutlet=ae)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[k._Bn([{provide:At,useExisting:Oe},{provide:K,useExisting:Oe}]),k.qOj]}),Oe})();const It=/([A-Za-z%]+)$/;let se=(()=>{class Oe{constructor($e,Xt,we,ae){this._treeNode=$e,this._tree=Xt,this._element=we,this._dir=ae,this._destroyed=new v.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),ae&&ae.change.pipe((0,U.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),$e._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level($e){this._setLevelInput($e)}get indent(){return this._indent}set indent($e){this._setIndentInput($e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const $e=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,Xt=this._level??$e;return"number"==typeof Xt?`${Xt*this._indent}${this.indentUnits}`:null}_setPadding($e=!1){const Xt=this._paddingIndent();if(Xt!==this._currentPadding||$e){const we=this._element.nativeElement,ae=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",Kt="paddingLeft"===ae?"paddingRight":"paddingLeft";we.style[ae]=Xt||"",we.style[Kt]="",this._currentPadding=Xt}}_setLevelInput($e){this._level=(0,D.su)($e,null),this._setPadding()}_setIndentInput($e){let Xt=$e,we="px";if("string"==typeof $e){const ae=$e.split(It);Xt=ae[0],we=ae[1]||we}this.indentUnits=we,this._indent=(0,D.su)(Xt),this._setPadding()}}return Oe.\u0275fac=function($e){return new($e||Oe)(k.Y36(At),k.Y36(Tt),k.Y36(k.SBq),k.Y36(P.Is,8))},Oe.\u0275dir=k.lG2({type:Oe,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),Oe})(),Jt=(()=>{class Oe{constructor($e,Xt){this._tree=$e,this._treeNode=Xt,this._recursive=!1}get recursive(){return this._recursive}set recursive($e){this._recursive=(0,D.Ig)($e)}_toggle($e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),$e.stopPropagation()}}return Oe.\u0275fac=function($e){return new($e||Oe)(k.Y36(Tt),k.Y36(At))},Oe.\u0275dir=k.lG2({type:Oe,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function($e,Xt){1&$e&&k.NdJ("click",function(ae){return Xt._toggle(ae)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),Oe})(),xe=(()=>{class Oe{}return Oe.\u0275fac=function($e){return new($e||Oe)},Oe.\u0275mod=k.oAB({type:Oe}),Oe.\u0275inj=k.cJS({}),Oe})()},36895:(ot,et,b)=>{"use strict";b.d(et,{Do:()=>Dt,ED:()=>Sc,EM:()=>Gc,H9:()=>zl,HT:()=>t,JF:()=>Ps,JJ:()=>Hl,K0:()=>C,Mx:()=>Rn,NF:()=>bu,Nd:()=>jc,O5:()=>dr,Ov:()=>Al,PC:()=>Qr,PM:()=>Dr,RF:()=>Pc,S$:()=>lt,V_:()=>D,Ye:()=>zt,b0:()=>Pt,bD:()=>xc,ez:()=>Yl,i8:()=>Oc,mk:()=>Gi,n9:()=>al,q:()=>v,qS:()=>Be,rS:()=>Bc,sg:()=>ar,tP:()=>Fs,uU:()=>yl,w_:()=>A,xG:()=>Ia});var d=b(94650);let p=null;function v(){return p}function t(Mt){p||(p=Mt)}class A{}const C=new d.OlP("DocumentToken");let U=(()=>{class Mt{historyGo(jt){throw new Error("Not implemented")}}return Mt.\u0275fac=function(jt){return new(jt||Mt)},Mt.\u0275prov=d.Yz7({token:Mt,factory:function(){return function k(){return(0,d.LFG)(P)}()},providedIn:"platform"}),Mt})();const D=new d.OlP("Location Initialized");let P=(()=>{class Mt extends U{constructor(jt){super(),this._doc=jt,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v().getBaseHref(this._doc)}onPopState(jt){const Qe=v().getGlobalEventTarget(this._doc,"window");return Qe.addEventListener("popstate",jt,!1),()=>Qe.removeEventListener("popstate",jt)}onHashChange(jt){const Qe=v().getGlobalEventTarget(this._doc,"window");return Qe.addEventListener("hashchange",jt,!1),()=>Qe.removeEventListener("hashchange",jt)}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(jt){this.location.pathname=jt}pushState(jt,Qe,On){I()?this._history.pushState(jt,Qe,On):this.location.hash=On}replaceState(jt,Qe,On){I()?this._history.replaceState(jt,Qe,On):this.location.hash=On}forward(){this._history.forward()}back(){this._history.back()}historyGo(jt=0){this._history.go(jt)}getState(){return this._history.state}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.LFG(C))},Mt.\u0275prov=d.Yz7({token:Mt,factory:function(){return function z(){return new P((0,d.LFG)(C))}()},providedIn:"platform"}),Mt})();function I(){return!!window.history.pushState}function G(Mt,me){if(0==Mt.length)return me;if(0==me.length)return Mt;let jt=0;return Mt.endsWith("/")&&jt++,me.startsWith("/")&&jt++,2==jt?Mt+me.substring(1):1==jt?Mt+me:Mt+"/"+me}function K(Mt){const me=Mt.match(/#|\?|$/),jt=me&&me.index||Mt.length;return Mt.slice(0,jt-("/"===Mt[jt-1]?1:0))+Mt.slice(jt)}function at(Mt){return Mt&&"?"!==Mt[0]?"?"+Mt:Mt}let lt=(()=>{class Mt{historyGo(jt){throw new Error("Not implemented")}}return Mt.\u0275fac=function(jt){return new(jt||Mt)},Mt.\u0275prov=d.Yz7({token:Mt,factory:function(){return(0,d.f3M)(Pt)},providedIn:"root"}),Mt})();const bt=new d.OlP("appBaseHref");let Pt=(()=>{class Mt extends lt{constructor(jt,Qe){super(),this._platformLocation=jt,this._removeListenerFns=[],this._baseHref=Qe??this._platformLocation.getBaseHrefFromDOM()??(0,d.f3M)(C).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(jt){this._removeListenerFns.push(this._platformLocation.onPopState(jt),this._platformLocation.onHashChange(jt))}getBaseHref(){return this._baseHref}prepareExternalUrl(jt){return G(this._baseHref,jt)}path(jt=!1){const Qe=this._platformLocation.pathname+at(this._platformLocation.search),On=this._platformLocation.hash;return On&&jt?`${Qe}${On}`:Qe}pushState(jt,Qe,On,Nt){const ce=this.prepareExternalUrl(On+at(Nt));this._platformLocation.pushState(jt,Qe,ce)}replaceState(jt,Qe,On,Nt){const ce=this.prepareExternalUrl(On+at(Nt));this._platformLocation.replaceState(jt,Qe,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(jt=0){this._platformLocation.historyGo?.(jt)}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.LFG(U),d.LFG(bt,8))},Mt.\u0275prov=d.Yz7({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})(),Dt=(()=>{class Mt extends lt{constructor(jt,Qe){super(),this._platformLocation=jt,this._baseHref="",this._removeListenerFns=[],null!=Qe&&(this._baseHref=Qe)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(jt){this._removeListenerFns.push(this._platformLocation.onPopState(jt),this._platformLocation.onHashChange(jt))}getBaseHref(){return this._baseHref}path(jt=!1){let Qe=this._platformLocation.hash;return null==Qe&&(Qe="#"),Qe.length>0?Qe.substring(1):Qe}prepareExternalUrl(jt){const Qe=G(this._baseHref,jt);return Qe.length>0?"#"+Qe:Qe}pushState(jt,Qe,On,Nt){let ce=this.prepareExternalUrl(On+at(Nt));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.pushState(jt,Qe,ce)}replaceState(jt,Qe,On,Nt){let ce=this.prepareExternalUrl(On+at(Nt));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.replaceState(jt,Qe,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(jt=0){this._platformLocation.historyGo?.(jt)}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.LFG(U),d.LFG(bt,8))},Mt.\u0275prov=d.Yz7({token:Mt,factory:Mt.\u0275fac}),Mt})(),zt=(()=>{class Mt{constructor(jt){this._subject=new d.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=jt;const Qe=this._locationStrategy.getBaseHref();this._baseHref=K(Tt(Qe)),this._locationStrategy.onPopState(On=>{this._subject.emit({url:this.path(!0),pop:!0,state:On.state,type:On.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(jt=!1){return this.normalize(this._locationStrategy.path(jt))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(jt,Qe=""){return this.path()==this.normalize(jt+at(Qe))}normalize(jt){return Mt.stripTrailingSlash(function nt(Mt,me){return Mt&&me.startsWith(Mt)?me.substring(Mt.length):me}(this._baseHref,Tt(jt)))}prepareExternalUrl(jt){return jt&&"/"!==jt[0]&&(jt="/"+jt),this._locationStrategy.prepareExternalUrl(jt)}go(jt,Qe="",On=null){this._locationStrategy.pushState(On,"",jt,Qe),this._notifyUrlChangeListeners(this.prepareExternalUrl(jt+at(Qe)),On)}replaceState(jt,Qe="",On=null){this._locationStrategy.replaceState(On,"",jt,Qe),this._notifyUrlChangeListeners(this.prepareExternalUrl(jt+at(Qe)),On)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(jt=0){this._locationStrategy.historyGo?.(jt)}onUrlChange(jt){return this._urlChangeListeners.push(jt),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Qe=>{this._notifyUrlChangeListeners(Qe.url,Qe.state)})),()=>{const Qe=this._urlChangeListeners.indexOf(jt);this._urlChangeListeners.splice(Qe,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(jt="",Qe){this._urlChangeListeners.forEach(On=>On(jt,Qe))}subscribe(jt,Qe,On){return this._subject.subscribe({next:jt,error:Qe,complete:On})}}return Mt.normalizeQueryParams=at,Mt.joinWithSlash=G,Mt.stripTrailingSlash=K,Mt.\u0275fac=function(jt){return new(jt||Mt)(d.LFG(lt))},Mt.\u0275prov=d.Yz7({token:Mt,factory:function(){return function Vt(){return new zt((0,d.LFG)(lt))}()},providedIn:"root"}),Mt})();function Tt(Mt){return Mt.replace(/\/index.html$/,"")}const At={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 ft=(()=>((ft=ft||{})[ft.Decimal=0]="Decimal",ft[ft.Percent=1]="Percent",ft[ft.Currency=2]="Currency",ft[ft.Scientific=3]="Scientific",ft))(),Bt=(()=>((Bt=Bt||{})[Bt.Format=0]="Format",Bt[Bt.Standalone=1]="Standalone",Bt))(),It=(()=>((It=It||{})[It.Narrow=0]="Narrow",It[It.Abbreviated=1]="Abbreviated",It[It.Wide=2]="Wide",It[It.Short=3]="Short",It))(),se=(()=>((se=se||{})[se.Short=0]="Short",se[se.Medium=1]="Medium",se[se.Long=2]="Long",se[se.Full=3]="Full",se))(),Jt=(()=>((Jt=Jt||{})[Jt.Decimal=0]="Decimal",Jt[Jt.Group=1]="Group",Jt[Jt.List=2]="List",Jt[Jt.PercentSign=3]="PercentSign",Jt[Jt.PlusSign=4]="PlusSign",Jt[Jt.MinusSign=5]="MinusSign",Jt[Jt.Exponential=6]="Exponential",Jt[Jt.SuperscriptingExponent=7]="SuperscriptingExponent",Jt[Jt.PerMille=8]="PerMille",Jt[Jt.Infinity=9]="Infinity",Jt[Jt.NaN=10]="NaN",Jt[Jt.TimeSeparator=11]="TimeSeparator",Jt[Jt.CurrencyDecimal=12]="CurrencyDecimal",Jt[Jt.CurrencyGroup=13]="CurrencyGroup",Jt))();function Kt(Mt,me){return ri((0,d.cg1)(Mt)[d.wAp.DateFormat],me)}function de(Mt,me){return ri((0,d.cg1)(Mt)[d.wAp.TimeFormat],me)}function Wt(Mt,me){return ri((0,d.cg1)(Mt)[d.wAp.DateTimeFormat],me)}function re(Mt,me){const jt=(0,d.cg1)(Mt),Qe=jt[d.wAp.NumberSymbols][me];if(typeof Qe>"u"){if(me===Jt.CurrencyDecimal)return jt[d.wAp.NumberSymbols][Jt.Decimal];if(me===Jt.CurrencyGroup)return jt[d.wAp.NumberSymbols][Jt.Group]}return Qe}function Pe(Mt,me){return(0,d.cg1)(Mt)[d.wAp.NumberFormats][me]}function un(Mt){if(!Mt[d.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Mt[d.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ri(Mt,me){for(let jt=me;jt>-1;jt--)if(typeof Mt[jt]<"u")return Mt[jt];throw new Error("Locale data API: locale data undefined")}function Ke(Mt){const[me,jt]=Mt.split(":");return{hours:+me,minutes:+jt}}const kt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Gt={},oe=/((?:[^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 Ce=(()=>((Ce=Ce||{})[Ce.Short=0]="Short",Ce[Ce.ShortGMT=1]="ShortGMT",Ce[Ce.Long=2]="Long",Ce[Ce.Extended=3]="Extended",Ce))(),Ee=(()=>((Ee=Ee||{})[Ee.FullYear=0]="FullYear",Ee[Ee.Month=1]="Month",Ee[Ee.Date=2]="Date",Ee[Ee.Hours=3]="Hours",Ee[Ee.Minutes=4]="Minutes",Ee[Ee.Seconds=5]="Seconds",Ee[Ee.FractionalSeconds=6]="FractionalSeconds",Ee[Ee.Day=7]="Day",Ee))(),Pn=(()=>((Pn=Pn||{})[Pn.DayPeriods=0]="DayPeriods",Pn[Pn.Days=1]="Days",Pn[Pn.Months=2]="Months",Pn[Pn.Eras=3]="Eras",Pn))();function Ln(Mt,me,jt,Qe){let On=function Re(Mt){if(gi(Mt))return Mt;if("number"==typeof Mt&&!isNaN(Mt))return new Date(Mt);if("string"==typeof Mt){if(Mt=Mt.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Mt)){const[On,Nt=1,ce=1]=Mt.split("-").map(Me=>+Me);return mi(On,Nt-1,ce)}const jt=parseFloat(Mt);if(!isNaN(Mt-jt))return new Date(jt);let Qe;if(Qe=Mt.match(kt))return function En(Mt){const me=new Date(0);let jt=0,Qe=0;const On=Mt[8]?me.setUTCFullYear:me.setFullYear,Nt=Mt[8]?me.setUTCHours:me.setHours;Mt[9]&&(jt=Number(Mt[9]+Mt[10]),Qe=Number(Mt[9]+Mt[11])),On.call(me,Number(Mt[1]),Number(Mt[2])-1,Number(Mt[3]));const ce=Number(Mt[4]||0)-jt,Me=Number(Mt[5]||0)-Qe,tn=Number(Mt[6]||0),vn=Math.floor(1e3*parseFloat("0."+(Mt[7]||0)));return Nt.call(me,ce,Me,tn,vn),me}(Qe)}const me=new Date(Mt);if(!gi(me))throw new Error(`Unable to convert "${Mt}" into a date`);return me}(Mt);me=Oi(jt,me)||me;let Me,ce=[];for(;me;){if(Me=oe.exec(me),!Me){ce.push(me);break}{ce=ce.concat(Me.slice(1));const Gn=ce.pop();if(!Gn)break;me=Gn}}let tn=On.getTimezoneOffset();Qe&&(tn=Fe(Qe,tn),On=function he(Mt,me,jt){const Qe=jt?-1:1,On=Mt.getTimezoneOffset();return function Tn(Mt,me){return(Mt=new Date(Mt.getTime())).setMinutes(Mt.getMinutes()+me),Mt}(Mt,Qe*(Fe(me,On)-On))}(On,Qe,!0));let vn="";return ce.forEach(Gn=>{const Qn=function Xe(Mt){if(Te[Mt])return Te[Mt];let me;switch(Mt){case"G":case"GG":case"GGG":me=fn(Pn.Eras,It.Abbreviated);break;case"GGGG":me=fn(Pn.Eras,It.Wide);break;case"GGGGG":me=fn(Pn.Eras,It.Narrow);break;case"y":me=jn(Ee.FullYear,1,0,!1,!0);break;case"yy":me=jn(Ee.FullYear,2,0,!0,!0);break;case"yyy":me=jn(Ee.FullYear,3,0,!1,!0);break;case"yyyy":me=jn(Ee.FullYear,4,0,!1,!0);break;case"Y":me=Ot(1);break;case"YY":me=Ot(2,!0);break;case"YYY":me=Ot(3);break;case"YYYY":me=Ot(4);break;case"M":case"L":me=jn(Ee.Month,1,1);break;case"MM":case"LL":me=jn(Ee.Month,2,1);break;case"MMM":me=fn(Pn.Months,It.Abbreviated);break;case"MMMM":me=fn(Pn.Months,It.Wide);break;case"MMMMM":me=fn(Pn.Months,It.Narrow);break;case"LLL":me=fn(Pn.Months,It.Abbreviated,Bt.Standalone);break;case"LLLL":me=fn(Pn.Months,It.Wide,Bt.Standalone);break;case"LLLLL":me=fn(Pn.Months,It.Narrow,Bt.Standalone);break;case"w":me=wt(1);break;case"ww":me=wt(2);break;case"W":me=wt(1,!0);break;case"d":me=jn(Ee.Date,1);break;case"dd":me=jn(Ee.Date,2);break;case"c":case"cc":me=jn(Ee.Day,1);break;case"ccc":me=fn(Pn.Days,It.Abbreviated,Bt.Standalone);break;case"cccc":me=fn(Pn.Days,It.Wide,Bt.Standalone);break;case"ccccc":me=fn(Pn.Days,It.Narrow,Bt.Standalone);break;case"cccccc":me=fn(Pn.Days,It.Short,Bt.Standalone);break;case"E":case"EE":case"EEE":me=fn(Pn.Days,It.Abbreviated);break;case"EEEE":me=fn(Pn.Days,It.Wide);break;case"EEEEE":me=fn(Pn.Days,It.Narrow);break;case"EEEEEE":me=fn(Pn.Days,It.Short);break;case"a":case"aa":case"aaa":me=fn(Pn.DayPeriods,It.Abbreviated);break;case"aaaa":me=fn(Pn.DayPeriods,It.Wide);break;case"aaaaa":me=fn(Pn.DayPeriods,It.Narrow);break;case"b":case"bb":case"bbb":me=fn(Pn.DayPeriods,It.Abbreviated,Bt.Standalone,!0);break;case"bbbb":me=fn(Pn.DayPeriods,It.Wide,Bt.Standalone,!0);break;case"bbbbb":me=fn(Pn.DayPeriods,It.Narrow,Bt.Standalone,!0);break;case"B":case"BB":case"BBB":me=fn(Pn.DayPeriods,It.Abbreviated,Bt.Format,!0);break;case"BBBB":me=fn(Pn.DayPeriods,It.Wide,Bt.Format,!0);break;case"BBBBB":me=fn(Pn.DayPeriods,It.Narrow,Bt.Format,!0);break;case"h":me=jn(Ee.Hours,1,-12);break;case"hh":me=jn(Ee.Hours,2,-12);break;case"H":me=jn(Ee.Hours,1);break;case"HH":me=jn(Ee.Hours,2);break;case"m":me=jn(Ee.Minutes,1);break;case"mm":me=jn(Ee.Minutes,2);break;case"s":me=jn(Ee.Seconds,1);break;case"ss":me=jn(Ee.Seconds,2);break;case"S":me=jn(Ee.FractionalSeconds,1);break;case"SS":me=jn(Ee.FractionalSeconds,2);break;case"SSS":me=jn(Ee.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":me=We(Ce.Short);break;case"ZZZZZ":me=We(Ce.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":me=We(Ce.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":me=We(Ce.Long);break;default:return null}return Te[Mt]=me,me}(Gn);vn+=Qn?Qn(On,jt,tn):"''"===Gn?"'":Gn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),vn}function mi(Mt,me,jt){const Qe=new Date(0);return Qe.setFullYear(Mt,me,jt),Qe.setHours(0,0,0),Qe}function Oi(Mt,me){const jt=function xe(Mt){return(0,d.cg1)(Mt)[d.wAp.LocaleId]}(Mt);if(Gt[jt]=Gt[jt]||{},Gt[jt][me])return Gt[jt][me];let Qe="";switch(me){case"shortDate":Qe=Kt(Mt,se.Short);break;case"mediumDate":Qe=Kt(Mt,se.Medium);break;case"longDate":Qe=Kt(Mt,se.Long);break;case"fullDate":Qe=Kt(Mt,se.Full);break;case"shortTime":Qe=de(Mt,se.Short);break;case"mediumTime":Qe=de(Mt,se.Medium);break;case"longTime":Qe=de(Mt,se.Long);break;case"fullTime":Qe=de(Mt,se.Full);break;case"short":const On=Oi(Mt,"shortTime"),Nt=Oi(Mt,"shortDate");Qe=ho(Wt(Mt,se.Short),[On,Nt]);break;case"medium":const ce=Oi(Mt,"mediumTime"),Me=Oi(Mt,"mediumDate");Qe=ho(Wt(Mt,se.Medium),[ce,Me]);break;case"long":const tn=Oi(Mt,"longTime"),vn=Oi(Mt,"longDate");Qe=ho(Wt(Mt,se.Long),[tn,vn]);break;case"full":const Gn=Oi(Mt,"fullTime"),Qn=Oi(Mt,"fullDate");Qe=ho(Wt(Mt,se.Full),[Gn,Qn])}return Qe&&(Gt[jt][me]=Qe),Qe}function ho(Mt,me){return me&&(Mt=Mt.replace(/\{([^}]+)}/g,function(jt,Qe){return null!=me&&Qe in me?me[Qe]:jt})),Mt}function fi(Mt,me,jt="-",Qe,On){let Nt="";(Mt<0||On&&Mt<=0)&&(On?Mt=1-Mt:(Mt=-Mt,Nt=jt));let ce=String(Mt);for(;ce.length0||Me>-jt)&&(Me+=jt),Mt===Ee.Hours)0===Me&&-12===jt&&(Me=12);else if(Mt===Ee.FractionalSeconds)return function Yn(Mt,me){return fi(Mt,3).substring(0,me)}(Me,me);const tn=re(ce,Jt.MinusSign);return fi(Me,me,tn,Qe,On)}}function fn(Mt,me,jt=Bt.Format,Qe=!1){return function(On,Nt){return function ze(Mt,me,jt,Qe,On,Nt){switch(jt){case Pn.Months:return function $e(Mt,me,jt){const Qe=(0,d.cg1)(Mt),Nt=ri([Qe[d.wAp.MonthsFormat],Qe[d.wAp.MonthsStandalone]],me);return ri(Nt,jt)}(me,On,Qe)[Mt.getMonth()];case Pn.Days:return function qe(Mt,me,jt){const Qe=(0,d.cg1)(Mt),Nt=ri([Qe[d.wAp.DaysFormat],Qe[d.wAp.DaysStandalone]],me);return ri(Nt,jt)}(me,On,Qe)[Mt.getDay()];case Pn.DayPeriods:const ce=Mt.getHours(),Me=Mt.getMinutes();if(Nt){const vn=function Mn(Mt){const me=(0,d.cg1)(Mt);return un(me),(me[d.wAp.ExtraData][2]||[]).map(Qe=>"string"==typeof Qe?Ke(Qe):[Ke(Qe[0]),Ke(Qe[1])])}(me),Gn=function oi(Mt,me,jt){const Qe=(0,d.cg1)(Mt);un(Qe);const Nt=ri([Qe[d.wAp.ExtraData][0],Qe[d.wAp.ExtraData][1]],me)||[];return ri(Nt,jt)||[]}(me,On,Qe),Qn=vn.findIndex(yi=>{if(Array.isArray(yi)){const[Ti,bo]=yi,xo=ce>=Ti.hours&&Me>=Ti.minutes,yo=ce0?Math.floor(On/60):Math.ceil(On/60);switch(Mt){case Ce.Short:return(On>=0?"+":"")+fi(ce,2,Nt)+fi(Math.abs(On%60),2,Nt);case Ce.ShortGMT:return"GMT"+(On>=0?"+":"")+fi(ce,1,Nt);case Ce.Long:return"GMT"+(On>=0?"+":"")+fi(ce,2,Nt)+":"+fi(Math.abs(On%60),2,Nt);case Ce.Extended:return 0===Qe?"Z":(On>=0?"+":"")+fi(ce,2,Nt)+":"+fi(Math.abs(On%60),2,Nt);default:throw new Error(`Unknown zone width "${Mt}"`)}}}function Lt(Mt){return mi(Mt.getFullYear(),Mt.getMonth(),Mt.getDate()+(4-Mt.getDay()))}function wt(Mt,me=!1){return function(jt,Qe){let On;if(me){const Nt=new Date(jt.getFullYear(),jt.getMonth(),1).getDay()-1,ce=jt.getDate();On=1+Math.floor((ce+Nt)/7)}else{const Nt=Lt(jt),ce=function Je(Mt){const me=mi(Mt,0,1).getDay();return mi(Mt,0,1+(me<=4?4:11)-me)}(Nt.getFullYear()),Me=Nt.getTime()-ce.getTime();On=1+Math.round(Me/6048e5)}return fi(On,Mt,re(Qe,Jt.MinusSign))}}function Ot(Mt,me=!1){return function(jt,Qe){return fi(Lt(jt).getFullYear(),Mt,re(Qe,Jt.MinusSign),me)}}const Te={};function Fe(Mt,me){Mt=Mt.replace(/:/g,"");const jt=Date.parse("Jan 01, 1970 00:00:00 "+Mt)/6e4;return isNaN(jt)?me:jt}function gi(Mt){return Mt instanceof Date&&!isNaN(Mt.valueOf())}const go=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ca(Mt,me,jt,Qe,On,Nt,ce=!1){let Me="",tn=!1;if(isFinite(Mt)){let vn=function ke(Mt){let Qe,On,Nt,ce,Me,me=Math.abs(Mt)+"",jt=0;for((On=me.indexOf("."))>-1&&(me=me.replace(".","")),(Nt=me.search(/e/i))>0?(On<0&&(On=Nt),On+=+me.slice(Nt+1),me=me.substring(0,Nt)):On<0&&(On=me.length),Nt=0;"0"===me.charAt(Nt);Nt++);if(Nt===(Me=me.length))Qe=[0],On=1;else{for(Me--;"0"===me.charAt(Me);)Me--;for(On-=Nt,Qe=[],ce=0;Nt<=Me;Nt++,ce++)Qe[ce]=Number(me.charAt(Nt))}return On>22&&(Qe=Qe.splice(0,21),jt=On-1,On=1),{digits:Qe,exponent:jt,integerLen:On}}(Mt);ce&&(vn=function He(Mt){if(0===Mt.digits[0])return Mt;const me=Mt.digits.length-Mt.integerLen;return Mt.exponent?Mt.exponent+=2:(0===me?Mt.digits.push(0,0):1===me&&Mt.digits.push(0),Mt.integerLen+=2),Mt}(vn));let Gn=me.minInt,Qn=me.minFrac,yi=me.maxFrac;if(Nt){const ra=Nt.match(go);if(null===ra)throw new Error(`${Nt} is not a valid digit info`);const fa=ra[1],es=ra[3],Hs=ra[5];null!=fa&&(Gn=tt(fa)),null!=es&&(Qn=tt(es)),null!=Hs?yi=tt(Hs):null!=es&&Qn>yi&&(yi=Qn)}!function dn(Mt,me,jt){if(me>jt)throw new Error(`The minimum number of digits after fraction (${me}) is higher than the maximum (${jt}).`);let Qe=Mt.digits,On=Qe.length-Mt.integerLen;const Nt=Math.min(Math.max(me,On),jt);let ce=Nt+Mt.integerLen,Me=Qe[ce];if(ce>0){Qe.splice(Math.max(Mt.integerLen,ce));for(let Qn=ce;Qn=5)if(ce-1<0){for(let Qn=0;Qn>ce;Qn--)Qe.unshift(0),Mt.integerLen++;Qe.unshift(1),Mt.integerLen++}else Qe[ce-1]++;for(;On=vn?bo.pop():tn=!1),yi>=10?1:0},0);Gn&&(Qe.unshift(Gn),Mt.integerLen++)}(vn,Qn,yi);let Ti=vn.digits,bo=vn.integerLen;const xo=vn.exponent;let yo=[];for(tn=Ti.every(ra=>!ra);bo0?yo=Ti.splice(bo,Ti.length):(yo=Ti,Ti=[0]);const ga=[];for(Ti.length>=me.lgSize&&ga.unshift(Ti.splice(-me.lgSize,Ti.length).join(""));Ti.length>me.gSize;)ga.unshift(Ti.splice(-me.gSize,Ti.length).join(""));Ti.length&&ga.unshift(Ti.join("")),Me=ga.join(re(jt,Qe)),yo.length&&(Me+=re(jt,On)+yo.join("")),xo&&(Me+=re(jt,Jt.Exponential)+"+"+xo)}else Me=re(jt,Jt.Infinity);return Me=Mt<0&&!tn?me.negPre+Me+me.negSuf:me.posPre+Me+me.posSuf,Me}function Ia(Mt,me,jt,Qe,On){const ce=In(Pe(me,ft.Currency),re(me,Jt.MinusSign));return ce.minFrac=function it(Mt){let me;const jt=At[Mt];return jt&&(me=jt[2]),"number"==typeof me?me:2}(Qe),ce.maxFrac=ce.minFrac,ca(Mt,ce,me,Jt.CurrencyGroup,Jt.CurrencyDecimal,On).replace("\xa4",jt).replace("\xa4","").trim()}function In(Mt,me="-"){const jt={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Qe=Mt.split(";"),On=Qe[0],Nt=Qe[1],ce=-1!==On.indexOf(".")?On.split("."):[On.substring(0,On.lastIndexOf("0")+1),On.substring(On.lastIndexOf("0")+1)],Me=ce[0],tn=ce[1]||"";jt.posPre=Me.substring(0,Me.indexOf("#"));for(let Gn=0;Gn{class Mt{constructor(jt,Qe,On,Nt){this._iterableDiffers=jt,this._keyValueDiffers=Qe,this._ngEl=On,this._renderer=Nt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(jt){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof jt?jt.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(jt){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof jt?jt.split(/\s+/):jt,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 jt=this._iterableDiffer.diff(this._rawClass);jt&&this._applyIterableChanges(jt)}else if(this._keyValueDiffer){const jt=this._keyValueDiffer.diff(this._rawClass);jt&&this._applyKeyValueChanges(jt)}}_applyKeyValueChanges(jt){jt.forEachAddedItem(Qe=>this._toggleClass(Qe.key,Qe.currentValue)),jt.forEachChangedItem(Qe=>this._toggleClass(Qe.key,Qe.currentValue)),jt.forEachRemovedItem(Qe=>{Qe.previousValue&&this._toggleClass(Qe.key,!1)})}_applyIterableChanges(jt){jt.forEachAddedItem(Qe=>{if("string"!=typeof Qe.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,d.AaK)(Qe.item)}`);this._toggleClass(Qe.item,!0)}),jt.forEachRemovedItem(Qe=>this._toggleClass(Qe.item,!1))}_applyClasses(jt){jt&&(Array.isArray(jt)||jt instanceof Set?jt.forEach(Qe=>this._toggleClass(Qe,!0)):Object.keys(jt).forEach(Qe=>this._toggleClass(Qe,!!jt[Qe])))}_removeClasses(jt){jt&&(Array.isArray(jt)||jt instanceof Set?jt.forEach(Qe=>this._toggleClass(Qe,!1)):Object.keys(jt).forEach(Qe=>this._toggleClass(Qe,!1)))}_toggleClass(jt,Qe){(jt=jt.trim())&&jt.split(/\s+/g).forEach(On=>{Qe?this._renderer.addClass(this._ngEl.nativeElement,On):this._renderer.removeClass(this._ngEl.nativeElement,On)})}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.ZZ4),d.Y36(d.aQg),d.Y36(d.SBq),d.Y36(d.Qsj))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Mt})();class ls{constructor(me,jt,Qe,On){this.$implicit=me,this.ngForOf=jt,this.index=Qe,this.count=On}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 ar=(()=>{class Mt{constructor(jt,Qe,On){this._viewContainer=jt,this._template=Qe,this._differs=On,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(jt){this._ngForOf=jt,this._ngForOfDirty=!0}set ngForTrackBy(jt){this._trackByFn=jt}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(jt){jt&&(this._template=jt)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const jt=this._ngForOf;!this._differ&&jt&&(this._differ=this._differs.find(jt).create(this.ngForTrackBy))}if(this._differ){const jt=this._differ.diff(this._ngForOf);jt&&this._applyChanges(jt)}}_applyChanges(jt){const Qe=this._viewContainer;jt.forEachOperation((On,Nt,ce)=>{if(null==On.previousIndex)Qe.createEmbeddedView(this._template,new ls(On.item,this._ngForOf,-1,-1),null===ce?void 0:ce);else if(null==ce)Qe.remove(null===Nt?void 0:Nt);else if(null!==Nt){const Me=Qe.get(Nt);Qe.move(Me,ce),Er(Me,On)}});for(let On=0,Nt=Qe.length;On{Er(Qe.get(On.currentIndex),On)})}static ngTemplateContextGuard(jt,Qe){return!0}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(d.ZZ4))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Mt})();function Er(Mt,me){Mt.context.$implicit=me.item}let dr=(()=>{class Mt{constructor(jt,Qe){this._viewContainer=jt,this._context=new Br,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Qe}set ngIf(jt){this._context.$implicit=this._context.ngIf=jt,this._updateView()}set ngIfThen(jt){Gr("ngIfThen",jt),this._thenTemplateRef=jt,this._thenViewRef=null,this._updateView()}set ngIfElse(jt){Gr("ngIfElse",jt),this._elseTemplateRef=jt,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(jt,Qe){return!0}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.s_b),d.Y36(d.Rgc))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Mt})();class Br{constructor(){this.$implicit=null,this.ngIf=null}}function Gr(Mt,me){if(me&&!me.createEmbeddedView)throw new Error(`${Mt} must be a TemplateRef, but received '${(0,d.AaK)(me)}'.`)}class Ir{constructor(me,jt){this._viewContainerRef=me,this._templateRef=jt,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(me){me&&!this._created?this.create():!me&&this._created&&this.destroy()}}let Pc=(()=>{class Mt{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(jt){this._ngSwitch=jt,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(jt){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(jt)}_matchCase(jt){const Qe=jt==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Qe,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Qe}_updateDefaultCases(jt){if(this._defaultViews&&jt!==this._defaultUsed){this._defaultUsed=jt;for(let Qe=0;Qe{class Mt{constructor(jt,Qe,On){this.ngSwitch=On,On._addCase(),this._view=new Ir(jt,Qe)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(Pc,9))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Mt})(),Sc=(()=>{class Mt{constructor(jt,Qe,On){On._addDefault(new Ir(jt,Qe))}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(Pc,9))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Mt})(),Qr=(()=>{class Mt{constructor(jt,Qe,On){this._ngEl=jt,this._differs=Qe,this._renderer=On,this._ngStyle=null,this._differ=null}set ngStyle(jt){this._ngStyle=jt,!this._differ&&jt&&(this._differ=this._differs.find(jt).create())}ngDoCheck(){if(this._differ){const jt=this._differ.diff(this._ngStyle);jt&&this._applyChanges(jt)}}_setStyle(jt,Qe){const[On,Nt]=jt.split("."),ce=-1===On.indexOf("-")?void 0:d.JOm.DashCase;null!=Qe?this._renderer.setStyle(this._ngEl.nativeElement,On,Nt?`${Qe}${Nt}`:Qe,ce):this._renderer.removeStyle(this._ngEl.nativeElement,On,ce)}_applyChanges(jt){jt.forEachRemovedItem(Qe=>this._setStyle(Qe.key,null)),jt.forEachAddedItem(Qe=>this._setStyle(Qe.key,Qe.currentValue)),jt.forEachChangedItem(Qe=>this._setStyle(Qe.key,Qe.currentValue))}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.SBq),d.Y36(d.aQg),d.Y36(d.Qsj))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Mt})(),Fs=(()=>{class Mt{constructor(jt){this._viewContainerRef=jt,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(jt){if(jt.ngTemplateOutlet||jt.ngTemplateOutletInjector){const Qe=this._viewContainerRef;if(this._viewRef&&Qe.remove(Qe.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:On,ngTemplateOutletContext:Nt,ngTemplateOutletInjector:ce}=this;this._viewRef=Qe.createEmbeddedView(On,Nt,ce?{injector:ce}:void 0)}else this._viewRef=null}else this._viewRef&&jt.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.s_b))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[d.TTD]}),Mt})();function hr(Mt,me){return new d.vHH(2100,!1)}class iu{createSubscription(me,jt){return me.subscribe({next:jt,error:Qe=>{throw Qe}})}dispose(me){me.unsubscribe()}}class f1{createSubscription(me,jt){return me.then(jt,Qe=>{throw Qe})}dispose(me){}}const vc=new f1,Cl=new iu;let Al=(()=>{class Mt{constructor(jt){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=jt}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(jt){return this._obj?jt!==this._obj?(this._dispose(),this.transform(jt)):this._latestValue:(jt&&this._subscribe(jt),this._latestValue)}_subscribe(jt){this._obj=jt,this._strategy=this._selectStrategy(jt),this._subscription=this._strategy.createSubscription(jt,Qe=>this._updateLatestValue(jt,Qe))}_selectStrategy(jt){if((0,d.QGY)(jt))return vc;if((0,d.F4k)(jt))return Cl;throw hr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(jt,Qe){jt===this._obj&&(this._latestValue=Qe,this._ref.markForCheck())}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.sBO,16))},Mt.\u0275pipe=d.Yjl({name:"async",type:Mt,pure:!1,standalone:!0}),Mt})(),Oc=(()=>{class Mt{transform(jt){if(null==jt)return null;if("string"!=typeof jt)throw hr();return jt.toLowerCase()}}return Mt.\u0275fac=function(jt){return new(jt||Mt)},Mt.\u0275pipe=d.Yjl({name:"lowercase",type:Mt,pure:!0,standalone:!0}),Mt})();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 Bc=(()=>{class Mt{transform(jt){if(null==jt)return null;if("string"!=typeof jt)throw hr();return jt.replace(Vs,Qe=>Qe[0].toUpperCase()+Qe.slice(1).toLowerCase())}}return Mt.\u0275fac=function(jt){return new(jt||Mt)},Mt.\u0275pipe=d.Yjl({name:"titlecase",type:Mt,pure:!0,standalone:!0}),Mt})();const js=new d.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let yl=(()=>{class Mt{constructor(jt,Qe){this.locale=jt,this.defaultTimezone=Qe}transform(jt,Qe="mediumDate",On,Nt){if(null==jt||""===jt||jt!=jt)return null;try{return Ln(jt,Qe,Nt||this.locale,On??this.defaultTimezone??void 0)}catch(ce){throw hr()}}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.soG,16),d.Y36(js,24))},Mt.\u0275pipe=d.Yjl({name:"date",type:Mt,pure:!0,standalone:!0}),Mt})(),jc=(()=>{class Mt{constructor(jt){this.differs=jt,this.keyValues=[],this.compareFn=ks}transform(jt,Qe=ks){if(!jt||!(jt instanceof Map)&&"object"!=typeof jt)return null;this.differ||(this.differ=this.differs.find(jt).create());const On=this.differ.diff(jt),Nt=Qe!==this.compareFn;return On&&(this.keyValues=[],On.forEachItem(ce=>{this.keyValues.push(function Gs(Mt,me){return{key:Mt,value:me}}(ce.key,ce.currentValue))})),(On||Nt)&&(this.keyValues.sort(Qe),this.compareFn=Qe),this.keyValues}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.aQg,16))},Mt.\u0275pipe=d.Yjl({name:"keyvalue",type:Mt,pure:!1,standalone:!0}),Mt})();function ks(Mt,me){const jt=Mt.key,Qe=me.key;if(jt===Qe)return 0;if(void 0===jt)return 1;if(void 0===Qe)return-1;if(null===jt)return 1;if(null===Qe)return-1;if("string"==typeof jt&&"string"==typeof Qe)return jt{class Mt{constructor(jt){this._locale=jt}transform(jt,Qe,On){if(!qo(jt))return null;On=On||this._locale;try{return function Ge(Mt,me,jt){return ca(Mt,In(Pe(me,ft.Decimal),re(me,Jt.MinusSign)),me,Jt.Group,Jt.Decimal,jt)}(rr(jt),On,Qe)}catch(Nt){throw hr()}}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.soG,16))},Mt.\u0275pipe=d.Yjl({name:"number",type:Mt,pure:!0,standalone:!0}),Mt})(),zl=(()=>{class Mt{constructor(jt,Qe="USD"){this._locale=jt,this._defaultCurrencyCode=Qe}transform(jt,Qe=this._defaultCurrencyCode,On="symbol",Nt,ce){if(!qo(jt))return null;ce=ce||this._locale,"boolean"==typeof On&&(On=On?"symbol":"code");let Me=Qe||this._defaultCurrencyCode;"code"!==On&&(Me="symbol"===On||"symbol-narrow"===On?function ne(Mt,me,jt="en"){const Qe=function gn(Mt){return(0,d.cg1)(Mt)[d.wAp.Currencies]}(jt)[Mt]||At[Mt]||[],On=Qe[1];return"narrow"===me&&"string"==typeof On?On:Qe[0]||Mt}(Me,"symbol"===On?"wide":"narrow",ce):On);try{return Ia(rr(jt),ce,Me,Qe,Nt)}catch(tn){throw hr()}}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.soG,16),d.Y36(d.EJc,16))},Mt.\u0275pipe=d.Yjl({name:"currency",type:Mt,pure:!0,standalone:!0}),Mt})();function qo(Mt){return!(null==Mt||""===Mt||Mt!=Mt)}function rr(Mt){if("string"==typeof Mt&&!isNaN(Number(Mt)-parseFloat(Mt)))return Number(Mt);if("number"!=typeof Mt)throw new Error(`${Mt} is not a number`);return Mt}let Yl=(()=>{class Mt{}return Mt.\u0275fac=function(jt){return new(jt||Mt)},Mt.\u0275mod=d.oAB({type:Mt}),Mt.\u0275inj=d.cJS({}),Mt})();const xc="browser";function bu(Mt){return Mt===xc}function Dr(Mt){return"server"===Mt}let Gc=(()=>{class Mt{}return Mt.\u0275prov=(0,d.Yz7)({token:Mt,providedIn:"root",factory:()=>new xs((0,d.LFG)(C),window)}),Mt})();class xs{constructor(me,jt){this.document=me,this.window=jt,this.offset=()=>[0,0]}setOffset(me){this.offset=Array.isArray(me)?()=>me:me}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(me){this.supportsScrolling()&&this.window.scrollTo(me[0],me[1])}scrollToAnchor(me){if(!this.supportsScrolling())return;const jt=function sr(Mt,me){const jt=Mt.getElementById(me)||Mt.getElementsByName(me)[0];if(jt)return jt;if("function"==typeof Mt.createTreeWalker&&Mt.body&&(Mt.body.createShadowRoot||Mt.body.attachShadow)){const Qe=Mt.createTreeWalker(Mt.body,NodeFilter.SHOW_ELEMENT);let On=Qe.currentNode;for(;On;){const Nt=On.shadowRoot;if(Nt){const ce=Nt.getElementById(me)||Nt.querySelector(`[name="${me}"]`);if(ce)return ce}On=Qe.nextNode()}}return null}(this.document,me);jt&&(this.scrollToElement(jt),jt.focus())}setHistoryScrollRestoration(me){if(this.supportScrollRestoration()){const jt=this.window.history;jt&&jt.scrollRestoration&&(jt.scrollRestoration=me)}}scrollToElement(me){const jt=me.getBoundingClientRect(),Qe=jt.left+this.window.pageXOffset,On=jt.top+this.window.pageYOffset,Nt=this.offset();this.window.scrollTo(Qe-Nt[0],On-Nt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const me=Ac(this.window.history)||Ac(Object.getPrototypeOf(this.window.history));return!(!me||!me.writable&&!me.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Ac(Mt){return Object.getOwnPropertyDescriptor(Mt,"scrollRestoration")}class Ps{}},80529:(ot,et,b)=>{"use strict";b.d(et,{JF:()=>it,LE:()=>bt,PG:()=>U,TP:()=>qe,Zn:()=>se,eN:()=>xe});var d=b(36895),p=b(94650),v=b(21086),T=b(56498),t=b(21406),A=b(92198),C=b(24850);class U{}class k{}class D{constructor(Ce){this.normalizedNames=new Map,this.lazyUpdate=null,Ce?this.lazyInit="string"==typeof Ce?()=>{this.headers=new Map,Ce.split("\n").forEach(Ee=>{const Pn=Ee.indexOf(":");if(Pn>0){const Ln=Ee.slice(0,Pn),mi=Ln.toLowerCase(),Oi=Ee.slice(Pn+1).trim();this.maybeSetNormalizedName(Ln,mi),this.headers.has(mi)?this.headers.get(mi).push(Oi):this.headers.set(mi,[Oi])}})}:()=>{this.headers=new Map,Object.keys(Ce).forEach(Ee=>{let Pn=Ce[Ee];const Ln=Ee.toLowerCase();"string"==typeof Pn&&(Pn=[Pn]),Pn.length>0&&(this.headers.set(Ln,Pn),this.maybeSetNormalizedName(Ee,Ln))})}:this.headers=new Map}has(Ce){return this.init(),this.headers.has(Ce.toLowerCase())}get(Ce){this.init();const Ee=this.headers.get(Ce.toLowerCase());return Ee&&Ee.length>0?Ee[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Ce){return this.init(),this.headers.get(Ce.toLowerCase())||null}append(Ce,Ee){return this.clone({name:Ce,value:Ee,op:"a"})}set(Ce,Ee){return this.clone({name:Ce,value:Ee,op:"s"})}delete(Ce,Ee){return this.clone({name:Ce,value:Ee,op:"d"})}maybeSetNormalizedName(Ce,Ee){this.normalizedNames.has(Ee)||this.normalizedNames.set(Ee,Ce)}init(){this.lazyInit&&(this.lazyInit instanceof D?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Ce=>this.applyUpdate(Ce)),this.lazyUpdate=null))}copyFrom(Ce){Ce.init(),Array.from(Ce.headers.keys()).forEach(Ee=>{this.headers.set(Ee,Ce.headers.get(Ee)),this.normalizedNames.set(Ee,Ce.normalizedNames.get(Ee))})}clone(Ce){const Ee=new D;return Ee.lazyInit=this.lazyInit&&this.lazyInit instanceof D?this.lazyInit:this,Ee.lazyUpdate=(this.lazyUpdate||[]).concat([Ce]),Ee}applyUpdate(Ce){const Ee=Ce.name.toLowerCase();switch(Ce.op){case"a":case"s":let Pn=Ce.value;if("string"==typeof Pn&&(Pn=[Pn]),0===Pn.length)return;this.maybeSetNormalizedName(Ce.name,Ee);const Ln=("a"===Ce.op?this.headers.get(Ee):void 0)||[];Ln.push(...Pn),this.headers.set(Ee,Ln);break;case"d":const mi=Ce.value;if(mi){let Oi=this.headers.get(Ee);if(!Oi)return;Oi=Oi.filter(ho=>-1===mi.indexOf(ho)),0===Oi.length?(this.headers.delete(Ee),this.normalizedNames.delete(Ee)):this.headers.set(Ee,Oi)}else this.headers.delete(Ee),this.normalizedNames.delete(Ee)}}forEach(Ce){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ee=>Ce(this.normalizedNames.get(Ee),this.headers.get(Ee)))}}class I{encodeKey(Ce){return at(Ce)}encodeValue(Ce){return at(Ce)}decodeKey(Ce){return decodeURIComponent(Ce)}decodeValue(Ce){return decodeURIComponent(Ce)}}const G=/%(\d[a-f0-9])/gi,K={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function at(oe){return encodeURIComponent(oe).replace(G,(Ce,Ee)=>K[Ee]??Ce)}function lt(oe){return`${oe}`}class bt{constructor(Ce={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Ce.encoder||new I,Ce.fromString){if(Ce.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function z(oe,Ce){const Ee=new Map;return oe.length>0&&oe.replace(/^\?/,"").split("&").forEach(Ln=>{const mi=Ln.indexOf("="),[Oi,ho]=-1==mi?[Ce.decodeKey(Ln),""]:[Ce.decodeKey(Ln.slice(0,mi)),Ce.decodeValue(Ln.slice(mi+1))],fi=Ee.get(Oi)||[];fi.push(ho),Ee.set(Oi,fi)}),Ee}(Ce.fromString,this.encoder)}else Ce.fromObject?(this.map=new Map,Object.keys(Ce.fromObject).forEach(Ee=>{const Pn=Ce.fromObject[Ee],Ln=Array.isArray(Pn)?Pn.map(lt):[lt(Pn)];this.map.set(Ee,Ln)})):this.map=null}has(Ce){return this.init(),this.map.has(Ce)}get(Ce){this.init();const Ee=this.map.get(Ce);return Ee?Ee[0]:null}getAll(Ce){return this.init(),this.map.get(Ce)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Ce,Ee){return this.clone({param:Ce,value:Ee,op:"a"})}appendAll(Ce){const Ee=[];return Object.keys(Ce).forEach(Pn=>{const Ln=Ce[Pn];Array.isArray(Ln)?Ln.forEach(mi=>{Ee.push({param:Pn,value:mi,op:"a"})}):Ee.push({param:Pn,value:Ln,op:"a"})}),this.clone(Ee)}set(Ce,Ee){return this.clone({param:Ce,value:Ee,op:"s"})}delete(Ce,Ee){return this.clone({param:Ce,value:Ee,op:"d"})}toString(){return this.init(),this.keys().map(Ce=>{const Ee=this.encoder.encodeKey(Ce);return this.map.get(Ce).map(Pn=>Ee+"="+this.encoder.encodeValue(Pn)).join("&")}).filter(Ce=>""!==Ce).join("&")}clone(Ce){const Ee=new bt({encoder:this.encoder});return Ee.cloneFrom=this.cloneFrom||this,Ee.updates=(this.updates||[]).concat(Ce),Ee}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Ce=>this.map.set(Ce,this.cloneFrom.map.get(Ce))),this.updates.forEach(Ce=>{switch(Ce.op){case"a":case"s":const Ee=("a"===Ce.op?this.map.get(Ce.param):void 0)||[];Ee.push(lt(Ce.value)),this.map.set(Ce.param,Ee);break;case"d":if(void 0===Ce.value){this.map.delete(Ce.param);break}{let Pn=this.map.get(Ce.param)||[];const Ln=Pn.indexOf(lt(Ce.value));-1!==Ln&&Pn.splice(Ln,1),Pn.length>0?this.map.set(Ce.param,Pn):this.map.delete(Ce.param)}}}),this.cloneFrom=this.updates=null)}}class Dt{constructor(){this.map=new Map}set(Ce,Ee){return this.map.set(Ce,Ee),this}get(Ce){return this.map.has(Ce)||this.map.set(Ce,Ce.defaultValue()),this.map.get(Ce)}delete(Ce){return this.map.delete(Ce),this}has(Ce){return this.map.has(Ce)}keys(){return this.map.keys()}}function Vt(oe){return typeof ArrayBuffer<"u"&&oe instanceof ArrayBuffer}function nt(oe){return typeof Blob<"u"&&oe instanceof Blob}function Tt(oe){return typeof FormData<"u"&&oe instanceof FormData}class ft{constructor(Ce,Ee,Pn,Ln){let mi;if(this.url=Ee,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Ce.toUpperCase(),function zt(oe){switch(oe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ln?(this.body=void 0!==Pn?Pn:null,mi=Ln):mi=Pn,mi&&(this.reportProgress=!!mi.reportProgress,this.withCredentials=!!mi.withCredentials,mi.responseType&&(this.responseType=mi.responseType),mi.headers&&(this.headers=mi.headers),mi.context&&(this.context=mi.context),mi.params&&(this.params=mi.params)),this.headers||(this.headers=new D),this.context||(this.context=new Dt),this.params){const Oi=this.params.toString();if(0===Oi.length)this.urlWithParams=Ee;else{const ho=Ee.indexOf("?");this.urlWithParams=Ee+(-1===ho?"?":hoYe.set(fn,Ce.setHeaders[fn]),fi)),Ce.setParams&&(Yn=Object.keys(Ce.setParams).reduce((Ye,fn)=>Ye.set(fn,Ce.setParams[fn]),Yn)),new ft(Ee,Pn,mi,{params:Yn,headers:fi,context:jn,reportProgress:ho,responseType:Ln,withCredentials:Oi})}}var Et=(()=>((Et=Et||{})[Et.Sent=0]="Sent",Et[Et.UploadProgress=1]="UploadProgress",Et[Et.ResponseHeader=2]="ResponseHeader",Et[Et.DownloadProgress=3]="DownloadProgress",Et[Et.Response=4]="Response",Et[Et.User=5]="User",Et))();class Bt{constructor(Ce,Ee=200,Pn="OK"){this.headers=Ce.headers||new D,this.status=void 0!==Ce.status?Ce.status:Ee,this.statusText=Ce.statusText||Pn,this.url=Ce.url||null,this.ok=this.status>=200&&this.status<300}}class It extends Bt{constructor(Ce={}){super(Ce),this.type=Et.ResponseHeader}clone(Ce={}){return new It({headers:Ce.headers||this.headers,status:void 0!==Ce.status?Ce.status:this.status,statusText:Ce.statusText||this.statusText,url:Ce.url||this.url||void 0})}}class se extends Bt{constructor(Ce={}){super(Ce),this.type=Et.Response,this.body=void 0!==Ce.body?Ce.body:null}clone(Ce={}){return new se({body:void 0!==Ce.body?Ce.body:this.body,headers:Ce.headers||this.headers,status:void 0!==Ce.status?Ce.status:this.status,statusText:Ce.statusText||this.statusText,url:Ce.url||this.url||void 0})}}class Jt extends Bt{constructor(Ce){super(Ce,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Ce.url||"(unknown url)"}`:`Http failure response for ${Ce.url||"(unknown url)"}: ${Ce.status} ${Ce.statusText}`,this.error=Ce.error||null}}function ve(oe,Ce){return{body:Ce,headers:oe.headers,context:oe.context,observe:oe.observe,params:oe.params,reportProgress:oe.reportProgress,responseType:oe.responseType,withCredentials:oe.withCredentials}}let xe=(()=>{class oe{constructor(Ee){this.handler=Ee}request(Ee,Pn,Ln={}){let mi;if(Ee instanceof ft)mi=Ee;else{let fi,Yn;fi=Ln.headers instanceof D?Ln.headers:new D(Ln.headers),Ln.params&&(Yn=Ln.params instanceof bt?Ln.params:new bt({fromObject:Ln.params})),mi=new ft(Ee,Pn,void 0!==Ln.body?Ln.body:null,{headers:fi,context:Ln.context,params:Yn,reportProgress:Ln.reportProgress,responseType:Ln.responseType||"json",withCredentials:Ln.withCredentials})}const Oi=(0,v.of)(mi).pipe((0,t.b)(fi=>this.handler.handle(fi)));if(Ee instanceof ft||"events"===Ln.observe)return Oi;const ho=Oi.pipe((0,A.h)(fi=>fi instanceof se));switch(Ln.observe||"body"){case"body":switch(mi.responseType){case"arraybuffer":return ho.pipe((0,C.U)(fi=>{if(null!==fi.body&&!(fi.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return fi.body}));case"blob":return ho.pipe((0,C.U)(fi=>{if(null!==fi.body&&!(fi.body instanceof Blob))throw new Error("Response is not a Blob.");return fi.body}));case"text":return ho.pipe((0,C.U)(fi=>{if(null!==fi.body&&"string"!=typeof fi.body)throw new Error("Response is not a string.");return fi.body}));default:return ho.pipe((0,C.U)(fi=>fi.body))}case"response":return ho;default:throw new Error(`Unreachable: unhandled observe type ${Ln.observe}}`)}}delete(Ee,Pn={}){return this.request("DELETE",Ee,Pn)}get(Ee,Pn={}){return this.request("GET",Ee,Pn)}head(Ee,Pn={}){return this.request("HEAD",Ee,Pn)}jsonp(Ee,Pn){return this.request("JSONP",Ee,{params:(new bt).append(Pn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ee,Pn={}){return this.request("OPTIONS",Ee,Pn)}patch(Ee,Pn,Ln={}){return this.request("PATCH",Ee,ve(Ln,Pn))}post(Ee,Pn,Ln={}){return this.request("POST",Ee,ve(Ln,Pn))}put(Ee,Pn,Ln={}){return this.request("PUT",Ee,ve(Ln,Pn))}}return oe.\u0275fac=function(Ee){return new(Ee||oe)(p.LFG(U))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})();class Oe{constructor(Ce,Ee){this.next=Ce,this.interceptor=Ee}handle(Ce){return this.interceptor.intercept(Ce,this.next)}}const qe=new p.OlP("HTTP_INTERCEPTORS");let $e=(()=>{class oe{intercept(Ee,Pn){return Pn.handle(Ee)}}return oe.\u0275fac=function(Ee){return new(Ee||oe)},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})();const _n=/^\)\]\}',?\n/;let gn=(()=>{class oe{constructor(Ee){this.xhrFactory=Ee}handle(Ee){if("JSONP"===Ee.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new T.y(Pn=>{const Ln=this.xhrFactory.build();if(Ln.open(Ee.method,Ee.urlWithParams),Ee.withCredentials&&(Ln.withCredentials=!0),Ee.headers.forEach((ze,We)=>Ln.setRequestHeader(ze,We.join(","))),Ee.headers.has("Accept")||Ln.setRequestHeader("Accept","application/json, text/plain, */*"),!Ee.headers.has("Content-Type")){const ze=Ee.detectContentTypeHeader();null!==ze&&Ln.setRequestHeader("Content-Type",ze)}if(Ee.responseType){const ze=Ee.responseType.toLowerCase();Ln.responseType="json"!==ze?ze:"text"}const mi=Ee.serializeBody();let Oi=null;const ho=()=>{if(null!==Oi)return Oi;const ze=Ln.statusText||"OK",We=new D(Ln.getAllResponseHeaders()),en=function ye(oe){return"responseURL"in oe&&oe.responseURL?oe.responseURL:/^X-Request-URL:/m.test(oe.getAllResponseHeaders())?oe.getResponseHeader("X-Request-URL"):null}(Ln)||Ee.url;return Oi=new It({headers:We,status:Ln.status,statusText:ze,url:en}),Oi},fi=()=>{let{headers:ze,status:We,statusText:en,url:le}=ho(),Je=null;204!==We&&(Je=typeof Ln.response>"u"?Ln.responseText:Ln.response),0===We&&(We=Je?200:0);let Lt=We>=200&&We<300;if("json"===Ee.responseType&&"string"==typeof Je){const wt=Je;Je=Je.replace(_n,"");try{Je=""!==Je?JSON.parse(Je):null}catch(Ot){Je=wt,Lt&&(Lt=!1,Je={error:Ot,text:Je})}}Lt?(Pn.next(new se({body:Je,headers:ze,status:We,statusText:en,url:le||void 0})),Pn.complete()):Pn.error(new Jt({error:Je,headers:ze,status:We,statusText:en,url:le||void 0}))},Yn=ze=>{const{url:We}=ho(),en=new Jt({error:ze,status:Ln.status||0,statusText:Ln.statusText||"Unknown Error",url:We||void 0});Pn.error(en)};let jn=!1;const Ye=ze=>{jn||(Pn.next(ho()),jn=!0);let We={type:Et.DownloadProgress,loaded:ze.loaded};ze.lengthComputable&&(We.total=ze.total),"text"===Ee.responseType&&!!Ln.responseText&&(We.partialText=Ln.responseText),Pn.next(We)},fn=ze=>{let We={type:Et.UploadProgress,loaded:ze.loaded};ze.lengthComputable&&(We.total=ze.total),Pn.next(We)};return Ln.addEventListener("load",fi),Ln.addEventListener("error",Yn),Ln.addEventListener("timeout",Yn),Ln.addEventListener("abort",Yn),Ee.reportProgress&&(Ln.addEventListener("progress",Ye),null!==mi&&Ln.upload&&Ln.upload.addEventListener("progress",fn)),Ln.send(mi),Pn.next({type:Et.Sent}),()=>{Ln.removeEventListener("error",Yn),Ln.removeEventListener("abort",Yn),Ln.removeEventListener("load",fi),Ln.removeEventListener("timeout",Yn),Ee.reportProgress&&(Ln.removeEventListener("progress",Ye),null!==mi&&Ln.upload&&Ln.upload.removeEventListener("progress",fn)),Ln.readyState!==Ln.DONE&&Ln.abort()}})}}return oe.\u0275fac=function(Ee){return new(Ee||oe)(p.LFG(d.JF))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})();const Ue=new p.OlP("XSRF_COOKIE_NAME"),un=new p.OlP("XSRF_HEADER_NAME");class Mn{}let oi=(()=>{class oe{constructor(Ee,Pn,Ln){this.doc=Ee,this.platform=Pn,this.cookieName=Ln,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ee=this.doc.cookie||"";return Ee!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,d.Mx)(Ee,this.cookieName),this.lastCookieString=Ee),this.lastToken}}return oe.\u0275fac=function(Ee){return new(Ee||oe)(p.LFG(d.K0),p.LFG(p.Lbi),p.LFG(Ue))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})(),bi=(()=>{class oe{constructor(Ee,Pn){this.tokenService=Ee,this.headerName=Pn}intercept(Ee,Pn){const Ln=Ee.url.toLowerCase();if("GET"===Ee.method||"HEAD"===Ee.method||Ln.startsWith("http://")||Ln.startsWith("https://"))return Pn.handle(Ee);const mi=this.tokenService.getToken();return null!==mi&&!Ee.headers.has(this.headerName)&&(Ee=Ee.clone({headers:Ee.headers.set(this.headerName,mi)})),Pn.handle(Ee)}}return oe.\u0275fac=function(Ee){return new(Ee||oe)(p.LFG(Mn),p.LFG(un))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})(),ri=(()=>{class oe{constructor(Ee,Pn){this.backend=Ee,this.injector=Pn,this.chain=null}handle(Ee){if(null===this.chain){const Pn=this.injector.get(qe,[]);this.chain=Pn.reduceRight((Ln,mi)=>new Oe(Ln,mi),this.backend)}return this.chain.handle(Ee)}}return oe.\u0275fac=function(Ee){return new(Ee||oe)(p.LFG(k),p.LFG(p.zs3))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})(),ct=(()=>{class oe{static disable(){return{ngModule:oe,providers:[{provide:bi,useClass:$e}]}}static withOptions(Ee={}){return{ngModule:oe,providers:[Ee.cookieName?{provide:Ue,useValue:Ee.cookieName}:[],Ee.headerName?{provide:un,useValue:Ee.headerName}:[]]}}}return oe.\u0275fac=function(Ee){return new(Ee||oe)},oe.\u0275mod=p.oAB({type:oe}),oe.\u0275inj=p.cJS({providers:[bi,{provide:qe,useExisting:bi,multi:!0},{provide:Mn,useClass:oi},{provide:Ue,useValue:"XSRF-TOKEN"},{provide:un,useValue:"X-XSRF-TOKEN"}]}),oe})(),it=(()=>{class oe{}return oe.\u0275fac=function(Ee){return new(Ee||oe)},oe.\u0275mod=p.oAB({type:oe}),oe.\u0275inj=p.cJS({providers:[xe,{provide:U,useClass:ri},gn,{provide:k,useExisting:gn}],imports:[ct.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),oe})()},94650:(ot,et,b)=>{"use strict";b.d(et,{$8M:()=>Hd,$Z:()=>fs,AFp:()=>hC,ALo:()=>Gx,AaK:()=>U,AsE:()=>mf,B6R:()=>Je,BQk:()=>Oh,CHM:()=>xu,CRH:()=>eC,CZH:()=>s3,CqO:()=>E0,D6c:()=>i8,DdM:()=>Bx,Dn7:()=>sb,EJc:()=>yC,EiD:()=>qg,EpF:()=>Pv,F$t:()=>U4,F4k:()=>T4,FYo:()=>j3,FiY:()=>nc,G48:()=>BC,Gf:()=>fb,GfV:()=>Kg,GkF:()=>l2,Gpc:()=>P,Gre:()=>Np,HOy:()=>z0,Hsn:()=>Eh,Ikx:()=>E4,JOm:()=>C1,JVY:()=>Bf,Jf7:()=>Eu,KtG:()=>$s,L6k:()=>F_,LAX:()=>F3,LFG:()=>Sr,LSH:()=>Rg,Lbi:()=>vC,Lck:()=>Jh,MAs:()=>d5,MGl:()=>u2,MMx:()=>xf,NdJ:()=>M1,O4$:()=>Ei,OlP:()=>wr,Oqu:()=>P4,PXZ:()=>FC,Q6J:()=>C4,QGY:()=>e1,QP$:()=>gi,QbO:()=>Ob,Qsj:()=>Wg,R0b:()=>r1,RDi:()=>Pu,Rgc:()=>Qh,SBq:()=>j_,Sil:()=>wC,Suo:()=>tC,TTD:()=>ou,TgZ:()=>A4,Tol:()=>Ho,Udp:()=>x5,VKq:()=>tb,W1O:()=>gb,WFA:()=>Op,WLB:()=>Vx,XFs:()=>ri,Xpm:()=>le,Xts:()=>ia,Y36:()=>Ar,YKP:()=>Y4,YNc:()=>x4,Yjl:()=>Tn,Yz7:()=>de,Z0I:()=>on,ZZ4:()=>h3,_Bn:()=>Q5,_UZ:()=>O0,_Vd:()=>V_,_c5:()=>QA,_uU:()=>D4,aQg:()=>g3,c2e:()=>CC,cJS:()=>re,cg1:()=>wi,d8E:()=>P5,dDg:()=>LC,dqk:()=>Ln,dwT:()=>nx,eBb:()=>Vf,eFA:()=>qp,ekj:()=>q0,eoX:()=>OC,evT:()=>J2,f3M:()=>mp,g9A:()=>bC,gM2:()=>J4,h0i:()=>vf,hGG:()=>WA,hYB:()=>Z4,hij:()=>rc,iGM:()=>t6,ifc:()=>Pn,ip1:()=>Sb,jDz:()=>W5,kL8:()=>H,kYT:()=>Te,kcU:()=>g1,lG2:()=>Fe,lcZ:()=>j4,lnq:()=>T5,lqb:()=>to,lri:()=>SC,mCW:()=>T1,n5z:()=>tc,n_E:()=>Sd,oAB:()=>Ot,oJD:()=>Jf,oxw:()=>Lv,pB0:()=>z1,q3G:()=>ic,qLn:()=>sm,qOj:()=>ym,qZA:()=>Lh,qzn:()=>Jd,rWj:()=>Rb,s9C:()=>I0,sBO:()=>JC,sIi:()=>_i,s_b:()=>t3,soG:()=>Xh,tb:()=>xC,tp0:()=>N1,uIk:()=>Nu,uOi:()=>Hg,vHH:()=>K,vpe:()=>Pd,wAp:()=>ka,xi3:()=>$0,xp6:()=>rh,ynx:()=>y4,z2F:()=>m3,z3N:()=>y1,zSh:()=>ss,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 C(h,g){for(const w in g)g.hasOwnProperty(w)&&!h.hasOwnProperty(w)&&(h[w]=g[w])}function U(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(U).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 w=g.indexOf("\n");return-1===w?g:g.substring(0,w)}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 U(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 K extends Error{constructor(g,w){super(function at(h,g){return`NG0${Math.abs(h)}${g?": "+g.trim():""}`}(g,w)),this.code=g}}function lt(h){return"string"==typeof h?h:null==h?"":String(h)}function Vt(h,g){throw new K(-201,!1)}function $e(h,g){null==h&&function Xt(h,g,w,O){throw new Error(`ASSERTION ERROR: ${h}`+(null==O?"":` [Expected=> ${w} ${O} ${g} <=Actual]`))}(g,h,null,"!=")}function de(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function re(h){return{providers:h.providers||[],imports:h.imports||[]}}function Pe(h){return _n(h,un)||_n(h,oi)}function on(h){return null!==Pe(h)}function _n(h,g){return h.hasOwnProperty(g)?h[g]:null}function Ue(h){return h&&(h.hasOwnProperty(Mn)||h.hasOwnProperty(bi))?h[Mn]:null}const un=A({\u0275prov:A}),Mn=A({\u0275inj:A}),oi=A({ngInjectableDef:A}),bi=A({ngInjectorDef:A});var ri=(()=>((ri=ri||{})[ri.Default=0]="Default",ri[ri.Host=1]="Host",ri[ri.Self=2]="Self",ri[ri.SkipSelf=4]="SkipSelf",ri[ri.Optional=8]="Optional",ri))();let Ke;function ct(h){const g=Ke;return Ke=h,g}function it(h,g,w){const O=Pe(h);return O&&"root"==O.providedIn?void 0===O.value?O.value=O.factory():O.value:w&ri.Optional?null:void 0!==g?g:void Vt(U(h))}function Gt(h){return{toString:h}.toString()}var oe=(()=>((oe=oe||{})[oe.OnPush=0]="OnPush",oe[oe.Default=1]="Default",oe))(),Pn=(()=>{return(h=Pn||(Pn={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",Pn;var h})();const Ln=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ho={},fi=[],Yn=A({\u0275cmp:A}),jn=A({\u0275dir:A}),Ye=A({\u0275pipe:A}),fn=A({\u0275mod:A}),ze=A({\u0275fac:A}),We=A({__NG_ELEMENT_ID__:A});let en=0;function le(h){return Gt(()=>{const w=!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===oe.OnPush,directiveDefs:null,pipeDefs:null,standalone:w,dependencies:w&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||fi,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||Pn.Emulated,id:"c"+en++,styles:h.styles||fi,_:null,setInput:null,schemas:h.schemas||null,tView:null},j=h.dependencies,ut=h.features;return q.inputs=Xe(h.inputs,O),q.outputs=Xe(h.outputs),ut&&ut.forEach(Ut=>Ut(q)),q.directiveDefs=j?()=>("function"==typeof j?j():j).map(Lt).filter(wt):null,q.pipeDefs=j?()=>("function"==typeof j?j():j).map(En).filter(wt):null,q})}function Je(h,g,w){const O=h.\u0275cmp;O.directiveDefs=()=>("function"==typeof g?g():g).map(Lt),O.pipeDefs=()=>("function"==typeof w?w():w).map(En)}function Lt(h){return he(h)||Re(h)}function wt(h){return null!==h}function Ot(h){return Gt(()=>({type:h.type,bootstrap:h.bootstrap||fi,declarations:h.declarations||fi,imports:h.imports||fi,exports:h.exports||fi,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function Te(h,g){return Gt(()=>{const w=go(h,!0);w.declarations=g.declarations||fi,w.imports=g.imports||fi,w.exports=g.exports||fi})}function Xe(h,g){if(null==h)return ho;const w={};for(const O in h)if(h.hasOwnProperty(O)){let q=h[O],j=q;Array.isArray(q)&&(j=q[1],q=q[0]),w[q]=O,g&&(g[q]=j)}return w}const Fe=le;function Tn(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 he(h){return h[Yn]||null}function Re(h){return h[jn]||null}function En(h){return h[Ye]||null}function gi(h){const g=he(h)||Re(h)||En(h);return null!==g&&g.standalone}function go(h,g){const w=h[fn]||null;if(!w&&!0===g)throw new Error(`Type ${U(h)} does not have '\u0275mod' property.`);return w}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 al(h){return 2==(2&h.flags)}function Sc(h){return 1==(1&h.flags)}function Ns(h){return null!==h.template}function Lc(h){return 0!=(256&h[2])}function ks(h,g){return h.hasOwnProperty(ze)?h[ze]:null}class Hl{constructor(g,w,O){this.previousValue=g,this.currentValue=w,this.firstChange=O}isFirstChange(){return this.firstChange}}function ou(){return zl}function zl(h){return h.type.prototype.ngOnChanges&&(h.setInput=rr),qo}function qo(){const h=qu(this),g=h?.current;if(g){const w=h.previous;if(w===ho)h.previous=g;else for(let O in g)w[O]=g[O];h.current=null,this.ngOnChanges(g)}}function rr(h,g,w,O){const q=qu(h)||function Yl(h,g){return h[cc]=g}(h,{previous:ho,current:null}),j=q.current||(q.current={}),ut=q.previous,Ut=this.declaredInputs[w],Ht=ut[Ut];j[Ut]=new Hl(Ht&&Ht.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 sr(h,g){return pr(g[h.index])}function Ps(h,g){return h.data[g]}function qs(h,g){return h[g]}function Cs(h,g){const w=g[h];return Gr(w)?w:w[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 Nr(h,g){h[5]+=g;let w=h,O=h[3];for(;null!==O&&(1===g&&1===w[5]||-1===g&&0===w[5]);)O[5]+=g,w=O,O=O[3]}const aa={lFrame:_t(null),bindingsEnabled:!0};function yc(){return aa.bindingsEnabled}function Bi(){return aa.lFrame.lView}function Pa(){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=pe();for(;null!==h&&64===h.type;)h=h.parent;return h}function pe(){return aa.lFrame.currentTNode}function qt(h,g){const w=aa.lFrame;w.currentTNode=h,w.isParent=g}function rt(){return aa.lFrame.isParent}function ki(){aa.lFrame.isParent=!1}function Fr(){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,w=g.bindingIndex;return g.bindingIndex=g.bindingIndex+h,w}function Vp(h,g){const w=aa.lFrame;w.bindingIndex=w.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 sl(){return aa.lFrame.currentQueryIndex}function Zl(h){aa.lFrame.currentQueryIndex=h}function dp(h){const g=h[1];return 2===g.type?g.declTNode:1===g.type?h[6]:null}function Ml(h,g,w){if(w&ri.SkipSelf){let q=g,j=h;for(;!(q=q.parent,null!==q||w&ri.Host||(q=dp(j),null===q||(j=j[15],10&q.type))););if(null===q)return!1;g=q,h=j}const O=aa.lFrame=Yi();return O.currentTNode=g,O.lView=h,!0}function cl(h){const g=Yi(),w=h[1];aa.lFrame=g,g.currentTNode=w.firstChild,g.lView=h,g.tView=w,g.contextLView=h,g.bindingIndex=w.bindingStartIndex,g.inI18n=!1}function Yi(){const h=aa.lFrame,g=null===h?null:h.child;return null===g?_t(h):g}function _t(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 Us(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 Vl(){aa.lFrame.currentNamespace=null}()}function Pi(h,g){for(let w=g.directiveStart,O=g.directiveEnd;w=O)break}else g[Ht]<0&&(h[Q]+=65536),(Ut>11>16&&(3&h[2])===g){h[2]+=2048;try{j.call(Ut)}finally{}}}else try{j.call(Ut)}finally{}}class Au{constructor(g,w,O){this.factory=g,this.resolving=!1,this.canSeeViewProviders=w,this.injectImpl=O}}function Qe(h,g,w){let O=0;for(;Og){ut=j-1;break}}}for(;j>16}(h),O=g;for(;w>0;)O=O[15],w--;return O}let yi=!0;function Ti(h){const g=yi;return yi=h,g}let ga=0;const ra={};function es(h,g){const w=ns(h,g);if(-1!==w)return w;const O=g[1];O.firstCreatePass&&(h.injectorIndex=g.length,Hs(O.data,h),Hs(g,null),Hs(O.blueprint,null));const q=is(h,g),j=h.injectorIndex;if(tn(q)){const ut=vn(q),Ut=Qn(q,g),Ht=Ut[1].data;for(let be=0;be<8;be++)g[j+be]=Ut[ut+be]|Ht[ut+be]}return g[j+8]=q,j}function Hs(h,g){h.push(0,0,0,0,0,0,0,0,g)}function ns(h,g){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===g[h.injectorIndex+8]?-1:h.injectorIndex}function is(h,g){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let w=0,O=null,q=g;for(;null!==q;){if(O=Ss(q),null===O)return-1;if(w++,q=q[15],-1!==O.injectorIndex)return O.injectorIndex|w<<16}return-1}function ds(h,g,w){!function fa(h,g,w){let O;"string"==typeof w?O=w.charCodeAt(0)||0:w.hasOwnProperty(We)&&(O=w[We]),null==O&&(O=w[We]=ga++);const q=255&O;g.data[h+(q>>5)]|=1<=0?255&g:Tc:g}(w);if("function"==typeof j){if(!Ml(g,h,O))return O&ri.Host?Xs(q,0,O):Nc(g,w,O,q);try{const ut=j(O);if(null!=ut||O&ri.Optional)return ut;Vt()}finally{Cu()}}else if("number"==typeof j){let ut=null,Ut=ns(h,g),Ht=-1,be=O&ri.Host?g[16][6]:null;for((-1===Ut||O&ri.SkipSelf)&&(Ht=-1===Ut?is(h,g):g[Ut+8],-1!==Ht&&Ka(O,!1)?(ut=g[1],Ut=vn(Ht),g=Qn(Ht,g)):Ut=-1);-1!==Ut;){const je=g[1];if(jp(j,Ut,je.data)){const xn=cr(Ut,g,w,ut,O,be);if(xn!==ra)return xn}Ht=g[Ut+8],-1!==Ht&&Ka(O,g[1].data[Ut+8]===be)&&jp(j,Ut,g)?(ut=je,Ut=vn(Ht),g=Qn(Ht,g)):Ut=-1}}return q}function cr(h,g,w,O,q,j){const ut=g[1],Ut=ut.data[h+8],je=lr(Ut,ut,w,null==O?al(Ut)&&yi:O!=ut&&0!=(3&Ut.type),q&ri.Host&&j===Ut);return null!==je?As(g,ut,je,Ut):ra}function lr(h,g,w,O,q){const j=h.providerIndexes,ut=g.data,Ut=1048575&j,Ht=h.directiveStart,je=j>>20,ai=q?Ut+je:h.directiveEnd;for(let Ai=O?Ut:Ut+je;Ai=Ht&&Vi.type===w)return Ai}if(q){const Ai=ut[Ht];if(Ai&&Ns(Ai)&&Ai.type===w)return Ht}return null}function As(h,g,w,O){let q=h[w];const j=g.data;if(function Ks(h){return h instanceof Au}(q)){const ut=q;ut.resolving&&function Pt(h,g){const w=g?`. Dependency path: ${g.join(" > ")} > ${h}`:"";throw new K(-200,`Circular dependency in DI detected for ${h}${w}`)}(function bt(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():lt(h)}(j[w]));const Ut=Ti(ut.canSeeViewProviders);ut.resolving=!0;const Ht=ut.injectImpl?ct(ut.injectImpl):null;Ml(h,O,ri.Default);try{q=h[w]=ut.factory(void 0,j,h,O),g.firstCreatePass&&w>=O.directiveStart&&function Di(h,g,w){const{ngOnChanges:O,ngOnInit:q,ngDoCheck:j}=g.type.prototype;if(O){const ut=zl(g);(w.preOrderHooks||(w.preOrderHooks=[])).push(h,ut),(w.preOrderCheckHooks||(w.preOrderCheckHooks=[])).push(h,ut)}q&&(w.preOrderHooks||(w.preOrderHooks=[])).push(0-h,q),j&&((w.preOrderHooks||(w.preOrderHooks=[])).push(h,j),(w.preOrderCheckHooks||(w.preOrderCheckHooks=[])).push(h,j))}(w,j[w],g)}finally{null!==Ht&&ct(Ht),Ti(Ut),ut.resolving=!1,Cu()}}return q}function jp(h,g,w){return!!(w[g+(h>>5)]&1<{const g=h.prototype.constructor,w=g[ze]||yu(g),O=Object.prototype;let q=Object.getPrototypeOf(h.prototype).constructor;for(;q&&q!==O;){const j=q[ze]||yu(q);if(j&&j!==w)return j;q=Object.getPrototypeOf(q)}return j=>new j})}function yu(h){return z(h)?()=>{const g=yu(I(h));return g&&g()}:ks(h)}function Ss(h){const g=h[1],w=g.type;return 2===w?g.declTNode:1===w?h[6]:null}function Hd(h){return function Hr(h,g){if("class"===g)return h.classes;if("style"===g)return h.styles;const w=h.attrs;if(w){const O=w.length;let q=0;for(;q{const O=function as(h){return function(...w){if(h){const O=h(...w);for(const q in O)this[q]=O[q]}}}(g);function q(...j){if(this instanceof q)return O.apply(this,j),this;const ut=new q(...j);return Ut.annotation=ut,Ut;function Ut(Ht,be,je){const xn=Ht.hasOwnProperty(Yu)?Ht[Yu]:Object.defineProperty(Ht,Yu,{value:[]})[Yu];for(;xn.length<=je;)xn.push(null);return(xn[je]=xn[je]||[]).push(ut),Ht}}return w&&(q.prototype=Object.create(w.prototype)),q.prototype.ngMetadataName=h,q.annotationCls=q,q})}class wr{constructor(g,w){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof w?this.__NG_ELEMENT_ID__=w:void 0!==w&&(this.\u0275prov=de({token:this,providedIn:w.providedIn||"root",factory:w.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Jo(h,g){void 0===g&&(g=h);for(let w=0;wArray.isArray(w)?bd(w,g):g(w))}function x_(h,g,w){g>=h.length?h.push(w):h.splice(g,0,w)}function pp(h,g){return g>=h.length-1?h.pop():h.splice(g,1)[0]}function zd(h,g){const w=[];for(let O=0;O=0?h[1|O]=w:(O=~O,function vt(h,g,w,O){let q=h.length;if(q==g)h.push(w,O);else if(1===q)h.push(O,h[0]),h[0]=w;else{for(q--,h.push(h[q-1],h[q]);q>g;)h[q]=h[q-2],q--;h[g]=w,h[g+1]=O}}(h,O,g,w)),O}function De(h,g){const w=Un(h,g);if(w>=0)return h[1|w]}function Un(h,g){return function Ii(h,g,w){let O=0,q=h.length>>w;for(;q!==O;){const j=O+(q-O>>1),ut=h[j<g?q=j:O=j+1}return~(q<((C1=C1||{})[C1.Important=1]="Important",C1[C1.DashCase=2]="DashCase",C1))();const $p=new Map;let If=0;const Mu="__ngContext__";function Ls(h,g){Gr(g)?(h[Mu]=g[20],function wg(h){$p.set(h[20],h)}(g)):h[Mu]=g}function Ff(h,g){return undefined(h,g)}function k_(h){const g=h[3];return Ir(g)?g[3]:g}function qf(h){return Sg(h[13])}function L2(h){return Sg(h[4])}function Sg(h){for(;null!==h&&!Ir(h);)h=h[4];return h}function Du(h,g,w,O,q){if(null!=O){let j,ut=!1;Ir(O)?j=O:Gr(O)&&(ut=!0,O=O[0]);const Ut=pr(O);0===h&&null!==w?null==q?ms(g,w,Ut):Ad(g,w,Ut,q||null,!0):1===h&&null!==w?Ad(g,w,Ut,q||null,!0):2===h?function Td(h,g,w){const O=Xp(h,g);O&&function Og(h,g,w,O){h.removeChild(g,w,O)}(h,O,g,w)}(g,Ut,ut):3===h&&g.destroyNode(Ut),null!=j&&function Zc(h,g,w,O,q){const j=w[7];j!==pr(w)&&Du(g,h,O,j,q);for(let Ut=10;Ut0&&(h[w-1][4]=O[4]);const j=pp(h,10+g);!function Hf(h,g){_s(h,g,g[11],2,null,null),g[0]=null,g[6]=null}(O[1],O);const ut=j[19];null!==ut&&ut.detachView(j[1]),O[3]=null,O[4]=null,O[2]&=-65}return O}function Ma(h,g){if(!(128&g[2])){const w=g[11];w.destroyNode&&_s(h,g,w,3,null,null),function Nm(h){let g=h[13];if(!g)return Zs(h[1],h);for(;g;){let w=null;if(Gr(g))w=g[13];else{const O=g[10];O&&(w=O)}if(!w){for(;g&&!g[4]&&g!==h;)Gr(g)&&Zs(g[1],g),g=g[3];null===g&&(g=h),Gr(g)&&Zs(g[1],g),w=g&&g[4]}g=w}}(g)}}function Zs(h,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function P_(h,g){let w;if(null!=h&&null!=(w=h.destroyHooks))for(let O=0;O=0?O[q=be]():O[q=-be].unsubscribe(),j+=2}else{const ut=O[q=w[j+1]];w[j].call(ut)}if(null!==O){for(let j=q+1;jh,createScript:h=>h,createScriptURL:h=>h})}catch{}return jd}()?.createHTML(h)||h}function Pu(h){H1=h}function Pl(){if(void 0===I2&&(I2=null,Ln.trustedTypes))try{I2=Ln.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch{}return I2}function Jl(h){return Pl()?.createHTML(h)||h}function F2(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 I3 extends Gu{getTypeName(){return"HTML"}}class E_ extends Gu{getTypeName(){return"Style"}}class I_ extends Gu{getTypeName(){return"Script"}}class Ap 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 w=function N_(h){return h instanceof Gu&&h.getTypeName()||null}(h);if(null!=w&&w!==g){if("ResourceURL"===w&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${w} (see https://g.co/ng/security#xss)`)}return w===g}function Bf(h){return new I3(h)}function F_(h){return new E_(h)}function Vf(h){return new I_(h)}function F3(h){return new Ap(h)}function z1(h){return new N3(h)}class Qu{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const w=(new window.DOMParser).parseFromString(dc(g),"text/html").body;return null===w?this.inertDocumentHelper.getInertBodyElement(g):(w.removeChild(w.firstChild),w)}catch{return null}}}class q2{constructor(g){if(this.defaultDoc=g,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const w=this.inertDocument.createElement("html");this.inertDocument.appendChild(w);const O=this.inertDocument.createElement("body");w.appendChild(O)}}getInertBodyElement(g){const w=this.inertDocument.createElement("template");if("content"in w)return w.innerHTML=dc(g),w;const O=this.inertDocument.createElement("body");return O.innerHTML=dc(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(O),O}stripCustomNsAttrs(g){const w=g.attributes;for(let q=w.length-1;0"),!0}endElement(g){const w=g.nodeName.toLowerCase();jf.hasOwnProperty(w)&&!Su.hasOwnProperty(w)&&(this.buf.push(""))}chars(g){this.buf.push(Fg(g))}checkClobberedElement(g,w){if(w&&(g.compareDocumentPosition(w)&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 w}}const H3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Tp=/([^\#-~ |!])/g;function Fg(h){return h.replace(/&/g,"&").replace(H3,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(Tp,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let H_;function qg(h,g){let w=null;try{H_=H_||function yp(h){const g=new q2(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):"";w=H_.getInertBodyElement(O);let q=5,j=O;do{if(0===q)throw new Error("Failed to sanitize html because the input is unstable");q--,O=j,j=w.innerHTML,w=H_.getInertBodyElement(O)}while(O!==j);return dc((new Ng).sanitizeChildren(R2(w)||w))}finally{if(w){const O=R2(w)||w;for(;O.firstChild;)O.removeChild(O.firstChild)}}}function R2(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 Jf(h){const g=z2();return g?Jl(g.sanitize(ic.HTML,h)||""):Jd(h,"HTML")?Jl(y1(h)):qg(function zm(){return void 0!==H1?H1:typeof document<"u"?document:void 0}(),lt(h))}function Rg(h){const g=z2();return g?g.sanitize(ic.URL,h)||"":Jd(h,"URL")?y1(h):T1(lt(h))}function Hg(h){const g=z2();if(g)return F2(g.sanitize(ic.RESOURCE_URL,h)||"");if(Jd(h,"ResourceURL"))return F2(y1(h));throw new K(904,!1)}function z2(){const h=Bi();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,w=Zn){if(w===Zn){const O=new Error(`NullInjectorError: No provider for ${U(g)}!`);throw O.name="NullInjectorError",O}return w}}function wp(...h){return{\u0275providers:mc(0,h)}}function mc(h,...g){const w=[],O=new Set;let q;return bd(g,j=>{const ut=j;Bg(ut,w,[],O)&&(q||(q=[]),q.push(ut))}),void 0!==q&&Yg(q,w),w}function Yg(h,g){for(let w=0;w{g.push(j)})}}function Bg(h,g,w,O){if(!(h=I(h)))return!1;let q=null,j=Ue(h);const ut=!j&&he(h);if(j||ut){if(ut&&!ut.standalone)return!1;q=h}else{const Ht=h.ngModule;if(j=Ue(Ht),!j)return!1;q=Ht}const Ut=O.has(q);if(ut){if(Ut)return!1;if(O.add(q),ut.dependencies){const Ht="function"==typeof ut.dependencies?ut.dependencies():ut.dependencies;for(const be of Ht)Bg(be,g,w,O)}}else{if(!j)return!1;{if(null!=j.imports&&!Ut){let be;O.add(q);try{bd(j.imports,je=>{Bg(je,g,w,O)&&(be||(be=[]),be.push(je))})}finally{}void 0!==be&&Yg(be,g)}if(!Ut){const be=ks(q)||(()=>new q);g.push({provide:q,useFactory:be,deps:fi},{provide:z_,useValue:q,multi:!0},{provide:ia,useValue:()=>Sr(q),multi:!0})}const Ht=j.providers;null==Ht||Ut||bd(Ht,je=>{g.push(je)})}}return q!==h&&void 0!==h.providers}const Qf=A({provide:String,useValue:A});function U1(h){return null!==h&&"object"==typeof h&&Qf in h}function oc(h){return"function"==typeof h}const ss=new wr("Set Injector scope."),Ku={},Jr={};let Gd;function Y1(){return void 0===Gd&&(Gd=new w1),Gd}class to{}class B1 extends to{constructor(g,w,O,q){super(),this.parent=w,this.source=O,this.scopes=q,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Kf(g,ut=>this.processProvider(ut)),this.records.set(Y3,Si(void 0,this)),q.has("environment")&&this.records.set(to,Si(void 0,this));const j=this.records.get(ss);null!=j&&"string"==typeof j.value&&this.scopes.add(j.value),this.injectorDefTypes=new Set(this.get(z_.multi,fi,ri.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 w=wc(this),O=ct(void 0);try{return g()}finally{wc(w),ct(O)}}get(g,w=Zn,O=ri.Default){this.assertNotDestroyed();const q=wc(this),j=ct(void 0);try{if(!(O&ri.SkipSelf)){let Ut=this.records.get(g);if(void 0===Ut){const Ht=function Wf(h){return"function"==typeof h||"object"==typeof h&&h instanceof wr}(g)&&Pe(g);Ut=Ht&&this.injectableDefInScope(Ht)?Si(Bm(g),Ku):null,this.records.set(g,Ut)}if(null!=Ut)return this.hydrate(g,Ut)}return(O&ri.Self?Y1():this.parent).get(g,w=O&ri.Optional&&w===Zn?null:w)}catch(ut){if("NullInjectorError"===ut.name){if((ut[ys]=ut[ys]||[]).unshift(U(g)),q)throw ut;return function I1(h,g,w,O){const q=h[ys];throw g[C_]&&q.unshift(g[C_]),h.message=function xg(h,g,w,O=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.slice(2):h;let q=U(g);if(Array.isArray(g))q=g.map(U).join(" -> ");else if("object"==typeof g){let j=[];for(let ut in g)if(g.hasOwnProperty(ut)){let Ut=g[ut];j.push(ut+":"+("string"==typeof Ut?JSON.stringify(Ut):U(Ut)))}q=`{${j.join(", ")}}`}return`${w}${O?"("+O+")":""}[${q}]: ${h.replace(Zo,"\n ")}`}("\n"+h.message,q,w,O),h.ngTokenPath=q,h[ys]=null,h}(ut,g,"R3InjectorError",this.source)}throw ut}finally{ct(j),wc(q)}}resolveInjectorInitializers(){const g=wc(this),w=ct(void 0);try{const O=this.get(ia.multi,fi,ri.Self);for(const q of O)q()}finally{wc(g),ct(w)}}toString(){const g=[],w=this.records;for(const O of w.keys())g.push(U(O));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new K(205,!1)}processProvider(g){let w=oc(g=I(g))?g:I(g&&g.provide);const O=function rm(h){return U1(h)?Si(void 0,h.useValue):Si(Vm(h),Ku)}(g);if(oc(g)||!0!==g.multi)this.records.get(w);else{let q=this.records.get(w);q||(q=Si(void 0,Ku,!0),q.factory=()=>Yd(q.multi),this.records.set(w,q)),w=g,q.multi.push(g)}this.records.set(w,O)}hydrate(g,w){return w.value===Ku&&(w.value=Jr,w.value=w.factory()),"object"==typeof w.value&&w.value&&function V3(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(w.value)&&this._ngOnDestroyHooks.add(w.value),w.value}injectableDefInScope(g){if(!g.providedIn)return!1;const w=I(g.providedIn);return"string"==typeof w?"any"===w||this.scopes.has(w):this.injectorDefTypes.has(w)}}function Bm(h){const g=Pe(h),w=null!==g?g.factory:ks(h);if(null!==w)return w;if(h instanceof wr)throw new K(204,!1);if(h instanceof Function)return function Y_(h){const g=h.length;if(g>0)throw zd(g,"?"),new K(204,!1);const w=function ye(h){const g=h&&(h[un]||h[oi]);if(g){const w=function gn(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 "${w}" 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 "${w}" class.`),g}return null}(h);return null!==w?()=>w.factory(h):()=>new h}(h);throw new K(204,!1)}function Vm(h,g,w){let O;if(oc(h)){const q=I(h);return ks(q)||Bm(q)}if(U1(h))O=()=>I(h.useValue);else if(function Up(h){return!(!h||!h.useFactory)}(h))O=()=>h.useFactory(...Yd(h.deps||[]));else if(function Vg(h){return!(!h||!h.useExisting)}(h))O=()=>Sr(I(h.useExisting));else{const q=I(h&&(h.useClass||h.provide));if(!function B3(h){return!!h.deps}(h))return ks(q)||Bm(q);O=()=>new q(...Yd(h.deps))}return O}function Si(h,g,w=!1){return{factory:h,value:g,multi:w?[]:void 0}}function $f(h){return!!h.\u0275providers}function Kf(h,g){for(const w of h)Array.isArray(w)?Kf(w,g):$f(w)?Kf(w.\u0275providers,g):g(w)}class jg{}class Jg{resolveComponentFactory(g){throw function Y2(h){const g=Error(`No component factory found for ${U(h)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=h,g}(g)}}let V_=(()=>{class h{}return h.NULL=new Jg,h})();function Gg(){return jm(Pr(),Bi())}function jm(h,g){return new j_(sr(h,g))}let j_=(()=>{class h{constructor(w){this.nativeElement=w}}return h.__NG_ELEMENT_ID__=Gg,h})();function Ud(h){return h instanceof j_?h.nativeElement:h}class j3{}let Wg=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function $g(){const h=Bi(),w=Cs(Pr().index,h);return(Gr(w)?w:h)[11]}(),h})(),B2=(()=>{class h{}return h.\u0275prov=de({token:h,providedIn:"root",factory:()=>null}),h})();class Kg{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 Kg("14.3.0"),th={};function Ou(h){return h.ngOriginalError}class sm{constructor(){this._console=console}handleError(g){const w=this._findOriginalError(g);this._console.error("ERROR",g),w&&this._console.error("ORIGINAL ERROR",w)}_findOriginalError(g){let w=g&&Ou(g);for(;w&&Ou(w);)w=Ou(w);return w||null}}function Eu(h){return h.ownerDocument.defaultView}function J2(h){return h.ownerDocument}function V1(h){return h instanceof Function?h():h}function eh(h,g,w){let O=h.length;for(;;){const q=h.indexOf(g,w);if(-1===q)return q;if(0===q||h.charCodeAt(q-1)<=32){const j=g.length;if(q+j===O||h.charCodeAt(q+j)<=32)return q}w=q+1}}const e0="ng-template";function G3(h,g,w){let O=0;for(;Oj?"":q[xn+1].toLowerCase();const Ai=8&O?ai:null;if(Ai&&-1!==eh(Ai,be,0)||2&O&&be!==ai){if(Qd(O))return!1;ut=!0}}}}else{if(!ut&&!Qd(O)&&!Qd(Ht))return!1;if(ut&&Qd(Ht))continue;ut=!1,O=Ht|1&O}}return Qd(O)||ut}function Qd(h){return 0==(1&h)}function n0(h,g,w,O){if(null===g)return-1;let q=0;if(O||!w){let j=!1;for(;q-1)for(w++;w0?'="'+Ut+'"':"")+"]"}else 8&O?q+="."+ut:4&O&&(q+=" "+ut);else""!==q&&!Qd(ut)&&(g+=Sl(j,q),q=""),O=ut,j=j||!Qd(O);w++}return""!==q&&(g+=Sl(j,q)),g}const Ga={};function rh(h){Q_(Pa(),Bi(),Rr()+h,!1)}function Q_(h,g,w,O){if(!O)if(3==(3&g[2])){const j=h.preOrderCheckHooks;null!==j&&So(g,j,w)}else{const j=h.preOrderHooks;null!==j&&la(g,j,0,w)}Us(w)}function K3(h,g=null,w=null,O){const q=Zd(h,g,w,O);return q.resolveInjectorInitializers(),q}function Zd(h,g=null,w=null,O,q=new Set){const j=[w||fi,wp(h)];return O=O||("object"==typeof h?void 0:U(h)),new B1(j,g||Y1(),O||null,q)}let pm=(()=>{class h{static create(w,O){if(Array.isArray(w))return K3({name:""},O,w,"");{const q=w.name??"";return K3({name:q},w.parent,w.providers,q)}}}return h.THROW_IF_NOT_FOUND=Zn,h.NULL=new w1,h.\u0275prov=de({token:h,providedIn:"any",factory:()=>Sr(Y3)}),h.__NG_ELEMENT_ID__=-1,h})();function Ar(h,g=ri.Default){const w=Bi();return null===w?Sr(h,g):os(Pr(),w,I(h),g)}function fs(){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 ml(h){return(131068&h)>>2}function pu(h,g){return-131069&h|g<<2}function Sa(h){return 1|h}function m0(h,g){const w=h.contentQueries;if(null!==w)for(let O=0;O22&&Q_(h,g,22,!1),w(O,q)}finally{Us(j)}}function Ch(h,g,w){if(Pc(g)){const q=g.directiveEnd;for(let j=g.directiveStart;j0;){const w=h[--g];if("number"==typeof w&&w<0)return w}return 0})(Ut)!=Ht&&Ut.push(Ht),Ut.push(O,q,ut)}}function W1(h,g){null!==h.hostBindings&&h.hostBindings(1,g)}function l4(h,g){g.flags|=2,(h.components||(h.components=[])).push(g.index)}function cf(h,g,w){if(w){if(g.exportAs)for(let O=0;O0&&wh(w)}}function wh(h){for(let O=qf(h);null!==O;O=L2(O))for(let q=10;q0&&wh(j)}const w=h[1].components;if(null!==w)for(let O=0;O0&&wh(q)}}function d4(h,g){const w=Cs(g,h),O=w[1];(function Uh(h,g){for(let w=g.length;w-1&&(Uo(g,O),pp(w,O))}this._attachedToViewContainer=!1}Ma(this._lView[1],this._lView)}onDestroy(g){g0(this._lView[1],this._lView,null,g)}markForCheck(){bm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Zh(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new K(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function zf(h,g){_s(h,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new K(902,!1);this._appRef=g}}class lf extends Am{constructor(g){super(g),this._view=g}detectChanges(){const g=this._view;Zh(g[1],g,g[8],!1)}checkNoChanges(){}get context(){return null}}class K1 extends V_{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const w=he(g);return new X1(w,this.ngModule)}}function Ol(h){const g=[];for(let w in h)h.hasOwnProperty(w)&&g.push({propName:h[w],templateName:w});return g}class U0{constructor(g,w){this.injector=g,this.parentInjector=w}get(g,w,O){const q=this.injector.get(g,th,O);return q!==th||w===th?q:this.parentInjector.get(g,w,O)}}class X1 extends jg{constructor(g,w){super(),this.componentDef=g,this.ngModule=w,this.componentType=g.type,this.selector=function Mp(h){return h.map(Wd).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!w}get inputs(){return Ol(this.componentDef.inputs)}get outputs(){return Ol(this.componentDef.outputs)}create(g,w,O,q){let j=(q=q||this.ngModule)instanceof to?q:q?.injector;j&&null!==this.componentDef.getStandaloneInjector&&(j=this.componentDef.getStandaloneInjector(j)||j);const ut=j?new U0(g,j):g,Ut=ut.get(j3,null);if(null===Ut)throw new K(407,!1);const Ht=ut.get(B2,null),be=Ut.createRenderer(null,this.componentDef),je=this.componentDef.selectors[0][0]||"div",xn=O?function h0(h,g,w){return h.selectRootElement(g,w===Pn.ShadowDom)}(be,O,this.componentDef.encapsulation):Xc(be,je,function w0(h){const g=h.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(je)),ai=this.componentDef.onPush?288:272,Ai=Ah(0,null,null,1,0,null,null,null,null,null),Vi=Q1(null,Ai,null,ai,null,null,Ut,be,Ht,ut,null);let Ao,ro;cl(Vi);try{const pa=function _4(h,g,w,O,q,j){const ut=w[1];w[22]=h;const Ht=t2(ut,22,2,"#host",null),be=Ht.mergedAttrs=g.hostAttrs;null!==be&&(Cm(Ht,be,!0),null!==h&&(Qe(q,h,be),null!==Ht.classes&&tl(q,h,Ht.classes),null!==Ht.styles&&em(q,h,Ht.styles)));const je=O.createRenderer(h,g),xn=Q1(w,f0(g),null,g.onPush?32:16,w[22],Ht,O,je,j||null,null,null);return ut.firstCreatePass&&(ds(es(Ht,w),ut,g.type),l4(ut,Ht),Th(Ht,w.length,1)),Sp(w,xn),w[22]=xn}(xn,this.componentDef,Vi,Ut,be);if(xn)if(O)Qe(be,xn,["ng-version",Xu.full]);else{const{attrs:Ta,classes:oo}=function ah(h){const g=[],w=[];let O=1,q=2;for(;O0&&tl(be,xn,oo.join(" "))}if(ro=Ps(Ai,22),void 0!==w){const Ta=ro.projection=[];for(let oo=0;oo=0;O--){const q=h[O];q.hostVars=g+=q.hostVars,q.hostAttrs=ce(q.hostAttrs,w=ce(w,q.hostAttrs))}}(O)}function uf(h){return h===ho?{}:h===fi?[]:h}function f4(h,g){const w=h.viewQuery;h.viewQuery=w?(O,q)=>{g(O,q),w(O,q)}:g}function L(h,g){const w=h.contentQueries;h.contentQueries=w?(O,q,j)=>{g(O,q,j),w(O,q,j)}:g}function R(h,g){const w=h.hostBindings;h.hostBindings=w?(O,q)=>{g(O,q),w(O,q)}:g}let pn=null;function zn(){if(!pn){const h=Ln.Symbol;if(h&&h.iterator)pn=h.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let w=0;wUt(pr(zr[O.index])):O.index;let Ea=null;if(!Ut&&Ht&&(Ea=function Sv(h,g,w,O){const q=h.cleanup;if(null!=q)for(let j=0;jHt?Ut[Ht]:null}"string"==typeof ut&&(j+=2)}return null}(h,g,q,O.index)),null!==Ea)(Ea.__ngLastListenerFn__||Ea).__ngNextListenerFn__=j,Ea.__ngLastListenerFn__=j,Ai=!1;else{j=m5(O,g,xn,j,!1);const zr=w.listen(pa,q,j);ai.push(j,zr),je&&je.push(q,oo,Ta,Ta+1)}}else j=m5(O,g,xn,j,!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 M8(h,g){let w=null;const O=function Q6(h){const g=h.attrs;if(null!=g){const w=g.indexOf(5);if(0==(1&w))return g[w+1]}return null}(h);for(let q=0;q=0}const Wl={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function o_(h){return h.substring(Wl.key,Wl.keyEnd)}function qv(h,g){const w=Wl.textEnd;return w===g?-1:(g=Wl.keyEnd=function g5(h,g,w){for(;g32;)g++;return g}(h,Wl.key=g,w),fu(h,g,w))}function fu(h,g,w){for(;g=0;w=qv(g,w))ie(h,o_(g),!0)}function Ip(h,g,w,O){const q=Bi(),j=Pa(),ut=Ul(2);j.firstUpdatePass&&zv(j,h,ut,O),g!==Ga&&Aa(q,ut,g)&&y5(j,j.data[Rr()],q,q[11],h,q[ut+1]=function Vv(h,g){return null==h||("string"==typeof g?h+=g:"object"==typeof h&&(h=U(y1(h)))),h}(g,w),O,ut)}function tp(h,g,w,O){const q=Pa(),j=Ul(2);q.firstUpdatePass&&zv(q,null,j,O);const ut=Bi();if(w!==Ga&&Aa(ut,j,w)){const Ut=q.data[Rr()];if(k4(Ut,O)&&!Hv(q,j)){let Ht=O?Ut.classesWithoutHost:Ut.stylesWithoutHost;null!==Ht&&(w=k(Ht,w||"")),L0(q,Ut,ut,w,O)}else!function E8(h,g,w,O,q,j,ut,Ut){q===Ga&&(q=fi);let Ht=0,be=0,je=0=h.expandoStartIndex}function zv(h,g,w,O){const q=h.data;if(null===q[w+1]){const j=q[Rr()],ut=Hv(h,w);k4(j,O)&&null===g&&!ut&&(g=!1),g=function Yv(h,g,w,O){const q=Ic(h);let j=O?g.residualClasses:g.residualStyles;if(null===q)0===(O?g.classBindings:g.styleBindings)&&(w=R0(w=d2(null,h,g,w,O),g.attrs,O),j=null);else{const ut=g.directiveStylingLast;if(-1===ut||h[ut]!==q)if(w=d2(q,h,g,w,O),null===j){let Ht=function L8(h,g,w){const O=w?g.classBindings:g.styleBindings;if(0!==ml(O))return h[Wr(O)]}(h,g,O);void 0!==Ht&&Array.isArray(Ht)&&(Ht=d2(null,h,g,Ht[1],O),Ht=R0(Ht,g.attrs,O),function O8(h,g,w,O){h[Wr(w?g.classBindings:g.styleBindings)]=O}(h,g,O,Ht))}else j=function C5(h,g,w){let O;const q=g.directiveEnd;for(let j=1+g.directiveStylingLast;j0)&&(be=!0)}else je=w;if(q)if(0!==Ht){const ai=Wr(h[Ut+1]);h[O+1]=Iu(ai,Ut),0!==ai&&(h[ai+1]=pu(h[ai+1],O)),h[Ut+1]=function Ll(h,g){return 131071&h|g<<17}(h[Ut+1],O)}else h[O+1]=Iu(Ut,0),0!==Ut&&(h[Ut+1]=pu(h[Ut+1],O)),Ut=O;else h[O+1]=Iu(Ht,0),0===Ut?Ut=O:h[Ht+1]=pu(h[Ht+1],O),Ht=O;be&&(h[O+1]=$d(h[O+1])),pf(h,je,O,!0),pf(h,je,O,!1),function Iv(h,g,w,O,q){const j=q?h.residualClasses:h.residualStyles;null!=j&&"string"==typeof g&&Un(j,g)>=0&&(w[O+1]=Sa(w[O+1]))}(g,je,h,O,j),ut=Iu(Ut,Ht),j?g.classBindings=ut:g.styleBindings=ut}(q,j,g,w,ut,O)}}function d2(h,g,w,O,q){let j=null;const ut=w.directiveEnd;let Ut=w.directiveStylingLast;for(-1===Ut?Ut=w.directiveStart:Ut++;Ut0;){const Ht=h[q],be=Array.isArray(Ht),je=be?Ht[1]:Ht,xn=null===je;let ai=w[q+1];ai===Ga&&(ai=xn?fi:void 0);let Ai=xn?De(ai,O):je===O?ai:void 0;if(be&&!Nh(Ai)&&(Ai=De(Ht,O)),Nh(Ai)&&(Ut=Ai,ut))return Ut;const Vi=h[q+1];q=ut?Wr(Vi):ml(Vi)}if(null!==g){let Ht=j?g.residualClasses:g.residualStyles;null!=Ht&&(Ut=De(Ht,O))}return Ut}function Nh(h){return void 0!==h}function k4(h,g){return 0!=(h.flags&(g?16:32))}function D4(h,g=""){const w=Bi(),O=Pa(),q=h+22,j=O.firstCreatePass?t2(O,q,1,g,null):O.data[q],ut=w[q]=function Lg(h,g){return h.createText(g)}(w[11],g);Uc(O,w,ut,j),qt(j,!1)}function P4(h){return rc("",h,""),P4}function rc(h,g,w){const O=Bi(),q=_l(O,h,g,w);return q!==Ga&&t1(O,Rr(),q),rc}function mf(h,g,w,O,q){const j=Bi(),ut=Es(j,h,g,w,O,q);return ut!==Ga&&t1(j,Rr(),ut),mf}function T5(h,g,w,O,q,j,ut){const Ut=Bi(),Ht=function Ql(h,g,w,O,q,j,ut,Ut){const be=Xa(h,qr(),w,q,ut);return Ul(3),be?g+lt(w)+O+lt(q)+j+lt(ut)+Ut:Ga}(Ut,h,g,w,O,q,j,ut);return Ht!==Ga&&t1(Ut,Rr(),Ht),T5}function z0(h,g,w,O,q,j,ut,Ut,Ht){const be=Bi(),je=function _u(h,g,w,O,q,j,ut,Ut,Ht,be){const xn=za(h,qr(),w,q,ut,Ht);return Ul(4),xn?g+lt(w)+O+lt(q)+j+lt(ut)+Ut+lt(Ht)+be:Ga}(be,h,g,w,O,q,j,ut,Ut,Ht);return je!==Ga&&t1(be,Rr(),je),z0}function Np(h,g,w){tp(ie,o1,_l(Bi(),h,g,w),!0)}function E4(h,g,w){const O=Bi();return Aa(O,er(),g)&&mu(Pa(),Ra(),O,h,g,O[11],w,!0),E4}function P5(h,g,w){const O=Bi();if(Aa(O,er(),g)){const j=Pa(),ut=Ra();mu(j,ut,O,h,g,Lp(Ic(j.data),ut,O),w,!0)}return P5}const a1=void 0;var ex=["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 w=Math.floor(Math.abs(h)),O=h.toString().replace(/^[^.]*\.?/,"").length;return 1===w&&0===O?1:5}];let m2={};function nx(h,g,w){"string"!=typeof g&&(w=g,g=h[ka.LocaleId]),g=g.toLowerCase().replace(/_/g,"-"),m2[g]=h,w&&(m2[g][ka.ExtraData]=w)}function wi(h){const g=function I4(h){return h.toLowerCase().replace(/_/g,"-")}(h);let w=Tm(g);if(w)return w;const O=g.split("-")[0];if(w=Tm(O),w)return w;if("en"===O)return ex;throw new K(701,!1)}function H(h){return wi(h)[ka.PluralCase]}function Tm(h){return h in m2||(m2[h]=Ln.ng&&Ln.ng.common&&Ln.ng.common.locales&&Ln.ng.common.locales[h]),m2[h]}var ka=(()=>((ka=ka||{})[ka.LocaleId=0]="LocaleId",ka[ka.DayPeriodsFormat=1]="DayPeriodsFormat",ka[ka.DayPeriodsStandalone=2]="DayPeriodsStandalone",ka[ka.DaysFormat=3]="DaysFormat",ka[ka.DaysStandalone=4]="DaysStandalone",ka[ka.MonthsFormat=5]="MonthsFormat",ka[ka.MonthsStandalone=6]="MonthsStandalone",ka[ka.Eras=7]="Eras",ka[ka.FirstDayOfWeek=8]="FirstDayOfWeek",ka[ka.WeekendRange=9]="WeekendRange",ka[ka.DateFormat=10]="DateFormat",ka[ka.TimeFormat=11]="TimeFormat",ka[ka.DateTimeFormat=12]="DateTimeFormat",ka[ka.NumberSymbols=13]="NumberSymbols",ka[ka.NumberFormats=14]="NumberFormats",ka[ka.CurrencyCode=15]="CurrencyCode",ka[ka.CurrencySymbol=16]="CurrencySymbol",ka[ka.CurrencyName=17]="CurrencyName",ka[ka.Currencies=18]="Currencies",ka[ka.Directionality=19]="Directionality",ka[ka.PluralCase=20]="PluralCase",ka[ka.ExtraData=21]="ExtraData",ka))();const s_="en-US";let El=s_;function Fp(h,g,w,O,q){if(h=I(h),Array.isArray(h))for(let j=0;j>20;if(oc(h)||!h.multi){const Ai=new Au(Ht,q,Ar),Vi=Vh(Ut,g,q?je:je+ai,xn);-1===Vi?(ds(es(be,ut),j,Ut),f2(j,h,g.length),g.push(Ut),be.directiveStart++,be.directiveEnd++,q&&(be.providerIndexes+=1048576),w.push(Ai),ut.push(Ai)):(w[Vi]=Ai,ut[Vi]=Ai)}else{const Ai=Vh(Ut,g,je+ai,xn),Vi=Vh(Ut,g,je,je+ai),Ao=Ai>=0&&w[Ai],ro=Vi>=0&&w[Vi];if(q&&!ro||!q&&!Ao){ds(es(be,ut),j,Ut);const pa=function G5(h,g,w,O,q){const j=new Au(h,w,Ar);return j.multi=[],j.index=g,j.componentProviders=0,j5(j,q,O&&!w),j}(q?jh:Ix,w.length,q,O,Ht);!q&&ro&&(w[Vi].providerFactory=pa),f2(j,h,g.length,0),g.push(Ut),be.directiveStart++,be.directiveEnd++,q&&(be.providerIndexes+=1048576),w.push(pa),ut.push(pa)}else f2(j,h,Ai>-1?Ai:Vi,j5(w[q?Vi:Ai],Ht,!q&&O));!q&&O&&ro&&w[Vi].componentProviders++}}}function f2(h,g,w,O){const q=oc(g),j=function am(h){return!!h.useClass}(g);if(q||j){const Ht=(j?I(g.useClass):g).prototype.ngOnDestroy;if(Ht){const be=h.destroyHooks||(h.destroyHooks=[]);if(!q&&g.multi){const je=be.indexOf(w);-1===je?be.push(w,[O,Ht]):be[je+1].push(O,Ht)}else be.push(w,Ht)}}}function j5(h,g,w){return w&&h.componentProviders++,h.multi.push(g)-1}function Vh(h,g,w,O){for(let q=w;q{w.providersResolver=(O,q)=>function X8(h,g,w){const O=Pa();if(O.firstCreatePass){const q=Ns(h);Fp(w,O.data,O.blueprint,q,!0),Fp(g,O.data,O.blueprint,q,!1)}}(O,q?q(h):h,g)}}class vf{}class Y4{}function Jh(h,g){return new Q0(h,g??null)}class Q0 extends vf{constructor(g,w){super(),this._parent=w,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new K1(this);const O=go(g);this._bootstrapComponents=V1(O.bootstrap),this._r3Injector=Zd(g,w,[{provide:vf,useValue:this},{provide:V_,useValue:this.componentFactoryResolver}],U(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(w=>w()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class B4 extends Y4{constructor(g){super(),this.moduleType=g}create(g){return new Q0(this.moduleType,g)}}class tA extends vf{constructor(g,w,O){super(),this.componentFactoryResolver=new K1(this),this.instance=null;const q=new B1([...g,{provide:vf,useValue:this},{provide:V_,useValue:this.componentFactoryResolver}],w||Y1(),O,new Set(["environment"]));this.injector=q,q.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function xf(h,g,w=null){return new tA(h,g,w).injector}let Nx=(()=>{class h{constructor(w){this._injector=w,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(w){if(!w.standalone)return null;if(!this.cachedInjectors.has(w.id)){const O=mc(0,w.type),q=O.length>0?xf([O],this._injector,`Standalone[${w.type.name}]`):null;this.cachedInjectors.set(w.id,q)}return this.cachedInjectors.get(w.id)}ngOnDestroy(){try{for(const w of this.cachedInjectors.values())null!==w&&w.destroy()}finally{this.cachedInjectors.clear()}}}return h.\u0275prov=de({token:h,providedIn:"environment",factory:()=>new h(Sr(to))}),h})();function W5(h){h.getStandaloneInjector=g=>g.get(Nx).getOrCreateStandaloneInjector(h)}function Bx(h,g,w){const O=Fr()+h,q=Bi();return q[O]===Ga?ta(q,O,w?g.call(w):g()):function xa(h,g){return h[g]}(q,O)}function tb(h,g,w,O){return V4(Bi(),Fr(),h,g,w,O)}function Vx(h,g,w,O,q){return ob(Bi(),Fr(),h,g,w,O,q)}function W0(h,g){const w=h[g];return w===Ga?void 0:w}function V4(h,g,w,O,q,j){const ut=g+w;return Aa(h,ut,q)?ta(h,ut+1,j?O.call(j,q):O(q)):W0(h,ut+1)}function ob(h,g,w,O,q,j,ut){const Ut=g+w;return ba(h,Ut,q,j)?ta(h,Ut+2,ut?O.call(ut,q,j):O(q,j)):W0(h,Ut+2)}function Gx(h,g){const w=Pa();let O;const q=h+22;w.firstCreatePass?(O=function Qx(h,g){if(g)for(let w=g.length-1;w>=0;w--){const O=g[w];if(h===O.name)return O}}(g,w.pipeRegistry),w.data[q]=O,O.onDestroy&&(w.destroyHooks||(w.destroyHooks=[])).push(q,O.onDestroy)):O=w.data[q];const j=O.factory||(O.factory=ks(O.type)),ut=ct(Ar);try{const Ut=Ti(!1),Ht=j();return Ti(Ut),function Mv(h,g,w,O){w>=h.data.length&&(h.data[w]=null,h.blueprint[w]=null),g[w]=O}(w,Bi(),q,Ht),Ht}finally{ct(ut)}}function j4(h,g,w){const O=h+22,q=Bi(),j=qs(q,O);return K0(q,O)?V4(q,Fr(),g,j.transform,w,j):j.transform(w)}function $0(h,g,w,O){const q=h+22,j=Bi(),ut=qs(j,q);return K0(j,q)?ob(j,Fr(),g,ut.transform,w,O,ut):ut.transform(w,O)}function sb(h,g,w,O,q){const j=h+22,ut=Bi(),Ut=qs(ut,j);return K0(ut,j)?function ab(h,g,w,O,q,j,ut,Ut){const Ht=g+w;return Xa(h,Ht,q,j,ut)?ta(h,Ht+3,Ut?O.call(Ut,q,j,ut):O(q,j,ut)):W0(h,Ht+3)}(ut,Fr(),g,Ut.transform,w,O,q,Ut):Ut.transform(w,O,q)}function J4(h,g,w,O,q,j){const ut=h+22,Ut=Bi(),Ht=qs(Ut,ut);return K0(Ut,ut)?function rb(h,g,w,O,q,j,ut,Ut,Ht){const be=g+w;return za(h,be,q,j,ut,Ut)?ta(h,be+4,Ht?O.call(Ht,q,j,ut,Ut):O(q,j,ut,Ut)):W0(h,be+4)}(Ut,Fr(),g,Ht.transform,w,O,q,j,Ht):Ht.transform(w,O,q,j)}function K0(h,g){return h[1].data[g].pure}function G4(h){return g=>{setTimeout(h,void 0,g)}}const Pd=class dA extends d.xQ{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,w,O){let q=g,j=w||(()=>null),ut=O;if(g&&"object"==typeof g){const Ht=g;q=Ht.next?.bind(Ht),j=Ht.error?.bind(Ht),ut=Ht.complete?.bind(Ht)}this.__isAsync&&(j=G4(j),q&&(q=G4(q)),ut&&(ut=G4(ut)));const Ut=super.subscribe({next:q,error:j,complete:ut});return g instanceof p.w&&g.add(Ut),Ut}};function pA(){return this._results[zn()]()}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 w=zn(),O=Sd.prototype;O[w]||(O[w]=pA)}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,w){return this._results.reduce(g,w)}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,w){const O=this;O.dirty=!1;const q=Jo(g);(this._changesDetected=!function B(h,g,w){if(h.length!==g.length)return!1;for(let O=0;O{class h{}return h.__NG_ELEMENT_ID__=$x,h})();const Q4=Qh,Wx=class extends Q4{constructor(g,w,O){super(),this._declarationLView=g,this._declarationTContainer=w,this.elementRef=O}createEmbeddedView(g,w){const O=this._declarationTContainer.tViews,q=Q1(this._declarationLView,O,g,16,null,O.declTNode,null,null,null,null,w||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 X0(Pr(),Bi())}function X0(h,g){return 4&h.type?new Wx(g,h,jm(h,g)):null}let t3=(()=>{class h{}return h.__NG_ELEMENT_ID__=mA,h})();function mA(){return $4(Pr(),Bi())}const Kx=t3,cb=class extends Kx{constructor(g,w,O){super(),this._lContainer=g,this._hostTNode=w,this._hostLView=O}get element(){return jm(this._hostTNode,this._hostLView)}get injector(){return new cu(this._hostTNode,this._hostLView)}get parentInjector(){const g=is(this._hostTNode,this._hostLView);if(tn(g)){const w=Qn(g,this._hostLView),O=vn(g);return new cu(w[1].data[O+8],w)}return new cu(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const w=Xx(this._lContainer);return null!==w&&w[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,w,O){let q,j;"number"==typeof O?q=O:null!=O&&(q=O.index,j=O.injector);const ut=g.createEmbeddedView(w||{},j);return this.insert(ut,q),ut}createComponent(g,w,O,q,j){const ut=g&&!function wo(h){return"function"==typeof h}(g);let Ut;if(ut)Ut=w;else{const xn=w||{};Ut=xn.index,O=xn.injector,q=xn.projectableNodes,j=xn.environmentInjector||xn.ngModuleRef}const Ht=ut?g:new X1(he(g)),be=O||this.parentInjector;if(!j&&null==Ht.ngModule){const ai=(ut?be:this.parentInjector).get(to,null);ai&&(j=ai)}const je=Ht.create(be,q,void 0,j);return this.insert(je.hostView,Ut),je}insert(g,w){const O=g._lView,q=O[1];if(function Qs(h){return Ir(h[3])}(O)){const je=this.indexOf(g);if(-1!==je)this.detach(je);else{const xn=O[3],ai=new cb(xn,xn[6],xn[3]);ai.detach(ai.indexOf(g))}}const j=this._adjustIndex(w),ut=this._lContainer;!function Fm(h,g,w,O){const q=10+O,j=w.length;O>0&&(w[q-1][4]=g),O0)O.push(ut[Ut/2]);else{const be=j[Ut+1],je=g[-Ht];for(let xn=10;xn{class h{constructor(w){this.appInits=w,this.resolve=r6,this.reject=r6,this.initialized=!1,this.done=!1,this.donePromise=new Promise((O,q)=>{this.resolve=O,this.reject=q})}runInitializers(){if(this.initialized)return;const w=[],O=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let q=0;q{j.subscribe({complete:Ut,error:Ht})});w.push(ut)}}Promise.all(w).then(()=>{O()}).catch(q=>{this.reject(q)}),0===w.length&&O(),this.initialized=!0}}return h.\u0275fac=function(w){return new(w||h)(Sr(Sb,8))},h.\u0275prov=de({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(w){console.log(w)}warn(w){console.warn(w)}}return h.\u0275fac=function(w){return new(w||h)},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();const Xh=new wr("LocaleId",{providedIn:"root",factory:()=>mp(Xh,ri.Optional|ri.SkipSelf)||function AC(){return typeof $localize<"u"&&$localize.locale||s_}()}),yC=new wr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class EA{constructor(g,w){this.ngModuleFactory=g,this.componentFactories=w}}let wC=(()=>{class h{compileModuleSync(w){return new B4(w)}compileModuleAsync(w){return Promise.resolve(this.compileModuleSync(w))}compileModuleAndAllComponentsSync(w){const O=this.compileModuleSync(w),j=V1(go(w).declarations).reduce((ut,Ut)=>{const Ht=he(Ut);return Ht&&ut.push(new X1(Ht)),ut},[]);return new EA(O,j)}compileModuleAndAllComponentsAsync(w){return Promise.resolve(this.compileModuleAndAllComponentsSync(w))}clearCache(){}clearCacheFor(w){}getModuleId(w){}}return h.\u0275fac=function(w){return new(w||h)},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const kC=(()=>Promise.resolve(0))();function l3(h){typeof Zone>"u"?kC.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class r1{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:w=!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 K(908,!1);Zone.assertZonePatched();const q=this;if(q._nesting=0,q._outer=q._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const j=Zone.AsyncStackTaggingZoneSpec;q._inner=q._inner.fork(new j("Angular"))}Zone.TaskTrackingZoneSpec&&(q._inner=q._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(q._inner=q._inner.fork(Zone.longStackTraceZoneSpec)),q.shouldCoalesceEventChangeDetection=!O&&w,q.shouldCoalesceRunChangeDetection=O,q.lastRequestAnimationFrameId=-1,q.nativeRequestAnimationFrame=function s6(){let h=Ln.requestAnimationFrame,g=Ln.cancelAnimationFrame;if(typeof Zone<"u"&&h&&g){const w=h[Zone.__symbol__("OriginalDelegate")];w&&(h=w);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(Ln,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,Nb(h),h.isCheckStableRunning=!0,c6(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),Nb(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(w,O,q,j,ut,Ut)=>{try{return PC(h),w.invokeTask(q,j,ut,Ut)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===j.type||h.shouldCoalesceRunChangeDetection)&&g(),Fb(h)}},onInvoke:(w,O,q,j,ut,Ut,Ht)=>{try{return PC(h),w.invoke(q,j,ut,Ut,Ht)}finally{h.shouldCoalesceRunChangeDetection&&g(),Fb(h)}},onHasTask:(w,O,q,j)=>{w.hasTask(q,j),O===q&&("microTask"==j.change?(h._hasPendingMicrotasks=j.microTask,Nb(h),c6(h)):"macroTask"==j.change&&(h.hasPendingMacrotasks=j.macroTask))},onHandleError:(w,O,q,j)=>(w.handleError(q,j),h.runOutsideAngular(()=>h.onError.emit(j)),!1)})}(q)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!r1.isInAngularZone())throw new K(909,!1)}static assertNotInAngularZone(){if(r1.isInAngularZone())throw new K(909,!1)}run(g,w,O){return this._inner.run(g,w,O)}runTask(g,w,O,q){const j=this._inner,ut=j.scheduleEventTask("NgZoneEvent: "+q,g,Eb,r6,r6);try{return j.runTask(ut,w,O)}finally{j.cancelTask(ut)}}runGuarded(g,w,O){return this._inner.runGuarded(g,w,O)}runOutsideAngular(g){return this._outer.run(g)}}const Eb={};function c6(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 Nb(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 Fb(h){h._nesting--,c6(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,w,O){return g.apply(w,O)}runGuarded(g,w,O){return g.apply(w,O)}runOutsideAngular(g){return g()}runTask(g,w,O,q){return g.apply(w,O)}}const SC=new wr(""),Rb=new wr("");let l6,LC=(()=>{class h{constructor(w,O,q){this._ngZone=w,this.registry=O,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,l6||(function EC(h){l6=h}(q),q.addToWindow(O)),this._watchAngularEvents(),w.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(),l3(()=>{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())l3(()=>{for(;0!==this._callbacks.length;){let w=this._callbacks.pop();clearTimeout(w.timeoutId),w.doneCb(this._didWork)}this._didWork=!1});else{let w=this.getPendingTasks();this._callbacks=this._callbacks.filter(O=>!O.updateCb||!O.updateCb(w)||(clearTimeout(O.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(w=>({source:w.source,creationLocation:w.creationLocation,data:w.data})):[]}addCallback(w,O,q){let j=-1;O&&O>0&&(j=setTimeout(()=>{this._callbacks=this._callbacks.filter(ut=>ut.timeoutId!==j),w(this._didWork,this.getPendingTasks())},O)),this._callbacks.push({doneCb:w,timeoutId:j,updateCb:q})}whenStable(w,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(w,O,q),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(w){this.registry.registerApplication(w,this)}unregisterApplication(w){this.registry.unregisterApplication(w)}findProviders(w,O,q){return[]}}return h.\u0275fac=function(w){return new(w||h)(Sr(r1),Sr(OC),Sr(Rb))},h.\u0275prov=de({token:h,factory:h.\u0275fac}),h})(),OC=(()=>{class h{constructor(){this._applications=new Map}registerApplication(w,O){this._applications.set(w,O)}unregisterApplication(w){this._applications.delete(w)}unregisterAllApplications(){this._applications.clear()}getTestability(w){return this._applications.get(w)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(w,O=!0){return l6?.findTestabilityInTree(this,w,O)??null}}return h.\u0275fac=function(w){return new(w||h)},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})(),l_=null;const Hb=new wr("AllowMultipleToken"),zb=new wr("PlatformDestroyListeners");class FC{constructor(g,w){this.name=g,this.token=w}}function qp(h,g,w=[]){const O=`Platform: ${g}`,q=new wr(O);return(j=[])=>{let ut=d6();if(!ut||ut.injector.get(Hb,!1)){const Ut=[...w,...j,{provide:q,useValue:!0}];h?h(Ut):function NA(h){if(l_&&!l_.get(Hb,!1))throw new K(400,!1);l_=h;const g=h.get(p6);(function qC(h){const g=h.get(bC,null);g&&g.forEach(w=>w())})(h)}(function u6(h=[],g){return pm.create({name:g,providers:[{provide:ss,useValue:"platform"},{provide:zb,useValue:new Set([()=>l_=null])},...h]})}(Ut,O))}return function FA(h){const g=d6();if(!g)throw new K(401,!1);return g}()}}function d6(){return l_?.get(p6)??null}let p6=(()=>{class h{constructor(w){this._injector=w,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(w,O){const q=function RC(h,g){let w;return w="noop"===h?new qb:("zone.js"===h?void 0:h)||new r1(g),w}(O?.ngZone,function p3(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}(O)),j=[{provide:r1,useValue:q}];return q.run(()=>{const ut=pm.create({providers:j,parent:this.injector,name:w.moduleType.name}),Ut=w.create(ut),Ht=Ut.injector.get(sm,null);if(!Ht)throw new K(402,!1);return q.runOutsideAngular(()=>{const be=q.onError.subscribe({next:je=>{Ht.handleError(je)}});Ut.onDestroy(()=>{_3(this._modules,Ut),be.unsubscribe()})}),function Bb(h,g,w){try{const O=w();return e1(O)?O.catch(q=>{throw g.runOutsideAngular(()=>h.handleError(q)),q}):O}catch(O){throw g.runOutsideAngular(()=>h.handleError(O)),O}}(Ht,q,()=>{const be=Ut.injector.get(s3);return be.runInitializers(),be.donePromise.then(()=>(function ep(h){$e(h,"Expected localeId to be defined"),"string"==typeof h&&(El=h.toLowerCase().replace(/_/g,"-"))}(Ut.injector.get(Xh,s_)||s_),this._moduleDoBootstrap(Ut),Ut))})})}bootstrapModule(w,O=[]){const q=Vb({},O);return function IC(h,g,w){const O=new B4(w);return Promise.resolve(O)}(0,0,w).then(j=>this.bootstrapModuleFactory(j,q))}_moduleDoBootstrap(w){const O=w.injector.get(m3);if(w._bootstrapComponents.length>0)w._bootstrapComponents.forEach(q=>O.bootstrap(q));else{if(!w.instance.ngDoBootstrap)throw new K(403,!1);w.instance.ngDoBootstrap(O)}this._modules.push(w)}onDestroy(w){this._destroyListeners.push(w)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new K(404,!1);this._modules.slice().forEach(O=>O.destroy()),this._destroyListeners.forEach(O=>O());const w=this._injector.get(zb,null);w&&(w.forEach(O=>O()),w.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(w){return new(w||h)(Sr(pm))},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();function Vb(h,g){return Array.isArray(g)?g.reduce(Vb,h):{...h,...g}}let m3=(()=>{class h{constructor(w,O,q){this._zone=w,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 j=new v.y(Ut=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ut.next(this._stable),Ut.complete()})}),ut=new v.y(Ut=>{let Ht;this._zone.runOutsideAngular(()=>{Ht=this._zone.onStable.subscribe(()=>{r1.assertNotInAngularZone(),l3(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ut.next(!0))})})});const be=this._zone.onUnstable.subscribe(()=>{r1.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ut.next(!1)}))});return()=>{Ht.unsubscribe(),be.unsubscribe()}});this.isStable=(0,T.T)(j,ut.pipe((0,t.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(w,O){const q=w instanceof jg;if(!this._injector.get(s3).done)throw!q&&gi(w),new K(405,false);let ut;ut=q?w:this._injector.get(V_).resolveComponentFactory(w),this.componentTypes.push(ut.componentType);const Ut=function u3(h){return h.isBoundToModule}(ut)?void 0:this._injector.get(vf),be=ut.create(pm.NULL,[],O||ut.selector,Ut),je=be.location.nativeElement,xn=be.injector.get(SC,null);return xn?.registerApplication(je),be.onDestroy(()=>{this.detachView(be.hostView),_3(this.components,be),xn?.unregisterApplication(je)}),this._loadComponent(be),be}tick(){if(this._runningTick)throw new K(101,!1);try{this._runningTick=!0;for(let w of this._views)w.detectChanges()}catch(w){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(w))}finally{this._runningTick=!1}}attachView(w){const O=w;this._views.push(O),O.attachToAppRef(this)}detachView(w){const O=w;_3(this._views,O),O.detachFromAppRef()}_loadComponent(w){this.attachView(w.hostView),this.tick(),this.components.push(w),this._injector.get(xC,[]).concat(this._bootstrapListeners).forEach(q=>q(w))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(w=>w()),this._views.slice().forEach(w=>w.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(w){return this._destroyListeners.push(w),()=>_3(this._destroyListeners,w)}destroy(){if(this._destroyed)throw new K(406,!1);const w=this._injector;w.destroy&&!w.destroyed&&w.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return h.\u0275fac=function(w){return new(w||h)(Sr(r1),Sr(to),Sr(sm))},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function _3(h,g){const w=h.indexOf(g);w>-1&&h.splice(w,1)}let D1=!0;function BC(){D1=!1}let JC=(()=>{class h{}return h.__NG_ELEMENT_ID__=RA,h})();function RA(h){return function GC(h,g,w){if(al(h)&&!w){const O=Cs(h.index,g);return new Am(O,O)}return 47&h.type?new Am(g[16],g):null}(Pr(),Bi(),16==(16&h))}class Xb{constructor(){}supports(g){return _i(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 w;for(w=this._itHead;null!==w;w=w._next)g(w)}forEachOperation(g){let w=this._itHead,O=this._removalsHead,q=0,j=null;for(;w||O;){const ut=!O||w&&w.currentIndex{ut=this._trackByFn(q,Ut),null!==w&&Object.is(w.trackById,ut)?(O&&(w=this._verifyReinsertion(w,Ut,ut,q)),Object.is(w.item,Ut)||this._addIdentityChange(w,Ut)):(w=this._mismatch(w,Ut,ut,q),O=!0),w=w._next,q++}),this.length=q;return this._truncate(w),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,w,O,q){let j;return null===g?j=this._itTail:(j=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(O,null))?(Object.is(g.item,w)||this._addIdentityChange(g,w),this._reinsertAfter(g,j,q)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(O,q))?(Object.is(g.item,w)||this._addIdentityChange(g,w),this._moveAfter(g,j,q)):g=this._addAfter(new KC(w,O),j,q),g}_verifyReinsertion(g,w,O,q){let j=null===this._unlinkedRecords?null:this._unlinkedRecords.get(O,null);return null!==j?g=this._reinsertAfter(j,g._prev,q):g.currentIndex!=q&&(g.currentIndex=q,this._addToMoves(g,q)),g}_truncate(g){for(;null!==g;){const w=g._next;this._addToRemovals(this._unlink(g)),g=w}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,w,O){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const q=g._prevRemoved,j=g._nextRemoved;return null===q?this._removalsHead=j:q._nextRemoved=j,null===j?this._removalsTail=q:j._prevRemoved=q,this._insertAfter(g,w,O),this._addToMoves(g,O),g}_moveAfter(g,w,O){return this._unlink(g),this._insertAfter(g,w,O),this._addToMoves(g,O),g}_addAfter(g,w,O){return this._insertAfter(g,w,O),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,w,O){const q=null===w?this._itHead:w._next;return g._next=q,g._prev=w,null===q?this._itTail=g:q._prev=g,null===w?this._itHead=g:w._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 w=g._prev,O=g._next;return null===w?this._itHead=O:w._next=O,null===O?this._itTail=w:O._prev=w,g}_addToMoves(g,w){return g.previousIndex===w||(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,w){return g.item=w,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class KC{constructor(g,w){this.item=g,this.trackById=w,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 tg{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,w){let O;for(O=this._head;null!==O;O=O._nextDup)if((null===w||w<=O.currentIndex)&&Object.is(O.trackById,g))return O;return null}remove(g){const w=g._prevDup,O=g._nextDup;return null===w?this._head=O:w._nextDup=O,null===O?this._tail=w:O._prevDup=w,null===this._head}}class tv{constructor(){this.map=new Map}put(g){const w=g.trackById;let O=this.map.get(w);O||(O=new tg,this.map.set(w,O)),O.add(g)}get(g,w){const q=this.map.get(g);return q?q.get(g,w):null}remove(g){const w=g.trackById;return this.map.get(w).remove(g)&&this.map.delete(w),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function f6(h,g,w){const O=h.previousIndex;if(null===O)return O;let q=0;return w&&O{if(w&&w.key===q)this._maybeAddToChanges(w,O),this._appendAfter=w,w=w._next;else{const j=this._getOrCreateRecordForKey(q,O);w=this._insertBeforeOrAppend(w,j)}}),w){w._prev&&(w._prev._next=null),this._removalsHead=w;for(let O=w;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,w){if(g){const O=g._prev;return w._next=g,w._prev=O,g._prev=w,O&&(O._next=w),g===this._mapHead&&(this._mapHead=w),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=w,w._prev=this._appendAfter):this._mapHead=w,this._appendAfter=w,null}_getOrCreateRecordForKey(g,w){if(this._records.has(g)){const q=this._records.get(g);this._maybeAddToChanges(q,w);const j=q._prev,ut=q._next;return j&&(j._next=ut),ut&&(ut._prev=j),q._next=null,q._prev=null,q}const O=new XC(g);return this._records.set(g,O),O.currentValue=w,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,w){Object.is(w,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=w,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,w){g instanceof Map?g.forEach(w):Object.keys(g).forEach(O=>w(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 h6(){return new h3([new Xb])}let h3=(()=>{class h{constructor(w){this.factories=w}static create(w,O){if(null!=O){const q=O.factories.slice();w=w.concat(q)}return new h(w)}static extend(w){return{provide:h,useFactory:O=>h.create(w,O||h6()),deps:[[h,new N1,new nc]]}}find(w){const O=this.factories.find(q=>q.supports(w));if(null!=O)return O;throw new K(901,!1)}}return h.\u0275prov=de({token:h,providedIn:"root",factory:h6}),h})();function t8(){return new g3([new ev])}let g3=(()=>{class h{constructor(w){this.factories=w}static create(w,O){if(O){const q=O.factories.slice();w=w.concat(q)}return new h(w)}static extend(w){return{provide:h,useFactory:O=>h.create(w,O||t8()),deps:[[h,new N1,new nc]]}}find(w){const O=this.factories.find(q=>q.supports(w));if(O)return O;throw new K(901,!1)}}return h.\u0275prov=de({token:h,providedIn:"root",factory:t8}),h})();const QA=qp(null,"core",[]);let WA=(()=>{class h{constructor(w){}}return h.\u0275fac=function(w){return new(w||h)(Sr(m3))},h.\u0275mod=Ot({type:h}),h.\u0275inj=re({}),h})();function i8(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}},85863:(ot,et,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(et,{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 U(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,C(I),!!z]}function A(D){let[P]=t(D);return P.indexOf("row")>-1}function C(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:(ot,et,b)=>{"use strict";b.d(et,{Bs:()=>Pt,FL:()=>fi,IR:()=>z,Ot:()=>mi,QI:()=>zt,RK:()=>Vt,WU:()=>lt,g5:()=>at,iR:()=>ct,wY:()=>bt,yB:()=>Ke});var d=b(94650),p=b(36895),v=b(591),T=b(56498),t=b(36787),A=b(8929),C=b(85863),U=b(92198),k=b(22868);const P={provide:d.tb,useFactory:function D(Yn,jn){return()=>{if((0,p.NF)(jn)){const Ye=Array.from(Yn.querySelectorAll(`[class*=${I}]`)),fn=/\bflex-layout-.+?\b/g;Ye.forEach(ze=>{ze.classList.contains(`${I}ssr`)&&ze.parentNode?ze.parentNode.removeChild(ze):ze.className.replace(fn,"")})}}},deps:[p.K0,d.Lbi],multi:!0},I="flex-layout-";let z=(()=>{class Yn{}return Yn.\u0275fac=function(Ye){return new(Ye||Yn)},Yn.\u0275mod=d.oAB({type:Yn}),Yn.\u0275inj=d.cJS({providers:[P]}),Yn})();class G{constructor(jn=!1,Ye="all",fn="",ze="",We=0){this.matches=jn,this.mediaQuery=Ye,this.mqAlias=fn,this.suffix=ze,this.priority=We,this.property=""}clone(){return new G(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let K=(()=>{class Yn{constructor(){this.stylesheet=new Map}addStyleToElement(Ye,fn,ze){const We=this.stylesheet.get(Ye);We?We.set(fn,ze):this.stylesheet.set(Ye,new Map([[fn,ze]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(Ye,fn){const ze=this.stylesheet.get(Ye);let We="";if(ze){const en=ze.get(fn);("number"==typeof en||"string"==typeof en)&&(We=en+"")}return We}}return Yn.\u0275fac=function(Ye){return new(Ye||Yn)},Yn.\u0275prov=d.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();const at={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},lt=new d.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>at}),bt=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 Dt(Yn,jn){return Yn=Yn?.clone()??new G,jn&&(Yn.mqAlias=jn.alias,Yn.mediaQuery=jn.mediaQuery,Yn.suffix=jn.suffix,Yn.priority=jn.priority),Yn}class zt{constructor(){this.shouldCache=!0}sideEffect(jn,Ye,fn){}}let Vt=(()=>{class Yn{constructor(Ye,fn,ze,We){this._serverStylesheet=Ye,this._serverModuleLoaded=fn,this._platformId=ze,this.layoutConfig=We}applyStyleToElement(Ye,fn,ze=null){let We={};"string"==typeof fn&&(We[fn]=ze,fn=We),We=this.layoutConfig.disableVendorPrefixes?fn:(0,C.GK)(fn),this._applyMultiValueStyleToElement(We,Ye)}applyStyleToElements(Ye,fn=[]){const ze=this.layoutConfig.disableVendorPrefixes?Ye:(0,C.GK)(Ye);fn.forEach(We=>{this._applyMultiValueStyleToElement(ze,We)})}getFlowDirection(Ye){const fn="flex-direction";let ze=this.lookupStyle(Ye,fn);return[ze||"row",this.lookupInlineStyle(Ye,fn)||(0,p.PM)(this._platformId)&&this._serverModuleLoaded?ze:""]}hasWrap(Ye){return"wrap"===this.lookupStyle(Ye,"flex-wrap")}lookupAttributeValue(Ye,fn){return Ye.getAttribute(fn)??""}lookupInlineStyle(Ye,fn){return(0,p.NF)(this._platformId)?Ye.style.getPropertyValue(fn):function nt(Yn,jn){return ft(Yn)[jn]??""}(Ye,fn)}lookupStyle(Ye,fn,ze=!1){let We="";return Ye&&((We=this.lookupInlineStyle(Ye,fn))||((0,p.NF)(this._platformId)?ze||(We=getComputedStyle(Ye).getPropertyValue(fn)):this._serverModuleLoaded&&(We=this._serverStylesheet.getStyleForElement(Ye,fn)))),We?We.trim():""}_applyMultiValueStyleToElement(Ye,fn){Object.keys(Ye).sort().forEach(ze=>{const We=Ye[ze],en=Array.isArray(We)?We:[We];en.sort();for(let le of en)le=le?le+"":"",(0,p.NF)(this._platformId)||!this._serverModuleLoaded?(0,p.NF)(this._platformId)?fn.style.setProperty(ze,le):Tt(fn,ze,le):this._serverStylesheet.addStyleToElement(fn,ze,le)})}}return Yn.\u0275fac=function(Ye){return new(Ye||Yn)(d.LFG(K),d.LFG(bt),d.LFG(d.Lbi),d.LFG(lt))},Yn.\u0275prov=d.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();function Tt(Yn,jn,Ye){jn=jn.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const fn=ft(Yn);fn[jn]=Ye??"",function At(Yn,jn){let Ye="";for(const fn in jn)jn[fn]&&(Ye+=`${fn}:${jn[fn]};`);Yn.setAttribute("style",Ye)}(Yn,fn)}function ft(Yn){const jn={},Ye=Yn.getAttribute("style");if(Ye){const fn=Ye.split(/;+/g);for(let ze=0;ze0){const en=We.indexOf(":");if(-1===en)throw new Error(`Invalid CSS style: ${We}`);jn[We.substr(0,en).trim()]=We.substr(en+1).trim()}}}return jn}function Et(Yn,jn){return(jn&&jn.priority||0)-(Yn&&Yn.priority||0)}function Bt(Yn,jn){return(Yn.priority||0)-(jn.priority||0)}let It=(()=>{class Yn{constructor(Ye,fn,ze){this._zone=Ye,this._platformId=fn,this._document=ze,this.source=new v.X(new G(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const Ye=[];return this.registry.forEach((fn,ze)=>{fn.matches&&Ye.push(ze)}),Ye}isActive(Ye){return this.registry.get(Ye)?.matches??this.registerQuery(Ye).some(ze=>ze.matches)}observe(Ye,fn=!1){if(Ye&&Ye.length){const ze=this._observable$.pipe((0,U.h)(en=>!fn||Ye.indexOf(en.mediaQuery)>-1)),We=new T.y(en=>{const le=this.registerQuery(Ye);if(le.length){const Je=le.pop();le.forEach(Lt=>{en.next(Lt)}),this.source.next(Je)}en.complete()});return(0,t.T)(We,ze)}return this._observable$}registerQuery(Ye){const fn=Array.isArray(Ye)?Ye:[Ye],ze=[];return function Jt(Yn,jn){const Ye=Yn.filter(fn=>!se[fn]);if(Ye.length>0){const fn=Ye.join(", ");try{const ze=jn.createElement("style");ze.setAttribute("type","text/css"),ze.styleSheet||ze.appendChild(jn.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${fn} {.fx-query-test{ }}\n`)),jn.head.appendChild(ze),Ye.forEach(We=>se[We]=ze)}catch(ze){console.error(ze)}}}(fn,this._document),fn.forEach(We=>{const en=Je=>{this._zone.run(()=>this.source.next(new G(Je.matches,We)))};let le=this.registry.get(We);le||(le=this.buildMQL(We),le.addListener(en),this.pendingRemoveListenerFns.push(()=>le.removeListener(en)),this.registry.set(We,le)),le.matches&&ze.push(new G(!0,We))}),ze}ngOnDestroy(){let Ye;for(;Ye=this.pendingRemoveListenerFns.pop();)Ye()}buildMQL(Ye){return function xe(Yn,jn){return jn&&window.matchMedia("all").addListener?window.matchMedia(Yn):function ve(Yn){const jn=new EventTarget;return jn.matches="all"===Yn||""===Yn,jn.media=Yn,jn.addListener=()=>{},jn.removeListener=()=>{},jn.addEventListener=()=>{},jn.dispatchEvent=()=>!1,jn.onchange=null,jn}(Yn)}(Ye,(0,p.NF)(this._platformId))}}return Yn.\u0275fac=function(Ye){return new(Ye||Yn)(d.LFG(d.R0b),d.LFG(d.Lbi),d.LFG(p.K0))},Yn.\u0275prov=d.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();const se={},Oe=[{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}],qe="(orientation: portrait) and (max-width: 599.98px)",$e="(orientation: landscape) and (max-width: 959.98px)",Xt="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",we="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",ae="(orientation: portrait) and (min-width: 840px)",Kt="(orientation: landscape) and (min-width: 1280px)",de={HANDSET:`${qe}, ${$e}`,TABLET:`${Xt} , ${we}`,WEB:`${ae}, ${Kt} `,HANDSET_PORTRAIT:`${qe}`,TABLET_PORTRAIT:`${Xt} `,WEB_PORTRAIT:`${ae}`,HANDSET_LANDSCAPE:`${$e}`,TABLET_LANDSCAPE:`${we}`,WEB_LANDSCAPE:`${Kt}`},Wt=[{alias:"handset",priority:2e3,mediaQuery:de.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:de.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:de.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:de.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:de.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:de.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:de.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:de.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:de.WEB_PORTRAIT,overlapping:!0}],re=/(\.|-|_)/g;function Pe(Yn){let jn=Yn.length>0?Yn.charAt(0):"",Ye=Yn.length>1?Yn.slice(1):"";return jn.toUpperCase()+Ye}const gn=new d.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Yn=(0,d.f3M)(Pt),jn=(0,d.f3M)(lt),Ye=[].concat.apply([],(Yn||[]).map(ze=>Array.isArray(ze)?ze:[ze]));return function ye(Yn,jn=[]){const Ye={};return Yn.forEach(fn=>{Ye[fn.alias]=fn}),jn.forEach(fn=>{Ye[fn.alias]?(0,C.kt)(Ye[fn.alias],fn):Ye[fn.alias]=fn}),function _n(Yn){return Yn.forEach(jn=>{jn.suffix||(jn.suffix=function on(Yn){return Yn.replace(re,"|").split("|").map(Pe).join("")}(jn.alias),jn.overlapping=!!jn.overlapping)}),Yn}(Object.keys(Ye).map(fn=>Ye[fn]))}((jn.disableDefaultBps?[]:Oe).concat(jn.addOrientationBps?Wt:[]),Ye)}});let Ue=(()=>{class Yn{constructor(Ye){this.findByMap=new Map,this.items=[...Ye].sort(Bt)}findByAlias(Ye){return Ye?this.findWithPredicate(Ye,fn=>fn.alias===Ye):null}findByQuery(Ye){return this.findWithPredicate(Ye,fn=>fn.mediaQuery===Ye)}get overlappings(){return this.items.filter(Ye=>Ye.overlapping)}get aliases(){return this.items.map(Ye=>Ye.alias)}get suffixes(){return this.items.map(Ye=>Ye?.suffix??"")}findWithPredicate(Ye,fn){let ze=this.findByMap.get(Ye);return ze||(ze=this.items.find(fn)??null,this.findByMap.set(Ye,ze)),ze??null}}return Yn.\u0275fac=function(Ye){return new(Ye||Yn)(d.LFG(gn))},Yn.\u0275prov=d.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();const un="print",Mn={alias:un,mediaQuery:un,priority:1e3};let oi=(()=>{class Yn{constructor(Ye,fn,ze){this.breakpoints=Ye,this.layoutConfig=fn,this._document=ze,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new bi,this.deactivations=[]}withPrintQuery(Ye){return[...Ye,un]}isPrintEvent(Ye){return Ye.mediaQuery.startsWith(un)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(Ye=>this.breakpoints.findByAlias(Ye)).filter(Ye=>null!==Ye)}getEventBreakpoints({mediaQuery:Ye}){const fn=this.breakpoints.findByQuery(Ye);return(fn?[...this.printBreakPoints,fn]:this.printBreakPoints).sort(Et)}updateEvent(Ye){let fn=this.breakpoints.findByQuery(Ye.mediaQuery);return this.isPrintEvent(Ye)&&(fn=this.getEventBreakpoints(Ye)[0],Ye.mediaQuery=fn?.mediaQuery??""),Dt(Ye,fn)}registerBeforeAfterPrintHooks(Ye){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const fn=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(Ye,this.getEventBreakpoints(new G(!0,un))),Ye.updateStyles())},ze=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(Ye),Ye.updateStyles())};this._document.defaultView.addEventListener("beforeprint",fn),this._document.defaultView.addEventListener("afterprint",ze),this.beforePrintEventListeners.push(fn),this.afterPrintEventListeners.push(ze)}interceptEvents(Ye){return fn=>{this.isPrintEvent(fn)?fn.matches&&!this.isPrinting?(this.startPrinting(Ye,this.getEventBreakpoints(fn)),Ye.updateStyles()):!fn.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(Ye),Ye.updateStyles()):this.collectActivations(Ye,fn)}}blockPropagation(){return Ye=>!(this.isPrinting||this.isPrintEvent(Ye))}startPrinting(Ye,fn){this.isPrinting=!0,this.formerActivations=Ye.activatedBreakpoints,Ye.activatedBreakpoints=this.queue.addPrintBreakpoints(fn)}stopPrinting(Ye){Ye.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(Ye,fn){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!fn.matches){const ze=this.breakpoints.findByQuery(fn.mediaQuery);if(ze){const We=this.formerActivations&&this.formerActivations.includes(ze),en=!this.formerActivations&&Ye.activatedBreakpoints.includes(ze);(We||en)&&(this.deactivations.push(ze),this.deactivations.sort(Et))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(Ye=>this._document.defaultView.removeEventListener("beforeprint",Ye)),this.afterPrintEventListeners.forEach(Ye=>this._document.defaultView.removeEventListener("afterprint",Ye)))}}return Yn.\u0275fac=function(Ye){return new(Ye||Yn)(d.LFG(Ue),d.LFG(lt),d.LFG(p.K0))},Yn.\u0275prov=d.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();class bi{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(jn){return jn.push(Mn),jn.sort(Et),jn.forEach(Ye=>this.addBreakpoint(Ye)),this.printBreakpoints}addBreakpoint(jn){jn&&void 0===this.printBreakpoints.find(fn=>fn.mediaQuery===jn.mediaQuery)&&(this.printBreakpoints=function ri(Yn){return Yn?.mediaQuery.startsWith(un)??!1}(jn)?[jn,...this.printBreakpoints]:[...this.printBreakpoints,jn])}clear(){this.printBreakpoints=[]}}let Ke=(()=>{class Yn{constructor(Ye,fn,ze){this.matchMedia=Ye,this.breakpoints=fn,this.hook=ze,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(Ye){this._activatedBreakpoints=[...Ye]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(Ye){this._useFallbacks=Ye}onMediaChange(Ye){const fn=this.findByQuery(Ye.mediaQuery);if(fn){Ye=Dt(Ye,fn);const ze=this.activatedBreakpoints.indexOf(fn);Ye.matches&&-1===ze?(this._activatedBreakpoints.push(fn),this._activatedBreakpoints.sort(Et),this.updateStyles()):!Ye.matches&&-1!==ze&&(this._activatedBreakpoints.splice(ze,1),this._activatedBreakpoints.sort(Et),this.updateStyles())}}init(Ye,fn,ze,We,en=[]){ne(this.updateMap,Ye,fn,ze),ne(this.clearMap,Ye,fn,We),this.buildElementKeyMap(Ye,fn),this.watchExtraTriggers(Ye,fn,en)}getValue(Ye,fn,ze){const We=this.elementMap.get(Ye);if(We){const en=void 0!==ze?We.get(ze):this.getActivatedValues(We,fn);if(en)return en.get(fn)}}hasValue(Ye,fn){const ze=this.elementMap.get(Ye);if(ze){const We=this.getActivatedValues(ze,fn);if(We)return void 0!==We.get(fn)||!1}return!1}setValue(Ye,fn,ze,We){let en=this.elementMap.get(Ye);if(en){const Je=(en.get(We)??new Map).set(fn,ze);en.set(We,Je),this.elementMap.set(Ye,en)}else en=(new Map).set(We,(new Map).set(fn,ze)),this.elementMap.set(Ye,en);const le=this.getValue(Ye,fn);void 0!==le&&this.updateElement(Ye,fn,le)}trackValue(Ye,fn){return this.subject.asObservable().pipe((0,U.h)(ze=>ze.element===Ye&&ze.key===fn))}updateStyles(){this.elementMap.forEach((Ye,fn)=>{const ze=new Set(this.elementKeyMap.get(fn));let We=this.getActivatedValues(Ye);We&&We.forEach((en,le)=>{this.updateElement(fn,le,en),ze.delete(le)}),ze.forEach(en=>{if(We=this.getActivatedValues(Ye,en),We){const le=We.get(en);this.updateElement(fn,en,le)}else this.clearElement(fn,en)})})}clearElement(Ye,fn){const ze=this.clearMap.get(Ye);if(ze){const We=ze.get(fn);We&&(We(),this.subject.next({element:Ye,key:fn,value:""}))}}updateElement(Ye,fn,ze){const We=this.updateMap.get(Ye);if(We){const en=We.get(fn);en&&(en(ze),this.subject.next({element:Ye,key:fn,value:ze}))}}releaseElement(Ye){const fn=this.watcherMap.get(Ye);fn&&(fn.forEach(We=>We.unsubscribe()),this.watcherMap.delete(Ye));const ze=this.elementMap.get(Ye);ze&&(ze.forEach((We,en)=>ze.delete(en)),this.elementMap.delete(Ye))}triggerUpdate(Ye,fn){const ze=this.elementMap.get(Ye);if(ze){const We=this.getActivatedValues(ze,fn);We&&(fn?this.updateElement(Ye,fn,We.get(fn)):We.forEach((en,le)=>this.updateElement(Ye,le,en)))}}buildElementKeyMap(Ye,fn){let ze=this.elementKeyMap.get(Ye);ze||(ze=new Set,this.elementKeyMap.set(Ye,ze)),ze.add(fn)}watchExtraTriggers(Ye,fn,ze){if(ze&&ze.length){let We=this.watcherMap.get(Ye);if(We||(We=new Map,this.watcherMap.set(Ye,We)),!We.get(fn)){const le=(0,t.T)(...ze).subscribe(()=>{const Je=this.getValue(Ye,fn);this.updateElement(Ye,fn,Je)});We.set(fn,le)}}}findByQuery(Ye){return this.breakpoints.findByQuery(Ye)}getActivatedValues(Ye,fn){for(let We=0;Wefn.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(Ye)).pipe((0,k.b)(this.hook.interceptEvents(this)),(0,U.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Yn.\u0275fac=function(Ye){return new(Ye||Yn)(d.LFG(It),d.LFG(Ue),d.LFG(oi))},Yn.\u0275prov=d.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();function ne(Yn,jn,Ye,fn){if(void 0!==fn){const ze=Yn.get(jn)??new Map;ze.set(Ye,fn),Yn.set(jn,ze)}}let ct=(()=>{class Yn{constructor(Ye,fn,ze,We){this.elementRef=Ye,this.styleBuilder=fn,this.styler=ze,this.marshal=We,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(Ye){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Ye,this.marshal.activatedAlias)}ngOnChanges(Ye){Object.keys(Ye).forEach(fn=>{if(-1!==this.inputs.indexOf(fn)){const ze=fn.split(".").slice(1).join(".");this.setValue(Ye[fn].currentValue,ze)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(Ye=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),Ye)}addStyles(Ye,fn){const ze=this.styleBuilder,We=ze.shouldCache;let en=this.styleCache.get(Ye);(!en||!We)&&(en=ze.buildStyles(Ye,fn),We&&this.styleCache.set(Ye,en)),this.mru={...en},this.applyStyleToElement(en),ze.sideEffect(Ye,en,fn)}clearStyles(){Object.keys(this.mru).forEach(Ye=>{this.mru[Ye]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(Ye,fn=!1){if(Ye){const[ze,We]=this.styler.getFlowDirection(Ye);if(!We&&fn){const en=(0,C.Ar)(ze);this.styler.applyStyleToElements(en,[Ye])}return ze.trim()}return"row"}hasWrap(Ye){return this.styler.hasWrap(Ye)}applyStyleToElement(Ye,fn,ze=this.nativeElement){this.styler.applyStyleToElement(ze,Ye,fn)}setValue(Ye,fn){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Ye,fn)}updateWithValue(Ye){this.currentValue!==Ye&&(this.addStyles(Ye),this.currentValue=Ye)}}return Yn.\u0275fac=function(Ye){return new(Ye||Yn)(d.Y36(d.SBq),d.Y36(zt),d.Y36(Vt),d.Y36(Ke))},Yn.\u0275dir=d.lG2({type:Yn,features:[d.TTD]}),Yn})();function mi(Yn,jn="1",Ye="1"){let fn=[jn,Ye,Yn],ze=Yn.indexOf("calc");if(ze>0){fn[2]=Oi(Yn.substring(ze).trim());let We=Yn.substr(0,ze).trim().split(" ");2==We.length&&(fn[0]=We[0],fn[1]=We[1])}else if(0==ze)fn[2]=Oi(Yn.trim());else{let We=Yn.split(" ");fn=3===We.length?We:[jn,Ye,Yn]}return fn}function Oi(Yn){return Yn.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function fi(Yn,jn){if(void 0===jn)return Yn;const Ye=fn=>{const ze=+fn.slice(0,-"x".length);return Yn.endsWith("x")&&!isNaN(ze)?`${ze*jn.value}${jn.unit}`:Yn};return Yn.includes(" ")?Yn.split(" ").map(Ye).join(" "):Ye(Yn)}EventTarget},55829:(ot,et,b)=>{"use strict";b.d(et,{Zl:()=>xe,aT:()=>$e,b8:()=>Vt,oO:()=>at});var d=b(94650),p=b(32233),v=b(36895),T=b(21281),t=b(7625),A=b(11481);let z=(()=>{class Xt extends p.iR{constructor(ae,Kt,de,Wt,re,Pe,on){super(ae,null,Kt,de),this.ngClassInstance=on,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new v.mk(Wt,re,ae,Pe)),this.init(),this.setValue("","")}set klass(ae){this.ngClassInstance.klass=ae,this.setValue(ae,"")}updateWithValue(ae){this.ngClassInstance.ngClass=ae,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(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))},Xt.\u0275dir=d.lG2({type:Xt,inputs:{klass:["class","klass"]},features:[d.qOj]}),Xt})();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 at=(()=>{class Xt extends z{constructor(){super(...arguments),this.inputs=G}}return Xt.\u0275fac=function(){let we;return function(Kt){return(we||(we=d.n5z(Xt)))(Kt||Xt)}}(),Xt.\u0275dir=d.lG2({type:Xt,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]}),Xt})(),lt=(()=>{class Xt extends p.QI{buildStyles(ae,Kt){return{display:"true"===ae?Kt.display||(Kt.isServer?"initial":""):"none"}}}return Xt.\u0275fac=function(){let we;return function(Kt){return(we||(we=d.n5z(Xt)))(Kt||Xt)}}(),Xt.\u0275prov=d.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})(),bt=(()=>{class Xt extends p.iR{constructor(ae,Kt,de,Wt,re,Pe,on){super(ae,Kt,de,Wt),this.layoutConfig=re,this.platformId=Pe,this.serverModuleLoaded=on,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const ae=Array.from(this.nativeElement.children);for(let de=0;de{if(-1!==this.inputs.indexOf(Kt)){const de=Kt.split("."),Wt=de.slice(1).join("."),re=ae[Kt].currentValue;let Pe=""===re||0!==re&&(0,T.Ig)(re);"fxHide"===de[0]&&(Pe=!Pe),this.setValue(Pe,Wt)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(ae=>{this.marshal.trackValue(this.nativeElement,ae).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(ae=!0){if(""===ae)return;const Kt=(0,v.PM)(this.platformId);this.addStyles(ae?"true":"false",{display:this.display,isServer:Kt}),Kt&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(d.Y36(d.SBq),d.Y36(lt),d.Y36(p.RK),d.Y36(p.yB),d.Y36(p.WU),d.Y36(d.Lbi),d.Y36(p.wY))},Xt.\u0275dir=d.lG2({type:Xt,features:[d.qOj,d.TTD]}),Xt})();const Pt=new WeakMap,Dt=["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 Vt=(()=>{class Xt extends bt{constructor(){super(...arguments),this.inputs=Dt}}return Xt.\u0275fac=function(){let we;return function(Kt){return(we||(we=d.n5z(Xt)))(Kt||Xt)}}(),Xt.\u0275dir=d.lG2({type:Xt,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]}),Xt})();class nt{constructor(we,ae,Kt=!0){this.key=we,this.value=ae,this.key=Kt?we.replace(/['"]/g,"").trim():we.trim(),this.value=Kt?ae.replace(/['"]/g,"").trim():ae.trim(),this.value=this.value.replace(/;/,"")}}function Tt(Xt){let we=typeof Xt;return"object"===we?Xt.constructor===Array?"array":Xt.constructor===Set?"set":"object":we}function Bt(Xt){const[we,...ae]=Xt.split(":");return new nt(we,ae.join(":"))}function It(Xt,we){return we.key&&(Xt[we.key]=we.value),Xt}let se=(()=>{class Xt extends p.iR{constructor(ae,Kt,de,Wt,re,Pe,on,_n,ye){super(ae,null,Kt,de),this.sanitizer=Wt,this.ngStyleInstance=on,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new v.PC(ae,re,Pe)),this.init();const gn=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(gn),this.isServer=_n&&(0,v.PM)(ye)}updateWithValue(ae){const Kt=this.buildStyleMap(ae);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...Kt},this.isServer&&this.applyStyleToElement(Kt),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(ae){const Kt=de=>this.sanitizer.sanitize(d.q3G.STYLE,de)??"";if(ae)switch(Tt(ae)){case"string":return Oe(function At(Xt,we=";"){return String(Xt).trim().split(we).map(ae=>ae.trim()).filter(ae=>""!==ae)}(ae),Kt);case"array":return Oe(ae,Kt);default:return function Et(Xt,we){let ae=[];return"set"===Tt(Xt)?Xt.forEach(Kt=>ae.push(Kt)):Object.keys(Xt).forEach(Kt=>{ae.push(`${Kt}:${Xt[Kt]}`)}),function ft(Xt,we){return Xt.map(Bt).filter(Kt=>!!Kt).map(Kt=>(we&&(Kt.value=we(Kt.value)),Kt)).reduce(It,{})}(ae,we)}(ae,Kt)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(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))},Xt.\u0275dir=d.lG2({type:Xt,features:[d.qOj]}),Xt})();const Jt=["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 xe=(()=>{class Xt extends se{constructor(){super(...arguments),this.inputs=Jt}}return Xt.\u0275fac=function(){let we;return function(Kt){return(we||(we=d.n5z(Xt)))(Kt||Xt)}}(),Xt.\u0275dir=d.lG2({type:Xt,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]}),Xt})();function Oe(Xt,we){return Xt.map(Bt).filter(Kt=>!!Kt).map(Kt=>(we&&(Kt.value=we(Kt.value)),Kt)).reduce(It,{})}let $e=(()=>{class Xt{}return Xt.\u0275fac=function(ae){return new(ae||Xt)},Xt.\u0275mod=d.oAB({type:Xt}),Xt.\u0275inj=d.cJS({imports:[p.IR]}),Xt})()},1576:(ot,et,b)=>{"use strict";b.d(et,{SQ:()=>bt,Wh:()=>mi,XD:()=>ct,ae:()=>en,s9:()=>Gt,xw:()=>P,yH:()=>ve});var d=b(94650),p=b(40445),v=b(32233),T=b(85863),t=b(8929),A=b(7625);let C=(()=>{class le extends v.QI{buildStyles(Lt,{display:wt}){const Ot=(0,T.Ar)(Lt);return{...Ot,display:"none"===wt?wt:Ot.display}}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const U=["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 le extends v.iR{constructor(Lt,wt,Ot,Te,Xe){super(Lt,Ot,wt,Te),this._config=Xe,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(Lt){const Ot=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=I.get(Ot)??new Map,I.set(Ot,this.styleCache),this.currentValue!==Lt&&(this.addStyles(Lt,{display:Ot}),this.currentValue=Lt)}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(C),d.Y36(v.yB),d.Y36(v.WU))},le.\u0275dir=d.lG2({type:le,features:[d.qOj]}),le})(),P=(()=>{class le extends D{constructor(){super(...arguments),this.inputs=U}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,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]}),le})();const I=new Map,z={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let G=(()=>{class le extends v.QI{constructor(Lt,wt){super(),this._styler=Lt,this._config=wt}buildStyles(Lt,wt){return Lt.endsWith(nt)?(Lt=Lt.slice(0,Lt.indexOf(nt)),function At(le,Je){const[Lt,wt]=le.split(" "),Te=he=>`-${he}`;let Xe="0px",Fe=Te(wt??Lt),Tn="0px";return"rtl"===Je?Tn=Te(Lt):Xe=Te(Lt),{margin:`0px ${Xe} ${Fe} ${Tn}`}}(Lt=(0,v.FL)(Lt,this._config.multiplier),wt.directionality)):{}}sideEffect(Lt,wt,Ot){const Te=Ot.items;if(Lt.endsWith(nt)){Lt=Lt.slice(0,Lt.indexOf(nt));const Xe=function Tt(le,Je){const[Lt,wt]=le.split(" ");let Te="0px",Fe="0px";return"rtl"===Je?Fe=Lt:Te=Lt,{padding:`0px ${Te} ${wt??Lt} ${Fe}`}}(Lt=(0,v.FL)(Lt,this._config.multiplier),Ot.directionality);this._styler.applyStyleToElements(Xe,Ot.items)}else{Lt=(0,v.FL)(Lt,this._config.multiplier),Lt=this.addFallbackUnit(Lt);const Xe=Te.pop(),Fe=function Et(le,Je){const Lt=ft(Je.directionality,Je.layout),wt={...z};return wt[Lt]=le,wt}(Lt,Ot);this._styler.applyStyleToElements(Fe,Te),this._styler.applyStyleToElements(z,[Xe])}}addFallbackUnit(Lt){return isNaN(+Lt)?Lt:`${Lt}${this._config.defaultUnit}`}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.LFG(v.RK),d.LFG(v.WU))},le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const K=["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 lt=(()=>{class le extends v.iR{constructor(Lt,wt,Ot,Te,Xe,Fe){super(Lt,Xe,Te,Fe),this.zone=wt,this.directionality=Ot,this.styleUtils=Te,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new t.xQ;const Tn=[this.directionality.change,this.observerSubject.asObservable()];this.init(Tn),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,A.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const Lt=this.nativeElement.children,wt=[];for(let Ot=Lt.length;Ot--;)wt[Ot]=Lt[Ot];return wt}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(Lt){const Ot=Lt.value.split(" ");this.layout=Ot[0],T.iQ.find(Te=>Te===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(Lt){const wt=this.childrenNodes.filter(Ot=>1===Ot.nodeType&&this.willDisplay(Ot)).sort((Ot,Te)=>{const Xe=+this.styler.lookupStyle(Ot,"order"),Fe=+this.styler.lookupStyle(Te,"order");return isNaN(Xe)||isNaN(Fe)||Xe===Fe?0:Xe>Fe?1:-1});if(wt.length>0){const Ot=this.directionality.value,Te=this.layout;"row"===Te&&"rtl"===Ot?this.styleCache=Pt:"row"===Te&&"rtl"!==Ot?this.styleCache=zt:"column"===Te&&"rtl"===Ot?this.styleCache=Dt:"column"===Te&&"rtl"!==Ot&&(this.styleCache=Vt),this.addStyles(Lt,{directionality:Ot,items:wt,layout:Te})}}clearStyles(){const Lt=Object.keys(this.mru).length>0,wt=Lt?"padding":ft(this.directionality.value,this.layout);Lt&&super.clearStyles(),this.styleUtils.applyStyleToElements({[wt]:""},this.childrenNodes)}willDisplay(Lt){const wt=this.marshal.getValue(Lt,"show-hide");return!0===wt||void 0===wt&&"none"!==this.styleUtils.lookupStyle(Lt,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(Lt=>{Lt.some(Ot=>Ot.addedNodes&&Ot.addedNodes.length>0||Ot.removedNodes&&Ot.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(p.Is),d.Y36(v.RK),d.Y36(G),d.Y36(v.yB))},le.\u0275dir=d.lG2({type:le,features:[d.qOj]}),le})(),bt=(()=>{class le extends lt{constructor(){super(...arguments),this.inputs=K}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,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]}),le})();const Pt=new Map,Dt=new Map,zt=new Map,Vt=new Map,nt=" grid";function ft(le,Je){switch(Je){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===le?"margin-left":"margin-right";case"row-reverse":return"rtl"===le?"margin-right":"margin-left"}}let Bt=(()=>{class le extends v.QI{constructor(Lt){super(),this.layoutConfig=Lt}buildStyles(Lt,wt){let[Ot,Te,...Xe]=Lt.split(" "),Fe=Xe.join(" ");const Tn=wt.direction.indexOf("column")>-1?"column":"row",he=(0,T.tj)(Tn)?"max-width":"max-height",Re=(0,T.tj)(Tn)?"min-width":"min-height",En=String(Fe).indexOf("calc")>-1,gi=En||"auto"===Fe,go=String(Fe).indexOf("%")>-1&&!En,_o=String(Fe).indexOf("px")>-1||String(Fe).indexOf("rem")>-1||String(Fe).indexOf("em")>-1||String(Fe).indexOf("vw")>-1||String(Fe).indexOf("vh")>-1;let mn=En||_o;Ot="0"==Ot?0:Ot,Te="0"==Te?0:Te;const An=!Ot&&!Te;let sn={};const ei={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Fe||""){case"":const Zi=!1!==this.layoutConfig.useColumnBasisZero;Fe="row"===Tn?"0%":Zi?"0.000000001px":"auto";break;case"initial":case"nogrow":Ot=0,Fe="auto";break;case"grow":Fe="100%";break;case"noshrink":Te=0,Fe="auto";break;case"auto":break;case"none":Ot=0,Te=0,Fe="auto";break;default:!mn&&!go&&!isNaN(Fe)&&(Fe+="%"),"0%"===Fe&&(mn=!0),"0px"===Fe&&(Fe="0%"),sn=(0,T.kt)(ei,En?{"flex-grow":Ot,"flex-shrink":Te,"flex-basis":mn?Fe:"100%"}:{flex:`${Ot} ${Te} ${mn?Fe:"100%"}`})}return sn.flex||sn["flex-grow"]||(sn=(0,T.kt)(ei,En?{"flex-grow":Ot,"flex-shrink":Te,"flex-basis":Fe}:{flex:`${Ot} ${Te} ${Fe}`})),"0%"!==Fe&&"0px"!==Fe&&"0.000000001px"!==Fe&&"auto"!==Fe&&(sn[Re]=An||mn&&Ot?Fe:null,sn[he]=An||!gi&&Te?Fe:null),sn[Re]||sn[he]?wt.hasWrap&&(sn[En?"flex-basis":"flex"]=sn[he]?En?sn[he]:`${Ot} ${Te} ${sn[he]}`:En?sn[Re]:`${Ot} ${Te} ${sn[Re]}`):sn=(0,T.kt)(ei,En?{"flex-grow":Ot,"flex-shrink":Te,"flex-basis":Fe}:{flex:`${Ot} ${Te} ${Fe}`}),(0,T.kt)(sn,{"box-sizing":"border-box"})}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.LFG(v.WU))},le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const It=["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 Jt=(()=>{class le extends v.iR{constructor(Lt,wt,Ot,Te,Xe){super(Lt,Te,wt,Xe),this.layoutConfig=Ot,this.marshal=Xe,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(Lt){this.flexShrink=Lt||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Lt){this.flexGrow=Lt||"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(Lt){const Ot=Lt.value.split(" ");this.direction=Ot[0],this.wrap=void 0!==Ot[1]&&"wrap"===Ot[1],this.triggerUpdate()}updateWithValue(Lt){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 Ot=this.direction,Te=Ot.startsWith("row"),Xe=this.wrap;Te&&Xe?this.styleCache=qe:Te&&!Xe?this.styleCache=xe:!Te&&Xe?this.styleCache=$e:!Te&&!Xe&&(this.styleCache=Oe);const Fe=String(Lt).replace(";",""),Tn=(0,v.Ot)(Fe,this.flexGrow,this.flexShrink);this.addStyles(Tn.join(" "),{direction:Ot,hasWrap:Xe})}triggerReflow(){const Lt=this.activatedValue;if(void 0!==Lt){const wt=(0,v.Ot)(Lt+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,wt.join(" "))}}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(v.WU),d.Y36(Bt),d.Y36(v.yB))},le.\u0275dir=d.lG2({type:le,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[d.qOj]}),le})(),ve=(()=>{class le extends Jt{constructor(){super(...arguments),this.inputs=It}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,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]}),le})();const xe=new Map,Oe=new Map,qe=new Map,$e=new Map;let oi=(()=>{class le extends v.QI{buildStyles(Lt){const wt={};switch(Lt=Lt||"stretch"){case"start":wt["align-self"]="flex-start";break;case"end":wt["align-self"]="flex-end";break;default:wt["align-self"]=Lt}return wt}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const bi=["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 Ke=(()=>{class le extends v.iR{constructor(Lt,wt,Ot,Te){super(Lt,Ot,wt,Te),this.DIRECTIVE_KEY="flex-align",this.styleCache=ne,this.init()}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(oi),d.Y36(v.yB))},le.\u0275dir=d.lG2({type:le,features:[d.qOj]}),le})();const ne=new Map;let ct=(()=>{class le extends Ke{constructor(){super(...arguments),this.inputs=bi}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,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]}),le})();const it={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let kt=(()=>{class le extends v.QI{buildStyles(Lt){return it}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),Gt=(()=>{class le extends v.iR{constructor(Lt,wt,Ot,Te){super(Lt,Ot,wt,Te),this.styleCache=oe,this.addStyles("")}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(kt),d.Y36(v.yB))},le.\u0275dir=d.lG2({type:le,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[d.qOj]}),le})();const oe=new Map;let Ce=(()=>{class le extends v.QI{buildStyles(Lt,wt){const Ot={},[Te,Xe]=Lt.split(" ");switch(Te){case"center":Ot["justify-content"]="center";break;case"space-around":Ot["justify-content"]="space-around";break;case"space-between":Ot["justify-content"]="space-between";break;case"space-evenly":Ot["justify-content"]="space-evenly";break;case"end":case"flex-end":Ot["justify-content"]="flex-end";break;default:Ot["justify-content"]="flex-start"}switch(Xe){case"start":case"flex-start":Ot["align-items"]=Ot["align-content"]="flex-start";break;case"center":Ot["align-items"]=Ot["align-content"]="center";break;case"end":case"flex-end":Ot["align-items"]=Ot["align-content"]="flex-end";break;case"space-between":Ot["align-content"]="space-between",Ot["align-items"]="stretch";break;case"space-around":Ot["align-content"]="space-around",Ot["align-items"]="stretch";break;case"baseline":Ot["align-content"]="stretch",Ot["align-items"]="baseline";break;default:Ot["align-items"]=Ot["align-content"]="stretch"}return(0,T.kt)(Ot,{display:wt.inline?"inline-flex":"flex","flex-direction":wt.layout,"box-sizing":"border-box","max-width":"stretch"===Xe?(0,T.tj)(wt.layout)?null:"100%":null,"max-height":"stretch"===Xe&&(0,T.tj)(wt.layout)?"100%":null})}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const Ee=["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 Ln=(()=>{class le extends v.iR{constructor(Lt,wt,Ot,Te){super(Lt,Ot,wt,Te),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(Lt){const wt=this.layout||"row",Ot=this.inline;"row"===wt&&Ot?this.styleCache=jn:"row"!==wt||Ot?"row-reverse"===wt&&Ot?this.styleCache=fn:"row-reverse"!==wt||Ot?"column"===wt&&Ot?this.styleCache=Ye:"column"!==wt||Ot?"column-reverse"===wt&&Ot?this.styleCache=ze:"column-reverse"===wt&&!Ot&&(this.styleCache=Yn):this.styleCache=ho:this.styleCache=fi:this.styleCache=Oi,this.addStyles(Lt,{layout:wt,inline:Ot})}onLayoutChange(Lt){const wt=Lt.value.split(" ");this.layout=wt[0],this.inline=Lt.value.includes("inline"),T.iQ.find(Ot=>Ot===this.layout)||(this.layout="row"),this.triggerUpdate()}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(Ce),d.Y36(v.yB))},le.\u0275dir=d.lG2({type:le,features:[d.qOj]}),le})(),mi=(()=>{class le extends Ln{constructor(){super(...arguments),this.inputs=Ee}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,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]}),le})();const Oi=new Map,ho=new Map,fi=new Map,Yn=new Map,jn=new Map,Ye=new Map,fn=new Map,ze=new Map;let en=(()=>{class le{}return le.\u0275fac=function(Lt){return new(Lt||le)},le.\u0275mod=d.oAB({type:le}),le.\u0275inj=d.cJS({imports:[v.IR,p.vT]}),le})()},24006:(ot,et,b)=>{"use strict";b.d(et,{CE:()=>Gs,Cf:()=>bt,F:()=>br,Fd:()=>pr,Fj:()=>G,JJ:()=>ri,JL:()=>Ke,JU:()=>U,NI:()=>Er,On:()=>Qr,Q7:()=>Bl,QS:()=>$s,UX:()=>rl,Zs:()=>Ps,_Y:()=>Fs,a5:()=>un,kI:()=>zt,nD:()=>lc,nJ:()=>Re,oH:()=>js,p4:()=>bc,qQ:()=>xs,qu:()=>Pa,sg:()=>md,u:()=>Hl,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 pe{constructor(qt,rt){this._renderer=qt,this._elementRef=rt,this.onChange=ki=>{},this.onTouched=()=>{}}setProperty(qt,rt){this._renderer.setProperty(this._elementRef.nativeElement,qt,rt)}registerOnTouched(qt){this.onTouched=qt}registerOnChange(qt){this.onChange=qt}setDisabledState(qt){this.setProperty("disabled",qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(d.Qsj),d.Y36(d.SBq))},pe.\u0275dir=d.lG2({type:pe}),pe})(),C=(()=>{class pe extends A{}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,features:[d.qOj]}),pe})();const U=new d.OlP("NgValueAccessor"),P={provide:U,useExisting:(0,d.Gpc)(()=>G),multi:!0},z=new d.OlP("CompositionEventMode");let G=(()=>{class pe extends A{constructor(qt,rt,ki){super(qt,rt),this._compositionMode=ki,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function I(){const pe=(0,p.q)()?(0,p.q)().getUserAgent():"";return/android (\d+)/.test(pe.toLowerCase())}())}writeValue(qt){this.setProperty("value",qt??"")}_handleInput(qt){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(qt)}_compositionStart(){this._composing=!0}_compositionEnd(qt){this._composing=!1,this._compositionMode&&this.onChange(qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(d.Qsj),d.Y36(d.SBq),d.Y36(z,8))},pe.\u0275dir=d.lG2({type:pe,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(qt,rt){1&qt&&d.NdJ("input",function(jo){return rt._handleInput(jo.target.value)})("blur",function(){return rt.onTouched()})("compositionstart",function(){return rt._compositionStart()})("compositionend",function(jo){return rt._compositionEnd(jo.target.value)})},features:[d._Bn([P]),d.qOj]}),pe})();function at(pe){return null==pe||("string"==typeof pe||Array.isArray(pe))&&0===pe.length}function lt(pe){return null!=pe&&"number"==typeof pe.length}const bt=new d.OlP("NgValidators"),Pt=new d.OlP("NgAsyncValidators"),Dt=/^(?=.{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 zt{static min(ee){return Vt(ee)}static max(ee){return nt(ee)}static required(ee){return Tt(ee)}static requiredTrue(ee){return At(ee)}static email(ee){return function ft(pe){return at(pe.value)||Dt.test(pe.value)?null:{email:!0}}(ee)}static minLength(ee){return function Et(pe){return ee=>at(ee.value)||!lt(ee.value)?null:ee.value.length{if(at(rt.value))return null;const ki=rt.value;return ee.test(ki)?null:{pattern:{requiredPattern:qt,actualValue:ki}}}}(ee)}static nullValidator(ee){return null}static compose(ee){return Xt(ee)}static composeAsync(ee){return ae(ee)}}function Vt(pe){return ee=>{if(at(ee.value)||at(pe))return null;const qt=parseFloat(ee.value);return!isNaN(qt)&&qt{if(at(ee.value)||at(pe))return null;const qt=parseFloat(ee.value);return!isNaN(qt)&&qt>pe?{max:{max:pe,actual:ee.value}}:null}}function Tt(pe){return at(pe.value)?{required:!0}:null}function At(pe){return!0===pe.value?null:{required:!0}}function Bt(pe){return ee=>lt(ee.value)&&ee.value.length>pe?{maxlength:{requiredLength:pe,actualLength:ee.value.length}}:null}function se(pe){return null}function Jt(pe){return null!=pe}function ve(pe){return(0,d.QGY)(pe)?(0,v.D)(pe):pe}function xe(pe){let ee={};return pe.forEach(qt=>{ee=null!=qt?{...ee,...qt}:ee}),0===Object.keys(ee).length?null:ee}function Oe(pe,ee){return ee.map(qt=>qt(pe))}function $e(pe){return pe.map(ee=>function qe(pe){return!pe.validate}(ee)?ee:qt=>ee.validate(qt))}function Xt(pe){if(!pe)return null;const ee=pe.filter(Jt);return 0==ee.length?null:function(qt){return xe(Oe(qt,ee))}}function we(pe){return null!=pe?Xt($e(pe)):null}function ae(pe){if(!pe)return null;const ee=pe.filter(Jt);return 0==ee.length?null:function(qt){const rt=Oe(qt,ee).map(ve);return(0,T.D)(rt).pipe((0,t.U)(xe))}}function Kt(pe){return null!=pe?ae($e(pe)):null}function de(pe,ee){return null===pe?[ee]:Array.isArray(pe)?[...pe,ee]:[pe,ee]}function Wt(pe){return pe._rawValidators}function re(pe){return pe._rawAsyncValidators}function Pe(pe){return pe?Array.isArray(pe)?pe:[pe]:[]}function on(pe,ee){return Array.isArray(pe)?pe.includes(ee):pe===ee}function _n(pe,ee){const qt=Pe(ee);return Pe(pe).forEach(ki=>{on(qt,ki)||qt.push(ki)}),qt}function ye(pe,ee){return Pe(ee).filter(qt=>!on(pe,qt))}class gn{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(ee){this._rawValidators=ee||[],this._composedValidatorFn=we(this._rawValidators)}_setAsyncValidators(ee){this._rawAsyncValidators=ee||[],this._composedAsyncValidatorFn=Kt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ee){this._onDestroyCallbacks.push(ee)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ee=>ee()),this._onDestroyCallbacks=[]}reset(ee){this.control&&this.control.reset(ee)}hasError(ee,qt){return!!this.control&&this.control.hasError(ee,qt)}getError(ee,qt){return this.control?this.control.getError(ee,qt):null}}class Ue extends gn{get formDirective(){return null}get path(){return null}}class un extends gn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Mn{constructor(ee){this._cd=ee}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 ri=(()=>{class pe extends Mn{constructor(qt){super(qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(un,2))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(qt,rt){2&qt&&d.ekj("ng-untouched",rt.isUntouched)("ng-touched",rt.isTouched)("ng-pristine",rt.isPristine)("ng-dirty",rt.isDirty)("ng-valid",rt.isValid)("ng-invalid",rt.isInvalid)("ng-pending",rt.isPending)},features:[d.qOj]}),pe})(),Ke=(()=>{class pe extends Mn{constructor(qt){super(qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(Ue,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(qt,rt){2&qt&&d.ekj("ng-untouched",rt.isUntouched)("ng-touched",rt.isTouched)("ng-pristine",rt.isPristine)("ng-dirty",rt.isDirty)("ng-valid",rt.isValid)("ng-invalid",rt.isInvalid)("ng-pending",rt.isPending)("ng-submitted",rt.isSubmitted)},features:[d.qOj]}),pe})();const ze="VALID",We="INVALID",en="PENDING",le="DISABLED";function Je(pe){return(Te(pe)?pe.validators:pe)||null}function Lt(pe){return Array.isArray(pe)?we(pe):pe||null}function wt(pe,ee){return(Te(ee)?ee.asyncValidators:pe)||null}function Ot(pe){return Array.isArray(pe)?Kt(pe):pe||null}function Te(pe){return null!=pe&&!Array.isArray(pe)&&"object"==typeof pe}function Xe(pe,ee,qt){const rt=pe.controls;if(!(ee?Object.keys(rt):rt).length)throw new d.vHH(1e3,"");if(!rt[qt])throw new d.vHH(1001,"")}function Fe(pe,ee,qt){pe._forEachChild((rt,ki)=>{if(void 0===qt[ki])throw new d.vHH(1002,"")})}class Tn{constructor(ee,qt){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=ee,this._rawAsyncValidators=qt,this._composedValidatorFn=Lt(this._rawValidators),this._composedAsyncValidatorFn=Ot(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(ee){this._rawValidators=this._composedValidatorFn=ee}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ee){this._rawAsyncValidators=this._composedAsyncValidatorFn=ee}get parent(){return this._parent}get valid(){return this.status===ze}get invalid(){return this.status===We}get pending(){return this.status==en}get disabled(){return this.status===le}get enabled(){return this.status!==le}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ee){this._rawValidators=ee,this._composedValidatorFn=Lt(ee)}setAsyncValidators(ee){this._rawAsyncValidators=ee,this._composedAsyncValidatorFn=Ot(ee)}addValidators(ee){this.setValidators(_n(ee,this._rawValidators))}addAsyncValidators(ee){this.setAsyncValidators(_n(ee,this._rawAsyncValidators))}removeValidators(ee){this.setValidators(ye(ee,this._rawValidators))}removeAsyncValidators(ee){this.setAsyncValidators(ye(ee,this._rawAsyncValidators))}hasValidator(ee){return on(this._rawValidators,ee)}hasAsyncValidator(ee){return on(this._rawAsyncValidators,ee)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ee={}){this.touched=!0,this._parent&&!ee.onlySelf&&this._parent.markAsTouched(ee)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ee=>ee.markAllAsTouched())}markAsUntouched(ee={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(qt=>{qt.markAsUntouched({onlySelf:!0})}),this._parent&&!ee.onlySelf&&this._parent._updateTouched(ee)}markAsDirty(ee={}){this.pristine=!1,this._parent&&!ee.onlySelf&&this._parent.markAsDirty(ee)}markAsPristine(ee={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(qt=>{qt.markAsPristine({onlySelf:!0})}),this._parent&&!ee.onlySelf&&this._parent._updatePristine(ee)}markAsPending(ee={}){this.status=en,!1!==ee.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ee.onlySelf&&this._parent.markAsPending(ee)}disable(ee={}){const qt=this._parentMarkedDirty(ee.onlySelf);this.status=le,this.errors=null,this._forEachChild(rt=>{rt.disable({...ee,onlySelf:!0})}),this._updateValue(),!1!==ee.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ee,skipPristineCheck:qt}),this._onDisabledChange.forEach(rt=>rt(!0))}enable(ee={}){const qt=this._parentMarkedDirty(ee.onlySelf);this.status=ze,this._forEachChild(rt=>{rt.enable({...ee,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ee.emitEvent}),this._updateAncestors({...ee,skipPristineCheck:qt}),this._onDisabledChange.forEach(rt=>rt(!1))}_updateAncestors(ee){this._parent&&!ee.onlySelf&&(this._parent.updateValueAndValidity(ee),ee.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ee){this._parent=ee}getRawValue(){return this.value}updateValueAndValidity(ee={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ze||this.status===en)&&this._runAsyncValidator(ee.emitEvent)),!1!==ee.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ee.onlySelf&&this._parent.updateValueAndValidity(ee)}_updateTreeValidity(ee={emitEvent:!0}){this._forEachChild(qt=>qt._updateTreeValidity(ee)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ee.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?le:ze}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ee){if(this.asyncValidator){this.status=en,this._hasOwnPendingAsyncValidator=!0;const qt=ve(this.asyncValidator(this));this._asyncValidationSubscription=qt.subscribe(rt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(rt,{emitEvent:ee})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ee,qt={}){this.errors=ee,this._updateControlsErrors(!1!==qt.emitEvent)}get(ee){let qt=ee;return null==qt||(Array.isArray(qt)||(qt=qt.split(".")),0===qt.length)?null:qt.reduce((rt,ki)=>rt&&rt._find(ki),this)}getError(ee,qt){const rt=qt?this.get(qt):this;return rt&&rt.errors?rt.errors[ee]:null}hasError(ee,qt){return!!this.getError(ee,qt)}get root(){let ee=this;for(;ee._parent;)ee=ee._parent;return ee}_updateControlsErrors(ee){this.status=this._calculateStatus(),ee&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ee)}_initObservables(){this.valueChanges=new d.vpe,this.statusChanges=new d.vpe}_calculateStatus(){return this._allControlsDisabled()?le:this.errors?We:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(en)?en:this._anyControlsHaveStatus(We)?We:ze}_anyControlsHaveStatus(ee){return this._anyControls(qt=>qt.status===ee)}_anyControlsDirty(){return this._anyControls(ee=>ee.dirty)}_anyControlsTouched(){return this._anyControls(ee=>ee.touched)}_updatePristine(ee={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ee.onlySelf&&this._parent._updatePristine(ee)}_updateTouched(ee={}){this.touched=this._anyControlsTouched(),this._parent&&!ee.onlySelf&&this._parent._updateTouched(ee)}_registerOnCollectionChange(ee){this._onCollectionChange=ee}_setUpdateStrategy(ee){Te(ee)&&null!=ee.updateOn&&(this._updateOn=ee.updateOn)}_parentMarkedDirty(ee){return!ee&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ee){return null}}class he extends Tn{constructor(ee,qt,rt){super(Je(qt),wt(rt,qt)),this.controls=ee,this._initObservables(),this._setUpdateStrategy(qt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(ee,qt){return this.controls[ee]?this.controls[ee]:(this.controls[ee]=qt,qt.setParent(this),qt._registerOnCollectionChange(this._onCollectionChange),qt)}addControl(ee,qt,rt={}){this.registerControl(ee,qt),this.updateValueAndValidity({emitEvent:rt.emitEvent}),this._onCollectionChange()}removeControl(ee,qt={}){this.controls[ee]&&this.controls[ee]._registerOnCollectionChange(()=>{}),delete this.controls[ee],this.updateValueAndValidity({emitEvent:qt.emitEvent}),this._onCollectionChange()}setControl(ee,qt,rt={}){this.controls[ee]&&this.controls[ee]._registerOnCollectionChange(()=>{}),delete this.controls[ee],qt&&this.registerControl(ee,qt),this.updateValueAndValidity({emitEvent:rt.emitEvent}),this._onCollectionChange()}contains(ee){return this.controls.hasOwnProperty(ee)&&this.controls[ee].enabled}setValue(ee,qt={}){Fe(this,0,ee),Object.keys(ee).forEach(rt=>{Xe(this,!0,rt),this.controls[rt].setValue(ee[rt],{onlySelf:!0,emitEvent:qt.emitEvent})}),this.updateValueAndValidity(qt)}patchValue(ee,qt={}){null!=ee&&(Object.keys(ee).forEach(rt=>{const ki=this.controls[rt];ki&&ki.patchValue(ee[rt],{onlySelf:!0,emitEvent:qt.emitEvent})}),this.updateValueAndValidity(qt))}reset(ee={},qt={}){this._forEachChild((rt,ki)=>{rt.reset(ee[ki],{onlySelf:!0,emitEvent:qt.emitEvent})}),this._updatePristine(qt),this._updateTouched(qt),this.updateValueAndValidity(qt)}getRawValue(){return this._reduceChildren({},(ee,qt,rt)=>(ee[rt]=qt.getRawValue(),ee))}_syncPendingControls(){let ee=this._reduceChildren(!1,(qt,rt)=>!!rt._syncPendingControls()||qt);return ee&&this.updateValueAndValidity({onlySelf:!0}),ee}_forEachChild(ee){Object.keys(this.controls).forEach(qt=>{const rt=this.controls[qt];rt&&ee(rt,qt)})}_setUpControls(){this._forEachChild(ee=>{ee.setParent(this),ee._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ee){for(const[qt,rt]of Object.entries(this.controls))if(this.contains(qt)&&ee(rt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(qt,rt,ki)=>((rt.enabled||this.disabled)&&(qt[ki]=rt.value),qt))}_reduceChildren(ee,qt){let rt=ee;return this._forEachChild((ki,jo)=>{rt=qt(rt,ki,jo)}),rt}_allControlsDisabled(){for(const ee of Object.keys(this.controls))if(this.controls[ee].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(ee){return this.controls.hasOwnProperty(ee)?this.controls[ee]:null}}const Re=he;class gi extends he{}function _o(pe,ee){return[...ee.path,pe]}function mn(pe,ee){Zi(pe,ee),ee.valueAccessor.writeValue(pe.value),pe.disabled&&ee.valueAccessor.setDisabledState?.(!0),function Fo(pe,ee){ee.valueAccessor.registerOnChange(qt=>{pe._pendingValue=qt,pe._pendingChange=!0,pe._pendingDirty=!0,"change"===pe.updateOn&&Ia(pe,ee)})}(pe,ee),function fr(pe,ee){const qt=(rt,ki)=>{ee.valueAccessor.writeValue(rt),ki&&ee.viewToModelUpdate(rt)};pe.registerOnChange(qt),ee._registerOnDestroy(()=>{pe._unregisterOnChange(qt)})}(pe,ee),function ca(pe,ee){ee.valueAccessor.registerOnTouched(()=>{pe._pendingTouched=!0,"blur"===pe.updateOn&&pe._pendingChange&&Ia(pe,ee),"submit"!==pe.updateOn&&pe.markAsTouched()})}(pe,ee),function ei(pe,ee){if(ee.valueAccessor.setDisabledState){const qt=rt=>{ee.valueAccessor.setDisabledState(rt)};pe.registerOnDisabledChange(qt),ee._registerOnDestroy(()=>{pe._unregisterOnDisabledChange(qt)})}}(pe,ee)}function An(pe,ee,qt=!0){const rt=()=>{};ee.valueAccessor&&(ee.valueAccessor.registerOnChange(rt),ee.valueAccessor.registerOnTouched(rt)),vo(pe,ee),pe&&(ee._invokeOnDestroyCallbacks(),pe._registerOnCollectionChange(()=>{}))}function sn(pe,ee){pe.forEach(qt=>{qt.registerOnValidatorChange&&qt.registerOnValidatorChange(ee)})}function Zi(pe,ee){const qt=Wt(pe);null!==ee.validator?pe.setValidators(de(qt,ee.validator)):"function"==typeof qt&&pe.setValidators([qt]);const rt=re(pe);null!==ee.asyncValidator?pe.setAsyncValidators(de(rt,ee.asyncValidator)):"function"==typeof rt&&pe.setAsyncValidators([rt]);const ki=()=>pe.updateValueAndValidity();sn(ee._rawValidators,ki),sn(ee._rawAsyncValidators,ki)}function vo(pe,ee){let qt=!1;if(null!==pe){if(null!==ee.validator){const ki=Wt(pe);if(Array.isArray(ki)&&ki.length>0){const jo=ki.filter(La=>La!==ee.validator);jo.length!==ki.length&&(qt=!0,pe.setValidators(jo))}}if(null!==ee.asyncValidator){const ki=re(pe);if(Array.isArray(ki)&&ki.length>0){const jo=ki.filter(La=>La!==ee.asyncValidator);jo.length!==ki.length&&(qt=!0,pe.setAsyncValidators(jo))}}}const rt=()=>{};return sn(ee._rawValidators,rt),sn(ee._rawAsyncValidators,rt),qt}function Ia(pe,ee){pe._pendingDirty&&pe.markAsDirty(),pe.setValue(pe._pendingValue,{emitModelToViewChange:!1}),ee.viewToModelUpdate(pe._pendingValue),pe._pendingChange=!1}function Ge(pe,ee){Zi(pe,ee)}function Rt(pe,ee){if(!pe.hasOwnProperty("model"))return!1;const qt=pe.model;return!!qt.isFirstChange()||!Object.is(ee,qt.currentValue)}function Ft(pe,ee){pe._syncPendingControls(),ee.forEach(qt=>{const rt=qt.control;"submit"===rt.updateOn&&rt._pendingChange&&(qt.viewToModelUpdate(rt._pendingValue),rt._pendingChange=!1)})}function Be(pe,ee){if(!ee)return null;let qt,rt,ki;return Array.isArray(ee),ee.forEach(jo=>{jo.constructor===G?qt=jo:function Q(pe){return Object.getPrototypeOf(pe.constructor)===C}(jo)?rt=jo:ki=jo}),ki||rt||qt||null}const Co={provide:Ue,useExisting:(0,d.Gpc)(()=>br)},gr=(()=>Promise.resolve())();let br=(()=>{class pe extends Ue{constructor(qt,rt){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new d.vpe,this.form=new he({},we(qt),Kt(rt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(qt){gr.then(()=>{const rt=this._findContainer(qt.path);qt.control=rt.registerControl(qt.name,qt.control),mn(qt.control,qt),qt.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(qt)})}getControl(qt){return this.form.get(qt.path)}removeControl(qt){gr.then(()=>{const rt=this._findContainer(qt.path);rt&&rt.removeControl(qt.name),this._directives.delete(qt)})}addFormGroup(qt){gr.then(()=>{const rt=this._findContainer(qt.path),ki=new he({});Ge(ki,qt),rt.registerControl(qt.name,ki),ki.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(qt){gr.then(()=>{const rt=this._findContainer(qt.path);rt&&rt.removeControl(qt.name)})}getFormGroup(qt){return this.form.get(qt.path)}updateModel(qt,rt){gr.then(()=>{this.form.get(qt.path).setValue(rt)})}setValue(qt){this.control.setValue(qt)}onSubmit(qt){return this.submitted=!0,Ft(this.form,this._directives),this.ngSubmit.emit(qt),"dialog"===qt?.target?.method}onReset(){this.resetForm()}resetForm(qt){this.form.reset(qt),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(qt){return qt.pop(),qt.length?this.form.get(qt):this.form}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(bt,10),d.Y36(Pt,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(qt,rt){1&qt&&d.NdJ("submit",function(jo){return rt.onSubmit(jo)})("reset",function(){return rt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[d._Bn([Co]),d.qOj]}),pe})();function ls(pe,ee){const qt=pe.indexOf(ee);qt>-1&&pe.splice(qt,1)}function ar(pe){return"object"==typeof pe&&null!==pe&&2===Object.keys(pe).length&&"value"in pe&&"disabled"in pe}const Er=class extends Tn{constructor(ee=null,qt,rt){super(Je(qt),wt(rt,qt)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ee),this._setUpdateStrategy(qt),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Te(qt)&&(qt.nonNullable||qt.initialValueIsDefault)&&(this.defaultValue=ar(ee)?ee.value:ee)}setValue(ee,qt={}){this.value=this._pendingValue=ee,this._onChange.length&&!1!==qt.emitModelToViewChange&&this._onChange.forEach(rt=>rt(this.value,!1!==qt.emitViewToModelChange)),this.updateValueAndValidity(qt)}patchValue(ee,qt={}){this.setValue(ee,qt)}reset(ee=this.defaultValue,qt={}){this._applyFormState(ee),this.markAsPristine(qt),this.markAsUntouched(qt),this.setValue(this.value,qt),this._pendingChange=!1}_updateValue(){}_anyControls(ee){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ee){this._onChange.push(ee)}_unregisterOnChange(ee){ls(this._onChange,ee)}registerOnDisabledChange(ee){this._onDisabledChange.push(ee)}_unregisterOnDisabledChange(ee){ls(this._onDisabledChange,ee)}_forEachChild(ee){}_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(ee){ar(ee)?(this.value=this._pendingValue=ee.value,ee.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ee}},bc=Er;let Br=(()=>{class pe extends Ue{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 pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,features:[d.qOj]}),pe})();const Lc={provide:un,useExisting:(0,d.Gpc)(()=>Qr)},xl=(()=>Promise.resolve())();let Qr=(()=>{class pe extends un{constructor(qt,rt,ki,jo,La){super(),this._changeDetectorRef=La,this.control=new Er,this._registered=!1,this.update=new d.vpe,this._parent=qt,this._setValidators(rt),this._setAsyncValidators(ki),this.valueAccessor=Be(0,jo)}ngOnChanges(qt){if(this._checkForErrors(),!this._registered||"name"in qt){if(this._registered&&(this._checkName(),this.formDirective)){const rt=qt.name.previousValue;this.formDirective.removeControl({name:rt,path:this._getPath(rt)})}this._setUpControl()}"isDisabled"in qt&&this._updateDisabled(qt),Rt(qt,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(qt){this.viewModel=qt,this.update.emit(qt)}_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(){mn(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(qt){xl.then(()=>{this.control.setValue(qt,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(qt){const rt=qt.isDisabled.currentValue,ki=0!==rt&&(0,d.D6c)(rt);xl.then(()=>{ki&&!this.control.disabled?this.control.disable():!ki&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(qt){return this._parent?_o(qt,this._parent):[qt]}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(Ue,9),d.Y36(bt,10),d.Y36(Pt,10),d.Y36(U,10),d.Y36(d.sBO,8))},pe.\u0275dir=d.lG2({type:pe,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]}),pe})(),Fs=(()=>{class pe{}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275dir=d.lG2({type:pe,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),pe})();const _1={provide:U,useExisting:(0,d.Gpc)(()=>hr),multi:!0};let hr=(()=>{class pe extends C{writeValue(qt){this.setProperty("value",qt??"")}registerOnChange(qt){this.onChange=rt=>{qt(""==rt?null:parseFloat(rt))}}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(qt,rt){1&qt&&d.NdJ("input",function(jo){return rt.onChange(jo.target.value)})("blur",function(){return rt.onTouched()})},features:[d._Bn([_1]),d.qOj]}),pe})(),vc=(()=>{class pe{}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({}),pe})();const Bc=new d.OlP("NgModelWithFormControlWarning"),Vc={provide:un,useExisting:(0,d.Gpc)(()=>js)};let js=(()=>{class pe extends un{constructor(qt,rt,ki,jo){super(),this._ngModelWarningConfig=jo,this.update=new d.vpe,this._ngModelWarningSent=!1,this._setValidators(qt),this._setAsyncValidators(rt),this.valueAccessor=Be(0,ki)}set isDisabled(qt){}ngOnChanges(qt){if(this._isControlChanged(qt)){const rt=qt.form.previousValue;rt&&An(rt,this,!1),mn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Rt(qt,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&An(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(qt){this.viewModel=qt,this.update.emit(qt)}_isControlChanged(qt){return qt.hasOwnProperty("form")}}return pe._ngModelWarningSentOnce=!1,pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(bt,10),d.Y36(Pt,10),d.Y36(U,10),d.Y36(Bc,8))},pe.\u0275dir=d.lG2({type:pe,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]}),pe})();const yl={provide:Ue,useExisting:(0,d.Gpc)(()=>md)};let md=(()=>{class pe extends Ue{constructor(qt,rt){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new d.vpe,this._setValidators(qt),this._setAsyncValidators(rt)}ngOnChanges(qt){this._checkFormPresent(),qt.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(qt){const rt=this.form.get(qt.path);return mn(rt,qt),rt.updateValueAndValidity({emitEvent:!1}),this.directives.push(qt),rt}getControl(qt){return this.form.get(qt.path)}removeControl(qt){An(qt.control||null,qt,!1),function Rn(pe,ee){const qt=pe.indexOf(ee);qt>-1&&pe.splice(qt,1)}(this.directives,qt)}addFormGroup(qt){this._setUpFormContainer(qt)}removeFormGroup(qt){this._cleanUpFormContainer(qt)}getFormGroup(qt){return this.form.get(qt.path)}addFormArray(qt){this._setUpFormContainer(qt)}removeFormArray(qt){this._cleanUpFormContainer(qt)}getFormArray(qt){return this.form.get(qt.path)}updateModel(qt,rt){this.form.get(qt.path).setValue(rt)}onSubmit(qt){return this.submitted=!0,Ft(this.form,this.directives),this.ngSubmit.emit(qt),"dialog"===qt?.target?.method}onReset(){this.resetForm()}resetForm(qt){this.form.reset(qt),this.submitted=!1}_updateDomValue(){this.directives.forEach(qt=>{const rt=qt.control,ki=this.form.get(qt.path);rt!==ki&&(An(rt||null,qt),(pe=>pe instanceof Er)(ki)&&(mn(ki,qt),qt.control=ki))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(qt){const rt=this.form.get(qt.path);Ge(rt,qt),rt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(qt){if(this.form){const rt=this.form.get(qt.path);rt&&function In(pe,ee){return vo(pe,ee)}(rt,qt)&&rt.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 pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(bt,10),d.Y36(Pt,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formGroup",""]],hostBindings:function(qt,rt){1&qt&&d.NdJ("submit",function(jo){return rt.onSubmit(jo)})("reset",function(){return rt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[d._Bn([yl]),d.qOj,d.TTD]}),pe})();const Rl={provide:Ue,useExisting:(0,d.Gpc)(()=>Js)};let Js=(()=>{class pe extends Br{constructor(qt,rt,ki){super(),this._parent=qt,this._setValidators(rt),this._setAsyncValidators(ki)}_checkParentType(){jc(this._parent)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(Ue,13),d.Y36(bt,10),d.Y36(Pt,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[d._Bn([Rl]),d.qOj]}),pe})();const Tl={provide:Ue,useExisting:(0,d.Gpc)(()=>Gs)};let Gs=(()=>{class pe extends Ue{constructor(qt,rt,ki){super(),this._parent=qt,this._setValidators(rt),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 pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(Ue,13),d.Y36(bt,10),d.Y36(Pt,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[d._Bn([Tl]),d.qOj]}),pe})();function jc(pe){return!(pe instanceof Js||pe instanceof md||pe instanceof Gs)}const ks={provide:un,useExisting:(0,d.Gpc)(()=>Hl)};let Hl=(()=>{class pe extends un{constructor(qt,rt,ki,jo,La){super(),this._ngModelWarningConfig=La,this._added=!1,this.update=new d.vpe,this._ngModelWarningSent=!1,this._parent=qt,this._setValidators(rt),this._setAsyncValidators(ki),this.valueAccessor=Be(0,jo)}set isDisabled(qt){}ngOnChanges(qt){this._added||this._setUpControl(),Rt(qt,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(qt){this.viewModel=qt,this.update.emit(qt)}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 pe._ngModelWarningSentOnce=!1,pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(Ue,13),d.Y36(bt,10),d.Y36(Pt,10),d.Y36(U,10),d.Y36(Bc,8))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[d._Bn([ks]),d.qOj,d.TTD]}),pe})();function Dr(pe){return"number"==typeof pe?pe:parseFloat(pe)}let Cc=(()=>{class pe{constructor(){this._validator=se}ngOnChanges(qt){if(this.inputName in qt){const rt=this.normalizeInput(qt[this.inputName].currentValue);this._enabled=this.enabled(rt),this._validator=this._enabled?this.createValidator(rt):se,this._onChange&&this._onChange()}}validate(qt){return this._validator(qt)}registerOnValidatorChange(qt){this._onChange=qt}enabled(qt){return null!=qt}}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275dir=d.lG2({type:pe,features:[d.TTD]}),pe})();const Wa={provide:bt,useExisting:(0,d.Gpc)(()=>pr),multi:!0};let pr=(()=>{class pe extends Cc{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=qt=>Dr(qt),this.createValidator=qt=>nt(qt)}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("max",rt._enabled?rt.max:null)},inputs:{max:"max"},features:[d._Bn([Wa]),d.qOj]}),pe})();const Gc={provide:bt,useExisting:(0,d.Gpc)(()=>xs),multi:!0};let xs=(()=>{class pe extends Cc{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=qt=>Dr(qt),this.createValidator=qt=>Vt(qt)}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("min",rt._enabled?rt.min:null)},inputs:{min:"min"},features:[d._Bn([Gc]),d.qOj]}),pe})();const Ac={provide:bt,useExisting:(0,d.Gpc)(()=>Bl),multi:!0},sr={provide:bt,useExisting:(0,d.Gpc)(()=>Ps),multi:!0};let Bl=(()=>{class pe extends Cc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=d.D6c,this.createValidator=qt=>Tt}enabled(qt){return qt}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("required",rt._enabled?"":null)},inputs:{required:"required"},features:[d._Bn([Ac]),d.qOj]}),pe})(),Ps=(()=>{class pe extends Bl{constructor(){super(...arguments),this.createValidator=qt=>At}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("required",rt._enabled?"":null)},features:[d._Bn([sr]),d.qOj]}),pe})();const Qs={provide:bt,useExisting:(0,d.Gpc)(()=>lc),multi:!0};let lc=(()=>{class pe extends Cc{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=qt=>function bu(pe){return"number"==typeof pe?pe:parseInt(pe,10)}(qt),this.createValidator=qt=>Bt(qt)}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("maxlength",rt._enabled?rt.maxlength:null)},inputs:{maxlength:"maxlength"},features:[d._Bn([Qs]),d.qOj]}),pe})(),Vr=(()=>{class pe{}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({imports:[vc]}),pe})(),Qc=(()=>{class pe{}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({imports:[Vr]}),pe})(),rl=(()=>{class pe{static withConfig(qt){return{ngModule:pe,providers:[{provide:Bc,useValue:qt.warnOnNgModelWithFormControl}]}}}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({imports:[Vr]}),pe})();class yc extends Tn{constructor(ee,qt,rt){super(Je(qt),wt(rt,qt)),this.controls=ee,this._initObservables(),this._setUpdateStrategy(qt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(ee){return this.controls[this._adjustIndex(ee)]}push(ee,qt={}){this.controls.push(ee),this._registerControl(ee),this.updateValueAndValidity({emitEvent:qt.emitEvent}),this._onCollectionChange()}insert(ee,qt,rt={}){this.controls.splice(ee,0,qt),this._registerControl(qt),this.updateValueAndValidity({emitEvent:rt.emitEvent})}removeAt(ee,qt={}){let rt=this._adjustIndex(ee);rt<0&&(rt=0),this.controls[rt]&&this.controls[rt]._registerOnCollectionChange(()=>{}),this.controls.splice(rt,1),this.updateValueAndValidity({emitEvent:qt.emitEvent})}setControl(ee,qt,rt={}){let ki=this._adjustIndex(ee);ki<0&&(ki=0),this.controls[ki]&&this.controls[ki]._registerOnCollectionChange(()=>{}),this.controls.splice(ki,1),qt&&(this.controls.splice(ki,0,qt),this._registerControl(qt)),this.updateValueAndValidity({emitEvent:rt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ee,qt={}){Fe(this,0,ee),ee.forEach((rt,ki)=>{Xe(this,!1,ki),this.at(ki).setValue(rt,{onlySelf:!0,emitEvent:qt.emitEvent})}),this.updateValueAndValidity(qt)}patchValue(ee,qt={}){null!=ee&&(ee.forEach((rt,ki)=>{this.at(ki)&&this.at(ki).patchValue(rt,{onlySelf:!0,emitEvent:qt.emitEvent})}),this.updateValueAndValidity(qt))}reset(ee=[],qt={}){this._forEachChild((rt,ki)=>{rt.reset(ee[ki],{onlySelf:!0,emitEvent:qt.emitEvent})}),this._updatePristine(qt),this._updateTouched(qt),this.updateValueAndValidity(qt)}getRawValue(){return this.controls.map(ee=>ee.getRawValue())}clear(ee={}){this.controls.length<1||(this._forEachChild(qt=>qt._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:ee.emitEvent}))}_adjustIndex(ee){return ee<0?ee+this.length:ee}_syncPendingControls(){let ee=this.controls.reduce((qt,rt)=>!!rt._syncPendingControls()||qt,!1);return ee&&this.updateValueAndValidity({onlySelf:!0}),ee}_forEachChild(ee){this.controls.forEach((qt,rt)=>{ee(qt,rt)})}_updateValue(){this.value=this.controls.filter(ee=>ee.enabled||this.disabled).map(ee=>ee.value)}_anyControls(ee){return this.controls.some(qt=>qt.enabled&&ee(qt))}_setUpControls(){this._forEachChild(ee=>this._registerControl(ee))}_allControlsDisabled(){for(const ee of this.controls)if(ee.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(ee){ee.setParent(this),ee._registerOnCollectionChange(this._onCollectionChange)}_find(ee){return this.at(ee)??null}}function Bi(pe){return!!pe&&(void 0!==pe.asyncValidators||void 0!==pe.validators||void 0!==pe.updateOn)}let Pa=(()=>{class pe{constructor(){this.useNonNullable=!1}get nonNullable(){const qt=new pe;return qt.useNonNullable=!0,qt}group(qt,rt=null){const ki=this._reduceControls(qt);let jo={};return Bi(rt)?jo=rt:null!==rt&&(jo.validators=rt.validator,jo.asyncValidators=rt.asyncValidator),new he(ki,jo)}record(qt,rt=null){const ki=this._reduceControls(qt);return new gi(ki,rt)}control(qt,rt,ki){let jo={};return this.useNonNullable?(Bi(rt)?jo=rt:(jo.validators=rt,jo.asyncValidators=ki),new Er(qt,{...jo,nonNullable:!0})):new Er(qt,rt,ki)}array(qt,rt,ki){const jo=qt.map(La=>this._createControl(La));return new yc(jo,rt,ki)}_reduceControls(qt){const rt={};return Object.keys(qt).forEach(ki=>{rt[ki]=this._createControl(qt[ki])}),rt}_createControl(qt){return qt instanceof Er||qt instanceof Tn?qt:Array.isArray(qt)?this.control(qt[0],qt.length>1?qt[1]:null,qt.length>2?qt[2]:null):this.control(qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:rl}),pe})(),$s=(()=>{class pe extends Pa{group(qt,rt=null){return super.group(qt,rt)}control(qt,rt,ki){return super.control(qt,rt,ki)}array(qt,rt,ki){return super.array(qt,rt,ki)}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:rl}),pe})()},47957:(ot,et,b)=>{"use strict";b.d(et,{Bb:()=>_n,XC:()=>$e,ZL:()=>on});var d=b(12687),p=b(21281),v=b(83353),T=b(94650),t=b(3238),A=b(42654),C=b(8929),U=b(88514),k=b(36787),D=b(21086),P=b(23753),I=b(36895),z=b(98184),G=b(67376),K=b(40445),at=b(29521),lt=b(84080),bt=b(24006),Pt=b(59549),Dt=b(1059),zt=b(87545),Vt=b(72986),nt=b(92198),Tt=b(24850),At=b(22868),ft=b(18583);const Et=["panel"];function Bt(ye,gn){if(1&ye&&(T.TgZ(0,"div",0,1),T.Hsn(2),T.qZA()),2&ye){const Ue=gn.id,un=T.oxw();T.Q6J("id",un.id)("ngClass",un._classList),T.uIk("aria-label",un.ariaLabel||null)("aria-labelledby",un._getPanelAriaLabelledby(Ue))}}const It=["*"];let se=0;class Jt{constructor(gn,Ue){this.source=gn,this.option=Ue}}const ve=(0,t.Kr)(class{}),xe=new T.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Oe(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let qe=(()=>{class ye extends ve{constructor(Ue,un,Mn,oi){super(),this._changeDetectorRef=Ue,this._elementRef=un,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-"+se++,this.inertGroups=oi?.SAFARI||!1,this._autoActiveFirstOption=!!Mn.autoActiveFirstOption,this._autoSelectActiveOption=!!Mn.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Ue){this._autoActiveFirstOption=(0,p.Ig)(Ue)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Ue){this._autoSelectActiveOption=(0,p.Ig)(Ue)}set classList(Ue){this._classList=Ue&&Ue.length?(0,p.du)(Ue).reduce((un,Mn)=>(un[Mn]=!0,un),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new d.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Ue=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Ue]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(Ue){this.panel&&(this.panel.nativeElement.scrollTop=Ue)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Ue){const un=new Jt(this,Ue);this.optionSelected.emit(un)}_getPanelAriaLabelledby(Ue){return this.ariaLabel?null:this.ariaLabelledby?(Ue?Ue+" ":"")+this.ariaLabelledby:Ue}_setVisibilityClasses(Ue){Ue[this._visibleClass]=this.showPanel,Ue[this._hiddenClass]=!this.showPanel}}return ye.\u0275fac=function(Ue){return new(Ue||ye)(T.Y36(T.sBO),T.Y36(T.SBq),T.Y36(xe),T.Y36(v.t4))},ye.\u0275dir=T.lG2({type:ye,viewQuery:function(Ue,un){if(1&Ue&&(T.Gf(T.Rgc,7),T.Gf(Et,5)),2&Ue){let Mn;T.iGM(Mn=T.CRH())&&(un.template=Mn.first),T.iGM(Mn=T.CRH())&&(un.panel=Mn.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]}),ye})(),$e=(()=>{class ye extends qe{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return ye.\u0275fac=function(){let gn;return function(un){return(gn||(gn=T.n5z(ye)))(un||ye)}}(),ye.\u0275cmp=T.Xpm({type:ye,selectors:[["mat-autocomplete"]],contentQueries:function(Ue,un,Mn){if(1&Ue&&(T.Suo(Mn,t.K7,5),T.Suo(Mn,t.ey,5)),2&Ue){let oi;T.iGM(oi=T.CRH())&&(un.optionGroups=oi),T.iGM(oi=T.CRH())&&(un.options=oi)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[T._Bn([{provide:t.HF,useExisting:ye}]),T.qOj],ngContentSelectors:It,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(Ue,un){1&Ue&&(T.F$t(),T.YNc(0,Bt,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}),ye})();const ae=new T.OlP("mat-autocomplete-scroll-strategy"),de={provide:ae,deps:[z.aV],useFactory:function Kt(ye){return()=>ye.scrollStrategies.reposition()}},Wt={provide:bt.JU,useExisting:(0,T.Gpc)(()=>on),multi:!0};let Pe=(()=>{class ye{constructor(Ue,un,Mn,oi,bi,ri,Ke,ne,ct,it,kt){this._element=Ue,this._overlay=un,this._viewContainerRef=Mn,this._zone=oi,this._changeDetectorRef=bi,this._dir=Ke,this._formField=ne,this._document=ct,this._viewportRuler=it,this._defaults=kt,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=A.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new C.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,U.P)(()=>{const Gt=this.autocomplete?this.autocomplete.options:null;return Gt?Gt.changes.pipe((0,Dt.O)(Gt),(0,zt.w)(()=>(0,k.T)(...Gt.map(oe=>oe.onSelectionChange)))):this._zone.onStable.pipe((0,Vt.q)(1),(0,zt.w)(()=>this.optionSelections))}),this._scrollStrategy=ri}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Ue){this._autocompleteDisabled=(0,p.Ig)(Ue)}ngAfterViewInit(){const Ue=this._getWindow();typeof Ue<"u"&&this._zone.runOutsideAngular(()=>Ue.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Ue){Ue.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Ue=this._getWindow();typeof Ue<"u"&&Ue.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,nt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,nt.h)(()=>this._overlayAttached)):(0,D.of)()).pipe((0,Tt.U)(Ue=>Ue instanceof t.rN?Ue: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,nt.h)(Ue=>{const un=(0,v.sA)(Ue),Mn=this._formField?this._formField._elementRef.nativeElement:null,oi=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&un!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Mn||!Mn.contains(un))&&(!oi||!oi.contains(un))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(un)}))}writeValue(Ue){Promise.resolve(null).then(()=>this._assignOptionValue(Ue))}registerOnChange(Ue){this._onChange=Ue}registerOnTouched(Ue){this._onTouched=Ue}setDisabledState(Ue){this._element.nativeElement.disabled=Ue}_handleKeydown(Ue){const un=Ue.keyCode,Mn=(0,at.Vb)(Ue);if(un===at.hY&&!Mn&&Ue.preventDefault(),this.activeOption&&un===at.K5&&this.panelOpen&&!Mn)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Ue.preventDefault();else if(this.autocomplete){const oi=this.autocomplete._keyManager.activeItem,bi=un===at.LH||un===at.JH;un===at.Mf||bi&&!Mn&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Ue):bi&&this._canOpen()&&this.openPanel(),(bi||this.autocomplete._keyManager.activeItem!==oi)&&(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(Ue){let un=Ue.target,Mn=un.value;"number"===un.type&&(Mn=""==Mn?null:parseFloat(Mn)),this._previousValue!==Mn&&(this._previousValue=Mn,this._pendingAutoselectedOption=null,this._onChange(Mn),this._canOpen()&&this._document.activeElement===Ue.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(Ue=!1){this._formField&&"auto"===this._formField.floatLabel&&(Ue?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Ue=this._zone.onStable.pipe((0,Vt.q)(1)),un=this.autocomplete.options.changes.pipe((0,At.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,ft.g)(0));return(0,k.T)(Ue,un).pipe((0,zt.w)(()=>(this._zone.run(()=>{const Mn=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Mn!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,Vt.q)(1)).subscribe(Mn=>this._setValueAndClose(Mn))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Ue){const un=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Ue):Ue;this._updateNativeInputValue(un??"")}_updateNativeInputValue(Ue){this._formField?this._formField._control.value=Ue:this._element.nativeElement.value=Ue,this._previousValue=Ue}_setValueAndClose(Ue){const un=Ue?Ue.source:this._pendingAutoselectedOption;un&&(this._clearPreviousSelectedOption(un),this._assignOptionValue(un.value),this._onChange(un.value),this.autocomplete._emitSelectEvent(un),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Ue){this.autocomplete.options.forEach(un=>{un!==Ue&&un.selected&&un.deselect()})}_attachOverlay(){let Ue=this._overlayRef;Ue?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ue.updateSize({width:this._getPanelWidth()})):(this._portal=new lt.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Ue=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ue,this._handleOverlayEvents(Ue),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ue&&Ue.updateSize({width:this._getPanelWidth()})})),Ue&&!Ue.hasAttached()&&(Ue.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const un=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&un!==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 Ue=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Ue),this._positionStrategy=Ue,Ue}_setStrategyPositions(Ue){const un=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Mn=this._aboveClass,oi=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Mn},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Mn}];let bi;bi="above"===this.position?oi:"below"===this.position?un:[...un,...oi],Ue.withPositions(bi)}_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 Ue=this.autocomplete;Ue.autoActiveFirstOption?Ue._keyManager.setFirstItemActive():Ue._keyManager.setActiveItem(-1)}_canOpen(){const Ue=this._element.nativeElement;return!Ue.readOnly&&!Ue.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(Ue){const un=this.autocomplete,Mn=(0,t.CB)(Ue,un.options,un.optionGroups);if(0===Ue&&1===Mn)un._setScrollTop(0);else if(un.panel){const oi=un.options.toArray()[Ue];if(oi){const bi=oi._getHostElement(),ri=(0,t.jH)(bi.offsetTop,bi.offsetHeight,un._getScrollTop(),un.panel.nativeElement.offsetHeight);un._setScrollTop(ri)}}}_handleOverlayEvents(Ue){Ue.keydownEvents().subscribe(un=>{(un.keyCode===at.hY&&!(0,at.Vb)(un)||un.keyCode===at.LH&&(0,at.Vb)(un,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),un.stopPropagation(),un.preventDefault())}),Ue.outsidePointerEvents().subscribe()}}return ye.\u0275fac=function(Ue){return new(Ue||ye)(T.Y36(T.SBq),T.Y36(z.aV),T.Y36(T.s_b),T.Y36(T.R0b),T.Y36(T.sBO),T.Y36(ae),T.Y36(K.Is,8),T.Y36(Pt.G_,9),T.Y36(I.K0,8),T.Y36(G.rL),T.Y36(xe,8))},ye.\u0275dir=T.lG2({type:ye,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[T.TTD]}),ye})(),on=(()=>{class ye extends Pe{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return ye.\u0275fac=function(){let gn;return function(un){return(gn||(gn=T.n5z(ye)))(un||ye)}}(),ye.\u0275dir=T.lG2({type:ye,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(Ue,un){1&Ue&&T.NdJ("focusin",function(){return un._handleFocus()})("blur",function(){return un._onTouched()})("input",function(oi){return un._handleInput(oi)})("keydown",function(oi){return un._handleKeydown(oi)})("click",function(){return un._handleClick()}),2&Ue&&T.uIk("autocomplete",un.autocompleteAttribute)("role",un.autocompleteDisabled?null:"combobox")("aria-autocomplete",un.autocompleteDisabled?null:"list")("aria-activedescendant",un.panelOpen&&un.activeOption?un.activeOption.id:null)("aria-expanded",un.autocompleteDisabled?null:un.panelOpen.toString())("aria-owns",un.autocompleteDisabled||!un.panelOpen||null==un.autocomplete?null:un.autocomplete.id)("aria-haspopup",un.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[T._Bn([Wt]),T.qOj]}),ye})(),_n=(()=>{class ye{}return ye.\u0275fac=function(Ue){return new(Ue||ye)},ye.\u0275mod=T.oAB({type:ye}),ye.\u0275inj=T.cJS({providers:[de],imports:[z.U8,t.Ng,t.BQ,I.ez,G.ZD,t.Ng,t.BQ]}),ye})()},42673:(ot,et,b)=>{"use strict";b.d(et,{g:()=>k,k:()=>U});var d=b(94650),p=b(3238),v=b(12687),T=b(21281);let t=0;const A=(0,p.Id)(class{}),C="mat-badge-content";let U=(()=>{class D extends A{constructor(I,z,G,K,at){super(),this._ngZone=I,this._elementRef=z,this._ariaDescriber=G,this._renderer=K,this._animationMode=at,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(C),"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 > .${C}`);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:(ot,et,b)=>{"use strict";b.d(et,{A9:()=>G,Yi:()=>at,vV:()=>lt});var d=b(12687),p=b(21281),v=b(95017),T=b(94650),t=b(24006),A=b(3238);const C=["button"],U=["*"],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,Dt){this.source=Pt,this.value=Dt}}let G=(()=>{class bt{constructor(Dt,zt){this._changeDetector=Dt,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=zt&&zt.appearance?zt.appearance:"standard"}get name(){return this._name}set name(Dt){this._name=Dt,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(Dt){this._vertical=(0,p.Ig)(Dt)}get value(){const Dt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?Dt.map(zt=>zt.value):Dt[0]?Dt[0].value:void 0}set value(Dt){this._setSelectionByValue(Dt),this.valueChange.emit(this.value)}get selected(){const Dt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?Dt:Dt[0]||null}get multiple(){return this._multiple}set multiple(Dt){this._multiple=(0,p.Ig)(Dt),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(Dt){this._disabled=(0,p.Ig)(Dt),this._markButtonsForCheck()}ngOnInit(){this._selectionModel=new v.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(Dt=>Dt.checked))}writeValue(Dt){this.value=Dt,this._changeDetector.markForCheck()}registerOnChange(Dt){this._controlValueAccessorChangeFn=Dt}registerOnTouched(Dt){this._onTouched=Dt}setDisabledState(Dt){this.disabled=Dt}_emitChangeEvent(Dt){const zt=new z(Dt,this.value);this._controlValueAccessorChangeFn(zt.value),this.change.emit(zt)}_syncButtonToggle(Dt,zt,Vt=!1,nt=!1){!this.multiple&&this.selected&&!Dt.checked&&(this.selected.checked=!1),this._selectionModel?zt?this._selectionModel.select(Dt):this._selectionModel.deselect(Dt):nt=!0,nt?Promise.resolve().then(()=>this._updateModelValue(Dt,Vt)):this._updateModelValue(Dt,Vt)}_isSelected(Dt){return this._selectionModel&&this._selectionModel.isSelected(Dt)}_isPrechecked(Dt){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(zt=>null!=Dt.value&&zt===Dt.value):Dt.value===this._rawValue)}_setSelectionByValue(Dt){this._rawValue=Dt,this._buttonToggles&&(this.multiple&&Dt?(Array.isArray(Dt),this._clearSelection(),Dt.forEach(zt=>this._selectValue(zt))):(this._clearSelection(),this._selectValue(Dt)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(Dt=>Dt.checked=!1)}_selectValue(Dt){const zt=this._buttonToggles.find(Vt=>null!=Vt.value&&Vt.value===Dt);zt&&(zt.checked=!0,this._selectionModel.select(zt))}_updateModelValue(Dt,zt){zt&&this._emitChangeEvent(Dt),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(Dt=>Dt._markForCheck())}}return bt.\u0275fac=function(Dt){return new(Dt||bt)(T.Y36(T.sBO),T.Y36(k,8))},bt.\u0275dir=T.lG2({type:bt,selectors:[["mat-button-toggle-group"]],contentQueries:function(Dt,zt,Vt){if(1&Dt&&T.Suo(Vt,at,5),2&Dt){let nt;T.iGM(nt=T.CRH())&&(zt._buttonToggles=nt)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(Dt,zt){2&Dt&&(T.uIk("aria-disabled",zt.disabled),T.ekj("mat-button-toggle-vertical",zt.vertical)("mat-button-toggle-group-appearance-standard","standard"===zt.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:bt}])]}),bt})();const K=(0,A.Kr)(class{});let at=(()=>{class bt extends K{constructor(Dt,zt,Vt,nt,Tt,At){super(),this._changeDetectorRef=zt,this._elementRef=Vt,this._focusMonitor=nt,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new T.vpe;const ft=Number(Tt);this.tabIndex=ft||0===ft?ft:null,this.buttonToggleGroup=Dt,this.appearance=At&&At.appearance?At.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(Dt){this._appearance=Dt}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(Dt){const zt=(0,p.Ig)(Dt);zt!==this._checked&&(this._checked=zt,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(Dt){this._disabled=(0,p.Ig)(Dt)}ngOnInit(){const Dt=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+I++,Dt&&(Dt._isPrechecked(this)?this.checked=!0:Dt._isSelected(this)!==this._checked&&Dt._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const Dt=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),Dt&&Dt._isSelected(this)&&Dt._syncButtonToggle(this,!1,!1,!0)}focus(Dt){this._buttonElement.nativeElement.focus(Dt)}_onButtonClick(){const Dt=!!this._isSingleSelector()||!this._checked;Dt!==this._checked&&(this._checked=Dt,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 bt.\u0275fac=function(Dt){return new(Dt||bt)(T.Y36(D,8),T.Y36(T.sBO),T.Y36(T.SBq),T.Y36(d.tE),T.$8M("tabindex"),T.Y36(k,8))},bt.\u0275cmp=T.Xpm({type:bt,selectors:[["mat-button-toggle"]],viewQuery:function(Dt,zt){if(1&Dt&&T.Gf(C,5),2&Dt){let Vt;T.iGM(Vt=T.CRH())&&(zt._buttonElement=Vt.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(Dt,zt){1&Dt&&T.NdJ("focus",function(){return zt.focus()}),2&Dt&&(T.uIk("aria-label",null)("aria-labelledby",null)("id",zt.id)("name",null),T.ekj("mat-button-toggle-standalone",!zt.buttonToggleGroup)("mat-button-toggle-checked",zt.checked)("mat-button-toggle-disabled",zt.disabled)("mat-button-toggle-appearance-standard","standard"===zt.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:U,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(Dt,zt){if(1&Dt&&(T.F$t(),T.TgZ(0,"button",0,1),T.NdJ("click",function(){return zt._onButtonClick()}),T.TgZ(2,"span",2),T.Hsn(3),T.qZA()(),T._UZ(4,"span",3)(5,"span",4)),2&Dt){const Vt=T.MAs(1);T.Q6J("id",zt.buttonId)("disabled",zt.disabled||null),T.uIk("tabindex",zt.disabled?-1:zt.tabIndex)("aria-pressed",zt.checked)("name",zt._getButtonName())("aria-label",zt.ariaLabel)("aria-labelledby",zt.ariaLabelledby),T.xp6(5),T.Q6J("matRippleTrigger",Vt)("matRippleDisabled",zt.disableRipple||zt.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}),bt})(),lt=(()=>{class bt{}return bt.\u0275fac=function(Dt){return new(Dt||bt)},bt.\u0275mod=T.oAB({type:bt}),bt.\u0275inj=T.cJS({imports:[A.BQ,A.si,A.BQ]}),bt})()},4859:(ot,et,b)=>{"use strict";b.d(et,{lW:()=>D,ot:()=>I});var d=b(94650),p=b(3238),v=b(12687);const T=["mat-button",""],t=["*"],U=["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(K,at,lt){super(K),this._focusMonitor=at,this._animationMode=lt,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const bt of U)this._hasHostAttributes(bt)&&this._getHostElement().classList.add(bt);K.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(K,at){K?this._focusMonitor.focusVia(this._getHostElement(),K,at):this._getHostElement().focus(at)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...K){return K.some(at=>this._getHostElement().hasAttribute(at))}}return z.\u0275fac=function(K){return new(K||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(K,at){if(1&K&&d.Gf(p.wG,5),2&K){let lt;d.iGM(lt=d.CRH())&&(at.ripple=lt.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(K,at){2&K&&(d.uIk("disabled",at.disabled||null),d.ekj("_mat-animation-noopable","NoopAnimations"===at._animationMode)("mat-button-disabled",at.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(K,at){1&K&&(d.F$t(),d.TgZ(0,"span",0),d.Hsn(1),d.qZA(),d._UZ(2,"span",1)(3,"span",2)),2&K&&(d.xp6(2),d.ekj("mat-button-ripple-round",at.isRoundButton||at.isIconButton),d.Q6J("matRippleDisabled",at._isRippleDisabled())("matRippleCentered",at.isIconButton)("matRippleTrigger",at._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(K){return new(K||z)},z.\u0275mod=d.oAB({type:z}),z.\u0275inj=d.cJS({imports:[p.si,p.BQ,p.BQ]}),z})()},73546:(ot,et,b)=>{"use strict";b.d(et,{$j:()=>P,C1:()=>Vt,G2:()=>G,QW:()=>nt,a8:()=>Dt,dk:()=>zt,dn:()=>k,hq:()=>I,n5:()=>D,nc:()=>at});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]","*"],C=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],U=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let k=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Tt})(),D=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Tt})(),P=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Tt})(),I=(()=>{class Tt{constructor(){this.align="start"}}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(ft,Et){2&ft&&d.ekj("mat-card-actions-align-end","end"===Et.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),Tt})(),G=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),Tt})(),at=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),Tt})(),Dt=(()=>{class Tt{constructor(ft){this._animationMode=ft}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(d.Y36(d.QbO,8))},Tt.\u0275cmp=d.Xpm({type:Tt,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(ft,Et){2&ft&&d.ekj("_mat-animation-noopable","NoopAnimations"===Et._animationMode)},exportAs:["matCard"],ngContentSelectors:T,decls:2,vars:0,template:function(ft,Et){1&ft&&(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}),Tt})(),zt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275cmp=d.Xpm({type:Tt,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:A,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(ft,Et){1&ft&&(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}),Tt})(),Vt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275cmp=d.Xpm({type:Tt,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:U,decls:4,vars:0,template:function(ft,Et){1&ft&&(d.F$t(C),d.TgZ(0,"div"),d.Hsn(1),d.qZA(),d.Hsn(2,1),d.Hsn(3,2))},encapsulation:2,changeDetection:0}),Tt})(),nt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275mod=d.oAB({type:Tt}),Tt.\u0275inj=d.cJS({imports:[p.BQ,p.BQ]}),Tt})()},56709:(ot,et,b)=>{"use strict";b.d(et,{e_:()=>zt,oG:()=>Pt,p9:()=>nt});var d=b(12687),p=b(21281),v=b(94650),T=b(24006),t=b(3238),A=b(49643);const C=["input"],U=["label"],k=function(Tt){return{enterDuration:Tt}},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(),K={provide:T.JU,useExisting:(0,v.Gpc)(()=>Pt),multi:!0};class at{}const lt=(0,t.sb)((0,t.pj)((0,t.Kr)((0,t.Id)(class{constructor(Tt){this._elementRef=Tt}}))));let bt=(()=>{class Tt extends lt{constructor(ft,Et,Bt,It,se,Jt,ve){super(Et),this._changeDetectorRef=Bt,this._ngZone=It,this._animationMode=Jt,this._options=ve,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(se)||0,this.id=this._uniqueId=`${ft}${++z}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ft){this._required=(0,p.Ig)(ft)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(ft){const Et=(0,p.Ig)(ft);Et!=this.checked&&(this._checked=Et,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ft){const Et=(0,p.Ig)(ft);Et!==this.disabled&&(this._disabled=Et,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ft){const Et=ft!=this._indeterminate;this._indeterminate=(0,p.Ig)(ft),Et&&(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(ft){this.checked=!!ft}registerOnChange(ft){this._controlValueAccessorChangeFn=ft}registerOnTouched(ft){this._onTouched=ft}setDisabledState(ft){this.disabled=ft}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(ft){let Et=this._currentCheckState,Bt=this._getAnimationTargetElement();if(Et!==ft&&Bt&&(this._currentAnimationClass&&Bt.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(Et,ft),this._currentCheckState=ft,this._currentAnimationClass.length>0)){Bt.classList.add(this._currentAnimationClass);const It=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Bt.classList.remove(It)},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 ft=this._options?.clickAction;this.disabled||"noop"===ft?!this.disabled&&"noop"===ft&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==ft&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(ft){ft.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(ft,Et){if("NoopAnimations"===this._animationMode)return"";switch(ft){case 0:if(1===Et)return this._animationClasses.uncheckedToChecked;if(3==Et)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===Et?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===Et?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===Et?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(ft){const Et=this._inputElement;Et&&(Et.nativeElement.indeterminate=ft)}}return Tt.\u0275fac=function(ft){v.$Z()},Tt.\u0275dir=v.lG2({type:Tt,viewQuery:function(ft,Et){if(1&ft&&(v.Gf(C,5),v.Gf(U,5),v.Gf(t.wG,5)),2&ft){let Bt;v.iGM(Bt=v.CRH())&&(Et._inputElement=Bt.first),v.iGM(Bt=v.CRH())&&(Et._labelElement=Bt.first),v.iGM(Bt=v.CRH())&&(Et.ripple=Bt.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]}),Tt})(),Pt=(()=>{class Tt extends bt{constructor(ft,Et,Bt,It,se,Jt,ve){super("mat-checkbox-",ft,Et,It,se,Jt,ve),this._focusMonitor=Bt,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(ft){const Et=new at;return Et.source=this,Et.checked=ft,Et}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ft=>{ft||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(ft){ft.stopPropagation(),super._handleInputClick()}focus(ft,Et){ft?this._focusMonitor.focusVia(this._inputElement,ft,Et):this._inputElement.nativeElement.focus(Et)}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(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))},Tt.\u0275cmp=v.Xpm({type:Tt,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(ft,Et){2&ft&&(v.Ikx("id",Et.id),v.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),v.ekj("mat-checkbox-indeterminate",Et.indeterminate)("mat-checkbox-checked",Et.checked)("mat-checkbox-disabled",Et.disabled)("mat-checkbox-label-before","before"==Et.labelPosition)("_mat-animation-noopable","NoopAnimations"===Et._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[v._Bn([K]),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(ft,Et){if(1&ft&&(v.F$t(),v.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),v.NdJ("change",function(It){return Et._onInteractionEvent(It)})("click",function(It){return Et._onInputClick(It)}),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 Et._onLabelTextChange()}),v.TgZ(14,"span",14),v._uU(15,"\xa0"),v.qZA(),v.Hsn(16),v.qZA()()),2&ft){const Bt=v.MAs(1),It=v.MAs(13);v.uIk("for",Et.inputId),v.xp6(2),v.ekj("mat-checkbox-inner-container-no-side-margin",!It.textContent||!It.textContent.trim()),v.xp6(1),v.Q6J("id",Et.inputId)("required",Et.required)("checked",Et.checked)("disabled",Et.disabled)("tabIndex",Et.tabIndex),v.uIk("value",Et.value)("name",Et.name)("aria-label",Et.ariaLabel||null)("aria-labelledby",Et.ariaLabelledby)("aria-checked",Et._getAriaChecked())("aria-describedby",Et.ariaDescribedby),v.xp6(2),v.Q6J("matRippleTrigger",Bt)("matRippleDisabled",Et._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",v.VKq(19,k,"NoopAnimations"===Et._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}),Tt})();const Dt={provide:T.Cf,useExisting:(0,v.Gpc)(()=>zt),multi:!0};let zt=(()=>{class Tt extends T.Zs{}return Tt.\u0275fac=function(){let At;return function(Et){return(At||(At=v.n5z(Tt)))(Et||Tt)}}(),Tt.\u0275dir=v.lG2({type:Tt,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[v._Bn([Dt]),v.qOj]}),Tt})(),Vt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275mod=v.oAB({type:Tt}),Tt.\u0275inj=v.cJS({}),Tt})(),nt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275mod=v.oAB({type:Tt}),Tt.\u0275inj=v.cJS({imports:[t.si,t.BQ,A.Q8,Vt,t.BQ,Vt]}),Tt})()},3238:(ot,et,b)=>{"use strict";b.d(et,{yN:()=>bt,mZ:()=>Pt,_A:()=>Oe,rD:()=>re,sG:()=>qe,Ad:()=>ve,K7:()=>Ln,HF:()=>oe,Y2:()=>ne,BQ:()=>Vt,X2:()=>Pe,uc:()=>ye,XK:()=>de,ey:()=>Yn,Ng:()=>fn,rN:()=>ho,nP:()=>kt,us:()=>Gt,wG:()=>ct,si:()=>it,IR:()=>ri,CB:()=>jn,jH:()=>Ye,pj:()=>Et,Kr:()=>Bt,Id:()=>ft,FD:()=>se,dB:()=>Jt,sb:()=>It,E0:()=>on});var d=b(94650),p=b(12687),v=b(40445),t=b(36895),A=b(83353),C=b(21281),U=b(56498),k=b(8929),D=b(1059),P=b(29521);function G(ze,We){if(1&ze&&d._UZ(0,"mat-pseudo-checkbox",4),2&ze){const en=d.oxw();d.Q6J("state",en.selected?"checked":"unchecked")("disabled",en.disabled)}}function K(ze,We){if(1&ze&&(d.TgZ(0,"span",5),d._uU(1),d.qZA()),2&ze){const en=d.oxw();d.xp6(1),d.hij("(",en.group.label,")")}}const at=["*"];let bt=(()=>{class ze{}return ze.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",ze.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",ze.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",ze.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",ze})(),Pt=(()=>{class ze{}return ze.COMPLEX="375ms",ze.ENTERING="225ms",ze.EXITING="195ms",ze})();const zt=new d.OlP("mat-sanity-checks",{providedIn:"root",factory:function Dt(){return!0}});let Vt=(()=>{class ze{constructor(en,le,Je){this._sanityChecks=le,this._document=Je,this._hasDoneGlobalChecks=!1,en._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(en){return!(0,A.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[en])}}return ze.\u0275fac=function(en){return new(en||ze)(d.LFG(p.qm),d.LFG(zt,8),d.LFG(t.K0))},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[v.vT,v.vT]}),ze})();function ft(ze){return class extends ze{constructor(...We){super(...We),this._disabled=!1}get disabled(){return this._disabled}set disabled(We){this._disabled=(0,C.Ig)(We)}}}function Et(ze,We){return class extends ze{constructor(...en){super(...en),this.defaultColor=We,this.color=We}get color(){return this._color}set color(en){const le=en||this.defaultColor;le!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),le&&this._elementRef.nativeElement.classList.add(`mat-${le}`),this._color=le)}}}function Bt(ze){return class extends ze{constructor(...We){super(...We),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(We){this._disableRipple=(0,C.Ig)(We)}}}function It(ze,We=0){return class extends ze{constructor(...en){super(...en),this._tabIndex=We,this.defaultTabIndex=We}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(en){this._tabIndex=null!=en?(0,C.su)(en):this.defaultTabIndex}}}function se(ze){return class extends ze{constructor(...We){super(...We),this.errorState=!1}updateErrorState(){const We=this.errorState,Lt=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Lt!==We&&(this.errorState=Lt,this.stateChanges.next())}}}function Jt(ze){return class extends ze{constructor(...We){super(...We),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new U.y(en=>{this._isInitialized?this._notifySubscriber(en):this._pendingSubscribers.push(en)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(We){We.next(),We.complete()}}}const ve=new d.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function xe(){return(0,d.f3M)(d.soG)}});class Oe{constructor(){this._localeChanges=new k.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(We){return this.isDateInstance(We)&&this.isValid(We)?We:null}deserialize(We){return null==We||this.isDateInstance(We)&&this.isValid(We)?We:this.invalid()}setLocale(We){this.locale=We,this._localeChanges.next()}compareDate(We,en){return this.getYear(We)-this.getYear(en)||this.getMonth(We)-this.getMonth(en)||this.getDate(We)-this.getDate(en)}sameDate(We,en){if(We&&en){let le=this.isValid(We),Je=this.isValid(en);return le&&Je?!this.compareDate(We,en):le==Je}return We==en}clampDate(We,en,le){return en&&this.compareDate(We,en)<0?en:le&&this.compareDate(We,le)>0?le:We}}const qe=new d.OlP("mat-date-formats"),$e=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Xt(ze,We){const en=Array(ze);for(let le=0;le{class ze extends Oe{constructor(en,le){super(),this.useUtcForDisplay=!1,super.setLocale(en)}getYear(en){return en.getFullYear()}getMonth(en){return en.getMonth()}getDate(en){return en.getDate()}getDayOfWeek(en){return en.getDay()}getMonthNames(en){const le=new Intl.DateTimeFormat(this.locale,{month:en,timeZone:"utc"});return Xt(12,Je=>this._format(le,new Date(2017,Je,1)))}getDateNames(){const en=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Xt(31,le=>this._format(en,new Date(2017,0,le+1)))}getDayOfWeekNames(en){const le=new Intl.DateTimeFormat(this.locale,{weekday:en,timeZone:"utc"});return Xt(7,Je=>this._format(le,new Date(2017,0,Je+1)))}getYearName(en){const le=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(le,en)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(en){return this.getDate(this._createDateWithOverflow(this.getYear(en),this.getMonth(en)+1,0))}clone(en){return new Date(en.getTime())}createDate(en,le,Je){let Lt=this._createDateWithOverflow(en,le,Je);return Lt.getMonth(),Lt}today(){return new Date}parse(en,le){return"number"==typeof en?new Date(en):en?new Date(Date.parse(en)):null}format(en,le){if(!this.isValid(en))throw Error("NativeDateAdapter: Cannot format invalid date.");const Je=new Intl.DateTimeFormat(this.locale,{...le,timeZone:"utc"});return this._format(Je,en)}addCalendarYears(en,le){return this.addCalendarMonths(en,12*le)}addCalendarMonths(en,le){let Je=this._createDateWithOverflow(this.getYear(en),this.getMonth(en)+le,this.getDate(en));return this.getMonth(Je)!=((this.getMonth(en)+le)%12+12)%12&&(Je=this._createDateWithOverflow(this.getYear(Je),this.getMonth(Je),0)),Je}addCalendarDays(en,le){return this._createDateWithOverflow(this.getYear(en),this.getMonth(en),this.getDate(en)+le)}toIso8601(en){return[en.getUTCFullYear(),this._2digit(en.getUTCMonth()+1),this._2digit(en.getUTCDate())].join("-")}deserialize(en){if("string"==typeof en){if(!en)return null;if($e.test(en)){let le=new Date(en);if(this.isValid(le))return le}}return super.deserialize(en)}isDateInstance(en){return en instanceof Date}isValid(en){return!isNaN(en.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(en,le,Je){const Lt=new Date;return Lt.setFullYear(en,le,Je),Lt.setHours(0,0,0,0),Lt}_2digit(en){return("00"+en).slice(-2)}_format(en,le){const Je=new Date;return Je.setUTCFullYear(le.getFullYear(),le.getMonth(),le.getDate()),Je.setUTCHours(le.getHours(),le.getMinutes(),le.getSeconds(),le.getMilliseconds()),en.format(Je)}}return ze.\u0275fac=function(en){return new(en||ze)(d.LFG(ve,8),d.LFG(A.t4))},ze.\u0275prov=d.Yz7({token:ze,factory:ze.\u0275fac}),ze})();const ae={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 Kt=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({providers:[{provide:Oe,useClass:we}]}),ze})(),de=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({providers:[{provide:qe,useValue:ae}],imports:[Kt]}),ze})(),re=(()=>{class ze{isErrorState(en,le){return!!(en&&en.invalid&&(en.touched||le&&le.submitted))}}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275prov=d.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),Pe=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275dir=d.lG2({type:ze,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),ze})();function on(ze,We,en="mat"){ze.changes.pipe((0,D.O)(ze)).subscribe(({length:le})=>{_n(We,`${en}-2-line`,!1),_n(We,`${en}-3-line`,!1),_n(We,`${en}-multi-line`,!1),2===le||3===le?_n(We,`${en}-${le}-line`,!0):le>3&&_n(We,`${en}-multi-line`,!0)})}function _n(ze,We,en){ze.nativeElement.classList.toggle(We,en)}let ye=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[Vt,Vt]}),ze})();class gn{constructor(We,en,le,Je=!1){this._renderer=We,this.element=en,this.config=le,this._animationForciblyDisabledThroughCss=Je,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ue={enterDuration:225,exitDuration:150},Mn=(0,A.i$)({passive:!0}),oi=["mousedown","touchstart"],bi=["mouseup","mouseleave","touchend","touchcancel"];class ri{constructor(We,en,le,Je){this._target=We,this._ngZone=en,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Je.isBrowser&&(this._containerElement=(0,C.fI)(le))}fadeInRipple(We,en,le={}){const Je=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Lt={...Ue,...le.animation};le.centered&&(We=Je.left+Je.width/2,en=Je.top+Je.height/2);const wt=le.radius||function Ke(ze,We,en){const le=Math.max(Math.abs(ze-en.left),Math.abs(ze-en.right)),Je=Math.max(Math.abs(We-en.top),Math.abs(We-en.bottom));return Math.sqrt(le*le+Je*Je)}(We,en,Je),Ot=We-Je.left,Te=en-Je.top,Xe=Lt.enterDuration,Fe=document.createElement("div");Fe.classList.add("mat-ripple-element"),Fe.style.left=Ot-wt+"px",Fe.style.top=Te-wt+"px",Fe.style.height=2*wt+"px",Fe.style.width=2*wt+"px",null!=le.color&&(Fe.style.backgroundColor=le.color),Fe.style.transitionDuration=`${Xe}ms`,this._containerElement.appendChild(Fe);const Tn=window.getComputedStyle(Fe),Re=Tn.transitionDuration,En="none"===Tn.transitionProperty||"0s"===Re||"0s, 0s"===Re,gi=new gn(this,Fe,le,En);Fe.style.transform="scale3d(1, 1, 1)",gi.state=0,le.persistent||(this._mostRecentTransientRipple=gi);let go=null;return!En&&(Xe||Lt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _o=()=>this._finishRippleTransition(gi),mn=()=>this._destroyRipple(gi);Fe.addEventListener("transitionend",_o),Fe.addEventListener("transitioncancel",mn),go={onTransitionEnd:_o,onTransitionCancel:mn}}),this._activeRipples.set(gi,go),(En||!Xe)&&this._finishRippleTransition(gi),gi}fadeOutRipple(We){if(2===We.state||3===We.state)return;const en=We.element,le={...Ue,...We.config.animation};en.style.transitionDuration=`${le.exitDuration}ms`,en.style.opacity="0",We.state=2,(We._animationForciblyDisabledThroughCss||!le.exitDuration)&&this._finishRippleTransition(We)}fadeOutAll(){this._getActiveRipples().forEach(We=>We.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(We=>{We.config.persistent||We.fadeOut()})}setupTriggerEvents(We){const en=(0,C.fI)(We);!en||en===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=en,this._registerEvents(oi))}handleEvent(We){"mousedown"===We.type?this._onMousedown(We):"touchstart"===We.type?this._onTouchStart(We):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(bi),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(We){0===We.state?this._startFadeOutTransition(We):2===We.state&&this._destroyRipple(We)}_startFadeOutTransition(We){const en=We===this._mostRecentTransientRipple,{persistent:le}=We.config;We.state=1,!le&&(!en||!this._isPointerDown)&&We.fadeOut()}_destroyRipple(We){const en=this._activeRipples.get(We)??null;this._activeRipples.delete(We),this._activeRipples.size||(this._containerRect=null),We===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),We.state=3,null!==en&&(We.element.removeEventListener("transitionend",en.onTransitionEnd),We.element.removeEventListener("transitioncancel",en.onTransitionCancel)),We.element.remove()}_onMousedown(We){const en=(0,p.X6)(We),le=this._lastTouchStartEvent&&Date.now(){!We.config.persistent&&(1===We.state||We.config.terminateOnPointerUp&&0===We.state)&&We.fadeOut()}))}_registerEvents(We){this._ngZone.runOutsideAngular(()=>{We.forEach(en=>{this._triggerElement.addEventListener(en,this,Mn)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(oi.forEach(We=>{this._triggerElement.removeEventListener(We,this,Mn)}),this._pointerUpEventsRegistered&&bi.forEach(We=>{this._triggerElement.removeEventListener(We,this,Mn)}))}}const ne=new d.OlP("mat-ripple-global-options");let ct=(()=>{class ze{constructor(en,le,Je,Lt,wt){this._elementRef=en,this._animationMode=wt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Lt||{},this._rippleRenderer=new ri(this,le,en,Je)}get disabled(){return this._disabled}set disabled(en){en&&this.fadeOutAllNonPersistent(),this._disabled=en,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(en){this._trigger=en,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(en,le=0,Je){return"number"==typeof en?this._rippleRenderer.fadeInRipple(en,le,{...this.rippleConfig,...Je}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...en})}}return ze.\u0275fac=function(en){return new(en||ze)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(A.t4),d.Y36(ne,8),d.Y36(d.QbO,8))},ze.\u0275dir=d.lG2({type:ze,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(en,le){2&en&&d.ekj("mat-ripple-unbounded",le.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"]}),ze})(),it=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[Vt,Vt]}),ze})(),kt=(()=>{class ze{constructor(en){this._animationMode=en,this.state="unchecked",this.disabled=!1}}return ze.\u0275fac=function(en){return new(en||ze)(d.Y36(d.QbO,8))},ze.\u0275cmp=d.Xpm({type:ze,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(en,le){2&en&&d.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===le.state)("mat-pseudo-checkbox-checked","checked"===le.state)("mat-pseudo-checkbox-disabled",le.disabled)("_mat-animation-noopable","NoopAnimations"===le._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(en,le){},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}),ze})(),Gt=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[Vt]}),ze})();const oe=new d.OlP("MAT_OPTION_PARENT_COMPONENT"),Ln=new d.OlP("MatOptgroup");let Oi=0;class ho{constructor(We,en=!1){this.source=We,this.isUserInput=en}}let fi=(()=>{class ze{constructor(en,le,Je,Lt){this._element=en,this._changeDetectorRef=le,this._parent=Je,this.group=Lt,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Oi++,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(en){this._disabled=(0,C.Ig)(en)}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(en,le){const Je=this._getHostElement();"function"==typeof Je.focus&&Je.focus(le)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(en){(en.keyCode===P.K5||en.keyCode===P.L_)&&!(0,P.Vb)(en)&&(this._selectViaInteraction(),en.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 en=this.viewValue;en!==this._mostRecentViewValue&&(this._mostRecentViewValue=en,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(en=!1){this.onSelectionChange.emit(new ho(this,en))}}return ze.\u0275fac=function(en){d.$Z()},ze.\u0275dir=d.lG2({type:ze,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),ze})(),Yn=(()=>{class ze extends fi{constructor(en,le,Je,Lt){super(en,le,Je,Lt)}}return ze.\u0275fac=function(en){return new(en||ze)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(oe,8),d.Y36(Ln,8))},ze.\u0275cmp=d.Xpm({type:ze,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(en,le){1&en&&d.NdJ("click",function(){return le._selectViaInteraction()})("keydown",function(Lt){return le._handleKeydown(Lt)}),2&en&&(d.Ikx("id",le.id),d.uIk("tabindex",le._getTabIndex())("aria-selected",le._getAriaSelected())("aria-disabled",le.disabled.toString()),d.ekj("mat-selected",le.selected)("mat-option-multiple",le.multiple)("mat-active",le.active)("mat-option-disabled",le.disabled))},exportAs:["matOption"],features:[d.qOj],ngContentSelectors:at,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(en,le){1&en&&(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,K,2,1,"span",2),d._UZ(4,"div",3)),2&en&&(d.Q6J("ngIf",le.multiple),d.xp6(3),d.Q6J("ngIf",le.group&&le.group._inert),d.xp6(1),d.Q6J("matRippleTrigger",le._getHostElement())("matRippleDisabled",le.disabled||le.disableRipple))},dependencies:[ct,t.O5,kt],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}),ze})();function jn(ze,We,en){if(en.length){let le=We.toArray(),Je=en.toArray(),Lt=0;for(let wt=0;wten+le?Math.max(0,ze-le+We):en}let fn=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[it,t.ez,Vt,Gt]}),ze})()},99602:(ot,et,b)=>{"use strict";b.d(et,{C0:()=>Mn,E2:()=>en,FA:()=>He,Lv:()=>wt,Mq:()=>Fe,S8:()=>Pe,Uu:()=>Je,hl:()=>go,nW:()=>mn});var d=b(12687),p=b(98184),v=b(84080),T=b(36895),t=b(94650),A=b(4859),C=b(67376),U=b(3238),k=b(8929),D=b(42654),P=b(36787),I=b(21086),z=b(29521),G=b(40445),K=b(72986),at=b(1059),lt=b(92198),bt=b(21281),Pt=b(83353),Dt=b(37340),zt=b(24006),Vt=b(59549),nt=b(284);const Tt=["mat-calendar-body",""];function At(ke,dn){if(1&ke&&(t.TgZ(0,"tr",2)(1,"td",3),t._uU(2),t.qZA()()),2&ke){const tt=t.oxw();t.xp6(1),t.Udp("padding-top",tt._cellPadding)("padding-bottom",tt._cellPadding),t.uIk("colspan",tt.numCols),t.xp6(1),t.hij(" ",tt.label," ")}}function ft(ke,dn){if(1&ke&&(t.TgZ(0,"td",3),t._uU(1),t.qZA()),2&ke){const tt=t.oxw(2);t.Udp("padding-top",tt._cellPadding)("padding-bottom",tt._cellPadding),t.uIk("colspan",tt._firstRowOffset),t.xp6(1),t.hij(" ",tt._firstRowOffset>=tt.labelMinRequiredCells?tt.label:""," ")}}function Et(ke,dn){if(1&ke){const tt=t.EpF();t.TgZ(0,"td",7)(1,"button",8),t.NdJ("click",function(Q){const Be=t.CHM(tt).$implicit,Rn=t.oxw(2);return t.KtG(Rn._cellClicked(Be,Q))})("focus",function(Q){const Be=t.CHM(tt).$implicit,Rn=t.oxw(2);return t.KtG(Rn._emitActiveDateChange(Be,Q))}),t.TgZ(2,"div",9),t._uU(3),t.qZA(),t._UZ(4,"div",10),t.qZA()()}if(2&ke){const tt=dn.$implicit,Rt=dn.index,Q=t.oxw().index,Ft=t.oxw();t.Udp("width",Ft._cellWidth)("padding-top",Ft._cellPadding)("padding-bottom",Ft._cellPadding),t.uIk("data-mat-row",Q)("data-mat-col",Rt),t.xp6(1),t.ekj("mat-calendar-body-disabled",!tt.enabled)("mat-calendar-body-active",Ft._isActiveCell(Q,Rt))("mat-calendar-body-range-start",Ft._isRangeStart(tt.compareValue))("mat-calendar-body-range-end",Ft._isRangeEnd(tt.compareValue))("mat-calendar-body-in-range",Ft._isInRange(tt.compareValue))("mat-calendar-body-comparison-bridge-start",Ft._isComparisonBridgeStart(tt.compareValue,Q,Rt))("mat-calendar-body-comparison-bridge-end",Ft._isComparisonBridgeEnd(tt.compareValue,Q,Rt))("mat-calendar-body-comparison-start",Ft._isComparisonStart(tt.compareValue))("mat-calendar-body-comparison-end",Ft._isComparisonEnd(tt.compareValue))("mat-calendar-body-in-comparison-range",Ft._isInComparisonRange(tt.compareValue))("mat-calendar-body-preview-start",Ft._isPreviewStart(tt.compareValue))("mat-calendar-body-preview-end",Ft._isPreviewEnd(tt.compareValue))("mat-calendar-body-in-preview",Ft._isInPreview(tt.compareValue)),t.Q6J("ngClass",tt.cssClasses)("tabindex",Ft._isActiveCell(Q,Rt)?0:-1),t.uIk("aria-label",tt.ariaLabel)("aria-disabled",!tt.enabled||null)("aria-pressed",Ft._isSelected(tt.compareValue))("aria-current",Ft.todayValue===tt.compareValue?"date":null),t.xp6(1),t.ekj("mat-calendar-body-selected",Ft._isSelected(tt.compareValue))("mat-calendar-body-comparison-identical",Ft._isComparisonIdentical(tt.compareValue))("mat-calendar-body-today",Ft.todayValue===tt.compareValue),t.xp6(1),t.hij(" ",tt.displayValue," ")}}function Bt(ke,dn){if(1&ke&&(t.TgZ(0,"tr",4),t.YNc(1,ft,2,6,"td",5),t.YNc(2,Et,5,47,"td",6),t.qZA()),2&ke){const tt=dn.$implicit,Rt=dn.index,Q=t.oxw();t.xp6(1),t.Q6J("ngIf",0===Rt&&Q._firstRowOffset),t.xp6(1),t.Q6J("ngForOf",tt)}}function It(ke,dn){if(1&ke&&(t.TgZ(0,"th",5)(1,"span",6),t._uU(2),t.qZA(),t.TgZ(3,"span",7),t._uU(4),t.qZA()()),2&ke){const tt=dn.$implicit;t.xp6(2),t.Oqu(tt.long),t.xp6(2),t.Oqu(tt.narrow)}}const se=["*"];function Jt(ke,dn){}function ve(ke,dn){if(1&ke){const tt=t.EpF();t.TgZ(0,"mat-month-view",5),t.NdJ("activeDateChange",function(Q){t.CHM(tt);const Ft=t.oxw();return t.KtG(Ft.activeDate=Q)})("_userSelection",function(Q){t.CHM(tt);const Ft=t.oxw();return t.KtG(Ft._dateSelected(Q))}),t.qZA()}if(2&ke){const tt=t.oxw();t.Q6J("activeDate",tt.activeDate)("selected",tt.selected)("dateFilter",tt.dateFilter)("maxDate",tt.maxDate)("minDate",tt.minDate)("dateClass",tt.dateClass)("comparisonStart",tt.comparisonStart)("comparisonEnd",tt.comparisonEnd)}}function xe(ke,dn){if(1&ke){const tt=t.EpF();t.TgZ(0,"mat-year-view",6),t.NdJ("activeDateChange",function(Q){t.CHM(tt);const Ft=t.oxw();return t.KtG(Ft.activeDate=Q)})("monthSelected",function(Q){t.CHM(tt);const Ft=t.oxw();return t.KtG(Ft._monthSelectedInYearView(Q))})("selectedChange",function(Q){t.CHM(tt);const Ft=t.oxw();return t.KtG(Ft._goToDateInView(Q,"month"))}),t.qZA()}if(2&ke){const tt=t.oxw();t.Q6J("activeDate",tt.activeDate)("selected",tt.selected)("dateFilter",tt.dateFilter)("maxDate",tt.maxDate)("minDate",tt.minDate)("dateClass",tt.dateClass)}}function Oe(ke,dn){if(1&ke){const tt=t.EpF();t.TgZ(0,"mat-multi-year-view",7),t.NdJ("activeDateChange",function(Q){t.CHM(tt);const Ft=t.oxw();return t.KtG(Ft.activeDate=Q)})("yearSelected",function(Q){t.CHM(tt);const Ft=t.oxw();return t.KtG(Ft._yearSelectedInMultiYearView(Q))})("selectedChange",function(Q){t.CHM(tt);const Ft=t.oxw();return t.KtG(Ft._goToDateInView(Q,"year"))}),t.qZA()}if(2&ke){const tt=t.oxw();t.Q6J("activeDate",tt.activeDate)("selected",tt.selected)("dateFilter",tt.dateFilter)("maxDate",tt.maxDate)("minDate",tt.minDate)("dateClass",tt.dateClass)}}function qe(ke,dn){}const $e=["button"];function Xt(ke,dn){1&ke&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"path",4),t.qZA())}const we=[[["","matDatepickerToggleIcon",""]]],ae=["[matDatepickerToggleIcon]"];let Pe=(()=>{class ke{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(tt,Rt){return`${tt} \u2013 ${Rt}`}formatYearRangeLabel(tt,Rt){return`${tt} to ${Rt}`}}return ke.\u0275fac=function(tt){return new(tt||ke)},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();class on{constructor(dn,tt,Rt,Q,Ft={},Be=dn,Rn){this.value=dn,this.displayValue=tt,this.ariaLabel=Rt,this.enabled=Q,this.cssClasses=Ft,this.compareValue=Be,this.rawValue=Rn}}let _n=(()=>{class ke{constructor(tt,Rt){this._elementRef=tt,this._ngZone=Rt,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 Ft=this._getCellFromElement(Q.target);Ft&&this._ngZone.run(()=>this.previewChange.emit({value:Ft.enabled?Ft: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}))},Rt.runOutsideAngular(()=>{const Q=tt.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(tt,Rt){tt.enabled&&this.selectedValueChange.emit({value:tt.value,event:Rt})}_emitActiveDateChange(tt,Rt){tt.enabled&&this.activeDateChange.emit({value:tt.value,event:Rt})}_isSelected(tt){return this.startValue===tt||this.endValue===tt}ngOnChanges(tt){const Rt=tt.numCols,{rows:Q,numCols:Ft}=this;(tt.rows||Rt)&&(this._firstRowOffset=Q&&Q.length&&Q[0].length?Ft-Q[0].length:0),(tt.cellAspectRatio||Rt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Ft+"%"),(Rt||!this._cellWidth)&&(this._cellWidth=100/Ft+"%")}ngOnDestroy(){const tt=this._elementRef.nativeElement;tt.removeEventListener("mouseenter",this._enterHandler,!0),tt.removeEventListener("focus",this._enterHandler,!0),tt.removeEventListener("mouseleave",this._leaveHandler,!0),tt.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(tt,Rt){let Q=tt*this.numCols+Rt;return tt&&(Q-=this._firstRowOffset),Q==this.activeCell}_focusActiveCell(tt=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,K.q)(1)).subscribe(()=>{setTimeout(()=>{const Rt=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Rt&&(tt||(this._skipNextFocus=!0),Rt.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(tt){return gn(tt,this.startValue,this.endValue)}_isRangeEnd(tt){return Ue(tt,this.startValue,this.endValue)}_isInRange(tt){return un(tt,this.startValue,this.endValue,this.isRange)}_isComparisonStart(tt){return gn(tt,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(tt,Rt,Q){if(!this._isComparisonStart(tt)||this._isRangeStart(tt)||!this._isInRange(tt))return!1;let Ft=this.rows[Rt][Q-1];if(!Ft){const Be=this.rows[Rt-1];Ft=Be&&Be[Be.length-1]}return Ft&&!this._isRangeEnd(Ft.compareValue)}_isComparisonBridgeEnd(tt,Rt,Q){if(!this._isComparisonEnd(tt)||this._isRangeEnd(tt)||!this._isInRange(tt))return!1;let Ft=this.rows[Rt][Q+1];if(!Ft){const Be=this.rows[Rt+1];Ft=Be&&Be[0]}return Ft&&!this._isRangeStart(Ft.compareValue)}_isComparisonEnd(tt){return Ue(tt,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(tt){return un(tt,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(tt){return this.comparisonStart===this.comparisonEnd&&tt===this.comparisonStart}_isPreviewStart(tt){return gn(tt,this.previewStart,this.previewEnd)}_isPreviewEnd(tt){return Ue(tt,this.previewStart,this.previewEnd)}_isInPreview(tt){return un(tt,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(tt){let Rt;if(ye(tt)?Rt=tt:ye(tt.parentNode)&&(Rt=tt.parentNode),Rt){const Q=Rt.getAttribute("data-mat-row"),Ft=Rt.getAttribute("data-mat-col");if(Q&&Ft)return this.rows[parseInt(Q)][parseInt(Ft)]}return null}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(t.SBq),t.Y36(t.R0b))},ke.\u0275cmp=t.Xpm({type:ke,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:Tt,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(tt,Rt){1&tt&&(t.YNc(0,At,3,6,"tr",0),t.YNc(1,Bt,3,2,"tr",1)),2&tt&&(t.Q6J("ngIf",Rt._firstRowOffset=dn&&ke===tt}function un(ke,dn,tt,Rt){return Rt&&null!==dn&&null!==tt&&dn!==tt&&ke>=dn&&ke<=tt}class Mn{constructor(dn,tt){this.start=dn,this.end=tt}}let oi=(()=>{class ke{constructor(tt,Rt){this.selection=tt,this._adapter=Rt,this._selectionChanged=new k.xQ,this.selectionChanged=this._selectionChanged,this.selection=tt}updateSelection(tt,Rt){const Q=this.selection;this.selection=tt,this._selectionChanged.next({selection:tt,source:Rt,oldValue:Q})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(tt){return this._adapter.isDateInstance(tt)&&this._adapter.isValid(tt)}}return ke.\u0275fac=function(tt){t.$Z()},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),bi=(()=>{class ke extends oi{constructor(tt){super(null,tt)}add(tt){super.updateSelection(tt,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const tt=new ke(this._adapter);return tt.updateSelection(this.selection,this),tt}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.LFG(U._A))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const ne={provide:oi,deps:[[new t.FiY,new t.tp0,oi],U._A],useFactory:function Ke(ke,dn){return ke||new bi(dn)}},kt=new t.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let Pn=(()=>{class ke{constructor(tt,Rt,Q,Ft,Be){this._changeDetectorRef=tt,this._dateFormats=Rt,this._dateAdapter=Q,this._dir=Ft,this._rangeStrategy=Be,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(tt){const Rt=this._activeDate,Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this._hasSameMonthAndYear(Rt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(tt){this._selected=tt instanceof Mn?tt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(tt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get maxDate(){return this._maxDate}set maxDate(tt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,at.O)(null)).subscribe(()=>this._init())}ngOnChanges(tt){const Rt=tt.comparisonStart||tt.comparisonEnd;Rt&&!Rt.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(tt){const Rt=tt.value,Q=this._getDateFromDayOfMonth(Rt);let Ft,Be;this._selected instanceof Mn?(Ft=this._getDateInCurrentMonth(this._selected.start),Be=this._getDateInCurrentMonth(this._selected.end)):Ft=Be=this._getDateInCurrentMonth(this._selected),(Ft!==Rt||Be!==Rt)&&this.selectedChange.emit(Q),this._userSelection.emit({value:Q,event:tt.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(tt){const Q=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(tt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(tt){const Rt=this._activeDate,Q=this._isRtl();switch(tt.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=tt.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case z.VM:this.activeDate=tt.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)&&tt.preventDefault());case z.hY:return void(null!=this._previewEnd&&!(0,z.Vb)(tt)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:tt}),tt.preventDefault(),tt.stopPropagation()));default:return}this._dateAdapter.compareDate(Rt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),tt.preventDefault()}_handleCalendarBodyKeyup(tt){(tt.keyCode===z.L_||tt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:tt}),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 tt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(tt)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(tt){this._matCalendarBody._focusActiveCell(tt)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:tt,value:Rt}){if(this._rangeStrategy){const Ft=this._rangeStrategy.createPreview(Rt?Rt.rawValue:null,this.selected,tt);this._previewStart=this._getCellCompareValue(Ft.start),this._previewEnd=this._getCellCompareValue(Ft.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(tt){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),tt)}_initWeekdays(){const tt=this._dateAdapter.getFirstDayOfWeek(),Rt=this._dateAdapter.getDayOfWeekNames("narrow");let Ft=this._dateAdapter.getDayOfWeekNames("long").map((Be,Rn)=>({long:Be,narrow:Rt[Rn]}));this._weekdays=Ft.slice(tt).concat(Ft.slice(0,tt))}_createWeekCells(){const tt=this._dateAdapter.getNumDaysInMonth(this.activeDate),Rt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Q=0,Ft=this._firstWeekOffset;Q=0)&&(!this.maxDate||this._dateAdapter.compareDate(tt,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(tt))}_getDateInCurrentMonth(tt){return tt&&this._hasSameMonthAndYear(tt,this.activeDate)?this._dateAdapter.getDate(tt):null}_hasSameMonthAndYear(tt,Rt){return!(!tt||!Rt||this._dateAdapter.getMonth(tt)!=this._dateAdapter.getMonth(Rt)||this._dateAdapter.getYear(tt)!=this._dateAdapter.getYear(Rt))}_getCellCompareValue(tt){if(tt){const Rt=this._dateAdapter.getYear(tt),Q=this._dateAdapter.getMonth(tt),Ft=this._dateAdapter.getDate(tt);return new Date(Rt,Q,Ft).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(tt){tt instanceof Mn?(this._rangeStart=this._getCellCompareValue(tt.start),this._rangeEnd=this._getCellCompareValue(tt.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(tt),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(tt){return!this.dateFilter||this.dateFilter(tt)}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(t.sBO),t.Y36(U.sG,8),t.Y36(U._A,8),t.Y36(G.Is,8),t.Y36(kt,8))},ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-month-view"]],viewQuery:function(tt,Rt){if(1&tt&&t.Gf(_n,5),2&tt){let Q;t.iGM(Q=t.CRH())&&(Rt._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(tt,Rt){1&tt&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t.YNc(3,It,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(Ft){return Rt._dateSelected(Ft)})("activeDateChange",function(Ft){return Rt._updateActiveDate(Ft)})("previewChange",function(Ft){return Rt._previewChanged(Ft)})("keyup",function(Ft){return Rt._handleCalendarBodyKeyup(Ft)})("keydown",function(Ft){return Rt._handleCalendarBodyKeydown(Ft)}),t.qZA()()),2&tt&&(t.xp6(3),t.Q6J("ngForOf",Rt._weekdays),t.xp6(3),t.Q6J("label",Rt._monthLabel)("rows",Rt._weeks)("todayValue",Rt._todayDate)("startValue",Rt._rangeStart)("endValue",Rt._rangeEnd)("comparisonStart",Rt._comparisonRangeStart)("comparisonEnd",Rt._comparisonRangeEnd)("previewStart",Rt._previewStart)("previewEnd",Rt._previewEnd)("isRange",Rt._isRange)("labelMinRequiredCells",3)("activeCell",Rt._dateAdapter.getDate(Rt.activeDate)-1))},dependencies:[T.sg,_n],encapsulation:2,changeDetection:0}),ke})(),Oi=(()=>{class ke{constructor(tt,Rt,Q){this._changeDetectorRef=tt,this._dateAdapter=Rt,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(tt){let Rt=this._activeDate;const Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),ho(this._dateAdapter,Rt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(tt){this._selected=tt instanceof Mn?tt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt)),this._setSelectedYear(tt)}get minDate(){return this._minDate}set minDate(tt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get maxDate(){return this._maxDate}set maxDate(tt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,at.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Rt=this._dateAdapter.getYear(this._activeDate)-fi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Q=0,Ft=[];Q<24;Q++)Ft.push(Rt+Q),4==Ft.length&&(this._years.push(Ft.map(Be=>this._createCellForYear(Be))),Ft=[]);this._changeDetectorRef.markForCheck()}_yearSelected(tt){const Rt=tt.value,Q=this._dateAdapter.createDate(Rt,0,1),Ft=this._getDateFromYear(Rt);this.yearSelected.emit(Q),this.selectedChange.emit(Ft)}_updateActiveDate(tt){const Q=this._activeDate;this.activeDate=this._getDateFromYear(tt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(tt){const Rt=this._activeDate,Q=this._isRtl();switch(tt.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,-fi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-fi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt.altKey?-240:-24);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt.altKey?240:24);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Rt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),tt.preventDefault()}_handleCalendarBodyKeyup(tt){(tt.keyCode===z.L_||tt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:tt}),this._selectionKeyPressed=!1)}_getActiveCell(){return fi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(tt){const Rt=this._dateAdapter.getMonth(this.activeDate),Q=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(tt,Rt,1));return this._dateAdapter.createDate(tt,Rt,Math.min(this._dateAdapter.getDate(this.activeDate),Q))}_createCellForYear(tt){const Rt=this._dateAdapter.createDate(tt,0,1),Q=this._dateAdapter.getYearName(Rt),Ft=this.dateClass?this.dateClass(Rt,"multi-year"):void 0;return new on(tt,Q,Q,this._shouldEnableYear(tt),Ft)}_shouldEnableYear(tt){if(null==tt||this.maxDate&&tt>this._dateAdapter.getYear(this.maxDate)||this.minDate&&tt{class ke{constructor(tt,Rt,Q,Ft){this._changeDetectorRef=tt,this._dateFormats=Rt,this._dateAdapter=Q,this._dir=Ft,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(tt){let Rt=this._activeDate;const Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this._dateAdapter.getYear(Rt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(tt){this._selected=tt instanceof Mn?tt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt)),this._setSelectedMonth(tt)}get minDate(){return this._minDate}set minDate(tt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get maxDate(){return this._maxDate}set maxDate(tt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,at.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(tt){const Rt=tt.value,Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Rt,1);this.monthSelected.emit(Q);const Ft=this._getDateFromMonth(Rt);this.selectedChange.emit(Ft)}_updateActiveDate(tt){const Q=this._activeDate;this.activeDate=this._getDateFromMonth(tt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(tt){const Rt=this._activeDate,Q=this._isRtl();switch(tt.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,tt.altKey?-10:-1);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt.altKey?10:1);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Rt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),tt.preventDefault()}_handleCalendarBodyKeyup(tt){(tt.keyCode===z.L_||tt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:tt}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let tt=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Rt=>Rt.map(Q=>this._createCellForMonth(Q,tt[Q]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(tt){return tt&&this._dateAdapter.getYear(tt)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(tt):null}_getDateFromMonth(tt){const Rt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),tt,1),Q=this._dateAdapter.getNumDaysInMonth(Rt);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),tt,Math.min(this._dateAdapter.getDate(this.activeDate),Q))}_createCellForMonth(tt,Rt){const Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),tt,1),Ft=this._dateAdapter.format(Q,this._dateFormats.display.monthYearA11yLabel),Be=this.dateClass?this.dateClass(Q,"year"):void 0;return new on(tt,Rt.toLocaleUpperCase(),Ft,this._shouldEnableMonth(tt),Be)}_shouldEnableMonth(tt){const Rt=this._dateAdapter.getYear(this.activeDate);if(null==tt||this._isYearAndMonthAfterMaxDate(Rt,tt)||this._isYearAndMonthBeforeMinDate(Rt,tt))return!1;if(!this.dateFilter)return!0;for(let Ft=this._dateAdapter.createDate(Rt,tt,1);this._dateAdapter.getMonth(Ft)==tt;Ft=this._dateAdapter.addCalendarDays(Ft,1))if(this.dateFilter(Ft))return!0;return!1}_isYearAndMonthAfterMaxDate(tt,Rt){if(this.maxDate){const Q=this._dateAdapter.getYear(this.maxDate),Ft=this._dateAdapter.getMonth(this.maxDate);return tt>Q||tt===Q&&Rt>Ft}return!1}_isYearAndMonthBeforeMinDate(tt,Rt){if(this.minDate){const Q=this._dateAdapter.getYear(this.minDate),Ft=this._dateAdapter.getMonth(this.minDate);return tt{class ke{constructor(tt,Rt,Q,Ft,Be){this._intl=tt,this.calendar=Rt,this._dateAdapter=Q,this._dateFormats=Ft,this._buttonDescriptionId="mat-calendar-button-"+fn++,this.calendar.stateChanges.subscribe(()=>Be.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 Rt=this._dateAdapter.getYear(this.calendar.activeDate)-fi(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Q=Rt+24-1,Ft=this._dateAdapter.getYearName(this._dateAdapter.createDate(Rt,0,1)),Be=this._dateAdapter.getYearName(this._dateAdapter.createDate(Q,0,1));return this._intl.formatYearRange(Ft,Be)}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(tt,Rt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(tt)==this._dateAdapter.getYear(Rt)&&this._dateAdapter.getMonth(tt)==this._dateAdapter.getMonth(Rt):"year"==this.calendar.currentView?this._dateAdapter.getYear(tt)==this._dateAdapter.getYear(Rt):ho(this._dateAdapter,tt,Rt,this.calendar.minDate,this.calendar.maxDate)}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(Pe),t.Y36((0,t.Gpc)(()=>We)),t.Y36(U._A,8),t.Y36(U.sG,8),t.Y36(t.sBO))},ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:se,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(tt,Rt){1&tt&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return Rt.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 Rt.previousClicked()}),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return Rt.nextClicked()}),t.qZA()()()),2&tt&&(t.xp6(2),t.uIk("aria-label",Rt.periodButtonLabel)("aria-describedby",Rt._buttonDescriptionId),t.xp6(1),t.uIk("id",Rt._buttonDescriptionId),t.xp6(1),t.Oqu(Rt.periodButtonText),t.xp6(1),t.ekj("mat-calendar-invert","month"!==Rt.calendar.currentView),t.xp6(4),t.Q6J("disabled",!Rt.previousEnabled()),t.uIk("aria-label",Rt.prevButtonLabel),t.xp6(1),t.Q6J("disabled",!Rt.nextEnabled()),t.uIk("aria-label",Rt.nextButtonLabel))},dependencies:[A.lW],encapsulation:2,changeDetection:0}),ke})(),We=(()=>{class ke{constructor(tt,Rt,Q,Ft){this._dateAdapter=Rt,this._dateFormats=Q,this._changeDetectorRef=Ft,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=tt.changes.subscribe(()=>{Ft.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(tt){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get selected(){return this._selected}set selected(tt){this._selected=tt instanceof Mn?tt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get minDate(){return this._minDate}set minDate(tt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get maxDate(){return this._maxDate}set maxDate(tt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get activeDate(){return this._clampedActiveDate}set activeDate(tt){this._clampedActiveDate=this._dateAdapter.clampDate(tt,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(tt){const Rt=this._currentView!==tt?tt:null;this._currentView=tt,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Rt&&this.viewChanged.emit(Rt)}ngAfterContentInit(){this._calendarHeaderPortal=new v.C5(this.headerComponent||ze),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(tt){const Rt=tt.minDate&&!this._dateAdapter.sameDate(tt.minDate.previousValue,tt.minDate.currentValue)?tt.minDate:void 0,Q=tt.maxDate&&!this._dateAdapter.sameDate(tt.maxDate.previousValue,tt.maxDate.currentValue)?tt.maxDate:void 0,Ft=Rt||Q||tt.dateFilter;if(Ft&&!Ft.firstChange){const Be=this._getCurrentViewComponent();Be&&(this._changeDetectorRef.detectChanges(),Be._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(tt){const Rt=tt.value;(this.selected instanceof Mn||Rt&&!this._dateAdapter.sameDate(Rt,this.selected))&&this.selectedChange.emit(Rt),this._userSelection.emit(tt)}_yearSelectedInMultiYearView(tt){this.yearSelected.emit(tt)}_monthSelectedInYearView(tt){this.monthSelected.emit(tt)}_goToDateInView(tt,Rt){this.activeDate=tt,this.currentView=Rt}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(Pe),t.Y36(U._A,8),t.Y36(U.sG,8),t.Y36(t.sBO))},ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-calendar"]],viewQuery:function(tt,Rt){if(1&tt&&(t.Gf(Pn,5),t.Gf(Ye,5),t.Gf(Oi,5)),2&tt){let Q;t.iGM(Q=t.CRH())&&(Rt.monthView=Q.first),t.iGM(Q=t.CRH())&&(Rt.yearView=Q.first),t.iGM(Q=t.CRH())&&(Rt.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([ne]),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(tt,Rt){1&tt&&(t.YNc(0,Jt,0,0,"ng-template",0),t.TgZ(1,"div",1),t.YNc(2,ve,1,8,"mat-month-view",2),t.YNc(3,xe,1,6,"mat-year-view",3),t.YNc(4,Oe,1,6,"mat-multi-year-view",4),t.qZA()),2&tt&&(t.Q6J("cdkPortalOutlet",Rt._calendarHeaderPortal),t.xp6(1),t.Q6J("ngSwitch",Rt.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,Pn,Ye,Oi],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}),ke})();const en={transformPanel:(0,Dt.X$)("transformPanel",[(0,Dt.eR)("void => enter-dropdown",(0,Dt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Dt.F4)([(0,Dt.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Dt.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Dt.eR)("void => enter-dialog",(0,Dt.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Dt.F4)([(0,Dt.oB)({opacity:0,transform:"scale(0.7)"}),(0,Dt.oB)({transform:"none",opacity:1})]))),(0,Dt.eR)("* => void",(0,Dt.jt)("100ms linear",(0,Dt.oB)({opacity:0})))]),fadeInCalendar:(0,Dt.X$)("fadeInCalendar",[(0,Dt.SB)("void",(0,Dt.oB)({opacity:0})),(0,Dt.SB)("enter",(0,Dt.oB)({opacity:1})),(0,Dt.eR)("void => *",(0,Dt.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let le=0;const Je=new t.OlP("mat-datepicker-scroll-strategy"),wt={provide:Je,deps:[p.aV],useFactory:function Lt(ke){return()=>ke.scrollStrategies.reposition()}},Ot=(0,U.pj)(class{constructor(ke){this._elementRef=ke}});let Te=(()=>{class ke extends Ot{constructor(tt,Rt,Q,Ft,Be,Rn){super(tt),this._changeDetectorRef=Rt,this._globalModel=Q,this._dateAdapter=Ft,this._rangeSelectionStrategy=Be,this._subscriptions=new D.w,this._animationDone=new k.xQ,this._actionsPortal=null,this._closeButtonText=Rn.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(tt){const Rt=this._model.selection,Q=tt.value,Ft=Rt instanceof Mn;if(Ft&&this._rangeSelectionStrategy){const Be=this._rangeSelectionStrategy.selectionFinished(Q,Rt,tt.event);this._model.updateSelection(Be,this)}else Q&&(Ft||!this._dateAdapter.sameDate(Q,Rt))&&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(tt,Rt){this._model=tt?this._globalModel.clone():this._globalModel,this._actionsPortal=tt,Rt&&this._changeDetectorRef.detectChanges()}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(oi),t.Y36(U._A),t.Y36(kt,8),t.Y36(Pe))},ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-datepicker-content"]],viewQuery:function(tt,Rt){if(1&tt&&t.Gf(We,5),2&tt){let Q;t.iGM(Q=t.CRH())&&(Rt._calendar=Q.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(tt,Rt){1&tt&&t.WFA("@transformPanel.done",function(){return Rt._animationDone.next()}),2&tt&&(t.d8E("@transformPanel",Rt._animationState),t.ekj("mat-datepicker-content-touch",Rt.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(tt,Rt){if(1&tt&&(t.TgZ(0,"div",0)(1,"mat-calendar",1),t.NdJ("yearSelected",function(Ft){return Rt.datepicker._selectYear(Ft)})("monthSelected",function(Ft){return Rt.datepicker._selectMonth(Ft)})("viewChanged",function(Ft){return Rt.datepicker._viewChanged(Ft)})("_userSelection",function(Ft){return Rt._handleUserSelection(Ft)}),t.qZA(),t.YNc(2,qe,0,0,"ng-template",2),t.TgZ(3,"button",3),t.NdJ("focus",function(){return Rt._closeButtonFocused=!0})("blur",function(){return Rt._closeButtonFocused=!1})("click",function(){return Rt.datepicker.close()}),t._uU(4),t.qZA()()),2&tt){let Q;t.ekj("mat-datepicker-content-container-with-custom-header",Rt.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Rt._actionsPortal),t.uIk("aria-modal",!0)("aria-labelledby",null!==(Q=Rt._dialogLabelId)&&void 0!==Q?Q:void 0),t.xp6(1),t.Q6J("id",Rt.datepicker.id)("ngClass",Rt.datepicker.panelClass)("startAt",Rt.datepicker.startAt)("startView",Rt.datepicker.startView)("minDate",Rt.datepicker._getMinDate())("maxDate",Rt.datepicker._getMaxDate())("dateFilter",Rt.datepicker._getDateFilter())("headerComponent",Rt.datepicker.calendarHeaderComponent)("selected",Rt._getSelected())("dateClass",Rt.datepicker.dateClass)("comparisonStart",Rt.comparisonStart)("comparisonEnd",Rt.comparisonEnd)("@fadeInCalendar","enter"),t.xp6(1),t.Q6J("cdkPortalOutlet",Rt._actionsPortal),t.xp6(1),t.ekj("cdk-visually-hidden",!Rt._closeButtonFocused),t.Q6J("color",Rt.color||"primary"),t.xp6(1),t.Oqu(Rt._closeButtonText)}},dependencies:[T.mk,A.lW,d.mK,v.Pl,We],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:[en.transformPanel,en.fadeInCalendar]},changeDetection:0}),ke})(),Xe=(()=>{class ke{constructor(tt,Rt,Q,Ft,Be,Rn,Gi){this._overlay=tt,this._ngZone=Rt,this._viewContainerRef=Q,this._dateAdapter=Be,this._dir=Rn,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-"+le++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new k.xQ,this._scrollStrategy=Ft}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(tt){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(tt){this._color=tt}get touchUi(){return this._touchUi}set touchUi(tt){this._touchUi=(0,bt.Ig)(tt)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(tt){const Rt=(0,bt.Ig)(tt);Rt!==this._disabled&&(this._disabled=Rt,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(tt){this._restoreFocus=(0,bt.Ig)(tt)}get panelClass(){return this._panelClass}set panelClass(tt){this._panelClass=(0,bt.du)(tt)}get opened(){return this._opened}set opened(tt){(0,bt.Ig)(tt)?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(tt){const Rt=tt.xPosition||tt.yPosition;if(Rt&&!Rt.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(tt){this._model.add(tt)}_selectYear(tt){this.yearSelected.emit(tt)}_selectMonth(tt){this.monthSelected.emit(tt)}_viewChanged(tt){this.viewChanged.emit(tt)}registerInput(tt){return this._inputStateChanges.unsubscribe(),this.datepickerInput=tt,this._inputStateChanges=tt.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(tt){this._actionsPortal=tt,this._componentRef?.instance._assignActions(tt,!0)}removeActions(tt){tt===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 tt=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Rt=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:Q,location:Ft}=this._componentRef;Q._startExitAnimation(),Q._animationDone.pipe((0,K.q)(1)).subscribe(()=>{const Be=this._document.activeElement;tt&&(!Be||Be===this._document.activeElement||Ft.nativeElement.contains(Be))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}tt?setTimeout(Rt):Rt()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(tt){tt.datepicker=this,tt.color=this.color,tt._dialogLabelId=this.datepickerInput.getOverlayLabelId(),tt._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const tt=this.touchUi,Rt=new v.C5(Te,this._viewContainerRef),Q=this._overlayRef=this._overlay.create(new p.X_({positionStrategy:tt?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[tt?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:tt?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(tt?"dialog":"popup")}));this._getCloseStream(Q).subscribe(Ft=>{Ft&&Ft.preventDefault(),this.close()}),Q.keydownEvents().subscribe(Ft=>{const Be=Ft.keyCode;(Be===z.LH||Be===z.JH||Be===z.oh||Be===z.SV||Be===z.Ku||Be===z.VM)&&Ft.preventDefault()}),this._componentRef=Q.attach(Rt),this._forwardContentValues(this._componentRef.instance),tt||this._ngZone.onStable.pipe((0,K.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 tt=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(tt)}_setConnectedPositions(tt){const Rt="end"===this.xPosition?"end":"start",Q="start"===Rt?"end":"start",Ft="above"===this.yPosition?"bottom":"top",Be="top"===Ft?"bottom":"top";return tt.withPositions([{originX:Rt,originY:Be,overlayX:Rt,overlayY:Ft},{originX:Rt,originY:Ft,overlayX:Rt,overlayY:Be},{originX:Q,originY:Be,overlayX:Q,overlayY:Ft},{originX:Q,originY:Ft,overlayX:Q,overlayY:Be}])}_getCloseStream(tt){return(0,P.T)(tt.backdropClick(),tt.detachments(),tt.keydownEvents().pipe((0,lt.h)(Rt=>Rt.keyCode===z.hY&&!(0,z.Vb)(Rt)||this.datepickerInput&&(0,z.Vb)(Rt,"altKey")&&Rt.keyCode===z.LH)))}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(p.aV),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(Je),t.Y36(U._A,8),t.Y36(G.Is,8),t.Y36(oi))},ke.\u0275dir=t.lG2({type:ke,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]}),ke})(),Fe=(()=>{class ke extends Xe{}return ke.\u0275fac=function(){let dn;return function(Rt){return(dn||(dn=t.n5z(ke)))(Rt||ke)}}(),ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[t._Bn([ne,{provide:Xe,useExisting:ke}]),t.qOj],decls:0,vars:0,template:function(tt,Rt){},encapsulation:2,changeDetection:0}),ke})();class Tn{constructor(dn,tt){this.target=dn,this.targetElement=tt,this.value=this.target.value}}let he=(()=>{class ke{constructor(tt,Rt,Q){this._elementRef=tt,this._dateAdapter=Rt,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=Ft=>{const Be=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ft.value));return!Be||this._matchesFilter(Be)?null:{matDatepickerFilter:!0}},this._minValidator=Ft=>{const Be=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ft.value)),Rn=this._getMinDate();return!Rn||!Be||this._dateAdapter.compareDate(Rn,Be)<=0?null:{matDatepickerMin:{min:Rn,actual:Be}}},this._maxValidator=Ft=>{const Be=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ft.value)),Rn=this._getMaxDate();return!Rn||!Be||this._dateAdapter.compareDate(Rn,Be)>=0?null:{matDatepickerMax:{max:Rn,actual:Be}}},this._lastValueValid=!1,this._localeSubscription=Rt.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(tt){this._assignValueProgrammatically(tt)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(tt){const Rt=(0,bt.Ig)(tt),Q=this._elementRef.nativeElement;this._disabled!==Rt&&(this._disabled=Rt,this.stateChanges.next(void 0)),Rt&&this._isInitialized&&Q.blur&&Q.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(tt){this._model=tt,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Rt=>{if(this._shouldHandleChangeEvent(Rt)){const Q=this._getValueFromModel(Rt.selection);this._lastValueValid=this._isValidValue(Q),this._cvaOnChange(Q),this._onTouched(),this._formatValue(Q),this.dateInput.emit(new Tn(this,this._elementRef.nativeElement)),this.dateChange.emit(new Tn(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(tt){(function Re(ke,dn){const tt=Object.keys(ke);for(let Rt of tt){const{previousValue:Q,currentValue:Ft}=ke[Rt];if(!dn.isDateInstance(Q)||!dn.isDateInstance(Ft))return!0;if(!dn.sameDate(Q,Ft))return!0}return!1})(tt,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(tt){this._validatorOnChange=tt}validate(tt){return this._validator?this._validator(tt):null}writeValue(tt){this._assignValueProgrammatically(tt)}registerOnChange(tt){this._cvaOnChange=tt}registerOnTouched(tt){this._onTouched=tt}setDisabledState(tt){this.disabled=tt}_onKeydown(tt){tt.altKey&&tt.keyCode===z.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),tt.preventDefault())}_onInput(tt){const Rt=this._lastValueValid;let Q=this._dateAdapter.parse(tt,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Q),Q=this._dateAdapter.getValidDateOrNull(Q);const Ft=!this._dateAdapter.sameDate(Q,this.value);!Q||Ft?this._cvaOnChange(Q):(tt&&!this.value&&this._cvaOnChange(Q),Rt!==this._lastValueValid&&this._validatorOnChange()),Ft&&(this._assignValue(Q),this.dateInput.emit(new Tn(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Tn(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(tt){this._elementRef.nativeElement.value=null!=tt?this._dateAdapter.format(tt,this._dateFormats.display.dateInput):""}_assignValue(tt){this._model?(this._assignValueToModel(tt),this._pendingValue=null):this._pendingValue=tt}_isValidValue(tt){return!tt||this._dateAdapter.isValid(tt)}_parentDisabled(){return!1}_assignValueProgrammatically(tt){tt=this._dateAdapter.deserialize(tt),this._lastValueValid=this._isValidValue(tt),tt=this._dateAdapter.getValidDateOrNull(tt),this._assignValue(tt),this._formatValue(tt)}_matchesFilter(tt){const Rt=this._getDateFilter();return!Rt||Rt(tt)}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(t.SBq),t.Y36(U._A,8),t.Y36(U.sG,8))},ke.\u0275dir=t.lG2({type:ke,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t.TTD]}),ke})();const En={provide:zt.JU,useExisting:(0,t.Gpc)(()=>go),multi:!0},gi={provide:zt.Cf,useExisting:(0,t.Gpc)(()=>go),multi:!0};let go=(()=>{class ke extends he{constructor(tt,Rt,Q,Ft){super(tt,Rt,Q),this._formField=Ft,this._closedSubscription=D.w.EMPTY,this._validator=zt.kI.compose(super._getValidators())}set matDatepicker(tt){tt&&(this._datepicker=tt,this._closedSubscription=tt.closedStream.subscribe(()=>this._onTouched()),this._registerModel(tt.registerInput(this)))}get min(){return this._min}set min(tt){const Rt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt));this._dateAdapter.sameDate(Rt,this._min)||(this._min=Rt,this._validatorOnChange())}get max(){return this._max}set max(tt){const Rt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt));this._dateAdapter.sameDate(Rt,this._max)||(this._max=Rt,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(tt){const Rt=this._matchesFilter(this.value);this._dateFilter=tt,this._matchesFilter(this.value)!==Rt&&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(tt){return tt}_assignValueToModel(tt){this._model&&this._model.updateSelection(tt,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(tt){return tt.source!==this}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(t.SBq),t.Y36(U._A,8),t.Y36(U.sG,8),t.Y36(Vt.G_,8))},ke.\u0275dir=t.lG2({type:ke,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(tt,Rt){1&tt&&t.NdJ("input",function(Ft){return Rt._onInput(Ft.target.value)})("change",function(){return Rt._onChange()})("blur",function(){return Rt._onBlur()})("keydown",function(Ft){return Rt._onKeydown(Ft)}),2&tt&&(t.Ikx("disabled",Rt.disabled),t.uIk("aria-haspopup",Rt._datepicker?"dialog":null)("aria-owns",(null==Rt._datepicker?null:Rt._datepicker.opened)&&Rt._datepicker.id||null)("min",Rt.min?Rt._dateAdapter.toIso8601(Rt.min):null)("max",Rt.max?Rt._dateAdapter.toIso8601(Rt.max):null)("data-mat-calendar",Rt._datepicker?Rt._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[t._Bn([En,gi,{provide:nt.Jk,useExisting:ke}]),t.qOj]}),ke})(),_o=(()=>{class ke{}return ke.\u0275fac=function(tt){return new(tt||ke)},ke.\u0275dir=t.lG2({type:ke,selectors:[["","matDatepickerToggleIcon",""]]}),ke})(),mn=(()=>{class ke{constructor(tt,Rt,Q){this._intl=tt,this._changeDetectorRef=Rt,this._stateChanges=D.w.EMPTY;const Ft=Number(Q);this.tabIndex=Ft||0===Ft?Ft:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(tt){this._disabled=(0,bt.Ig)(tt)}ngOnChanges(tt){tt.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(tt){this.datepicker&&!this.disabled&&(this.datepicker.open(),tt.stopPropagation())}_watchStateChanges(){const tt=this.datepicker?this.datepicker.stateChanges:(0,I.of)(),Rt=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,tt,Rt,Q).subscribe(()=>this._changeDetectorRef.markForCheck())}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(Pe),t.Y36(t.sBO),t.$8M("tabindex"))},ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-datepicker-toggle"]],contentQueries:function(tt,Rt,Q){if(1&tt&&t.Suo(Q,_o,5),2&tt){let Ft;t.iGM(Ft=t.CRH())&&(Rt._customIcon=Ft.first)}},viewQuery:function(tt,Rt){if(1&tt&&t.Gf($e,5),2&tt){let Q;t.iGM(Q=t.CRH())&&(Rt._button=Q.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(tt,Rt){1&tt&&t.NdJ("click",function(Ft){return Rt._open(Ft)}),2&tt&&(t.uIk("tabindex",null)("data-mat-calendar",Rt.datepicker?Rt.datepicker.id:null),t.ekj("mat-datepicker-toggle-active",Rt.datepicker&&Rt.datepicker.opened)("mat-accent",Rt.datepicker&&"accent"===Rt.datepicker.color)("mat-warn",Rt.datepicker&&"warn"===Rt.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[t.TTD],ngContentSelectors:ae,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(tt,Rt){1&tt&&(t.F$t(we),t.TgZ(0,"button",0,1),t.YNc(2,Xt,2,0,"svg",2),t.Hsn(3),t.qZA()),2&tt&&(t.Q6J("disabled",Rt.disabled)("disableRipple",Rt.disableRipple),t.uIk("aria-haspopup",Rt.datepicker?"dialog":null)("aria-label",Rt.ariaLabel||Rt._intl.openCalendarLabel)("tabindex",Rt.disabled?-1:Rt.tabIndex),t.xp6(2),t.Q6J("ngIf",!Rt._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}),ke})(),He=(()=>{class ke{}return ke.\u0275fac=function(tt){return new(tt||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({providers:[Pe,wt],imports:[T.ez,A.ot,p.U8,d.rt,v.eL,U.BQ,C.ZD]}),ke})()},65412:(ot,et,b)=>{"use strict";b.d(et,{WI:()=>Kt,uw:()=>gn,H8:()=>bi,ZT:()=>un,xY:()=>oi,Is:()=>Ke,so:()=>we,uh:()=>Mn});var d=b(12687),p=b(98184),v=b(83353),T=b(84080),t=b(36895),A=b(94650),C=b(29521),U=b(8929),k=b(88514),D=b(21086),P=b(40445),I=b(1059);function z(ne,ct){}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 at=(()=>{class ne extends T.en{constructor(it,kt,Gt,oe,Ce,Ee,Pn,Ln){super(),this._elementRef=it,this._focusTrapFactory=kt,this._config=oe,this._interactivityChecker=Ce,this._ngZone=Ee,this._overlayRef=Pn,this._focusMonitor=Ln,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=mi=>{this._portalOutlet.hasAttached();const Oi=this._portalOutlet.attachDomPortal(mi);return this._contentAttached(),Oi},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Gt}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(it){this._portalOutlet.hasAttached();const kt=this._portalOutlet.attachComponentPortal(it);return this._contentAttached(),kt}attachTemplatePortal(it){this._portalOutlet.hasAttached();const kt=this._portalOutlet.attachTemplatePortal(it);return this._contentAttached(),kt}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(it,kt){this._interactivityChecker.isFocusable(it)||(it.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Gt=()=>{it.removeEventListener("blur",Gt),it.removeEventListener("mousedown",Gt),it.removeAttribute("tabindex")};it.addEventListener("blur",Gt),it.addEventListener("mousedown",Gt)})),it.focus(kt)}_focusByCssSelector(it,kt){let Gt=this._elementRef.nativeElement.querySelector(it);Gt&&this._forceFocus(Gt,kt)}_trapFocus(){const it=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||it.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(kt=>{kt||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 it=this._config.restoreFocus;let kt=null;if("string"==typeof it?kt=this._document.querySelector(it):"boolean"==typeof it?kt=it?this._elementFocusedBeforeDialogWasOpened:null:it&&(kt=it),this._config.restoreFocus&&kt&&"function"==typeof kt.focus){const Gt=(0,v.ht)(),oe=this._elementRef.nativeElement;(!Gt||Gt===this._document.body||Gt===oe||oe.contains(Gt))&&(this._focusMonitor?(this._focusMonitor.focusVia(kt,this._closeInteractionType),this._closeInteractionType=null):kt.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const it=this._elementRef.nativeElement,kt=(0,v.ht)();return it===kt||it.contains(kt)}_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 ne.\u0275fac=function(it){return new(it||ne)(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))},ne.\u0275cmp=A.Xpm({type:ne,selectors:[["cdk-dialog-container"]],viewQuery:function(it,kt){if(1&it&&A.Gf(T.Pl,7),2&it){let Gt;A.iGM(Gt=A.CRH())&&(kt._portalOutlet=Gt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(it,kt){2&it&&A.uIk("id",kt._config.id||null)("role",kt._config.role)("aria-modal",kt._config.ariaModal)("aria-labelledby",kt._config.ariaLabel?null:kt._ariaLabelledBy)("aria-label",kt._config.ariaLabel)("aria-describedby",kt._config.ariaDescribedBy||null)},features:[A.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(it,kt){1&it&&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}),ne})();class lt{constructor(ct,it){this.overlayRef=ct,this.config=it,this.closed=new U.xQ,this.disableClose=it.disableClose,this.backdropClick=ct.backdropClick(),this.keydownEvents=ct.keydownEvents(),this.outsidePointerEvents=ct.outsidePointerEvents(),this.id=it.id,this.keydownEvents.subscribe(kt=>{kt.keyCode===C.hY&&!this.disableClose&&!(0,C.Vb)(kt)&&(kt.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(ct,it){if(this.containerInstance){const kt=this.closed;this.containerInstance._closeInteractionType=it?.focusOrigin||"program",this.overlayRef.dispose(),kt.next(ct),kt.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(ct="",it=""){return this.overlayRef.updateSize({width:ct,height:it}),this}addPanelClass(ct){return this.overlayRef.addPanelClass(ct),this}removePanelClass(ct){return this.overlayRef.removePanelClass(ct),this}}const bt=new A.OlP("DialogScrollStrategy"),Pt=new A.OlP("DialogData"),Dt=new A.OlP("DefaultDialogConfig"),Vt={provide:bt,deps:[p.aV],useFactory:function zt(ne){return()=>ne.scrollStrategies.block()}};let nt=0,Tt=(()=>{class ne{constructor(it,kt,Gt,oe,Ce,Ee){this._overlay=it,this._injector=kt,this._defaultOptions=Gt,this._parentDialog=oe,this._overlayContainer=Ce,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U.xQ,this._afterOpenedAtThisLevel=new U.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=Ee}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(it,kt){(kt={...this._defaultOptions||new G,...kt}).id=kt.id||"cdk-dialog-"+nt++,kt.id&&this.getDialogById(kt.id);const oe=this._getOverlayConfig(kt),Ce=this._overlay.create(oe),Ee=new lt(Ce,kt),Pn=this._attachContainer(Ce,Ee,kt);return Ee.containerInstance=Pn,this._attachDialogContent(it,Ee,Pn,kt),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Ee),Ee.closed.subscribe(()=>this._removeOpenDialog(Ee,!0)),this.afterOpened.next(Ee),Ee}closeAll(){At(this.openDialogs,it=>it.close())}getDialogById(it){return this.openDialogs.find(kt=>kt.id===it)}ngOnDestroy(){At(this._openDialogsAtThisLevel,it=>{!1===it.config.closeOnDestroy&&this._removeOpenDialog(it,!1)}),At(this._openDialogsAtThisLevel,it=>it.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(it){const kt=new p.X_({positionStrategy:it.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:it.scrollStrategy||this._scrollStrategy(),panelClass:it.panelClass,hasBackdrop:it.hasBackdrop,direction:it.direction,minWidth:it.minWidth,minHeight:it.minHeight,maxWidth:it.maxWidth,maxHeight:it.maxHeight,width:it.width,height:it.height,disposeOnNavigation:it.closeOnNavigation});return it.backdropClass&&(kt.backdropClass=it.backdropClass),kt}_attachContainer(it,kt,Gt){const oe=Gt.injector||Gt.viewContainerRef?.injector,Ce=[{provide:G,useValue:Gt},{provide:lt,useValue:kt},{provide:p.Iu,useValue:it}];let Ee;Gt.container?"function"==typeof Gt.container?Ee=Gt.container:(Ee=Gt.container.type,Ce.push(...Gt.container.providers(Gt))):Ee=at;const Pn=new T.C5(Ee,Gt.viewContainerRef,A.zs3.create({parent:oe||this._injector,providers:Ce}),Gt.componentFactoryResolver);return it.attach(Pn).instance}_attachDialogContent(it,kt,Gt,oe){if(it instanceof A.Rgc){const Ce=this._createInjector(oe,kt,Gt,void 0);let Ee={$implicit:oe.data,dialogRef:kt};oe.templateContext&&(Ee={...Ee,..."function"==typeof oe.templateContext?oe.templateContext():oe.templateContext}),Gt.attachTemplatePortal(new T.UE(it,null,Ee,Ce))}else{const Ce=this._createInjector(oe,kt,Gt,this._injector),Ee=Gt.attachComponentPortal(new T.C5(it,oe.viewContainerRef,Ce,oe.componentFactoryResolver));kt.componentInstance=Ee.instance}}_createInjector(it,kt,Gt,oe){const Ce=it.injector||it.viewContainerRef?.injector,Ee=[{provide:Pt,useValue:it.data},{provide:lt,useValue:kt}];return it.providers&&("function"==typeof it.providers?Ee.push(...it.providers(kt,it,Gt)):Ee.push(...it.providers)),it.direction&&(!Ce||!Ce.get(P.Is,null,A.XFs.Optional))&&Ee.push({provide:P.Is,useValue:{value:it.direction,change:(0,D.of)()}}),A.zs3.create({parent:Ce||oe,providers:Ee})}_removeOpenDialog(it,kt){const Gt=this.openDialogs.indexOf(it);Gt>-1&&(this.openDialogs.splice(Gt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((oe,Ce)=>{oe?Ce.setAttribute("aria-hidden",oe):Ce.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),kt&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const it=this._overlayContainer.getContainerElement();if(it.parentElement){const kt=it.parentElement.children;for(let Gt=kt.length-1;Gt>-1;Gt--){const oe=kt[Gt];oe!==it&&"SCRIPT"!==oe.nodeName&&"STYLE"!==oe.nodeName&&!oe.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(oe,oe.getAttribute("aria-hidden")),oe.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const it=this._parentDialog;return it?it._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return ne.\u0275fac=function(it){return new(it||ne)(A.LFG(p.aV),A.LFG(A.zs3),A.LFG(Dt,8),A.LFG(ne,12),A.LFG(p.Xj),A.LFG(bt))},ne.\u0275prov=A.Yz7({token:ne,factory:ne.\u0275fac}),ne})();function At(ne,ct){let it=ne.length;for(;it--;)ct(ne[it])}let ft=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275mod=A.oAB({type:ne}),ne.\u0275inj=A.cJS({providers:[Tt,Vt],imports:[p.U8,T.eL,d.rt,T.eL]}),ne})();var Et=b(3238),Bt=b(36787),It=b(92198),se=b(72986),Jt=b(37340);function ve(ne,ct){}const xe={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Oe={dialogContainer:(0,Jt.X$)("dialogContainer",[(0,Jt.SB)("void, exit",(0,Jt.oB)({opacity:0,transform:"scale(0.7)"})),(0,Jt.SB)("enter",(0,Jt.oB)({transform:"none"})),(0,Jt.eR)("* => enter",(0,Jt.ru)([(0,Jt.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Jt.oB)({transform:"none",opacity:1})),(0,Jt.IO)("@*",(0,Jt.pV)(),{optional:!0})]),xe),(0,Jt.eR)("* => void, * => exit",(0,Jt.ru)([(0,Jt.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Jt.oB)({opacity:0})),(0,Jt.IO)("@*",(0,Jt.pV)(),{optional:!0})]),xe)])};class qe{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=xe.params.enterAnimationDuration,this.exitAnimationDuration=xe.params.exitAnimationDuration}}let $e=(()=>{class ne extends at{constructor(it,kt,Gt,oe,Ce,Ee,Pn,Ln){super(it,kt,Gt,oe,Ce,Ee,Pn,Ln),this._animationStateChanged=new A.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(it){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:it})}}return ne.\u0275fac=function(it){return new(it||ne)(A.Y36(A.SBq),A.Y36(d.qV),A.Y36(t.K0,8),A.Y36(qe),A.Y36(d.ic),A.Y36(A.R0b),A.Y36(p.Iu),A.Y36(d.tE))},ne.\u0275cmp=A.Xpm({type:ne,selectors:[["ng-component"]],features:[A.qOj],decls:0,vars:0,template:function(it,kt){},encapsulation:2}),ne})(),Xt=(()=>{class ne extends $e{constructor(it,kt,Gt,oe,Ce,Ee,Pn,Ln,mi){super(it,kt,Gt,oe,Ce,Ee,Pn,mi),this._changeDetectorRef=Ln,this._state="enter"}_onAnimationDone({toState:it,totalTime:kt}){"enter"===it?this._openAnimationDone(kt):"exit"===it&&this._animationStateChanged.next({state:"closed",totalTime:kt})}_onAnimationStart({toState:it,totalTime:kt}){"enter"===it?this._animationStateChanged.next({state:"opening",totalTime:kt}):("exit"===it||"void"===it)&&this._animationStateChanged.next({state:"closing",totalTime:kt})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||xe.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||xe.params.exitAnimationDuration}}}}return ne.\u0275fac=function(it){return new(it||ne)(A.Y36(A.SBq),A.Y36(d.qV),A.Y36(t.K0,8),A.Y36(qe),A.Y36(d.ic),A.Y36(A.R0b),A.Y36(p.Iu),A.Y36(A.sBO),A.Y36(d.tE))},ne.\u0275cmp=A.Xpm({type:ne,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(it,kt){1&it&&A.WFA("@dialogContainer.start",function(oe){return kt._onAnimationStart(oe)})("@dialogContainer.done",function(oe){return kt._onAnimationDone(oe)}),2&it&&(A.Ikx("id",kt._config.id),A.uIk("aria-modal",kt._config.ariaModal)("role",kt._config.role)("aria-labelledby",kt._config.ariaLabel?null:kt._ariaLabelledBy)("aria-label",kt._config.ariaLabel)("aria-describedby",kt._config.ariaDescribedBy||null),A.d8E("@dialogContainer",kt._getAnimationState()))},features:[A.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(it,kt){1&it&&A.YNc(0,ve,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:[Oe.dialogContainer]}}),ne})();class we{constructor(ct,it,kt){this._ref=ct,this._containerInstance=kt,this._afterOpened=new U.xQ,this._beforeClosed=new U.xQ,this._state=0,this.disableClose=it.disableClose,this.id=ct.id,kt._animationStateChanged.pipe((0,It.h)(Gt=>"opened"===Gt.state),(0,se.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),kt._animationStateChanged.pipe((0,It.h)(Gt=>"closed"===Gt.state),(0,se.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ct.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Bt.T)(this.backdropClick(),this.keydownEvents().pipe((0,It.h)(Gt=>Gt.keyCode===C.hY&&!this.disableClose&&!(0,C.Vb)(Gt)))).subscribe(Gt=>{this.disableClose||(Gt.preventDefault(),ae(this,"keydown"===Gt.type?"keyboard":"mouse"))})}close(ct){this._result=ct,this._containerInstance._animationStateChanged.pipe((0,It.h)(it=>"closing"===it.state),(0,se.q)(1)).subscribe(it=>{this._beforeClosed.next(ct),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),it.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(ct){let it=this._ref.config.positionStrategy;return ct&&(ct.left||ct.right)?ct.left?it.left(ct.left):it.right(ct.right):it.centerHorizontally(),ct&&(ct.top||ct.bottom)?ct.top?it.top(ct.top):it.bottom(ct.bottom):it.centerVertically(),this._ref.updatePosition(),this}updateSize(ct="",it=""){return this._ref.updateSize(ct,it),this}addPanelClass(ct){return this._ref.addPanelClass(ct),this}removePanelClass(ct){return this._ref.removePanelClass(ct),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function ae(ne,ct,it){return ne._closeInteractionType=ct,ne.close(it)}const Kt=new A.OlP("MatDialogData"),de=new A.OlP("mat-dialog-default-options"),Wt=new A.OlP("mat-dialog-scroll-strategy"),on={provide:Wt,deps:[p.aV],useFactory:function Pe(ne){return()=>ne.scrollStrategies.block()}};let _n=0,ye=(()=>{class ne{constructor(it,kt,Gt,oe,Ce,Ee,Pn,Ln,mi,Oi){this._overlay=it,this._defaultOptions=Gt,this._parentDialog=oe,this._dialogRefConstructor=Pn,this._dialogContainerType=Ln,this._dialogDataToken=mi,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U.xQ,this._afterOpenedAtThisLevel=new U.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=Ee,this._dialog=kt.get(Tt)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const it=this._parentDialog;return it?it._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(it,kt){let Gt;(kt={...this._defaultOptions||new qe,...kt}).id=kt.id||`${this._idPrefix}${_n++}`,kt.scrollStrategy=kt.scrollStrategy||this._scrollStrategy();const oe=this._dialog.open(it,{...kt,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:qe,useValue:kt},{provide:G,useValue:kt}]},templateContext:()=>({dialogRef:Gt}),providers:(Ce,Ee,Pn)=>(Gt=new this._dialogRefConstructor(Ce,kt,Pn),Gt.updatePosition(kt?.position),[{provide:this._dialogContainerType,useValue:Pn},{provide:this._dialogDataToken,useValue:Ee.data},{provide:this._dialogRefConstructor,useValue:Gt}])});return Gt.componentInstance=oe.componentInstance,this.openDialogs.push(Gt),this.afterOpened.next(Gt),Gt.afterClosed().subscribe(()=>{const Ce=this.openDialogs.indexOf(Gt);Ce>-1&&(this.openDialogs.splice(Ce,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Gt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(it){return this.openDialogs.find(kt=>kt.id===it)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(it){let kt=it.length;for(;kt--;)it[kt].close()}}return ne.\u0275fac=function(it){A.$Z()},ne.\u0275prov=A.Yz7({token:ne,factory:ne.\u0275fac}),ne})(),gn=(()=>{class ne extends ye{constructor(it,kt,Gt,oe,Ce,Ee,Pn,Ln){super(it,kt,oe,Ee,Pn,Ce,we,Xt,Kt,Ln)}}return ne.\u0275fac=function(it){return new(it||ne)(A.LFG(p.aV),A.LFG(A.zs3),A.LFG(t.Ye,8),A.LFG(de,8),A.LFG(Wt),A.LFG(ne,12),A.LFG(p.Xj),A.LFG(A.QbO,8))},ne.\u0275prov=A.Yz7({token:ne,factory:ne.\u0275fac}),ne})(),Ue=0,un=(()=>{class ne{constructor(it,kt,Gt){this.dialogRef=it,this._elementRef=kt,this._dialog=Gt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=ri(this._elementRef,this._dialog.openDialogs))}ngOnChanges(it){const kt=it._matDialogClose||it._matDialogCloseResult;kt&&(this.dialogResult=kt.currentValue)}_onButtonClick(it){ae(this.dialogRef,0===it.screenX&&0===it.screenY?"keyboard":"mouse",this.dialogResult)}}return ne.\u0275fac=function(it){return new(it||ne)(A.Y36(we,8),A.Y36(A.SBq),A.Y36(gn))},ne.\u0275dir=A.lG2({type:ne,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(it,kt){1&it&&A.NdJ("click",function(oe){return kt._onButtonClick(oe)}),2&it&&A.uIk("aria-label",kt.ariaLabel||null)("type",kt.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[A.TTD]}),ne})(),Mn=(()=>{class ne{constructor(it,kt,Gt){this._dialogRef=it,this._elementRef=kt,this._dialog=Gt,this.id="mat-dialog-title-"+Ue++}ngOnInit(){this._dialogRef||(this._dialogRef=ri(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const it=this._dialogRef._containerInstance;it&&!it._ariaLabelledBy&&(it._ariaLabelledBy=this.id)})}}return ne.\u0275fac=function(it){return new(it||ne)(A.Y36(we,8),A.Y36(A.SBq),A.Y36(gn))},ne.\u0275dir=A.lG2({type:ne,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(it,kt){2&it&&A.Ikx("id",kt.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),ne})(),oi=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275dir=A.lG2({type:ne,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),ne})(),bi=(()=>{class ne{constructor(){this.align="start"}}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275dir=A.lG2({type:ne,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(it,kt){2&it&&A.ekj("mat-dialog-actions-align-center","center"===kt.align)("mat-dialog-actions-align-end","end"===kt.align)},inputs:{align:"align"}}),ne})();function ri(ne,ct){let it=ne.nativeElement.parentElement;for(;it&&!it.classList.contains("mat-dialog-container");)it=it.parentElement;return it?ct.find(kt=>kt.id===it.id):null}let Ke=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275mod=A.oAB({type:ne}),ne.\u0275inj=A.cJS({providers:[gn,on],imports:[ft,p.U8,T.eL,Et.BQ,Et.BQ]}),ne})()},44850:(ot,et,b)=>{"use strict";b.d(et,{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(U){this._vertical=(0,p.Ig)(U)}get inset(){return this._inset}set inset(U){this._inset=(0,p.Ig)(U)}}return A.\u0275fac=function(U){return new(U||A)},A.\u0275cmp=d.Xpm({type:A,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(U,k){2&U&&(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(U,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(U){return new(U||A)},A.\u0275mod=d.oAB({type:A}),A.\u0275inj=d.cJS({imports:[v.BQ,v.BQ]}),A})()},37084:(ot,et,b)=>{"use strict";b.d(et,{pp:()=>on,To:()=>_n,ib:()=>we,u4:()=>re,yz:()=>Wt,yK:()=>Pe});var d=b(94650),p=b(95017),v=b(21281),T=b(8929),t=b(42654);let A=0;const C=new d.OlP("CdkAccordion");let U=(()=>{class ye{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(Ue){this._multi=(0,v.Ig)(Ue)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Ue){this._stateChanges.next(Ue)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return ye.\u0275fac=function(Ue){return new(Ue||ye)},ye.\u0275dir=d.lG2({type:ye,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[d._Bn([{provide:C,useExisting:ye}]),d.TTD]}),ye})(),k=0,D=(()=>{class ye{constructor(Ue,un,Mn){this.accordion=Ue,this._changeDetectorRef=un,this._expansionDispatcher=Mn,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=Mn.listen((oi,bi)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===bi&&this.id!==oi&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(Ue){Ue=(0,v.Ig)(Ue),this._expanded!==Ue&&(this._expanded=Ue,this.expandedChange.emit(Ue),Ue?(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(Ue){this._disabled=(0,v.Ig)(Ue)}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(Ue=>{this.disabled||(this.expanded=Ue)})}}return ye.\u0275fac=function(Ue){return new(Ue||ye)(d.Y36(C,12),d.Y36(d.sBO),d.Y36(p.A8))},ye.\u0275dir=d.lG2({type:ye,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:C,useValue:void 0}])]}),ye})(),P=(()=>{class ye{}return ye.\u0275fac=function(Ue){return new(Ue||ye)},ye.\u0275mod=d.oAB({type:ye}),ye.\u0275inj=d.cJS({}),ye})();var I=b(84080),z=b(36895),G=b(3238),K=b(12687),at=b(75778),lt=b(1059),bt=b(92198),Pt=b(72986),Dt=b(29521),zt=b(68896),Vt=b(36787),nt=b(37340);const Tt=["body"];function At(ye,gn){}const ft=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Et=["mat-expansion-panel-header","*","mat-action-row"];function Bt(ye,gn){if(1&ye&&d._UZ(0,"span",2),2&ye){const Ue=d.oxw();d.Q6J("@indicatorRotate",Ue._getExpandedState())}}const It=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],se=["mat-panel-title","mat-panel-description","*"],Jt=new d.OlP("MAT_ACCORDION"),ve="225ms cubic-bezier(0.4,0.0,0.2,1)",xe={indicatorRotate:(0,nt.X$)("indicatorRotate",[(0,nt.SB)("collapsed, void",(0,nt.oB)({transform:"rotate(0deg)"})),(0,nt.SB)("expanded",(0,nt.oB)({transform:"rotate(180deg)"})),(0,nt.eR)("expanded <=> collapsed, void => collapsed",(0,nt.jt)(ve))]),bodyExpansion:(0,nt.X$)("bodyExpansion",[(0,nt.SB)("collapsed, void",(0,nt.oB)({height:"0px",visibility:"hidden"})),(0,nt.SB)("expanded",(0,nt.oB)({height:"*",visibility:"visible"})),(0,nt.eR)("expanded <=> collapsed, void => collapsed",(0,nt.jt)(ve))])},Oe=new d.OlP("MAT_EXPANSION_PANEL");let qe=(()=>{class ye{constructor(Ue,un){this._template=Ue,this._expansionPanel=un}}return ye.\u0275fac=function(Ue){return new(Ue||ye)(d.Y36(d.Rgc),d.Y36(Oe,8))},ye.\u0275dir=d.lG2({type:ye,selectors:[["ng-template","matExpansionPanelContent",""]]}),ye})(),$e=0;const Xt=new d.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let we=(()=>{class ye extends D{constructor(Ue,un,Mn,oi,bi,ri,Ke){super(Ue,un,Mn),this._viewContainerRef=oi,this._animationMode=ri,this._hideToggle=!1,this.afterExpand=new d.vpe,this.afterCollapse=new d.vpe,this._inputChanges=new T.xQ,this._headerId="mat-expansion-panel-header-"+$e++,this._bodyAnimationDone=new T.xQ,this.accordion=Ue,this._document=bi,this._bodyAnimationDone.pipe((0,at.x)((ne,ct)=>ne.fromState===ct.fromState&&ne.toState===ct.toState)).subscribe(ne=>{"void"!==ne.fromState&&("expanded"===ne.toState?this.afterExpand.emit():"collapsed"===ne.toState&&this.afterCollapse.emit())}),Ke&&(this.hideToggle=Ke.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Ue){this._hideToggle=(0,v.Ig)(Ue)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Ue){this._togglePosition=Ue}_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,lt.O)(null),(0,bt.h)(()=>this.expanded&&!this._portal),(0,Pt.q)(1)).subscribe(()=>{this._portal=new I.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Ue){this._inputChanges.next(Ue)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Ue=this._document.activeElement,un=this._body.nativeElement;return Ue===un||un.contains(Ue)}return!1}}return ye.\u0275fac=function(Ue){return new(Ue||ye)(d.Y36(Jt,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(Xt,8))},ye.\u0275cmp=d.Xpm({type:ye,selectors:[["mat-expansion-panel"]],contentQueries:function(Ue,un,Mn){if(1&Ue&&d.Suo(Mn,qe,5),2&Ue){let oi;d.iGM(oi=d.CRH())&&(un._lazyContent=oi.first)}},viewQuery:function(Ue,un){if(1&Ue&&d.Gf(Tt,5),2&Ue){let Mn;d.iGM(Mn=d.CRH())&&(un._body=Mn.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Ue,un){2&Ue&&d.ekj("mat-expanded",un.expanded)("_mat-animation-noopable","NoopAnimations"===un._animationMode)("mat-expansion-panel-spacing",un._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:Jt,useValue:void 0},{provide:Oe,useExisting:ye}]),d.qOj,d.TTD],ngContentSelectors:Et,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Ue,un){1&Ue&&(d.F$t(ft),d.Hsn(0),d.TgZ(1,"div",0,1),d.NdJ("@bodyExpansion.done",function(oi){return un._bodyAnimationDone.next(oi)}),d.TgZ(3,"div",2),d.Hsn(4,1),d.YNc(5,At,0,0,"ng-template",3),d.qZA(),d.Hsn(6,2),d.qZA()),2&Ue&&(d.xp6(1),d.Q6J("@bodyExpansion",un._getExpandedState())("id",un.id),d.uIk("aria-labelledby",un._headerId),d.xp6(4),d.Q6J("cdkPortalOutlet",un._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:[xe.bodyExpansion]},changeDetection:0}),ye})();class Kt{}const de=(0,G.sb)(Kt);let Wt=(()=>{class ye extends de{constructor(Ue,un,Mn,oi,bi,ri,Ke){super(),this.panel=Ue,this._element=un,this._focusMonitor=Mn,this._changeDetectorRef=oi,this._animationMode=ri,this._parentChangeSubscription=t.w.EMPTY;const ne=Ue.accordion?Ue.accordion._stateChanges.pipe((0,bt.h)(ct=>!(!ct.hideToggle&&!ct.togglePosition))):zt.E;this.tabIndex=parseInt(Ke||"")||0,this._parentChangeSubscription=(0,Vt.T)(Ue.opened,Ue.closed,ne,Ue._inputChanges.pipe((0,bt.h)(ct=>!!(ct.hideToggle||ct.disabled||ct.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Ue.closed.pipe((0,bt.h)(()=>Ue._containsFocus())).subscribe(()=>Mn.focusVia(un,"program")),bi&&(this.expandedHeight=bi.expandedHeight,this.collapsedHeight=bi.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 Ue=this._isExpanded();return Ue&&this.expandedHeight?this.expandedHeight:!Ue&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Ue){switch(Ue.keyCode){case Dt.L_:case Dt.K5:(0,Dt.Vb)(Ue)||(Ue.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Ue))}}focus(Ue,un){Ue?this._focusMonitor.focusVia(this._element,Ue,un):this._element.nativeElement.focus(un)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Ue=>{Ue&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return ye.\u0275fac=function(Ue){return new(Ue||ye)(d.Y36(we,1),d.Y36(d.SBq),d.Y36(K.tE),d.Y36(d.sBO),d.Y36(Xt,8),d.Y36(d.QbO,8),d.$8M("tabindex"))},ye.\u0275cmp=d.Xpm({type:ye,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Ue,un){1&Ue&&d.NdJ("click",function(){return un._toggle()})("keydown",function(oi){return un._keydown(oi)}),2&Ue&&(d.uIk("id",un.panel._headerId)("tabindex",un.tabIndex)("aria-controls",un._getPanelId())("aria-expanded",un._isExpanded())("aria-disabled",un.panel.disabled),d.Udp("height",un._getHeaderHeight()),d.ekj("mat-expanded",un._isExpanded())("mat-expansion-toggle-indicator-after","after"===un._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===un._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===un._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[d.qOj],ngContentSelectors:se,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Ue,un){1&Ue&&(d.F$t(It),d.TgZ(0,"span",0),d.Hsn(1),d.Hsn(2,1),d.Hsn(3,2),d.qZA(),d.YNc(4,Bt,1,1,"span",1)),2&Ue&&(d.ekj("mat-content-hide-toggle",!un._showToggle()),d.xp6(4),d.Q6J("ngIf",un._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:[xe.indicatorRotate]},changeDetection:0}),ye})(),re=(()=>{class ye{}return ye.\u0275fac=function(Ue){return new(Ue||ye)},ye.\u0275dir=d.lG2({type:ye,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),ye})(),Pe=(()=>{class ye{}return ye.\u0275fac=function(Ue){return new(Ue||ye)},ye.\u0275dir=d.lG2({type:ye,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),ye})(),on=(()=>{class ye extends U{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(Ue){this._hideToggle=(0,v.Ig)(Ue)}ngAfterContentInit(){this._headers.changes.pipe((0,lt.O)(this._headers)).subscribe(Ue=>{this._ownHeaders.reset(Ue.filter(un=>un.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new K.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Ue){this._keyManager.onKeydown(Ue)}_handleHeaderFocus(Ue){this._keyManager.updateActiveItem(Ue)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return ye.\u0275fac=function(){let gn;return function(un){return(gn||(gn=d.n5z(ye)))(un||ye)}}(),ye.\u0275dir=d.lG2({type:ye,selectors:[["mat-accordion"]],contentQueries:function(Ue,un,Mn){if(1&Ue&&d.Suo(Mn,Wt,5),2&Ue){let oi;d.iGM(oi=d.CRH())&&(un._headers=oi)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Ue,un){2&Ue&&d.ekj("mat-accordion-multi",un.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[d._Bn([{provide:Jt,useExisting:ye}]),d.qOj]}),ye})(),_n=(()=>{class ye{}return ye.\u0275fac=function(Ue){return new(Ue||ye)},ye.\u0275mod=d.oAB({type:ye}),ye.\u0275inj=d.cJS({imports:[z.ez,G.BQ,P,I.eL]}),ye})()},59549:(ot,et,b)=>{"use strict";b.d(et,{Eo:()=>qe,G_:()=>bi,KE:()=>ri,R9:()=>ye,TO:()=>xe,bx:()=>de,hX:()=>Wt,lN:()=>Ke,o2:()=>oi,qo:()=>on});var d=b(49643),p=b(36895),v=b(94650),T=b(3238),t=b(40445),A=b(21281),C=b(8929),U=b(36787),k=b(23753),D=b(1059),P=b(7625),I=b(72986),z=b(37340),G=b(83353);const K=["connectionContainer"],at=["inputContainer"],lt=["label"];function bt(ne,ct){1&ne&&(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(ne,ct){if(1&ne){const it=v.EpF();v.TgZ(0,"div",19),v.NdJ("cdkObserveContent",function(){v.CHM(it);const Gt=v.oxw();return v.KtG(Gt.updateOutlineGap())}),v.Hsn(1,1),v.qZA()}if(2&ne){const it=v.oxw();v.Q6J("cdkObserveContentDisabled","outline"!=it.appearance)}}function Dt(ne,ct){if(1&ne&&(v.ynx(0),v.Hsn(1,2),v.TgZ(2,"span"),v._uU(3),v.qZA(),v.BQk()),2&ne){const it=v.oxw(2);v.xp6(3),v.Oqu(it._control.placeholder)}}function zt(ne,ct){1&ne&&v.Hsn(0,3,["*ngSwitchCase","true"])}function Vt(ne,ct){1&ne&&(v.TgZ(0,"span",23),v._uU(1," *"),v.qZA())}function nt(ne,ct){if(1&ne){const it=v.EpF();v.TgZ(0,"label",20,21),v.NdJ("cdkObserveContent",function(){v.CHM(it);const Gt=v.oxw();return v.KtG(Gt.updateOutlineGap())}),v.YNc(2,Dt,4,1,"ng-container",12),v.YNc(3,zt,1,0,"ng-content",12),v.YNc(4,Vt,2,0,"span",22),v.qZA()}if(2&ne){const it=v.oxw();v.ekj("mat-empty",it._control.empty&&!it._shouldAlwaysFloat())("mat-form-field-empty",it._control.empty&&!it._shouldAlwaysFloat())("mat-accent","accent"==it.color)("mat-warn","warn"==it.color),v.Q6J("cdkObserveContentDisabled","outline"!=it.appearance)("id",it._labelId)("ngSwitch",it._hasLabel()),v.uIk("for",it._control.id)("aria-owns",it._control.id),v.xp6(2),v.Q6J("ngSwitchCase",!1),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngIf",!it.hideRequiredMarker&&it._control.required&&!it._control.disabled)}}function Tt(ne,ct){1&ne&&(v.TgZ(0,"div",24),v.Hsn(1,4),v.qZA())}function At(ne,ct){if(1&ne&&(v.TgZ(0,"div",25),v._UZ(1,"span",26),v.qZA()),2&ne){const it=v.oxw();v.xp6(1),v.ekj("mat-accent","accent"==it.color)("mat-warn","warn"==it.color)}}function ft(ne,ct){if(1&ne&&(v.TgZ(0,"div"),v.Hsn(1,5),v.qZA()),2&ne){const it=v.oxw();v.Q6J("@transitionMessages",it._subscriptAnimationState)}}function Et(ne,ct){if(1&ne&&(v.TgZ(0,"div",30),v._uU(1),v.qZA()),2&ne){const it=v.oxw(2);v.Q6J("id",it._hintLabelId),v.xp6(1),v.Oqu(it.hintLabel)}}function Bt(ne,ct){if(1&ne&&(v.TgZ(0,"div",27),v.YNc(1,Et,2,2,"div",28),v.Hsn(2,6),v._UZ(3,"div",29),v.Hsn(4,7),v.qZA()),2&ne){const it=v.oxw();v.Q6J("@transitionMessages",it._subscriptAnimationState),v.xp6(1),v.Q6J("ngIf",it.hintLabel)}}const It=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],se=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Jt=0;const ve=new v.OlP("MatError");let xe=(()=>{class ne{constructor(it,kt){this.id="mat-error-"+Jt++,it||kt.nativeElement.setAttribute("aria-live","polite")}}return ne.\u0275fac=function(it){return new(it||ne)(v.$8M("aria-live"),v.Y36(v.SBq))},ne.\u0275dir=v.lG2({type:ne,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(it,kt){2&it&&v.uIk("id",kt.id)},inputs:{id:"id"},features:[v._Bn([{provide:ve,useExisting:ne}])]}),ne})();const Oe={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 qe=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275dir=v.lG2({type:ne}),ne})(),ae=0;const Kt=new v.OlP("MatHint");let de=(()=>{class ne{constructor(){this.align="start",this.id="mat-hint-"+ae++}}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275dir=v.lG2({type:ne,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(it,kt){2&it&&(v.uIk("id",kt.id)("align",null),v.ekj("mat-form-field-hint-end","end"===kt.align))},inputs:{align:"align",id:"id"},features:[v._Bn([{provide:Kt,useExisting:ne}])]}),ne})(),Wt=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275dir=v.lG2({type:ne,selectors:[["mat-label"]]}),ne})(),re=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275dir=v.lG2({type:ne,selectors:[["mat-placeholder"]]}),ne})();const Pe=new v.OlP("MatPrefix");let on=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275dir=v.lG2({type:ne,selectors:[["","matPrefix",""]],features:[v._Bn([{provide:Pe,useExisting:ne}])]}),ne})();const _n=new v.OlP("MatSuffix");let ye=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275dir=v.lG2({type:ne,selectors:[["","matSuffix",""]],features:[v._Bn([{provide:_n,useExisting:ne}])]}),ne})(),gn=0;const Mn=(0,T.pj)(class{constructor(ne){this._elementRef=ne}},"primary"),oi=new v.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),bi=new v.OlP("MatFormField");let ri=(()=>{class ne extends Mn{constructor(it,kt,Gt,oe,Ce,Ee,Pn){super(it),this._changeDetectorRef=kt,this._dir=Gt,this._defaults=oe,this._platform=Ce,this._ngZone=Ee,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new C.xQ,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+gn++,this._labelId="mat-form-field-label-"+gn++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==Pn,this.appearance=oe?.appearance||"legacy",oe&&(this._hideRequiredMarker=Boolean(oe.hideRequiredMarker),oe.color&&(this.color=this.defaultColor=oe.color))}get appearance(){return this._appearance}set appearance(it){const kt=this._appearance;this._appearance=it||this._defaults?.appearance||"legacy","outline"===this._appearance&&kt!==it&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(it){this._hideRequiredMarker=(0,A.Ig)(it)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(it){this._hintLabel=it,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(it){it!==this._floatLabel&&(this._floatLabel=it||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(it){this._explicitFormFieldControl=it}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const it=this._control;it.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${it.controlType}`),it.stateChanges.pipe((0,D.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),it.ngControl&&it.ngControl.valueChanges&&it.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,U.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(it){const kt=this._control?this._control.ngControl:null;return kt&&kt[it]}_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 it=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&it.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const kt=this._hintChildren?this._hintChildren.find(oe=>"start"===oe.align):null,Gt=this._hintChildren?this._hintChildren.find(oe=>"end"===oe.align):null;kt?it.push(kt.id):this._hintLabel&&it.push(this._hintLabelId),Gt&&it.push(Gt.id)}else this._errorChildren&&it.push(...this._errorChildren.map(kt=>kt.id));this._control.setDescribedByIds(it)}}_validateControlChild(){}updateOutlineGap(){const it=this._label?this._label.nativeElement:null,kt=this._connectionContainerRef.nativeElement,Gt=".mat-form-field-outline-start",oe=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!it||!it.children.length||!it.textContent.trim()){const mi=kt.querySelectorAll(`${Gt}, ${oe}`);for(let Oi=0;Oi0?.75*Yn+10:0}for(let mi=0;mi{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275mod=v.oAB({type:ne}),ne.\u0275inj=v.cJS({imports:[p.ez,T.BQ,d.Q8,T.BQ]}),ne})()},90782:(ot,et,b)=>{"use strict";b.d(et,{DX:()=>I,Il:()=>At,N6:()=>ft});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 It=Math.max(...this.tracker);return It>1?this.rowCount+It-1:this.rowCount}update(It,se){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(It),this.tracker.fill(0,0,this.tracker.length),this.positions=se.map(Jt=>this._trackTile(Jt))}_trackTile(It){const se=this._findMatchingGap(It.colspan);return this._markTilePosition(se,It),this.columnIndex=se+It.colspan,new D(this.rowIndex,se)}_findMatchingGap(It){let se=-1,Jt=-1;do{this.columnIndex+It>this.tracker.length?(this._nextRow(),se=this.tracker.indexOf(0,this.columnIndex),Jt=this._findGapEndIndex(se)):(se=this.tracker.indexOf(0,this.columnIndex),-1!=se?(Jt=this._findGapEndIndex(se),this.columnIndex=se+1):(this._nextRow(),se=this.tracker.indexOf(0,this.columnIndex),Jt=this._findGapEndIndex(se)))}while(Jt-se{class Bt{constructor(se,Jt){this._element=se,this._gridList=Jt,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(se){this._rowspan=Math.round((0,v.su)(se))}get colspan(){return this._colspan}set colspan(se){this._colspan=Math.round((0,v.su)(se))}_setStyle(se,Jt){this._element.nativeElement.style[se]=Jt}}return Bt.\u0275fac=function(se){return new(se||Bt)(d.Y36(d.SBq),d.Y36(P,8))},Bt.\u0275cmp=d.Xpm({type:Bt,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(se,Jt){2&se&&d.uIk("rowspan",Jt.rowspan)("colspan",Jt.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:t,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(se,Jt){1&se&&(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}),Bt})();const lt=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class bt{constructor(){this._rows=0,this._rowspan=0}init(It,se,Jt,ve){this._gutterSize=nt(It),this._rows=se.rowCount,this._rowspan=se.rowspan,this._cols=Jt,this._direction=ve}getBaseTileSize(It,se){return`(${It}% - (${this._gutterSize} * ${se}))`}getTilePosition(It,se){return 0===se?"0":Vt(`(${It} + ${this._gutterSize}) * ${se}`)}getTileSize(It,se){return`(${It} * ${se}) + (${se-1} * ${this._gutterSize})`}setStyle(It,se,Jt){let ve=100/this._cols,xe=(this._cols-1)/this._cols;this.setColStyles(It,Jt,ve,xe),this.setRowStyles(It,se,ve,xe)}setColStyles(It,se,Jt,ve){let xe=this.getBaseTileSize(Jt,ve);It._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(xe,se)),It._setStyle("width",Vt(this.getTileSize(xe,It.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(It){return`${this._rowspan} * ${this.getTileSize(It,1)}`}getComputedHeight(){return null}}class Pt extends bt{constructor(It){super(),this.fixedRowHeight=It}init(It,se,Jt,ve){super.init(It,se,Jt,ve),this.fixedRowHeight=nt(this.fixedRowHeight),lt.test(this.fixedRowHeight)}setRowStyles(It,se){It._setStyle("top",this.getTilePosition(this.fixedRowHeight,se)),It._setStyle("height",Vt(this.getTileSize(this.fixedRowHeight,It.rowspan)))}getComputedHeight(){return["height",Vt(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(It){It._setListStyle(["height",null]),It._tiles&&It._tiles.forEach(se=>{se._setStyle("top",null),se._setStyle("height",null)})}}class Dt extends bt{constructor(It){super(),this._parseRatio(It)}setRowStyles(It,se,Jt,ve){this.baseTileHeight=this.getBaseTileSize(Jt/this.rowHeightRatio,ve),It._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,se)),It._setStyle("paddingTop",Vt(this.getTileSize(this.baseTileHeight,It.rowspan)))}getComputedHeight(){return["paddingBottom",Vt(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(It){It._setListStyle(["paddingBottom",null]),It._tiles.forEach(se=>{se._setStyle("marginTop",null),se._setStyle("paddingTop",null)})}_parseRatio(It){const se=It.split(":");this.rowHeightRatio=parseFloat(se[0])/parseFloat(se[1])}}class zt extends bt{setRowStyles(It,se){let xe=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);It._setStyle("top",this.getTilePosition(xe,se)),It._setStyle("height",Vt(this.getTileSize(xe,It.rowspan)))}reset(It){It._tiles&&It._tiles.forEach(se=>{se._setStyle("top",null),se._setStyle("height",null)})}}function Vt(Bt){return`calc(${Bt})`}function nt(Bt){return Bt.match(/([A-Za-z%]+)$/)?Bt:`${Bt}px`}let At=(()=>{class Bt{constructor(se,Jt){this._element=se,this._dir=Jt,this._gutter="1px"}get cols(){return this._cols}set cols(se){this._cols=Math.max(1,Math.round((0,v.su)(se)))}get gutterSize(){return this._gutter}set gutterSize(se){this._gutter=`${se??""}`}get rowHeight(){return this._rowHeight}set rowHeight(se){const Jt=`${se??""}`;Jt!==this._rowHeight&&(this._rowHeight=Jt,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(se){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===se?new zt:se&&se.indexOf(":")>-1?new Dt(se):new Pt(se)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new k);const se=this._tileCoordinator,Jt=this._tiles.filter(xe=>!xe._gridList||xe._gridList===this),ve=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,Jt),this._tileStyler.init(this.gutterSize,se,this.cols,ve),Jt.forEach((xe,Oe)=>{const qe=se.positions[Oe];this._tileStyler.setStyle(xe,qe.row,qe.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(se){se&&(this._element.nativeElement.style[se[0]]=se[1])}}return Bt.\u0275fac=function(se){return new(se||Bt)(d.Y36(d.SBq),d.Y36(T.Is,8))},Bt.\u0275cmp=d.Xpm({type:Bt,selectors:[["mat-grid-list"]],contentQueries:function(se,Jt,ve){if(1&se&&d.Suo(ve,I,5),2&se){let xe;d.iGM(xe=d.CRH())&&(Jt._tiles=xe)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(se,Jt){2&se&&d.uIk("cols",Jt.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[d._Bn([{provide:P,useExisting:Bt}])],ngContentSelectors:t,decls:2,vars:0,template:function(se,Jt){1&se&&(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}),Bt})(),ft=(()=>{class Bt{}return Bt.\u0275fac=function(se){return new(se||Bt)},Bt.\u0275mod=d.oAB({type:Bt}),Bt.\u0275inj=d.cJS({imports:[p.uc,p.BQ,p.uc,p.BQ]}),Bt})()},97392:(ot,et,b)=>{"use strict";b.d(et,{Hw:()=>ae,Ps:()=>Kt});var d=b(94650),p=b(3238),v=b(21281),T=b(36895),t=b(21086),A=b(61737),C=b(30567),U=b(42654),k=b(22868),D=b(24850),P=b(27221),I=b(40537),z=b(12474),G=b(72986),K=b(80529),at=b(11481);const lt=["*"];let bt;function Dt(de){return function Pt(){if(void 0===bt&&(bt=null,typeof window<"u")){const de=window;void 0!==de.trustedTypes&&(bt=de.trustedTypes.createPolicy("angular#components",{createHTML:Wt=>Wt}))}return bt}()?.createHTML(de)||de}function zt(de){return Error(`Unable to find icon with the name "${de}"`)}function nt(de){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${de}".`)}function Tt(de){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${de}".`)}class At{constructor(Wt,re,Pe){this.url=Wt,this.svgText=re,this.options=Pe}}let ft=(()=>{class de{constructor(re,Pe,on,_n){this._httpClient=re,this._sanitizer=Pe,this._errorHandler=_n,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(re,Pe,on){return this.addSvgIconInNamespace("",re,Pe,on)}addSvgIconLiteral(re,Pe,on){return this.addSvgIconLiteralInNamespace("",re,Pe,on)}addSvgIconInNamespace(re,Pe,on,_n){return this._addSvgIconConfig(re,Pe,new At(on,null,_n))}addSvgIconResolver(re){return this._resolvers.push(re),this}addSvgIconLiteralInNamespace(re,Pe,on,_n){const ye=this._sanitizer.sanitize(d.q3G.HTML,on);if(!ye)throw Tt(on);const gn=Dt(ye);return this._addSvgIconConfig(re,Pe,new At("",gn,_n))}addSvgIconSet(re,Pe){return this.addSvgIconSetInNamespace("",re,Pe)}addSvgIconSetLiteral(re,Pe){return this.addSvgIconSetLiteralInNamespace("",re,Pe)}addSvgIconSetInNamespace(re,Pe,on){return this._addSvgIconSetConfig(re,new At(Pe,null,on))}addSvgIconSetLiteralInNamespace(re,Pe,on){const _n=this._sanitizer.sanitize(d.q3G.HTML,Pe);if(!_n)throw Tt(Pe);const ye=Dt(_n);return this._addSvgIconSetConfig(re,new At("",ye,on))}registerFontClassAlias(re,Pe=re){return this._fontCssClassesByAlias.set(re,Pe),this}classNameForFontAlias(re){return this._fontCssClassesByAlias.get(re)||re}setDefaultFontSetClass(...re){return this._defaultFontSetClass=re,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(re){const Pe=this._sanitizer.sanitize(d.q3G.RESOURCE_URL,re);if(!Pe)throw nt(re);const on=this._cachedIconsByUrl.get(Pe);return on?(0,t.of)(It(on)):this._loadSvgIconFromConfig(new At(re,null)).pipe((0,k.b)(_n=>this._cachedIconsByUrl.set(Pe,_n)),(0,D.U)(_n=>It(_n)))}getNamedSvgIcon(re,Pe=""){const on=se(Pe,re);let _n=this._svgIconConfigs.get(on);if(_n)return this._getSvgFromConfig(_n);if(_n=this._getIconConfigFromResolvers(Pe,re),_n)return this._svgIconConfigs.set(on,_n),this._getSvgFromConfig(_n);const ye=this._iconSetConfigs.get(Pe);return ye?this._getSvgFromIconSetConfigs(re,ye):(0,A._)(zt(on))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(re){return re.svgText?(0,t.of)(It(this._svgElementFromConfig(re))):this._loadSvgIconFromConfig(re).pipe((0,D.U)(Pe=>It(Pe)))}_getSvgFromIconSetConfigs(re,Pe){const on=this._extractIconWithNameFromAnySet(re,Pe);if(on)return(0,t.of)(on);const _n=Pe.filter(ye=>!ye.svgText).map(ye=>this._loadSvgIconSetFromConfig(ye).pipe((0,P.K)(gn=>{const un=`Loading icon set URL: ${this._sanitizer.sanitize(d.q3G.RESOURCE_URL,ye.url)} failed: ${gn.message}`;return this._errorHandler.handleError(new Error(un)),(0,t.of)(null)})));return(0,C.D)(_n).pipe((0,D.U)(()=>{const ye=this._extractIconWithNameFromAnySet(re,Pe);if(!ye)throw zt(re);return ye}))}_extractIconWithNameFromAnySet(re,Pe){for(let on=Pe.length-1;on>=0;on--){const _n=Pe[on];if(_n.svgText&&_n.svgText.toString().indexOf(re)>-1){const ye=this._svgElementFromConfig(_n),gn=this._extractSvgIconFromSet(ye,re,_n.options);if(gn)return gn}}return null}_loadSvgIconFromConfig(re){return this._fetchIcon(re).pipe((0,k.b)(Pe=>re.svgText=Pe),(0,D.U)(()=>this._svgElementFromConfig(re)))}_loadSvgIconSetFromConfig(re){return re.svgText?(0,t.of)(null):this._fetchIcon(re).pipe((0,k.b)(Pe=>re.svgText=Pe))}_extractSvgIconFromSet(re,Pe,on){const _n=re.querySelector(`[id="${Pe}"]`);if(!_n)return null;const ye=_n.cloneNode(!0);if(ye.removeAttribute("id"),"svg"===ye.nodeName.toLowerCase())return this._setSvgAttributes(ye,on);if("symbol"===ye.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ye),on);const gn=this._svgElementFromString(Dt(""));return gn.appendChild(ye),this._setSvgAttributes(gn,on)}_svgElementFromString(re){const Pe=this._document.createElement("DIV");Pe.innerHTML=re;const on=Pe.querySelector("svg");if(!on)throw Error(" tag not found");return on}_toSvgElement(re){const Pe=this._svgElementFromString(Dt("")),on=re.attributes;for(let _n=0;_nDt(un)),(0,I.x)(()=>this._inProgressUrlFetches.delete(ye)),(0,z.B)());return this._inProgressUrlFetches.set(ye,Ue),Ue}_addSvgIconConfig(re,Pe,on){return this._svgIconConfigs.set(se(re,Pe),on),this}_addSvgIconSetConfig(re,Pe){const on=this._iconSetConfigs.get(re);return on?on.push(Pe):this._iconSetConfigs.set(re,[Pe]),this}_svgElementFromConfig(re){if(!re.svgElement){const Pe=this._svgElementFromString(re.svgText);this._setSvgAttributes(Pe,re.options),re.svgElement=Pe}return re.svgElement}_getIconConfigFromResolvers(re,Pe){for(let on=0;onWt?Wt.pathname+Wt.search:""}}}),$e=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Xt=$e.map(de=>`[${de}]`).join(", "),we=/^url\(['"]?#(.*?)['"]?\)$/;let ae=(()=>{class de extends ve{constructor(re,Pe,on,_n,ye,gn){super(re),this._iconRegistry=Pe,this._location=_n,this._errorHandler=ye,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=U.w.EMPTY,gn&&(gn.color&&(this.color=this.defaultColor=gn.color),gn.fontSet&&(this.fontSet=gn.fontSet)),on||re.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(re){this._inline=(0,v.Ig)(re)}get svgIcon(){return this._svgIcon}set svgIcon(re){re!==this._svgIcon&&(re?this._updateSvgIcon(re):this._svgIcon&&this._clearSvgElement(),this._svgIcon=re)}get fontSet(){return this._fontSet}set fontSet(re){const Pe=this._cleanupFontValue(re);Pe!==this._fontSet&&(this._fontSet=Pe,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(re){const Pe=this._cleanupFontValue(re);Pe!==this._fontIcon&&(this._fontIcon=Pe,this._updateFontIconClasses())}_splitIconName(re){if(!re)return["",""];const Pe=re.split(":");switch(Pe.length){case 1:return["",Pe[0]];case 2:return Pe;default:throw Error(`Invalid icon name: "${re}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const re=this._elementsWithExternalReferences;if(re&&re.size){const Pe=this._location.getPathname();Pe!==this._previousPath&&(this._previousPath=Pe,this._prependPathToReferences(Pe))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(re){this._clearSvgElement();const Pe=this._location.getPathname();this._previousPath=Pe,this._cacheChildrenWithExternalReferences(re),this._prependPathToReferences(Pe),this._elementRef.nativeElement.appendChild(re)}_clearSvgElement(){const re=this._elementRef.nativeElement;let Pe=re.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Pe--;){const on=re.childNodes[Pe];(1!==on.nodeType||"svg"===on.nodeName.toLowerCase())&&on.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const re=this._elementRef.nativeElement,Pe=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(on=>on.length>0);this._previousFontSetClass.forEach(on=>re.classList.remove(on)),Pe.forEach(on=>re.classList.add(on)),this._previousFontSetClass=Pe,this.fontIcon!==this._previousFontIconClass&&!Pe.includes("mat-ligature-font")&&(this._previousFontIconClass&&re.classList.remove(this._previousFontIconClass),this.fontIcon&&re.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(re){return"string"==typeof re?re.trim().split(" ")[0]:re}_prependPathToReferences(re){const Pe=this._elementsWithExternalReferences;Pe&&Pe.forEach((on,_n)=>{on.forEach(ye=>{_n.setAttribute(ye.name,`url('${re}#${ye.value}')`)})})}_cacheChildrenWithExternalReferences(re){const Pe=re.querySelectorAll(Xt),on=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let _n=0;_n{const gn=Pe[_n],Ue=gn.getAttribute(ye),un=Ue?Ue.match(we):null;if(un){let Mn=on.get(gn);Mn||(Mn=[],on.set(gn,Mn)),Mn.push({name:ye,value:un[1]})}})}_updateSvgIcon(re){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),re){const[Pe,on]=this._splitIconName(re);Pe&&(this._svgNamespace=Pe),on&&(this._svgName=on),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(on,Pe).pipe((0,G.q)(1)).subscribe(_n=>this._setSvgElement(_n),_n=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Pe}:${on}! ${_n.message}`))})}}}return de.\u0275fac=function(re){return new(re||de)(d.Y36(d.SBq),d.Y36(ft),d.$8M("aria-hidden"),d.Y36(Oe),d.Y36(d.qLn),d.Y36(xe,8))},de.\u0275cmp=d.Xpm({type:de,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(re,Pe){2&re&&(d.uIk("data-mat-icon-type",Pe._usingFontIcon()?"font":"svg")("data-mat-icon-name",Pe._svgName||Pe.fontIcon)("data-mat-icon-namespace",Pe._svgNamespace||Pe.fontSet)("fontIcon",Pe._usingFontIcon()?Pe.fontIcon:null),d.ekj("mat-icon-inline",Pe.inline)("mat-icon-no-color","primary"!==Pe.color&&"accent"!==Pe.color&&"warn"!==Pe.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[d.qOj],ngContentSelectors:lt,decls:1,vars:0,template:function(re,Pe){1&re&&(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}),de})(),Kt=(()=>{class de{}return de.\u0275fac=function(re){return new(re||de)},de.\u0275mod=d.oAB({type:de}),de.\u0275inj=d.cJS({imports:[p.BQ,p.BQ]}),de})()},284:(ot,et,b)=>{"use strict";b.d(et,{Jk:()=>D,Nt:()=>G,c:()=>K});var d=b(21281),p=b(83353),v=b(39349),T=b(94650),t=b(24006),A=b(3238),C=b(59549),U=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(at,lt,bt,Pt){this._defaultErrorStateMatcher=at,this._parentForm=lt,this._parentFormGroup=bt,this.ngControl=Pt,this.stateChanges=new U.xQ}});let G=(()=>{class at extends z{constructor(bt,Pt,Dt,zt,Vt,nt,Tt,At,ft,Et){super(nt,zt,Vt,Dt),this._elementRef=bt,this._platform=Pt,this._autofillMonitor=At,this._formField=Et,this._uid="mat-input-"+I++,this.focused=!1,this.stateChanges=new U.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(se=>(0,p.qK)().has(se)),this._iOSKeyupListener=se=>{const Jt=se.target;!Jt.value&&0===Jt.selectionStart&&0===Jt.selectionEnd&&(Jt.setSelectionRange(1,1),Jt.setSelectionRange(0,0))};const Bt=this._elementRef.nativeElement,It=Bt.nodeName.toLowerCase();this._inputValueAccessor=Tt||Bt,this._previousNativeValue=this.value,this.id=this.id,Pt.IOS&&ft.runOutsideAngular(()=>{bt.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===It,this._isTextarea="textarea"===It,this._isInFormField=!!Et,this._isNativeSelect&&(this.controlType=Bt.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(bt){this._disabled=(0,d.Ig)(bt),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(bt){this._id=bt||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(t.kI.required)??!1}set required(bt){this._required=(0,d.Ig)(bt)}get type(){return this._type}set type(bt){this._type=bt||"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(bt){bt!==this.value&&(this._inputValueAccessor.value=bt,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(bt){this._readonly=(0,d.Ig)(bt)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(bt=>{this.autofilled=bt.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(bt){this._elementRef.nativeElement.focus(bt)}_focusChanged(bt){bt!==this.focused&&(this.focused=bt,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const bt=this._formField,Pt=bt&&"legacy"===bt.appearance&&!bt._hasLabel?.()?null:this.placeholder;if(Pt!==this._previousPlaceholder){const Dt=this._elementRef.nativeElement;this._previousPlaceholder=Pt,Pt?Dt.setAttribute("placeholder",Pt):Dt.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const bt=this._elementRef.nativeElement.value;this._previousNativeValue!==bt&&(this._previousNativeValue=bt,this.stateChanges.next())}_validateType(){P.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let bt=this._elementRef.nativeElement.validity;return bt&&bt.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const bt=this._elementRef.nativeElement,Pt=bt.options[0];return this.focused||bt.multiple||!this.empty||!!(bt.selectedIndex>-1&&Pt&&Pt.label)}return this.focused||!this.empty}setDescribedByIds(bt){bt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",bt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const bt=this._elementRef.nativeElement;return this._isNativeSelect&&(bt.multiple||bt.size>1)}}return at.\u0275fac=function(bt){return new(bt||at)(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(C.G_,8))},at.\u0275dir=T.lG2({type:at,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(bt,Pt){1&bt&&T.NdJ("focus",function(){return Pt._focusChanged(!0)})("blur",function(){return Pt._focusChanged(!1)})("input",function(){return Pt._onInput()}),2&bt&&(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:C.Eo,useExisting:at}]),T.qOj,T.TTD]}),at})(),K=(()=>{class at{}return at.\u0275fac=function(bt){return new(bt||at)},at.\u0275mod=T.oAB({type:at}),at.\u0275inj=T.cJS({providers:[A.rD],imports:[v.Ky,C.lN,A.BQ,v.Ky,C.lN]}),at})()},96338:(ot,et,b)=>{"use strict";b.d(et,{Hk:()=>At,Nh:()=>Bt,Tg:()=>se,gs:()=>It,i$:()=>ft,ie:()=>Xt});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=["*"],K=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],at=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],zt=(0,v.Id)((0,v.Kr)(class{})),Vt=(0,v.Kr)(class{}),nt=new p.OlP("MatList"),Tt=new p.OlP("MatNavList");let At=(()=>{class we extends zt{constructor(){super(...arguments),this._stateChanges=new t.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return we.\u0275fac=function(){let ae;return function(de){return(ae||(ae=p.n5z(we)))(de||we)}}(),we.\u0275cmp=p.Xpm({type:we,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:Tt,useExisting:we}]),p.qOj,p.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(Kt,de){1&Kt&&(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}),we})(),ft=(()=>{class we extends zt{constructor(Kt){super(),this._elementRef=Kt,this._stateChanges=new t.xQ,"action-list"===this._getListType()&&(Kt.nativeElement.classList.add("mat-action-list"),Kt.nativeElement.setAttribute("role","group"))}_getListType(){const Kt=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===Kt?"list":"mat-action-list"===Kt?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return we.\u0275fac=function(Kt){return new(Kt||we)(p.Y36(p.SBq))},we.\u0275cmp=p.Xpm({type:we,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[p._Bn([{provide:nt,useExisting:we}]),p.qOj,p.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(Kt,de){1&Kt&&(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}),we})(),Et=(()=>{class we{}return we.\u0275fac=function(Kt){return new(Kt||we)},we.\u0275dir=p.lG2({type:we,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),we})(),Bt=(()=>{class we{}return we.\u0275fac=function(Kt){return new(Kt||we)},we.\u0275dir=p.lG2({type:we,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),we})(),It=(()=>{class we{}return we.\u0275fac=function(Kt){return new(Kt||we)},we.\u0275dir=p.lG2({type:we,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),we})(),se=(()=>{class we extends Vt{constructor(Kt,de,Wt,re){super(),this._element=Kt,this._isInteractiveList=!1,this._destroyed=new t.xQ,this._disabled=!1,this._isInteractiveList=!!(Wt||re&&"action-list"===re._getListType()),this._list=Wt||re;const Pe=this._getHostElement();"button"===Pe.nodeName.toLowerCase()&&!Pe.hasAttribute("type")&&Pe.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,A.R)(this._destroyed)).subscribe(()=>{de.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(Kt){this._disabled=(0,T.Ig)(Kt)}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 we.\u0275fac=function(Kt){return new(Kt||we)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Tt,8),p.Y36(nt,8))},we.\u0275cmp=p.Xpm({type:we,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(Kt,de,Wt){if(1&Kt&&(p.Suo(Wt,Et,5),p.Suo(Wt,Bt,5),p.Suo(Wt,v.X2,5)),2&Kt){let re;p.iGM(re=p.CRH())&&(de._avatar=re.first),p.iGM(re=p.CRH())&&(de._icon=re.first),p.iGM(re=p.CRH())&&(de._lines=re)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(Kt,de){2&Kt&&p.ekj("mat-list-item-disabled",de.disabled)("mat-list-item-with-avatar",de._avatar||de._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[p.qOj],ngContentSelectors:at,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(Kt,de){1&Kt&&(p.F$t(K),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&Kt&&(p.xp6(1),p.Q6J("matRippleTrigger",de._getHostElement())("matRippleDisabled",de._isRippleDisabled()))},dependencies:[v.wG],encapsulation:2,changeDetection:0}),we})(),Xt=(()=>{class we{}return we.\u0275fac=function(Kt){return new(Kt||we)},we.\u0275mod=p.oAB({type:we}),we.\u0275inj=p.cJS({imports:[v.uc,v.si,v.BQ,v.us,d.ez,v.uc,v.BQ,v.us,I.t]}),we})()},28255:(ot,et,b)=>{"use strict";b.d(et,{OP:()=>ae,Tx:()=>oi,VK:()=>Pe,p6:()=>Mn});var d=b(12687),p=b(21281),v=b(29521),T=b(94650),t=b(8929),A=b(42654),C=b(36787),U=b(21086),k=b(8139),D=b(1059),P=b(87545),I=b(72986),z=b(7625),G=b(92198),K=b(18583),at=b(37340),lt=b(84080),bt=b(36895),Pt=b(3238),Dt=b(40445),zt=b(98184),Vt=b(83353),nt=b(67376);const Tt=["mat-menu-item",""];function At(bi,ri){1&bi&&(T.O4$(),T.TgZ(0,"svg",2),T._UZ(1,"polygon",3),T.qZA())}const ft=["*"];function Et(bi,ri){if(1&bi){const Ke=T.EpF();T.TgZ(0,"div",0),T.NdJ("keydown",function(ct){T.CHM(Ke);const it=T.oxw();return T.KtG(it._handleKeydown(ct))})("click",function(){T.CHM(Ke);const ct=T.oxw();return T.KtG(ct.closed.emit("click"))})("@transformMenu.start",function(ct){T.CHM(Ke);const it=T.oxw();return T.KtG(it._onAnimationStart(ct))})("@transformMenu.done",function(ct){T.CHM(Ke);const it=T.oxw();return T.KtG(it._onAnimationDone(ct))}),T.TgZ(1,"div",1),T.Hsn(2),T.qZA()()}if(2&bi){const Ke=T.oxw();T.Q6J("id",Ke.panelId)("ngClass",Ke._classList)("@transformMenu",Ke._panelAnimationState),T.uIk("aria-label",Ke.ariaLabel||null)("aria-labelledby",Ke.ariaLabelledby||null)("aria-describedby",Ke.ariaDescribedby||null)}}const Bt={transformMenu:(0,at.X$)("transformMenu",[(0,at.SB)("void",(0,at.oB)({opacity:0,transform:"scale(0.8)"})),(0,at.eR)("void => enter",(0,at.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,at.oB)({opacity:1,transform:"scale(1)"}))),(0,at.eR)("* => void",(0,at.jt)("100ms 25ms linear",(0,at.oB)({opacity:0})))]),fadeInItems:(0,at.X$)("fadeInItems",[(0,at.SB)("showing",(0,at.oB)({opacity:1})),(0,at.eR)("void => *",[(0,at.oB)({opacity:0}),(0,at.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Jt=new T.OlP("MatMenuContent"),Xt=new T.OlP("MAT_MENU_PANEL"),we=(0,Pt.Kr)((0,Pt.Id)(class{}));let ae=(()=>{class bi extends we{constructor(Ke,ne,ct,it,kt){super(),this._elementRef=Ke,this._document=ne,this._focusMonitor=ct,this._parentMenu=it,this._changeDetectorRef=kt,this.role="menuitem",this._hovered=new t.xQ,this._focused=new t.xQ,this._highlighted=!1,this._triggersSubmenu=!1,it?.addItem?.(this)}focus(Ke,ne){this._focusMonitor&&Ke?this._focusMonitor.focusVia(this._getHostElement(),Ke,ne):this._getHostElement().focus(ne),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(Ke){this.disabled&&(Ke.preventDefault(),Ke.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const Ke=this._elementRef.nativeElement.cloneNode(!0),ne=Ke.querySelectorAll("mat-icon, .material-icons");for(let ct=0;ct{class bi{constructor(Ke,ne,ct,it){this._elementRef=Ke,this._ngZone=ne,this._defaultOptions=ct,this._changeDetectorRef=it,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-"+Wt++}get xPosition(){return this._xPosition}set xPosition(Ke){this._xPosition=Ke,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Ke){this._yPosition=Ke,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(Ke){this._overlapTrigger=(0,p.Ig)(Ke)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Ke){this._hasBackdrop=(0,p.Ig)(Ke)}set panelClass(Ke){const ne=this._previousPanelClass;ne&&ne.length&&ne.split(" ").forEach(ct=>{this._classList[ct]=!1}),this._previousPanelClass=Ke,Ke&&Ke.length&&(Ke.split(" ").forEach(ct=>{this._classList[ct]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Ke){this.panelClass=Ke}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)(Ke=>(0,C.T)(...Ke.map(ne=>ne._focused)))).subscribe(Ke=>this._keyManager.updateActiveItem(Ke)),this._directDescendantItems.changes.subscribe(Ke=>{const ne=this._keyManager;if("enter"===this._panelAnimationState&&ne.activeItem?._hasFocus()){const ct=Ke.toArray(),it=Math.max(0,Math.min(ct.length-1,ne.activeItemIndex||0));ct[it]&&!ct[it].disabled?ne.setActiveItem(it):ne.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)(ne=>(0,C.T)(...ne.map(ct=>ct._hovered))))}addItem(Ke){}removeItem(Ke){}_handleKeydown(Ke){const ne=Ke.keyCode,ct=this._keyManager;switch(ne){case v.hY:(0,v.Vb)(Ke)||(Ke.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(ne===v.LH||ne===v.JH)&&ct.setFocusOrigin("keyboard"),void ct.onKeydown(Ke)}Ke.stopPropagation()}focusFirstItem(Ke="program"){this._ngZone.onStable.pipe((0,I.q)(1)).subscribe(()=>{let ne=null;if(this._directDescendantItems.length&&(ne=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!ne||!ne.contains(document.activeElement)){const ct=this._keyManager;ct.setFocusOrigin(Ke).setFirstItemActive(),!ct.activeItem&&ne&&ne.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Ke){const ne=Math.min(this._baseElevation+Ke,24),ct=`${this._elevationPrefix}${ne}`,it=Object.keys(this._classList).find(kt=>kt.startsWith(this._elevationPrefix));(!it||it===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[ct]=!0,this._previousElevation=ct)}setPositionClasses(Ke=this.xPosition,ne=this.yPosition){const ct=this._classList;ct["mat-menu-before"]="before"===Ke,ct["mat-menu-after"]="after"===Ke,ct["mat-menu-above"]="above"===ne,ct["mat-menu-below"]="below"===ne,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Ke){this._animationDone.next(Ke),this._isAnimating=!1}_onAnimationStart(Ke){this._isAnimating=!0,"enter"===Ke.toState&&0===this._keyManager.activeItemIndex&&(Ke.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,D.O)(this._allItems)).subscribe(Ke=>{this._directDescendantItems.reset(Ke.filter(ne=>ne._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return bi.\u0275fac=function(Ke){return new(Ke||bi)(T.Y36(T.SBq),T.Y36(T.R0b),T.Y36(Kt),T.Y36(T.sBO))},bi.\u0275dir=T.lG2({type:bi,contentQueries:function(Ke,ne,ct){if(1&Ke&&(T.Suo(ct,Jt,5),T.Suo(ct,ae,5),T.Suo(ct,ae,4)),2&Ke){let it;T.iGM(it=T.CRH())&&(ne.lazyContent=it.first),T.iGM(it=T.CRH())&&(ne._allItems=it),T.iGM(it=T.CRH())&&(ne.items=it)}},viewQuery:function(Ke,ne){if(1&Ke&&T.Gf(T.Rgc,5),2&Ke){let ct;T.iGM(ct=T.CRH())&&(ne.templateRef=ct.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"}}),bi})(),Pe=(()=>{class bi extends re{constructor(Ke,ne,ct,it){super(Ke,ne,ct,it),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return bi.\u0275fac=function(Ke){return new(Ke||bi)(T.Y36(T.SBq),T.Y36(T.R0b),T.Y36(Kt),T.Y36(T.sBO))},bi.\u0275cmp=T.Xpm({type:bi,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(Ke,ne){2&Ke&&T.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[T._Bn([{provide:Xt,useExisting:bi}]),T.qOj],ngContentSelectors:ft,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(Ke,ne){1&Ke&&(T.F$t(),T.YNc(0,Et,3,6,"ng-template"))},dependencies:[bt.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:[Bt.transformMenu,Bt.fadeInItems]},changeDetection:0}),bi})();const on=new T.OlP("mat-menu-scroll-strategy"),ye={provide:on,deps:[zt.aV],useFactory:function _n(bi){return()=>bi.scrollStrategies.reposition()}},Ue=(0,Vt.i$)({passive:!0});let un=(()=>{class bi{constructor(Ke,ne,ct,it,kt,Gt,oe,Ce,Ee){this._overlay=Ke,this._element=ne,this._viewContainerRef=ct,this._menuItemInstance=Gt,this._dir=oe,this._focusMonitor=Ce,this._ngZone=Ee,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=A.w.EMPTY,this._hoverSubscription=A.w.EMPTY,this._menuCloseSubscription=A.w.EMPTY,this._handleTouchStart=Pn=>{(0,d.yG)(Pn)||(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=it,this._parentMaterialMenu=kt instanceof re?kt:void 0,ne.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ue),Gt&&(Gt._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Ke){this.menu=Ke}get menu(){return this._menu}set menu(Ke){Ke!==this._menu&&(this._menu=Ke,this._menuCloseSubscription.unsubscribe(),Ke&&(this._menuCloseSubscription=Ke.close.subscribe(ne=>{this._destroyMenu(ne),("click"===ne||"tab"===ne)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(ne)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ue),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 Ke=this.menu;if(this._menuOpen||!Ke)return;const ne=this._createOverlay(Ke),ct=ne.getConfig(),it=ct.positionStrategy;this._setPosition(Ke,it),ct.hasBackdrop=Ke.hasBackdrop??!this.triggersSubmenu(),ne.attach(this._getPortal(Ke)),Ke.lazyContent&&Ke.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Ke),Ke instanceof re&&(Ke._startAnimation(),Ke._directDescendantItems.changes.pipe((0,z.R)(Ke.close)).subscribe(()=>{it.withLockedPosition(!1).reapplyLastPosition(),it.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Ke,ne){this._focusMonitor&&Ke?this._focusMonitor.focusVia(this._element,Ke,ne):this._element.nativeElement.focus(ne)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Ke){if(!this._overlayRef||!this.menuOpen)return;const ne=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Ke||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,ne instanceof re?(ne._resetAnimation(),ne.lazyContent?ne._animationDone.pipe((0,G.h)(ct=>"void"===ct.toState),(0,I.q)(1),(0,z.R)(ne.lazyContent._attached)).subscribe({next:()=>ne.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),ne?.lazyContent?.detach())}_initMenu(Ke){Ke.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Ke.direction=this.dir,this._setMenuElevation(Ke),Ke.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(Ke){if(Ke.setElevation){let ne=0,ct=Ke.parentMenu;for(;ct;)ne++,ct=ct.parentMenu;Ke.setElevation(ne)}}_setIsMenuOpen(Ke){this._menuOpen=Ke,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Ke)}_createOverlay(Ke){if(!this._overlayRef){const ne=this._getOverlayConfig(Ke);this._subscribeToPositions(Ke,ne.positionStrategy),this._overlayRef=this._overlay.create(ne),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(Ke){return new zt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Ke.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Ke.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(Ke,ne){Ke.setPositionClasses&&ne.positionChanges.subscribe(ct=>{const it="start"===ct.connectionPair.overlayX?"after":"before",kt="top"===ct.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>Ke.setPositionClasses(it,kt)):Ke.setPositionClasses(it,kt)})}_setPosition(Ke,ne){let[ct,it]="before"===Ke.xPosition?["end","start"]:["start","end"],[kt,Gt]="above"===Ke.yPosition?["bottom","top"]:["top","bottom"],[oe,Ce]=[kt,Gt],[Ee,Pn]=[ct,it],Ln=0;if(this.triggersSubmenu()){if(Pn=ct="before"===Ke.xPosition?"start":"end",it=Ee="end"===ct?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const mi=this._parentMaterialMenu.items.first;this._parentInnerPadding=mi?mi._getHostElement().offsetTop:0}Ln="bottom"===kt?this._parentInnerPadding:-this._parentInnerPadding}}else Ke.overlapTrigger||(oe="top"===kt?"bottom":"top",Ce="top"===Gt?"bottom":"top");ne.withPositions([{originX:ct,originY:oe,overlayX:Ee,overlayY:kt,offsetY:Ln},{originX:it,originY:oe,overlayX:Pn,overlayY:kt,offsetY:Ln},{originX:ct,originY:Ce,overlayX:Ee,overlayY:Gt,offsetY:-Ln},{originX:it,originY:Ce,overlayX:Pn,overlayY:Gt,offsetY:-Ln}])}_menuClosingActions(){const Ke=this._overlayRef.backdropClick(),ne=this._overlayRef.detachments(),ct=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,U.of)(),it=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,G.h)(kt=>kt!==this._menuItemInstance),(0,G.h)(()=>this._menuOpen)):(0,U.of)();return(0,C.T)(Ke,ct,it,ne)}_handleMousedown(Ke){(0,d.X6)(Ke)||(this._openedBy=0===Ke.button?"mouse":void 0,this.triggersSubmenu()&&Ke.preventDefault())}_handleKeydown(Ke){const ne=Ke.keyCode;(ne===v.K5||ne===v.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(ne===v.SV&&"ltr"===this.dir||ne===v.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Ke){this.triggersSubmenu()?(Ke.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,G.h)(Ke=>Ke===this._menuItemInstance&&!Ke.disabled),(0,K.g)(0,k.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof re&&this.menu._isAnimating?this.menu._animationDone.pipe((0,I.q)(1),(0,K.g)(0,k.E),(0,z.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Ke){return(!this._portal||this._portal.templateRef!==Ke.templateRef)&&(this._portal=new lt.UE(Ke.templateRef,this._viewContainerRef)),this._portal}}return bi.\u0275fac=function(Ke){return new(Ke||bi)(T.Y36(zt.aV),T.Y36(T.SBq),T.Y36(T.s_b),T.Y36(on),T.Y36(Xt,8),T.Y36(ae,10),T.Y36(Dt.Is,8),T.Y36(d.tE),T.Y36(T.R0b))},bi.\u0275dir=T.lG2({type:bi,hostVars:3,hostBindings:function(Ke,ne){1&Ke&&T.NdJ("click",function(it){return ne._handleClick(it)})("mousedown",function(it){return ne._handleMousedown(it)})("keydown",function(it){return ne._handleKeydown(it)}),2&Ke&&T.uIk("aria-haspopup",ne.menu?"menu":null)("aria-expanded",ne.menuOpen||null)("aria-controls",ne.menuOpen?ne.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"}}),bi})(),Mn=(()=>{class bi extends un{}return bi.\u0275fac=function(){let ri;return function(ne){return(ri||(ri=T.n5z(bi)))(ne||bi)}}(),bi.\u0275dir=T.lG2({type:bi,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[T.qOj]}),bi})(),oi=(()=>{class bi{}return bi.\u0275fac=function(Ke){return new(Ke||bi)},bi.\u0275mod=T.oAB({type:bi}),bi.\u0275inj=T.cJS({providers:[ye],imports:[bt.ez,Pt.BQ,Pt.si,zt.U8,nt.ZD,Pt.BQ]}),bi})()},98739:(ot,et,b)=>{"use strict";b.d(et,{NW:()=>Tt,TU:()=>At});var d=b(36895),p=b(94650),v=b(3238),T=b(4859),t=b(84385),A=b(10266),C=b(21281),U=b(8929),k=b(59549);function D(ft,Et){if(1&ft&&(p.TgZ(0,"mat-option",19),p._uU(1),p.qZA()),2&ft){const Bt=Et.$implicit;p.Q6J("value",Bt),p.xp6(1),p.hij(" ",Bt," ")}}function P(ft,Et){if(1&ft){const Bt=p.EpF();p.TgZ(0,"mat-form-field",16)(1,"mat-select",17),p.NdJ("selectionChange",function(se){p.CHM(Bt);const Jt=p.oxw(2);return p.KtG(Jt._changePageSize(se.value))}),p.YNc(2,D,2,2,"mat-option",18),p.qZA()()}if(2&ft){const Bt=p.oxw(2);p.Q6J("appearance",Bt._formFieldAppearance)("color",Bt.color),p.xp6(1),p.Q6J("value",Bt.pageSize)("disabled",Bt.disabled)("panelClass",Bt.selectConfig.panelClass||"")("disableOptionCentering",Bt.selectConfig.disableOptionCentering)("aria-label",Bt._intl.itemsPerPageLabel),p.xp6(1),p.Q6J("ngForOf",Bt._displayedPageSizeOptions)}}function I(ft,Et){if(1&ft&&(p.TgZ(0,"div",20),p._uU(1),p.qZA()),2&ft){const Bt=p.oxw(2);p.xp6(1),p.Oqu(Bt.pageSize)}}function z(ft,Et){if(1&ft&&(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&ft){const Bt=p.oxw();p.xp6(2),p.hij(" ",Bt._intl.itemsPerPageLabel," "),p.xp6(1),p.Q6J("ngIf",Bt._displayedPageSizeOptions.length>1),p.xp6(1),p.Q6J("ngIf",Bt._displayedPageSizeOptions.length<=1)}}function G(ft,Et){if(1&ft){const Bt=p.EpF();p.TgZ(0,"button",21),p.NdJ("click",function(){p.CHM(Bt);const se=p.oxw();return p.KtG(se.firstPage())}),p.O4$(),p.TgZ(1,"svg",7),p._UZ(2,"path",22),p.qZA()()}if(2&ft){const Bt=p.oxw();p.Q6J("matTooltip",Bt._intl.firstPageLabel)("matTooltipDisabled",Bt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Bt._previousButtonsDisabled()),p.uIk("aria-label",Bt._intl.firstPageLabel)}}function K(ft,Et){if(1&ft){const Bt=p.EpF();p.O4$(),p.kcU(),p.TgZ(0,"button",23),p.NdJ("click",function(){p.CHM(Bt);const se=p.oxw();return p.KtG(se.lastPage())}),p.O4$(),p.TgZ(1,"svg",7),p._UZ(2,"path",24),p.qZA()()}if(2&ft){const Bt=p.oxw();p.Q6J("matTooltip",Bt._intl.lastPageLabel)("matTooltipDisabled",Bt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Bt._nextButtonsDisabled()),p.uIk("aria-label",Bt._intl.lastPageLabel)}}let at=(()=>{class ft{constructor(){this.changes=new U.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Bt,It,se)=>{if(0==se||0==It)return`0 of ${se}`;const Jt=Bt*It;return`${Jt+1} \u2013 ${Jt<(se=Math.max(se,0))?Math.min(Jt+It,se):Jt+It} of ${se}`}}}return ft.\u0275fac=function(Bt){return new(Bt||ft)},ft.\u0275prov=p.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})();const bt={provide:at,deps:[[new p.FiY,new p.tp0,at]],useFactory:function lt(ft){return ft||new at}},zt=new p.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Vt=(0,v.Id)((0,v.dB)(class{}));let nt=(()=>{class ft extends Vt{constructor(Bt,It,se){if(super(),this._intl=Bt,this._changeDetectorRef=It,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new p.vpe,this._intlChanges=Bt.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),se){const{pageSize:Jt,pageSizeOptions:ve,hidePageSize:xe,showFirstLastButtons:Oe}=se;null!=Jt&&(this._pageSize=Jt),null!=ve&&(this._pageSizeOptions=ve),null!=xe&&(this._hidePageSize=xe),null!=Oe&&(this._showFirstLastButtons=Oe)}}get pageIndex(){return this._pageIndex}set pageIndex(Bt){this._pageIndex=Math.max((0,C.su)(Bt),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Bt){this._length=(0,C.su)(Bt),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Bt){this._pageSize=Math.max((0,C.su)(Bt),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Bt){this._pageSizeOptions=(Bt||[]).map(It=>(0,C.su)(It)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Bt){this._hidePageSize=(0,C.Ig)(Bt)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Bt){this._showFirstLastButtons=(0,C.Ig)(Bt)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const Bt=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(Bt)}previousPage(){if(!this.hasPreviousPage())return;const Bt=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(Bt)}firstPage(){if(!this.hasPreviousPage())return;const Bt=this.pageIndex;this.pageIndex=0,this._emitPageEvent(Bt)}lastPage(){if(!this.hasNextPage())return;const Bt=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(Bt)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Bt=this.getNumberOfPages()-1;return this.pageIndexBt-It),this._changeDetectorRef.markForCheck())}_emitPageEvent(Bt){this.page.emit({previousPageIndex:Bt,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ft.\u0275fac=function(Bt){p.$Z()},ft.\u0275dir=p.lG2({type:ft,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[p.qOj]}),ft})(),Tt=(()=>{class ft extends nt{constructor(Bt,It,se){super(Bt,It,se),se&&null!=se.formFieldAppearance&&(this._formFieldAppearance=se.formFieldAppearance)}}return ft.\u0275fac=function(Bt){return new(Bt||ft)(p.Y36(at),p.Y36(p.sBO),p.Y36(zt,8))},ft.\u0275cmp=p.Xpm({type:ft,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(Bt,It){1&Bt&&(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 It.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 It.nextPage()}),p.O4$(),p.TgZ(11,"svg",7),p._UZ(12,"path",10),p.qZA()(),p.YNc(13,K,3,5,"button",11),p.qZA()()()),2&Bt&&(p.xp6(2),p.Q6J("ngIf",!It.hidePageSize),p.xp6(3),p.hij(" ",It._intl.getRangeLabel(It.pageIndex,It.pageSize,It.length)," "),p.xp6(1),p.Q6J("ngIf",It.showFirstLastButtons),p.xp6(1),p.Q6J("matTooltip",It._intl.previousPageLabel)("matTooltipDisabled",It._previousButtonsDisabled())("matTooltipPosition","above")("disabled",It._previousButtonsDisabled()),p.uIk("aria-label",It._intl.previousPageLabel),p.xp6(3),p.Q6J("matTooltip",It._intl.nextPageLabel)("matTooltipDisabled",It._nextButtonsDisabled())("matTooltipPosition","above")("disabled",It._nextButtonsDisabled()),p.uIk("aria-label",It._intl.nextPageLabel),p.xp6(3),p.Q6J("ngIf",It.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}),ft})(),At=(()=>{class ft{}return ft.\u0275fac=function(Bt){return new(Bt||ft)},ft.\u0275mod=p.oAB({type:ft}),ft.\u0275inj=p.cJS({providers:[bt],imports:[d.ez,T.ot,t.LD,A.AV,v.BQ]}),ft})()},73162:(ot,et,b)=>{"use strict";b.d(et,{Cv:()=>at,pW:()=>G});var d=b(94650),p=b(36895),v=b(3238),T=b(21281),t=b(42654),A=b(23753),C=b(92198);const U=["primaryValueBar"],k=(0,v.pj)(class{constructor(lt){this._elementRef=lt}},"primary"),D=new d.OlP("mat-progress-bar-location",{providedIn:"root",factory:function P(){const lt=(0,d.f3M)(p.K0),bt=lt?lt.location:null;return{getPathname:()=>bt?bt.pathname+bt.search:""}}}),I=new d.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let z=0,G=(()=>{class lt extends k{constructor(Pt,Dt,zt,Vt,nt,Tt){super(Pt),this._ngZone=Dt,this._animationMode=zt,this._changeDetectorRef=Tt,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 At=Vt?Vt.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${At}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===zt,nt&&(nt.color&&(this.color=this.defaultColor=nt.color),this.mode=nt.mode||this.mode)}get value(){return this._value}set value(Pt){this._value=K((0,T.su)(Pt)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(Pt){this._bufferValue=K(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,C.h)(Dt=>Dt.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 lt.\u0275fac=function(Pt){return new(Pt||lt)(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))},lt.\u0275cmp=d.Xpm({type:lt,selectors:[["mat-progress-bar"]],viewQuery:function(Pt,Dt){if(1&Pt&&d.Gf(U,5),2&Pt){let zt;d.iGM(zt=d.CRH())&&(Dt._primaryValueBar=zt.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(Pt,Dt){2&Pt&&(d.uIk("aria-valuenow","indeterminate"===Dt.mode||"query"===Dt.mode?null:Dt.value)("mode",Dt.mode),d.ekj("_mat-animation-noopable",Dt._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,Dt){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",Dt.progressbarId),d.xp6(2),d.uIk("fill",Dt._rectangleFillValue),d.xp6(1),d.Q6J("ngStyle",Dt._bufferTransform()),d.xp6(1),d.Q6J("ngStyle",Dt._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}),lt})();function K(lt,bt=0,Pt=100){return Math.max(bt,Math.min(Pt,lt))}let at=(()=>{class lt{}return lt.\u0275fac=function(Pt){return new(Pt||lt)},lt.\u0275mod=d.oAB({type:lt}),lt.\u0275inj=d.cJS({imports:[p.ez,v.BQ,v.BQ]}),lt})()},51572:(ot,et,b)=>{"use strict";b.d(et,{Cq:()=>lt,Ou:()=>at});var d=b(21281),p=b(83353),v=b(67376),T=b(36895),t=b(94650),A=b(3238),C=b(42654);function U(Pt,Dt){if(1&Pt&&(t.O4$(),t._UZ(0,"circle",4)),2&Pt){const zt=t.oxw(),Vt=t.MAs(1);t.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+zt._spinnerAnimationLabel)("stroke-dashoffset",zt._getStrokeDashOffset(),"px")("stroke-dasharray",zt._getStrokeCircumference(),"px")("stroke-width",zt._getCircleStrokeWidth(),"%")("transform-origin",zt._getCircleTransformOrigin(Vt)),t.uIk("r",zt._getCircleRadius())}}function k(Pt,Dt){if(1&Pt&&(t.O4$(),t._UZ(0,"circle",4)),2&Pt){const zt=t.oxw(),Vt=t.MAs(1);t.Udp("stroke-dashoffset",zt._getStrokeDashOffset(),"px")("stroke-dasharray",zt._getStrokeCircumference(),"px")("stroke-width",zt._getCircleStrokeWidth(),"%")("transform-origin",zt._getCircleTransformOrigin(Vt)),t.uIk("r",zt._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 at extends I{constructor(Dt,zt,Vt,nt,Tt,At,ft,Et){super(Dt),this._document=Vt,this._diameter=100,this._value=0,this._resizeSubscription=C.w.EMPTY,this.mode="determinate";const Bt=at._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Bt.has(Vt.head)||Bt.set(Vt.head,new Set([100])),this._noopAnimations="NoopAnimations"===nt&&!!Tt&&!Tt._forceAnimations,"mat-spinner"===Dt.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Tt&&(Tt.color&&(this.color=this.defaultColor=Tt.color),Tt.diameter&&(this.diameter=Tt.diameter),Tt.strokeWidth&&(this.strokeWidth=Tt.strokeWidth)),zt.isBrowser&&zt.SAFARI&&ft&&At&&Et&&(this._resizeSubscription=ft.change(150).subscribe(()=>{"indeterminate"===this.mode&&Et.run(()=>At.markForCheck())}))}get diameter(){return this._diameter}set diameter(Dt){this._diameter=(0,d.su)(Dt),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(Dt){this._strokeWidth=(0,d.su)(Dt)}get value(){return"determinate"===this.mode?this._value:0}set value(Dt){this._value=Math.max(0,Math.min(100,(0,d.su)(Dt)))}ngOnInit(){const Dt=this._elementRef.nativeElement;this._styleRoot=(0,p.kV)(Dt)||this._document.head,this._attachStyleNode(),Dt.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const Dt=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${Dt} ${Dt}`}_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(Dt){const zt=50*(Dt.currentScale??1);return`${zt}% ${zt}%`}_attachStyleNode(){const Dt=this._styleRoot,zt=this._diameter,Vt=at._diameters;let nt=Vt.get(Dt);if(!nt||!nt.has(zt)){const Tt=this._document.createElement("style");Tt.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Tt.textContent=this._getAnimationText(),Dt.appendChild(Tt),nt||(nt=new Set,Vt.set(Dt,nt)),nt.add(zt)}}_getAnimationText(){const Dt=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*Dt).replace(/END_VALUE/g,""+.2*Dt).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}at._diameters=new WeakMap,at.\u0275fac=function(Dt){return new(Dt||at)(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))},at.\u0275cmp=t.Xpm({type:at,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(Dt,zt){2&Dt&&(t.uIk("aria-valuemin","determinate"===zt.mode?0:null)("aria-valuemax","determinate"===zt.mode?100:null)("aria-valuenow","determinate"===zt.mode?zt.value:null)("mode",zt.mode),t.Udp("width",zt.diameter,"px")("height",zt.diameter,"px"),t.ekj("_mat-animation-noopable",zt._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(Dt,zt){1&Dt&&(t.O4$(),t.TgZ(0,"svg",0,1),t.YNc(2,U,1,11,"circle",2),t.YNc(3,k,1,9,"circle",3),t.qZA()),2&Dt&&(t.Udp("width",zt.diameter,"px")("height",zt.diameter,"px"),t.Q6J("ngSwitch","indeterminate"===zt.mode),t.uIk("viewBox",zt._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 lt=(()=>{class Pt{}return Pt.\u0275fac=function(zt){return new(zt||Pt)},Pt.\u0275mod=t.oAB({type:Pt}),Pt.\u0275inj=t.cJS({imports:[A.BQ,T.ez,A.BQ]}),Pt})()},71948:(ot,et,b)=>{"use strict";b.d(et,{Fk:()=>Vt,U0:()=>zt,VQ:()=>lt});var d=b(94650),p=b(3238),v=b(12687),T=b(21281),t=b(95017),A=b(24006);const C=["input"],U=function(nt){return{enterDuration:nt}},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)(()=>lt),multi:!0};class G{constructor(Tt,At){this.source=Tt,this.value=At}}const K=new d.OlP("MatRadioGroup");let at=(()=>{class nt{constructor(At){this._changeDetector=At,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(At){this._name=At,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(At){this._labelPosition="before"===At?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(At){this._value!==At&&(this._value=At,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(At){this._selected=At,this.value=At?At.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(At){this._disabled=(0,T.Ig)(At),this._markRadiosForCheck()}get required(){return this._required}set required(At){this._required=(0,T.Ig)(At),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(At=>{At.name=this.name,At._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(ft=>{ft.checked=this.value===ft.value,ft.checked&&(this._selected=ft)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new G(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(At=>At._markForCheck())}writeValue(At){this.value=At,this._changeDetector.markForCheck()}registerOnChange(At){this._controlValueAccessorChangeFn=At}registerOnTouched(At){this.onTouched=At}setDisabledState(At){this.disabled=At,this._changeDetector.markForCheck()}}return nt.\u0275fac=function(At){return new(At||nt)(d.Y36(d.sBO))},nt.\u0275dir=d.lG2({type:nt,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),nt})(),lt=(()=>{class nt extends at{}return nt.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=d.n5z(nt)))(ft||nt)}}(),nt.\u0275dir=d.lG2({type:nt,selectors:[["mat-radio-group"]],contentQueries:function(At,ft,Et){if(1&At&&d.Suo(Et,zt,5),2&At){let Bt;d.iGM(Bt=d.CRH())&&(ft._radios=Bt)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[d._Bn([z,{provide:K,useExisting:nt}]),d.qOj]}),nt})();class bt{constructor(Tt){this._elementRef=Tt}}const Pt=(0,p.Kr)((0,p.sb)(bt));let Dt=(()=>{class nt extends Pt{constructor(At,ft,Et,Bt,It,se,Jt,ve){super(ft),this._changeDetector=Et,this._focusMonitor=Bt,this._radioDispatcher=It,this._providerOverride=Jt,this._uniqueId="mat-radio-"+ ++I,this.id=this._uniqueId,this.change=new d.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=At,this._noopAnimations="NoopAnimations"===se,ve&&(this.tabIndex=(0,T.su)(ve,0)),this._removeUniqueSelectionListener=It.listen((xe,Oe)=>{xe!==this.id&&Oe===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(At){const ft=(0,T.Ig)(At);this._checked!==ft&&(this._checked=ft,ft&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!ft&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),ft&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(At){this._value!==At&&(this._value=At,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===At),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(At){this._labelPosition=At}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(At){this._setDisabled((0,T.Ig)(At))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(At){this._required=(0,T.Ig)(At)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(At){this._color=At}get inputId(){return`${this.id||this._uniqueId}-input`}focus(At,ft){ft?this._focusMonitor.focusVia(this._inputElement,ft,At):this._inputElement.nativeElement.focus(At)}_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(At=>{!At&&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(At){At.stopPropagation()}_onInputInteraction(At){if(At.stopPropagation(),!this.checked&&!this.disabled){const ft=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),ft&&this.radioGroup._emitChangeEvent())}}_setDisabled(At){this._disabled!==At&&(this._disabled=At,this._changeDetector.markForCheck())}_updateTabIndex(){const At=this.radioGroup;let ft;if(ft=At&&At.selected&&!this.disabled?At.selected===this?this.tabIndex:-1:this.tabIndex,ft!==this._previousTabIndex){const Et=this._inputElement?.nativeElement;Et&&(Et.setAttribute("tabindex",ft+""),this._previousTabIndex=ft)}}}return nt.\u0275fac=function(At){d.$Z()},nt.\u0275dir=d.lG2({type:nt,viewQuery:function(At,ft){if(1&At&&d.Gf(C,5),2&At){let Et;d.iGM(Et=d.CRH())&&(ft._inputElement=Et.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]}),nt})(),zt=(()=>{class nt extends Dt{constructor(At,ft,Et,Bt,It,se,Jt,ve){super(At,ft,Et,Bt,It,se,Jt,ve)}}return nt.\u0275fac=function(At){return new(At||nt)(d.Y36(K,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"))},nt.\u0275cmp=d.Xpm({type:nt,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(At,ft){1&At&&d.NdJ("focus",function(){return ft._inputElement.nativeElement.focus()}),2&At&&(d.uIk("tabindex",null)("id",ft.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),d.ekj("mat-radio-checked",ft.checked)("mat-radio-disabled",ft.disabled)("_mat-animation-noopable",ft._noopAnimations)("mat-primary","primary"===ft.color)("mat-accent","accent"===ft.color)("mat-warn","warn"===ft.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(At,ft){if(1&At&&(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(Bt){return ft._onInputInteraction(Bt)})("click",function(Bt){return ft._onInputClick(Bt)}),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&At){const Et=d.MAs(1);d.uIk("for",ft.inputId),d.xp6(5),d.Q6J("id",ft.inputId)("checked",ft.checked)("disabled",ft.disabled)("required",ft.required),d.uIk("name",ft.name)("value",ft.value)("aria-label",ft.ariaLabel)("aria-labelledby",ft.ariaLabelledby)("aria-describedby",ft.ariaDescribedby),d.xp6(2),d.Q6J("matRippleTrigger",Et)("matRippleDisabled",ft._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",d.VKq(17,U,ft._noopAnimations?0:150)),d.xp6(2),d.ekj("mat-radio-label-before","before"==ft.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}),nt})(),Vt=(()=>{class nt{}return nt.\u0275fac=function(At){return new(At||nt)},nt.\u0275mod=d.oAB({type:nt}),nt.\u0275inj=d.cJS({imports:[p.si,p.BQ,p.BQ]}),nt})()},84385:(ot,et,b)=>{"use strict";b.d(et,{LD:()=>ri,gD:()=>bi});var d=b(98184),p=b(36895),v=b(94650),T=b(3238),t=b(59549),A=b(67376),C=b(12687),U=b(40445),k=b(21281),D=b(95017),P=b(29521),I=b(24006),z=b(8929),G=b(88514),K=b(36787),at=b(1059),lt=b(87545),bt=b(72986),Pt=b(92198),Dt=b(24850),zt=b(75778),Vt=b(7625),nt=b(37340);const Tt=["trigger"],At=["panel"];function ft(Ke,ne){if(1&Ke&&(v.TgZ(0,"span",8),v._uU(1),v.qZA()),2&Ke){const ct=v.oxw();v.xp6(1),v.Oqu(ct.placeholder)}}function Et(Ke,ne){if(1&Ke&&(v.TgZ(0,"span",12),v._uU(1),v.qZA()),2&Ke){const ct=v.oxw(2);v.xp6(1),v.Oqu(ct.triggerValue)}}function Bt(Ke,ne){1&Ke&&v.Hsn(0,0,["*ngSwitchCase","true"])}function It(Ke,ne){if(1&Ke&&(v.TgZ(0,"span",9),v.YNc(1,Et,2,1,"span",10),v.YNc(2,Bt,1,0,"ng-content",11),v.qZA()),2&Ke){const ct=v.oxw();v.Q6J("ngSwitch",!!ct.customTrigger),v.xp6(2),v.Q6J("ngSwitchCase",!0)}}function se(Ke,ne){if(1&Ke){const ct=v.EpF();v.TgZ(0,"div",13)(1,"div",14,15),v.NdJ("@transformPanel.done",function(kt){v.CHM(ct);const Gt=v.oxw();return v.KtG(Gt._panelDoneAnimatingStream.next(kt.toState))})("keydown",function(kt){v.CHM(ct);const Gt=v.oxw();return v.KtG(Gt._handleKeydown(kt))}),v.Hsn(3,1),v.qZA()()}if(2&Ke){const ct=v.oxw();v.Q6J("@transformPanelWrap",void 0),v.xp6(1),v.Gre("mat-select-panel ",ct._getPanelTheme(),""),v.Udp("transform-origin",ct._transformOrigin)("font-size",ct._triggerFontSize,"px"),v.Q6J("ngClass",ct.panelClass)("@transformPanel",ct.multiple?"showing-multiple":"showing"),v.uIk("id",ct.id+"-panel")("aria-multiselectable",ct.multiple)("aria-label",ct.ariaLabel||null)("aria-labelledby",ct._getPanelAriaLabelledby())}}const Jt=[[["mat-select-trigger"]],"*"],ve=["mat-select-trigger","*"],xe={transformPanelWrap:(0,nt.X$)("transformPanelWrap",[(0,nt.eR)("* => void",(0,nt.IO)("@transformPanel",[(0,nt.pV)()],{optional:!0}))]),transformPanel:(0,nt.X$)("transformPanel",[(0,nt.SB)("void",(0,nt.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,nt.SB)("showing",(0,nt.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,nt.SB)("showing-multiple",(0,nt.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,nt.eR)("void => *",(0,nt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,nt.eR)("* => void",(0,nt.jt)("100ms 25ms linear",(0,nt.oB)({opacity:0})))])};let Xt=0;const Pe=new v.OlP("mat-select-scroll-strategy"),_n=new v.OlP("MAT_SELECT_CONFIG"),ye={provide:Pe,deps:[d.aV],useFactory:function on(Ke){return()=>Ke.scrollStrategies.reposition()}};class gn{constructor(ne,ct){this.source=ne,this.value=ct}}const Ue=(0,T.Kr)((0,T.sb)((0,T.Id)((0,T.FD)(class{constructor(Ke,ne,ct,it,kt){this._elementRef=Ke,this._defaultErrorStateMatcher=ne,this._parentForm=ct,this._parentFormGroup=it,this.ngControl=kt,this.stateChanges=new z.xQ}})))),un=new v.OlP("MatSelectTrigger");let oi=(()=>{class Ke extends Ue{constructor(ct,it,kt,Gt,oe,Ce,Ee,Pn,Ln,mi,Oi,ho,fi,Yn){super(oe,Gt,Ee,Pn,mi),this._viewportRuler=ct,this._changeDetectorRef=it,this._ngZone=kt,this._dir=Ce,this._parentFormField=Ln,this._liveAnnouncer=fi,this._defaultOptions=Yn,this._panelOpen=!1,this._compareWith=(jn,Ye)=>jn===Ye,this._uid="mat-select-"+Xt++,this._triggerAriaLabelledBy=null,this._destroy=new z.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Xt++,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 jn=this.options;return jn?jn.changes.pipe((0,at.O)(jn),(0,lt.w)(()=>(0,K.T)(...jn.map(Ye=>Ye.onSelectionChange)))):this._ngZone.onStable.pipe((0,bt.q)(1),(0,lt.w)(()=>this.optionSelectionChanges))}),this.openedChange=new v.vpe,this._openedStream=this.openedChange.pipe((0,Pt.h)(jn=>jn),(0,Dt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Pt.h)(jn=>!jn),(0,Dt.U)(()=>{})),this.selectionChange=new v.vpe,this.valueChange=new v.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Yn?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Yn.typeaheadDebounceInterval),this._scrollStrategyFactory=ho,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Oi)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(ct){this._placeholder=ct,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(I.kI.required)??!1}set required(ct){this._required=(0,k.Ig)(ct),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(ct){this._multiple=(0,k.Ig)(ct)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(ct){this._disableOptionCentering=(0,k.Ig)(ct)}get compareWith(){return this._compareWith}set compareWith(ct){this._compareWith=ct,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(ct){this._assignValue(ct)&&this._onChange(ct)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(ct){this._typeaheadDebounceInterval=(0,k.su)(ct)}get id(){return this._id}set id(ct){this._id=ct||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new D.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,zt.x)(),(0,Vt.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Vt.R)(this._destroy)).subscribe(ct=>{ct.added.forEach(it=>it.select()),ct.removed.forEach(it=>it.deselect())}),this.options.changes.pipe((0,at.O)(null),(0,Vt.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const ct=this._getTriggerAriaLabelledby(),it=this.ngControl;if(ct!==this._triggerAriaLabelledBy){const kt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=ct,ct?kt.setAttribute("aria-labelledby",ct):kt.removeAttribute("aria-labelledby")}it&&(this._previousControl!==it.control&&(void 0!==this._previousControl&&null!==it.disabled&&it.disabled!==this.disabled&&(this.disabled=it.disabled),this._previousControl=it.control),this.updateErrorState())}ngOnChanges(ct){(ct.disabled||ct.userAriaDescribedBy)&&this.stateChanges.next(),ct.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(ct){this._assignValue(ct)}registerOnChange(ct){this._onChange=ct}registerOnTouched(ct){this._onTouched=ct}setDisabledState(ct){this.disabled=ct,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 ct=this._selectionModel.selected.map(it=>it.viewValue);return this._isRtl()&&ct.reverse(),ct.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(ct){this.disabled||(this.panelOpen?this._handleOpenKeydown(ct):this._handleClosedKeydown(ct))}_handleClosedKeydown(ct){const it=ct.keyCode,kt=it===P.JH||it===P.LH||it===P.oh||it===P.SV,Gt=it===P.K5||it===P.L_,oe=this._keyManager;if(!oe.isTyping()&&Gt&&!(0,P.Vb)(ct)||(this.multiple||ct.altKey)&&kt)ct.preventDefault(),this.open();else if(!this.multiple){const Ce=this.selected;oe.onKeydown(ct);const Ee=this.selected;Ee&&Ce!==Ee&&this._liveAnnouncer.announce(Ee.viewValue,1e4)}}_handleOpenKeydown(ct){const it=this._keyManager,kt=ct.keyCode,Gt=kt===P.JH||kt===P.LH,oe=it.isTyping();if(Gt&&ct.altKey)ct.preventDefault(),this.close();else if(oe||kt!==P.K5&&kt!==P.L_||!it.activeItem||(0,P.Vb)(ct))if(!oe&&this._multiple&&kt===P.A&&ct.ctrlKey){ct.preventDefault();const Ce=this.options.some(Ee=>!Ee.disabled&&!Ee.selected);this.options.forEach(Ee=>{Ee.disabled||(Ce?Ee.select():Ee.deselect())})}else{const Ce=it.activeItemIndex;it.onKeydown(ct),this._multiple&&Gt&&ct.shiftKey&&it.activeItem&&it.activeItemIndex!==Ce&&it.activeItem._selectViaInteraction()}else ct.preventDefault(),it.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,bt.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(ct){if(this._selectionModel.selected.forEach(it=>it.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&ct)Array.isArray(ct),ct.forEach(it=>this._selectOptionByValue(it)),this._sortValues();else{const it=this._selectOptionByValue(ct);it?this._keyManager.updateActiveItem(it):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(ct){const it=this.options.find(kt=>{if(this._selectionModel.isSelected(kt))return!1;try{return null!=kt.value&&this._compareWith(kt.value,ct)}catch{return!1}});return it&&this._selectionModel.select(it),it}_assignValue(ct){return!!(ct!==this._value||this._multiple&&Array.isArray(ct))&&(this.options&&this._setSelectionByValue(ct),this._value=ct,!0)}_initKeyManager(){this._keyManager=new C.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,Vt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,Vt.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 ct=(0,K.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Vt.R)(ct)).subscribe(it=>{this._onSelect(it.source,it.isUserInput),it.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,K.T)(...this.options.map(it=>it._stateChanges)).pipe((0,Vt.R)(ct)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(ct,it){const kt=this._selectionModel.isSelected(ct);null!=ct.value||this._multiple?(kt!==ct.selected&&(ct.selected?this._selectionModel.select(ct):this._selectionModel.deselect(ct)),it&&this._keyManager.setActiveItem(ct),this.multiple&&(this._sortValues(),it&&this.focus())):(ct.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(ct.value)),kt!==this._selectionModel.isSelected(ct)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const ct=this.options.toArray();this._selectionModel.sort((it,kt)=>this.sortComparator?this.sortComparator(it,kt,ct):ct.indexOf(it)-ct.indexOf(kt)),this.stateChanges.next()}}_propagateChanges(ct){let it=null;it=this.multiple?this.selected.map(kt=>kt.value):this.selected?this.selected.value:ct,this._value=it,this.valueChange.emit(it),this._onChange(it),this.selectionChange.emit(this._getChangeEvent(it)),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(ct){this._elementRef.nativeElement.focus(ct)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const ct=this._parentFormField?.getLabelId();return this.ariaLabelledby?(ct?ct+" ":"")+this.ariaLabelledby:ct}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const ct=this._parentFormField?.getLabelId();let it=(ct?ct+" ":"")+this._valueId;return this.ariaLabelledby&&(it+=" "+this.ariaLabelledby),it}_panelDoneAnimating(ct){this.openedChange.emit(ct)}setDescribedByIds(ct){ct.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ct.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Ke.\u0275fac=function(ct){return new(ct||Ke)(v.Y36(A.rL),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(T.rD),v.Y36(v.SBq),v.Y36(U.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(Pe),v.Y36(C.Kd),v.Y36(_n,8))},Ke.\u0275dir=v.lG2({type:Ke,viewQuery:function(ct,it){if(1&ct&&(v.Gf(Tt,5),v.Gf(At,5),v.Gf(d.pI,5)),2&ct){let kt;v.iGM(kt=v.CRH())&&(it.trigger=kt.first),v.iGM(kt=v.CRH())&&(it.panel=kt.first),v.iGM(kt=v.CRH())&&(it._overlayDir=kt.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]}),Ke})(),bi=(()=>{class Ke extends oi{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(ct,it,kt){const Gt=this._getItemHeight();return Math.min(Math.max(0,Gt*ct-it+Gt/2),kt)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Vt.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,bt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(ct){const it=(0,T.CB)(ct,this.options,this.optionGroups),kt=this._getItemHeight();this.panel.nativeElement.scrollTop=0===ct&&1===it?0:(0,T.jH)((ct+it)*kt,kt,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(ct){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(ct)}_getChangeEvent(ct){return new gn(this,ct)}_calculateOverlayOffsetX(){const ct=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),it=this._viewportRuler.getViewportSize(),kt=this._isRtl(),Gt=this.multiple?56:32;let oe;if(this.multiple)oe=40;else if(this.disableOptionCentering)oe=16;else{let Pn=this._selectionModel.selected[0]||this.options.first;oe=Pn&&Pn.group?32:16}kt||(oe*=-1);const Ce=0-(ct.left+oe-(kt?Gt:0)),Ee=ct.right+oe-it.width+(kt?0:Gt);Ce>0?oe+=Ce+8:Ee>0&&(oe-=Ee+8),this._overlayDir.offsetX=Math.round(oe),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(ct,it,kt){const Gt=this._getItemHeight(),oe=(Gt-this._triggerRect.height)/2,Ce=Math.floor(256/Gt);let Ee;return this.disableOptionCentering?0:(Ee=0===this._scrollTop?ct*Gt:this._scrollTop===kt?(ct-(this._getItemCount()-Ce))*Gt+(Gt-(this._getItemCount()*Gt-256)%Gt):it-Gt/2,Math.round(-1*Ee-oe))}_checkOverlayWithinViewport(ct){const it=this._getItemHeight(),kt=this._viewportRuler.getViewportSize(),Gt=this._triggerRect.top-8,oe=kt.height-this._triggerRect.bottom-8,Ce=Math.abs(this._offsetY),Pn=Math.min(this._getItemCount()*it,256)-Ce-this._triggerRect.height;Pn>oe?this._adjustPanelUp(Pn,oe):Ce>Gt?this._adjustPanelDown(Ce,Gt,ct):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(ct,it){const kt=Math.round(ct-it);this._scrollTop-=kt,this._offsetY-=kt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(ct,it,kt){const Gt=Math.round(ct-it);if(this._scrollTop+=Gt,this._offsetY+=Gt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=kt)return this._scrollTop=kt,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const ct=this._getItemHeight(),it=this._getItemCount(),kt=Math.min(it*ct,256),oe=it*ct-kt;let Ce;Ce=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),Ce+=(0,T.CB)(Ce,this.options,this.optionGroups);const Ee=kt/2;this._scrollTop=this._calculateOverlayScroll(Ce,Ee,oe),this._offsetY=this._calculateOverlayOffsetY(Ce,Ee,oe),this._checkOverlayWithinViewport(oe)}_getOriginBasedOnOption(){const ct=this._getItemHeight(),it=(ct-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-it+ct/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Ke.\u0275fac=function(){let ne;return function(it){return(ne||(ne=v.n5z(Ke)))(it||Ke)}}(),Ke.\u0275cmp=v.Xpm({type:Ke,selectors:[["mat-select"]],contentQueries:function(ct,it,kt){if(1&ct&&(v.Suo(kt,un,5),v.Suo(kt,T.ey,5),v.Suo(kt,T.K7,5)),2&ct){let Gt;v.iGM(Gt=v.CRH())&&(it.customTrigger=Gt.first),v.iGM(Gt=v.CRH())&&(it.options=Gt),v.iGM(Gt=v.CRH())&&(it.optionGroups=Gt)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(ct,it){1&ct&&v.NdJ("keydown",function(Gt){return it._handleKeydown(Gt)})("focus",function(){return it._onFocus()})("blur",function(){return it._onBlur()}),2&ct&&(v.uIk("id",it.id)("tabindex",it.tabIndex)("aria-controls",it.panelOpen?it.id+"-panel":null)("aria-expanded",it.panelOpen)("aria-label",it.ariaLabel||null)("aria-required",it.required.toString())("aria-disabled",it.disabled.toString())("aria-invalid",it.errorState)("aria-activedescendant",it._getAriaActiveDescendant()),v.ekj("mat-select-disabled",it.disabled)("mat-select-invalid",it.errorState)("mat-select-required",it.required)("mat-select-empty",it.empty)("mat-select-multiple",it.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[v._Bn([{provide:t.Eo,useExisting:Ke},{provide:T.HF,useExisting:Ke}]),v.qOj],ngContentSelectors:ve,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(ct,it){if(1&ct&&(v.F$t(Jt),v.TgZ(0,"div",0,1),v.NdJ("click",function(){return it.toggle()}),v.TgZ(3,"div",2),v.YNc(4,ft,2,1,"span",3),v.YNc(5,It,3,2,"span",4),v.qZA(),v.TgZ(6,"div",5),v._UZ(7,"div",6),v.qZA()(),v.YNc(8,se,4,14,"ng-template",7),v.NdJ("backdropClick",function(){return it.close()})("attach",function(){return it._onAttached()})("detach",function(){return it.close()})),2&ct){const kt=v.MAs(1);v.uIk("aria-owns",it.panelOpen?it.id+"-panel":null),v.xp6(3),v.Q6J("ngSwitch",it.empty),v.uIk("id",it._valueId),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngSwitchCase",!1),v.xp6(3),v.Q6J("cdkConnectedOverlayPanelClass",it._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",it._scrollStrategy)("cdkConnectedOverlayOrigin",kt)("cdkConnectedOverlayOpen",it.panelOpen)("cdkConnectedOverlayPositions",it._positions)("cdkConnectedOverlayMinWidth",null==it._triggerRect?null:it._triggerRect.width)("cdkConnectedOverlayOffsetY",it._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:[xe.transformPanelWrap,xe.transformPanel]},changeDetection:0}),Ke})(),ri=(()=>{class Ke{}return Ke.\u0275fac=function(ct){return new(ct||Ke)},Ke.\u0275mod=v.oAB({type:Ke}),Ke.\u0275inj=v.cJS({providers:[ye],imports:[p.ez,d.U8,T.Ng,T.BQ,A.ZD,t.lN,T.Ng,T.BQ]}),Ke})()},23267:(ot,et,b)=>{"use strict";b.d(et,{JX:()=>Wt,Rh:()=>de,SJ:()=>Pe,TM:()=>re});var d=b(67376),p=b(36895),v=b(94650),T=b(3238),t=b(12687),A=b(40445),C=b(21281),U=b(29521),k=b(83353),D=b(8929),P=b(23753),I=b(36787),z=b(92198),G=b(24850),K=b(77604),at=b(7625),lt=b(75778),bt=b(72986),Pt=b(1059),Dt=b(80013),zt=b(37340);const Vt=["*"],nt=["content"];function Tt(on,_n){if(1&on){const ye=v.EpF();v.TgZ(0,"div",2),v.NdJ("click",function(){v.CHM(ye);const Ue=v.oxw();return v.KtG(Ue._onBackdropClicked())}),v.qZA()}if(2&on){const ye=v.oxw();v.ekj("mat-drawer-shown",ye._isShowingBackdrop())}}function At(on,_n){1&on&&(v.TgZ(0,"mat-drawer-content"),v.Hsn(1,2),v.qZA())}const ft=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Et=["mat-drawer","mat-drawer-content","*"];function Bt(on,_n){if(1&on){const ye=v.EpF();v.TgZ(0,"div",2),v.NdJ("click",function(){v.CHM(ye);const Ue=v.oxw();return v.KtG(Ue._onBackdropClicked())}),v.qZA()}if(2&on){const ye=v.oxw();v.ekj("mat-drawer-shown",ye._isShowingBackdrop())}}function It(on,_n){1&on&&(v.TgZ(0,"mat-sidenav-content"),v.Hsn(1,2),v.qZA())}const se=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Jt=["mat-sidenav","mat-sidenav-content","*"],xe={transformDrawer:(0,zt.X$)("transform",[(0,zt.SB)("open, open-instant",(0,zt.oB)({transform:"none",visibility:"visible"})),(0,zt.SB)("void",(0,zt.oB)({"box-shadow":"none",visibility:"hidden"})),(0,zt.eR)("void => open-instant",(0,zt.jt)("0ms")),(0,zt.eR)("void <=> open, open-instant => void",(0,zt.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},qe=new v.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Xt(){return!1}}),$e=new v.OlP("MAT_DRAWER_CONTAINER");let we=(()=>{class on extends d.PQ{constructor(ye,gn,Ue,un,Mn){super(Ue,un,Mn),this._changeDetectorRef=ye,this._container=gn}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return on.\u0275fac=function(ye){return new(ye||on)(v.Y36(v.sBO),v.Y36((0,v.Gpc)(()=>Kt)),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(ye,gn){2&ye&&v.Udp("margin-left",gn._container._contentMargins.left,"px")("margin-right",gn._container._contentMargins.right,"px")},features:[v._Bn([{provide:d.PQ,useExisting:on}]),v.qOj],ngContentSelectors:Vt,decls:1,vars:0,template:function(ye,gn){1&ye&&(v.F$t(),v.Hsn(0))},encapsulation:2,changeDetection:0}),on})(),ae=(()=>{class on{constructor(ye,gn,Ue,un,Mn,oi,bi,ri){this._elementRef=ye,this._focusTrapFactory=gn,this._focusMonitor=Ue,this._platform=un,this._ngZone=Mn,this._interactivityChecker=oi,this._doc=bi,this._container=ri,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)(Ke=>Ke),(0,G.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,z.h)(Ke=>Ke.fromState!==Ke.toState&&0===Ke.toState.indexOf("open")),(0,K.h)(void 0)),this._closedStream=this.openedChange.pipe((0,z.h)(Ke=>!Ke),(0,G.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,z.h)(Ke=>Ke.fromState!==Ke.toState&&"void"===Ke.toState),(0,K.h)(void 0)),this._destroyed=new D.xQ,this.onPositionChanged=new v.vpe,this._modeChanged=new D.xQ,this.openedChange.subscribe(Ke=>{Ke?(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)(Ke=>Ke.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(Ke)),(0,at.R)(this._destroyed)).subscribe(Ke=>this._ngZone.run(()=>{this.close(),Ke.stopPropagation(),Ke.preventDefault()}))}),this._animationEnd.pipe((0,lt.x)((Ke,ne)=>Ke.fromState===ne.fromState&&Ke.toState===ne.toState)).subscribe(Ke=>{const{fromState:ne,toState:ct}=Ke;(0===ct.indexOf("open")&&"void"===ne||"void"===ct&&0===ne.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(ye){(ye="end"===ye?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(ye),this._position=ye,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(ye){this._mode=ye,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(ye){this._disableClose=(0,C.Ig)(ye)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(ye){("true"===ye||"false"===ye||null==ye)&&(ye=(0,C.Ig)(ye)),this._autoFocus=ye}get opened(){return this._opened}set opened(ye){this.toggle((0,C.Ig)(ye))}_forceFocus(ye,gn){this._interactivityChecker.isFocusable(ye)||(ye.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ue=()=>{ye.removeEventListener("blur",Ue),ye.removeEventListener("mousedown",Ue),ye.removeAttribute("tabindex")};ye.addEventListener("blur",Ue),ye.addEventListener("mousedown",Ue)})),ye.focus(gn)}_focusByCssSelector(ye,gn){let Ue=this._elementRef.nativeElement.querySelector(ye);Ue&&this._forceFocus(Ue,gn)}_takeFocus(){if(!this._focusTrap)return;const ye=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(gn=>{!gn&&"function"==typeof this._elementRef.nativeElement.focus&&ye.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(ye){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,ye):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const ye=this._doc.activeElement;return!!ye&&this._elementRef.nativeElement.contains(ye)}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(ye){return this.toggle(!0,ye)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(ye=!this.opened,gn){ye&&gn&&(this._openedVia=gn);const Ue=this._setOpen(ye,!ye&&this._isFocusWithinDrawer(),this._openedVia||"program");return ye||(this._openedVia=null),Ue}_setOpen(ye,gn,Ue){return this._opened=ye,ye?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",gn&&this._restoreFocus(Ue)),this._updateFocusTrapState(),new Promise(un=>{this.openedChange.pipe((0,bt.q)(1)).subscribe(Mn=>un(Mn?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(ye){const gn=this._elementRef.nativeElement,Ue=gn.parentNode;"end"===ye?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Ue.insertBefore(this._anchor,gn)),Ue.appendChild(gn)):this._anchor&&this._anchor.parentNode.insertBefore(gn,this._anchor)}}return on.\u0275fac=function(ye){return new(ye||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($e,8))},on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-drawer"]],viewQuery:function(ye,gn){if(1&ye&&v.Gf(nt,5),2&ye){let Ue;v.iGM(Ue=v.CRH())&&(gn._content=Ue.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(ye,gn){1&ye&&v.WFA("@transform.start",function(un){return gn._animationStarted.next(un)})("@transform.done",function(un){return gn._animationEnd.next(un)}),2&ye&&(v.uIk("align",null),v.d8E("@transform",gn._animationState),v.ekj("mat-drawer-end","end"===gn.position)("mat-drawer-over","over"===gn.mode)("mat-drawer-push","push"===gn.mode)("mat-drawer-side","side"===gn.mode)("mat-drawer-opened",gn.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:Vt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(ye,gn){1&ye&&(v.F$t(),v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA())},dependencies:[d.PQ],encapsulation:2,data:{animation:[xe.transformDrawer]},changeDetection:0}),on})(),Kt=(()=>{class on{constructor(ye,gn,Ue,un,Mn,oi=!1,bi){this._dir=ye,this._element=gn,this._ngZone=Ue,this._changeDetectorRef=un,this._animationMode=bi,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,ye&&ye.change.pipe((0,at.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Mn.change().pipe((0,at.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=oi}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(ye){this._autosize=(0,C.Ig)(ye)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(ye){this._backdropOverride=null==ye?null:(0,C.Ig)(ye)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Pt.O)(this._allDrawers),(0,at.R)(this._destroyed)).subscribe(ye=>{this._drawers.reset(ye.filter(gn=>!gn._container||gn._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Pt.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(ye=>{this._watchDrawerToggle(ye),this._watchDrawerPosition(ye),this._watchDrawerMode(ye)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Dt.b)(10),(0,at.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(ye=>ye.open())}close(){this._drawers.forEach(ye=>ye.close())}updateContentMargins(){let ye=0,gn=0;if(this._left&&this._left.opened)if("side"==this._left.mode)ye+=this._left._getWidth();else if("push"==this._left.mode){const Ue=this._left._getWidth();ye+=Ue,gn-=Ue}if(this._right&&this._right.opened)if("side"==this._right.mode)gn+=this._right._getWidth();else if("push"==this._right.mode){const Ue=this._right._getWidth();gn+=Ue,ye-=Ue}ye=ye||null,gn=gn||null,(ye!==this._contentMargins.left||gn!==this._contentMargins.right)&&(this._contentMargins={left:ye,right:gn},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(ye){ye._animationStarted.pipe((0,z.h)(gn=>gn.fromState!==gn.toState),(0,at.R)(this._drawers.changes)).subscribe(gn=>{"open-instant"!==gn.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==ye.mode&&ye.openedChange.pipe((0,at.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(ye.opened))}_watchDrawerPosition(ye){!ye||ye.onPositionChanged.pipe((0,at.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,bt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(ye){ye&&ye._modeChanged.pipe((0,at.R)((0,I.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(ye){const gn=this._element.nativeElement.classList,Ue="mat-drawer-container-has-open";ye?gn.add(Ue):gn.remove(Ue)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(ye=>{"end"==ye.position?this._end=ye:this._start=ye}),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(ye=>ye&&!ye.disableClose&&this._canHaveBackdrop(ye)).forEach(ye=>ye._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(ye){return"side"!==ye.mode||!!this._backdropOverride}_isDrawerOpen(ye){return null!=ye&&ye.opened}}return on.\u0275fac=function(ye){return new(ye||on)(v.Y36(A.Is,8),v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(v.sBO),v.Y36(d.rL),v.Y36(qe),v.Y36(v.QbO,8))},on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-drawer-container"]],contentQueries:function(ye,gn,Ue){if(1&ye&&(v.Suo(Ue,we,5),v.Suo(Ue,ae,5)),2&ye){let un;v.iGM(un=v.CRH())&&(gn._content=un.first),v.iGM(un=v.CRH())&&(gn._allDrawers=un)}},viewQuery:function(ye,gn){if(1&ye&&v.Gf(we,5),2&ye){let Ue;v.iGM(Ue=v.CRH())&&(gn._userContent=Ue.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(ye,gn){2&ye&&v.ekj("mat-drawer-container-explicit-backdrop",gn._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[v._Bn([{provide:$e,useExisting:on}])],ngContentSelectors:Et,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(ye,gn){1&ye&&(v.F$t(ft),v.YNc(0,Tt,1,2,"div",0),v.Hsn(1),v.Hsn(2,1),v.YNc(3,At,2,0,"mat-drawer-content",1)),2&ye&&(v.Q6J("ngIf",gn.hasBackdrop),v.xp6(3),v.Q6J("ngIf",!gn._content))},dependencies:[p.O5,we],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})(),de=(()=>{class on extends we{constructor(ye,gn,Ue,un,Mn){super(ye,gn,Ue,un,Mn)}}return on.\u0275fac=function(ye){return new(ye||on)(v.Y36(v.sBO),v.Y36((0,v.Gpc)(()=>re)),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(ye,gn){2&ye&&v.Udp("margin-left",gn._container._contentMargins.left,"px")("margin-right",gn._container._contentMargins.right,"px")},features:[v._Bn([{provide:d.PQ,useExisting:on}]),v.qOj],ngContentSelectors:Vt,decls:1,vars:0,template:function(ye,gn){1&ye&&(v.F$t(),v.Hsn(0))},encapsulation:2,changeDetection:0}),on})(),Wt=(()=>{class on extends ae{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(ye){this._fixedInViewport=(0,C.Ig)(ye)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(ye){this._fixedTopGap=(0,C.su)(ye)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(ye){this._fixedBottomGap=(0,C.su)(ye)}}return on.\u0275fac=function(){let _n;return function(gn){return(_n||(_n=v.n5z(on)))(gn||on)}}(),on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(ye,gn){2&ye&&(v.uIk("align",null),v.Udp("top",gn.fixedInViewport?gn.fixedTopGap:null,"px")("bottom",gn.fixedInViewport?gn.fixedBottomGap:null,"px"),v.ekj("mat-drawer-end","end"===gn.position)("mat-drawer-over","over"===gn.mode)("mat-drawer-push","push"===gn.mode)("mat-drawer-side","side"===gn.mode)("mat-drawer-opened",gn.opened)("mat-sidenav-fixed",gn.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[v.qOj],ngContentSelectors:Vt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(ye,gn){1&ye&&(v.F$t(),v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA())},dependencies:[d.PQ],encapsulation:2,data:{animation:[xe.transformDrawer]},changeDetection:0}),on})(),re=(()=>{class on extends Kt{}return on.\u0275fac=function(){let _n;return function(gn){return(_n||(_n=v.n5z(on)))(gn||on)}}(),on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-sidenav-container"]],contentQueries:function(ye,gn,Ue){if(1&ye&&(v.Suo(Ue,de,5),v.Suo(Ue,Wt,5)),2&ye){let un;v.iGM(un=v.CRH())&&(gn._content=un.first),v.iGM(un=v.CRH())&&(gn._allDrawers=un)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(ye,gn){2&ye&&v.ekj("mat-drawer-container-explicit-backdrop",gn._backdropOverride)},exportAs:["matSidenavContainer"],features:[v._Bn([{provide:$e,useExisting:on}]),v.qOj],ngContentSelectors:Jt,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(ye,gn){1&ye&&(v.F$t(se),v.YNc(0,Bt,1,2,"div",0),v.Hsn(1),v.Hsn(2,1),v.YNc(3,It,2,0,"mat-sidenav-content",1)),2&ye&&(v.Q6J("ngIf",gn.hasBackdrop),v.xp6(3),v.Q6J("ngIf",!gn._content))},dependencies:[p.O5,de],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})(),Pe=(()=>{class on{}return on.\u0275fac=function(ye){return new(ye||on)},on.\u0275mod=v.oAB({type:on}),on.\u0275inj=v.cJS({imports:[p.ez,T.BQ,d.ZD,d.ZD,T.BQ]}),on})()},90455:(ot,et,b)=>{"use strict";b.d(et,{Rr:()=>at,rP:()=>Dt});var d=b(49643),p=b(94650),v=b(3238),T=b(12687),t=b(21281),A=b(24006);const C=["input"],U=function(zt){return{enterDuration:zt}},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)(()=>at),multi:!0};class z{constructor(Vt,nt){this.source=Vt,this.checked=nt}}const G=(0,v.sb)((0,v.pj)((0,v.Kr)((0,v.Id)(class{constructor(zt){this._elementRef=zt}}))));let K=(()=>{class zt extends G{constructor(nt,Tt,At,ft,Et,Bt,It){super(nt),this._focusMonitor=Tt,this._changeDetectorRef=At,this.defaults=Et,this._onChange=se=>{},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(ft)||0,this.color=this.defaultColor=Et.color||"accent",this._noopAnimations="NoopAnimations"===Bt,this.id=this._uniqueId=`${It}${++P}`}get required(){return this._required}set required(nt){this._required=(0,t.Ig)(nt)}get checked(){return this._checked}set checked(nt){this._checked=(0,t.Ig)(nt),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(nt=>{"keyboard"===nt||"program"===nt?this._focused=!0:nt||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(nt){this.checked=!!nt}registerOnChange(nt){this._onChange=nt}registerOnTouched(nt){this._onTouched=nt}setDisabledState(nt){this.disabled=nt,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 zt.\u0275fac=function(nt){p.$Z()},zt.\u0275dir=p.lG2({type:zt,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]}),zt})(),at=(()=>{class zt extends K{constructor(nt,Tt,At,ft,Et,Bt){super(nt,Tt,At,ft,Et,Bt,"mat-slide-toggle-")}_createChangeEvent(nt){return new z(this,nt)}_onChangeEvent(nt){nt.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(nt){nt.stopPropagation()}focus(nt,Tt){Tt?this._focusMonitor.focusVia(this._inputElement,Tt,nt):this._inputElement.nativeElement.focus(nt)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return zt.\u0275fac=function(nt){return new(nt||zt)(p.Y36(p.SBq),p.Y36(T.tE),p.Y36(p.sBO),p.$8M("tabindex"),p.Y36(D),p.Y36(p.QbO,8))},zt.\u0275cmp=p.Xpm({type:zt,selectors:[["mat-slide-toggle"]],viewQuery:function(nt,Tt){if(1&nt&&p.Gf(C,5),2&nt){let At;p.iGM(At=p.CRH())&&(Tt._inputElement=At.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(nt,Tt){2&nt&&(p.Ikx("id",Tt.id),p.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),p.ekj("mat-checked",Tt.checked)("mat-disabled",Tt.disabled)("mat-slide-toggle-label-before","before"==Tt.labelPosition)("_mat-animation-noopable",Tt._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(nt,Tt){if(1&nt&&(p.F$t(),p.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),p.NdJ("change",function(ft){return Tt._onChangeEvent(ft)})("click",function(ft){return Tt._onInputClick(ft)}),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 Tt._onLabelTextChange()}),p.TgZ(11,"span",11),p._uU(12,"\xa0"),p.qZA(),p.Hsn(13),p.qZA()()),2&nt){const At=p.MAs(1),ft=p.MAs(10);p.uIk("for",Tt.inputId),p.xp6(2),p.ekj("mat-slide-toggle-bar-no-side-margin",!ft.textContent||!ft.textContent.trim()),p.xp6(1),p.Q6J("id",Tt.inputId)("required",Tt.required)("tabIndex",Tt.tabIndex)("checked",Tt.checked)("disabled",Tt.disabled),p.uIk("name",Tt.name)("aria-checked",Tt.checked)("aria-label",Tt.ariaLabel)("aria-labelledby",Tt.ariaLabelledby)("aria-describedby",Tt.ariaDescribedby),p.xp6(4),p.Q6J("matRippleTrigger",At)("matRippleDisabled",Tt.disableRipple||Tt.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",p.VKq(18,U,Tt._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}),zt})(),Pt=(()=>{class zt{}return zt.\u0275fac=function(nt){return new(nt||zt)},zt.\u0275mod=p.oAB({type:zt}),zt.\u0275inj=p.cJS({}),zt})(),Dt=(()=>{class zt{}return zt.\u0275fac=function(nt){return new(nt||zt)},zt.\u0275mod=p.oAB({type:zt}),zt.\u0275inj=p.cJS({imports:[Pt,v.si,v.BQ,d.Q8,Pt,v.BQ]}),zt})()},17009:(ot,et,b)=>{"use strict";b.d(et,{ZX:()=>Tt,ux:()=>Bt});var d=b(98184),p=b(84080),v=b(36895),T=b(94650),t=b(3238),A=b(4859),C=b(8929),U=b(83353),k=b(72986),D=b(7625),P=b(37340),I=b(12687),z=b(62289);function G(It,se){if(1&It){const Jt=T.EpF();T.TgZ(0,"div",2)(1,"button",3),T.NdJ("click",function(){T.CHM(Jt);const xe=T.oxw();return T.KtG(xe.action())}),T._uU(2),T.qZA()()}if(2&It){const Jt=T.oxw();T.xp6(2),T.Oqu(Jt.data.action)}}function K(It,se){}const at=new T.OlP("MatSnackBarData");class lt{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const bt=Math.pow(2,31)-1;class Pt{constructor(se,Jt){this._overlayRef=Jt,this._afterDismissed=new C.xQ,this._afterOpened=new C.xQ,this._onAction=new C.xQ,this._dismissedByAction=!1,this.containerInstance=se,se._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(se){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(se,bt))}_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 Dt=(()=>{class It{constructor(Jt,ve){this.snackBarRef=Jt,this.data=ve}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return It.\u0275fac=function(Jt){return new(Jt||It)(T.Y36(Pt),T.Y36(at))},It.\u0275cmp=T.Xpm({type:It,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(Jt,ve){1&Jt&&(T.TgZ(0,"span",0),T._uU(1),T.qZA(),T.YNc(2,G,3,1,"div",1)),2&Jt&&(T.xp6(1),T.Oqu(ve.data.message),T.xp6(1),T.Q6J("ngIf",ve.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}),It})();const zt={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 Vt=(()=>{class It extends p.en{constructor(Jt,ve,xe,Oe,qe){super(),this._ngZone=Jt,this._elementRef=ve,this._changeDetectorRef=xe,this._platform=Oe,this.snackBarConfig=qe,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new C.xQ,this._onExit=new C.xQ,this._onEnter=new C.xQ,this._animationState="void",this.attachDomPortal=$e=>{this._assertNotAttached();const Xt=this._portalOutlet.attachDomPortal($e);return this._afterPortalAttached(),Xt},this._live="assertive"!==qe.politeness||qe.announcementMessage?"off"===qe.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(Jt){this._assertNotAttached();const ve=this._portalOutlet.attachComponentPortal(Jt);return this._afterPortalAttached(),ve}attachTemplatePortal(Jt){this._assertNotAttached();const ve=this._portalOutlet.attachTemplatePortal(Jt);return this._afterPortalAttached(),ve}onAnimationEnd(Jt){const{fromState:ve,toState:xe}=Jt;if(("void"===xe&&"void"!==ve||"hidden"===xe)&&this._completeExit(),"visible"===xe){const Oe=this._onEnter;this._ngZone.run(()=>{Oe.next(),Oe.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 Jt=this._elementRef.nativeElement,ve=this.snackBarConfig.panelClass;ve&&(Array.isArray(ve)?ve.forEach(xe=>Jt.classList.add(xe)):Jt.classList.add(ve))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const Jt=this._elementRef.nativeElement.querySelector("[aria-hidden]"),ve=this._elementRef.nativeElement.querySelector("[aria-live]");if(Jt&&ve){let xe=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&Jt.contains(document.activeElement)&&(xe=document.activeElement),Jt.removeAttribute("aria-hidden"),ve.appendChild(Jt),xe?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return It.\u0275fac=function(Jt){return new(Jt||It)(T.Y36(T.R0b),T.Y36(T.SBq),T.Y36(T.sBO),T.Y36(U.t4),T.Y36(lt))},It.\u0275dir=T.lG2({type:It,viewQuery:function(Jt,ve){if(1&Jt&&T.Gf(p.Pl,7),2&Jt){let xe;T.iGM(xe=T.CRH())&&(ve._portalOutlet=xe.first)}},features:[T.qOj]}),It})(),nt=(()=>{class It extends Vt{_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 It.\u0275fac=function(){let se;return function(ve){return(se||(se=T.n5z(It)))(ve||It)}}(),It.\u0275cmp=T.Xpm({type:It,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(Jt,ve){1&Jt&&T.WFA("@state.done",function(Oe){return ve.onAnimationEnd(Oe)}),2&Jt&&T.d8E("@state",ve._animationState)},features:[T.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Jt,ve){1&Jt&&(T.TgZ(0,"div",0),T.YNc(1,K,0,0,"ng-template",1),T.qZA(),T._UZ(2,"div")),2&Jt&&(T.xp6(2),T.uIk("aria-live",ve._live)("role",ve._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:[zt.snackBarState]}}),It})(),Tt=(()=>{class It{}return It.\u0275fac=function(Jt){return new(Jt||It)},It.\u0275mod=T.oAB({type:It}),It.\u0275inj=T.cJS({imports:[d.U8,p.eL,v.ez,A.ot,t.BQ,t.BQ]}),It})();const At=new T.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function ft(){return new lt}});let Et=(()=>{class It{constructor(Jt,ve,xe,Oe,qe,$e){this._overlay=Jt,this._live=ve,this._injector=xe,this._breakpointObserver=Oe,this._parentSnackBar=qe,this._defaultConfig=$e,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const Jt=this._parentSnackBar;return Jt?Jt._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(Jt){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=Jt:this._snackBarRefAtThisLevel=Jt}openFromComponent(Jt,ve){return this._attach(Jt,ve)}openFromTemplate(Jt,ve){return this._attach(Jt,ve)}open(Jt,ve="",xe){const Oe={...this._defaultConfig,...xe};return Oe.data={message:Jt,action:ve},Oe.announcementMessage===Jt&&(Oe.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Oe)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(Jt,ve){const Oe=T.zs3.create({parent:ve&&ve.viewContainerRef&&ve.viewContainerRef.injector||this._injector,providers:[{provide:lt,useValue:ve}]}),qe=new p.C5(this.snackBarContainerComponent,ve.viewContainerRef,Oe),$e=Jt.attach(qe);return $e.instance.snackBarConfig=ve,$e.instance}_attach(Jt,ve){const xe={...new lt,...this._defaultConfig,...ve},Oe=this._createOverlay(xe),qe=this._attachSnackBarContainer(Oe,xe),$e=new Pt(qe,Oe);if(Jt instanceof T.Rgc){const Xt=new p.UE(Jt,null,{$implicit:xe.data,snackBarRef:$e});$e.instance=qe.attachTemplatePortal(Xt)}else{const Xt=this._createInjector(xe,$e),we=new p.C5(Jt,void 0,Xt),ae=qe.attachComponentPortal(we);$e.instance=ae.instance}return this._breakpointObserver.observe(z.u3.HandsetPortrait).pipe((0,D.R)(Oe.detachments())).subscribe(Xt=>{Oe.overlayElement.classList.toggle(this.handsetCssClass,Xt.matches)}),xe.announcementMessage&&qe._onAnnounce.subscribe(()=>{this._live.announce(xe.announcementMessage,xe.politeness)}),this._animateSnackBar($e,xe),this._openedSnackBarRef=$e,this._openedSnackBarRef}_animateSnackBar(Jt,ve){Jt.afterDismissed().subscribe(()=>{this._openedSnackBarRef==Jt&&(this._openedSnackBarRef=null),ve.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{Jt.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):Jt.containerInstance.enter(),ve.duration&&ve.duration>0&&Jt.afterOpened().subscribe(()=>Jt._dismissAfter(ve.duration))}_createOverlay(Jt){const ve=new d.X_;ve.direction=Jt.direction;let xe=this._overlay.position().global();const Oe="rtl"===Jt.direction,qe="left"===Jt.horizontalPosition||"start"===Jt.horizontalPosition&&!Oe||"end"===Jt.horizontalPosition&&Oe,$e=!qe&&"center"!==Jt.horizontalPosition;return qe?xe.left("0"):$e?xe.right("0"):xe.centerHorizontally(),"top"===Jt.verticalPosition?xe.top("0"):xe.bottom("0"),ve.positionStrategy=xe,this._overlay.create(ve)}_createInjector(Jt,ve){return T.zs3.create({parent:Jt&&Jt.viewContainerRef&&Jt.viewContainerRef.injector||this._injector,providers:[{provide:Pt,useValue:ve},{provide:at,useValue:Jt.data}]})}}return It.\u0275fac=function(Jt){return new(Jt||It)(T.LFG(d.aV),T.LFG(I.Kd),T.LFG(T.zs3),T.LFG(z.Yg),T.LFG(It,12),T.LFG(At))},It.\u0275prov=T.Yz7({token:It,factory:It.\u0275fac}),It})(),Bt=(()=>{class It extends Et{constructor(Jt,ve,xe,Oe,qe,$e){super(Jt,ve,xe,Oe,qe,$e),this.simpleSnackBarComponent=Dt,this.snackBarContainerComponent=nt,this.handsetCssClass="mat-snack-bar-handset"}}return It.\u0275fac=function(Jt){return new(Jt||It)(T.LFG(d.aV),T.LFG(I.Kd),T.LFG(T.zs3),T.LFG(z.Yg),T.LFG(It,12),T.LFG(At))},It.\u0275prov=T.Yz7({token:It,factory:It.\u0275fac,providedIn:Tt}),It})()},96308:(ot,et,b)=>{"use strict";b.d(et,{JX:()=>Bt,YE:()=>Pt,nU:()=>Et});var d=b(94650),p=b(12687),v=b(21281),T=b(29521),t=b(3238),A=b(8929),C=b(36787),U=b(37340),k=b(36895);const D=["mat-sort-header",""];function P(It,se){if(1&It){const Jt=d.EpF();d.TgZ(0,"div",3),d.NdJ("@arrowPosition.start",function(){d.CHM(Jt);const xe=d.oxw();return d.KtG(xe._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){d.CHM(Jt);const xe=d.oxw();return d.KtG(xe._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&It){const Jt=d.oxw();d.Q6J("@arrowOpacity",Jt._getArrowViewState())("@arrowPosition",Jt._getArrowViewState())("@allowChildren",Jt._getArrowDirectionState()),d.xp6(2),d.Q6J("@indicator",Jt._getArrowDirectionState()),d.xp6(1),d.Q6J("@leftPointer",Jt._getArrowDirectionState()),d.xp6(1),d.Q6J("@rightPointer",Jt._getArrowDirectionState())}}const I=["*"],lt=new d.OlP("MAT_SORT_DEFAULT_OPTIONS"),bt=(0,t.dB)((0,t.Id)(class{}));let Pt=(()=>{class It extends bt{constructor(Jt){super(),this._defaultOptions=Jt,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(Jt){this._direction=Jt}get disableClear(){return this._disableClear}set disableClear(Jt){this._disableClear=(0,v.Ig)(Jt)}register(Jt){this.sortables.set(Jt.id,Jt)}deregister(Jt){this.sortables.delete(Jt.id)}sort(Jt){this.active!=Jt.id?(this.active=Jt.id,this.direction=Jt.start?Jt.start:this.start):this.direction=this.getNextSortDirection(Jt),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(Jt){if(!Jt)return"";let xe=function Dt(It,se){let Jt=["asc","desc"];return"desc"==It&&Jt.reverse(),se||Jt.push(""),Jt}(Jt.start||this.start,Jt?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),Oe=xe.indexOf(this.direction)+1;return Oe>=xe.length&&(Oe=0),xe[Oe]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return It.\u0275fac=function(Jt){return new(Jt||It)(d.Y36(lt,8))},It.\u0275dir=d.lG2({type:It,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]}),It})();const zt=t.mZ.ENTERING+" "+t.yN.STANDARD_CURVE,Vt={indicator:(0,U.X$)("indicator",[(0,U.SB)("active-asc, asc",(0,U.oB)({transform:"translateY(0px)"})),(0,U.SB)("active-desc, desc",(0,U.oB)({transform:"translateY(10px)"})),(0,U.eR)("active-asc <=> active-desc",(0,U.jt)(zt))]),leftPointer:(0,U.X$)("leftPointer",[(0,U.SB)("active-asc, asc",(0,U.oB)({transform:"rotate(-45deg)"})),(0,U.SB)("active-desc, desc",(0,U.oB)({transform:"rotate(45deg)"})),(0,U.eR)("active-asc <=> active-desc",(0,U.jt)(zt))]),rightPointer:(0,U.X$)("rightPointer",[(0,U.SB)("active-asc, asc",(0,U.oB)({transform:"rotate(45deg)"})),(0,U.SB)("active-desc, desc",(0,U.oB)({transform:"rotate(-45deg)"})),(0,U.eR)("active-asc <=> active-desc",(0,U.jt)(zt))]),arrowOpacity:(0,U.X$)("arrowOpacity",[(0,U.SB)("desc-to-active, asc-to-active, active",(0,U.oB)({opacity:1})),(0,U.SB)("desc-to-hint, asc-to-hint, hint",(0,U.oB)({opacity:.54})),(0,U.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,U.oB)({opacity:0})),(0,U.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,U.jt)("0ms")),(0,U.eR)("* <=> *",(0,U.jt)(zt))]),arrowPosition:(0,U.X$)("arrowPosition",[(0,U.eR)("* => desc-to-hint, * => desc-to-active",(0,U.jt)(zt,(0,U.F4)([(0,U.oB)({transform:"translateY(-25%)"}),(0,U.oB)({transform:"translateY(0)"})]))),(0,U.eR)("* => hint-to-desc, * => active-to-desc",(0,U.jt)(zt,(0,U.F4)([(0,U.oB)({transform:"translateY(0)"}),(0,U.oB)({transform:"translateY(25%)"})]))),(0,U.eR)("* => asc-to-hint, * => asc-to-active",(0,U.jt)(zt,(0,U.F4)([(0,U.oB)({transform:"translateY(25%)"}),(0,U.oB)({transform:"translateY(0)"})]))),(0,U.eR)("* => hint-to-asc, * => active-to-asc",(0,U.jt)(zt,(0,U.F4)([(0,U.oB)({transform:"translateY(0)"}),(0,U.oB)({transform:"translateY(-25%)"})]))),(0,U.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,U.oB)({transform:"translateY(0)"})),(0,U.SB)("hint-to-desc, active-to-desc, desc",(0,U.oB)({transform:"translateY(-25%)"})),(0,U.SB)("hint-to-asc, active-to-asc, asc",(0,U.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,U.X$)("allowChildren",[(0,U.eR)("* <=> *",[(0,U.IO)("@*",(0,U.pV)(),{optional:!0})])])};let nt=(()=>{class It{constructor(){this.changes=new A.xQ}}return It.\u0275fac=function(Jt){return new(Jt||It)},It.\u0275prov=d.Yz7({token:It,factory:It.\u0275fac,providedIn:"root"}),It})();const At={provide:nt,deps:[[new d.FiY,new d.tp0,nt]],useFactory:function Tt(It){return It||new nt}},ft=(0,t.Id)(class{});let Et=(()=>{class It extends ft{constructor(Jt,ve,xe,Oe,qe,$e,Xt,we){super(),this._intl=Jt,this._changeDetectorRef=ve,this._sort=xe,this._columnDef=Oe,this._focusMonitor=qe,this._elementRef=$e,this._ariaDescriber=Xt,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",we?.arrowPosition&&(this.arrowPosition=we?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(Jt){this._updateSortActionDescription(Jt)}get disableClear(){return this._disableClear}set disableClear(Jt){this._disableClear=(0,v.Ig)(Jt)}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(Jt=>{const ve=!!Jt;ve!==this._showIndicatorHint&&(this._setIndicatorHintVisible(ve),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(Jt){this._isDisabled()&&Jt||(this._showIndicatorHint=Jt,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(Jt){this._viewState=Jt||{},this._disableViewStateAnimation&&(this._viewState={toState:Jt.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(Jt){!this._isDisabled()&&(Jt.keyCode===T.L_||Jt.keyCode===T.K5)&&(Jt.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 Jt=this._viewState.fromState;return(Jt?`${Jt}-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(Jt){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,Jt)),this._sortActionDescription=Jt}_handleStateChanges(){this._rerenderSubscription=(0,C.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 It.\u0275fac=function(Jt){return new(Jt||It)(d.Y36(nt),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(lt,8))},It.\u0275cmp=d.Xpm({type:It,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(Jt,ve){1&Jt&&d.NdJ("click",function(){return ve._handleClick()})("keydown",function(Oe){return ve._handleKeydown(Oe)})("mouseenter",function(){return ve._setIndicatorHintVisible(!0)})("mouseleave",function(){return ve._setIndicatorHintVisible(!1)}),2&Jt&&(d.uIk("aria-sort",ve._getAriaSortAttribute()),d.ekj("mat-sort-header-disabled",ve._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(Jt,ve){1&Jt&&(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&Jt&&(d.ekj("mat-sort-header-sorted",ve._isSorted())("mat-sort-header-position-before","before"===ve.arrowPosition),d.uIk("tabindex",ve._isDisabled()?null:0)("role",ve._isDisabled()?null:"button"),d.xp6(3),d.Q6J("ngIf",ve._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:[Vt.indicator,Vt.leftPointer,Vt.rightPointer,Vt.arrowOpacity,Vt.arrowPosition,Vt.allowChildren]},changeDetection:0}),It})(),Bt=(()=>{class It{}return It.\u0275fac=function(Jt){return new(Jt||It)},It.\u0275mod=d.oAB({type:It}),It.\u0275inj=d.cJS({providers:[At],imports:[k.ez,t.BQ]}),It})()},58425:(ot,et,b)=>{"use strict";b.d(et,{C0:()=>oi,Ic:()=>ri,T5:()=>ne,VY:()=>de,Vq:()=>bi,fd:()=>Ke,z9:()=>un});var d=b(84080),p=b(12138),v=b(36895),T=b(94650),t=b(4859),A=b(3238),C=b(97392),U=b(12687),k=b(8929),D=b(42654),P=b(40445),I=b(87545),z=b(24850),G=b(1059),K=b(7625),at=b(75778),lt=b(37340);function bt(ct,it){if(1&ct&&T.GkF(0,8),2&ct){const kt=T.oxw();T.Q6J("ngTemplateOutlet",kt.iconOverrides[kt.state])("ngTemplateOutletContext",kt._getIconContext())}}function Pt(ct,it){if(1&ct&&(T.TgZ(0,"span",13),T._uU(1),T.qZA()),2&ct){const kt=T.oxw(2);T.xp6(1),T.Oqu(kt._getDefaultTextForState(kt.state))}}function Dt(ct,it){if(1&ct&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2&ct){const kt=T.oxw(2);T.xp6(1),T.Oqu(kt._intl.completedLabel)}}function zt(ct,it){if(1&ct&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2&ct){const kt=T.oxw(2);T.xp6(1),T.Oqu(kt._intl.editableLabel)}}function Vt(ct,it){if(1&ct&&(T.TgZ(0,"mat-icon",13),T._uU(1),T.qZA()),2&ct){const kt=T.oxw(2);T.xp6(1),T.Oqu(kt._getDefaultTextForState(kt.state))}}function nt(ct,it){if(1&ct&&(T.ynx(0,9),T.YNc(1,Pt,2,1,"span",10),T.YNc(2,Dt,2,1,"span",11),T.YNc(3,zt,2,1,"span",11),T.YNc(4,Vt,2,1,"mat-icon",12),T.BQk()),2&ct){const kt=T.oxw();T.Q6J("ngSwitch",kt.state),T.xp6(1),T.Q6J("ngSwitchCase","number"),T.xp6(1),T.Q6J("ngIf","done"===kt.state),T.xp6(1),T.Q6J("ngIf","edit"===kt.state)}}function Tt(ct,it){if(1&ct&&(T.TgZ(0,"div",15),T.GkF(1,16),T.qZA()),2&ct){const kt=T.oxw();T.xp6(1),T.Q6J("ngTemplateOutlet",kt._templateLabel().template)}}function At(ct,it){if(1&ct&&(T.TgZ(0,"div",15),T._uU(1),T.qZA()),2&ct){const kt=T.oxw();T.xp6(1),T.Oqu(kt.label)}}function ft(ct,it){if(1&ct&&(T.TgZ(0,"div",17),T._uU(1),T.qZA()),2&ct){const kt=T.oxw();T.xp6(1),T.Oqu(kt._intl.optionalLabel)}}function Et(ct,it){if(1&ct&&(T.TgZ(0,"div",18),T._uU(1),T.qZA()),2&ct){const kt=T.oxw();T.xp6(1),T.Oqu(kt.errorMessage)}}function Bt(ct,it){}function It(ct,it){if(1&ct&&(T.Hsn(0),T.YNc(1,Bt,0,0,"ng-template",0)),2&ct){const kt=T.oxw();T.xp6(1),T.Q6J("cdkPortalOutlet",kt._portal)}}const se=["*"];function Jt(ct,it){1&ct&&T._UZ(0,"div",11)}const ve=function(ct,it){return{step:ct,i:it}};function xe(ct,it){if(1&ct&&(T.ynx(0),T.GkF(1,9),T.YNc(2,Jt,1,0,"div",10),T.BQk()),2&ct){const kt=it.$implicit,Gt=it.index,oe=it.last;T.oxw(2);const Ce=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",Ce)("ngTemplateOutletContext",T.WLB(3,ve,kt,Gt)),T.xp6(1),T.Q6J("ngIf",!oe)}}const Oe=function(ct){return{animationDuration:ct}},qe=function(ct,it){return{value:ct,params:it}};function $e(ct,it){if(1&ct){const kt=T.EpF();T.TgZ(0,"div",12),T.NdJ("@horizontalStepTransition.done",function(oe){T.CHM(kt);const Ce=T.oxw(2);return T.KtG(Ce._animationDone.next(oe))}),T.GkF(1,13),T.qZA()}if(2&ct){const kt=it.$implicit,Gt=it.index,oe=T.oxw(2);T.ekj("mat-horizontal-stepper-content-inactive",oe.selectedIndex!==Gt),T.Q6J("@horizontalStepTransition",T.WLB(8,qe,oe._getAnimationDirection(Gt),T.VKq(6,Oe,oe._getAnimationDuration())))("id",oe._getStepContentId(Gt)),T.uIk("aria-labelledby",oe._getStepLabelId(Gt)),T.xp6(1),T.Q6J("ngTemplateOutlet",kt.content)}}function Xt(ct,it){if(1&ct&&(T.TgZ(0,"div",4)(1,"div",5),T.YNc(2,xe,3,6,"ng-container",6),T.qZA(),T.TgZ(3,"div",7),T.YNc(4,$e,2,11,"div",8),T.qZA()()),2&ct){const kt=T.oxw();T.xp6(2),T.Q6J("ngForOf",kt.steps),T.xp6(2),T.Q6J("ngForOf",kt.steps)}}function we(ct,it){if(1&ct){const kt=T.EpF();T.TgZ(0,"div",15),T.GkF(1,9),T.TgZ(2,"div",16)(3,"div",17),T.NdJ("@verticalStepTransition.done",function(oe){T.CHM(kt);const Ce=T.oxw(2);return T.KtG(Ce._animationDone.next(oe))}),T.TgZ(4,"div",18),T.GkF(5,13),T.qZA()()()()}if(2&ct){const kt=it.$implicit,Gt=it.index,oe=it.last,Ce=T.oxw(2),Ee=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",Ee)("ngTemplateOutletContext",T.WLB(10,ve,kt,Gt)),T.xp6(1),T.ekj("mat-stepper-vertical-line",!oe),T.xp6(1),T.ekj("mat-vertical-stepper-content-inactive",Ce.selectedIndex!==Gt),T.Q6J("@verticalStepTransition",T.WLB(15,qe,Ce._getAnimationDirection(Gt),T.VKq(13,Oe,Ce._getAnimationDuration())))("id",Ce._getStepContentId(Gt)),T.uIk("aria-labelledby",Ce._getStepLabelId(Gt)),T.xp6(2),T.Q6J("ngTemplateOutlet",kt.content)}}function ae(ct,it){if(1&ct&&(T.ynx(0),T.YNc(1,we,6,18,"div",14),T.BQk()),2&ct){const kt=T.oxw();T.xp6(1),T.Q6J("ngForOf",kt.steps)}}function Kt(ct,it){if(1&ct){const kt=T.EpF();T.TgZ(0,"mat-step-header",19),T.NdJ("click",function(){const Ce=T.CHM(kt).step;return T.KtG(Ce.select())})("keydown",function(oe){T.CHM(kt);const Ce=T.oxw();return T.KtG(Ce._onKeydown(oe))}),T.qZA()}if(2&ct){const kt=it.step,Gt=it.i,oe=T.oxw();T.ekj("mat-horizontal-stepper-header","horizontal"===oe.orientation)("mat-vertical-stepper-header","vertical"===oe.orientation),T.Q6J("tabIndex",oe._getFocusIndex()===Gt?0:-1)("id",oe._getStepLabelId(Gt))("index",Gt)("state",oe._getIndicatorType(Gt,kt.state))("label",kt.stepLabel||kt.label)("selected",oe.selectedIndex===Gt)("active",oe._stepIsNavigable(Gt,kt))("optional",kt.optional)("errorMessage",kt.errorMessage)("iconOverrides",oe._iconOverrides)("disableRipple",oe.disableRipple||!oe._stepIsNavigable(Gt,kt))("color",kt.color||oe.color),T.uIk("aria-posinset",Gt+1)("aria-setsize",oe.steps.length)("aria-controls",oe._getStepContentId(Gt))("aria-selected",oe.selectedIndex==Gt)("aria-label",kt.ariaLabel||null)("aria-labelledby",!kt.ariaLabel&&kt.ariaLabelledby?kt.ariaLabelledby:null)("aria-disabled",!oe._stepIsNavigable(Gt,kt)||null)}}let de=(()=>{class ct extends p.u6{}return ct.\u0275fac=function(){let it;return function(Gt){return(it||(it=T.n5z(ct)))(Gt||ct)}}(),ct.\u0275dir=T.lG2({type:ct,selectors:[["","matStepLabel",""]],features:[T.qOj]}),ct})(),Wt=(()=>{class ct{constructor(){this.changes=new k.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return ct.\u0275fac=function(kt){return new(kt||ct)},ct.\u0275prov=T.Yz7({token:ct,factory:ct.\u0275fac,providedIn:"root"}),ct})();const Pe={provide:Wt,deps:[[new T.FiY,new T.tp0,Wt]],useFactory:function re(ct){return ct||new Wt}},on=(0,A.pj)(class extends p.KL{constructor(it){super(it)}},"primary");let _n=(()=>{class ct extends on{constructor(kt,Gt,oe,Ce){super(oe),this._intl=kt,this._focusMonitor=Gt,this._intlSubscription=kt.changes.subscribe(()=>Ce.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(kt,Gt){kt?this._focusMonitor.focusVia(this._elementRef,kt,Gt):this._elementRef.nativeElement.focus(Gt)}_stringLabel(){return this.label instanceof de?null:this.label}_templateLabel(){return this.label instanceof de?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(kt){return"number"==kt?`${this.index+1}`:"edit"==kt?"create":"error"==kt?"warning":kt}}return ct.\u0275fac=function(kt){return new(kt||ct)(T.Y36(Wt),T.Y36(U.tE),T.Y36(T.SBq),T.Y36(T.sBO))},ct.\u0275cmp=T.Xpm({type:ct,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(kt,Gt){1&kt&&(T._UZ(0,"div",0),T.TgZ(1,"div")(2,"div",1),T.YNc(3,bt,1,2,"ng-container",2),T.YNc(4,nt,5,4,"ng-container",3),T.qZA()(),T.TgZ(5,"div",4),T.YNc(6,Tt,2,1,"div",5),T.YNc(7,At,2,1,"div",5),T.YNc(8,ft,2,1,"div",6),T.YNc(9,Et,2,1,"div",7),T.qZA()),2&kt&&(T.Q6J("matRippleTrigger",Gt._getHostElement())("matRippleDisabled",Gt.disableRipple),T.xp6(1),T.Gre("mat-step-icon-state-",Gt.state," mat-step-icon"),T.ekj("mat-step-icon-selected",Gt.selected),T.xp6(1),T.Q6J("ngSwitch",!(!Gt.iconOverrides||!Gt.iconOverrides[Gt.state])),T.xp6(1),T.Q6J("ngSwitchCase",!0),T.xp6(2),T.ekj("mat-step-label-active",Gt.active)("mat-step-label-selected",Gt.selected)("mat-step-label-error","error"==Gt.state),T.xp6(1),T.Q6J("ngIf",Gt._templateLabel()),T.xp6(1),T.Q6J("ngIf",Gt._stringLabel()),T.xp6(1),T.Q6J("ngIf",Gt.optional&&"error"!=Gt.state),T.xp6(1),T.Q6J("ngIf","error"==Gt.state))},dependencies:[v.O5,v.tP,v.RF,v.n9,v.ED,C.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}),ct})();const Ue={horizontalStepTransition:(0,lt.X$)("horizontalStepTransition",[(0,lt.SB)("previous",(0,lt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,lt.SB)("current",(0,lt.oB)({transform:"none",visibility:"inherit"})),(0,lt.SB)("next",(0,lt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,lt.eR)("* => *",(0,lt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,lt.X$)("verticalStepTransition",[(0,lt.SB)("previous",(0,lt.oB)({height:"0px",visibility:"hidden"})),(0,lt.SB)("next",(0,lt.oB)({height:"0px",visibility:"hidden"})),(0,lt.SB)("current",(0,lt.oB)({height:"*",visibility:"inherit"})),(0,lt.eR)("* <=> current",(0,lt.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let un=(()=>{class ct{constructor(kt){this.templateRef=kt}}return ct.\u0275fac=function(kt){return new(kt||ct)(T.Y36(T.Rgc))},ct.\u0275dir=T.lG2({type:ct,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ct})(),Mn=(()=>{class ct{constructor(kt){this._template=kt}}return ct.\u0275fac=function(kt){return new(kt||ct)(T.Y36(T.Rgc))},ct.\u0275dir=T.lG2({type:ct,selectors:[["ng-template","matStepContent",""]]}),ct})(),oi=(()=>{class ct extends p.be{constructor(kt,Gt,oe,Ce){super(kt,Ce),this._errorStateMatcher=Gt,this._viewContainerRef=oe,this._isSelected=D.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,I.w)(()=>this._stepper.selectionChange.pipe((0,z.U)(kt=>kt.selectedStep===this),(0,G.O)(this._stepper.selected===this)))).subscribe(kt=>{kt&&this._lazyContent&&!this._portal&&(this._portal=new d.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(kt,Gt){return this._errorStateMatcher.isErrorState(kt,Gt)||!!(kt&&kt.invalid&&this.interacted)}}return ct.\u0275fac=function(kt){return new(kt||ct)(T.Y36((0,T.Gpc)(()=>bi)),T.Y36(A.rD,4),T.Y36(T.s_b),T.Y36(p.gx,8))},ct.\u0275cmp=T.Xpm({type:ct,selectors:[["mat-step"]],contentQueries:function(kt,Gt,oe){if(1&kt&&(T.Suo(oe,de,5),T.Suo(oe,Mn,5)),2&kt){let Ce;T.iGM(Ce=T.CRH())&&(Gt.stepLabel=Ce.first),T.iGM(Ce=T.CRH())&&(Gt._lazyContent=Ce.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[T._Bn([{provide:A.rD,useExisting:ct},{provide:p.be,useExisting:ct}]),T.qOj],ngContentSelectors:se,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(kt,Gt){1&kt&&(T.F$t(),T.YNc(0,It,2,1,"ng-template"))},dependencies:[d.Pl],encapsulation:2,changeDetection:0}),ct})(),bi=(()=>{class ct extends p.B8{constructor(kt,Gt,oe){super(kt,Gt,oe),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 Ce=oe.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===Ce?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(kt){this._animationDuration=/^\d+$/.test(kt)?kt+"ms":kt}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:kt,templateRef:Gt})=>this._iconOverrides[kt]=Gt),this.steps.changes.pipe((0,K.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,at.x)((kt,Gt)=>kt.fromState===Gt.fromState&&kt.toState===Gt.toState),(0,K.R)(this._destroyed)).subscribe(kt=>{"current"===kt.toState&&this.animationDone.emit()})}_stepIsNavigable(kt,Gt){return Gt.completed||this.selectedIndex===kt||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return ct.\u0275fac=function(kt){return new(kt||ct)(T.Y36(P.Is,8),T.Y36(T.sBO),T.Y36(T.SBq))},ct.\u0275cmp=T.Xpm({type:ct,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(kt,Gt,oe){if(1&kt&&(T.Suo(oe,oi,5),T.Suo(oe,un,5)),2&kt){let Ce;T.iGM(Ce=T.CRH())&&(Gt._steps=Ce),T.iGM(Ce=T.CRH())&&(Gt._icons=Ce)}},viewQuery:function(kt,Gt){if(1&kt&&T.Gf(_n,5),2&kt){let oe;T.iGM(oe=T.CRH())&&(Gt._stepHeader=oe)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(kt,Gt){2&kt&&(T.uIk("aria-orientation",Gt.orientation),T.ekj("mat-stepper-horizontal","horizontal"===Gt.orientation)("mat-stepper-vertical","vertical"===Gt.orientation)("mat-stepper-label-position-end","horizontal"===Gt.orientation&&"end"==Gt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Gt.orientation&&"bottom"==Gt.labelPosition)("mat-stepper-header-position-bottom","bottom"===Gt.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:ct}]),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(kt,Gt){1&kt&&(T.ynx(0,0),T.YNc(1,Xt,5,2,"div",1),T.YNc(2,ae,2,1,"ng-container",2),T.BQk(),T.YNc(3,Kt,1,23,"ng-template",null,3,T.W1O)),2&kt&&(T.Q6J("ngSwitch",Gt.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,_n],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:[Ue.horizontalStepTransition,Ue.verticalStepTransition]},changeDetection:0}),ct})(),ri=(()=>{class ct extends p.st{}return ct.\u0275fac=function(){let it;return function(Gt){return(it||(it=T.n5z(ct)))(Gt||ct)}}(),ct.\u0275dir=T.lG2({type:ct,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(kt,Gt){2&kt&&T.Ikx("type",Gt.type)},inputs:{type:"type"},features:[T.qOj]}),ct})(),Ke=(()=>{class ct extends p.po{}return ct.\u0275fac=function(){let it;return function(Gt){return(it||(it=T.n5z(ct)))(Gt||ct)}}(),ct.\u0275dir=T.lG2({type:ct,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(kt,Gt){2&kt&&T.Ikx("type",Gt.type)},inputs:{type:"type"},features:[T.qOj]}),ct})(),ne=(()=>{class ct{}return ct.\u0275fac=function(kt){return new(kt||ct)},ct.\u0275mod=T.oAB({type:ct}),ct.\u0275inj=T.cJS({providers:[Pe,A.rD],imports:[A.BQ,v.ez,d.eL,t.ot,p.U5,C.Ps,A.si,A.BQ]}),ct})()},30671:(ot,et,b)=>{"use strict";b.d(et,{ev:()=>En,Dz:()=>Te,w1:()=>Tn,yh:()=>Re,mD:()=>Fe,Q2:()=>An,Ke:()=>go,ge:()=>he,fO:()=>Xe,XQ:()=>mn,as:()=>gi,Gk:()=>sn,nj:()=>_o,BZ:()=>Ot,by:()=>fr,p0:()=>Fo});var d=b(94650),p=b(40445),v=b(21281),T=b(95017),t=b(83353),A=b(67376),C=b(36895),U=b(8929),k=b(5254),D=b(591),P=b(54715),I=b(21086),z=b(7625),G=b(72986);const K=[[["caption"]],[["colgroup"],["col"]]],at=["caption","colgroup, col"];function Pt(Ge){return class extends Ge{constructor(...In){super(...In),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(In){const He=this._sticky;this._sticky=(0,v.Ig)(In),this._hasStickyChanged=He!==this._sticky}hasStickyChanged(){const In=this._hasStickyChanged;return this._hasStickyChanged=!1,In}resetStickyChanged(){this._hasStickyChanged=!1}}}const Dt=new d.OlP("CDK_TABLE");let Vt=(()=>{class Ge{constructor(He){this.template=He}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.Rgc))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","cdkCellDef",""]]}),Ge})(),nt=(()=>{class Ge{constructor(He){this.template=He}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.Rgc))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","cdkHeaderCellDef",""]]}),Ge})(),Tt=(()=>{class Ge{constructor(He){this.template=He}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.Rgc))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","cdkFooterCellDef",""]]}),Ge})();class At{}const ft=Pt(At);let Et=(()=>{class Ge extends ft{constructor(He){super(),this._table=He,this._stickyEnd=!1}get name(){return this._name}set name(He){this._setNameInput(He)}get stickyEnd(){return this._stickyEnd}set stickyEnd(He){const ke=this._stickyEnd;this._stickyEnd=(0,v.Ig)(He),this._hasStickyChanged=ke!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(He){He&&(this._name=He,this.cssClassFriendlyName=He.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(Dt,8))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","cdkColumnDef",""]],contentQueries:function(He,ke,dn){if(1&He&&(d.Suo(dn,Vt,5),d.Suo(dn,nt,5),d.Suo(dn,Tt,5)),2&He){let tt;d.iGM(tt=d.CRH())&&(ke.cell=tt.first),d.iGM(tt=d.CRH())&&(ke.headerCell=tt.first),d.iGM(tt=d.CRH())&&(ke.footerCell=tt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[d._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ge}]),d.qOj]}),Ge})();class Bt{constructor(In,He){He.nativeElement.classList.add(...In._columnCssClassName)}}let It=(()=>{class Ge extends Bt{constructor(He,ke){super(He,ke)}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(Et),d.Y36(d.SBq))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[d.qOj]}),Ge})(),se=(()=>{class Ge extends Bt{constructor(He,ke){if(super(He,ke),1===He._table?._elementRef.nativeElement.nodeType){const dn=He._table._elementRef.nativeElement.getAttribute("role");ke.nativeElement.setAttribute("role","grid"===dn||"treegrid"===dn?"gridcell":"cell")}}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(Et),d.Y36(d.SBq))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[d.qOj]}),Ge})(),Jt=(()=>{class Ge extends Bt{constructor(He,ke){if(super(He,ke),1===He._table?._elementRef.nativeElement.nodeType){const dn=He._table._elementRef.nativeElement.getAttribute("role");ke.nativeElement.setAttribute("role","grid"===dn||"treegrid"===dn?"gridcell":"cell")}}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(Et),d.Y36(d.SBq))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[d.qOj]}),Ge})();class ve{constructor(){this.tasks=[],this.endTasks=[]}}const xe=new d.OlP("_COALESCED_STYLE_SCHEDULER");let Oe=(()=>{class Ge{constructor(He){this._ngZone=He,this._currentSchedule=null,this._destroyed=new U.xQ}schedule(He){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(He)}scheduleEnd(He){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(He)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ve,this._getScheduleObservable().pipe((0,z.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const He=this._currentSchedule;this._currentSchedule=new ve;for(const ke of He.tasks)ke();for(const ke of He.endTasks)ke()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,k.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,G.q)(1))}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.LFG(d.R0b))},Ge.\u0275prov=d.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})(),$e=(()=>{class Ge{constructor(He,ke){this.template=He,this._differs=ke}ngOnChanges(He){if(!this._columnsDiffer){const ke=He.columns&&He.columns.currentValue||[];this._columnsDiffer=this._differs.find(ke).create(),this._columnsDiffer.diff(ke)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(He){return this instanceof ae?He.headerCell.template:this instanceof Wt?He.footerCell.template:He.cell.template}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.Rgc),d.Y36(d.ZZ4))},Ge.\u0275dir=d.lG2({type:Ge,features:[d.TTD]}),Ge})();class Xt extends $e{}const we=Pt(Xt);let ae=(()=>{class Ge extends we{constructor(He,ke,dn){super(He,ke),this._table=dn}ngOnChanges(He){super.ngOnChanges(He)}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(Dt,8))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[d.qOj,d.TTD]}),Ge})();class Kt extends $e{}const de=Pt(Kt);let Wt=(()=>{class Ge extends de{constructor(He,ke,dn){super(He,ke),this._table=dn}ngOnChanges(He){super.ngOnChanges(He)}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(Dt,8))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[d.qOj,d.TTD]}),Ge})(),re=(()=>{class Ge extends $e{constructor(He,ke,dn){super(He,ke),this._table=dn}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(Dt,8))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[d.qOj]}),Ge})(),Pe=(()=>{class Ge{constructor(He){this._viewContainer=He,Ge.mostRecentCellOutlet=this}ngOnDestroy(){Ge.mostRecentCellOutlet===this&&(Ge.mostRecentCellOutlet=null)}}return Ge.mostRecentCellOutlet=null,Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.s_b))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","cdkCellOutlet",""]]}),Ge})(),on=(()=>{class Ge{}return Ge.\u0275fac=function(He){return new(He||Ge)},Ge.\u0275cmp=d.Xpm({type:Ge,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,ke){1&He&&d.GkF(0,0)},dependencies:[Pe],encapsulation:2}),Ge})(),_n=(()=>{class Ge{}return Ge.\u0275fac=function(He){return new(He||Ge)},Ge.\u0275cmp=d.Xpm({type:Ge,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,ke){1&He&&d.GkF(0,0)},dependencies:[Pe],encapsulation:2}),Ge})(),ye=(()=>{class Ge{}return Ge.\u0275fac=function(He){return new(He||Ge)},Ge.\u0275cmp=d.Xpm({type:Ge,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,ke){1&He&&d.GkF(0,0)},dependencies:[Pe],encapsulation:2}),Ge})(),gn=(()=>{class Ge{constructor(He){this.templateRef=He,this._contentClassName="cdk-no-data-row"}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.Rgc))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["ng-template","cdkNoDataRow",""]]}),Ge})();const Ue=["top","bottom","left","right"];class un{constructor(In,He,ke,dn,tt=!0,Rt=!0,Q){this._isNativeHtmlTable=In,this._stickCellCss=He,this.direction=ke,this._coalescedStyleScheduler=dn,this._isBrowser=tt,this._needsPositionStickyOnElement=Rt,this._positionListener=Q,this._cachedCellWidths=[],this._borderCellCss={top:`${He}-border-elem-top`,bottom:`${He}-border-elem-bottom`,left:`${He}-border-elem-left`,right:`${He}-border-elem-right`}}clearStickyPositioning(In,He){const ke=[];for(const dn of In)if(dn.nodeType===dn.ELEMENT_NODE){ke.push(dn);for(let tt=0;tt{for(const dn of ke)this._removeStickyStyle(dn,He)})}updateStickyColumns(In,He,ke,dn=!0){if(!In.length||!this._isBrowser||!He.some(Co=>Co)&&!ke.some(Co=>Co))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const tt=In[0],Rt=tt.children.length,Q=this._getCellWidths(tt,dn),Ft=this._getStickyStartColumnPositions(Q,He),Be=this._getStickyEndColumnPositions(Q,ke),Rn=He.lastIndexOf(!0),Gi=ke.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Co="rtl"===this.direction,gr=Co?"right":"left",br=Co?"left":"right";for(const ls of In)for(let ar=0;arHe[ar]?ls:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Gi?[]:Q.slice(Gi).map((ls,ar)=>ke[ar+Gi]?ls:null).reverse()}))})}stickRows(In,He,ke){if(!this._isBrowser)return;const dn="bottom"===ke?In.slice().reverse():In,tt="bottom"===ke?He.slice().reverse():He,Rt=[],Q=[],Ft=[];for(let Rn=0,Gi=0;Rn{for(let Rn=0;Rn{He.some(dn=>!dn)?this._removeStickyStyle(ke,["bottom"]):this._addStickyStyle(ke,"bottom",0,!1)})}_removeStickyStyle(In,He){for(const dn of He)In.style[dn]="",In.classList.remove(this._borderCellCss[dn]);Ue.some(dn=>-1===He.indexOf(dn)&&In.style[dn])?In.style.zIndex=this._getCalculatedZIndex(In):(In.style.zIndex="",this._needsPositionStickyOnElement&&(In.style.position=""),In.classList.remove(this._stickCellCss))}_addStickyStyle(In,He,ke,dn){In.classList.add(this._stickCellCss),dn&&In.classList.add(this._borderCellCss[He]),In.style[He]=`${ke}px`,In.style.zIndex=this._getCalculatedZIndex(In),this._needsPositionStickyOnElement&&(In.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(In){const He={top:100,bottom:10,left:1,right:1};let ke=0;for(const dn of Ue)In.style[dn]&&(ke+=He[dn]);return ke?`${ke}`:""}_getCellWidths(In,He=!0){if(!He&&this._cachedCellWidths.length)return this._cachedCellWidths;const ke=[],dn=In.children;for(let tt=0;tt0;tt--)He[tt]&&(ke[tt]=dn,dn+=In[tt]);return ke}}const kt=new d.OlP("CDK_SPL");let oe=(()=>{class Ge{constructor(He,ke){this.viewContainer=He,this.elementRef=ke}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.s_b),d.Y36(d.SBq))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","rowOutlet",""]]}),Ge})(),Ce=(()=>{class Ge{constructor(He,ke){this.viewContainer=He,this.elementRef=ke}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.s_b),d.Y36(d.SBq))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","headerRowOutlet",""]]}),Ge})(),Ee=(()=>{class Ge{constructor(He,ke){this.viewContainer=He,this.elementRef=ke}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.s_b),d.Y36(d.SBq))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","footerRowOutlet",""]]}),Ge})(),Pn=(()=>{class Ge{constructor(He,ke){this.viewContainer=He,this.elementRef=ke}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.s_b),d.Y36(d.SBq))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","noDataRowOutlet",""]]}),Ge})(),Oi=(()=>{class Ge{constructor(He,ke,dn,tt,Rt,Q,Ft,Be,Rn,Gi,Co,gr){this._differs=He,this._changeDetectorRef=ke,this._elementRef=dn,this._dir=Rt,this._platform=Ft,this._viewRepeater=Be,this._coalescedStyleScheduler=Rn,this._viewportRuler=Gi,this._stickyPositioningListener=Co,this._ngZone=gr,this._onDestroy=new U.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}),tt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Q,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(He){this._trackByFn=He}get dataSource(){return this._dataSource}set dataSource(He){this._dataSource!==He&&this._switchDataSource(He)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(He){this._multiTemplateDataRows=(0,v.Ig)(He),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(He){this._fixedLayout=(0,v.Ig)(He),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((He,ke)=>this.trackBy?this.trackBy(ke.dataIndex,ke.data):ke),this._viewportRuler.change().pipe((0,z.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const ke=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||ke,this._forceRecalculateCellWidths=ke,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(He=>{He.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 He=this._dataDiffer.diff(this._renderRows);if(!He)return this._updateNoDataRow(),void this.contentChanged.next();const ke=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(He,ke,(dn,tt,Rt)=>this._getEmbeddedViewArgs(dn.item,Rt),dn=>dn.item.data,dn=>{1===dn.operation&&dn.context&&this._renderCellTemplateForItem(dn.record.item.rowDef,dn.context)}),this._updateRowIndexContext(),He.forEachIdentityChange(dn=>{ke.get(dn.currentIndex).context.$implicit=dn.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(He){this._customColumnDefs.add(He)}removeColumnDef(He){this._customColumnDefs.delete(He)}addRowDef(He){this._customRowDefs.add(He)}removeRowDef(He){this._customRowDefs.delete(He)}addHeaderRowDef(He){this._customHeaderRowDefs.add(He),this._headerRowDefChanged=!0}removeHeaderRowDef(He){this._customHeaderRowDefs.delete(He),this._headerRowDefChanged=!0}addFooterRowDef(He){this._customFooterRowDefs.add(He),this._footerRowDefChanged=!0}removeFooterRowDef(He){this._customFooterRowDefs.delete(He),this._footerRowDefChanged=!0}setNoDataRow(He){this._customNoDataRow=He}updateStickyHeaderRowStyles(){const He=this._getRenderedRows(this._headerRowOutlet),dn=this._elementRef.nativeElement.querySelector("thead");dn&&(dn.style.display=He.length?"":"none");const tt=this._headerRowDefs.map(Rt=>Rt.sticky);this._stickyStyler.clearStickyPositioning(He,["top"]),this._stickyStyler.stickRows(He,tt,"top"),this._headerRowDefs.forEach(Rt=>Rt.resetStickyChanged())}updateStickyFooterRowStyles(){const He=this._getRenderedRows(this._footerRowOutlet),dn=this._elementRef.nativeElement.querySelector("tfoot");dn&&(dn.style.display=He.length?"":"none");const tt=this._footerRowDefs.map(Rt=>Rt.sticky);this._stickyStyler.clearStickyPositioning(He,["bottom"]),this._stickyStyler.stickRows(He,tt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,tt),this._footerRowDefs.forEach(Rt=>Rt.resetStickyChanged())}updateStickyColumnStyles(){const He=this._getRenderedRows(this._headerRowOutlet),ke=this._getRenderedRows(this._rowOutlet),dn=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...He,...ke,...dn],["left","right"]),this._stickyColumnStylesNeedReset=!1),He.forEach((tt,Rt)=>{this._addStickyColumnStyles([tt],this._headerRowDefs[Rt])}),this._rowDefs.forEach(tt=>{const Rt=[];for(let Q=0;Q{this._addStickyColumnStyles([tt],this._footerRowDefs[Rt])}),Array.from(this._columnDefsByName.values()).forEach(tt=>tt.resetStickyChanged())}_getAllRenderRows(){const He=[],ke=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let dn=0;dn{const Q=dn&&dn.has(Rt)?dn.get(Rt):[];if(Q.length){const Ft=Q.shift();return Ft.dataIndex=ke,Ft}return{data:He,rowDef:Rt,dataIndex:ke}})}_cacheColumnDefs(){this._columnDefsByName.clear(),ho(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(ke=>{this._columnDefsByName.has(ke.name),this._columnDefsByName.set(ke.name,ke)})}_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 He=this._rowDefs.filter(ke=>!ke.when);this._defaultRowDef=He[0]}_renderUpdatedColumns(){const He=(Rt,Q)=>Rt||!!Q.getColumnsDiff(),ke=this._rowDefs.reduce(He,!1);ke&&this._forceRenderDataRows();const dn=this._headerRowDefs.reduce(He,!1);dn&&this._forceRenderHeaderRows();const tt=this._footerRowDefs.reduce(He,!1);return tt&&this._forceRenderFooterRows(),ke||dn||tt}_switchDataSource(He){this._data=[],(0,T.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),He||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=He}_observeRenderChanges(){if(!this.dataSource)return;let He;(0,T.Z9)(this.dataSource)?He=this.dataSource.connect(this):(0,P.b)(this.dataSource)?He=this.dataSource:Array.isArray(this.dataSource)&&(He=(0,I.of)(this.dataSource)),this._renderChangeSubscription=He.pipe((0,z.R)(this._onDestroy)).subscribe(ke=>{this._data=ke||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((He,ke)=>this._renderRow(this._headerRowOutlet,He,ke)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((He,ke)=>this._renderRow(this._footerRowOutlet,He,ke)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(He,ke){const dn=Array.from(ke.columns||[]).map(Q=>this._columnDefsByName.get(Q)),tt=dn.map(Q=>Q.sticky),Rt=dn.map(Q=>Q.stickyEnd);this._stickyStyler.updateStickyColumns(He,tt,Rt,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(He){const ke=[];for(let dn=0;dn!tt.when||tt.when(ke,He));else{let tt=this._rowDefs.find(Rt=>Rt.when&&Rt.when(ke,He))||this._defaultRowDef;tt&&dn.push(tt)}return dn}_getEmbeddedViewArgs(He,ke){return{templateRef:He.rowDef.template,context:{$implicit:He.data},index:ke}}_renderRow(He,ke,dn,tt={}){const Rt=He.viewContainer.createEmbeddedView(ke.template,tt,dn);return this._renderCellTemplateForItem(ke,tt),Rt}_renderCellTemplateForItem(He,ke){for(let dn of this._getCellTemplates(He))Pe.mostRecentCellOutlet&&Pe.mostRecentCellOutlet._viewContainer.createEmbeddedView(dn,ke);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const He=this._rowOutlet.viewContainer;for(let ke=0,dn=He.length;ke{const dn=this._columnDefsByName.get(ke);return He.extractCellTemplate(dn)}):[]}_applyNativeTableSections(){const He=this._document.createDocumentFragment(),ke=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const dn of ke){const tt=this._document.createElement(dn.tag);tt.setAttribute("role","rowgroup");for(const Rt of dn.outlets)tt.appendChild(Rt.elementRef.nativeElement);He.appendChild(tt)}this._elementRef.nativeElement.appendChild(He)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const He=(ke,dn)=>ke||dn.hasStickyChanged();this._headerRowDefs.reduce(He,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(He,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(He,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new un(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(ke=>{this._stickyStyler.direction=ke,this.updateStickyColumnStyles()})}_getOwnDefs(He){return He.filter(ke=>!ke._table||ke._table===this)}_updateNoDataRow(){const He=this._customNoDataRow||this._noDataRow;if(!He)return;const ke=0===this._rowOutlet.viewContainer.length;if(ke===this._isShowingNoDataRow)return;const dn=this._noDataRowOutlet.viewContainer;if(ke){const tt=dn.createEmbeddedView(He.templateRef),Rt=tt.rootNodes[0];1===tt.rootNodes.length&&Rt?.nodeType===this._document.ELEMENT_NODE&&(Rt.setAttribute("role","row"),Rt.classList.add(He._contentClassName))}else dn.clear();this._isShowingNoDataRow=ke}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.ZZ4),d.Y36(d.sBO),d.Y36(d.SBq),d.$8M("role"),d.Y36(p.Is,8),d.Y36(C.K0),d.Y36(t.t4),d.Y36(T.k),d.Y36(xe),d.Y36(A.rL),d.Y36(kt,12),d.Y36(d.R0b,8))},Ge.\u0275cmp=d.Xpm({type:Ge,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(He,ke,dn){if(1&He&&(d.Suo(dn,gn,5),d.Suo(dn,Et,5),d.Suo(dn,re,5),d.Suo(dn,ae,5),d.Suo(dn,Wt,5)),2&He){let tt;d.iGM(tt=d.CRH())&&(ke._noDataRow=tt.first),d.iGM(tt=d.CRH())&&(ke._contentColumnDefs=tt),d.iGM(tt=d.CRH())&&(ke._contentRowDefs=tt),d.iGM(tt=d.CRH())&&(ke._contentHeaderRowDefs=tt),d.iGM(tt=d.CRH())&&(ke._contentFooterRowDefs=tt)}},viewQuery:function(He,ke){if(1&He&&(d.Gf(oe,7),d.Gf(Ce,7),d.Gf(Ee,7),d.Gf(Pn,7)),2&He){let dn;d.iGM(dn=d.CRH())&&(ke._rowOutlet=dn.first),d.iGM(dn=d.CRH())&&(ke._headerRowOutlet=dn.first),d.iGM(dn=d.CRH())&&(ke._footerRowOutlet=dn.first),d.iGM(dn=d.CRH())&&(ke._noDataRowOutlet=dn.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(He,ke){2&He&&d.ekj("cdk-table-fixed-layout",ke.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[d._Bn([{provide:Dt,useExisting:Ge},{provide:T.k,useClass:T.yy},{provide:xe,useClass:Oe},{provide:kt,useValue:null}])],ngContentSelectors:at,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(He,ke){1&He&&(d.F$t(K),d.Hsn(0),d.Hsn(1,1),d.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[oe,Ce,Ee,Pn],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Ge})();function ho(Ge,In){return Ge.concat(Array.from(In))}let jn=(()=>{class Ge{}return Ge.\u0275fac=function(He){return new(He||Ge)},Ge.\u0275mod=d.oAB({type:Ge}),Ge.\u0275inj=d.cJS({imports:[A.Cl]}),Ge})();var Ye=b(3238),fn=b(36787),ze=b(23426),We=b(24850);const en=[[["caption"]],[["colgroup"],["col"]]],le=["caption","colgroup, col"];let Ot=(()=>{class Ge extends Oi{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275cmp=d.Xpm({type:Ge,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(He,ke){2&He&&d.ekj("mat-table-fixed-layout",ke.fixedLayout)},exportAs:["matTable"],features:[d._Bn([{provide:T.k,useClass:T.yy},{provide:Oi,useExisting:Ge},{provide:Dt,useExisting:Ge},{provide:xe,useClass:Oe},{provide:kt,useValue:null}]),d.qOj],ngContentSelectors:le,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(He,ke){1&He&&(d.F$t(en),d.Hsn(0),d.Hsn(1,1),d.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[oe,Ce,Ee,Pn],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}),Ge})(),Te=(()=>{class Ge extends Vt{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","matCellDef",""]],features:[d._Bn([{provide:Vt,useExisting:Ge}]),d.qOj]}),Ge})(),Xe=(()=>{class Ge extends nt{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","matHeaderCellDef",""]],features:[d._Bn([{provide:nt,useExisting:Ge}]),d.qOj]}),Ge})(),Fe=(()=>{class Ge extends Tt{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","matFooterCellDef",""]],features:[d._Bn([{provide:Tt,useExisting:Ge}]),d.qOj]}),Ge})(),Tn=(()=>{class Ge extends Et{get name(){return this._name}set name(He){this._setNameInput(He)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[d._Bn([{provide:Et,useExisting:Ge},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ge}]),d.qOj]}),Ge})(),he=(()=>{class Ge extends It{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[d.qOj]}),Ge})(),Re=(()=>{class Ge extends se{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[d.qOj]}),Ge})(),En=(()=>{class Ge extends Jt{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[d.qOj]}),Ge})(),gi=(()=>{class Ge extends ae{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[d._Bn([{provide:ae,useExisting:Ge}]),d.qOj]}),Ge})(),go=(()=>{class Ge extends Wt{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[d._Bn([{provide:Wt,useExisting:Ge}]),d.qOj]}),Ge})(),_o=(()=>{class Ge extends re{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[d._Bn([{provide:re,useExisting:Ge}]),d.qOj]}),Ge})(),mn=(()=>{class Ge extends on{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275cmp=d.Xpm({type:Ge,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[d._Bn([{provide:on,useExisting:Ge}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,ke){1&He&&d.GkF(0,0)},dependencies:[Pe],encapsulation:2}),Ge})(),An=(()=>{class Ge extends _n{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275cmp=d.Xpm({type:Ge,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[d._Bn([{provide:_n,useExisting:Ge}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,ke){1&He&&d.GkF(0,0)},dependencies:[Pe],encapsulation:2}),Ge})(),sn=(()=>{class Ge extends ye{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275cmp=d.Xpm({type:Ge,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[d._Bn([{provide:ye,useExisting:Ge}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,ke){1&He&&d.GkF(0,0)},dependencies:[Pe],encapsulation:2}),Ge})(),Fo=(()=>{class Ge{}return Ge.\u0275fac=function(He){return new(He||Ge)},Ge.\u0275mod=d.oAB({type:Ge}),Ge.\u0275inj=d.cJS({imports:[jn,Ye.BQ,Ye.BQ]}),Ge})();class Ia extends T.o2{constructor(In=[]){super(),this._renderData=new D.X([]),this._filter=new D.X(""),this._internalPageChanges=new U.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(He,ke)=>{const dn=He[ke];if((0,v.t6)(dn)){const tt=Number(dn);return tt<9007199254740991?tt:dn}return dn},this.sortData=(He,ke)=>{const dn=ke.active,tt=ke.direction;return dn&&""!=tt?He.sort((Rt,Q)=>{let Ft=this.sortingDataAccessor(Rt,dn),Be=this.sortingDataAccessor(Q,dn);const Rn=typeof Ft,Gi=typeof Be;Rn!==Gi&&("number"===Rn&&(Ft+=""),"number"===Gi&&(Be+=""));let Co=0;return null!=Ft&&null!=Be?Ft>Be?Co=1:Ft{const dn=Object.keys(He).reduce((Rt,Q)=>Rt+He[Q]+"\u25ec","").toLowerCase(),tt=ke.trim().toLowerCase();return-1!=dn.indexOf(tt)},this._data=new D.X(In),this._updateChangeSubscription()}get data(){return this._data.value}set data(In){In=Array.isArray(In)?In:[],this._data.next(In),this._renderChangesSubscription||this._filterData(In)}get filter(){return this._filter.value}set filter(In){this._filter.next(In),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(In){this._sort=In,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(In){this._paginator=In,this._updateChangeSubscription()}_updateChangeSubscription(){const In=this._sort?(0,fn.T)(this._sort.sortChange,this._sort.initialized):(0,I.of)(null),He=this._paginator?(0,fn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,I.of)(null),dn=(0,ze.aj)([this._data,this._filter]).pipe((0,We.U)(([Q])=>this._filterData(Q))),tt=(0,ze.aj)([dn,In]).pipe((0,We.U)(([Q])=>this._orderData(Q))),Rt=(0,ze.aj)([tt,He]).pipe((0,We.U)(([Q])=>this._pageData(Q)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Rt.subscribe(Q=>this._renderData.next(Q))}_filterData(In){return this.filteredData=null==this.filter||""===this.filter?In:In.filter(He=>this.filterPredicate(He,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(In){return this.sort?this.sortData(In.slice(),this.sort):In}_pageData(In){if(!this.paginator)return In;const He=this.paginator.pageIndex*this.paginator.pageSize;return In.slice(He,He+this.paginator.pageSize)}_updatePaginator(In){Promise.resolve().then(()=>{const He=this.paginator;if(He&&(He.length=In,He.pageIndex>0)){const ke=Math.ceil(He.length/He.pageSize)-1||0,dn=Math.min(He.pageIndex,ke);dn!==He.pageIndex&&(He.pageIndex=dn,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class fr extends Ia{}},3848:(ot,et,b)=>{"use strict";b.d(et,{BU:()=>Je,Nh:()=>Xe,Nj:()=>Ot,SP:()=>We,uD:()=>bi,uX:()=>ne});var d=b(12687),p=b(49643),v=b(84080),T=b(36895),t=b(94650),A=b(3238),C=b(72986),U=b(1059),k=b(75778),D=b(7625),P=b(87545),I=b(31307),z=b(92198),G=b(8929),K=b(42654),at=b(23753),lt=b(21086),bt=b(36787),Pt=b(68896),Dt=b(56498),zt=b(98723),Vt=b(40445),nt=b(37340),Tt=b(21281),At=b(67376),ft=b(83353),Et=b(29521);function Bt(Fe,Tn){1&Fe&&t.Hsn(0)}const It=["*"];function se(Fe,Tn){}const Jt=function(Fe){return{animationDuration:Fe}},ve=function(Fe,Tn){return{value:Fe,params:Tn}},xe=["tabListContainer"],Oe=["tabList"],qe=["tabListInner"],$e=["nextPaginator"],Xt=["previousPaginator"],we=["tabBodyWrapper"],ae=["tabHeader"];function Kt(Fe,Tn){}function de(Fe,Tn){if(1&Fe&&t.YNc(0,Kt,0,0,"ng-template",10),2&Fe){const he=t.oxw().$implicit;t.Q6J("cdkPortalOutlet",he.templateLabel)}}function Wt(Fe,Tn){if(1&Fe&&t._uU(0),2&Fe){const he=t.oxw().$implicit;t.Oqu(he.textLabel)}}function re(Fe,Tn){if(1&Fe){const he=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){const En=t.CHM(he),gi=En.$implicit,go=En.index,_o=t.oxw(),mn=t.MAs(1);return t.KtG(_o._handleClick(gi,mn,go))})("cdkFocusChange",function(En){const go=t.CHM(he).index,_o=t.oxw();return t.KtG(_o._tabFocusChanged(En,go))}),t.TgZ(1,"div",7),t.YNc(2,de,1,1,"ng-template",8),t.YNc(3,Wt,1,1,"ng-template",null,9,t.W1O),t.qZA()()}if(2&Fe){const he=Tn.$implicit,Re=Tn.index,En=t.MAs(4),gi=t.oxw();t.ekj("mat-tab-label-active",gi.selectedIndex===Re),t.Q6J("id",gi._getTabLabelId(Re))("ngClass",he.labelClass)("disabled",he.disabled)("matRippleDisabled",he.disabled||gi.disableRipple),t.uIk("tabIndex",gi._getTabIndex(he,Re))("aria-posinset",Re+1)("aria-setsize",gi._tabs.length)("aria-controls",gi._getTabContentId(Re))("aria-selected",gi.selectedIndex===Re)("aria-label",he.ariaLabel||null)("aria-labelledby",!he.ariaLabel&&he.ariaLabelledby?he.ariaLabelledby:null),t.xp6(2),t.Q6J("ngIf",he.templateLabel)("ngIfElse",En)}}function Pe(Fe,Tn){if(1&Fe){const he=t.EpF();t.TgZ(0,"mat-tab-body",11),t.NdJ("_onCentered",function(){t.CHM(he);const En=t.oxw();return t.KtG(En._removeTabBodyWrapperHeight())})("_onCentering",function(En){t.CHM(he);const gi=t.oxw();return t.KtG(gi._setTabBodyWrapperHeight(En))}),t.qZA()}if(2&Fe){const he=Tn.$implicit,Re=Tn.index,En=t.oxw();t.ekj("mat-tab-body-active",En.selectedIndex===Re),t.Q6J("id",En._getTabContentId(Re))("ngClass",he.bodyClass)("content",he.content)("position",he.position)("origin",he.origin)("animationDuration",En.animationDuration)("preserveContent",En.preserveContent),t.uIk("tabindex",null!=En.contentTabIndex&&En.selectedIndex===Re?En.contentTabIndex:null)("aria-labelledby",En._getTabLabelId(Re))}}const on=["mat-tab-nav-bar",""],_n=new t.OlP("MatInkBarPositioner",{providedIn:"root",factory:function ye(){return Tn=>({left:Tn?(Tn.offsetLeft||0)+"px":"0",width:Tn?(Tn.offsetWidth||0)+"px":"0"})}});let gn=(()=>{class Fe{constructor(he,Re,En,gi){this._elementRef=he,this._ngZone=Re,this._inkBarPositioner=En,this._animationMode=gi}alignToElement(he){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,C.q)(1)).subscribe(()=>{const Re=this._inkBarPositioner(he),En=this._elementRef.nativeElement;En.style.left=Re.left,En.style.width=Re.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(_n),t.Y36(t.QbO,8))},Fe.\u0275dir=t.lG2({type:Fe,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(he,Re){2&he&&t.ekj("_mat-animation-noopable","NoopAnimations"===Re._animationMode)}}),Fe})();const Ue=new t.OlP("MatTabContent"),Mn=new t.OlP("MatTabLabel"),oi=new t.OlP("MAT_TAB");let bi=(()=>{class Fe extends v.ig{constructor(he,Re,En){super(he,Re),this._closestTab=En}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(oi,8))},Fe.\u0275dir=t.lG2({type:Fe,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[t._Bn([{provide:Mn,useExisting:Fe}]),t.qOj]}),Fe})();const ri=(0,A.Id)(class{}),Ke=new t.OlP("MAT_TAB_GROUP");let ne=(()=>{class Fe extends ri{constructor(he,Re){super(),this._viewContainerRef=he,this._closestTabGroup=Re,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(he){this._setTemplateLabelInput(he)}get content(){return this._contentPortal}ngOnChanges(he){(he.hasOwnProperty("textLabel")||he.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new v.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(he){he&&he._closestTab===this&&(this._templateLabel=he)}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.s_b),t.Y36(Ke,8))},Fe.\u0275cmp=t.Xpm({type:Fe,selectors:[["mat-tab"]],contentQueries:function(he,Re,En){if(1&he&&(t.Suo(En,Mn,5),t.Suo(En,Ue,7,t.Rgc)),2&he){let gi;t.iGM(gi=t.CRH())&&(Re.templateLabel=gi.first),t.iGM(gi=t.CRH())&&(Re._explicitContent=gi.first)}},viewQuery:function(he,Re){if(1&he&&t.Gf(t.Rgc,7),2&he){let En;t.iGM(En=t.CRH())&&(Re._implicitContent=En.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:oi,useExisting:Fe}]),t.qOj,t.TTD],ngContentSelectors:It,decls:1,vars:0,template:function(he,Re){1&he&&(t.F$t(),t.YNc(0,Bt,1,0,"ng-template"))},encapsulation:2}),Fe})();const ct={translateTab:(0,nt.X$)("translateTab",[(0,nt.SB)("center, void, left-origin-center, right-origin-center",(0,nt.oB)({transform:"none"})),(0,nt.SB)("left",(0,nt.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,nt.SB)("right",(0,nt.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,nt.eR)("* => left, * => right, left => center, right => center",(0,nt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,nt.eR)("void => left-origin-center",[(0,nt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,nt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,nt.eR)("void => right-origin-center",[(0,nt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,nt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let it=(()=>{class Fe extends v.Pl{constructor(he,Re,En,gi){super(he,Re,gi),this._host=En,this._centeringSub=K.w.EMPTY,this._leavingSub=K.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,U.O)(this._host._isCenterPosition(this._host._position))).subscribe(he=>{he&&!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 Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36((0,t.Gpc)(()=>Gt)),t.Y36(T.K0))},Fe.\u0275dir=t.lG2({type:Fe,selectors:[["","matTabBodyHost",""]],features:[t.qOj]}),Fe})(),kt=(()=>{class Fe{constructor(he,Re,En){this._elementRef=he,this._dir=Re,this._dirChangeSubscription=K.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,Re&&(this._dirChangeSubscription=Re.change.subscribe(gi=>{this._computePositionAnimationState(gi),En.markForCheck()})),this._translateTabComplete.pipe((0,k.x)((gi,go)=>gi.fromState===go.fromState&&gi.toState===go.toState)).subscribe(gi=>{this._isCenterPosition(gi.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(gi.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(he){this._positionIndex=he,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(he){const Re=this._isCenterPosition(he.toState);this._beforeCentering.emit(Re),Re&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(he){return"center"==he||"left-origin-center"==he||"right-origin-center"==he}_computePositionAnimationState(he=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==he?"left":"right":this._positionIndex>0?"ltr"==he?"right":"left":"center"}_computePositionFromOrigin(he){const Re=this._getLayoutDirection();return"ltr"==Re&&he<=0||"rtl"==Re&&he>0?"left-origin-center":"right-origin-center"}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(Vt.Is,8),t.Y36(t.sBO))},Fe.\u0275dir=t.lG2({type:Fe,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Fe})(),Gt=(()=>{class Fe extends kt{constructor(he,Re,En){super(he,Re,En)}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(Vt.Is,8),t.Y36(t.sBO))},Fe.\u0275cmp=t.Xpm({type:Fe,selectors:[["mat-tab-body"]],viewQuery:function(he,Re){if(1&he&&t.Gf(v.Pl,5),2&he){let En;t.iGM(En=t.CRH())&&(Re._portalHost=En.first)}},hostAttrs:[1,"mat-tab-body"],features:[t.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(he,Re){1&he&&(t.TgZ(0,"div",0,1),t.NdJ("@translateTab.start",function(gi){return Re._onTranslateTabStarted(gi)})("@translateTab.done",function(gi){return Re._translateTabComplete.next(gi)}),t.YNc(2,se,0,0,"ng-template",2),t.qZA()),2&he&&t.Q6J("@translateTab",t.WLB(3,ve,Re._position,t.VKq(1,Jt,Re.animationDuration)))},dependencies:[it],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:[ct.translateTab]}}),Fe})();const oe=new t.OlP("MAT_TABS_CONFIG"),Ce=(0,A.Id)(class{});let Ee=(()=>{class Fe extends Ce{constructor(he){super(),this.elementRef=he}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq))},Fe.\u0275dir=t.lG2({type:Fe,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(he,Re){2&he&&(t.uIk("aria-disabled",!!Re.disabled),t.ekj("mat-tab-disabled",Re.disabled))},inputs:{disabled:"disabled"},features:[t.qOj]}),Fe})();const Pn=(0,ft.i$)({passive:!0});let ho=(()=>{class Fe{constructor(he,Re,En,gi,go,_o,mn){this._elementRef=he,this._changeDetectorRef=Re,this._viewportRuler=En,this._dir=gi,this._ngZone=go,this._platform=_o,this._animationMode=mn,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,at.R)(he.nativeElement,"mouseleave").pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(he){this._disablePagination=(0,Tt.Ig)(he)}get selectedIndex(){return this._selectedIndex}set selectedIndex(he){he=(0,Tt.su)(he),this._selectedIndex!=he&&(this._selectedIndexChanged=!0,this._selectedIndex=he,this._keyManager&&this._keyManager.updateActiveItem(he))}ngAfterViewInit(){(0,at.R)(this._previousPaginator.nativeElement,"touchstart",Pn).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,at.R)(this._nextPaginator.nativeElement,"touchstart",Pn).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const he=this._dir?this._dir.change:(0,lt.of)("ltr"),Re=this._viewportRuler.change(150),En=()=>{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,C.q)(1)).subscribe(En),(0,bt.T)(he,Re,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)),En()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,D.R)(this._destroyed)).subscribe(gi=>{this.indexFocused.emit(gi),this._setTabFocus(gi)})}_itemsResized(){return"function"!=typeof ResizeObserver?Pt.E:this._items.changes.pipe((0,U.O)(this._items),(0,P.w)(he=>new Dt.y(Re=>this._ngZone.runOutsideAngular(()=>{const En=new ResizeObserver(gi=>Re.next(gi));return he.forEach(gi=>En.observe(gi.elementRef.nativeElement)),()=>{En.disconnect()}}))),(0,I.T)(1),(0,z.h)(he=>he.some(Re=>Re.contentRect.width>0&&Re.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(he){if(!(0,Et.Vb)(he))switch(he.keyCode){case Et.K5:case Et.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(he));break;default:this._keyManager.onKeydown(he)}}_onContentChanges(){const he=this._elementRef.nativeElement.textContent;he!==this._currentTextContent&&(this._currentTextContent=he||"",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(he){!this._isValidIndex(he)||this.focusIndex===he||!this._keyManager||this._keyManager.setActiveItem(he)}_isValidIndex(he){if(!this._items)return!0;const Re=this._items?this._items.toArray()[he]:null;return!!Re&&!Re.disabled}_setTabFocus(he){if(this._showPaginationControls&&this._scrollToLabel(he),this._items&&this._items.length){this._items.toArray()[he].focus();const Re=this._tabListContainer.nativeElement;Re.scrollLeft="ltr"==this._getLayoutDirection()?0:Re.scrollWidth-Re.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const he=this.scrollDistance,Re="ltr"===this._getLayoutDirection()?-he:he;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Re)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(he){this._scrollTo(he)}_scrollHeader(he){return this._scrollTo(this._scrollDistance+("before"==he?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(he){this._stopInterval(),this._scrollHeader(he)}_scrollToLabel(he){if(this.disablePagination)return;const Re=this._items?this._items.toArray()[he]:null;if(!Re)return;const En=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:gi,offsetWidth:go}=Re.elementRef.nativeElement;let _o,mn;"ltr"==this._getLayoutDirection()?(_o=gi,mn=_o+go):(mn=this._tabListInner.nativeElement.offsetWidth-gi,_o=mn-go);const An=this.scrollDistance,sn=this.scrollDistance+En;_osn&&(this.scrollDistance+=mn-sn+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const he=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;he||(this.scrollDistance=0),he!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=he}}_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 he=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Re=he?he.elementRef.nativeElement:null;Re?this._inkBar.alignToElement(Re):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(he,Re){Re&&null!=Re.button&&0!==Re.button||(this._stopInterval(),(0,zt.H)(650,100).pipe((0,D.R)((0,bt.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:En,distance:gi}=this._scrollHeader(he);(0===gi||gi>=En)&&this._stopInterval()}))}_scrollTo(he){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Re=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Re,he)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Re,distance:this._scrollDistance}}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(At.rL),t.Y36(Vt.Is,8),t.Y36(t.R0b),t.Y36(ft.t4),t.Y36(t.QbO,8))},Fe.\u0275dir=t.lG2({type:Fe,inputs:{disablePagination:"disablePagination"}}),Fe})(),fi=(()=>{class Fe extends ho{constructor(he,Re,En,gi,go,_o,mn){super(he,Re,En,gi,go,_o,mn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(he){this._disableRipple=(0,Tt.Ig)(he)}_itemSelected(he){he.preventDefault()}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(At.rL),t.Y36(Vt.Is,8),t.Y36(t.R0b),t.Y36(ft.t4),t.Y36(t.QbO,8))},Fe.\u0275dir=t.lG2({type:Fe,inputs:{disableRipple:"disableRipple"},features:[t.qOj]}),Fe})(),Yn=(()=>{class Fe extends fi{constructor(he,Re,En,gi,go,_o,mn){super(he,Re,En,gi,go,_o,mn)}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(At.rL),t.Y36(Vt.Is,8),t.Y36(t.R0b),t.Y36(ft.t4),t.Y36(t.QbO,8))},Fe.\u0275cmp=t.Xpm({type:Fe,selectors:[["mat-tab-header"]],contentQueries:function(he,Re,En){if(1&he&&t.Suo(En,Ee,4),2&he){let gi;t.iGM(gi=t.CRH())&&(Re._items=gi)}},viewQuery:function(he,Re){if(1&he&&(t.Gf(gn,7),t.Gf(xe,7),t.Gf(Oe,7),t.Gf(qe,7),t.Gf($e,5),t.Gf(Xt,5)),2&he){let En;t.iGM(En=t.CRH())&&(Re._inkBar=En.first),t.iGM(En=t.CRH())&&(Re._tabListContainer=En.first),t.iGM(En=t.CRH())&&(Re._tabList=En.first),t.iGM(En=t.CRH())&&(Re._tabListInner=En.first),t.iGM(En=t.CRH())&&(Re._nextPaginator=En.first),t.iGM(En=t.CRH())&&(Re._previousPaginator=En.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(he,Re){2&he&&t.ekj("mat-tab-header-pagination-controls-enabled",Re._showPaginationControls)("mat-tab-header-rtl","rtl"==Re._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[t.qOj],ngContentSelectors:It,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(he,Re){1&he&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return Re._handlePaginatorClick("before")})("mousedown",function(gi){return Re._handlePaginatorPress("before",gi)})("touchend",function(){return Re._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(gi){return Re._handleKeydown(gi)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return Re._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(gi){return Re._handlePaginatorPress("after",gi)})("click",function(){return Re._handlePaginatorClick("after")})("touchend",function(){return Re._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&he&&(t.ekj("mat-tab-header-pagination-disabled",Re._disableScrollBefore),t.Q6J("matRippleDisabled",Re._disableScrollBefore||Re.disableRipple)("disabled",Re._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===Re._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",Re._disableScrollAfter),t.Q6J("matRippleDisabled",Re._disableScrollAfter||Re.disableRipple)("disabled",Re._disableScrollAfter||null))},dependencies:[A.wG,p.wD,gn],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}),Fe})(),jn=0;class Ye{}const fn=(0,A.pj)((0,A.Kr)(class{constructor(Fe){this._elementRef=Fe}}),"primary");let ze=(()=>{class Fe extends fn{constructor(he,Re,En,gi){super(he),this._changeDetectorRef=Re,this._animationMode=gi,this._tabs=new t.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=K.w.EMPTY,this._tabLabelSubscription=K.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=jn++,this.animationDuration=En&&En.animationDuration?En.animationDuration:"500ms",this.disablePagination=!(!En||null==En.disablePagination)&&En.disablePagination,this.dynamicHeight=!(!En||null==En.dynamicHeight)&&En.dynamicHeight,this.contentTabIndex=En?.contentTabIndex??null,this.preserveContent=!!En?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(he){this._dynamicHeight=(0,Tt.Ig)(he)}get selectedIndex(){return this._selectedIndex}set selectedIndex(he){this._indexToSelect=(0,Tt.su)(he,null)}get animationDuration(){return this._animationDuration}set animationDuration(he){this._animationDuration=/^\d+$/.test(he+"")?he+"ms":he}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(he){this._contentTabIndex=(0,Tt.su)(he,null)}get disablePagination(){return this._disablePagination}set disablePagination(he){this._disablePagination=(0,Tt.Ig)(he)}get preserveContent(){return this._preserveContent}set preserveContent(he){this._preserveContent=(0,Tt.Ig)(he)}get backgroundColor(){return this._backgroundColor}set backgroundColor(he){const Re=this._elementRef.nativeElement;Re.classList.remove(`mat-background-${this.backgroundColor}`),he&&Re.classList.add(`mat-background-${he}`),this._backgroundColor=he}ngAfterContentChecked(){const he=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=he){const Re=null==this._selectedIndex;if(!Re){this.selectedTabChange.emit(this._createChangeEvent(he));const En=this._tabBodyWrapper.nativeElement;En.style.minHeight=En.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((En,gi)=>En.isActive=gi===he),Re||(this.selectedIndexChange.emit(he),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Re,En)=>{Re.position=En-he,null!=this._selectedIndex&&0==Re.position&&!Re.origin&&(Re.origin=he-this._selectedIndex)}),this._selectedIndex!==he&&(this._selectedIndex=he,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const he=this._clampTabIndex(this._indexToSelect);if(he===this._selectedIndex){const Re=this._tabs.toArray();let En;for(let gi=0;gi{Re[he].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(he))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,U.O)(this._allTabs)).subscribe(he=>{this._tabs.reset(he.filter(Re=>Re._closestTabGroup===this||!Re._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(he){const Re=this._tabHeader;Re&&(Re.focusIndex=he)}_focusChanged(he){this._lastFocusedTabIndex=he,this.focusChange.emit(this._createChangeEvent(he))}_createChangeEvent(he){const Re=new Ye;return Re.index=he,this._tabs&&this._tabs.length&&(Re.tab=this._tabs.toArray()[he]),Re}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,bt.T)(...this._tabs.map(he=>he._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(he){return Math.min(this._tabs.length-1,Math.max(he||0,0))}_getTabLabelId(he){return`mat-tab-label-${this._groupId}-${he}`}_getTabContentId(he){return`mat-tab-content-${this._groupId}-${he}`}_setTabBodyWrapperHeight(he){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Re=this._tabBodyWrapper.nativeElement;Re.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Re.style.height=he+"px")}_removeTabBodyWrapperHeight(){const he=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=he.clientHeight,he.style.height="",this.animationDone.emit()}_handleClick(he,Re,En){he.disabled||(this.selectedIndex=Re.focusIndex=En)}_getTabIndex(he,Re){return he.disabled?null:Re===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(he,Re){he&&"mouse"!==he&&"touch"!==he&&(this._tabHeader.focusIndex=Re)}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(oe,8),t.Y36(t.QbO,8))},Fe.\u0275dir=t.lG2({type:Fe,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]}),Fe})(),We=(()=>{class Fe extends ze{constructor(he,Re,En,gi){super(he,Re,En,gi)}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(oe,8),t.Y36(t.QbO,8))},Fe.\u0275cmp=t.Xpm({type:Fe,selectors:[["mat-tab-group"]],contentQueries:function(he,Re,En){if(1&he&&t.Suo(En,ne,5),2&he){let gi;t.iGM(gi=t.CRH())&&(Re._allTabs=gi)}},viewQuery:function(he,Re){if(1&he&&(t.Gf(we,5),t.Gf(ae,5)),2&he){let En;t.iGM(En=t.CRH())&&(Re._tabBodyWrapper=En.first),t.iGM(En=t.CRH())&&(Re._tabHeader=En.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(he,Re){2&he&&t.ekj("mat-tab-group-dynamic-height",Re.dynamicHeight)("mat-tab-group-inverted-header","below"===Re.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[t._Bn([{provide:Ke,useExisting:Fe}]),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(he,Re){1&he&&(t.TgZ(0,"mat-tab-header",0,1),t.NdJ("indexFocused",function(gi){return Re._focusChanged(gi)})("selectFocusedIndex",function(gi){return Re.selectedIndex=gi}),t.YNc(2,re,5,15,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.YNc(5,Pe,1,11,"mat-tab-body",5),t.qZA()),2&he&&(t.Q6J("selectedIndex",Re.selectedIndex||0)("disableRipple",Re.disableRipple)("disablePagination",Re.disablePagination),t.xp6(2),t.Q6J("ngForOf",Re._tabs),t.xp6(1),t.ekj("_mat-animation-noopable","NoopAnimations"===Re._animationMode),t.xp6(2),t.Q6J("ngForOf",Re._tabs))},dependencies:[T.mk,T.sg,T.O5,v.Pl,A.wG,d.kH,Ee,Gt,Yn],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}),Fe})(),en=0,le=(()=>{class Fe extends ho{constructor(he,Re,En,gi,go,_o,mn){super(he,gi,go,Re,En,_o,mn),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(he){const Re=this._elementRef.nativeElement.classList;Re.remove(`mat-background-${this.backgroundColor}`),he&&Re.add(`mat-background-${he}`),this._backgroundColor=he}get disableRipple(){return this._disableRipple}set disableRipple(he){this._disableRipple=(0,Tt.Ig)(he)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,U.O)(null),(0,D.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const he=this._items.toArray();for(let Re=0;Re{class Fe extends le{constructor(he,Re,En,gi,go,_o,mn){super(he,Re,En,gi,go,_o,mn)}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(Vt.Is,8),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(At.rL),t.Y36(ft.t4),t.Y36(t.QbO,8))},Fe.\u0275cmp=t.Xpm({type:Fe,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(he,Re,En){if(1&he&&t.Suo(En,Ot,5),2&he){let gi;t.iGM(gi=t.CRH())&&(Re._items=gi)}},viewQuery:function(he,Re){if(1&he&&(t.Gf(gn,7),t.Gf(xe,7),t.Gf(Oe,7),t.Gf(qe,7),t.Gf($e,5),t.Gf(Xt,5)),2&he){let En;t.iGM(En=t.CRH())&&(Re._inkBar=En.first),t.iGM(En=t.CRH())&&(Re._tabListContainer=En.first),t.iGM(En=t.CRH())&&(Re._tabList=En.first),t.iGM(En=t.CRH())&&(Re._tabListInner=En.first),t.iGM(En=t.CRH())&&(Re._nextPaginator=En.first),t.iGM(En=t.CRH())&&(Re._previousPaginator=En.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(he,Re){2&he&&(t.uIk("role",Re._getRole()),t.ekj("mat-tab-header-pagination-controls-enabled",Re._showPaginationControls)("mat-tab-header-rtl","rtl"==Re._getLayoutDirection())("mat-primary","warn"!==Re.color&&"accent"!==Re.color)("mat-accent","accent"===Re.color)("mat-warn","warn"===Re.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[t.qOj],attrs:on,ngContentSelectors:It,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(he,Re){1&he&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return Re._handlePaginatorClick("before")})("mousedown",function(gi){return Re._handlePaginatorPress("before",gi)})("touchend",function(){return Re._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(gi){return Re._handleKeydown(gi)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return Re._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(gi){return Re._handlePaginatorPress("after",gi)})("click",function(){return Re._handlePaginatorClick("after")})("touchend",function(){return Re._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&he&&(t.ekj("mat-tab-header-pagination-disabled",Re._disableScrollBefore),t.Q6J("matRippleDisabled",Re._disableScrollBefore||Re.disableRipple)("disabled",Re._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===Re._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",Re._disableScrollAfter),t.Q6J("matRippleDisabled",Re._disableScrollAfter||Re.disableRipple)("disabled",Re._disableScrollAfter||null))},dependencies:[A.wG,p.wD,gn],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}),Fe})();const Lt=(0,A.sb)((0,A.Kr)((0,A.Id)(class{})));let wt=(()=>{class Fe extends Lt{constructor(he,Re,En,gi,go,_o){super(),this._tabNavBar=he,this.elementRef=Re,this._focusMonitor=go,this._isActive=!1,this.id="mat-tab-link-"+en++,this.rippleConfig=En||{},this.tabIndex=parseInt(gi)||0,"NoopAnimations"===_o&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(he){const Re=(0,Tt.Ig)(he);Re!==this._isActive&&(this._isActive=Re,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(he){this._tabNavBar.tabPanel&&he.keyCode===Et.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 Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(le),t.Y36(t.SBq),t.Y36(A.Y2,8),t.$8M("tabindex"),t.Y36(d.tE),t.Y36(t.QbO,8))},Fe.\u0275dir=t.lG2({type:Fe,inputs:{active:"active",id:"id"},features:[t.qOj]}),Fe})(),Ot=(()=>{class Fe extends wt{constructor(he,Re,En,gi,go,_o,mn,An){super(he,Re,go,_o,mn,An),this._tabLinkRipple=new A.IR(this,En,Re,gi),this._tabLinkRipple.setupTriggerEvents(Re.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(Je),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(ft.t4),t.Y36(A.Y2,8),t.$8M("tabindex"),t.Y36(d.tE),t.Y36(t.QbO,8))},Fe.\u0275dir=t.lG2({type:Fe,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(he,Re){1&he&&t.NdJ("focus",function(){return Re._handleFocus()})("keydown",function(gi){return Re._handleKeydown(gi)}),2&he&&(t.uIk("aria-controls",Re._getAriaControls())("aria-current",Re._getAriaCurrent())("aria-disabled",Re.disabled)("aria-selected",Re._getAriaSelected())("id",Re.id)("tabIndex",Re._getTabIndex())("role",Re._getRole()),t.ekj("mat-tab-disabled",Re.disabled)("mat-tab-label-active",Re.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[t.qOj]}),Fe})(),Xe=(()=>{class Fe{}return Fe.\u0275fac=function(he){return new(he||Fe)},Fe.\u0275mod=t.oAB({type:Fe}),Fe.\u0275inj=t.cJS({imports:[T.ez,A.BQ,v.eL,A.si,p.Q8,d.rt,A.BQ]}),Fe})()},83683:(ot,et,b)=>{"use strict";b.d(et,{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"],C=(0,p.pj)(class{constructor(I){this._elementRef=I}});let U=(()=>{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 C{constructor(G,K,at){super(G),this._platform=K,this._document=at}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,K,at){if(1&G&&d.Suo(at,U,5),2&G){let lt;d.iGM(lt=d.CRH())&&(K._toolbarRows=lt)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(G,K){2&G&&d.ekj("mat-toolbar-multiple-rows",K._toolbarRows.length>0)("mat-toolbar-single-row",0===K._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[d.qOj],ngContentSelectors:A,decls:2,vars:0,template:function(G,K){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:(ot,et,b)=>{"use strict";b.d(et,{AV:()=>xe,gM:()=>se});var d=b(98184),p=b(12687),v=b(36895),T=b(94650),t=b(3238),A=b(67376),C=b(40445),U=b(21281),k=b(29521),D=b(62289),P=b(83353),I=b(84080),z=b(8929),G=b(7625),K=b(72986);b(37340);const lt=["tooltip"],Dt="tooltip-panel",zt=(0,P.i$)({passive:!0}),Tt=new T.OlP("mat-tooltip-scroll-strategy"),ft={provide:Tt,deps:[d.aV],useFactory:function At(qe){return()=>qe.scrollStrategies.reposition({scrollThrottle:20})}},Et=new T.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Bt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let It=(()=>{class qe{constructor(Xt,we,ae,Kt,de,Wt,re,Pe,on,_n,ye,gn){this._overlay=Xt,this._elementRef=we,this._scrollDispatcher=ae,this._viewContainerRef=Kt,this._ngZone=de,this._platform=Wt,this._ariaDescriber=re,this._focusMonitor=Pe,this._dir=_n,this._defaultOptions=ye,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=gn,ye&&(ye.position&&(this.position=ye.position),ye.touchGestures&&(this.touchGestures=ye.touchGestures)),_n.change.pipe((0,G.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(Xt){Xt!==this._position&&(this._position=Xt,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Xt){this._disabled=(0,U.Ig)(Xt),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Xt){this._showDelay=(0,U.su)(Xt)}get hideDelay(){return this._hideDelay}set hideDelay(Xt){this._hideDelay=(0,U.su)(Xt),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(Xt){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Xt?String(Xt).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(Xt){this._tooltipClass=Xt,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,G.R)(this._destroyed)).subscribe(Xt=>{Xt?"keyboard"===Xt&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Xt=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([we,ae])=>{Xt.removeEventListener(we,ae,zt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Xt,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Xt)}show(Xt=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const we=this._createOverlay();this._detach(),this._portal=this._portal||new I.C5(this._tooltipComponent,this._viewContainerRef);const ae=this._tooltipInstance=we.attach(this._portal).instance;ae._triggerElement=this._elementRef.nativeElement,ae._mouseLeaveHideDelay=this._hideDelay,ae.afterHidden().pipe((0,G.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ae.show(Xt)}hide(Xt=this.hideDelay){const we=this._tooltipInstance;we&&(we.isVisible()?we.hide(Xt):(we._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 Xt=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),we=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Xt);return we.positionChanges.pipe((0,G.R)(this._destroyed)).subscribe(ae=>{this._updateCurrentPositionClass(ae.connectionPair),this._tooltipInstance&&ae.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:we,panelClass:`${this._cssClassPrefix}-${Dt}`,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(ae=>{this._isTooltipVisible()&&ae.keyCode===k.hY&&!(0,k.Vb)(ae)&&(ae.preventDefault(),ae.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(Xt){const we=Xt.getConfig().positionStrategy,ae=this._getOrigin(),Kt=this._getOverlayPosition();we.withPositions([this._addOffset({...ae.main,...Kt.main}),this._addOffset({...ae.fallback,...Kt.fallback})])}_addOffset(Xt){return Xt}_getOrigin(){const Xt=!this._dir||"ltr"==this._dir.value,we=this.position;let ae;"above"==we||"below"==we?ae={originX:"center",originY:"above"==we?"top":"bottom"}:"before"==we||"left"==we&&Xt||"right"==we&&!Xt?ae={originX:"start",originY:"center"}:("after"==we||"right"==we&&Xt||"left"==we&&!Xt)&&(ae={originX:"end",originY:"center"});const{x:Kt,y:de}=this._invertPosition(ae.originX,ae.originY);return{main:ae,fallback:{originX:Kt,originY:de}}}_getOverlayPosition(){const Xt=!this._dir||"ltr"==this._dir.value,we=this.position;let ae;"above"==we?ae={overlayX:"center",overlayY:"bottom"}:"below"==we?ae={overlayX:"center",overlayY:"top"}:"before"==we||"left"==we&&Xt||"right"==we&&!Xt?ae={overlayX:"end",overlayY:"center"}:("after"==we||"right"==we&&Xt||"left"==we&&!Xt)&&(ae={overlayX:"start",overlayY:"center"});const{x:Kt,y:de}=this._invertPosition(ae.overlayX,ae.overlayY);return{main:ae,fallback:{overlayX:Kt,overlayY:de}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,K.q)(1),(0,G.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Xt){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Xt,this._tooltipInstance._markForCheck())}_invertPosition(Xt,we){return"above"===this.position||"below"===this.position?"top"===we?we="bottom":"bottom"===we&&(we="top"):"end"===Xt?Xt="start":"start"===Xt&&(Xt="end"),{x:Xt,y:we}}_updateCurrentPositionClass(Xt){const{overlayY:we,originX:ae,originY:Kt}=Xt;let de;if(de="center"===we?this._dir&&"rtl"===this._dir.value?"end"===ae?"left":"right":"start"===ae?"left":"right":"bottom"===we&&"top"===Kt?"above":"below",de!==this._currentPosition){const Wt=this._overlayRef;if(Wt){const re=`${this._cssClassPrefix}-${Dt}-`;Wt.removePanelClass(re+this._currentPosition),Wt.addPanelClass(re+de)}this._currentPosition=de}}_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 Xt=[];if(this._platformSupportsMouseEvents())Xt.push(["mouseleave",we=>{const ae=we.relatedTarget;(!ae||!this._overlayRef?.overlayElement.contains(ae))&&this.hide()}],["wheel",we=>this._wheelListener(we)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const we=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Xt.push(["touchend",we],["touchcancel",we])}this._addListeners(Xt),this._passiveListeners.push(...Xt)}_addListeners(Xt){Xt.forEach(([we,ae])=>{this._elementRef.nativeElement.addEventListener(we,ae,zt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Xt){if(this._isTooltipVisible()){const we=this._document.elementFromPoint(Xt.clientX,Xt.clientY),ae=this._elementRef.nativeElement;we!==ae&&!ae.contains(we)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Xt=this.touchGestures;if("off"!==Xt){const we=this._elementRef.nativeElement,ae=we.style;("on"===Xt||"INPUT"!==we.nodeName&&"TEXTAREA"!==we.nodeName)&&(ae.userSelect=ae.msUserSelect=ae.webkitUserSelect=ae.MozUserSelect="none"),("on"===Xt||!we.draggable)&&(ae.webkitUserDrag="none"),ae.touchAction="none",ae.webkitTapHighlightColor="transparent"}}}return qe.\u0275fac=function(Xt){T.$Z()},qe.\u0275dir=T.lG2({type:qe,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),qe})(),se=(()=>{class qe extends It{constructor(Xt,we,ae,Kt,de,Wt,re,Pe,on,_n,ye,gn){super(Xt,we,ae,Kt,de,Wt,re,Pe,on,_n,ye,gn),this._tooltipComponent=ve}}return qe.\u0275fac=function(Xt){return new(Xt||qe)(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(Tt),T.Y36(C.Is,8),T.Y36(Et,8),T.Y36(v.K0))},qe.\u0275dir=T.lG2({type:qe,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[T.qOj]}),qe})(),Jt=(()=>{class qe{constructor(Xt,we){this._changeDetectorRef=Xt,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new z.xQ,this._animationsDisabled="NoopAnimations"===we}show(Xt){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Xt)}hide(Xt){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Xt)}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:Xt}){(!Xt||!this._triggerElement.contains(Xt))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:Xt}){(Xt===this._showAnimation||Xt===this._hideAnimation)&&this._finalizeAnimation(Xt===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Xt){Xt?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Xt){const we=this._tooltip.nativeElement,ae=this._showAnimation,Kt=this._hideAnimation;if(we.classList.remove(Xt?Kt:ae),we.classList.add(Xt?ae:Kt),this._isVisible=Xt,Xt&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const de=getComputedStyle(we);("0s"===de.getPropertyValue("animation-duration")||"none"===de.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Xt&&this._onShow(),this._animationsDisabled&&(we.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Xt))}}return qe.\u0275fac=function(Xt){return new(Xt||qe)(T.Y36(T.sBO),T.Y36(T.QbO,8))},qe.\u0275dir=T.lG2({type:qe}),qe})(),ve=(()=>{class qe extends Jt{constructor(Xt,we,ae){super(Xt,ae),this._breakpointObserver=we,this._isHandset=this._breakpointObserver.observe(D.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return qe.\u0275fac=function(Xt){return new(Xt||qe)(T.Y36(T.sBO),T.Y36(D.Yg),T.Y36(T.QbO,8))},qe.\u0275cmp=T.Xpm({type:qe,selectors:[["mat-tooltip-component"]],viewQuery:function(Xt,we){if(1&Xt&&T.Gf(lt,7),2&Xt){let ae;T.iGM(ae=T.CRH())&&(we._tooltip=ae.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Xt,we){1&Xt&&T.NdJ("mouseleave",function(Kt){return we._handleMouseLeave(Kt)}),2&Xt&&T.Udp("zoom",we.isVisible()?1:null)},features:[T.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(Xt,we){if(1&Xt&&(T.TgZ(0,"div",0,1),T.NdJ("animationend",function(Kt){return we._handleAnimationEnd(Kt)}),T.ALo(2,"async"),T._uU(3),T.qZA()),2&Xt){let ae;T.ekj("mat-tooltip-handset",null==(ae=T.lcZ(2,4,we._isHandset))?null:ae.matches),T.Q6J("ngClass",we.tooltipClass),T.xp6(3),T.Oqu(we.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}),qe})(),xe=(()=>{class qe{}return qe.\u0275fac=function(Xt){return new(Xt||qe)},qe.\u0275mod=T.oAB({type:qe}),qe.\u0275inj=T.cJS({providers:[ft],imports:[p.rt,v.ez,d.U8,t.BQ,t.BQ,A.ZD]}),qe})()},35423:(ot,et,b)=>{"use strict";b.d(et,{Ar:()=>K,GZ:()=>z,JZ:()=>Dt,WX:()=>Vt,ah:()=>G,dp:()=>Pt,eu:()=>lt,fQ:()=>I,gi:()=>at,kc:()=>zt,uo:()=>P});var d=b(57851),p=b(94650),v=b(3238),T=b(21281),t=b(95017),A=b(591),C=b(36787),U=b(72986),k=b(24850);const D=(0,v.sb)((0,v.Id)(d.Hs));let P=(()=>{class nt extends D{constructor(At,ft,Et){super(At,ft),this.tabIndex=Number(Et)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return nt.\u0275fac=function(At){return new(At||nt)(p.Y36(p.SBq),p.Y36(d._0),p.$8M("tabindex"))},nt.\u0275dir=p.lG2({type:nt,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:nt}]),p.qOj]}),nt})(),I=(()=>{class nt extends d.rO{}return nt.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=p.n5z(nt)))(ft||nt)}}(),nt.\u0275dir=p.lG2({type:nt,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[p._Bn([{provide:d.rO,useExisting:nt}]),p.qOj]}),nt})(),z=(()=>{class nt extends d.Xx{constructor(At,ft,Et,Bt){super(At,ft,Et),this._disabled=!1,this.tabIndex=Number(Bt)||0}get disabled(){return this._disabled}set disabled(At){this._disabled=(0,T.Ig)(At)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(At){this._tabIndex=At??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return nt.\u0275fac=function(At){return new(At||nt)(p.Y36(p.SBq),p.Y36(d._0),p.Y36(p.ZZ4),p.$8M("tabindex"))},nt.\u0275dir=p.lG2({type:nt,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:nt},{provide:d.Hs,useExisting:nt},{provide:d.HI,useExisting:nt}]),p.qOj]}),nt})(),G=(()=>{class nt extends d.XJ{get level(){return this._level}set level(At){this._setLevelInput(At)}get indent(){return this._indent}set indent(At){this._setIndentInput(At)}}return nt.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=p.n5z(nt)))(ft||nt)}}(),nt.\u0275dir=p.lG2({type:nt,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[p._Bn([{provide:d.XJ,useExisting:nt}]),p.qOj]}),nt})(),K=(()=>{class nt{constructor(At,ft){this.viewContainer=At,this._node=ft}}return nt.\u0275fac=function(At){return new(At||nt)(p.Y36(p.s_b),p.Y36(d.HI,8))},nt.\u0275dir=p.lG2({type:nt,selectors:[["","matTreeNodeOutlet",""]],features:[p._Bn([{provide:d.cu,useExisting:nt}])]}),nt})(),at=(()=>{class nt extends d._0{}return nt.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=p.n5z(nt)))(ft||nt)}}(),nt.\u0275cmp=p.Xpm({type:nt,selectors:[["mat-tree"]],viewQuery:function(At,ft){if(1&At&&p.Gf(K,7),2&At){let Et;p.iGM(Et=p.CRH())&&(ft._nodeOutlet=Et.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[p._Bn([{provide:d._0,useExisting:nt}]),p.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(At,ft){1&At&&p.GkF(0,0)},dependencies:[K],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}),nt})(),lt=(()=>{class nt extends d.Ud{}return nt.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=p.n5z(nt)))(ft||nt)}}(),nt.\u0275dir=p.lG2({type:nt,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[p._Bn([{provide:d.Ud,useExisting:nt}]),p.qOj]}),nt})(),Pt=(()=>{class nt{}return nt.\u0275fac=function(At){return new(At||nt)},nt.\u0275mod=p.oAB({type:nt}),nt.\u0275inj=p.cJS({imports:[d.nZ,v.BQ,v.BQ]}),nt})();class Dt{constructor(Tt,At,ft,Et){this.transformFunction=Tt,this.getLevel=At,this.isExpandable=ft,this.getChildren=Et}_flattenNode(Tt,At,ft,Et){const Bt=this.transformFunction(Tt,At);if(ft.push(Bt),this.isExpandable(Bt)){const It=this.getChildren(Tt);It&&(Array.isArray(It)?this._flattenChildren(It,At,ft,Et):It.pipe((0,U.q)(1)).subscribe(se=>{this._flattenChildren(se,At,ft,Et)}))}return ft}_flattenChildren(Tt,At,ft,Et){Tt.forEach((Bt,It)=>{let se=Et.slice();se.push(It!=Tt.length-1),this._flattenNode(Bt,At+1,ft,se)})}flattenNodes(Tt){let At=[];return Tt.forEach(ft=>this._flattenNode(ft,0,At,[])),At}expandFlattenedNodes(Tt,At){let ft=[],Et=[];return Et[0]=!0,Tt.forEach(Bt=>{let It=!0;for(let se=0;se<=this.getLevel(Bt);se++)It=It&&Et[se];It&&ft.push(Bt),this.isExpandable(Bt)&&(Et[this.getLevel(Bt)+1]=At.isExpanded(Bt))}),ft}}class zt extends t.o2{constructor(Tt,At,ft){super(),this._treeControl=Tt,this._treeFlattener=At,this._flattenedData=new A.X([]),this._expandedData=new A.X([]),this._data=new A.X([]),ft&&(this.data=ft)}get data(){return this._data.value}set data(Tt){this._data.next(Tt),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(Tt){return(0,C.T)(Tt.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 Vt extends t.o2{constructor(){super(...arguments),this._data=new A.X([])}get data(){return this._data.value}set data(Tt){this._data.next(Tt)}connect(Tt){return(0,C.T)(Tt.viewChange,this._data).pipe((0,k.U)(()=>this.data))}disconnect(){}}},11481:(ot,et,b)=>{"use strict";b.d(et,{Dx:()=>oe,H7:()=>En,b2:()=>ne,q6:()=>oi,se:()=>Jt});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(An,sn,ei){return An.addEventListener(sn,ei,!1),()=>{An.removeEventListener(sn,ei,!1)}}dispatchEvent(An,sn){An.dispatchEvent(sn)}remove(An){An.parentNode&&An.parentNode.removeChild(An)}createElement(An,sn){return(sn=sn||this.getDefaultDocument()).createElement(An)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(An){return An.nodeType===Node.ELEMENT_NODE}isShadowRoot(An){return An instanceof DocumentFragment}getGlobalEventTarget(An,sn){return"window"===sn?window:"document"===sn?An:"body"===sn?An.body:null}getBaseHref(An){const sn=function A(){return t=t||document.querySelector("base"),t?t.getAttribute("href"):null}();return null==sn?null:function U(mn){C=C||document.createElement("a"),C.setAttribute("href",mn);const An=C.pathname;return"/"===An.charAt(0)?An:`/${An}`}(sn)}resetBaseElement(){t=null}getUserAgent(){return window.navigator.userAgent}getCookie(An){return(0,d.Mx)(document.cookie,An)}}let C,t=null;const k=new p.OlP("TRANSITION_ID"),P=[{provide:p.ip1,useFactory:function D(mn,An,sn){return()=>{sn.get(p.CZH).donePromise.then(()=>{const ei=(0,d.q)(),Zi=An.querySelectorAll(`style[ng-transition="${mn}"]`);for(let vo=0;vo{class mn{build(){return new XMLHttpRequest}}return mn.\u0275fac=function(sn){return new(sn||mn)},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();const G=new p.OlP("EventManagerPlugins");let K=(()=>{class mn{constructor(sn,ei){this._zone=ei,this._eventNameToPlugin=new Map,sn.forEach(Zi=>Zi.manager=this),this._plugins=sn.slice().reverse()}addEventListener(sn,ei,Zi){return this._findPluginFor(ei).addEventListener(sn,ei,Zi)}addGlobalEventListener(sn,ei,Zi){return this._findPluginFor(ei).addGlobalEventListener(sn,ei,Zi)}getZone(){return this._zone}_findPluginFor(sn){const ei=this._eventNameToPlugin.get(sn);if(ei)return ei;const Zi=this._plugins;for(let vo=0;vo{class mn{constructor(){this._stylesSet=new Set}addStyles(sn){const ei=new Set;sn.forEach(Zi=>{this._stylesSet.has(Zi)||(this._stylesSet.add(Zi),ei.add(Zi))}),this.onStylesAdded(ei)}onStylesAdded(sn){}getAllStyles(){return Array.from(this._stylesSet)}}return mn.\u0275fac=function(sn){return new(sn||mn)},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})(),bt=(()=>{class mn extends lt{constructor(sn){super(),this._doc=sn,this._hostNodes=new Map,this._hostNodes.set(sn.head,[])}_addStylesToHost(sn,ei,Zi){sn.forEach(vo=>{const Fo=this._doc.createElement("style");Fo.textContent=vo,Zi.push(ei.appendChild(Fo))})}addHost(sn){const ei=[];this._addStylesToHost(this._stylesSet,sn,ei),this._hostNodes.set(sn,ei)}removeHost(sn){const ei=this._hostNodes.get(sn);ei&&ei.forEach(Pt),this._hostNodes.delete(sn)}onStylesAdded(sn){this._hostNodes.forEach((ei,Zi)=>{this._addStylesToHost(sn,Zi,ei)})}ngOnDestroy(){this._hostNodes.forEach(sn=>sn.forEach(Pt))}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();function Pt(mn){(0,d.q)().remove(mn)}const Dt={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/"},zt=/%COMP%/g;function Bt(mn,An,sn){for(let ei=0;ei{if("__ngUnwrap__"===An)return mn;!1===mn(An)&&(An.preventDefault(),An.returnValue=!1)}}let Jt=(()=>{class mn{constructor(sn,ei,Zi){this.eventManager=sn,this.sharedStylesHost=ei,this.appId=Zi,this.rendererByCompId=new Map,this.defaultRenderer=new ve(sn)}createRenderer(sn,ei){if(!sn||!ei)return this.defaultRenderer;switch(ei.encapsulation){case p.ifc.Emulated:{let Zi=this.rendererByCompId.get(ei.id);return Zi||(Zi=new $e(this.eventManager,this.sharedStylesHost,ei,this.appId),this.rendererByCompId.set(ei.id,Zi)),Zi.applyToHost(sn),Zi}case 1:case p.ifc.ShadowDom:return new Xt(this.eventManager,this.sharedStylesHost,sn,ei);default:if(!this.rendererByCompId.has(ei.id)){const Zi=Bt(ei.id,ei.styles,[]);this.sharedStylesHost.addStyles(Zi),this.rendererByCompId.set(ei.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(K),p.LFG(bt),p.LFG(p.AFp))},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();class ve{constructor(An){this.eventManager=An,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(An,sn){return sn?document.createElementNS(Dt[sn]||sn,An):document.createElement(An)}createComment(An){return document.createComment(An)}createText(An){return document.createTextNode(An)}appendChild(An,sn){(qe(An)?An.content:An).appendChild(sn)}insertBefore(An,sn,ei){An&&(qe(An)?An.content:An).insertBefore(sn,ei)}removeChild(An,sn){An&&An.removeChild(sn)}selectRootElement(An,sn){let ei="string"==typeof An?document.querySelector(An):An;if(!ei)throw new Error(`The selector "${An}" did not match any elements`);return sn||(ei.textContent=""),ei}parentNode(An){return An.parentNode}nextSibling(An){return An.nextSibling}setAttribute(An,sn,ei,Zi){if(Zi){sn=Zi+":"+sn;const vo=Dt[Zi];vo?An.setAttributeNS(vo,sn,ei):An.setAttribute(sn,ei)}else An.setAttribute(sn,ei)}removeAttribute(An,sn,ei){if(ei){const Zi=Dt[ei];Zi?An.removeAttributeNS(Zi,sn):An.removeAttribute(`${ei}:${sn}`)}else An.removeAttribute(sn)}addClass(An,sn){An.classList.add(sn)}removeClass(An,sn){An.classList.remove(sn)}setStyle(An,sn,ei,Zi){Zi&(p.JOm.DashCase|p.JOm.Important)?An.style.setProperty(sn,ei,Zi&p.JOm.Important?"important":""):An.style[sn]=ei}removeStyle(An,sn,ei){ei&p.JOm.DashCase?An.style.removeProperty(sn):An.style[sn]=""}setProperty(An,sn,ei){An[sn]=ei}setValue(An,sn){An.nodeValue=sn}listen(An,sn,ei){return"string"==typeof An?this.eventManager.addGlobalEventListener(An,sn,It(ei)):this.eventManager.addEventListener(An,sn,It(ei))}}function qe(mn){return"TEMPLATE"===mn.tagName&&void 0!==mn.content}class $e extends ve{constructor(An,sn,ei,Zi){super(An),this.component=ei;const vo=Bt(Zi+"-"+ei.id,ei.styles,[]);sn.addStyles(vo),this.contentAttr=function ft(mn){return"_ngcontent-%COMP%".replace(zt,mn)}(Zi+"-"+ei.id),this.hostAttr=function Et(mn){return"_nghost-%COMP%".replace(zt,mn)}(Zi+"-"+ei.id)}applyToHost(An){super.setAttribute(An,this.hostAttr,"")}createElement(An,sn){const ei=super.createElement(An,sn);return super.setAttribute(ei,this.contentAttr,""),ei}}class Xt extends ve{constructor(An,sn,ei,Zi){super(An),this.sharedStylesHost=sn,this.hostEl=ei,this.shadowRoot=ei.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const vo=Bt(Zi.id,Zi.styles,[]);for(let Fo=0;Fo{class mn extends at{constructor(sn){super(sn)}supports(sn){return!0}addEventListener(sn,ei,Zi){return sn.addEventListener(ei,Zi,!1),()=>this.removeEventListener(sn,ei,Zi)}removeEventListener(sn,ei,Zi){return sn.removeEventListener(ei,Zi)}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();const ae=["alt","control","meta","shift"],Kt={"\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"},de={alt:mn=>mn.altKey,control:mn=>mn.ctrlKey,meta:mn=>mn.metaKey,shift:mn=>mn.shiftKey};let Wt=(()=>{class mn extends at{constructor(sn){super(sn)}supports(sn){return null!=mn.parseEventName(sn)}addEventListener(sn,ei,Zi){const vo=mn.parseEventName(ei),Fo=mn.eventCallback(vo.fullKey,Zi,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.q)().onAndCancel(sn,vo.domEventName,Fo))}static parseEventName(sn){const ei=sn.toLowerCase().split("."),Zi=ei.shift();if(0===ei.length||"keydown"!==Zi&&"keyup"!==Zi)return null;const vo=mn._normalizeKey(ei.pop());let Fo="",ca=ei.indexOf("code");if(ca>-1&&(ei.splice(ca,1),Fo="code."),ae.forEach(fr=>{const Ge=ei.indexOf(fr);Ge>-1&&(ei.splice(Ge,1),Fo+=fr+".")}),Fo+=vo,0!=ei.length||0===vo.length)return null;const Ia={};return Ia.domEventName=Zi,Ia.fullKey=Fo,Ia}static matchEventFullKeyCode(sn,ei){let Zi=Kt[sn.key]||sn.key,vo="";return ei.indexOf("code.")>-1&&(Zi=sn.code,vo="code."),!(null==Zi||!Zi)&&(Zi=Zi.toLowerCase()," "===Zi?Zi="space":"."===Zi&&(Zi="dot"),ae.forEach(Fo=>{Fo!==Zi&&(0,de[Fo])(sn)&&(vo+=Fo+".")}),vo+=Zi,vo===ei)}static eventCallback(sn,ei,Zi){return vo=>{mn.matchEventFullKeyCode(vo,sn)&&Zi.runGuarded(()=>ei(vo))}}static _normalizeKey(sn){return"esc"===sn?"escape":sn}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();const oi=(0,p.eFA)(p._c5,"browser",[{provide:p.Lbi,useValue:d.bD},{provide:p.g9A,useValue:function gn(){T.makeCurrent()},multi:!0},{provide:d.K0,useFactory:function un(){return(0,p.RDi)(document),document},deps:[]}]),bi=new p.OlP(""),ri=[{provide:p.rWj,useClass:class I{addToWindow(An){p.dqk.getAngularTestability=(ei,Zi=!0)=>{const vo=An.findTestabilityInTree(ei,Zi);if(null==vo)throw new Error("Could not find testability for element.");return vo},p.dqk.getAllAngularTestabilities=()=>An.getAllTestabilities(),p.dqk.getAllAngularRootElements=()=>An.getAllRootElements(),p.dqk.frameworkStabilizers||(p.dqk.frameworkStabilizers=[]),p.dqk.frameworkStabilizers.push(ei=>{const Zi=p.dqk.getAllAngularTestabilities();let vo=Zi.length,Fo=!1;const ca=function(Ia){Fo=Fo||Ia,vo--,0==vo&&ei(Fo)};Zi.forEach(function(Ia){Ia.whenStable(ca)})})}findTestabilityInTree(An,sn,ei){return null==sn?null:An.getTestability(sn)??(ei?(0,d.q)().isShadowRoot(sn)?this.findTestabilityInTree(An,sn.host,!0):this.findTestabilityInTree(An,sn.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]}],Ke=[{provide:p.zSh,useValue:"root"},{provide:p.qLn,useFactory:function Ue(){return new p.qLn},deps:[]},{provide:G,useClass:we,multi:!0,deps:[d.K0,p.R0b,p.Lbi]},{provide:G,useClass:Wt,multi:!0,deps:[d.K0]},{provide:Jt,useClass:Jt,deps:[K,bt,p.AFp]},{provide:p.FYo,useExisting:Jt},{provide:lt,useExisting:bt},{provide:bt,useClass:bt,deps:[d.K0]},{provide:K,useClass:K,deps:[G,p.R0b]},{provide:d.JF,useClass:z,deps:[]},[]];let ne=(()=>{class mn{constructor(sn){}static withServerTransition(sn){return{ngModule:mn,providers:[{provide:p.AFp,useValue:sn.appId},{provide:k,useExisting:p.AFp},P]}}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(bi,12))},mn.\u0275mod=p.oAB({type:mn}),mn.\u0275inj=p.cJS({providers:[...Ke,...ri],imports:[d.ez,p.hGG]}),mn})(),oe=(()=>{class mn{constructor(sn){this._doc=sn}getTitle(){return this._doc.title}setTitle(sn){this._doc.title=sn||""}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:function(sn){let ei=null;return ei=sn?new sn:function Gt(){return new oe((0,p.LFG)(d.K0))}(),ei},providedIn:"root"}),mn})();typeof window<"u"&&window;let En=(()=>{class mn{}return mn.\u0275fac=function(sn){return new(sn||mn)},mn.\u0275prov=p.Yz7({token:mn,factory:function(sn){let ei=null;return ei=sn?new(sn||mn):p.LFG(go),ei},providedIn:"root"}),mn})(),go=(()=>{class mn extends En{constructor(sn){super(),this._doc=sn}sanitize(sn,ei){if(null==ei)return null;switch(sn){case p.q3G.NONE:return ei;case p.q3G.HTML:return(0,p.qzn)(ei,"HTML")?(0,p.z3N)(ei):(0,p.EiD)(this._doc,String(ei)).toString();case p.q3G.STYLE:return(0,p.qzn)(ei,"Style")?(0,p.z3N)(ei):ei;case p.q3G.SCRIPT:if((0,p.qzn)(ei,"Script"))return(0,p.z3N)(ei);throw new Error("unsafe value used in a script context");case p.q3G.URL:return(0,p.qzn)(ei,"URL")?(0,p.z3N)(ei):(0,p.mCW)(String(ei));case p.q3G.RESOURCE_URL:if((0,p.qzn)(ei,"ResourceURL"))return(0,p.z3N)(ei);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${sn} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(sn){return(0,p.JVY)(sn)}bypassSecurityTrustStyle(sn){return(0,p.L6k)(sn)}bypassSecurityTrustScript(sn){return(0,p.eBb)(sn)}bypassSecurityTrustUrl(sn){return(0,p.LAX)(sn)}bypassSecurityTrustResourceUrl(sn){return(0,p.pB0)(sn)}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:function(sn){let ei=null;return ei=sn?new sn:function gi(mn){return new go(mn.get(d.K0))}(p.LFG(p.zs3)),ei},providedIn:"root"}),mn})()},83689:(ot,et,b)=>{"use strict";b.d(et,{gz:()=>Js,m2:()=>Ir,wN:()=>xo,F0:()=>As,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),C=b(61221),U=b(88514),k=b(4843),D=b(61737),P=b(56498),I=b(68896),z=b(71762),G=b(8929),K=b(36895),at=b(24850),lt=b(87545),bt=b(72986),Pt=b(1059),Dt=b(92198),zt=b(61709),Vt=b(87224),nt=b(21406),Tt=b(22868),At=b(27221),ft=b(43489);function Et(vt,yt){let pt=!1;return arguments.length>=2&&(pt=!0),function(ie){return ie.lift(new Bt(vt,yt,pt))}}class Bt{constructor(yt,pt,Yt=!1){this.accumulator=yt,this.seed=pt,this.hasSeed=Yt}call(yt,pt){return pt.subscribe(new It(yt,this.accumulator,this.seed,this.hasSeed))}}class It extends ft.L{constructor(yt,pt,Yt,ie){super(yt),this.accumulator=pt,this._seed=Yt,this.hasSeed=ie,this.index=0}get seed(){return this._seed}set seed(yt){this.hasSeed=!0,this._seed=yt}_next(yt){if(this.hasSeed)return this._tryNext(yt);this.seed=yt,this.destination.next(yt)}_tryNext(yt){const pt=this.index++;let Yt;try{Yt=this.accumulator(this.seed,yt,pt)}catch(ie){this.destination.error(ie)}this.seed=Yt,this.destination.next(Yt)}}var se=b(94231);function Jt(vt){return function(pt){return 0===vt?(0,I.c)():pt.lift(new ve(vt))}}class ve{constructor(yt){if(this.total=yt,this.total<0)throw new se.W}call(yt,pt){return pt.subscribe(new xe(yt,this.total))}}class xe extends ft.L{constructor(yt,pt){super(yt),this.total=pt,this.ring=new Array,this.count=0}_next(yt){const pt=this.ring,Yt=this.total,ie=this.count++;pt.length0){const Yt=this.count>=this.total?this.total:this.count,ie=this.ring;for(let De=0;De=2;return Yt=>Yt.pipe(vt?(0,Dt.h)((ie,De)=>vt(ie,De,Yt)):$e.y,Jt(1),pt?(0,qe.d)(yt):(0,Oe.T)(()=>new t.K))}var we=b(44290),ae=b(77604),Kt=b(40537),de=b(74327),Wt=b(89146),re=b(11481);const Pe="primary",on=Symbol("RouteTitle");class _n{constructor(yt){this.params=yt||{}}has(yt){return Object.prototype.hasOwnProperty.call(this.params,yt)}get(yt){if(this.has(yt)){const pt=this.params[yt];return Array.isArray(pt)?pt[0]:pt}return null}getAll(yt){if(this.has(yt)){const pt=this.params[yt];return Array.isArray(pt)?pt:[pt]}return[]}get keys(){return Object.keys(this.params)}}function ye(vt){return new _n(vt)}function gn(vt,yt,pt){const Yt=pt.path.split("/");if(Yt.length>vt.length||"full"===pt.pathMatch&&(yt.hasChildren()||Yt.lengthYt[De]===ie)}return vt===yt}function oi(vt){return Array.prototype.concat.apply([],vt)}function bi(vt){return vt.length>0?vt[vt.length-1]:null}function Ke(vt,yt){for(const pt in vt)vt.hasOwnProperty(pt)&&yt(vt[pt],pt)}function ne(vt){return(0,d.CqO)(vt)?vt:(0,d.QGY)(vt)?(0,p.D)(Promise.resolve(vt)):(0,v.of)(vt)}const kt={exact:function Ee(vt,yt,pt){if(!Ye(vt.segments,yt.segments)||!Oi(vt.segments,yt.segments,pt)||vt.numberOfChildren!==yt.numberOfChildren)return!1;for(const Yt in yt.children)if(!vt.children[Yt]||!Ee(vt.children[Yt],yt.children[Yt],pt))return!1;return!0},subset:Ln},Gt={exact:function Ce(vt,yt){return un(vt,yt)},subset:function Pn(vt,yt){return Object.keys(yt).length<=Object.keys(vt).length&&Object.keys(yt).every(pt=>Mn(vt[pt],yt[pt]))},ignored:()=>!0};function oe(vt,yt,pt){return kt[pt.paths](vt.root,yt.root,pt.matrixParams)&&Gt[pt.queryParams](vt.queryParams,yt.queryParams)&&!("exact"===pt.fragment&&vt.fragment!==yt.fragment)}function Ln(vt,yt,pt){return mi(vt,yt,yt.segments,pt)}function mi(vt,yt,pt,Yt){if(vt.segments.length>pt.length){const ie=vt.segments.slice(0,pt.length);return!(!Ye(ie,pt)||yt.hasChildren()||!Oi(ie,pt,Yt))}if(vt.segments.length===pt.length){if(!Ye(vt.segments,pt)||!Oi(vt.segments,pt,Yt))return!1;for(const ie in yt.children)if(!vt.children[ie]||!Ln(vt.children[ie],yt.children[ie],Yt))return!1;return!0}{const ie=pt.slice(0,vt.segments.length),De=pt.slice(vt.segments.length);return!!(Ye(vt.segments,ie)&&Oi(vt.segments,ie,Yt)&&vt.children[Pe])&&mi(vt.children[Pe],yt,De,Yt)}}function Oi(vt,yt,pt){return yt.every((Yt,ie)=>Gt[pt](vt[ie].parameters,Yt.parameters))}class ho{constructor(yt,pt,Yt){this.root=yt,this.queryParams=pt,this.fragment=Yt}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ye(this.queryParams)),this._queryParamMap}toString(){return en.serialize(this)}}class fi{constructor(yt,pt){this.segments=yt,this.children=pt,this.parent=null,Ke(pt,(Yt,ie)=>Yt.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return le(this)}}class Yn{constructor(yt,pt){this.path=yt,this.parameters=pt}get parameterMap(){return this._parameterMap||(this._parameterMap=ye(this.parameters)),this._parameterMap}toString(){return Tn(this)}}function Ye(vt,yt){return vt.length===yt.length&&vt.every((pt,Yt)=>pt.path===yt[Yt].path)}let ze=(()=>{class vt{}return vt.\u0275fac=function(pt){return new(pt||vt)},vt.\u0275prov=d.Yz7({token:vt,factory:function(){return new We},providedIn:"root"}),vt})();class We{parse(yt){const pt=new sn(yt);return new ho(pt.parseRootSegment(),pt.parseQueryParams(),pt.parseFragment())}serialize(yt){const pt=`/${Je(yt.root,!0)}`,Yt=function Re(vt){const yt=Object.keys(vt).map(pt=>{const Yt=vt[pt];return Array.isArray(Yt)?Yt.map(ie=>`${wt(pt)}=${wt(ie)}`).join("&"):`${wt(pt)}=${wt(Yt)}`}).filter(pt=>!!pt);return yt.length?`?${yt.join("&")}`:""}(yt.queryParams);return`${pt}${Yt}${"string"==typeof yt.fragment?`#${function Ot(vt){return encodeURI(vt)}(yt.fragment)}`:""}`}}const en=new We;function le(vt){return vt.segments.map(yt=>Tn(yt)).join("/")}function Je(vt,yt){if(!vt.hasChildren())return le(vt);if(yt){const pt=vt.children[Pe]?Je(vt.children[Pe],!1):"",Yt=[];return Ke(vt.children,(ie,De)=>{De!==Pe&&Yt.push(`${De}:${Je(ie,!1)}`)}),Yt.length>0?`${pt}(${Yt.join("//")})`:pt}{const pt=function fn(vt,yt){let pt=[];return Ke(vt.children,(Yt,ie)=>{ie===Pe&&(pt=pt.concat(yt(Yt,ie)))}),Ke(vt.children,(Yt,ie)=>{ie!==Pe&&(pt=pt.concat(yt(Yt,ie)))}),pt}(vt,(Yt,ie)=>ie===Pe?[Je(vt.children[Pe],!1)]:[`${ie}:${Je(Yt,!1)}`]);return 1===Object.keys(vt.children).length&&null!=vt.children[Pe]?`${le(vt)}/${pt[0]}`:`${le(vt)}/(${pt.join("//")})`}}function Lt(vt){return encodeURIComponent(vt).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wt(vt){return Lt(vt).replace(/%3B/gi,";")}function Te(vt){return Lt(vt).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xe(vt){return decodeURIComponent(vt)}function Fe(vt){return Xe(vt.replace(/\+/g,"%20"))}function Tn(vt){return`${Te(vt.path)}${function he(vt){return Object.keys(vt).map(yt=>`;${Te(yt)}=${Te(vt[yt])}`).join("")}(vt.parameters)}`}const En=/^[^\/()?;=#]+/;function gi(vt){const yt=vt.match(En);return yt?yt[0]:""}const go=/^[^=?&#]+/,mn=/^[^&#]+/;class sn{constructor(yt){this.url=yt,this.remaining=yt}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fi([],{}):new fi([],this.parseChildren())}parseQueryParams(){const yt={};if(this.consumeOptional("?"))do{this.parseQueryParam(yt)}while(this.consumeOptional("&"));return yt}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const yt=[];for(this.peekStartsWith("(")||yt.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),yt.push(this.parseSegment());let pt={};this.peekStartsWith("/(")&&(this.capture("/"),pt=this.parseParens(!0));let Yt={};return this.peekStartsWith("(")&&(Yt=this.parseParens(!1)),(yt.length>0||Object.keys(pt).length>0)&&(Yt[Pe]=new fi(yt,pt)),Yt}parseSegment(){const yt=gi(this.remaining);if(""===yt&&this.peekStartsWith(";"))throw new d.vHH(4009,!1);return this.capture(yt),new Yn(Xe(yt),this.parseMatrixParams())}parseMatrixParams(){const yt={};for(;this.consumeOptional(";");)this.parseParam(yt);return yt}parseParam(yt){const pt=gi(this.remaining);if(!pt)return;this.capture(pt);let Yt="";if(this.consumeOptional("=")){const ie=gi(this.remaining);ie&&(Yt=ie,this.capture(Yt))}yt[Xe(pt)]=Xe(Yt)}parseQueryParam(yt){const pt=function _o(vt){const yt=vt.match(go);return yt?yt[0]:""}(this.remaining);if(!pt)return;this.capture(pt);let Yt="";if(this.consumeOptional("=")){const Un=function An(vt){const yt=vt.match(mn);return yt?yt[0]:""}(this.remaining);Un&&(Yt=Un,this.capture(Yt))}const ie=Fe(pt),De=Fe(Yt);if(yt.hasOwnProperty(ie)){let Un=yt[ie];Array.isArray(Un)||(Un=[Un],yt[ie]=Un),Un.push(De)}else yt[ie]=De}parseParens(yt){const pt={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Yt=gi(this.remaining),ie=this.remaining[Yt.length];if("/"!==ie&&")"!==ie&&";"!==ie)throw new d.vHH(4010,!1);let De;Yt.indexOf(":")>-1?(De=Yt.slice(0,Yt.indexOf(":")),this.capture(De),this.capture(":")):yt&&(De=Pe);const Un=this.parseChildren();pt[De]=1===Object.keys(Un).length?Un[Pe]:new fi([],Un),this.consumeOptional("//")}return pt}peekStartsWith(yt){return this.remaining.startsWith(yt)}consumeOptional(yt){return!!this.peekStartsWith(yt)&&(this.remaining=this.remaining.substring(yt.length),!0)}capture(yt){if(!this.consumeOptional(yt))throw new d.vHH(4011,!1)}}function ei(vt){return vt.segments.length>0?new fi([],{[Pe]:vt}):vt}function Zi(vt){const yt={};for(const Yt of Object.keys(vt.children)){const De=Zi(vt.children[Yt]);(De.segments.length>0||De.hasChildren())&&(yt[Yt]=De)}return function vo(vt){if(1===vt.numberOfChildren&&vt.children[Pe]){const yt=vt.children[Pe];return new fi(vt.segments.concat(yt.segments),yt.children)}return vt}(new fi(vt.segments,yt))}function Fo(vt){return vt instanceof ho}function In(vt,yt,pt,Yt,ie){if(0===pt.length)return dn(yt.root,yt.root,yt.root,Yt,ie);const De=function Q(vt){if("string"==typeof vt[0]&&1===vt.length&&"/"===vt[0])return new Rt(!0,0,vt);let yt=0,pt=!1;const Yt=vt.reduce((ie,De,Un)=>{if("object"==typeof De&&null!=De){if(De.outlets){const Nn={};return Ke(De.outlets,(Ii,Qi)=>{Nn[Qi]="string"==typeof Ii?Ii.split("/"):Ii}),[...ie,{outlets:Nn}]}if(De.segmentPath)return[...ie,De.segmentPath]}return"string"!=typeof De?[...ie,De]:0===Un?(De.split("/").forEach((Nn,Ii)=>{0==Ii&&"."===Nn||(0==Ii&&""===Nn?pt=!0:".."===Nn?yt++:""!=Nn&&ie.push(Nn))}),ie):[...ie,De]},[]);return new Rt(pt,yt,Yt)}(pt);return De.toRoot()?dn(yt.root,yt.root,new fi([],{}),Yt,ie):function Un(Ii){const Qi=function Rn(vt,yt,pt,Yt){if(vt.isAbsolute)return new Ft(yt.root,!0,0);if(-1===Yt)return new Ft(pt,pt===yt.root,0);return function Gi(vt,yt,pt){let Yt=vt,ie=yt,De=pt;for(;De>ie;){if(De-=ie,Yt=Yt.parent,!Yt)throw new d.vHH(4005,!1);ie=Yt.segments.length}return new Ft(Yt,!1,ie-De)}(pt,Yt+(He(vt.commands[0])?0:1),vt.numberOfDoubleDots)}(De,yt,vt.snapshot?._urlSegment,Ii),Fa=Qi.processChildren?br(Qi.segmentGroup,Qi.index,De.commands):gr(Qi.segmentGroup,Qi.index,De.commands);return dn(yt.root,Qi.segmentGroup,Fa,Yt,ie)}(vt.snapshot?._lastPathIndex)}function He(vt){return"object"==typeof vt&&null!=vt&&!vt.outlets&&!vt.segmentPath}function ke(vt){return"object"==typeof vt&&null!=vt&&vt.outlets}function dn(vt,yt,pt,Yt,ie){let Un,De={};Yt&&Ke(Yt,(Ii,Qi)=>{De[Qi]=Array.isArray(Ii)?Ii.map(Fa=>`${Fa}`):`${Ii}`}),Un=vt===yt?pt:tt(vt,yt,pt);const Nn=ei(Zi(Un));return new ho(Nn,De,ie)}function tt(vt,yt,pt){const Yt={};return Ke(vt.children,(ie,De)=>{Yt[De]=ie===yt?pt:tt(ie,yt,pt)}),new fi(vt.segments,Yt)}class Rt{constructor(yt,pt,Yt){if(this.isAbsolute=yt,this.numberOfDoubleDots=pt,this.commands=Yt,yt&&Yt.length>0&&He(Yt[0]))throw new d.vHH(4003,!1);const ie=Yt.find(ke);if(ie&&ie!==bi(Yt))throw new d.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ft{constructor(yt,pt,Yt){this.segmentGroup=yt,this.processChildren=pt,this.index=Yt}}function gr(vt,yt,pt){if(vt||(vt=new fi([],{})),0===vt.segments.length&&vt.hasChildren())return br(vt,yt,pt);const Yt=function ls(vt,yt,pt){let Yt=0,ie=yt;const De={match:!1,pathIndex:0,commandIndex:0};for(;ie=pt.length)return De;const Un=vt.segments[ie],Nn=pt[Yt];if(ke(Nn))break;const Ii=`${Nn}`,Qi=Yt0&&void 0===Ii)break;if(Ii&&Qi&&"object"==typeof Qi&&void 0===Qi.outlets){if(!dr(Ii,Qi,Un))return De;Yt+=2}else{if(!dr(Ii,{},Un))return De;Yt++}ie++}return{match:!0,pathIndex:ie,commandIndex:Yt}}(vt,yt,pt),ie=pt.slice(Yt.commandIndex);if(Yt.match&&Yt.pathIndex{"string"==typeof De&&(De=[De]),null!==De&&(ie[Un]=gr(vt.children[Un],yt,De))}),Ke(vt.children,(De,Un)=>{void 0===Yt[Un]&&(ie[Un]=De)}),new fi(vt.segments,ie)}}function ar(vt,yt,pt){const Yt=vt.segments.slice(0,yt);let ie=0;for(;ie{"string"==typeof pt&&(pt=[pt]),null!==pt&&(yt[Yt]=ar(new fi([],{}),0,pt))}),yt}function bc(vt){const yt={};return Ke(vt,(pt,Yt)=>yt[Yt]=`${pt}`),yt}function dr(vt,yt,pt){return vt==pt.path&&un(yt,pt.parameters)}class Br{constructor(yt,pt){this.id=yt,this.url=pt}}class Gr extends Br{constructor(yt,pt,Yt="imperative",ie=null){super(yt,pt),this.type=0,this.navigationTrigger=Yt,this.restoredState=ie}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ir extends Br{constructor(yt,pt,Yt){super(yt,pt),this.urlAfterRedirects=Yt,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Pc extends Br{constructor(yt,pt,Yt,ie){super(yt,pt),this.reason=Yt,this.code=ie,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class al extends Br{constructor(yt,pt,Yt,ie){super(yt,pt),this.error=Yt,this.target=ie,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Sc extends Br{constructor(yt,pt,Yt,ie){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ns extends Br{constructor(yt,pt,Yt,ie){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lc extends Br{constructor(yt,pt,Yt,ie,De){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.shouldActivate=De,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class xl extends Br{constructor(yt,pt,Yt,ie){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qr extends Br{constructor(yt,pt,Yt,ie){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fs{constructor(yt){this.route=yt,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class _1{constructor(yt){this.route=yt,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class hr{constructor(yt){this.snapshot=yt,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iu{constructor(yt){this.snapshot=yt,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class f1{constructor(yt){this.snapshot=yt,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vc{constructor(yt){this.snapshot=yt,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Cl{constructor(yt,pt,Yt){this.routerEvent=yt,this.position=pt,this.anchor=Yt,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Oc{constructor(yt){this._root=yt}get root(){return this._root.value}parent(yt){const pt=this.pathFromRoot(yt);return pt.length>1?pt[pt.length-2]:null}children(yt){const pt=Vs(yt,this._root);return pt?pt.children.map(Yt=>Yt.value):[]}firstChild(yt){const pt=Vs(yt,this._root);return pt&&pt.children.length>0?pt.children[0].value:null}siblings(yt){const pt=Bc(yt,this._root);return pt.length<2?[]:pt[pt.length-2].children.map(ie=>ie.value).filter(ie=>ie!==yt)}pathFromRoot(yt){return Bc(yt,this._root).map(pt=>pt.value)}}function Vs(vt,yt){if(vt===yt.value)return yt;for(const pt of yt.children){const Yt=Vs(vt,pt);if(Yt)return Yt}return null}function Bc(vt,yt){if(vt===yt.value)return[yt];for(const pt of yt.children){const Yt=Bc(vt,pt);if(Yt.length)return Yt.unshift(yt),Yt}return[]}class Vc{constructor(yt,pt){this.value=yt,this.children=pt}toString(){return`TreeNode(${this.value})`}}function js(vt){const yt={};return vt&&vt.children.forEach(pt=>yt[pt.value.outlet]=pt),yt}class yl extends Oc{constructor(yt,pt){super(yt),this.snapshot=pt,Hl(this,yt)}toString(){return this.snapshot.toString()}}function md(vt,yt){const pt=function Rl(vt,yt){const Un=new jc([],{},{},"",{},Pe,yt,null,vt.root,-1,{});return new ks("",new Vc(Un,[]))}(vt,yt),Yt=new T.X([new Yn("",{})]),ie=new T.X({}),De=new T.X({}),Un=new T.X({}),Nn=new T.X(""),Ii=new Js(Yt,ie,Un,Nn,De,Pe,yt,pt.root);return Ii.snapshot=pt.root,new yl(new Vc(Ii,[]),pt)}class Js{constructor(yt,pt,Yt,ie,De,Un,Nn,Ii){this.url=yt,this.params=pt,this.queryParams=Yt,this.fragment=ie,this.data=De,this.outlet=Un,this.component=Nn,this.title=this.data?.pipe((0,at.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,at.U)(yt=>ye(yt)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,at.U)(yt=>ye(yt)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Tl(vt,yt="emptyOnly"){const pt=vt.pathFromRoot;let Yt=0;if("always"!==yt)for(Yt=pt.length-1;Yt>=1;){const ie=pt[Yt],De=pt[Yt-1];if(ie.routeConfig&&""===ie.routeConfig.path)Yt--;else{if(De.component)break;Yt--}}return function Gs(vt){return vt.reduce((yt,pt)=>({params:{...yt.params,...pt.params},data:{...yt.data,...pt.data},resolve:{...pt.data,...yt.resolve,...pt.routeConfig?.data,...pt._resolvedData}}),{params:{},data:{},resolve:{}})}(pt.slice(Yt))}class jc{constructor(yt,pt,Yt,ie,De,Un,Nn,Ii,Qi,Fa,Ko,xr){this.url=yt,this.params=pt,this.queryParams=Yt,this.fragment=ie,this.data=De,this.outlet=Un,this.component=Nn,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=ye(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ye(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Yt=>Yt.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ks extends Oc{constructor(yt,pt){super(pt),this.url=yt,Hl(this,pt)}toString(){return ou(this._root)}}function Hl(vt,yt){yt.value._routerState=vt,yt.children.forEach(pt=>Hl(vt,pt))}function ou(vt){const yt=vt.children.length>0?` { ${vt.children.map(ou).join(", ")} } `:"";return`${vt.value}${yt}`}function zl(vt){if(vt.snapshot){const yt=vt.snapshot,pt=vt._futureSnapshot;vt.snapshot=pt,un(yt.queryParams,pt.queryParams)||vt.queryParams.next(pt.queryParams),yt.fragment!==pt.fragment&&vt.fragment.next(pt.fragment),un(yt.params,pt.params)||vt.params.next(pt.params),function Ue(vt,yt){if(vt.length!==yt.length)return!1;for(let pt=0;ptun(pt.parameters,yt[Yt].parameters))}(vt.url,yt.url);return pt&&!(!vt.parent!=!yt.parent)&&(!vt.parent||qo(vt.parent,yt.parent))}function cc(vt,yt,pt){if(pt&&vt.shouldReuseRoute(yt.value,pt.value.snapshot)){const Yt=pt.value;Yt._futureSnapshot=yt.value;const ie=function qu(vt,yt,pt){return yt.children.map(Yt=>{for(const ie of pt.children)if(vt.shouldReuseRoute(Yt.value,ie.value.snapshot))return cc(vt,Yt,ie);return cc(vt,Yt)})}(vt,yt,pt);return new Vc(Yt,ie)}{if(vt.shouldAttach(yt.value)){const De=vt.retrieve(yt.value);if(null!==De){const Un=De.route;return Un.value._futureSnapshot=yt.value,Un.children=yt.children.map(Nn=>cc(vt,Nn)),Un}}const Yt=function Yl(vt){return new Js(new T.X(vt.url),new T.X(vt.params),new T.X(vt.queryParams),new T.X(vt.fragment),new T.X(vt.data),vt.outlet,vt.component,vt)}(yt.value),ie=yt.children.map(De=>cc(vt,De));return new Vc(Yt,ie)}}const xc="ngNavigationCancelingError";function wl(vt,yt){const{redirectTo:pt,navigationBehaviorOptions:Yt}=Fo(yt)?{redirectTo:yt,navigationBehaviorOptions:void 0}:yt,ie=Ds(!1,0,yt);return ie.url=pt,ie.navigationBehaviorOptions=Yt,ie}function Ds(vt,yt,pt){const Yt=new Error("NavigationCancelingError: "+(vt||""));return Yt[xc]=!0,Yt.cancellationCode=yt,pt&&(Yt.url=pt),Yt}function Jc(vt){return bu(vt)&&Fo(vt.url)}function bu(vt){return vt&&vt[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 vt{constructor(){this.contexts=new Map}onChildOutletCreated(pt,Yt){const ie=this.getOrCreateContext(pt);ie.outlet=Yt,this.contexts.set(pt,ie)}onChildOutletDestroyed(pt){const Yt=this.getContext(pt);Yt&&(Yt.outlet=null,Yt.attachRef=null)}onOutletDeactivated(){const pt=this.contexts;return this.contexts=new Map,pt}onOutletReAttached(pt){this.contexts=pt}getOrCreateContext(pt){let Yt=this.getContext(pt);return Yt||(Yt=new Dr,this.contexts.set(pt,Yt)),Yt}getContext(pt){return this.contexts.get(pt)||null}}return vt.\u0275fac=function(pt){return new(pt||vt)},vt.\u0275prov=d.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();const Wa=!1;let pr=(()=>{class vt{constructor(pt,Yt,ie,De,Un){this.parentContexts=pt,this.location=Yt,this.changeDetector=De,this.environmentInjector=Un,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=ie||Pe,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,Yt){this.activated=pt,this._activatedRoute=Yt,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,Yt){if(this.isActivated)throw new d.vHH(4013,Wa);this._activatedRoute=pt;const ie=this.location,Un=pt._futureSnapshot.component,Nn=this.parentContexts.getOrCreateContext(this.name).children,Ii=new Gc(pt,Nn,ie.injector);if(Yt&&function xs(vt){return!!vt.resolveComponentFactory}(Yt)){const Qi=Yt.resolveComponentFactory(Un);this.activated=ie.createComponent(Qi,ie.length,Ii)}else this.activated=ie.createComponent(Un,{index:ie.length,injector:Ii,environmentInjector:Yt??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return vt.\u0275fac=function(pt){return new(pt||vt)(d.Y36(Cc),d.Y36(d.s_b),d.$8M("name"),d.Y36(d.sBO),d.Y36(d.lqb))},vt.\u0275dir=d.lG2({type:vt,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),vt})();class Gc{constructor(yt,pt,Yt){this.route=yt,this.childContexts=pt,this.parent=Yt}get(yt,pt){return yt===Js?this.route:yt===Cc?this.childContexts:this.parent.get(yt,pt)}}let Ac=(()=>{class vt{}return vt.\u0275fac=function(pt){return new(pt||vt)},vt.\u0275cmp=d.Xpm({type:vt,selectors:[["ng-component"]],standalone:!0,features:[d.jDz],decls:1,vars:0,template:function(pt,Yt){1&pt&&d._UZ(0,"router-outlet")},dependencies:[pr],encapsulation:2}),vt})();function sr(vt,yt){return vt.providers&&!vt._injector&&(vt._injector=(0,d.MMx)(vt.providers,yt,`Route: ${vt.path}`)),vt._injector??yt}function Ws(vt){const yt=vt.children&&vt.children.map(Ws),pt=yt?{...vt,children:yt}:{...vt};return!pt.component&&!pt.loadComponent&&(yt||pt.loadChildren)&&pt.outlet&&pt.outlet!==Pe&&(pt.component=Ac),pt}function Nr(vt){return vt.outlet||Pe}function aa(vt,yt){const pt=vt.filter(Yt=>Nr(Yt)===yt);return pt.push(...vt.filter(Yt=>Nr(Yt)!==yt)),pt}function uc(vt){if(!vt)return null;if(vt.routeConfig?._injector)return vt.routeConfig._injector;for(let yt=vt.parent;yt;yt=yt.parent){const pt=yt.routeConfig;if(pt?._loadedInjector)return pt._loadedInjector;if(pt?._injector)return pt._injector}return null}class Vr{constructor(yt,pt,Yt,ie){this.routeReuseStrategy=yt,this.futureState=pt,this.currState=Yt,this.forwardEvent=ie}activate(yt){const pt=this.futureState._root,Yt=this.currState?this.currState._root:null;this.deactivateChildRoutes(pt,Yt,yt),zl(this.futureState.root),this.activateChildRoutes(pt,Yt,yt)}deactivateChildRoutes(yt,pt,Yt){const ie=js(pt);yt.children.forEach(De=>{const Un=De.value.outlet;this.deactivateRoutes(De,ie[Un],Yt),delete ie[Un]}),Ke(ie,(De,Un)=>{this.deactivateRouteAndItsChildren(De,Yt)})}deactivateRoutes(yt,pt,Yt){const ie=yt.value,De=pt?pt.value:null;if(ie===De)if(ie.component){const Un=Yt.getContext(ie.outlet);Un&&this.deactivateChildRoutes(yt,pt,Un.children)}else this.deactivateChildRoutes(yt,pt,Yt);else De&&this.deactivateRouteAndItsChildren(pt,Yt)}deactivateRouteAndItsChildren(yt,pt){yt.value.component&&this.routeReuseStrategy.shouldDetach(yt.value.snapshot)?this.detachAndStoreRouteSubtree(yt,pt):this.deactivateRouteAndOutlet(yt,pt)}detachAndStoreRouteSubtree(yt,pt){const Yt=pt.getContext(yt.value.outlet),ie=Yt&&yt.value.component?Yt.children:pt,De=js(yt);for(const Un of Object.keys(De))this.deactivateRouteAndItsChildren(De[Un],ie);if(Yt&&Yt.outlet){const Un=Yt.outlet.detach(),Nn=Yt.children.onOutletDeactivated();this.routeReuseStrategy.store(yt.value.snapshot,{componentRef:Un,route:yt,contexts:Nn})}}deactivateRouteAndOutlet(yt,pt){const Yt=pt.getContext(yt.value.outlet),ie=Yt&&yt.value.component?Yt.children:pt,De=js(yt);for(const Un of Object.keys(De))this.deactivateRouteAndItsChildren(De[Un],ie);Yt&&Yt.outlet&&(Yt.outlet.deactivate(),Yt.children.onOutletDeactivated(),Yt.attachRef=null,Yt.resolver=null,Yt.route=null)}activateChildRoutes(yt,pt,Yt){const ie=js(pt);yt.children.forEach(De=>{this.activateRoutes(De,ie[De.value.outlet],Yt),this.forwardEvent(new vc(De.value.snapshot))}),yt.children.length&&this.forwardEvent(new iu(yt.value.snapshot))}activateRoutes(yt,pt,Yt){const ie=yt.value,De=pt?pt.value:null;if(zl(ie),ie===De)if(ie.component){const Un=Yt.getOrCreateContext(ie.outlet);this.activateChildRoutes(yt,pt,Un.children)}else this.activateChildRoutes(yt,pt,Yt);else if(ie.component){const Un=Yt.getOrCreateContext(ie.outlet);if(this.routeReuseStrategy.shouldAttach(ie.snapshot)){const Nn=this.routeReuseStrategy.retrieve(ie.snapshot);this.routeReuseStrategy.store(ie.snapshot,null),Un.children.onOutletReAttached(Nn.contexts),Un.attachRef=Nn.componentRef,Un.route=Nn.route.value,Un.outlet&&Un.outlet.attach(Nn.componentRef,Nn.route.value),zl(Nn.route.value),this.activateChildRoutes(yt,null,Un.children)}else{const Nn=uc(ie.snapshot),Ii=Nn?.get(d._Vd)??null;Un.attachRef=null,Un.route=ie,Un.resolver=Ii,Un.injector=Nn,Un.outlet&&Un.outlet.activateWith(ie,Un.injector),this.activateChildRoutes(yt,null,Un.children)}}else this.activateChildRoutes(yt,null,Yt)}}class Qc{constructor(yt){this.path=yt,this.route=this.path[this.path.length-1]}}class rl{constructor(yt,pt){this.component=yt,this.route=pt}}function yc(vt,yt,pt){const Yt=vt._root;return Bi(Yt,yt?yt._root:null,pt,[Yt.value])}function vu(vt,yt){const pt=Symbol(),Yt=yt.get(vt,pt);return Yt===pt?"function"!=typeof vt||(0,d.Z0I)(vt)?yt.get(vt):vt:Yt}function Bi(vt,yt,pt,Yt,ie={canDeactivateChecks:[],canActivateChecks:[]}){const De=js(yt);return vt.children.forEach(Un=>{(function Pa(vt,yt,pt,Yt,ie={canDeactivateChecks:[],canActivateChecks:[]}){const De=vt.value,Un=yt?yt.value:null,Nn=pt?pt.getContext(vt.value.outlet):null;if(Un&&De.routeConfig===Un.routeConfig){const Ii=function xu(vt,yt,pt){if("function"==typeof pt)return pt(vt,yt);switch(pt){case"pathParamsChange":return!Ye(vt.url,yt.url);case"pathParamsOrQueryParamsChange":return!Ye(vt.url,yt.url)||!un(vt.queryParams,yt.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qo(vt,yt)||!un(vt.queryParams,yt.queryParams);default:return!qo(vt,yt)}}(Un,De,De.routeConfig.runGuardsAndResolvers);Ii?ie.canActivateChecks.push(new Qc(Yt)):(De.data=Un.data,De._resolvedData=Un._resolvedData),Bi(vt,yt,De.component?Nn?Nn.children:null:pt,Yt,ie),Ii&&Nn&&Nn.outlet&&Nn.outlet.isActivated&&ie.canDeactivateChecks.push(new rl(Nn.outlet.component,Un))}else Un&&$s(yt,Nn,ie),ie.canActivateChecks.push(new Qc(Yt)),Bi(vt,null,De.component?Nn?Nn.children:null:pt,Yt,ie)})(Un,De[Un.value.outlet],pt,Yt.concat([Un.value]),ie),delete De[Un.value.outlet]}),Ke(De,(Un,Nn)=>$s(Un,pt.getContext(Nn),ie)),ie}function $s(vt,yt,pt){const Yt=js(vt),ie=vt.value;Ke(Yt,(De,Un)=>{$s(De,ie.component?yt?yt.children.getContext(Un):null:yt,pt)}),pt.canDeactivateChecks.push(new rl(ie.component&&yt&&yt.outlet&&yt.outlet.isActivated?yt.outlet.component:null,ie))}function Pr(vt){return"function"==typeof vt}function Ec(vt){return vt instanceof t.K||"EmptyError"===vt?.name}const Fr=Symbol("INITIAL_VALUE");function qr(){return(0,lt.w)(vt=>(0,A.aj)(vt.map(yt=>yt.pipe((0,bt.q)(1),(0,Pt.O)(Fr)))).pipe((0,at.U)(yt=>{for(const pt of yt)if(!0!==pt){if(pt===Fr)return Fr;if(!1===pt||pt instanceof ho)return pt}return!0}),(0,Dt.h)(yt=>yt!==Fr),(0,bt.q)(1)))}function sl(vt){return(0,k.z)((0,Tt.b)(yt=>{if(Fo(yt))throw wl(0,yt)}),(0,at.U)(yt=>!0===yt))}const dp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ml(vt,yt,pt,Yt,ie){const De=cl(vt,yt,pt);return De.matched?function Zl(vt,yt,pt,Yt){const ie=yt.canMatch;if(!ie||0===ie.length)return(0,v.of)(!0);const De=ie.map(Un=>{const Nn=vu(Un,vt);return ne(function jo(vt){return vt&&Pr(vt.canMatch)}(Nn)?Nn.canMatch(yt,pt):vt.runInContext(()=>Nn(yt,pt)))});return(0,v.of)(De).pipe(qr(),sl())}(Yt=sr(yt,Yt),yt,pt).pipe((0,at.U)(Un=>!0===Un?De:{...dp})):(0,v.of)(De)}function cl(vt,yt,pt){if(""===yt.path)return"full"===yt.pathMatch&&(vt.hasChildren()||pt.length>0)?{...dp}:{matched:!0,consumedSegments:[],remainingSegments:pt,parameters:{},positionalParamSegments:{}};const ie=(yt.matcher||gn)(pt,vt,yt);if(!ie)return{...dp};const De={};Ke(ie.posParams,(Nn,Ii)=>{De[Ii]=Nn.path});const Un=ie.consumed.length>0?{...De,...ie.consumed[ie.consumed.length-1].parameters}:De;return{matched:!0,consumedSegments:ie.consumed,remainingSegments:pt.slice(ie.consumed.length),parameters:Un,positionalParamSegments:ie.posParams??{}}}function Yi(vt,yt,pt,Yt,ie="corrected"){if(pt.length>0&&function Cu(vt,yt,pt){return pt.some(Yt=>ll(vt,yt,Yt)&&Nr(Yt)!==Pe)}(vt,pt,Yt)){const Un=new fi(yt,function su(vt,yt,pt,Yt){const ie={};ie[Pe]=Yt,Yt._sourceSegment=vt,Yt._segmentIndexShift=yt.length;for(const De of pt)if(""===De.path&&Nr(De)!==Pe){const Un=new fi([],{});Un._sourceSegment=vt,Un._segmentIndexShift=yt.length,ie[Nr(De)]=Un}return ie}(vt,yt,Yt,new fi(pt,vt.children)));return Un._sourceSegment=vt,Un._segmentIndexShift=yt.length,{segmentGroup:Un,slicedSegments:[]}}if(0===pt.length&&function wa(vt,yt,pt){return pt.some(Yt=>ll(vt,yt,Yt))}(vt,pt,Yt)){const Un=new fi(vt.segments,function _t(vt,yt,pt,Yt,ie,De){const Un={};for(const Nn of Yt)if(ll(vt,pt,Nn)&&!ie[Nr(Nn)]){const Ii=new fi([],{});Ii._sourceSegment=vt,Ii._segmentIndexShift="legacy"===De?vt.segments.length:yt.length,Un[Nr(Nn)]=Ii}return{...ie,...Un}}(vt,yt,pt,Yt,vt.children,ie));return Un._sourceSegment=vt,Un._segmentIndexShift=yt.length,{segmentGroup:Un,slicedSegments:pt}}const De=new fi(vt.segments,vt.children);return De._sourceSegment=vt,De._segmentIndexShift=yt.length,{segmentGroup:De,slicedSegments:pt}}function ll(vt,yt,pt){return(!(vt.hasChildren()||yt.length>0)||"full"!==pt.pathMatch)&&""===pt.path}function Ja(vt,yt,pt,Yt){return!!(Nr(vt)===Yt||Yt!==Pe&&ll(yt,pt,vt))&&("**"===vt.path||cl(yt,vt,pt).matched)}function Rr(vt,yt,pt){return 0===yt.length&&!vt.children[pt]}const Us=!1;class Ra{constructor(yt){this.segmentGroup=yt||null}}class Ei{constructor(yt){this.urlTree=yt}}function _d(vt){return(0,D._)(new Ra(vt))}function g1(vt){return(0,D._)(new Ei(vt))}class Pi{constructor(yt,pt,Yt,ie,De){this.injector=yt,this.configLoader=pt,this.urlSerializer=Yt,this.urlTree=ie,this.config=De,this.allowRedirects=!0}apply(){const yt=Yi(this.urlTree.root,[],[],this.config).segmentGroup,pt=new fi(yt.segments,yt.children);return this.expandSegmentGroup(this.injector,this.config,pt,Pe).pipe((0,at.U)(De=>this.createUrlTree(Zi(De),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,At.K)(De=>{if(De instanceof Ei)return this.allowRedirects=!1,this.match(De.urlTree);throw De instanceof Ra?this.noMatchError(De):De}))}match(yt){return this.expandSegmentGroup(this.injector,this.config,yt.root,Pe).pipe((0,at.U)(ie=>this.createUrlTree(Zi(ie),yt.queryParams,yt.fragment))).pipe((0,At.K)(ie=>{throw ie instanceof Ra?this.noMatchError(ie):ie}))}noMatchError(yt){return new d.vHH(4002,Us)}createUrlTree(yt,pt,Yt){const ie=ei(yt);return new ho(ie,pt,Yt)}expandSegmentGroup(yt,pt,Yt,ie){return 0===Yt.segments.length&&Yt.hasChildren()?this.expandChildren(yt,pt,Yt).pipe((0,at.U)(De=>new fi([],De))):this.expandSegment(yt,Yt,pt,Yt.segments,ie,!0)}expandChildren(yt,pt,Yt){const ie=[];for(const De of Object.keys(Yt.children))"primary"===De?ie.unshift(De):ie.push(De);return(0,p.D)(ie).pipe((0,nt.b)(De=>{const Un=Yt.children[De],Nn=aa(pt,De);return this.expandSegmentGroup(yt,Nn,Un,De).pipe((0,at.U)(Ii=>({segment:Ii,outlet:De})))}),Et((De,Un)=>(De[Un.outlet]=Un.segment,De),{}),Xt())}expandSegment(yt,pt,Yt,ie,De,Un){return(0,p.D)(Yt).pipe((0,nt.b)(Nn=>this.expandSegmentAgainstRoute(yt,pt,Yt,Nn,ie,De,Un).pipe((0,At.K)(Qi=>{if(Qi instanceof Ra)return(0,v.of)(null);throw Qi}))),(0,Vt.P)(Nn=>!!Nn),(0,At.K)((Nn,Ii)=>{if(Ec(Nn))return Rr(pt,ie,De)?(0,v.of)(new fi([],{})):_d(pt);throw Nn}))}expandSegmentAgainstRoute(yt,pt,Yt,ie,De,Un,Nn){return Ja(ie,pt,De,Un)?void 0===ie.redirectTo?this.matchSegmentAgainstRoute(yt,pt,ie,De,Un):Nn&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(yt,pt,Yt,ie,De,Un):_d(pt):_d(pt)}expandSegmentAgainstRouteUsingRedirect(yt,pt,Yt,ie,De,Un){return"**"===ie.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(yt,Yt,ie,Un):this.expandRegularSegmentAgainstRouteUsingRedirect(yt,pt,Yt,ie,De,Un)}expandWildCardWithParamsAgainstRouteUsingRedirect(yt,pt,Yt,ie){const De=this.applyRedirectCommands([],Yt.redirectTo,{});return Yt.redirectTo.startsWith("/")?g1(De):this.lineralizeSegments(Yt,De).pipe((0,zt.zg)(Un=>{const Nn=new fi(Un,{});return this.expandSegment(yt,Nn,pt,Un,ie,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(yt,pt,Yt,ie,De,Un){const{matched:Nn,consumedSegments:Ii,remainingSegments:Qi,positionalParamSegments:Fa}=cl(pt,ie,De);if(!Nn)return _d(pt);const Ko=this.applyRedirectCommands(Ii,ie.redirectTo,Fa);return ie.redirectTo.startsWith("/")?g1(Ko):this.lineralizeSegments(ie,Ko).pipe((0,zt.zg)(xr=>this.expandSegment(yt,pt,Yt,xr.concat(Qi),Un,!1)))}matchSegmentAgainstRoute(yt,pt,Yt,ie,De){return"**"===Yt.path?(yt=sr(Yt,yt),Yt.loadChildren?(Yt._loadedRoutes?(0,v.of)({routes:Yt._loadedRoutes,injector:Yt._loadedInjector}):this.configLoader.loadChildren(yt,Yt)).pipe((0,at.U)(Nn=>(Yt._loadedRoutes=Nn.routes,Yt._loadedInjector=Nn.injector,new fi(ie,{})))):(0,v.of)(new fi(ie,{}))):Ml(pt,Yt,ie,yt).pipe((0,lt.w)(({matched:Un,consumedSegments:Nn,remainingSegments:Ii})=>Un?this.getChildConfig(yt=Yt._injector??yt,Yt,ie).pipe((0,zt.zg)(Fa=>{const Ko=Fa.injector??yt,xr=Fa.routes,{segmentGroup:zs,slicedSegments:Vu}=Yi(pt,Nn,Ii,xr),va=new fi(zs.segments,zs.children);if(0===Vu.length&&va.hasChildren())return this.expandChildren(Ko,xr,va).pipe((0,at.U)(Ci=>new fi(Nn,Ci)));if(0===xr.length&&0===Vu.length)return(0,v.of)(new fi(Nn,{}));const Dl=Nr(Yt)===De;return this.expandSegment(Ko,va,xr,Vu,Dl?Pe:De,!0).pipe((0,at.U)(Zn=>new fi(Nn.concat(Zn.segments),Zn.children)))})):_d(pt)))}getChildConfig(yt,pt,Yt){return pt.children?(0,v.of)({routes:pt.children,injector:yt}):pt.loadChildren?void 0!==pt._loadedRoutes?(0,v.of)({routes:pt._loadedRoutes,injector:pt._loadedInjector}):function Ic(vt,yt,pt,Yt){const ie=yt.canLoad;if(void 0===ie||0===ie.length)return(0,v.of)(!0);const De=ie.map(Un=>{const Nn=vu(Un,vt);return ne(function ee(vt){return vt&&Pr(vt.canLoad)}(Nn)?Nn.canLoad(yt,pt):vt.runInContext(()=>Nn(yt,pt)))});return(0,v.of)(De).pipe(qr(),sl())}(yt,pt,Yt).pipe((0,zt.zg)(ie=>ie?this.configLoader.loadChildren(yt,pt).pipe((0,Tt.b)(De=>{pt._loadedRoutes=De.routes,pt._loadedInjector=De.injector})):function pi(vt){return(0,D._)(Ds(Us,3))}())):(0,v.of)({routes:[],injector:yt})}lineralizeSegments(yt,pt){let Yt=[],ie=pt.root;for(;;){if(Yt=Yt.concat(ie.segments),0===ie.numberOfChildren)return(0,v.of)(Yt);if(ie.numberOfChildren>1||!ie.children[Pe])return(0,D._)(new d.vHH(4e3,Us));ie=ie.children[Pe]}}applyRedirectCommands(yt,pt,Yt){return this.applyRedirectCreateUrlTree(pt,this.urlSerializer.parse(pt),yt,Yt)}applyRedirectCreateUrlTree(yt,pt,Yt,ie){const De=this.createSegmentGroup(yt,pt.root,Yt,ie);return new ho(De,this.createQueryParams(pt.queryParams,this.urlTree.queryParams),pt.fragment)}createQueryParams(yt,pt){const Yt={};return Ke(yt,(ie,De)=>{if("string"==typeof ie&&ie.startsWith(":")){const Nn=ie.substring(1);Yt[De]=pt[Nn]}else Yt[De]=ie}),Yt}createSegmentGroup(yt,pt,Yt,ie){const De=this.createSegments(yt,pt.segments,Yt,ie);let Un={};return Ke(pt.children,(Nn,Ii)=>{Un[Ii]=this.createSegmentGroup(yt,Nn,Yt,ie)}),new fi(De,Un)}createSegments(yt,pt,Yt,ie){return pt.map(De=>De.path.startsWith(":")?this.findPosParam(yt,De,ie):this.findOrReturn(De,Yt))}findPosParam(yt,pt,Yt){const ie=Yt[pt.path.substring(1)];if(!ie)throw new d.vHH(4001,Us);return ie}findOrReturn(yt,pt){let Yt=0;for(const ie of pt){if(ie.path===yt.path)return pt.splice(Yt),ie;Yt++}return yt}}class nr{}class ge{constructor(yt,pt,Yt,ie,De,Un,Nn,Ii){this.injector=yt,this.rootComponentType=pt,this.config=Yt,this.urlTree=ie,this.url=De,this.paramsInheritanceStrategy=Un,this.relativeLinkResolution=Nn,this.urlSerializer=Ii}recognize(){const yt=Yi(this.urlTree.root,[],[],this.config.filter(pt=>void 0===pt.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,yt,Pe).pipe((0,at.U)(pt=>{if(null===pt)return null;const Yt=new jc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Pe,this.rootComponentType,null,this.urlTree.root,-1,{}),ie=new Vc(Yt,pt),De=new ks(this.url,ie);return this.inheritParamsAndData(De._root),De}))}inheritParamsAndData(yt){const pt=yt.value,Yt=Tl(pt,this.paramsInheritanceStrategy);pt.params=Object.freeze(Yt.params),pt.data=Object.freeze(Yt.data),yt.children.forEach(ie=>this.inheritParamsAndData(ie))}processSegmentGroup(yt,pt,Yt,ie){return 0===Yt.segments.length&&Yt.hasChildren()?this.processChildren(yt,pt,Yt):this.processSegment(yt,pt,Yt,Yt.segments,ie)}processChildren(yt,pt,Yt){return(0,p.D)(Object.keys(Yt.children)).pipe((0,nt.b)(ie=>{const De=Yt.children[ie],Un=aa(pt,ie);return this.processSegmentGroup(yt,Un,De,ie)}),Et((ie,De)=>ie&&De?(ie.push(...De),ie):null),(0,we.o)(ie=>null!==ie),(0,qe.d)(null),Xt(),(0,at.U)(ie=>{if(null===ie)return null;const De=fd(ie);return function Au(vt){vt.sort((yt,pt)=>yt.value.outlet===Pe?-1:pt.value.outlet===Pe?1:yt.value.outlet.localeCompare(pt.value.outlet))}(De),De}))}processSegment(yt,pt,Yt,ie,De){return(0,p.D)(pt).pipe((0,nt.b)(Un=>this.processSegmentAgainstRoute(Un._injector??yt,Un,Yt,ie,De)),(0,Vt.P)(Un=>!!Un),(0,At.K)(Un=>{if(Ec(Un))return Rr(Yt,ie,De)?(0,v.of)([]):(0,v.of)(null);throw Un}))}processSegmentAgainstRoute(yt,pt,Yt,ie,De){if(pt.redirectTo||!Ja(pt,Yt,ie,De))return(0,v.of)(null);let Un;if("**"===pt.path){const Nn=ie.length>0?bi(ie).parameters:{},Ii=Mt(Yt)+ie.length,Qi=new jc(ie,Nn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,jt(pt),Nr(pt),pt.component??pt._loadedComponent??null,pt,zu(Yt),Ii,Qe(pt),Ii);Un=(0,v.of)({snapshot:Qi,consumedSegments:[],remainingSegments:[]})}else Un=Ml(Yt,pt,ie,yt).pipe((0,at.U)(({matched:Nn,consumedSegments:Ii,remainingSegments:Qi,parameters:Fa})=>{if(!Nn)return null;const Ko=Mt(Yt)+Ii.length;return{snapshot:new jc(Ii,Fa,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,jt(pt),Nr(pt),pt.component??pt._loadedComponent??null,pt,zu(Yt),Ko,Qe(pt),Ko),consumedSegments:Ii,remainingSegments:Qi}}));return Un.pipe((0,lt.w)(Nn=>{if(null===Nn)return(0,v.of)(null);const{snapshot:Ii,consumedSegments:Qi,remainingSegments:Fa}=Nn;yt=pt._injector??yt;const Ko=pt._loadedInjector??yt,xr=function Ks(vt){return vt.children?vt.children:vt.loadChildren?vt._loadedRoutes:[]}(pt),{segmentGroup:zs,slicedSegments:Vu}=Yi(Yt,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,at.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=Nr(pt)===De;return this.processSegment(Ko,xr,zs,Vu,va?Pe:De).pipe((0,at.U)(Dl=>null===Dl?null:[new Vc(Ii,Dl)]))}))}}function Xi(vt){const yt=vt.value.routeConfig;return yt&&""===yt.path&&void 0===yt.redirectTo}function fd(vt){const yt=[],pt=new Set;for(const Yt of vt){if(!Xi(Yt)){yt.push(Yt);continue}const ie=yt.find(De=>Yt.value.routeConfig===De.value.routeConfig);void 0!==ie?(ie.children.push(...Yt.children),pt.add(ie)):yt.push(Yt)}for(const Yt of pt){const ie=fd(Yt.children);yt.push(new Vc(Yt.value,ie))}return yt.filter(Yt=>!pt.has(Yt))}function zu(vt){let yt=vt;for(;yt._sourceSegment;)yt=yt._sourceSegment;return yt}function Mt(vt){let yt=vt,pt=yt._segmentIndexShift??0;for(;yt._sourceSegment;)yt=yt._sourceSegment,pt+=yt._segmentIndexShift??0;return pt-1}function jt(vt){return vt.data||{}}function Qe(vt){return vt.resolve||{}}function Gn(vt){return"string"==typeof vt.title||null===vt.title}function Qn(vt){return(0,lt.w)(yt=>{const pt=vt(yt);return pt?(0,p.D)(pt).pipe((0,at.U)(()=>yt)):(0,v.of)(yt)})}let yi=(()=>{class vt{buildTitle(pt){let Yt,ie=pt.root;for(;void 0!==ie;)Yt=this.getResolvedTitleForRoute(ie)??Yt,ie=ie.children.find(De=>De.outlet===Pe);return Yt}getResolvedTitleForRoute(pt){return pt.data[on]}}return vt.\u0275fac=function(pt){return new(pt||vt)},vt.\u0275prov=d.Yz7({token:vt,factory:function(){return(0,d.f3M)(Ti)},providedIn:"root"}),vt})(),Ti=(()=>{class vt extends yi{constructor(pt){super(),this.title=pt}updateTitle(pt){const Yt=this.buildTitle(pt);void 0!==Yt&&this.title.setTitle(Yt)}}return vt.\u0275fac=function(pt){return new(pt||vt)(d.LFG(re.Dx))},vt.\u0275prov=d.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();class xo{}class ga extends class yo{shouldDetach(yt){return!1}store(yt,pt){}shouldAttach(yt){return!1}retrieve(yt){return null}shouldReuseRoute(yt,pt){return yt.routeConfig===pt.routeConfig}}{}const fa=new d.OlP("",{providedIn:"root",factory:()=>({})}),Hs=new d.OlP("ROUTES");let ns=(()=>{class vt{constructor(pt,Yt){this.injector=pt,this.compiler=Yt,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 Yt=ne(pt.loadComponent()).pipe((0,Tt.b)(De=>{this.onLoadEndListener&&this.onLoadEndListener(pt),pt._loadedComponent=De}),(0,Kt.x)(()=>{this.componentLoaders.delete(pt)})),ie=new z.c(Yt,()=>new G.xQ).pipe((0,de.x)());return this.componentLoaders.set(pt,ie),ie}loadChildren(pt,Yt){if(this.childrenLoaders.get(Yt))return this.childrenLoaders.get(Yt);if(Yt._loadedRoutes)return(0,v.of)({routes:Yt._loadedRoutes,injector:Yt._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Yt);const De=this.loadModuleFactoryOrRoutes(Yt.loadChildren).pipe((0,at.U)(Nn=>{this.onLoadEndListener&&this.onLoadEndListener(Yt);let Ii,Qi,Fa=!1;Array.isArray(Nn)?Qi=Nn:(Ii=Nn.create(pt).injector,Qi=oi(Ii.get(Hs,[],d.XFs.Self|d.XFs.Optional)));return{routes:Qi.map(Ws),injector:Ii}}),(0,Kt.x)(()=>{this.childrenLoaders.delete(Yt)})),Un=new z.c(De,()=>new G.xQ).pipe((0,de.x)());return this.childrenLoaders.set(Yt,Un),Un}loadModuleFactoryOrRoutes(pt){return ne(pt()).pipe((0,zt.zg)(Yt=>Yt instanceof d.YKP||Array.isArray(Yt)?(0,v.of)(Yt):(0,p.D)(this.compiler.compileModuleAsync(Yt))))}}return vt.\u0275fac=function(pt){return new(pt||vt)(d.LFG(d.zs3),d.LFG(d.Sil))},vt.\u0275prov=d.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();class is{}class ds{shouldProcessUrl(yt){return!0}extract(yt){return yt}merge(yt,pt){return yt}}function Xs(vt){throw vt}function Nc(vt,yt,pt){return yt.parse("/")}const os={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Rd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function lr(){const vt=(0,d.f3M)(ze),yt=(0,d.f3M)(Cc),pt=(0,d.f3M)(K.Ye),Yt=(0,d.f3M)(d.zs3),ie=(0,d.f3M)(d.Sil),De=(0,d.f3M)(Hs,{optional:!0})??[],Un=(0,d.f3M)(fa,{optional:!0})??{},Nn=(0,d.f3M)(Ti),Ii=(0,d.f3M)(yi,{optional:!0}),Qi=(0,d.f3M)(is,{optional:!0}),Fa=(0,d.f3M)(xo,{optional:!0}),Ko=new As(null,vt,yt,pt,Yt,ie,oi(De));return Qi&&(Ko.urlHandlingStrategy=Qi),Fa&&(Ko.routeReuseStrategy=Fa),Ko.titleStrategy=Ii??Nn,function cr(vt,yt){vt.errorHandler&&(yt.errorHandler=vt.errorHandler),vt.malformedUriErrorHandler&&(yt.malformedUriErrorHandler=vt.malformedUriErrorHandler),vt.onSameUrlNavigation&&(yt.onSameUrlNavigation=vt.onSameUrlNavigation),vt.paramsInheritanceStrategy&&(yt.paramsInheritanceStrategy=vt.paramsInheritanceStrategy),vt.relativeLinkResolution&&(yt.relativeLinkResolution=vt.relativeLinkResolution),vt.urlUpdateStrategy&&(yt.urlUpdateStrategy=vt.urlUpdateStrategy),vt.canceledNavigationResolution&&(yt.canceledNavigationResolution=vt.canceledNavigationResolution)}(Un,Ko),Ko}let As=(()=>{class vt{constructor(pt,Yt,ie,De,Un,Nn,Ii){this.rootComponentType=pt,this.urlSerializer=Yt,this.rootContexts=ie,this.location=De,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=Nc,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,v.of)(void 0),this.urlHandlingStrategy=new ds,this.routeReuseStrategy=new ga,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=Un.get(ns),this.configLoader.onLoadEndListener=xr=>this.triggerEvent(new _1(xr)),this.configLoader.onLoadStartListener=xr=>this.triggerEvent(new Fs(xr)),this.ngModule=Un.get(d.h0i),this.console=Un.get(d.c2e);const Ko=Un.get(d.R0b);this.isNgZoneEnabled=Ko instanceof d.R0b&&d.R0b.isInAngularZone(),this.resetConfig(Ii),this.currentUrlTree=function it(){return new ho(new fi([],{}),{},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 Yt=this.events;return pt.pipe((0,Dt.h)(ie=>0!==ie.id),(0,at.U)(ie=>({...ie,extractedUrl:this.urlHandlingStrategy.extract(ie.rawUrl)})),(0,lt.w)(ie=>{let De=!1,Un=!1;return(0,v.of)(ie).pipe((0,Tt.b)(Nn=>{this.currentNavigation={id:Nn.id,initialUrl:Nn.rawUrl,extractedUrl:Nn.extractedUrl,trigger:Nn.source,extras:Nn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,lt.w)(Nn=>{const Ii=this.browserUrlTree.toString(),Qi=!this.navigated||Nn.extractedUrl.toString()!==Ii||Ii!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Qi)&&this.urlHandlingStrategy.shouldProcessUrl(Nn.rawUrl))return jp(Nn.source)&&(this.browserUrlTree=Nn.extractedUrl),(0,v.of)(Nn).pipe((0,lt.w)(Ko=>{const xr=this.transitions.getValue();return Yt.next(new Gr(Ko.id,this.serializeUrl(Ko.extractedUrl),Ko.source,Ko.restoredState)),xr!==this.transitions.getValue()?I.E:Promise.resolve(Ko)}),function So(vt,yt,pt,Yt){return(0,lt.w)(ie=>function Di(vt,yt,pt,Yt,ie){return new Pi(vt,yt,pt,Yt,ie).apply()}(vt,yt,pt,ie.extractedUrl,Yt).pipe((0,at.U)(De=>({...ie,urlAfterRedirects:De}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Tt.b)(Ko=>{this.currentNavigation={...this.currentNavigation,finalUrl:Ko.urlAfterRedirects},ie.urlAfterRedirects=Ko.urlAfterRedirects}),function On(vt,yt,pt,Yt,ie,De){return(0,zt.zg)(Un=>function Ve(vt,yt,pt,Yt,ie,De,Un="emptyOnly",Nn="legacy"){return new ge(vt,yt,pt,Yt,ie,Un,Nn,De).recognize().pipe((0,lt.w)(Ii=>null===Ii?function hn(vt){return new P.y(yt=>yt.error(vt))}(new nr):(0,v.of)(Ii)))}(vt,yt,pt,Un.urlAfterRedirects,Yt.serialize(Un.urlAfterRedirects),Yt,ie,De).pipe((0,at.U)(Nn=>({...Un,targetSnapshot:Nn}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Tt.b)(Ko=>{if(ie.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);Yt.next(xr)}));if(Qi&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:xr,extractedUrl:zs,source:Vu,restoredState:va,extras:Dl}=Nn,$o=new Gr(xr,this.serializeUrl(zs),Vu,va);Yt.next($o);const Zn=md(zs,this.rootComponentType).snapshot;return ie={...Nn,targetSnapshot:Zn,urlAfterRedirects:zs,extras:{...Dl,skipLocationChange:!1,replaceUrl:!1}},(0,v.of)(ie)}return this.rawUrlTree=Nn.rawUrl,Nn.resolve(null),I.E}),(0,Tt.b)(Nn=>{const Ii=new Ns(Nn.id,this.serializeUrl(Nn.extractedUrl),this.serializeUrl(Nn.urlAfterRedirects),Nn.targetSnapshot);this.triggerEvent(Ii)}),(0,at.U)(Nn=>ie={...Nn,guards:yc(Nn.targetSnapshot,Nn.currentSnapshot,this.rootContexts)}),function Ru(vt,yt){return(0,zt.zg)(pt=>{const{targetSnapshot:Yt,currentSnapshot:ie,guards:{canActivateChecks:De,canDeactivateChecks:Un}}=pt;return 0===Un.length&&0===De.length?(0,v.of)({...pt,guardsResult:!0}):function er(vt,yt,pt,Yt){return(0,p.D)(vt).pipe((0,zt.zg)(ie=>function ru(vt,yt,pt,Yt,ie){const De=yt&&yt.routeConfig?yt.routeConfig.canDeactivate:null;if(!De||0===De.length)return(0,v.of)(!0);const Un=De.map(Nn=>{const Ii=uc(yt)??ie,Qi=vu(Nn,Ii);return ne(function ki(vt){return vt&&Pr(vt.canDeactivate)}(Qi)?Qi.canDeactivate(vt,yt,pt,Yt):Ii.runInContext(()=>Qi(vt,yt,pt,Yt))).pipe((0,Vt.P)())});return(0,v.of)(Un).pipe(qr())}(ie.component,ie.route,pt,yt,Yt)),(0,Vt.P)(ie=>!0!==ie,!0))}(Un,Yt,ie,vt).pipe((0,zt.zg)(Nn=>Nn&&function pe(vt){return"boolean"==typeof vt}(Nn)?function Ul(vt,yt,pt,Yt){return(0,p.D)(yt).pipe((0,nt.b)(ie=>(0,C.z)(function Hu(vt,yt){return null!==vt&&yt&&yt(new hr(vt)),(0,v.of)(!0)}(ie.route.parent,Yt),function au(vt,yt){return null!==vt&&yt&&yt(new f1(vt)),(0,v.of)(!0)}(ie.route,Yt),function h1(vt,yt,pt){const Yt=yt[yt.length-1],De=yt.slice(0,yt.length-1).reverse().map(Un=>function qd(vt){const yt=vt.routeConfig?vt.routeConfig.canActivateChild:null;return yt&&0!==yt.length?{node:vt,guards:yt}:null}(Un)).filter(Un=>null!==Un).map(Un=>(0,U.P)(()=>{const Nn=Un.guards.map(Ii=>{const Qi=uc(Un.node)??pt,Fa=vu(Ii,Qi);return ne(function rt(vt){return vt&&Pr(vt.canActivateChild)}(Fa)?Fa.canActivateChild(Yt,vt):Qi.runInContext(()=>Fa(Yt,vt))).pipe((0,Vt.P)())});return(0,v.of)(Nn).pipe(qr())}));return(0,v.of)(De).pipe(qr())}(vt,ie.path,pt),function Vp(vt,yt,pt){const Yt=yt.routeConfig?yt.routeConfig.canActivate:null;if(!Yt||0===Yt.length)return(0,v.of)(!0);const ie=Yt.map(De=>(0,U.P)(()=>{const Un=uc(yt)??pt,Nn=vu(De,Un);return ne(function qt(vt){return vt&&Pr(vt.canActivate)}(Nn)?Nn.canActivate(yt,vt):Un.runInContext(()=>Nn(yt,vt))).pipe((0,Vt.P)())}));return(0,v.of)(ie).pipe(qr())}(vt,ie.route,pt))),(0,Vt.P)(ie=>!0!==ie,!0))}(Yt,De,vt,yt):(0,v.of)(Nn)),(0,at.U)(Nn=>({...pt,guardsResult:Nn})))})}(this.ngModule.injector,Nn=>this.triggerEvent(Nn)),(0,Tt.b)(Nn=>{if(ie.guardsResult=Nn.guardsResult,Fo(Nn.guardsResult))throw wl(0,Nn.guardsResult);const Ii=new Lc(Nn.id,this.serializeUrl(Nn.extractedUrl),this.serializeUrl(Nn.urlAfterRedirects),Nn.targetSnapshot,!!Nn.guardsResult);this.triggerEvent(Ii)}),(0,Dt.h)(Nn=>!!Nn.guardsResult||(this.restoreHistory(Nn),this.cancelNavigationTransition(Nn,"",3),!1)),Qn(Nn=>{if(Nn.guards.canActivateChecks.length)return(0,v.of)(Nn).pipe((0,Tt.b)(Ii=>{const Qi=new xl(Ii.id,this.serializeUrl(Ii.extractedUrl),this.serializeUrl(Ii.urlAfterRedirects),Ii.targetSnapshot);this.triggerEvent(Qi)}),(0,lt.w)(Ii=>{let Qi=!1;return(0,v.of)(Ii).pipe(function Nt(vt,yt){return(0,zt.zg)(pt=>{const{targetSnapshot:Yt,guards:{canActivateChecks:ie}}=pt;if(!ie.length)return(0,v.of)(pt);let De=0;return(0,p.D)(ie).pipe((0,nt.b)(Un=>function ce(vt,yt,pt,Yt){const ie=vt.routeConfig,De=vt._resolve;return void 0!==ie?.title&&!Gn(ie)&&(De[on]=ie.title),function Me(vt,yt,pt,Yt){const ie=function tn(vt){return[...Object.keys(vt),...Object.getOwnPropertySymbols(vt)]}(vt);if(0===ie.length)return(0,v.of)({});const De={};return(0,p.D)(ie).pipe((0,zt.zg)(Un=>function vn(vt,yt,pt,Yt){const ie=uc(yt)??Yt,De=vu(vt,ie);return ne(De.resolve?De.resolve(yt,pt):ie.runInContext(()=>De(yt,pt)))}(vt[Un],yt,pt,Yt).pipe((0,Vt.P)(),(0,Tt.b)(Nn=>{De[Un]=Nn}))),Jt(1),(0,ae.h)(De),(0,At.K)(Un=>Ec(Un)?I.E:(0,D._)(Un)))}(De,vt,yt,Yt).pipe((0,at.U)(Un=>(vt._resolvedData=Un,vt.data=Tl(vt,pt).resolve,ie&&Gn(ie)&&(vt.data[on]=ie.title),null)))}(Un.route,Yt,vt,yt)),(0,Tt.b)(()=>De++),Jt(1),(0,zt.zg)(Un=>De===ie.length?(0,v.of)(pt):I.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Tt.b)({next:()=>Qi=!0,complete:()=>{Qi||(this.restoreHistory(Ii),this.cancelNavigationTransition(Ii,"",2))}}))}),(0,Tt.b)(Ii=>{const Qi=new Qr(Ii.id,this.serializeUrl(Ii.extractedUrl),this.serializeUrl(Ii.urlAfterRedirects),Ii.targetSnapshot);this.triggerEvent(Qi)}))}),Qn(Nn=>{const Ii=Qi=>{const Fa=[];Qi.routeConfig?.loadComponent&&!Qi.routeConfig._loadedComponent&&Fa.push(this.configLoader.loadComponent(Qi.routeConfig).pipe((0,Tt.b)(Ko=>{Qi.component=Ko}),(0,at.U)(()=>{})));for(const Ko of Qi.children)Fa.push(...Ii(Ko));return Fa};return(0,A.aj)(Ii(Nn.targetSnapshot.root)).pipe((0,qe.d)(),(0,bt.q)(1))}),Qn(()=>this.afterPreactivation()),(0,at.U)(Nn=>{const Ii=function rr(vt,yt,pt){const Yt=cc(vt,yt._root,pt?pt._root:void 0);return new yl(Yt,yt)}(this.routeReuseStrategy,Nn.targetSnapshot,Nn.currentRouterState);return ie={...Nn,targetRouterState:Ii}}),(0,Tt.b)(Nn=>{this.currentUrlTree=Nn.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Nn.urlAfterRedirects,Nn.rawUrl),this.routerState=Nn.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Nn.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Nn),this.browserUrlTree=Nn.urlAfterRedirects)}),((vt,yt,pt)=>(0,at.U)(Yt=>(new Vr(yt,Yt.targetRouterState,Yt.currentRouterState,pt).activate(vt),Yt)))(this.rootContexts,this.routeReuseStrategy,Nn=>this.triggerEvent(Nn)),(0,Tt.b)({next(){De=!0},complete(){De=!0}}),(0,Kt.x)(()=>{De||Un||this.cancelNavigationTransition(ie,"",1),this.currentNavigation?.id===ie.id&&(this.currentNavigation=null)}),(0,At.K)(Nn=>{if(Un=!0,bu(Nn)){Jc(Nn)||(this.navigated=!0,this.restoreHistory(ie,!0));const Ii=new Pc(ie.id,this.serializeUrl(ie.extractedUrl),Nn.message,Nn.cancellationCode);if(Yt.next(Ii),Jc(Nn)){const Qi=this.urlHandlingStrategy.merge(Nn.url,this.rawUrlTree),Fa={skipLocationChange:ie.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jp(ie.source)};this.scheduleNavigation(Qi,"imperative",null,Fa,{resolve:ie.resolve,reject:ie.reject,promise:ie.promise})}else ie.resolve(!1)}else{this.restoreHistory(ie,!0);const Ii=new al(ie.id,this.serializeUrl(ie.extractedUrl),Nn,ie.targetSnapshot??void 0);Yt.next(Ii);try{ie.resolve(this.errorHandler(Nn))}catch(Qi){ie.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 Yt="popstate"===pt.type?"popstate":"hashchange";"popstate"===Yt&&setTimeout(()=>{const ie={replaceUrl:!0},De=pt.state?.navigationId?pt.state:null;if(De){const Nn={...De};delete Nn.navigationId,delete Nn.\u0275routerPageId,0!==Object.keys(Nn).length&&(ie.state=Nn)}const Un=this.parseUrl(pt.url);this.scheduleNavigation(Un,Yt,De,ie)},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,Yt={}){const{relativeTo:ie,queryParams:De,fragment:Un,queryParamsHandling:Nn,preserveFragment:Ii}=Yt,Qi=ie||this.routerState.root,Fa=Ii?this.currentUrlTree.fragment:Un;let Ko=null;switch(Nn){case"merge":Ko={...this.currentUrlTree.queryParams,...De};break;case"preserve":Ko=this.currentUrlTree.queryParams;break;default:Ko=De||null}return null!==Ko&&(Ko=this.removeEmptyProps(Ko)),In(Qi,this.currentUrlTree,pt,Ko,Fa??null)}navigateByUrl(pt,Yt={skipLocationChange:!1}){const ie=Fo(pt)?pt:this.parseUrl(pt),De=this.urlHandlingStrategy.merge(ie,this.rawUrlTree);return this.scheduleNavigation(De,"imperative",null,Yt)}navigate(pt,Yt={skipLocationChange:!1}){return function b_(vt){for(let yt=0;yt{const De=pt[ie];return null!=De&&(Yt[ie]=De),Yt},{})}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,Yt,ie,De,Un){if(this.disposed)return Promise.resolve(!1);let Nn,Ii,Qi;Un?(Nn=Un.resolve,Ii=Un.reject,Qi=Un.promise):Qi=new Promise((xr,zs)=>{Nn=xr,Ii=zs});const Fa=++this.navigationId;let Ko;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ie=this.location.getState()),Ko=ie&&ie.\u0275routerPageId?ie.\u0275routerPageId:De.replaceUrl||De.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):Ko=0,this.setTransition({id:Fa,targetPageId:Ko,source:Yt,restoredState:ie,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:pt,extras:De,resolve:Nn,reject:Ii,promise:Qi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Qi.catch(xr=>Promise.reject(xr))}setBrowserUrl(pt,Yt){const ie=this.urlSerializer.serialize(pt),De={...Yt.extras.state,...this.generateNgRouterState(Yt.id,Yt.targetPageId)};this.location.isCurrentPathEqualTo(ie)||Yt.extras.replaceUrl?this.location.replaceState(ie,"",De):this.location.go(ie,"",De)}restoreHistory(pt,Yt=!1){if("computed"===this.canceledNavigationResolution){const ie=this.currentPageId-pt.targetPageId;"popstate"!==pt.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===ie?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===ie&&(this.resetState(pt),this.browserUrlTree=pt.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ie)}else"replace"===this.canceledNavigationResolution&&(Yt&&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,Yt,ie){const De=new Pc(pt.id,this.serializeUrl(pt.extractedUrl),Yt,ie);this.triggerEvent(De),pt.resolve(!1)}generateNgRouterState(pt,Yt){return"computed"===this.canceledNavigationResolution?{navigationId:pt,\u0275routerPageId:Yt}:{navigationId:pt}}}return vt.\u0275fac=function(pt){d.$Z()},vt.\u0275prov=d.Yz7({token:vt,factory:function(){return lr()},providedIn:"root"}),vt})();function jp(vt){return"imperative"!==vt}let Ka=(()=>{class vt{constructor(pt,Yt,ie,De,Un){this.router=pt,this.route=Yt,this.tabIndexAttribute=ie,this.renderer=De,this.el=Un,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 Yt=this.renderer,ie=this.el.nativeElement;null!==pt?Yt.setAttribute(ie,"tabindex",pt):Yt.removeAttribute(ie,"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 vt.\u0275fac=function(pt){return new(pt||vt)(d.Y36(As),d.Y36(Js),d.$8M("tabindex"),d.Y36(d.Qsj),d.Y36(d.SBq))},vt.\u0275dir=d.lG2({type:vt,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(pt,Yt){1&pt&&d.NdJ("click",function(){return Yt.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]}),vt})(),cu=(()=>{class vt{constructor(pt,Yt,ie){this.router=pt,this.route=Yt,this.locationStrategy=ie,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(De=>{De 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,Yt,ie,De,Un){return!!(0!==pt||Yt||ie||De||Un||"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 vt.\u0275fac=function(pt){return new(pt||vt)(d.Y36(As),d.Y36(Js),d.Y36(K.S$))},vt.\u0275dir=d.lG2({type:vt,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(pt,Yt){1&pt&&d.NdJ("click",function(De){return Yt.onClick(De.button,De.ctrlKey,De.shiftKey,De.altKey,De.metaKey)}),2&pt&&d.uIk("target",Yt.target)("href",Yt.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]}),vt})(),Tc=(()=>{class vt{constructor(pt,Yt,ie,De,Un,Nn){this.router=pt,this.element=Yt,this.renderer=ie,this.cdr=De,this.link=Un,this.linkWithHref=Nn,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,Wt.J)()).subscribe(pt=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const pt=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(Yt=>!!Yt).map(Yt=>Yt.onChanges);this.linkInputChangesSubscription=(0,p.D)(pt).pipe((0,Wt.J)()).subscribe(Yt=>{this.isActive!==this.isLinkActive(this.router)(Yt)&&this.update()})}set routerLinkActive(pt){const Yt=Array.isArray(pt)?pt:pt.split(" ");this.classes=Yt.filter(ie=>!!ie)}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(Yt=>{pt?this.renderer.addClass(this.element.nativeElement,Yt):this.renderer.removeClass(this.element.nativeElement,Yt)}),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 Yt=function tc(vt){return!!vt.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ie=>!!ie.urlTree&&pt.isActive(ie.urlTree,Yt)}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 vt.\u0275fac=function(pt){return new(pt||vt)(d.Y36(As),d.Y36(d.SBq),d.Y36(d.Qsj),d.Y36(d.sBO),d.Y36(Ka,8),d.Y36(cu,8))},vt.\u0275dir=d.lG2({type:vt,selectors:[["","routerLinkActive",""]],contentQueries:function(pt,Yt,ie){if(1&pt&&(d.Suo(ie,Ka,5),d.Suo(ie,cu,5)),2&pt){let De;d.iGM(De=d.CRH())&&(Yt.links=De),d.iGM(De=d.CRH())&&(Yt.linksWithHrefs=De)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[d.TTD]}),vt})();class yu{}let Hd=(()=>{class vt{constructor(pt,Yt,ie,De,Un){this.router=pt,this.injector=ie,this.preloadingStrategy=De,this.loader=Un}setUpPreloading(){this.subscription=this.router.events.pipe((0,Dt.h)(pt=>pt instanceof Ir),(0,nt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(pt,Yt){const ie=[];for(const De of Yt){De.providers&&!De._injector&&(De._injector=(0,d.MMx)(De.providers,pt,`Route: ${De.path}`));const Un=De._injector??pt,Nn=De._loadedInjector??Un;De.loadChildren&&!De._loadedRoutes&&void 0===De.canLoad||De.loadComponent&&!De._loadedComponent?ie.push(this.preloadConfig(Un,De)):(De.children||De._loadedRoutes)&&ie.push(this.processRoutes(Nn,De.children??De._loadedRoutes))}return(0,p.D)(ie).pipe((0,Wt.J)())}preloadConfig(pt,Yt){return this.preloadingStrategy.preload(Yt,()=>{let ie;ie=Yt.loadChildren&&void 0===Yt.canLoad?this.loader.loadChildren(pt,Yt):(0,v.of)(null);const De=ie.pipe((0,zt.zg)(Un=>null===Un?(0,v.of)(void 0):(Yt._loadedRoutes=Un.routes,Yt._loadedInjector=Un.injector,this.processRoutes(Un.injector??pt,Un.routes))));if(Yt.loadComponent&&!Yt._loadedComponent){const Un=this.loader.loadComponent(Yt);return(0,p.D)([De,Un]).pipe((0,Wt.J)())}return De})}}return vt.\u0275fac=function(pt){return new(pt||vt)(d.LFG(As),d.LFG(d.Sil),d.LFG(d.lqb),d.LFG(yu),d.LFG(ns))},vt.\u0275prov=d.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();const jl=new d.OlP("");let Yu=(()=>{class vt{constructor(pt,Yt,ie={}){this.router=pt,this.viewportScroller=Yt,this.options=ie,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ie.scrollPositionRestoration=ie.scrollPositionRestoration||"disabled",ie.anchorScrolling=ie.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,Yt){this.router.triggerEvent(new Cl(pt,"popstate"===this.lastSource?this.store[this.restoredId]:null,Yt))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return vt.\u0275fac=function(pt){d.$Z()},vt.\u0275prov=d.Yz7({token:vt,factory:vt.\u0275fac}),vt})();function rs(vt,yt){return{\u0275kind:vt,\u0275providers:yt}}function $c(vt){return[{provide:Hs,multi:!0,useValue:vt}]}function wr(){const vt=(0,d.f3M)(d.zs3);return yt=>{const pt=vt.get(d.z2F);if(yt!==pt.components[0])return;const Yt=vt.get(As),ie=vt.get(cn);1===vt.get(hd)&&Yt.initialNavigation(),vt.get(E1,null,d.XFs.Optional)?.setUpPreloading(),vt.get(jl,null,d.XFs.Optional)?.init(),Yt.resetRootComponentType(pt.componentTypes[0]),ie.closed||(ie.next(),ie.unsubscribe())}}const cn=new d.OlP("",{factory:()=>new G.xQ}),hd=new d.OlP("",{providedIn:"root",factory:()=>1});const E1=new d.OlP("");function No(vt){return rs(0,[{provide:E1,useExisting:Hd},{provide:yu,useExisting:vt}])}const Ur=new d.OlP("ROUTER_FORROOT_GUARD"),Bu=[K.Ye,{provide:ze,useClass:We},{provide:As,useFactory:lr},Cc,{provide:Js,useFactory:function as(vt){return vt.routerState.root},deps:[As]},ns];function wo(){return new d.PXZ("Router",As)}let v_=(()=>{class vt{constructor(pt){}static forRoot(pt,Yt){return{ngModule:vt,providers:[Bu,[],$c(pt),{provide:Ur,useFactory:x_,deps:[[As,new d.FiY,new d.tp0]]},{provide:fa,useValue:Yt||{}},Yt?.useHash?{provide:K.S$,useClass:K.Do}:{provide:K.S$,useClass:K.b0},{provide:jl,useFactory:()=>{const vt=(0,d.f3M)(As),yt=(0,d.f3M)(K.EM),pt=(0,d.f3M)(fa);return pt.scrollOffset&&yt.setOffset(pt.scrollOffset),new Yu(vt,yt,pt)}},Yt?.preloadingStrategy?No(Yt.preloadingStrategy).\u0275providers:[],{provide:d.PXZ,multi:!0,useFactory:wo},Yt?.initialNavigation?pp(Yt):[],[{provide:zd,useFactory:wr},{provide:d.tb,multi:!0,useExisting:zd}]]}}static forChild(pt){return{ngModule:vt,providers:[$c(pt)]}}}return vt.\u0275fac=function(pt){return new(pt||vt)(d.LFG(Ur,8))},vt.\u0275mod=d.oAB({type:vt}),vt.\u0275inj=d.cJS({imports:[Ac]}),vt})();function x_(vt){return"guarded"}function pp(vt){return["disabled"===vt.initialNavigation?rs(3,[{provide:d.ip1,multi:!0,useFactory:()=>{const yt=(0,d.f3M)(As);return()=>{yt.setUpLocationChangeListener()}}},{provide:hd,useValue:2}]).\u0275providers:[],"enabledBlocking"===vt.initialNavigation?rs(2,[{provide:hd,useValue:0},{provide:d.ip1,multi:!0,deps:[d.zs3],useFactory:yt=>{const pt=yt.get(K.V_,Promise.resolve());let Yt=!1;return()=>pt.then(()=>new Promise(De=>{const Un=yt.get(As),Nn=yt.get(cn);(function ie(De){yt.get(As).events.pipe((0,Dt.h)(Nn=>Nn instanceof Ir||Nn instanceof Pc||Nn instanceof al),(0,at.U)(Nn=>Nn instanceof Ir||Nn instanceof Pc&&(0===Nn.code||1===Nn.code)&&null),(0,Dt.h)(Nn=>null!==Nn),(0,bt.q)(1)).subscribe(()=>{De()})})(()=>{De(!0),Yt=!0}),Un.afterPreactivation=()=>(De(!0),Yt||Nn.closed?(0,v.of)(void 0):Nn),Un.initialNavigation()}))}}]).\u0275providers:[]]}const zd=new d.OlP("")},92216:(ot,et,b)=>{"use strict";b.d(et,{BN:()=>ts,by:()=>Ks,uH:()=>On});var d=b(94650);function p(Nt,ce){var Me=Object.keys(Nt);if(Object.getOwnPropertySymbols){var tn=Object.getOwnPropertySymbols(Nt);ce&&(tn=tn.filter(function(vn){return Object.getOwnPropertyDescriptor(Nt,vn).enumerable})),Me.push.apply(Me,tn)}return Me}function v(Nt){for(var ce=1;ceNt.length)&&(ce=Nt.length);for(var Me=0,tn=new Array(ce);Me0;)ce+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return ce}function Re(Nt){for(var ce=[],Me=(Nt||[]).length>>>0;Me--;)ce[Me]=Nt[Me];return ce}function En(Nt){return Nt.classList?Re(Nt.classList):(Nt.getAttribute("class")||"").split(" ").filter(function(ce){return ce})}function gi(Nt){return"".concat(Nt).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function _o(Nt){return Object.keys(Nt||{}).reduce(function(ce,Me){return ce+"".concat(Me,": ").concat(Nt[Me].trim(),";")},"")}function mn(Nt){return Nt.size!==Xe.size||Nt.x!==Xe.x||Nt.y!==Xe.y||Nt.rotate!==Xe.rotate||Nt.flipX||Nt.flipY}function Zi(){var ce=on,Me=Lt.cssPrefix,tn=Lt.replacementClass,vn=':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"!==Me||tn!==ce){var Gn=new RegExp("\\.".concat("fa","\\-"),"g"),Qn=new RegExp("\\--".concat("fa","\\-"),"g"),yi=new RegExp("\\.".concat(ce),"g");vn=vn.replace(Gn,".".concat(Me,"-")).replace(Qn,"--".concat(Me,"-")).replace(yi,".".concat(tn))}return vn}var vo=!1;function Fo(){Lt.autoAddCss&&!vo&&(function Fe(Nt){if(Nt&&qe){var ce=Jt.createElement("style");ce.setAttribute("type","text/css"),ce.innerHTML=Nt;for(var Me=Jt.head.childNodes,tn=null,vn=Me.length-1;vn>-1;vn--){var Gn=Me[vn],Qn=(Gn.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(Qn)>-1&&(tn=Gn)}Jt.head.insertBefore(ce,tn)}}(Zi()),vo=!0)}var ca={mixout:function(){return{dom:{css:Zi,insertCss:Fo}}},hooks:function(){return{beforeDOMElementCreation:function(){Fo()},beforeI2svg:function(){Fo()}}}},Ia=se||{};Ia[Wt]||(Ia[Wt]={}),Ia[Wt].styles||(Ia[Wt].styles={}),Ia[Wt].hooks||(Ia[Wt].hooks={}),Ia[Wt].shims||(Ia[Wt].shims=[]);var fr=Ia[Wt],Ge=[],He=!1;function ke(Nt){!qe||(He?setTimeout(Nt,0):Ge.push(Nt))}function dn(Nt){var ce=Nt.tag,Me=Nt.attributes,tn=void 0===Me?{}:Me,vn=Nt.children,Gn=void 0===vn?[]:vn;return"string"==typeof Nt?gi(Nt):"<".concat(ce," ").concat(function go(Nt){return Object.keys(Nt||{}).reduce(function(ce,Me){return ce+"".concat(Me,'="').concat(gi(Nt[Me]),'" ')},"").trim()}(tn),">").concat(Gn.map(dn).join(""),"")}function tt(Nt,ce,Me){if(Nt&&Nt[ce]&&Nt[ce][Me])return{prefix:ce,iconName:Me,icon:Nt[ce][Me]}}qe&&((He=(Jt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Jt.readyState))||Jt.addEventListener("DOMContentLoaded",function Nt(){Jt.removeEventListener("DOMContentLoaded",Nt),He=1,Ge.map(function(ce){return ce()})}));var Q=function(ce,Me,tn,vn){var Ti,bo,xo,Gn=Object.keys(ce),Qn=Gn.length,yi=void 0!==vn?function(ce,Me){return function(tn,vn,Gn,Qn){return ce.call(Me,tn,vn,Gn,Qn)}}(Me,vn):Me;for(void 0===tn?(Ti=1,xo=ce[Gn[0]]):(Ti=0,xo=tn);Ti=55296&&vn<=56319&&Me2&&void 0!==arguments[2]?arguments[2]:{},tn=Me.skipHooks,vn=void 0!==tn&&tn,Gn=Gi(ce);"function"!=typeof fr.hooks.addPack||vn?fr.styles[Nt]=v(v({},fr.styles[Nt]||{}),Gn):fr.hooks.addPack(Nt,Gi(ce)),"fas"===Nt&&Co("fa",ce)}var br,ls,ar,Er=fr.styles,bc=fr.shims,dr=(k(br={},Ke,Object.values(oe[Ke])),k(br,ne,Object.values(oe[ne])),br),Br=null,Gr={},Ir={},Pc={},al={},Sc={},Ns=(k(ls={},Ke,Object.keys(kt[Ke])),k(ls,ne,Object.keys(kt[ne])),ls);function xl(Nt,ce){var Me=ce.split("-"),tn=Me[0],vn=Me.slice(1).join("-");return tn!==Nt||""===vn||function Lc(Nt){return~Ye.indexOf(Nt)}(vn)?null:vn}var Qr=function(){var ce=function(Gn){return Q(Er,function(Qn,yi,Ti){return Qn[Ti]=Q(yi,Gn,{}),Qn},{})};Gr=ce(function(vn,Gn,Qn){return Gn[3]&&(vn[Gn[3]]=Qn),Gn[2]&&Gn[2].filter(function(Ti){return"number"==typeof Ti}).forEach(function(Ti){vn[Ti.toString(16)]=Qn}),vn}),Ir=ce(function(vn,Gn,Qn){return vn[Qn]=Qn,Gn[2]&&Gn[2].filter(function(Ti){return"string"==typeof Ti}).forEach(function(Ti){vn[Ti]=Qn}),vn}),Sc=ce(function(vn,Gn,Qn){var yi=Gn[2];return vn[Qn]=Qn,yi.forEach(function(Ti){vn[Ti]=Qn}),vn});var Me="far"in Er||Lt.autoFetchSvg,tn=Q(bc,function(vn,Gn){var Qn=Gn[0],yi=Gn[1],Ti=Gn[2];return"far"===yi&&!Me&&(yi="fas"),"string"==typeof Qn&&(vn.names[Qn]={prefix:yi,iconName:Ti}),"number"==typeof Qn&&(vn.unicodes[Qn.toString(16)]={prefix:yi,iconName:Ti}),vn},{names:{},unicodes:{}});Pc=tn.names,al=tn.unicodes,Br=Al(Lt.styleDefault,{family:Lt.familyDefault})};function Fs(Nt,ce){return(Gr[Nt]||{})[ce]}function hr(Nt,ce){return(Sc[Nt]||{})[ce]}function iu(Nt){return Pc[Nt]||{prefix:null,iconName:null}}function vc(){return Br}function Al(Nt){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Me=ce.family,tn=void 0===Me?Ke:Me,vn=kt[tn][Nt],Gn=Gt[tn][Nt]||Gt[tn][vn],Qn=Nt in fr.styles?Nt:null;return Gn||Qn||null}(function Ot(Nt){wt.push(Nt)})(function(Nt){Br=Al(Nt.styleDefault,{family:Lt.familyDefault})}),Qr();var Oc=(k(ar={},Ke,Object.keys(oe[Ke])),k(ar,ne,Object.keys(oe[ne])),ar);function Vs(Nt){var ce,Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},tn=Me.skipLookups,vn=void 0!==tn&&tn,Gn=(k(ce={},Ke,"".concat(Lt.cssPrefix,"-").concat(Ke)),k(ce,ne,"".concat(Lt.cssPrefix,"-").concat(ne)),ce),Qn=null,yi=Ke;(Nt.includes(Gn[Ke])||Nt.some(function(bo){return Oc[Ke].includes(bo)}))&&(yi=Ke),(Nt.includes(Gn[ne])||Nt.some(function(bo){return Oc[ne].includes(bo)}))&&(yi=ne);var Ti=Nt.reduce(function(bo,xo){var yo=xl(Lt.cssPrefix,xo);if(Er[xo]?(xo=dr[yi].includes(xo)?Ce[yi][xo]:xo,Qn=xo,bo.prefix=xo):Ns[yi].indexOf(xo)>-1?(Qn=xo,bo.prefix=Al(xo,{family:yi})):yo?bo.iconName=yo:xo!==Lt.replacementClass&&xo!==Gn[Ke]&&xo!==Gn[ne]&&bo.rest.push(xo),!vn&&bo.prefix&&bo.iconName){var ga="fa"===Qn?iu(bo.iconName):{},ra=hr(bo.prefix,bo.iconName);ga.prefix&&(Qn=null),bo.iconName=ga.iconName||ra||bo.iconName,bo.prefix=ga.prefix||bo.prefix,"far"===bo.prefix&&!Er.far&&Er.fas&&!Lt.autoFetchSvg&&(bo.prefix="fas")}return bo},{prefix:null,iconName:null,rest:[]});return(Nt.includes("fa-brands")||Nt.includes("fab"))&&(Ti.prefix="fab"),(Nt.includes("fa-duotone")||Nt.includes("fad"))&&(Ti.prefix="fad"),!Ti.prefix&&yi===ne&&(Er.fass||Lt.autoFetchSvg)&&(Ti.prefix="fass",Ti.iconName=hr(Ti.prefix,Ti.iconName)||Ti.iconName),("fa"===Ti.prefix||"fa"===Qn)&&(Ti.prefix=vc()||"fas"),Ti}var Bc=function(){function Nt(){(function A(Nt,ce){if(!(Nt instanceof ce))throw new TypeError("Cannot call a class as a function")})(this,Nt),this.definitions={}}return function U(Nt,ce,Me){ce&&C(Nt.prototype,ce),Me&&C(Nt,Me),Object.defineProperty(Nt,"prototype",{writable:!1})}(Nt,[{key:"add",value:function(){for(var Me=this,tn=arguments.length,vn=new Array(tn),Gn=0;Gn0&&xo.forEach(function(yo){"string"==typeof yo&&(Me[yi][yo]=bo)}),Me[yi][Ti]=bo}),Me}}]),Nt}(),Vc=[],js={},yl={},md=Object.keys(yl);function Js(Nt,ce){for(var Me=arguments.length,tn=new Array(Me>2?Me-2:0),vn=2;vn1?ce-1:0),tn=1;tn0&&void 0!==arguments[0]?arguments[0]:{};return qe?(Tl("beforeI2svg",ce),Gs("pseudoElements2svg",ce),Gs("i2svg",ce)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=ce.autoReplaceSvgRoot;!1===Lt.autoReplaceSvg&&(Lt.autoReplaceSvg=!0),Lt.observeMutations=!0,ke(function(){rr({autoReplaceSvgRoot:Me}),Tl("watch",ce)})}},qo={noAuto:function(){Lt.autoReplaceSvg=!1,Lt.observeMutations=!1,Tl("noAuto")},config:Lt,dom:ou,parse:{icon:function(ce){if(null===ce)return null;if("object"===T(ce)&&ce.prefix&&ce.iconName)return{prefix:ce.prefix,iconName:hr(ce.prefix,ce.iconName)||ce.iconName};if(Array.isArray(ce)&&2===ce.length){var Me=0===ce[1].indexOf("fa-")?ce[1].slice(3):ce[1],tn=Al(ce[0]);return{prefix:tn,iconName:hr(tn,Me)||Me}}if("string"==typeof ce&&(ce.indexOf("".concat(Lt.cssPrefix,"-"))>-1||ce.match(Ee))){var vn=Vs(ce.split(" "),{skipLookups:!0});return{prefix:vn.prefix||vc(),iconName:hr(vn.prefix,vn.iconName)||vn.iconName}}if("string"==typeof ce){var Gn=vc();return{prefix:Gn,iconName:hr(Gn,ce)||ce}}}},library:ks,findIconDefinition:jc,toHtml:dn},rr=function(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=ce.autoReplaceSvgRoot,tn=void 0===Me?Jt:Me;(Object.keys(fr.styles).length>0||Lt.autoFetchSvg)&&qe&&Lt.autoReplaceSvg&&qo.dom.i2svg({node:tn})};function cc(Nt,ce){return Object.defineProperty(Nt,"abstract",{get:ce}),Object.defineProperty(Nt,"html",{get:function(){return Nt.abstract.map(function(tn){return dn(tn)})}}),Object.defineProperty(Nt,"node",{get:function(){if(qe){var tn=Jt.createElement("div");return tn.innerHTML=Nt.html,tn.children}}}),Nt}function xc(Nt){var ce=Nt.icons,Me=ce.main,tn=ce.mask,vn=Nt.prefix,Gn=Nt.iconName,Qn=Nt.transform,yi=Nt.symbol,Ti=Nt.title,bo=Nt.maskId,xo=Nt.titleId,yo=Nt.extra,ga=Nt.watchable,ra=void 0!==ga&&ga,fa=tn.found?tn:Me,es=fa.width,Hs=fa.height,ns="fak"===vn,is=[Lt.replacementClass,Gn?"".concat(Lt.cssPrefix,"-").concat(Gn):""].filter(function(cr){return-1===yo.classes.indexOf(cr)}).filter(function(cr){return""!==cr||!!cr}).concat(yo.classes).join(" "),ds={children:[],attributes:v(v({},yo.attributes),{},{"data-prefix":vn,"data-icon":Gn,class:is,role:yo.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(es," ").concat(Hs)})},Hr=ns&&!~yo.classes.indexOf("fa-fw")?{width:"".concat(es/Hs*16*.0625,"em")}:{};ra&&(ds.attributes[_n]=""),Ti&&(ds.children.push({tag:"title",attributes:{id:ds.attributes["aria-labelledby"]||"title-".concat(xo||he())},children:[Ti]}),delete ds.attributes.title);var Xs=v(v({},ds),{},{prefix:vn,iconName:Gn,main:Me,mask:tn,maskId:bo,transform:Qn,symbol:yi,styles:v(v({},Hr),yo.styles)}),Nc=tn.found&&Me.found?Gs("generateAbstractMask",Xs)||{children:[],attributes:{}}:Gs("generateAbstractIcon",Xs)||{children:[],attributes:{}},Rd=Nc.attributes;return Xs.children=Nc.children,Xs.attributes=Rd,yi?function Yl(Nt){var Me=Nt.iconName,tn=Nt.children,vn=Nt.attributes,Gn=Nt.symbol,Qn=!0===Gn?"".concat(Nt.prefix,"-").concat(Lt.cssPrefix,"-").concat(Me):Gn;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:v(v({},vn),{},{id:Qn}),children:tn}]}]}(Xs):function qu(Nt){var ce=Nt.children,Me=Nt.main,tn=Nt.mask,vn=Nt.attributes,Gn=Nt.styles,Qn=Nt.transform;if(mn(Qn)&&Me.found&&!tn.found){var bo={x:Me.width/Me.height/2,y:.5};vn.style=_o(v(v({},Gn),{},{"transform-origin":"".concat(bo.x+Qn.x/16,"em ").concat(bo.y+Qn.y/16,"em")}))}return[{tag:"svg",attributes:vn,children:ce}]}(Xs)}function wl(Nt){var ce=Nt.content,Me=Nt.width,tn=Nt.height,vn=Nt.transform,Gn=Nt.title,Qn=Nt.extra,yi=Nt.watchable,Ti=void 0!==yi&&yi,bo=v(v(v({},Qn.attributes),Gn?{title:Gn}:{}),{},{class:Qn.classes.join(" ")});Ti&&(bo[_n]="");var xo=v({},Qn.styles);mn(vn)&&(xo.transform=function sn(Nt){var ce=Nt.transform,Me=Nt.width,vn=Nt.height,Gn=void 0===vn?16:vn,Qn=Nt.startCentered,yi=void 0!==Qn&&Qn,Ti="";return Ti+=yi&&$e?"translate(".concat(ce.x/16-(void 0===Me?16:Me)/2,"em, ").concat(ce.y/16-Gn/2,"em) "):yi?"translate(calc(-50% + ".concat(ce.x/16,"em), calc(-50% + ").concat(ce.y/16,"em)) "):"translate(".concat(ce.x/16,"em, ").concat(ce.y/16,"em) "),(Ti+="scale(".concat(ce.size/16*(ce.flipX?-1:1),", ").concat(ce.size/16*(ce.flipY?-1:1),") "))+"rotate(".concat(ce.rotate,"deg) ")}({transform:vn,startCentered:!0,width:Me,height:tn}),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:[ce]}),Gn&&ga.push({tag:"span",attributes:{class:"sr-only"},children:[Gn]}),ga}function Ds(Nt){var ce=Nt.content,Me=Nt.title,tn=Nt.extra,vn=v(v(v({},tn.attributes),Me?{title:Me}:{}),{},{class:tn.classes.join(" ")}),Gn=_o(tn.styles);Gn.length>0&&(vn.style=Gn);var Qn=[];return Qn.push({tag:"span",attributes:vn,children:[ce]}),Me&&Qn.push({tag:"span",attributes:{class:"sr-only"},children:[Me]}),Qn}var Jc=fr.styles;function bu(Nt){var ce=Nt[0],Me=Nt[1],Gn=I(Nt.slice(4),1)[0];return{found:!0,width:ce,height:Me,icon:Array.isArray(Gn)?{tag:"g",attributes:{class:"".concat(Lt.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(Lt.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:Gn[0]}},{tag:"path",attributes:{class:"".concat(Lt.cssPrefix,"-").concat("primary"),fill:"currentColor",d:Gn[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:Gn}}}}var Dr={found:!1,width:512,height:512};function Wa(Nt,ce){var Me=ce;return"fa"===ce&&null!==Lt.styleDefault&&(ce=vc()),new Promise(function(tn,vn){if(Gs("missingIconAbstract"),"fa"===Me){var Qn=iu(Nt)||{};Nt=Qn.iconName||Nt,ce=Qn.prefix||ce}if(Nt&&ce&&Jc[ce]&&Jc[ce][Nt])return tn(bu(Jc[ce][Nt]));(function Cc(Nt,ce){!ri&&!Lt.showMissingIcons&&Nt&&console.error('Icon with name "'.concat(Nt,'" and prefix "').concat(ce,'" is missing.'))})(Nt,ce),tn(v(v({},Dr),{},{icon:Lt.showMissingIcons&&Nt&&Gs("missingIconAbstract")||{}}))})}var pr=function(){},Gc=Lt.measurePerformance&&xe&&xe.mark&&xe.measure?xe:{mark:pr,measure:pr},xs='FA "6.2.1"',Bl_begin=function(ce){return Gc.mark("".concat(xs," ").concat(ce," begins")),function(){return function(ce){Gc.mark("".concat(xs," ").concat(ce," ends")),Gc.measure("".concat(xs," ").concat(ce),"".concat(xs," ").concat(ce," begins"),"".concat(xs," ").concat(ce," ends"))}(ce)}},Ps=function(){};function qs(Nt){return"string"==typeof(Nt.getAttribute?Nt.getAttribute(_n):null)}function Qs(Nt){return Jt.createElementNS("http://www.w3.org/2000/svg",Nt)}function lc(Nt){return Jt.createElement(Nt)}function Ws(Nt){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Me=ce.ceFn,tn=void 0===Me?"svg"===Nt.tag?Qs:lc:Me;if("string"==typeof Nt)return Jt.createTextNode(Nt);var vn=tn(Nt.tag);Object.keys(Nt.attributes||[]).forEach(function(Qn){vn.setAttribute(Qn,Nt.attributes[Qn])});var Gn=Nt.children||[];return Gn.forEach(function(Qn){vn.appendChild(Ws(Qn,{ceFn:tn}))}),vn}var aa={replace:function(ce){var Me=ce[0];if(Me.parentNode)if(ce[1].forEach(function(vn){Me.parentNode.insertBefore(Ws(vn),Me)}),null===Me.getAttribute(_n)&&Lt.keepOriginalSource){var tn=Jt.createComment(function Nr(Nt){var ce=" ".concat(Nt.outerHTML," ");return"".concat(ce,"Font Awesome fontawesome.com ")}(Me));Me.parentNode.replaceChild(tn,Me)}else Me.remove()},nest:function(ce){var Me=ce[0],tn=ce[1];if(~En(Me).indexOf(Lt.replacementClass))return aa.replace(ce);var vn=new RegExp("".concat(Lt.cssPrefix,"-.*"));if(delete tn[0].attributes.id,tn[0].attributes.class){var Gn=tn[0].attributes.class.split(" ").reduce(function(yi,Ti){return Ti===Lt.replacementClass||Ti.match(vn)?yi.toSvg.push(Ti):yi.toNode.push(Ti),yi},{toNode:[],toSvg:[]});tn[0].attributes.class=Gn.toSvg.join(" "),0===Gn.toNode.length?Me.removeAttribute("class"):Me.setAttribute("class",Gn.toNode.join(" "))}var Qn=tn.map(function(yi){return dn(yi)}).join("\n");Me.setAttribute(_n,""),Me.innerHTML=Qn}};function uc(Nt){Nt()}function vr(Nt,ce){var Me="function"==typeof ce?ce:Ps;if(0===Nt.length)Me();else{var tn=uc;"async"===Lt.mutateApproach&&(tn=se.requestAnimationFrame||uc),tn(function(){var vn=function Rs(){return!0===Lt.autoReplaceSvg?aa.replace:aa[Lt.autoReplaceSvg]||aa.replace}(),Gn=Bl_begin("mutate");Nt.map(vn),Gn(),Me()})}}var Vr=!1;function Qc(){Vr=!0}function rl(){Vr=!1}var yc=null;function qd(Nt){if(ve&&Lt.observeMutations){var ce=Nt.treeCallback,Me=void 0===ce?Ps:ce,tn=Nt.nodeCallback,vn=void 0===tn?Ps:tn,Gn=Nt.pseudoElementsCallback,Qn=void 0===Gn?Ps:Gn,yi=Nt.observeMutationsRoot,Ti=void 0===yi?Jt:yi;yc=new ve(function(bo){if(!Vr){var xo=vc();Re(bo).forEach(function(yo){if("childList"===yo.type&&yo.addedNodes.length>0&&!qs(yo.addedNodes[0])&&(Lt.searchPseudoElements&&Qn(yo.target),Me(yo.target)),"attributes"===yo.type&&yo.target.parentNode&&Lt.searchPseudoElements&&Qn(yo.target.parentNode),"attributes"===yo.type&&qs(yo.target)&&~fi.indexOf(yo.attributeName))if("class"===yo.attributeName&&function Cs(Nt){var ce=Nt.getAttribute?Nt.getAttribute(Ue):null,Me=Nt.getAttribute?Nt.getAttribute(un):null;return ce&&Me}(yo.target)){var ga=Vs(En(yo.target)),fa=ga.iconName;yo.target.setAttribute(Ue,ga.prefix||xo),fa&&yo.target.setAttribute(un,fa)}else(function us(Nt){return Nt&&Nt.classList&&Nt.classList.contains&&Nt.classList.contains(Lt.replacementClass)})(yo.target)&&vn(yo.target)})}}),qe&&yc.observe(Ti,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Bi(Nt){var ce=Nt.getAttribute("style"),Me=[];return ce&&(Me=ce.split(";").reduce(function(tn,vn){var Gn=vn.split(":"),Qn=Gn[0],yi=Gn.slice(1);return Qn&&yi.length>0&&(tn[Qn]=yi.join(":").trim()),tn},{})),Me}function Pa(Nt){var ce=Nt.getAttribute("data-prefix"),Me=Nt.getAttribute("data-icon"),tn=void 0!==Nt.innerText?Nt.innerText.trim():"",vn=Vs(En(Nt));return vn.prefix||(vn.prefix=vc()),ce&&Me&&(vn.prefix=ce,vn.iconName=Me),vn.iconName&&vn.prefix||(vn.prefix&&tn.length>0&&(vn.iconName=function _1(Nt,ce){return(Ir[Nt]||{})[ce]}(vn.prefix,Nt.innerText)||Fs(vn.prefix,Be(Nt.innerText))),!vn.iconName&&Lt.autoFetchSvg&&Nt.firstChild&&Nt.firstChild.nodeType===Node.TEXT_NODE&&(vn.iconName=Nt.firstChild.data)),vn}function xu(Nt){var ce=Re(Nt.attributes).reduce(function(vn,Gn){return"class"!==vn.name&&"style"!==vn.name&&(vn[Gn.name]=Gn.value),vn},{}),Me=Nt.getAttribute("title"),tn=Nt.getAttribute("data-fa-title-id");return Lt.autoA11y&&(Me?ce["aria-labelledby"]="".concat(Lt.replacementClass,"-title-").concat(tn||he()):(ce["aria-hidden"]="true",ce.focusable="false")),ce}function Pr(Nt){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},Me=Pa(Nt),tn=Me.iconName,vn=Me.prefix,Gn=Me.rest,Qn=xu(Nt),yi=Js("parseNodeAttributes",{},Nt),Ti=ce.styleParser?Bi(Nt):[];return v({iconName:tn,title:Nt.getAttribute("title"),titleId:Nt.getAttribute("data-fa-title-id"),prefix:vn,transform:Xe,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:Gn,styles:Ti,attributes:Qn}},yi)}var pe=fr.styles;function ee(Nt){var ce="nest"===Lt.autoReplaceSvg?Pr(Nt,{styleParser:!1}):Pr(Nt);return~ce.extra.classes.indexOf(Pn)?Gs("generateLayersText",Nt,ce):Gs("generateSvgReplacementMutation",Nt,ce)}var qt=new Set;function rt(Nt){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!qe)return Promise.resolve();var Me=Jt.documentElement.classList,tn=function(yo){return Me.add("".concat(Mn,"-").concat(yo))},vn=function(yo){return Me.remove("".concat(Mn,"-").concat(yo))},Gn=Lt.autoFetchSvg?qt:ct.map(function(xo){return"fa-".concat(xo)}).concat(Object.keys(pe));Gn.includes("fa")||Gn.push("fa");var Qn=[".".concat(Pn,":not([").concat(_n,"])")].concat(Gn.map(function(xo){return".".concat(xo,":not([").concat(_n,"])")})).join(", ");if(0===Qn.length)return Promise.resolve();var yi=[];try{yi=Re(Nt.querySelectorAll(Qn))}catch{}if(!(yi.length>0))return Promise.resolve();tn("pending"),vn("complete");var Ti=Bl_begin("onTree"),bo=yi.reduce(function(xo,yo){try{var ga=ee(yo);ga&&xo.push(ga)}catch(ra){ri||"MissingIcon"===ra.name&&console.error(ra)}return xo},[]);return new Promise(function(xo,yo){Promise.all(bo).then(function(ga){vr(ga,function(){tn("active"),tn("complete"),vn("pending"),"function"==typeof ce&&ce(),Ti(),xo()})}).catch(function(ga){Ti(),yo(ga)})})}function ki(Nt){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ee(Nt).then(function(Me){Me&&vr([Me],ce)})}ct.map(function(Nt){qt.add("fa-".concat(Nt))}),Object.keys(kt[Ke]).map(qt.add.bind(qt)),Object.keys(kt[ne]).map(qt.add.bind(qt)),qt=z(qt);var La=function(ce){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},tn=Me.transform,vn=void 0===tn?Xe:tn,Gn=Me.symbol,Qn=void 0!==Gn&&Gn,yi=Me.mask,Ti=void 0===yi?null:yi,bo=Me.maskId,xo=void 0===bo?null:bo,yo=Me.title,ga=void 0===yo?null:yo,ra=Me.titleId,fa=void 0===ra?null:ra,es=Me.classes,Hs=void 0===es?[]:es,ns=Me.attributes,is=void 0===ns?{}:ns,ds=Me.styles,Hr=void 0===ds?{}:ds;if(ce){var Xs=ce.prefix,Nc=ce.iconName,os=ce.icon;return cc(v({type:"icon"},ce),function(){return Tl("beforeDOMElementCreation",{iconDefinition:ce,params:Me}),Lt.autoA11y&&(ga?is["aria-labelledby"]="".concat(Lt.replacementClass,"-title-").concat(fa||he()):(is["aria-hidden"]="true",is.focusable="false")),xc({icons:{main:bu(os),mask:Ti?bu(Ti.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Xs,iconName:Nc,transform:v(v({},Xe),vn),symbol:Qn,title:ga,maskId:xo,titleId:fa,extra:{attributes:is,styles:Hr,classes:Hs}})})}},Wc={mixout:function(){return{icon:(Nt=La,function(ce){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},tn=(ce||{}).icon?ce:jc(ce||{}),vn=Me.mask;return vn&&(vn=(vn||{}).icon?vn:jc(vn||{})),Nt(tn,v(v({},Me),{},{mask:vn}))})};var Nt},hooks:function(){return{mutationObserverCallbacks:function(Me){return Me.treeCallback=rt,Me.nodeCallback=ki,Me}}},provides:function(ce){ce.i2svg=function(Me){var tn=Me.node,Gn=Me.callback;return rt(void 0===tn?Jt:tn,void 0===Gn?function(){}:Gn)},ce.generateSvgReplacementMutation=function(Me,tn){var vn=tn.iconName,Gn=tn.title,Qn=tn.titleId,yi=tn.prefix,Ti=tn.transform,bo=tn.symbol,xo=tn.mask,yo=tn.maskId,ga=tn.extra;return new Promise(function(ra,fa){Promise.all([Wa(vn,yi),xo.iconName?Wa(xo.iconName,xo.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(es){var Hs=I(es,2);ra([Me,xc({icons:{main:Hs[0],mask:Hs[1]},prefix:yi,iconName:vn,transform:Ti,symbol:bo,maskId:yo,title:Gn,titleId:Qn,extra:ga,watchable:!0})])}).catch(fa)})},ce.generateAbstractIcon=function(Me){var bo,tn=Me.children,vn=Me.attributes,Gn=Me.main,Qn=Me.transform,Ti=_o(Me.styles);return Ti.length>0&&(vn.style=Ti),mn(Qn)&&(bo=Gs("generateAbstractTransformGrouping",{main:Gn,transform:Qn,containerWidth:Gn.width,iconWidth:Gn.width})),tn.push(bo||Gn.icon),{children:tn,attributes:vn}}}},Ec={mixout:function(){return{layer:function(Me){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},vn=tn.classes,Gn=void 0===vn?[]:vn;return cc({type:"layer"},function(){Tl("beforeDOMElementCreation",{assembler:Me,params:tn});var Qn=[];return Me(function(yi){Array.isArray(yi)?yi.map(function(Ti){Qn=Qn.concat(Ti.abstract)}):Qn=Qn.concat(yi.abstract)}),[{tag:"span",attributes:{class:["".concat(Lt.cssPrefix,"-layers")].concat(z(Gn)).join(" ")},children:Qn}]})}}}},Fr={mixout:function(){return{counter:function(Me){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},vn=tn.title,Gn=void 0===vn?null:vn,Qn=tn.classes,yi=void 0===Qn?[]:Qn,Ti=tn.attributes,bo=void 0===Ti?{}:Ti,xo=tn.styles,yo=void 0===xo?{}:xo;return cc({type:"counter",content:Me},function(){return Tl("beforeDOMElementCreation",{content:Me,params:tn}),Ds({content:Me.toString(),title:Gn,extra:{attributes:bo,styles:yo,classes:["".concat(Lt.cssPrefix,"-layers-counter")].concat(z(yi))}})})}}}},qr={mixout:function(){return{text:function(Me){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},vn=tn.transform,Gn=void 0===vn?Xe:vn,Qn=tn.title,yi=void 0===Qn?null:Qn,Ti=tn.classes,bo=void 0===Ti?[]:Ti,xo=tn.attributes,yo=void 0===xo?{}:xo,ga=tn.styles,ra=void 0===ga?{}:ga;return cc({type:"text",content:Me},function(){return Tl("beforeDOMElementCreation",{content:Me,params:tn}),wl({content:Me,transform:v(v({},Xe),Gn),title:yi,extra:{attributes:yo,styles:ra,classes:["".concat(Lt.cssPrefix,"-layers-text")].concat(z(bo))}})})}}},provides:function(ce){ce.generateLayersText=function(Me,tn){var vn=tn.title,Gn=tn.transform,Qn=tn.extra,yi=null,Ti=null;if($e){var bo=parseInt(getComputedStyle(Me).fontSize,10),xo=Me.getBoundingClientRect();yi=xo.width/bo,Ti=xo.height/bo}return Lt.autoA11y&&!vn&&(Qn.attributes["aria-hidden"]="true"),Promise.resolve([Me,wl({content:Me.innerHTML,width:yi,height:Ti,transform:Gn,title:vn,extra:Qn,watchable:!0})])}}},Ru=new RegExp('"',"ug"),er=[1105920,1112319];function au(Nt,ce){var Me="".concat("data-fa-pseudo-element-pending").concat(ce.replace(":","-"));return new Promise(function(tn,vn){if(null!==Nt.getAttribute(Me))return tn();var Qn=Re(Nt.children).filter(function(os){return os.getAttribute(ye)===ce})[0],yi=se.getComputedStyle(Nt,ce),Ti=yi.getPropertyValue("font-family").match(Ln),bo=yi.getPropertyValue("font-weight"),xo=yi.getPropertyValue("content");if(Qn&&!Ti)return Nt.removeChild(Qn),tn();if(Ti&&"none"!==xo&&""!==xo){var yo=yi.getPropertyValue("content"),ga=~["Sharp"].indexOf(Ti[2])?ne:Ke,ra=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(Ti[2])?Gt[ga][Ti[2].toLowerCase()]:mi[ga][bo],fa=function Ul(Nt){var ce=Nt.replace(Ru,""),Me=function Rn(Nt,ce){var vn,Me=Nt.length,tn=Nt.charCodeAt(ce);return tn>=55296&&tn<=56319&&Me>ce+1&&(vn=Nt.charCodeAt(ce+1))>=56320&&vn<=57343?1024*(tn-55296)+vn-56320+65536:tn}(ce,0),tn=Me>=er[0]&&Me<=er[1],vn=2===ce.length&&ce[0]===ce[1];return{value:Be(vn?ce[0]:ce),isSecondary:tn||vn}}(yo),es=fa.value,Hs=fa.isSecondary,ns=Ti[0].startsWith("FontAwesome"),is=Fs(ra,es),ds=is;if(ns){var Hr=function f1(Nt){var ce=al[Nt],Me=Fs("fas",Nt);return ce||(Me?{prefix:"fas",iconName:Me}:null)||{prefix:null,iconName:null}}(es);Hr.iconName&&Hr.prefix&&(is=Hr.iconName,ra=Hr.prefix)}if(!is||Hs||Qn&&Qn.getAttribute(Ue)===ra&&Qn.getAttribute(un)===ds)tn();else{Nt.setAttribute(Me,ds),Qn&&Nt.removeChild(Qn);var Xs=function $s(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Xe,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),Nc=Xs.extra;Nc.attributes[ye]=ce,Wa(is,ra).then(function(os){var Rd=xc(v(v({},Xs),{},{icons:{main:os,mask:{prefix:null,iconName:null,rest:[]}},prefix:ra,iconName:ds,extra:Nc,watchable:!0})),cr=Jt.createElement("svg");"::before"===ce?Nt.insertBefore(cr,Nt.firstChild):Nt.appendChild(cr),cr.outerHTML=Rd.map(function(lr){return dn(lr)}).join("\n"),Nt.removeAttribute(Me),tn()}).catch(vn)}}else tn()})}function Hu(Nt){return Promise.all([au(Nt,"::before"),au(Nt,"::after")])}function Vp(Nt){return!(Nt.parentNode===document.head||~bi.indexOf(Nt.tagName.toUpperCase())||Nt.getAttribute(ye)||Nt.parentNode&&"svg"===Nt.parentNode.tagName)}function h1(Nt){if(qe)return new Promise(function(ce,Me){var tn=Re(Nt.querySelectorAll("*")).filter(Vp).map(Hu),vn=Bl_begin("searchPseudoElements");Qc(),Promise.all(tn).then(function(){vn(),rl(),ce()}).catch(function(){vn(),rl(),Me()})})}var Ic=!1,Zl=function(ce){return ce.toLowerCase().split(" ").reduce(function(tn,vn){var Gn=vn.toLowerCase().split("-"),Qn=Gn[0],yi=Gn.slice(1).join("-");if(Qn&&"h"===yi)return tn.flipX=!0,tn;if(Qn&&"v"===yi)return tn.flipY=!0,tn;if(yi=parseFloat(yi),isNaN(yi))return tn;switch(Qn){case"grow":tn.size=tn.size+yi;break;case"shrink":tn.size=tn.size-yi;break;case"left":tn.x=tn.x-yi;break;case"right":tn.x=tn.x+yi;break;case"up":tn.y=tn.y-yi;break;case"down":tn.y=tn.y+yi;break;case"rotate":tn.rotate=tn.rotate+yi}return tn},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Ml={x:0,y:0,width:"100%",height:"100%"};function cl(Nt){var ce=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Nt.attributes&&(Nt.attributes.fill||ce)&&(Nt.attributes.fill="black"),Nt}!function Rl(Nt,ce){var Me=ce.mixoutsTo;Vc=Nt,js={},Object.keys(yl).forEach(function(tn){-1===md.indexOf(tn)&&delete yl[tn]}),Vc.forEach(function(tn){var vn=tn.mixout?tn.mixout():{};if(Object.keys(vn).forEach(function(Qn){"function"==typeof vn[Qn]&&(Me[Qn]=vn[Qn]),"object"===T(vn[Qn])&&Object.keys(vn[Qn]).forEach(function(yi){Me[Qn]||(Me[Qn]={}),Me[Qn][yi]=vn[Qn][yi]})}),tn.hooks){var Gn=tn.hooks();Object.keys(Gn).forEach(function(Qn){js[Qn]||(js[Qn]=[]),js[Qn].push(Gn[Qn])})}tn.provides&&tn.provides(yl)})}([ca,Wc,Ec,Fr,qr,{hooks:function(){return{mutationObserverCallbacks:function(Me){return Me.pseudoElementsCallback=h1,Me}}},provides:function(ce){ce.pseudoElements2svg=function(Me){var tn=Me.node;Lt.searchPseudoElements&&h1(void 0===tn?Jt:tn)}}},{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(Me){var tn=Me.observeMutationsRoot;Ic?rl():qd(Js("mutationObserverCallbacks",{observeMutationsRoot:tn}))}}}},{mixout:function(){return{parse:{transform:function(Me){return Zl(Me)}}}},hooks:function(){return{parseNodeAttributes:function(Me,tn){var vn=tn.getAttribute("data-fa-transform");return vn&&(Me.transform=Zl(vn)),Me}}},provides:function(ce){ce.generateAbstractTransformGrouping=function(Me){var tn=Me.main,vn=Me.transform,Qn=Me.iconWidth,yi={transform:"translate(".concat(Me.containerWidth/2," 256)")},Ti="translate(".concat(32*vn.x,", ").concat(32*vn.y,") "),bo="scale(".concat(vn.size/16*(vn.flipX?-1:1),", ").concat(vn.size/16*(vn.flipY?-1:1),") "),xo="rotate(".concat(vn.rotate," 0 0)"),ra={outer:yi,inner:{transform:"".concat(Ti," ").concat(bo," ").concat(xo)},path:{transform:"translate(".concat(Qn/2*-1," -256)")}};return{tag:"g",attributes:v({},ra.outer),children:[{tag:"g",attributes:v({},ra.inner),children:[{tag:tn.icon.tag,children:tn.icon.children,attributes:v(v({},tn.icon.attributes),ra.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(Me,tn){var vn=tn.getAttribute("data-fa-mask"),Gn=vn?Vs(vn.split(" ").map(function(Qn){return Qn.trim()})):{prefix:null,iconName:null,rest:[]};return Gn.prefix||(Gn.prefix=vc()),Me.mask=Gn,Me.maskId=tn.getAttribute("data-fa-mask-id"),Me}}},provides:function(ce){ce.generateAbstractMask=function(Me){var Nt,tn=Me.children,vn=Me.attributes,Gn=Me.main,Qn=Me.mask,yi=Me.maskId,xo=Gn.icon,ga=Qn.icon,ra=function An(Nt){var ce=Nt.transform,tn=Nt.iconWidth,vn={transform:"translate(".concat(Nt.containerWidth/2," 256)")},Gn="translate(".concat(32*ce.x,", ").concat(32*ce.y,") "),Qn="scale(".concat(ce.size/16*(ce.flipX?-1:1),", ").concat(ce.size/16*(ce.flipY?-1:1),") "),yi="rotate(".concat(ce.rotate," 0 0)");return{outer:vn,inner:{transform:"".concat(Gn," ").concat(Qn," ").concat(yi)},path:{transform:"translate(".concat(tn/2*-1," -256)")}}}({transform:Me.transform,containerWidth:Qn.width,iconWidth:Gn.width}),fa={tag:"rect",attributes:v(v({},Ml),{},{fill:"white"})},es=xo.children?{children:xo.children.map(cl)}:{},Hs={tag:"g",attributes:v({},ra.inner),children:[cl(v({tag:xo.tag,attributes:v(v({},xo.attributes),ra.path)},es))]},ns={tag:"g",attributes:v({},ra.outer),children:[Hs]},is="mask-".concat(yi||he()),ds="clip-".concat(yi||he()),Hr={tag:"mask",attributes:v(v({},Ml),{},{id:is,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[fa,ns]},Xs={tag:"defs",children:[{tag:"clipPath",attributes:{id:ds},children:(Nt=ga,"g"===Nt.tag?Nt.children:[Nt])},Hr]};return tn.push(Xs,{tag:"rect",attributes:v({fill:"currentColor","clip-path":"url(#".concat(ds,")"),mask:"url(#".concat(is,")")},Ml)}),{children:tn,attributes:vn}}}},{provides:function(ce){var Me=!1;se.matchMedia&&(Me=se.matchMedia("(prefers-reduced-motion: reduce)").matches),ce.missingIconAbstract=function(){var tn=[],vn={fill:"currentColor"},Gn={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};tn.push({tag:"path",attributes:v(v({},vn),{},{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 Qn=v(v({},Gn),{},{attributeName:"opacity"}),yi={tag:"circle",attributes:v(v({},vn),{},{cx:"256",cy:"364",r:"28"}),children:[]};return Me||yi.children.push({tag:"animate",attributes:v(v({},Gn),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:v(v({},Qn),{},{values:"1;0;1;1;0;1;"})}),tn.push(yi),tn.push({tag:"path",attributes:v(v({},vn),{},{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:Me?[]:[{tag:"animate",attributes:v(v({},Qn),{},{values:"1;0;0;0;0;1;"})}]}),Me||tn.push({tag:"path",attributes:v(v({},vn),{},{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({},Qn),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:tn}}}},{hooks:function(){return{parseNodeAttributes:function(Me,tn){var vn=tn.getAttribute("data-fa-symbol");return Me.symbol=null!==vn&&(""===vn||vn),Me}}}}],{mixoutsTo:qo});var Ra=qo.parse,g1=qo.icon,Pi=b(11481);const So=["*"],hn=Nt=>{const ce={"fa-spin":Nt.spin,"fa-pulse":Nt.pulse,"fa-fw":Nt.fixedWidth,"fa-border":Nt.border,"fa-inverse":Nt.inverse,"fa-layers-counter":Nt.counter,"fa-flip-horizontal":"horizontal"===Nt.flip||"both"===Nt.flip,"fa-flip-vertical":"vertical"===Nt.flip||"both"===Nt.flip,[`fa-${Nt.size}`]:null!==Nt.size,[`fa-rotate-${Nt.rotate}`]:null!==Nt.rotate,[`fa-pull-${Nt.pull}`]:null!==Nt.pull,[`fa-stack-${Nt.stackItemSize}`]:null!=Nt.stackItemSize};return Object.keys(ce).map(Me=>ce[Me]?Me:null).filter(Me=>Me)};let Au=(()=>{class Nt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return Nt.\u0275fac=function(Me){return new(Me||Nt)},Nt.\u0275prov=d.Yz7({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Nt})(),Ks=(()=>{class Nt{constructor(){this.definitions={}}addIcons(...Me){for(const tn of Me){tn.prefix in this.definitions||(this.definitions[tn.prefix]={}),this.definitions[tn.prefix][tn.iconName]=tn;for(const vn of tn.icon[2])"string"==typeof vn&&(this.definitions[tn.prefix][vn]=tn)}}addIconPacks(...Me){for(const tn of Me){const vn=Object.keys(tn).map(Gn=>tn[Gn]);this.addIcons(...vn)}}getIconDefinition(Me,tn){return Me in this.definitions&&tn in this.definitions[Me]?this.definitions[Me][tn]:null}}return Nt.\u0275fac=function(Me){return new(Me||Nt)},Nt.\u0275prov=d.Yz7({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Nt})(),Xi=(()=>{class Nt{constructor(){this.stackItemSize="1x"}ngOnChanges(Me){if("size"in Me)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 Nt.\u0275fac=function(Me){return new(Me||Nt)},Nt.\u0275dir=d.lG2({type:Nt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[d.TTD]}),Nt})(),fd=(()=>{class Nt{constructor(Me,tn){this.renderer=Me,this.elementRef=tn}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(Me){"size"in Me&&(null!=Me.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${Me.size.currentValue}`),null!=Me.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${Me.size.previousValue}`))}}return Nt.\u0275fac=function(Me){return new(Me||Nt)(d.Y36(d.Qsj),d.Y36(d.SBq))},Nt.\u0275cmp=d.Xpm({type:Nt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[d.TTD],ngContentSelectors:So,decls:1,vars:0,template:function(Me,tn){1&Me&&(d.F$t(),d.Hsn(0))},encapsulation:2}),Nt})(),ts=(()=>{class Nt{constructor(Me,tn,vn,Gn,Qn){this.sanitizer=Me,this.config=tn,this.iconLibrary=vn,this.stackItem=Gn,this.classes=[],null!=Qn&&null==Gn&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(Me){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let tn=null;if(tn=this.icon??this.config.fallbackIcon,Me){const vn=this.findIconDefinition(tn);if(null!=vn){const Gn=this.buildParams();this.renderIcon(vn,Gn)}}}render(){this.ngOnChanges({})}findIconDefinition(Me){const tn=((Nt,ce)=>(Nt=>void 0!==Nt.prefix&&void 0!==Nt.iconName)(Nt)?Nt:Array.isArray(Nt)&&2===Nt.length?{prefix:Nt[0],iconName:Nt[1]}:"string"==typeof Nt?{prefix:ce,iconName:Nt}:void 0)(Me,this.config.defaultPrefix);return"icon"in tn?tn:this.iconLibrary.getIconDefinition(tn.prefix,tn.iconName)??((Nt=>{throw new Error(`Could not find icon with iconName=${Nt.iconName} and prefix=${Nt.prefix} in the icon library.`)})(tn),null)}buildParams(){const Me={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},tn="string"==typeof this.transform?Ra.transform(this.transform):this.transform;return{title:this.title,transform:tn,classes:[...hn(Me),...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(Me,tn){const vn=g1(Me,tn);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(vn.html.join("\n"))}}return Nt.\u0275fac=function(Me){return new(Me||Nt)(d.Y36(Pi.H7),d.Y36(Au),d.Y36(Ks),d.Y36(Xi,8),d.Y36(fd,8))},Nt.\u0275cmp=d.Xpm({type:Nt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Me,tn){2&Me&&(d.Ikx("innerHTML",tn.renderedIconHTML,d.oJD),d.uIk("title",tn.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(Me,tn){},encapsulation:2}),Nt})(),On=(()=>{class Nt{}return Nt.\u0275fac=function(Me){return new(Me||Nt)},Nt.\u0275mod=d.oAB({type:Nt}),Nt.\u0275inj=d.cJS({}),Nt})()},33231:(ot,et,b)=>{"use strict";b.d(et,{Co:()=>gn,nu:()=>_n});var d=b(29521),p=b(94650),v=b(24006),T=b(3238),t=b(59549),A=b(84385),C=b(591),U=b(21086),k=b(23426),D=b(8929),P=b(87545),I=b(24850),z=b(1059),G=b(18583),K=b(7625),at=b(72986),lt=b(92198),bt=b(22868),Pt=b(67376),Dt=b(56709),zt=b(51572),Vt=b(4859),nt=b(97392),Tt=b(36895),At=b(10266);const ft=["searchSelectInput"],Et=["innerSelectSearch"];function Bt(Ue,un){if(1&Ue){const Mn=p.EpF();p.TgZ(0,"mat-checkbox",9),p.NdJ("change",function(bi){p.CHM(Mn);const ri=p.oxw();return p.KtG(ri._emitSelectAllBooleanToParent(bi.checked))}),p.qZA()}if(2&Ue){const Mn=p.oxw();p.Q6J("color",null==Mn.matFormField?null:Mn.matFormField.color)("checked",Mn.toggleAllCheckboxChecked)("indeterminate",Mn.toggleAllCheckboxIndeterminate)("matTooltip",Mn.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Mn.toggleAllCheckboxTooltipPosition)}}function It(Ue,un){1&Ue&&p._UZ(0,"mat-spinner",10)}function se(Ue,un){1&Ue&&p.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Jt(Ue,un){if(1&Ue&&(p.TgZ(0,"mat-icon",14),p._uU(1),p.qZA()),2&Ue){const Mn=p.oxw(2);p.Q6J("svgIcon",Mn.closeSvgIcon),p.xp6(1),p.hij(" ",Mn.closeSvgIcon?null:Mn.closeIcon," ")}}function ve(Ue,un){if(1&Ue){const Mn=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){p.CHM(Mn);const bi=p.oxw();return p.KtG(bi._reset(!0))}),p.YNc(1,se,1,0,"ng-content",12),p.YNc(2,Jt,2,2,"ng-template",null,13,p.W1O),p.qZA()}if(2&Ue){const Mn=p.MAs(3),oi=p.oxw();p.xp6(1),p.Q6J("ngIf",oi.clearIcon)("ngIfElse",Mn)}}function xe(Ue,un){1&Ue&&p.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function Oe(Ue,un){if(1&Ue&&p._uU(0),2&Ue){const Mn=p.oxw(2);p.Oqu(Mn.noEntriesFoundLabel)}}function qe(Ue,un){if(1&Ue&&(p.TgZ(0,"div",15),p.YNc(1,xe,1,0,"ng-content",12),p.YNc(2,Oe,1,1,"ng-template",null,16,p.W1O),p.qZA()),2&Ue){const Mn=p.MAs(3),oi=p.oxw();p.xp6(1),p.Q6J("ngIf",oi.noEntriesFound)("ngIfElse",Mn)}}const $e=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Xt=function(Ue,un){return{"mat-select-search-inner-multiple":Ue,"mat-select-search-inner-toggle-all":un}},we=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let ae=(()=>{class Ue{}return Ue.\u0275fac=function(Mn){return new(Mn||Ue)},Ue.\u0275dir=p.lG2({type:Ue,selectors:[["","ngxMatSelectSearchClear",""]]}),Ue})();const Kt=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],de=new p.OlP("mat-selectsearch-default-options");let Pe=(()=>{class Ue{}return Ue.\u0275fac=function(Mn){return new(Mn||Ue)},Ue.\u0275dir=p.lG2({type:Ue,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),Ue})(),_n=(()=>{class Ue{constructor(Mn,oi,bi,ri=null,Ke=null,ne){this.matSelect=Mn,this.changeDetectorRef=oi,this._viewportRuler=bi,this.matOption=ri,this.matFormField=Ke,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=ct=>{},this._options$=new C.X(null),this.optionsList$=this._options$.pipe((0,P.w)(ct=>ct?ct.changes.pipe((0,I.U)(it=>it.toArray()),(0,z.O)(ct.toArray())):(0,U.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,I.U)(ct=>ct?ct.length:0)),this._formControl=new v.NI(""),this._showNoEntriesFound$=(0,k.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,I.U)(([ct,it])=>this.noEntriesFoundLabel&&ct&&it===this.getOptionsLengthOffset())),this._onDestroy=new D.xQ,this.applyDefaultOptions(ne)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Mn){this._options$.next(Mn)}get _options(){return this._options$.getValue()}applyDefaultOptions(Mn){if(Mn)for(const oi of Kt)Mn.hasOwnProperty(oi)&&(this[oi]=Mn[oi])}ngOnInit(){const Mn="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Mn):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Mn]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Mn]=!0):this.matSelect.panelClass=Mn,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,K.R)(this._onDestroy)).subscribe(oi=>{oi?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,at.q)(1)).pipe((0,K.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,K.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let oi=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,K.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const bi=this._options.toArray(),ri=bi[this.getOptionsLengthOffset()],Ke=this.matSelect._keyManager;Ke&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(oi,ri)||!Ke.activeItem||!bi.find(ct=>this.matSelect.compareWith(ct,Ke.activeItem)))&&Ke.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),oi=ri})})}),this._showNoEntriesFound$.pipe((0,K.R)(this._onDestroy)).subscribe(oi=>{this.matOption&&(oi?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,K.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,K.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(Mn){this.toggleAll.emit(Mn)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Mn){(Mn.key&&1===Mn.key.length||Mn.keyCode>=d.A&&Mn.keyCode<=d.Z||Mn.keyCode>=d.xE&&Mn.keyCode<=d.aO||Mn.keyCode===d.L_||this.preventHomeEndKeyPropagation&&(Mn.keyCode===d.Sd||Mn.keyCode===d.uR))&&Mn.stopPropagation(),this.matSelect.multiple&&Mn.key&&Mn.keyCode===d.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Mn.keyCode===d.hY&&this.value&&(this._reset(!0),Mn.stopPropagation())}_handleKeyup(Mn){if(Mn.keyCode===d.LH||Mn.keyCode===d.JH){const oi=this.matSelect._getAriaActiveDescendant(),bi=this._options.toArray().findIndex(ri=>ri.id===oi);-1!==bi&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[bi]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",oi))}}writeValue(Mn){this._lastExternalInputValue=Mn,this._formControl.setValue(Mn),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(Mn){this._formControl.valueChanges.pipe((0,lt.h)(oi=>oi!==this._lastExternalInputValue),(0,bt.b)(()=>this._lastExternalInputValue=void 0),(0,K.R)(this._onDestroy)).subscribe(Mn)}registerOnTouched(Mn){this.onTouched=Mn}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Mn=this.matSelect.panel.nativeElement,oi=Mn.scrollTop;this.searchSelectInput.nativeElement.focus(),Mn.scrollTop=oi}_reset(Mn){this._formControl.setValue(""),Mn&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,K.R)(this._onDestroy)).subscribe(Mn=>{let oi=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Mn||!Array.isArray(Mn))&&(Mn=[]);const bi=this.matSelect.options.map(ri=>ri.value);this.previousSelectedValues.forEach(ri=>{!Mn.some(Ke=>this.matSelect.compareWith(Ke,ri))&&!bi.some(Ke=>this.matSelect.compareWith(Ke,ri))&&(Mn.push(ri),oi=!0)})}this.previousSelectedValues=Mn,oi&&this.matSelect._onChange(Mn)})):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 Mn=this.getMatOptionHeight(),oi=this.matSelect._keyManager.activeItemIndex||0,bi=(0,T.CB)(oi,this.matSelect.options,this.matSelect.optionGroups),ri=(this.matOption?-1:0)+bi+oi,Ke=this.matSelect.panel.nativeElement.scrollTop,ne=this.innerSelectSearch.nativeElement.offsetHeight,ct=Math.floor((256-ne)/Mn),it=Math.round((Ke+ne)/Mn)-1;it>=ri?this.matSelect.panel.nativeElement.scrollTop=ri*Mn:it+ct<=ri&&(this.matSelect.panel.nativeElement.scrollTop=(ri+1)*Mn-(256-ne))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let oi,Mn=this.innerSelectSearch.nativeElement;for(;Mn=Mn.parentElement;)if(Mn.classList.contains("mat-select-panel")){oi=Mn;break}oi&&(this.innerSelectSearch.nativeElement.style.width=oi.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 Ue.\u0275fac=function(Mn){return new(Mn||Ue)(p.Y36(A.gD),p.Y36(p.sBO),p.Y36(Pt.rL),p.Y36(T.ey,8),p.Y36(t.KE,8),p.Y36(de,8))},Ue.\u0275cmp=p.Xpm({type:Ue,selectors:[["ngx-mat-select-search"]],contentQueries:function(Mn,oi,bi){if(1&Mn&&(p.Suo(bi,ae,5),p.Suo(bi,Pe,5)),2&Mn){let ri;p.iGM(ri=p.CRH())&&(oi.clearIcon=ri.first),p.iGM(ri=p.CRH())&&(oi.noEntriesFound=ri.first)}},viewQuery:function(Mn,oi){if(1&Mn&&(p.Gf(ft,7,p.SBq),p.Gf(Et,7,p.SBq)),2&Mn){let bi;p.iGM(bi=p.CRH())&&(oi.searchSelectInput=bi.first),p.iGM(bi=p.CRH())&&(oi.innerSelectSearch=bi.first)}},hostVars:2,hostBindings:function(Mn,oi){2&Mn&&p.ekj("mat-select-search-inside-mat-option",oi.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)(()=>Ue),multi:!0}])],ngContentSelectors:we,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(Mn,oi){1&Mn&&(p.F$t($e),p._UZ(0,"input",0),p.TgZ(1,"div",1,2),p.YNc(3,Bt,1,5,"mat-checkbox",3),p.TgZ(4,"input",4,5),p.NdJ("keydown",function(ri){return oi._handleKeydown(ri)})("keyup",function(ri){return oi._handleKeyup(ri)})("blur",function(){return oi.onBlur()}),p.qZA(),p.YNc(6,It,1,0,"mat-spinner",6),p.YNc(7,ve,4,2,"button",7),p.Hsn(8),p.qZA(),p.YNc(9,qe,4,2,"div",8),p.ALo(10,"async")),2&Mn&&(p.xp6(1),p.Q6J("ngClass",p.WLB(11,Xt,oi.matSelect.multiple,oi._isToggleAllCheckboxVisible())),p.xp6(2),p.Q6J("ngIf",oi._isToggleAllCheckboxVisible()),p.xp6(1),p.Q6J("type",oi.type)("formControl",oi._formControl)("placeholder",oi.placeholderLabel),p.uIk("aria-label",oi.ariaLabel),p.xp6(2),p.Q6J("ngIf",oi.searching),p.xp6(1),p.Q6J("ngIf",!oi.hideClearSearchButton&&oi.value&&!oi.searching),p.xp6(2),p.Q6J("ngIf",p.lcZ(10,9,oi._showNoEntriesFound$)))},dependencies:[Dt.oG,zt.Ou,Vt.lW,nt.Hw,Tt.mk,Tt.O5,At.gM,v.Fj,v.JJ,v.oH,Tt.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}),Ue})(),gn=(()=>{class Ue{}return Ue.\u0275fac=function(Mn){return new(Mn||Ue)},Ue.\u0275mod=p.oAB({type:Ue}),Ue.\u0275inj=p.cJS({imports:[[Tt.ez,v.UX,Vt.ot,Dt.p9,nt.Ps,zt.Cq,At.AV]]}),Ue})()},15861:(ot,et,b)=>{"use strict";function d(v,T,t,A,C,U,k){try{var D=v[U](k),P=D.value}catch(I){return void t(I)}D.done?T(P):Promise.resolve(P).then(A,C)}function p(v){return function(){var T=this,t=arguments;return new Promise(function(A,C){var U=v.apply(T,t);function k(P){d(U,A,C,k,D,"next",P)}function D(P){d(U,A,C,k,D,"throw",P)}k(void 0)})}}b.d(et,{Z:()=>p})}},ot=>{ot(ot.s=19202)}]); \ No newline at end of file +(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["main"],{96170:(ot,et,b)=>{ot=b.nmd(ot),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,ot.exports=(()=>(()=>{var d={4959:(t,A,C)=>{const U=C(1103),k={};for(const P of Object.keys(U))k[U[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,K=Math.min(I,z,G),at=Math.max(I,z,G),lt=at-K;let bt,Pt;at===K?bt=0:I===at?bt=(z-G)/lt:z===at?bt=2+(G-I)/lt:G===at&&(bt=4+(I-z)/lt),bt=Math.min(60*bt,360),bt<0&&(bt+=360);const Dt=(K+at)/2;return Pt=at===K?0:Dt<=.5?lt/(at+K):lt/(2-at-K),[bt,100*Pt,100*Dt]},D.rgb.hsv=function(P){let I,z,G,K,at;const lt=P[0]/255,bt=P[1]/255,Pt=P[2]/255,Dt=Math.max(lt,bt,Pt),zt=Dt-Math.min(lt,bt,Pt),Vt=function(nt){return(Dt-nt)/6/zt+.5};return 0===zt?(K=0,at=0):(at=zt/Dt,I=Vt(lt),z=Vt(bt),G=Vt(Pt),lt===Dt?K=G-z:bt===Dt?K=.3333333333333333+I-G:Pt===Dt&&(K=.6666666666666666+z-I),K<0?K+=1:K>1&&(K-=1)),[360*K,100*at,100*Dt]},D.rgb.hwb=function(P){const I=P[0],z=P[1];let G=P[2];const K=D.rgb.hsl(P)[0],at=1/255*Math.min(I,Math.min(z,G));return G=1-.00392156862745098*Math.max(I,Math.max(z,G)),[K,100*at,100*G]},D.rgb.cmyk=function(P){const I=P[0]/255,z=P[1]/255,G=P[2]/255,K=Math.min(1-I,1-z,1-G);return[100*((1-I-K)/(1-K)||0),100*((1-z-K)/(1-K)||0),100*((1-G-K)/(1-K)||0),100*K]},D.rgb.keyword=function(P){const I=k[P];if(I)return I;let z,G=1/0;for(const lt of Object.keys(U)){const Pt=((K=P)[0]-(at=U[lt])[0])**2+(K[1]-at[1])**2+(K[2]-at[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],K=I[2];return z/=95.047,G/=100,K/=108.883,z=z>.008856?z**.3333333333333333:7.787*z+.13793103448275862,G=G>.008856?G**.3333333333333333:7.787*G+.13793103448275862,K=K>.008856?K**.3333333333333333:7.787*K+.13793103448275862,[116*G-16,500*(z-G),200*(G-K)]},D.hsl.rgb=function(P){const I=P[0]/360,z=P[1]/100,G=P[2]/100;let K,at,lt;if(0===z)return lt=255*G,[lt,lt,lt];K=G<.5?G*(1+z):G+z-G*z;const bt=2*G-K,Pt=[0,0,0];for(let Dt=0;Dt<3;Dt++)at=I+.3333333333333333*-(Dt-1),at<0&&at++,at>1&&at--,lt=6*at<1?bt+6*(K-bt)*at:2*at<1?K:3*at<2?bt+(K-bt)*(.6666666666666666-at)*6:bt,Pt[Dt]=255*lt;return Pt},D.hsl.hsv=function(P){const I=P[0];let z=P[1]/100,G=P[2]/100,K=z;const at=Math.max(G,.01);return G*=2,z*=G<=1?G:2-G,K*=at<=1?at:2-at,[I,100*(0===G?2*K/(at+K):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 K=Math.floor(I)%6,at=I-Math.floor(I),lt=255*G*(1-z),bt=255*G*(1-z*at),Pt=255*G*(1-z*(1-at));switch(G*=255,K){case 0:return[G,Pt,lt];case 1:return[bt,G,lt];case 2:return[lt,G,Pt];case 3:return[lt,bt,G];case 4:return[Pt,lt,G];case 5:return[G,lt,bt]}},D.hsv.hsl=function(P){const I=P[0],z=P[1]/100,G=P[2]/100,K=Math.max(G,.01);let at,lt;lt=(2-z)*G;const bt=(2-z)*K;return at=z*K,at/=bt<=1?bt:2-bt,at=at||0,lt/=2,[I,100*at,100*lt]},D.hwb.rgb=function(P){const I=P[0]/360;let z=P[1]/100,G=P[2]/100;const K=z+G;let at;K>1&&(z/=K,G/=K);const lt=Math.floor(6*I),bt=1-G;at=6*I-lt,0!=(1<)&&(at=1-at);const Pt=z+at*(bt-z);let Dt,zt,Vt;switch(lt){default:case 6:case 0:Dt=bt,zt=Pt,Vt=z;break;case 1:Dt=Pt,zt=bt,Vt=z;break;case 2:Dt=z,zt=bt,Vt=Pt;break;case 3:Dt=z,zt=Pt,Vt=bt;break;case 4:Dt=Pt,zt=z,Vt=bt;break;case 5:Dt=bt,zt=z,Vt=Pt}return[255*Dt,255*zt,255*Vt]},D.cmyk.rgb=function(P){const z=P[1]/100,G=P[2]/100,K=P[3]/100;return[255*(1-Math.min(1,P[0]/100*(1-K)+K)),255*(1-Math.min(1,z*(1-K)+K)),255*(1-Math.min(1,G*(1-K)+K))]},D.xyz.rgb=function(P){const I=P[0]/100,z=P[1]/100,G=P[2]/100;let K,at,lt;return K=3.2406*I+-1.5372*z+-.4986*G,at=-.9689*I+1.8758*z+.0415*G,lt=.0557*I+-.204*z+1.057*G,K=K>.0031308?1.055*K**.4166666666666667-.055:12.92*K,at=at>.0031308?1.055*at**.4166666666666667-.055:12.92*at,lt=lt>.0031308?1.055*lt**.4166666666666667-.055:12.92*lt,K=Math.min(Math.max(0,K),1),at=Math.min(Math.max(0,at),1),lt=Math.min(Math.max(0,lt),1),[255*K,255*at,255*lt]},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 K=z**3,at=I**3,lt=G**3;return z=K>.008856?K:(z-.13793103448275862)/7.787,I=at>.008856?at:(I-.13793103448275862)/7.787,G=lt>.008856?lt:(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 K;return K=360*Math.atan2(G,z)/2/Math.PI,K<0&&(K+=360),[I,Math.sqrt(z*z+G*G),K]},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,K]=P;let at=null===I?D.rgb.hsv(P)[2]:I;if(at=Math.round(at/50),0===at)return 30;let lt=30+(Math.round(K/255)<<2|Math.round(G/255)<<1|Math.round(z/255));return 2===at&&(lt+=60),lt},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(K=>K+K).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,K=Math.max(Math.max(I,z),G),at=Math.min(Math.min(I,z),G),lt=K-at;let bt,Pt;return bt=lt<1?at/(1-lt):0,Pt=lt<=0?0:K===I?(z-G)/lt%6:K===z?2+(G-I)/lt:4+(I-z)/lt,Pt/=6,Pt%=1,[360*Pt,100*lt,100*bt]},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 K=0;return G<1&&(K=(z-.5*G)/(1-G)),[P[0],100*G,100*K]},D.hsv.hcg=function(P){const z=P[2]/100,G=P[1]/100*z;let K=0;return G<1&&(K=(z-G)/(1-G)),[P[0],100*G,100*K]},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 K=[0,0,0],at=P[0]/360%1*6,lt=at%1,bt=1-lt;let Pt=0;switch(Math.floor(at)){case 0:K[0]=1,K[1]=lt,K[2]=0;break;case 1:K[0]=bt,K[1]=1,K[2]=0;break;case 2:K[0]=0,K[1]=1,K[2]=lt;break;case 3:K[0]=0,K[1]=bt,K[2]=1;break;case 4:K[0]=lt,K[1]=0,K[2]=1;break;default:K[0]=1,K[1]=0,K[2]=bt}return Pt=(1-z)*G,[255*(z*K[0]+Pt),255*(z*K[1]+Pt),255*(z*K[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 K=0;return G<1&&(K=(z-G)/(1-G)),[P[0],100*G,100*K]},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,C)=>{const U=C(4959),k=C(9325),D={};Object.keys(U).forEach(P=>{D[P]={},Object.defineProperty(D[P],"channels",{value:U[P].channels}),Object.defineProperty(D[P],"labels",{value:U[P].labels});const I=k(P);Object.keys(I).forEach(z=>{const G=I[z];D[P][z]=function(K){const at=function(...lt){const bt=lt[0];if(null==bt)return bt;bt.length>1&&(lt=bt);const Pt=K(lt);if("object"==typeof Pt)for(let Dt=Pt.length,zt=0;zt1&&(lt=bt),K(lt))};return"conversion"in K&&(at.conversion=K.conversion),at}(G)})}),t.exports=D},9325:(t,A,C)=>{const U=C(4959);function D(I,z){return function(G){return z(I(G))}}function P(I,z){const G=[z[I].parent,I];let K=U[z[I].parent][I],at=z[I].parent;for(;z[at].parent;)G.unshift(z[at].parent),K=D(U[z[at].parent][at],K),at=z[at].parent;return K.conversion=G,K}t.exports=function(I){const z=function k(I){const z=function(){const K={},at=Object.keys(U);for(let lt=at.length,bt=0;bt{"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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.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 C=[];return C.toString=function(){return this.map(function(U){var k=A(U);return U[2]?"@media ".concat(U[2]," {").concat(k,"}"):k}).join("")},C.i=function(U,k,D){"string"==typeof U&&(U=[[null,U,""]]);var P={};if(D)for(var I=0;I{"use strict";function C(U,k){(null==k||k>U.length)&&(k=U.length);for(var D=0,P=new Array(k);D{"use strict";var U,Vt,D=(Vt={},function(nt){if(void 0===Vt[nt]){var Tt=document.querySelector(nt);if(window.HTMLIFrameElement&&Tt instanceof window.HTMLIFrameElement)try{Tt=Tt.contentDocument.head}catch{Tt=null}Vt[nt]=Tt}return Vt[nt]}),P=[];function I(Vt){for(var nt=-1,Tt=0;Tt{var A=t&&t.__esModule?()=>t.default:()=>t;return v.d(A,{a:A}),A},v.d=(t,A)=>{for(var C in A)v.o(A,C)&&!v.o(t,C)&&Object.defineProperty(t,C,{enumerable:!0,get:A[C]})},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",(_,x)=>{if(!r())return;const M="function"==typeof x.composedPath?x.composedPath():[],E="function"==typeof u?u():u;for(const F of E)if(F.contains(x.target)||M.includes(F))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 C({view:m}){m.listenTo(m.element,"submit",(r,c)=>{c.preventDefault(),m.fire("submit")},{useCapture:!0})}v.d(T,{default:()=>m7});const U=function(){try{return navigator.userAgent.toLowerCase()}catch{return""}}(),D_isMac=P(U),D_isGecko=(U.indexOf("windows"),!!U.match(/gecko\/\d+/)),D_isSafari=(m=U).indexOf(" applewebkit/")>-1&&-1===m.indexOf("chrome"),D_isiOS=function(m){return!!m.match(/iphone|ipad/i)||P(m)&&navigator.maxTouchPoints>0}(U),D_isAndroid=function(m){return m.indexOf("android")>-1}(U),D_isBlink=function(m){return m.indexOf("chrome/")>-1&&m.indexOf("edge/")<0}(U);var m;function P(m){return m.indexOf("macintosh")>-1}function I(m,r,c,u){c=c||function(F,V){return F===V};const _=Array.isArray(m)?m:Array.prototype.slice.call(m),x=Array.isArray(r)?r:Array.prototype.slice.call(r),M=function(F,V,W){const dt=z(F,V,W);if(-1===dt)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const Ae=z(G(F,dt),G(V,dt),W);return{firstIndex:dt,lastIndexOld:F.length-Ae,lastIndexNew:V.length-Ae}}(_,x,c);return u?function(F,V){const{firstIndex:W,lastIndexOld:dt,lastIndexNew:Zt}=F;if(-1===W)return Array(V).fill("equal");let ue=[];return W>0&&(ue=ue.concat(Array(W).fill("equal"))),Zt-W>0&&(ue=ue.concat(Array(Zt-W).fill("insert"))),dt-W>0&&(ue=ue.concat(Array(dt-W).fill("delete"))),Zt0&&W.push({index:dt,type:"insert",values:F.slice(dt,ue)}),Zt-dt>0&&W.push({index:dt+(ue-dt),type:"delete",howMany:Zt-dt}),W}(x,M)}function z(m,r,c){for(let u=0;u200||_>200||u+_>300)return K.fastDiff(m,r,c,!0);let x,M;if(_Dn?-1:1;W[Ie+di]&&(W[Ie]=W[Ie+di].slice(0)),W[Ie]||(W[Ie]=[]),W[Ie].push(ln>Dn?x:M);let Ri=Math.max(ln,Dn),Go=Ri-Ie;for(;GoV;ue--)dt[ue]=Zt(ue);dt[V]=Zt(V),Ae++}while(dt[V]!==F);return W[V].slice(1)}!function(){let m=!1;try{m=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch{}}(),K.fastDiff=I;class lt{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 bt=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"+bt[m>>0&255]+bt[m>>8&255]+bt[m>>16&255]+bt[m>>24&255]+bt[r>>0&255]+bt[r>>8&255]+bt[r>>16&255]+bt[r>>24&255]+bt[c>>0&255]+bt[c>>8&255]+bt[c>>16&255]+bt[c>>24&255]+bt[u>>0&255]+bt[u>>8&255]+bt[u>>16&255]+bt[u>>24&255]}const Dt={get(m="normal"){return"number"!=typeof m?this[m]||this.normal:m},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function zt(m,r){const c=Dt.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})}`:"")+ft(_)}(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 nt(r.message,c);throw u.stack=r.stack,u}}function Tt(m,r){console.warn(...Et(m,r))}function At(m,r){console.error(...Et(m,r))}function ft(m){return`\nRead more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${m}`}function Et(m,r){const c=ft(m);return r?[m,r,c]:[m,c]}const It=new Date(2023,9,4);if(globalThis.CKEDITOR_VERSION)throw new nt("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION="40.0.0";const se=Symbol("listeningTo"),Jt=Symbol("emitterId"),ve=Symbol("delegations"),xe=Oe(Object);function Oe(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,(x,...M)=>{_||(_=!0,x.off(),c.call(this,x,...M))},u)}off(r,c){this.stopListening(this,r,c)}listenTo(r,c,u,_={}){let x,M;this[se]||(this[se]={});const E=this[se];$e(r)||qe(r);const F=$e(r);var W,dt,Zt,ue;(x=E[F])||(x=E[F]={emitter:r,callbacks:{}}),(M=x.callbacks[c])||(M=x.callbacks[c]=[]),M.push(u),dt=c,Zt=u,ue=_,(W=r)._addEventListener?W._addEventListener(dt,Zt,ue):this._addEventListener.call(W,dt,Zt,ue)}stopListening(r,c,u){const _=this[se];let x=r&&$e(r);const M=_&&x?_[x]:void 0,E=M&&c?M.callbacks[c]:void 0;if(!(!_||r&&!M||c&&!E))if(u)de(this,r,c,u),-1!==E.indexOf(u)&&(1===E.length?delete M.callbacks[c]:de(this,r,c,u));else if(E){for(;u=E.pop();)de(this,r,c,u);delete M.callbacks[c]}else if(M){for(c in M.callbacks)this.stopListening(r,c);delete _[x]}else{for(x in _)this.stopListening(_[x].emitter);delete this[se]}}fire(r,...c){try{const u=r instanceof lt?r:new lt(this,r),_=u.name;let x=ae(this,_);if(u.path.push(this),x){const E=[u,...c];x=Array.from(x);for(let F=0;F{this[ve]||(this[ve]=new Map),r.forEach(_=>{const x=this[ve].get(_);x?x.set(c,u):this[ve].set(_,new Map([[c,u]]))})}}}stopDelegating(r,c){if(this[ve])if(r)if(c){const u=this[ve].get(r);u&&u.delete(c)}else this[ve].delete(r);else this[ve].clear()}_addEventListener(r,c,u){!function(M,E){const F=Xt(M);if(F[E])return;let V=E,W=null;const dt=[];for(;""!==V&&!F[V];)F[V]={callbacks:[],childEvents:[]},dt.push(F[V]),W&&F[V].childEvents.push(W),W=V,V=V.substr(0,V.lastIndexOf(":"));if(""!==V){for(const Zt of dt)Zt.callbacks=F[V].callbacks.slice();F[V].childEvents.push(W)}}(this,r);const _=we(this,r),x={callback:c,priority:Dt.get(u.priority)};for(const M of _)zt(M,x)}_removeEventListener(r,c){const u=we(this,r);for(const _ of u)for(let x=0;x<_.length;x++)_[x].callback==c&&(_.splice(x,1),x--)}}:xe}function qe(m,r){m[Jt]||(m[Jt]=r||Pt())}function $e(m){return m[Jt]}function Xt(m){return m._events||Object.defineProperty(m,"_events",{value:{}}),m._events}function we(m,r){const c=Xt(m)[r];if(!c)return[];let u=[c.callbacks];for(let _=0;_-1?ae(m,r.substr(0,r.lastIndexOf(":"))):null}function Kt(m,r,c){for(let[u,_]of m){_?"function"==typeof _&&(_=_(r.name)):_=r.name;const x=new lt(r.source,_);x.path=[...r.path],u.fire(x,...c)}}function de(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=>{Oe[m]=xe.prototype[m]});const Wt=function(m){var r=typeof m;return null!=m&&("object"==r||"function"==r)},re=Symbol("observableProperties"),Pe=Symbol("boundObservables"),on=Symbol("boundProperties"),_n=Symbol("decoratedMethods"),ye=Symbol("decoratedOriginal"),gn=Ue(Oe());function Ue(m){return m?class extends m{set(r,c){if(Wt(r))return void Object.keys(r).forEach(_=>{this.set(_,r[_])},this);un(this);const u=this[re];if(r in this&&!u.has(r))throw new nt("observable-set-cannot-override",this);Object.defineProperty(this,r,{enumerable:!0,configurable:!0,get:()=>u.get(r),set(_){const x=u.get(r);let M=this.fire(`set:${r}`,r,_,x);void 0===M&&(M=_),x===M&&u.has(r)||(u.set(r,M),this.fire(`change:${r}`,r,M,x))}}),this[r]=c}bind(...r){if(!r.length||!bi(r))throw new nt("observable-bind-wrong-properties",this);if(new Set(r).size!==r.length)throw new nt("observable-bind-duplicate-properties",this);un(this);const c=this[on];r.forEach(_=>{if(c.has(_))throw new nt("observable-bind-rebind",this)});const u=new Map;return r.forEach(_=>{const x={property:_,to:[]};c.set(_,x),u.set(_,x)}),{to:Mn,toMany:oi,_observable:this,_bindProperties:r,_to:[],_bindings:u}}unbind(...r){if(!this[re])return;const c=this[on],u=this[Pe];if(r.length){if(!bi(r))throw new nt("observable-unbind-wrong-properties",this);r.forEach(_=>{const x=c.get(_);x&&(x.to.forEach(([M,E])=>{const F=u.get(M),V=F[E];V.delete(x),V.size||delete F[E],Object.keys(F).length||(u.delete(M),this.stopListening(M,"change"))}),c.delete(_))})}else u.forEach((_,x)=>{this.stopListening(x,"change")}),u.clear(),c.clear()}decorate(r){un(this);const c=this[r];if(!c)throw new nt("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][ye]=c,this[_n]||(this[_n]=[]),this[_n].push(r)}stopListening(r,c,u){if(!r&&this[_n]){for(const _ of this[_n])this[_]=this[_][ye];delete this[_n]}super.stopListening(r,c,u)}}:gn}function un(m){m[re]||(Object.defineProperty(m,re,{value:new Map}),Object.defineProperty(m,Pe,{value:new Map}),Object.defineProperty(m,on,{value:new Map}))}function Mn(...m){const r=function(...x){if(!x.length)throw new nt("observable-bind-to-parse-error",null);const M={to:[]};let E;return"function"==typeof x[x.length-1]&&(M.callback=x.pop()),x.forEach(F=>{if("string"==typeof F)E.properties.push(F);else{if("object"!=typeof F)throw new nt("observable-bind-to-parse-error",null);E={observable:F,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 nt("observable-bind-to-no-callback",this);if(u>1&&r.callback)throw new nt("observable-bind-to-extra-callback",this);var _;r.to.forEach(x=>{if(x.properties.length&&x.properties.length!==u)throw new nt("observable-bind-to-properties-length",this);x.properties.length||(x.properties=this._bindProperties)}),this._to=r.to,r.callback&&(this._bindings.get(c[0]).callback=r.callback),_=this._observable,this._to.forEach(x=>{const M=_[Pe];let E;M.get(x.observable)||_.listenTo(x.observable,"change",(F,V)=>{E=M.get(x.observable)[V],E&&E.forEach(W=>{ri(_,W.property)})})}),function(x){let M;x._bindings.forEach((E,F)=>{x._to.forEach(V=>{M=V.properties[E.callback?0:x._bindProperties.indexOf(F)],E.to.push([V.observable,M]),function(W,dt,Zt,ue){const Ae=W[Pe],Ie=Ae.get(Zt),ln=Ie||{};ln[ue]||(ln[ue]=new Set),ln[ue].add(dt),Ie||Ae.set(Zt,ln)}(x._observable,E,V.observable,M)})})}(this),this._bindProperties.forEach(x=>{ri(this._observable,x)})}function oi(m,r,c){if(this._bindings.size>1)throw new nt("observable-bind-to-many-not-one-binding",this);this.to(...function(u,_){const x=u.map(M=>[M,_]);return Array.prototype.concat.apply([],x)}(m,r),c)}function bi(m){return m.every(r=>"string"==typeof r)}function ri(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=>{Ue[m]=gn.prototype[m]});class Ke{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 ne(m){let r=0;for(const c of m)r++;return r}function ct(m,r){const c=Math.min(m.length,r.length);for(let u=0;u-1},mn.prototype.set=function(m,r){var c=this.__data__,u=he(c,m);return u<0?(++this.size,c.push([m,r])):c[u][1]=r,this};const An=mn,Fo=function(m){if(!Wt(m))return!1;var r=jn(m);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},ca=oe["__core-js_shared__"];var Ia=function(){var m=/[^.]+$/.exec(ca&&ca.keys&&ca.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),Ge=Function.prototype.toString;const In=function(m){if(null!=m){try{return Ge.call(m)}catch{}try{return m+""}catch{}}return""};var He=/^\[object .+?Constructor\]$/,Q=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Rn=function(m,r){var c=function(m,r){return m?.[r]}(m,r);return function(m){return!(!Wt(m)||function(m){return!!Ia&&Ia in m}(m))&&(Fo(m)?Q:He).test(In(m))}(c)?c:void 0},Gi=Rn(oe,"Map"),Co=Rn(Object,"create");var ls=Object.prototype.hasOwnProperty,Er=Object.prototype.hasOwnProperty;function Br(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=et&&!et.nodeType&&et,Yl=qu&&ot&&!ot.nodeType&&ot,xc=Yl&&Yl.exports===qu&&kt.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 fn(m)&&zl(m.length)&&!!qo[jn(m)]};var bu=Object.prototype.hasOwnProperty;const Dr=function(m,r){var c=Ye(m),u=!c&&Rl(m),_=!c&&!u&&ks(m),x=!c&&!u&&!_&&Jc(m),M=c||u||_||x,E=M?function(m,r){for(var c=-1,u=Array(m);++c{this._setToTarget(r,_,c[_],u)})}}function hn(m){return So(m,Ve)}function Ve(m){return la(m)?m:void 0}function ge(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(Oe());function Xi(m){return m?class extends m{listenTo(r,c,u,_={}){if(ge(r)||Au(r)){const x={capture:!!_.useCapture,passive:!!_.usePassive},M=this._getProxyEmitter(r,x)||new fd(r,x);this.listenTo(M,c,u,_)}else super.listenTo(r,c,u,_)}stopListening(r,c,u){if(ge(r)||Au(r)){const _=this._getAllProxyEmitters(r);for(const x of _)this.stopListening(x,c,u)}else super.stopListening(r,c,u)}_getProxyEmitter(r,c){return function(u,_){const x=u[se];return x&&x[_]?x[_].emitter:null}(this,ts(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(Oe()){constructor(r,c){super(),qe(this,ts(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),Oe().prototype._addEventListener.call(this,r,c,u)}_removeEventListener(r,c){Oe().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 ts(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 Mt=zu;function me(m){return"[object Text]"==Object.prototype.toString.call(m)}function jt(m){return"[object Range]"==Object.prototype.toString.apply(m)}function Qe(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 On(m){return m&&m.parentNode?m.offsetParent===Mt.document.body?null:m.offsetParent:null}const Nt=["top","right","bottom","left","width","height"];class ce{constructor(r){const c=jt(r);if(Object.defineProperty(this,"_source",{value:r._source||r,writable:!0,enumerable:!1}),vn(r)||c)if(c){const u=ce.getDomRangeRects(r);Me(this,ce.getBoundingRect(u))}else Me(this,r.getBoundingClientRect());else if(Au(r)){const{innerWidth:u,innerHeight:_}=r;Me(this,{top:0,right:u,bottom:_,left:0,width:u,height:_})}else Me(this,r)}clone(){return new ce(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 ce(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(tn(r))return c;let u,_=r,x=r.parentNode||r.commonAncestorContainer;for(;x&&!tn(x);){const E="visible"===((M=x)instanceof HTMLElement?M.ownerDocument.defaultView.getComputedStyle(M).overflow:"visible");_ instanceof HTMLElement&&"absolute"===Gn(_)&&(u=_);const F=Gn(x);if(E||u&&("relative"===F&&E||"relative"!==F)){_=x,x=x.parentNode;continue}const V=new ce(x),W=c.getIntersection(V);if(!W)return null;W.getArea(){for(const r of m){const c=Qn._getElementCallbacks(r.target);if(c)for(const u of c)u(r)}})}};let yi=Qn;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 es({element:m,target:r,positions:c,limiter:u,fitInViewport:_,viewportOffsetConfig:x}){Fo(r)&&(r=r()),Fo(u)&&(u=u());const M=On(m),E=function(Zt){Zt=Object.assign({top:0,bottom:0,left:0,right:0},Zt);const ue=new ce(Mt.window);return ue.top+=Zt.top,ue.height-=Zt.top,ue.bottom-=Zt.bottom,ue.height-=Zt.bottom,ue}(x),F=new ce(m),V=Hs(r,E);let W;if(!V||!E.getIntersection(V))return null;const dt={targetRect:V,elementRect:F,positionedElementAncestor:M,viewportRect:E};if(u||_){if(u){const Zt=Hs(u,E);Zt&&(dt.limiterRect=Zt)}W=function(Zt,ue){const{elementRect:Ae}=ue,Ie=Ae.getArea(),ln=Zt.map(Ri=>new ns(Ri,ue)).filter(Ri=>!!Ri.name);let Dn=0,di=null;for(const Ri of ln){const{limiterIntersectionArea:Go,viewportIntersectionArea:Da}=Ri;if(Go===Ie)return Ri;const ws=fa(Da,2)+fa(Go,2);ws>Dn&&(Dn=ws,di=Ri)}return di}(c,dt)}else W=new ns(c[0],dt);return W}function Hs(m,r){const c=new ce(m).getVisible();return c?c.getIntersection(r):null}class ns{constructor(r,c){const u=r(c.targetRect,c.elementRect,c.viewportRect,c.limiterRect);if(!u)return;const{left:_,top:x,name:M,config:E}=u;this.name=M,this.config=E,this._positioningFunctionCoordinates={left:_,top:x},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 is(m){const r=m.parentNode;r&&r.removeChild(m)}function ds({window:m,rect:r,alignToTop:c,forceScroll:u,viewportOffset:_}){const x=r.clone().moveBy(0,_.bottom),M=r.clone().moveBy(0,-_.top),E=new ce(m).excludeScrollbarsAndBorders(),F=c&&u,V=[M,x].every(Ae=>E.contains(Ae));let{scrollX:W,scrollY:dt}=m;const Zt=W,ue=dt;F?dt-=E.top-r.top+_.top:V||(Nc(M,E)?dt-=E.top-r.top+_.top:Xs(x,E)&&(dt+=c?r.top-E.top-_.top:r.bottom-E.bottom+_.bottom)),V||(os(r,E)?W-=E.left-r.left+_.left:Rd(r,E)&&(W+=r.right-E.right+_.right)),W==Zt&&dt===ue||m.scrollTo(W,dt)}function Hr({parent:m,getRect:r,alignToTop:c,forceScroll:u,ancestorOffset:_=0,limiterElement:x}){const M=cr(m),E=c&&u;let F,V,W;const dt=x||M.document.body;for(;m!=dt;)V=r(),F=new ce(m).excludeScrollbarsAndBorders(),W=F.contains(V),E?m.scrollTop-=F.top-V.top+_:W||(Nc(V,F)?m.scrollTop-=F.top-V.top+_:Xs(V,F)&&(m.scrollTop+=c?V.top-F.top-_:V.bottom-F.bottom+_)),W||(os(V,F)?m.scrollLeft-=F.left-V.left+_:Rd(V,F)&&(m.scrollLeft+=V.right-F.right+_)),m=m.parentNode}function Xs(m,r){return m.bottom>r.bottom}function Nc(m,r){return m.topr.right}function cr(m){return jt(m)?m.startContainer.ownerDocument.defaultView:m.ownerDocument.defaultView}function lr(m){if(jt(m)){let r=m.commonAncestorContainer;return me(r)&&(r=r.parentNode),r}return m.parentNode}function As(m,r){const c=cr(m),u=new ce(m);if(c===r)return u;{let _=c;for(;_!=r;){const M=new ce(_.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 nt("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]}Mt.window.CKEDITOR_TRANSLATIONS||(Mt.window.CKEDITOR_TRANSLATIONS={});const jl=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function Yu(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=Yu(this.uiLanguage),this.contentLanguageDirection=Yu(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 nt("translation-service-quantity-not-a-number",null,{quantity:c});const u=Object.keys(Mt.window.CKEDITOR_TRANSLATIONS).length;1===u&&(m=Object.keys(Mt.window.CKEDITOR_TRANSLATIONS)[0]);const _=r.id||r.string;if(0===u||(!Mt.window.CKEDITOR_TRANSLATIONS[F=m]||!Mt.window.CKEDITOR_TRANSLATIONS[F].dictionary[_]))return 1!==c?r.plural:r.string;var F;const M=Mt.window.CKEDITOR_TRANSLATIONS[m].getPluralForm||(F=>1===F?0:1),E=Mt.window.CKEDITOR_TRANSLATIONS[m].dictionary[_];return"string"==typeof E?E:E[Number(M(c))]}(this.uiLanguage,r,r.plural?c[0]:1),x=c,_.replace(/%(\d+)/g,(M,E)=>Ethis._items.length||c<0)throw new nt("collection-add-item-invalid-index",this);let u=0;for(const _ of r){const x=this._getItemIdBeforeAdding(_),M=c+u;this._items.splice(M,0,_),this._itemMap.set(x,_),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 nt("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 nt("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=(_,x,M)=>{const E=c._bindToCollection==this,F=c._bindToInternalToExternalMap.get(x);if(E&&F)this._bindToExternalToInternalMap.set(x,F),this._bindToInternalToExternalMap.set(F,x);else{const V=r(x);if(!V)return void this._skippedIndexesFromExternal.push(M);let W=M;for(const dt of this._skippedIndexesFromExternal)M>dt&&W--;for(const dt of c._skippedIndexesFromExternal)W>=dt&&W++;this._bindToExternalToInternalMap.set(x,V),this._bindToInternalToExternalMap.set(V,x),this.add(V,W);for(let dt=0;dt{const E=this._bindToExternalToInternalMap.get(x);E&&this.remove(E),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((F,V)=>(MV&&F.push(V),F),[])})}_getItemIdBeforeAdding(r){const c=this._idProperty;let u;if(c in r){if(u=r[c],"string"!=typeof u)throw new nt("collection-add-invalid-id",this);if(this.get(u))throw new nt("collection-add-item-already-exists",this)}else r[c]=u=Pt();return u}_remove(r){let c,u,_,x=!1;const M=this._idProperty;if("string"==typeof r?(u=r,_=this._itemMap.get(u),x=!_,_&&(c=this._items.indexOf(_))):"number"==typeof r?(c=r,_=this._items[c],x=!_,_&&(u=_[M])):(_=r,u=_[M],c=this._items.indexOf(_),x=-1==c||!this._itemMap.get(u)),x)throw new nt("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 as(m){const r=m.next();return r.done?null:r.value}class rs extends(Xi(Ue())){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 nt("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 it(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 cn(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 nt("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 x of r)_.delegate(x).to(c)}),this.on("remove",(u,_)=>{for(const x of r)_.stopDelegating(x,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),No=v.n(E1),gd=v(4793);No()(gd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class oa extends(Xi(Ue())){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 Na(r);return this._viewCollections.add(c),c}registerChild(r){it(r)||(r=[r]);for(const c of r)this._unboundChildren.add(c)}deregisterChild(r){it(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 nt("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(Oe()){constructor(r){super(),Object.assign(this,Oa(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 nt("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)ie(u)?yield u:De(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,_,x)=>new v_({observable:r,emitter:c,attribute:u,valueIfTrue:_,callback:x})}}static extend(r,c){if(r._isRendered)throw new nt("template-extend-render",[this,r]);pt(r,Oa(zd(c)))}_renderNode(r){let c;if(c=r.node?this.tag&&this.text:this.tag?this.text:!this.text,c)throw new nt("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(""),B(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 x=c.getAttribute(_),M=this.attributes[_];u&&(u.attributes[_]=x);const E=Nn(M)?M[0].ns:null;if(B(M)){const F=Nn(M)?M[0].value:M;u&&Ii(_)&&F.unshift(x),this._bindToObservable({schema:F,updater:x_(c,_,E),data:r})}else if("style"==_&&"string"!=typeof M[0])this._renderStyleAttribute(M[0],r);else{u&&x&&Ii(_)&&M.unshift(x);const F=M.map(V=>V&&V.value||V).reduce((V,W)=>V.concat(W),[]).reduce(vt,"");Yt(F)||c.setAttributeNS(E,_,F)}}}_renderStyleAttribute(r,c){const u=c.node;for(const _ in r){const x=r[_];B(x)?this._bindToObservable({schema:[x],updater:pp(u,_),data:c}):u.style[_]=x}}_renderElementChildren(r){const c=r.node,u=r.intoFragment?document.createDocumentFragment():c,_=r.isApplying;let x=0;for(const M of this.children)if(Un(M)){if(!_){M.setParent(c);for(const E of M)u.appendChild(E.element)}}else if(ie(M))_||(M.isRendered||M.render(),u.appendChild(M.element));else if(ge(M))u.appendChild(M);else if(_){const E={children:[],bindings:[],attributes:{}};r.revertData.children.push(E),M._renderNode({intoFragment:!1,node:u.childNodes[x++],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[x,M]=c.split("@");return _.activateDomEventListener(x,M,r)});r.revertData&&r.revertData.bindings.push(u)}}_bindToObservable({schema:r,updater:c,data:u}){const _=u.revertData;Jo(r,c,u);const x=r.filter(M=>!Yt(M)).filter(M=>M.observable).map(M=>M.activateAttributeListener(r,c,u));_&&_.bindings.push(x)}_revertTemplateFromNode(r,c){for(const _ of c.bindings)for(const x of _)x();if(c.text)return void(r.textContent=c.text);const u=r;for(const _ in c.attributes){const x=c.attributes[_];null===x?u.removeAttribute(_):u.setAttribute(_,x)}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 Bu{constructor(r){super(r),this.eventNameOrFunction=r.eventNameOrFunction}activateDomEventListener(r,c,u){const _=(x,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 Bu{constructor(r){super(r),this.valueIfTrue=r.valueIfTrue}getValue(r){return!Yt(super.getValue(r))&&(this.valueIfTrue||!0)}}function B(m){return!!m&&(m.value&&(m=m.value),Array.isArray(m)?m.some(B):m instanceof Bu)}function Jo(m,r,{node:c}){const u=(M=c,m.map(E=>E instanceof Bu?E.getValue(M):E));var M;let _;_=1==m.length&&m[0]instanceof v_?u[0]:u.reduce(vt,""),Yt(_)?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 pp(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 Bu||De(r)||ie(r)||Un(r)))return r})}function Oa(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(Un(m.children))r.push(m.children);else for(const c of m.children)De(c)||ie(c)||ge(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 vt(m,r){return Yt(r)?m:Yt(m)?r:`${m} ${r}`}function yt(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={}),yt(m.attributes,r.attributes)),r.eventListeners&&(m.eventListeners||(m.eventListeners={}),yt(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 nt("ui-template-extend-children-mismatch",m);let c=0;for(const u of r.children)pt(m.children[c++],u)}}function Yt(m){return!m&&0!==m}function ie(m){return m instanceof oa}function De(m){return m instanceof Ur}function Un(m){return m instanceof Na}function Nn(m){return Wt(m[0])&&m[0].ns}function Ii(m){return"class"==m||"style"==m}class Qi extends Na{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=We(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);No()(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);No()(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 x={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)),x.on.mousedown=u.to(()=>{this._focusDelayed()}),x.on.mouseup=u.to(()=>{this._focusDelayed.cancel()})),this.setTemplate(x)}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 Zn=v(5332);No()(Zn.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class ys 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);No()(ha.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),v(1103),v(841);var vd=v(3662);No()(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);No()(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 x=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",x.to("class"),x.if("isEnabled","ck-disabled",M=>!M),x.if("isEmpty","ck-labeled-field-view_empty"),x.if("isFocused","ck-labeled-field-view_focused"),x.if("placeholder","ck-labeled-field-view_placeholder"),x.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 rs,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 mp=v(4879);No()(mp.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 vg extends Gp{constructor(r){super(r),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var I1=v(8182);No()(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():Tt("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);No()(nc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const N1=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 rs,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 _=N1._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:x,southMiddleEast:M,southMiddleWest:E,northMiddleEast:F,northMiddleWest:V}=N1.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[c,u,M,E,m,_,x,F,V,r]:[u,c,E,M,m,x,_,V,F,r]}};let Uu=N1;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=es;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 ul extends(Oe()){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(_,(x,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 x=this.focusables.get(_);if(Im(x))return x;_=(_+u+r)%u}while(_!==c);return null}}function Im(m){return!(!("focus"in m)||!ra(m.element))}class dl extends oa{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class Z2 extends oa{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function _p(m){return Array.isArray(m)?{items:m,removeItems:[]}:m?Object.assign({items:[],removeItems:[]},m):{items:[],removeItems:[]}}class lo extends(Ue()){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",fp,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",fp),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function fp(m){m.return=!1,m.stop()}class Za extends(Ue()){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",F1,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",F1),this.refresh())}execute(...r){}destroy(){this.stopListening()}}function F1(m){m.return=!1,m.stop()}class Qp extends Za{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...r){const c=this._getFirstEnabledCommand();return!!c&&c.execute(r)}registerChildCommand(r,c={}){zt(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 Ef extends(Oe()){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[_,x]of u)this._contextPlugins.set(_,x),this._contextPlugins.set(x,_),_.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 nt("plugincollection-plugin-not-loaded",this._context,{plugin:u})}return c}has(r){return this._plugins.has(r)}init(r,c=[],u=[]){const _=this,x=this._context;(function Ae(Ie,ln=new Set){Ie.forEach(Dn=>{F(Dn)&&(ln.has(Dn)||(ln.add(Dn),Dn.pluginName&&!_._availablePlugins.has(Dn.pluginName)&&_._availablePlugins.set(Dn.pluginName,Dn),Dn.requires&&Ae(Dn.requires,ln)))})})(r),Zt(r);const M=[...function Ae(Ie,ln=new Set){return Ie.map(Dn=>F(Dn)?Dn:_._availablePlugins.get(Dn)).reduce((Dn,di)=>ln.has(di)?Dn:(ln.add(di),di.requires&&(Zt(di.requires,di),Ae(di.requires,ln).forEach(Ri=>Dn.add(Ri))),Dn.add(di)),new Set)}(r.filter(Ae=>!W(Ae,c)))];!function(Ae,Ie){for(const ln of Ie){if("function"!=typeof ln)throw new nt("plugincollection-replace-plugin-invalid-type",null,{pluginItem:ln});const Dn=ln.pluginName;if(!Dn)throw new nt("plugincollection-replace-plugin-missing-name",null,{pluginItem:ln});if(ln.requires&&ln.requires.length)throw new nt("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:Dn});const di=_._availablePlugins.get(Dn);if(!di)throw new nt("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:Dn});const Ri=Ae.indexOf(di);if(-1===Ri){if(_._contextPlugins.has(di))return;throw new nt("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:Dn})}if(di.requires&&di.requires.length)throw new nt("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:Dn});Ae.splice(Ri,1,ln),_._availablePlugins.set(Dn,ln)}}(M,u);const E=M.map(Ae=>{let Ie=_._contextPlugins.get(Ae);return Ie=Ie||new Ae(x),_._add(Ae,Ie),Ie});return ue(E,"init").then(()=>ue(E,"afterInit")).then(()=>E);function F(Ae){return"function"==typeof Ae}function V(Ae){return F(Ae)&&!!Ae.isContextPlugin}function W(Ae,Ie){return Ie.some(ln=>ln===Ae||dt(Ae)===ln||dt(ln)===Ae)}function dt(Ae){return F(Ae)?Ae.pluginName||Ae.name:Ae}function Zt(Ae,Ie=null){Ae.map(ln=>F(ln)?ln:_._availablePlugins.get(ln)||ln).forEach(ln=>{(function(Dn,di){if(!F(Dn))throw di?new nt("plugincollection-soft-required",x,{missingPlugin:Dn,requiredBy:dt(di)}):new nt("plugincollection-plugin-not-found",x,{plugin:Dn})})(ln,Ie),function(Dn,di){if(V(di)&&!V(Dn))throw new nt("plugincollection-context-required",x,{plugin:dt(Dn),requiredBy:dt(di)})}(ln,Ie),function(Dn,di){if(di&&W(Dn,c))throw new nt("plugincollection-required",x,{plugin:dt(Dn),requiredBy:dt(di)})}(ln,Ie)})}function ue(Ae,Ie){return Ae.reduce((ln,Dn)=>Dn[Ie]?_._contextPlugins.has(Dn)?ln:ln.then(Dn[Ie].bind(Dn)):ln,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 nt("plugincollection-plugin-name-conflict",null,{pluginName:u,plugin1:this._plugins.get(u).constructor,plugin2:r});this._plugins.set(u,c)}}}class M2{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 Ef(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 nt("context-initplugins-constructor-only",null,{Plugin:u});if(!0!==u.isContextPlugin)throw new nt("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 nt("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(Ue()){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=(x,M)=>{this.editor.execute(_),M()}}super.set(r,c,u)}}var hp=v(4717);No()(hp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Z=new WeakMap;let Ct=!1;function Y({view:m,element:r,text:c,isDirectHost:u=!0,keepOnFocus:_=!1}){const x=m.document;function M(E){Z.get(x).set(r,{text:E,isDirectHost:u,keepOnFocus:_,hostElement:u?r:null}),m.change(F=>$t(x,F))}Z.has(x)||(Z.set(x,new Map),x.registerPostFixer(E=>$t(x,E)),x.on("change:isComposing",()=>{m.change(E=>$t(x,E))},{priority:"high"})),r.is("editableElement")&&r.on("change:placeholder",(E,F,V)=>{M(V)}),r.placeholder?M(r.placeholder):c&&M(c),c&&(Ct||Tt("enableplaceholder-deprecated-text-option"),Ct=!0)}function $t(m,r){const c=Z.get(m),u=[];let _=!1;for(const[x,M]of c)M.isDirectHost&&(u.push(x),fe(r,x,M)&&(_=!0));for(const[x,M]of c){if(M.isDirectHost)continue;const E=nn(x);E&&(u.includes(E)||(M.hostElement=E,fe(r,x,M)&&(_=!0)))}return _}function fe(m,r,c){const{text:u,isDirectHost:_,hostElement:x}=c;let M=!1;return x.getAttribute("data-placeholder")!==u&&(m.setAttribute("data-placeholder",u,x),M=!0),(_||1==r.childCount)&&function(E,F){if(!E.isAttached()||Array.from(E.getChildren()).some(dt=>!dt.is("uiElement")))return!1;const V=E.document,W=V.selection.anchor;return!(V.isComposing&&W&&W.parent===E||!F&&V.isFocused&&(!W||W.parent===E))}(x,c.keepOnFocus)?(E=m,!(F=x).hasClass("ck-placeholder")&&(E.addClass("ck-placeholder",F),!0)&&(M=!0)):function ht(m,r){return!!r.hasClass("ck-placeholder")&&(m.removeClass("ck-placeholder",r),!0)}(m,x)&&(M=!0),M;var E,F}function nn(m){if(m.childCount){const r=m.getChild(0);if(r.is("element")&&!r.is("uiElement")&&!r.is("attributeElement"))return r}return null}class ni{is(){throw new Error("is() method is abstract")}}const Mi=function(m){return Pi(m,4)};class Ro extends(Oe(ni)){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 nt("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 x=0;for(;u[x]==_[x]&&u[x];)x++;return 0===x?null:u[x-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const c=this.getPath(),u=r.getPath(),_=ct(c,u);switch(_){case"prefix":return!0;case"extension":return!1;default:return c[_]r.data.length)throw new nt("view-textproxy-wrong-offsetintext",this);if(u<0||c+u>r.data.length)throw new nt("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 ps{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 _=Bd(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 x=Bd(u,_);x&&c.push({element:u,pattern:_,match:x})}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 Bd(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 x=new Set(_.getAttributeKeys());return Xe(u)?(void 0!==u.style&&Tt("matcher-pattern-deprecated-attributes-style-key",u),void 0!==u.class&&Tt("matcher-pattern-deprecated-attributes-class-key",u)):(x.delete("style"),x.delete("class")),Vd(u,x,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),x=>_.getStyle(x))}(r.styles,m),!c.styles)?null:c;var u,_}function Vd(m,r,c){const u=(M=m,Array.isArray(M)?M.map(E=>Xe(E)?(void 0!==E.key&&void 0!==E.value||Tt("matcher-pattern-missing-key-or-value",E),[E.key,E.value]):[E,!0]):Xe(M)?Object.entries(M):[[M,!0]]),_=Array.from(r),x=[];var M;if(u.forEach(([M,E])=>{_.forEach(F=>{var V,W;W=F,(!0===(V=M)||V===W||V instanceof RegExp&&W.match(V))&&function(V,W,dt){if(!0===V)return!0;const Zt=dt(W);return V===Zt||V instanceof RegExp&&!!String(Zt).match(V)}(E,F,c)&&x.push(F)})}),u.length&&!(x.length_?0:_+r),(c=c>_?_:c)<0&&(c+=_),_=r>c?0:c-r>>>0,r>>>=0;for(var x=Array(_);++u<_;)x[u]=m[u+r];return x},q1=function(m,r,c){var u=null==m?void 0:pl(m,r);return void 0===u?c:u},P2=function(m,r,c){(void 0!==c&&!Tn(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]},Zg=function m(r,c,u,_,x){r!==c&&function(r,c,u){for(var _=-1,x=Object(r),M=u(r),E=M.length;E--;){var F=M[++_];if(!1===c(x[F],F,x))break}}(c,function(M,E){if(x||(x=new iu),Wt(M))!function(m,r,c,u,_,x,M){var E=M_(m,c),F=M_(r,c),V=M.get(F);if(V)P2(m,c,V);else{var W=x?x(E,F,c+"",m,r,M):void 0,dt=void 0===W;if(dt){var Zt=Ye(F),ue=!Zt&&ks(F),Ae=!Zt&&!ue&&Jc(F);W=F,Zt||ue||Ae?Ye(E)?W=E:function(m){return fn(m)&&Ac(m)}(E)?W=uc(E):ue?(dt=!1,W=aa(F,!0)):Ae?(dt=!1,W=_t(F,!0)):W=[]:Xe(F)||Rl(F)?(W=E,Rl(E)?W=function(m){return Vs(m,us(m))}(E):Wt(E)&&!Fo(E)||(W=ll(F))):dt=!1}dt&&(M.set(F,W),_(W,F,u,x,M),M.delete(F)),P2(m,c,W)}}(r,c,E,u,m,_,x);else{var F=_?_(M_(r,E),M,E+"",r,c,x):void 0;void 0===F&&(F=M),P2(r,E,F)}},us)},ku=function(m){return m},E3=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 bp=Math.max;const Ff=function(m){return function(){return m}},Mg=vc?function(m,r){return vc(m,"toString",{configurable:!0,enumerable:!1,value:Ff(r),writable:!0})}:ku;var kg=Date.now;const k_=function(m){var r=0,c=0;return function(){var u=kg(),_=16-(u-c);if(c=u,_>0){if(++r>=800)return arguments[0]}else r=0;return m.apply(void 0,arguments)}}(Mg),qf=function(m){return function(m,r){return k_(function(m,r,c){return r=bp(void 0===r?m.length-1:r,0),function(){for(var u=arguments,_=-1,x=bp(u.length-r,0),M=Array(x);++_1?c[_-1]:void 0,M=_>2?c[2]:void 0;for(x=m.length>3&&"function"==typeof x?(_--,x):void 0,M&&function(m,r,c){if(!Wt(c))return!1;var u=typeof r;return!!("number"==u?Ac(c)&&ou(r,c.length):"string"==u&&r in c)&&Tn(c[r],m)}(c[0],c[1],M)&&(x=_<3?void 0:x,_=1),r=Object(r);++u<_;){var E=c[u];E&&m(r,E,u,x)}return r})},L2=qf(function(m,r,c){Zg(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,x=0,M=0,E=null;const F=new Map;if(""===u)return F;";"!=u.charAt(u.length-1)&&(u+=";");for(let V=0;Vu===r);return Array.isArray(c)}set(r,c){if(Wt(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=Rf(r);(function(m,r){null==m||function(m,r){null==(m=function(m,r){return r.length<2?m:pl(m,D2(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]&&!Wt(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 Lg{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(r,c,u){if(Wt(c))D_(u,Rf(r),c);else if(this._normalizers.has(r)){const _=this._normalizers.get(r),{path:x,value:M}=_(c);D_(u,x,M)}else D_(u,r,c)}getNormalized(r,c){if(!r)return L2({},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,Rf(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 x=this.getNormalized(_,r);return x&&"object"==typeof x?Object.keys(x).length:x}),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 Rf(m){return m.replace("-",".")}function D_(m,r,c){let u=c;Wt(c)&&(u=L2({},q1(m,r),c)),function(m,r,c){null==m||function(m,r,c,u){if(!Wt(m))return m;for(var _=-1,x=(r=Zu(r,m)).length,M=x-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 ps(...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 _=(x=this.document,"string"==typeof(M=c)?[new Eo(x,M)]:(it(M)||(M=[M]),Array.from(M).map(E=>"string"==typeof E?new Eo(x,E):E instanceof Ha?new Eo(x,E.data):E)));var x,M;for(const x of _)null!==x.parent&&x._remove(),x.parent=this,x.document=this.document,this._children.splice(r,0,x),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 Hf(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 vp extends Xc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=zf}}function zf(){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}vp.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 Nm extends(Ue(vp)){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",x=>x&&r.selection.editableElement==this),this.listenTo(r.selection,"change",()=>{this.isFocused=r.isFocused&&r.selection.editableElement==this})}destroy(){this.stopListening()}}Nm.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 Fm=Symbol("rootName");class qm extends Nm{constructor(r,c){super(r,c),this.rootName="main"}get rootName(){return this.getCustomProperty(Fm)}set rootName(r){this._setCustomProperty(Fm,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 nt("view-tree-walker-no-start-position",null);if(r.direction&&"forward"!=r.direction&&"backward"!=r.direction)throw new nt("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 x,M=_.data.length;return _==this._boundaryEndParent?(M=this.boundaries.end.offset,x=new Ha(_,0,M),r=Uo._createAfter(x)):(x=new Ha(_,0,_.data.length),r.offset++),this._position=r,this._formatReturnValue("text",x,c,r,M)}if("string"==typeof _){let x;x=this.singleCharacters?1:(u===this._boundaryEndParent?this.boundaries.end.offset:u.data.length)-r.offset;const M=new Ha(u,r.offset,x);return r.offset+=x,this._position=r,this._formatReturnValue("text",M,c,r,x)}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 x,M=_.data.length;if(_==this._boundaryStartParent){const E=this.boundaries.start.offset;x=new Ha(_,E,_.data.length-E),M=x.data.length,r=Uo._createBefore(x)}else x=new Ha(_,0,_.data.length),r.offset--;return this._position=r,this._formatReturnValue("text",x,c,r,M)}if("string"==typeof _){let x;x=this.singleCharacters?1:r.offset-(u===this._boundaryStartParent?this.boundaries.start.offset:0),r.offset-=x;const M=new Ha(u,r.offset,x);return this._position=r,this._formatReturnValue("text",M,c,r,x)}return r=Uo._createBefore(u),this._position=r,this._formatReturnValue("elementStart",u,c,r,1)}_formatReturnValue(r,c,u,_,x){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:x}}}}class Uo extends ni{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 Nm);){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 _=ct(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 Zs(m){return!(!m.item.is("attributeElement")&&!m.item.is("uiElement"))}Ma.prototype.is=function(m){return"range"===m||"view:range"===m};class ju extends(Oe(ni)){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=ne(this.getRanges());if(c!=ne(r.getRanges()))return!1;if(0==c)return!0;for(let u of this.getRanges()){u=u.getTrimmed();let _=!1;for(let x of r.getRanges())if(x=x.getTrimmed(),u.start.isEqual(x.start)&&u.end.isEqual(x.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 Ma)this._setRanges([c],_&&_.backward),this._setFakeOptions(_);else if(c instanceof Uo)this._setRanges([new Ma(c)]),this._setFakeOptions(_);else if(c instanceof Ro){const x=!!_&&!!_.backward;let M;if(void 0===u)throw new nt("view-selection-setto-required-second-parameter",this);M="in"==u?Ma._createIn(c):"on"==u?Ma._createOn(c):new Ma(Uo._createAt(c,u)),this._setRanges([M],x),this._setFakeOptions(_)}else{if(!it(c))throw new nt("view-selection-setto-not-selectable",this);this._setRanges(c,_&&_.backward),this._setFakeOptions(_)}this.fire("change")}setFocus(r,c){if(null===this.anchor)throw new nt("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 Ma(u,_),!0):this._addRange(new Ma(_,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 Ma))throw new nt("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 nt("view-selection-range-intersects",this,{addedRange:r,intersectingRange:c});this._ranges.push(new Ma(r.start,r.end))}}ju.prototype.is=function(m){return"selection"===m||"view:selection"===m};class P_ extends(Oe(ni)){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 xp extends lt{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 lt?r:new lt(this,r),_=Yf(this);if(!_.size)return;if(ms(u,"capturing",this),te(_,"$capture",u,...c))return u.return;const x=u.startRange||this.selection.getFirstRange(),M=x?x.getContainedElement():null,E=!!M&&Boolean(Og(_,M));let F=M||function(V){if(!V)return null;const W=V.start.parent,dt=V.end.parent,Zt=W.getPath(),ue=dt.getPath();return Zt.length>ue.length?W:dt}(x);if(ms(u,"atTarget",F),!E){if(te(_,"$text",u,...c))return u.return;ms(u,"bubbling",F)}for(;F;){if(F.is("rootElement")){if(te(_,"$root",u,...c))return u.return}else if(F.is("element")&&te(_,F.name,u,...c))return u.return;if(te(_,F,u,...c))return u.return;F=F.parent,ms(u,"bubbling",F)}return ms(u,"bubbling",this),te(_,"$document",u,...c),u.return}catch(u){nt.rethrowUnexpectedError(u,this)}}_addEventListener(r,c,u){const _=Ss(u.context||"$document"),x=Yf(this);for(const M of _){let E=x.get(M);E||(E=new(Oe()),x.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 ms(m,r,c){m instanceof xp&&(m._eventPhase=r,m._currentTarget=c)}function te(m,r,c,...u){const _="string"==typeof r?m.get(r):Og(m,r);return!!_&&(_.fire(c,...u),c.stop.called)}function Og(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(Ue())){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 nt("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(O2(this))return null;let m=this.parent;for(;m&&m.is("attributeElement");){if(O2(m)>1)return null;m=m.parent}return!m||O2(m)>1?null:this.childCount}function O2(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 E2 extends Xc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=Eg}_insertChild(r,c){if(c&&(c instanceof Ro||Array.from(c).length>0))throw new nt("view-emptyelement-cannot-add",[this,c]);return 0}}function Eg(){return null}E2.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 nt("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 nt("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(Oe(ni)){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 _=(x=this.document,"string"==typeof(M=c)?[new Eo(x,M)]:(it(M)||(M=[M]),Array.from(M).map(E=>"string"==typeof E?new Eo(x,E):E instanceof Ha?new Eo(x,E.data):E)));var x,M;for(const x of _)null!==x.parent&&x._remove(),x.parent=this,this._children.splice(r,0,x),r++,u++;return u}_removeChildren(r,c=1){this._fireChange("children",this);for(let u=r;u{const F=M[M.length-1],V=!E.is("uiElement");return F&&F.breakAttributes==V?F.nodes.push(E):M.push({breakAttributes:V,nodes:[E]}),M},[]);let _=null,x=r;for(const{nodes:M,breakAttributes:E}of u){const F=this._insertNodes(x,M,E);_||(_=F.start),x=F.end}return _?new Ma(_,x):new Ma(r)}remove(r){const c=r instanceof Ma?r:Ma._createOn(r);if(Cp(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 V of E)this._removeFromClonedElementsGroup(V);const F=this.mergeAttributes(u);return c.start=F,c.end=F.clone(),new Td(this.document,E)}clear(r,c){Cp(r,this.document);const u=r.getWalker({direction:"backward",ignoreElementEnd:!0});for(const _ of u){const x=_.item;let M;if(x.is("element")&&c.isSimilar(x))M=Ma._createOn(x);else if(!_.nextPosition.isAfter(r.start)&&x.is("$textProxy")){const E=x.getAncestors().find(F=>F.is("element")&&c.isSimilar(F));E&&(M=Ma._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,x=_.childCount;r=this._breakAttributesRange(r,!0),u=this.remove(r),c.offset+=_.childCount-x}else u=this.remove(r);return this.insert(c,u)}wrap(r,c){if(!(c instanceof tm))throw new nt("view-writer-wrap-invalid-attribute",this.document);if(Cp(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 x=this.document.selection;return x.isCollapsed&&x.getFirstPosition().isEqual(r.start)&&this.setSelection(_),new Ma(_)}return this._wrapRange(r,c)}unwrap(r,c){if(!(c instanceof tm))throw new nt("view-writer-unwrap-invalid-attribute",this.document);if(Cp(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 F=this.mergeAttributes(M.end);return new Ma(E,F)}rename(r,c){const u=new vp(this.document,r,c.getAttributes());return this.insert(Uo._createAfter(c),u),this.move(Ma._createIn(c),Uo._createAt(u,0)),this.remove(Ma._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 Ma(r,c)}createRangeOn(r){return Ma._createOn(r)}createRangeIn(r){return Ma._createIn(r)}createSelection(...r){return new ju(...r)}createSlot(r="children"){if(!this._slotFactory)throw new nt("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 _,x;if(_=u?_s(r):r.parent.is("$text")?r.parent.parent:r.parent,!_)throw new nt("view-writer-invalid-position-container",this.document);x=u?this._breakAttributes(r,!0):r.parent.is("$text")?Zc(r):r;const M=_._insertChild(x.offset,c);for(const W of c)this._addToClonedElementsGroup(W);const E=x.getShiftedBy(M),F=this.mergeAttributes(x);F.isEqual(x)||E.offset--;const V=this.mergeAttributes(E);return new Ma(F,V)}_wrapChildren(r,c,u,_){let x=c;const M=[];for(;x!1,r.parent._insertChild(r.offset,u);const _=new Ma(r,r.getShiftedBy(1));this.wrap(_,c);const x=new Uo(u.parent,u.index);u._remove();const M=x.nodeBefore,E=x.nodeAfter;return M instanceof Eo&&E instanceof Eo?Cr(M,E):Xo(x)}_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(Cp(r,this.document),r.isCollapsed){const F=this._breakAttributes(r.start,c);return new Ma(F,F)}const x=this._breakAttributes(_,c),M=x.parent.childCount,E=this._breakAttributes(u,c);return x.offset+=x.parent.childCount-M,new Ma(E,x)}_breakAttributes(r,c=!1){const u=r.offset,_=r.parent;if(r.parent.is("emptyElement"))throw new nt("view-writer-cannot-break-empty-element",this.document);if(r.parent.is("uiElement"))throw new nt("view-writer-cannot-break-ui-element",this.document);if(r.parent.is("rawElement"))throw new nt("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 x=new Uo(_.parent,_.index+1);return this._breakAttributes(x,c)}if(0===u){const x=new Uo(_.parent,_.index);return this._breakAttributes(x,c)}{const x=_.index+1,M=_._clone();_.parent._insertChild(x,M),this._addToClonedElementsGroup(M);const F=_._removeChildren(u,_.childCount-u);M._appendChild(F);const V=new Uo(_.parent,x);return this._breakAttributes(V,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 _s(m){let r=m.parent;for(;!jd(r);){if(!r)return;r=r.parent}return r}function Ys(m,r){return m.priorityr.priority)&&m.getIdentity()c instanceof u))throw new nt("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 Cp(m,r){const c=_s(m.start),u=_s(m.end);if(!c||!u||c!==u)throw new nt("view-writer-invalid-range-container",r)}function dc(m,r){return null===m.id&&null===r.id}const R1=m=>m.createTextNode("\xa0"),Ig=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:me(m)&&m.data.substr(0,7)===H1}function zm(m){return 7==m.data.length&&Pu(m)}function I2(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 Jl=v(9315);No()(Jl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class F2 extends(Ue()){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 nt("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})),x=this._diffNodeLists(u,_),M=this._findUpdateActions(x,u,_,I3);if(-1!==M.indexOf("update")){const E={equal:0,insert:0,delete:0};for(const F of M)if("update"===F){const V=E.equal+E.insert,W=E.equal+E.delete,dt=r.getChild(V);!dt||dt.is("uiElement")||dt.is("rawElement")||this._updateElementMappings(dt,u[W]),is(_[V]),E.equal++}else E[F]++}}_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&&me(c.parent)&&Pu(c.parent))}_removeInlineFiller(){const r=this._inlineFiller;if(!Pu(r))throw new nt("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(F=>F.hasAttribute("contenteditable"));return!E||"true"==E.getAttribute("contenteditable")}(c)||u===c.getFillerOffset())return!1;const _=r.nodeBefore,x=r.nodeAfter;return!(_ instanceof Eo||x instanceof Eo||D_isAndroid&&(_||x))}_updateText(r,c){const u=this.domConverter.findCorrespondingDomText(r);let _=this.domConverter.viewToDom(r).data;const x=c.inlineFillerPosition;x&&x.parent==r.parent&&x.offset==r.index&&(_=H1+_),Ap(u,_)}_updateAttrs(r){const c=this.domConverter.mapViewToDom(r);if(!c)return;const u=Array.from(c.attributes).map(x=>x.name),_=r.getAttributeKeys();for(const x of _)this.domConverter.setDomElementAttribute(c,x,r.getAttribute(x),r);for(const x of u)r.hasAttribute(x)||this.domConverter.removeDomElementAttribute(c,x)}_updateChildren(r,c){const u=this.domConverter.mapViewToDom(r);if(!u)return;if(D_isAndroid){let dt=null;for(const Zt of Array.from(u.childNodes)){if(dt&&me(dt)&&me(Zt)){u.normalize();break}dt=Zt}}const _=c.inlineFillerPosition,x=u.childNodes,M=Array.from(this.domConverter.viewChildrenToDom(r,{bind:!0}));_&&_.parent===r&&Gu(u.ownerDocument,M,_.offset);const E=this._diffNodeLists(x,M),F=this._findUpdateActions(E,x,M,E_);let V=0;const W=new Set;for(const dt of F)"delete"===dt?(W.add(x[V]),is(x[V])):"equal"!==dt&&"update"!==dt||V++;V=0;for(const dt of F)"insert"===dt?(yo(u,V,M[V]),V++):"update"===dt?(Ap(x[V],M[V].data),V++):"equal"===dt&&(this._markDescendantTextToSync(this.domConverter.domToView(M[V])),V++);for(const dt of W)dt.parentNode||this.domConverter.unbindDomElement(dt)}_diffNodeLists(r,c){return K(r=function(u,_){const x=Array.from(u);return 0==x.length||!_||x[x.length-1]==_&&x.pop(),x}(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 x=[],M=[],E=[];const F={equal:0,insert:0,delete:0};for(const V of r)"insert"===V?E.push(u[F.equal+F.insert]):"delete"===V?M.push(c[F.equal+F.delete]):(x=x.concat(K(M,E,_).map(W=>"equal"===W?"update":W)),x.push("equal"),M=[],E=[]),F[V]++;return x.concat(K(M,E,_).map(V=>"equal"===V?"update":V))}_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(),x=c.createRange();_.removeAllRanges(),x.selectNodeContents(u),_.addRange(x)}_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(x,M){const E=x.parent;if(E.nodeType!=Node.ELEMENT_NODE||x.offset!=E.childNodes.length-1)return;const F=E.childNodes[x.offset];F&&"BR"==F.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(me(_))return _.data=H1+_.data,_;{const x=m.createTextNode(H1);return Array.isArray(r)?u.splice(c,0,x):yo(r,c,x),x}}function I3(m,r){return ge(m)&&ge(r)&&!me(m)&&!me(r)&&!ga(m)&&!ga(r)&&m.tagName.toLowerCase()===r.tagName.toLowerCase()}function E_(m,r){return ge(m)&&ge(r)&&me(m)&&me(r)}function I_(m,r,c){return r===c||(me(r)&&me(c)?r.data===c.data:!(!m.isBlockFiller(r)||!m.isBlockFiller(c)))}function Ap(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_(Mt.document),y1=R1(Mt.document),Jd=Ig(Mt.document),N_="data-ck-unsafe-attribute-",Bf="data-ck-unsafe-element";class F_{constructor(r,{blockFillerMode:c,renderingMode:u="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new ps,this._inlineObjectElementMatcher=new ps,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?Mt.document:Mt.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(),x=u.body.childNodes;for(;x.length>0;)_.appendChild(x[0]);const M=u.createTreeWalker(_,NodeFilter.SHOW_ELEMENT),E=[];let F;for(;F=M.nextNode();)E.push(F);for(const V of E){for(const dt of V.getAttributeNames())this.setDomElementAttribute(V,dt,V.getAttribute(dt));const W=V.tagName.toLowerCase();this._shouldRenameElement(W)&&(yp(W),V.replaceWith(this._createReplacementDomElement(W,V)))}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)?(yp(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 x=this.shouldRenderAttribute(c,u,r.tagName.toLowerCase())||_&&_.shouldRenderUnsafeAttribute(c);x||Tt("domconverter-unsafe-attribute-detected",{domElement:r,key:c,value:u}),function(M){try{Mt.document.createAttribute(M)}catch{return!1}return!0}(c)?(r.hasAttribute(c)&&!x?r.removeAttribute(c):r.hasAttribute(N_+c)&&x&&r.removeAttribute(N_+c),r.setAttribute(x?c:N_+c,u)):Tt("domconverter-invalid-attribute-detected",{domElement:r,key:c,value:u})}removeDomElementAttribute(r,c){c!=Bf&&(r.removeAttribute(c),r.removeAttribute(N_+c))}*viewChildrenToDom(r,c={}){const u=r.getFillerOffset&&r.getFillerOffset();let _=0;for(const x of r.getChildren()){u===_&&(yield this._getBlockFiller());const M=x.is("element")&&!!x.getCustomProperty("dataPipeline:transparentRendering")&&!as(x.getAttributes());M&&"data"==this.renderingMode?yield*this.viewChildrenToDom(x,c):(M&&Tt("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:x}),yield this.viewToDom(x,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,_,x;if(0===r.offset){if(u=this.mapViewToDom(c),!u)return null;x=u.childNodes[0]}else{const M=r.nodeBefore;if(_=M.is("$text")?this.findCorrespondingDomText(M):this.mapViewToDom(M),!_)return null;u=_.parentNode,x=_.nextSibling}return me(x)&&Pu(x)?{parent:x,offset:7}:{parent:u,offset:_?xo(_)+1:0}}}domToView(r,c={}){const u=[],_=this._domToView(r,c,u),x=_.next().value;return x?(_.next(),this._processDomInlineNodes(null,u,c),x.is("$text")&&0==x.data.length?null:x):null}*domChildrenToView(r,c={},u=[]){for(let _=0;_{const{scrollLeft:E,scrollTop:F}=M;x.push([E,F])}),c.focus(),F3(c,M=>{const[E,F]=x.shift();M.scrollLeft=E,M.scrollTop=F}),Mt.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 x=u;for(;x&&x.nodeType!=Node.DOCUMENT_NODE;)_.unshift(x),x=x.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 Ig(this._domDocument);case"br":return O_(this._domDocument)}}_isDomSelectionPositionCorrect(r,c){if(me(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(me(r)){if(zm(r))return null;{const x=r.data;if(""===x)return null;const M=new Eo(this.document,x);return u.push(M),M}}{let x=this.mapDomToView(r);if(x)return this._isInlineObjectElement(x)&&u.push(x),x;if(this.isDocumentFragment(r))x=new Td(this.document),c.bind&&this.bindDocumentFragments(r,x);else{x=this._createViewElement(r,c),c.bind&&this.bindElements(r,x);const E=r.attributes;if(E)for(let F=E.length,V=0;V0?c[x-1]:null,W=x+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(Bf,r),c){for(;c.firstChild;)u.appendChild(c.firstChild);for(const _ of c.getAttributeNames())u.setAttribute(_,c.getAttribute(_))}return u}}function Vf(m,r){return m.getAncestors().some(c=>c.is("element")&&r.includes(c.name))}function F3(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 yp(m){"script"===m&&Tt("domconverter-unsafe-script-element-detected"),"style"===m&&Tt("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 q2=qf(function(m,r){Vs(r,us(r),m)});class pc{constructor(r,c,u){this.view=r,this.document=r.document,this.domEvent=c,this.domTarget=c.target,q2(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 oe.Date.now()};var uu=/\s/,nm=/^\s+/;var q3=/^[-+]0x[0-9a-f]+$/i,z6=/^0b[01]+$/i,Av=/^0o[0-7]+$/i,jf=parseInt;const Lu=function(m){if("number"==typeof m)return m;if(Wn(m))return NaN;if(Wt(m)){var r="function"==typeof m.valueOf?m.valueOf():m;m=Wt(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=z6.test(m);return c||Av.test(m)?jf(m.slice(2),c?2:8):q3.test(m)?NaN:+m};var R3=Math.max,Y6=Math.min;const R_=function(m,r,c){var u,_,x,M,E,F,V=0,W=!1,dt=!1,Zt=!0;if("function"!=typeof m)throw new TypeError("Expected a function");function ue(di){var Ri=u,Go=_;return u=_=void 0,V=di,M=m.apply(Go,Ri)}function Ae(di){var Ri=di-F;return void 0===F||Ri>=r||Ri<0||dt&&di-V>=x}function Ie(){var Ri,Go,di=wd();if(Ae(di))return ln(di);E=setTimeout(Ie,(Go=r-((Ri=di)-F),dt?Y6(Go,x-(Ri-V)):Go))}function ln(di){return E=void 0,Zt&&u?ue(di):(u=_=void 0,M)}function Dn(){var Go,di=wd(),Ri=Ae(di);if(u=arguments,_=this,F=di,Ri){if(void 0===E)return V=Go=F,E=setTimeout(Ie,r),W?ue(Go):M;if(dt)return clearTimeout(E),E=setTimeout(Ie,r),ue(F)}return void 0===E&&(E=setTimeout(Ie,r)),M}return r=Lu(r)||0,Wt(c)&&(W=!!c.leading,x=(dt="maxWait"in c)?R3(Lu(c.maxWait)||0,r):x,Zt="trailing"in c?!!c.trailing:Zt),Dn.cancel=function(){void 0!==E&&clearTimeout(E),V=0,u=F=_=E=void 0},Dn.flush=function(){return void 0===E?M:ln(wd())},Dn};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 Tp(m){var r=-1,c=null==m?0:m.length;for(this.__data__=new Fs;++rE))return!1;var V=x.get(m),W=x.get(r);if(V&&W)return V==r&&W==m;var dt=-1,Zt=!0,ue=2&c?new Fg:void 0;for(x.set(m,r),x.set(r,m);++dt{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this.flush(),r.change(()=>{})},50)}),c.on("blur",(u,_)=>{const x=c.selection.editableElement;null!==x&&x!==_.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",(_,x)=>{this.document.isComposing&&!D_isAndroid||(this._handleSelectionChange(x,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 x={oldSelection:this.selection,newSelection:_,domSelection:u};this.document.fire("selectionChange",x),this._fireSelectionChangeDoneDebounced(x)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class wp 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 Bg extends Wu{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(r){const c=r.getTargetRanges(),u=this.view,_=u.document;let x=null,M=null,E=[];if(r.dataTransfer&&(x=new mc(r.dataTransfer)),null!==r.data?M=r.data:x&&(M=x.getData("text/plain")),_.selection.isFake)E=Array.from(_.selection.getRanges());else if(c.length)E=c.map(F=>{const V=u.domConverter.domPositionToView(F.startContainer,F.startOffset),W=u.domConverter.domPositionToView(F.endContainer,F.endOffset);return V?u.createRange(V,W):W?u.createRange(W):void 0}).filter(F=>!!F);else if(D_isAndroid){const F=r.target.ownerDocument.defaultView.getSelection();E=Array.from(u.domConverter.domSelectionToView(F).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 F=M.split(/\n{1,2}/g);let V=E;for(let W=0;W{if(this.isEnabled&&((_=u.keyCode)==Ka.arrowright||_==Ka.arrowleft||_==Ka.arrowup||_==Ka.arrowdown)){const x=new xp(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(x,u),x.stop.called&&c.stop()}var _})}observe(){}stopObserving(){}}class Qf extends Qu{constructor(r){super(r);const c=this.document;c.on("keydown",(u,_)=>{if(!this.isEnabled||_.keyCode!=Ka.tab||_.ctrlKey)return;const x=new xp(c,"tab",c.selection.getFirstRange());c.fire(x,_),x.stop.called&&u.stop()})}observe(){}stopObserving(){}}const U1=function(m){return Pi(m,5)};class Vg extends(Ue()){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 F_(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new F2(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(wp),this.addObserver(Tv),this.addObserver(Bg),this.addObserver(Qf),this.document.on("arrowKey",Pl,{priority:"low"}),function Uc(m){m.document.on("arrowKey",(r,c)=>function(u,_,x){if(_.keyCode==Ka.arrowright){const M=_.domTarget.ownerDocument.defaultView.getSelection(),E=1==M.rangeCount&&M.getRangeAt(0).collapsed;if(E||_.shiftKey){const W=x.domPositionToView(M.focusNode,M.focusOffset);if(null===W)return;let dt=!1;const Zt=W.getLastMatchingPosition(ue=>(ue.item.is("uiElement")&&(dt=!0),!(!ue.item.is("uiElement")&&!ue.item.is("attributeElement"))));if(dt){const ue=x.viewPositionToDom(Zt);E?M.collapse(ue.parent,ue.offset):M.extend(ue.parent,ue.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 x=()=>{this._writer.setAttribute("contenteditable",(!u.isReadOnly).toString(),u),u.isReadOnly?this._writer.addClass("ck-read-only",u):this._writer.removeClass("ck-read-only",u)};x(),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(x)),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 x=this.document.selection.getFirstRange();if(!x)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(x),viewportOffset:u,ancestorOffset:_,alignToTop:r,forceScroll:c};this.fire("scrollToTheSelection",E,M),function({target:F,viewportOffset:V=0,ancestorOffset:W=0,alignToTop:dt,forceScroll:Zt}){const ue=cr(F);let Ae=ue,Ie=null;for(V="number"==typeof(ln=V)?{top:ln,bottom:ln,left:ln,right:ln}:ln;Ae;){let ln;ln=lr(Ae==ue?F:Ie),Hr({parent:ln,getRect:()=>As(F,Ae),alignToTop:dt,ancestorOffset:W,forceScroll:Zt});const Dn=As(F,Ae);if(ds({window:Ae,rect:Dn,viewportOffset:V,alignToTop:dt,forceScroll:Zt}),Ae.parent!=Ae){if(Ie=Ae.frameElement,Ae=Ae.parent,!Ie)return}else Ae=null}var ln}(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 nt("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){nt.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 Ma(r,c)}createRangeOn(r){return Ma._createOn(r)}createRangeIn(r){return Ma._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 Up{is(){throw new Error("is() method is abstract")}}class oc extends Up{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 nt("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 nt("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 x=0;for(;u[x]==_[x]&&u[x];)x++;return 0===x?null:u[x-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const c=this.getPath(),u=r.getPath(),_=ct(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 nt("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,x).concat(_).concat(u.slice(x+0,u.length));{const E=Array.from(u);return E.splice(x,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 ss 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 ss(this.data,this.getAttributes())}static fromJSON(r){return new ss(r.data,r.attributes)}}ss.prototype.is=function(m){return"$text"===m||"model:$text"===m||"text"===m||"model:text"===m||"node"===m||"model:node"===m};class Ku extends Up{constructor(r,c,u){if(super(),this.textNode=r,c<0||c>r.offsetSize)throw new nt("model-textproxy-wrong-offsetintext",this);if(u<0||c+u>r.offsetSize)throw new nt("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 ss(_)]:(it(_)||(_=[_]),Array.from(_).map(x=>"string"==typeof x?new ss(x):x instanceof Ku?new ss(x.data,x.getAttributes()):x));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):ss.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 nt("model-tree-walker-no-start-position",null);const c=r.direction||"forward";if("forward"!=c&&"backward"!=c)throw new nt("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,_,x;do{_=this.position,x=this._visitedParent,({done:c,value:u}=this.next())}while(!c&&r(u));c||(this._position=_,this._visitedParent=x)}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 _=B1(c,u),x=_||Bm(c,u,_);if(x 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=x;return this._position=c,Y1("elementStart",x,r,c,1)}if(x instanceof ss){let M;if(this.singleCharacters)M=1;else{let V=x.endOffset;this._boundaryEndParent==u&&this.boundaries.end.offsetW&&(W=this.boundaries.start.offset),E=c.offset-W}const V=new Ku(M,c.offset-M.startOffset-E,E);return c.offset-=E,this._position=c,Y1("text",V,r,c,E)}return c.path.pop(),this._position=c,this._visitedParent=u.parent,Y1("elementStart",u,r,c,1)}}function Y1(m,r,c,u,_){return{done:!1,value:{type:m,item:r,previousPosition:c,nextPosition:u,length:_}}}class to extends Up{constructor(r,c,u="toNone"){if(super(),!r.is("element")&&!r.is("documentFragment"))throw new nt("model-position-root-invalid",r);if(!(c instanceof Array)||0===c.length)throw new nt("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"==ct(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"==ct(r.getParentPath(),this.getParentPath())){if(r.offsetthis.offset)return null;u.offset-=c}}else if("prefix"==ct(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"==ct(r.getParentPath(),this.getParentPath()))(r.offset=_;){if(u.path[M]+E!==x.maxOffset)return!1;E=1,M--,x=x.parent}return!0}(m,c+1)}function Vm(m,r){for(;rc+1;){const x=_.maxOffset-u.offset;0!==x&&r.push(new Si(u,u.getShiftedBy(x))),u.path=u.path.slice(0,-1),u.offset++,_=_.parent}for(;u.path.length<=this.end.path.length;){const x=this.end.path[u.path.length-1],M=x-u.offset;0!==M&&r.push(new Si(u,u.getShiftedBy(M))),u.offset=x,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 Si(this.start,this.end)]}getTransformedByOperations(r){const c=[new Si(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 nt("range-create-from-ranges-empty-array",null);if(1==r.length)return r[0].clone();const c=r[0];r.sort((x,M)=>x.start.isAfter(M.start)?1:-1);const u=r.indexOf(c),_=new this(c.start,c.end);if(u>0)for(let x=u-1;r[x].end.isEqual(_.start);x++)_.start=to._createAt(r[x].start);for(let x=u+1;x{if(c.viewPosition)return;const u=this._modelToViewMapping.get(c.modelPosition.parent);if(!u)throw new nt("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),x=this._toModelOffset(c.viewPosition.parent,c.viewPosition.offset,u);c.modelPosition=to._createAt(_,x)},{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 Si(this.toModelPosition(r.start),this.toModelPosition(r.end))}toViewRange(r){return new Ma(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 x of _.getElementsWithSameId())u.add(x);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 x=0;x1?r[0]+":"+r[1]:r[0]}var $f=Object.defineProperty,Kf=Object.defineProperties,V6=Object.getOwnPropertyDescriptors,jg=Object.getOwnPropertySymbols,Y2=Object.prototype.hasOwnProperty,Xf=Object.prototype.propertyIsEnumerable,B_=(m,r,c)=>r in m?$f(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Jg=(m,r)=>{for(var c in r||(r={}))Y2.call(r,c)&&B_(m,c,r[c]);if(jg)for(var c of jg(r))Xf.call(r,c)&&B_(m,c,r[c]);return m},V_=(m,r)=>Kf(m,V6(r));class Gg extends(Oe()){constructor(r){super(),this._conversionApi=Jg({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 x=this._reduceChanges(r.getChanges());for(const M of x)"insert"===M.type?this._convertInsert(Si._createFromPositionAndShift(M.position,M.length),_):"reinsert"===M.type?this._convertReinsert(Si._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 x=this._createConversionApi(u,void 0,_);this._convertInsert(r,x);for(const[M,E]of c)this._convertMarkerAdd(M,E,x);x.consumable.verifyAllConsumed("insert")}convertSelection(r,c,u){const _=this._createConversionApi(u);this.fire("cleanSelection",{selection:r},_);const x=r.getFirstPosition().root;if(!_.mapper.toViewElement(x))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 F=E.getRange();if(!jm(r.getFirstPosition(),E,_.mapper))continue;this.fire(`addMarker:${E.name}`,{item:r,markerName:E.name,markerRange:F},_)}for(const E of r.getAttributeKeys())if(_.consumable.test(r,"attribute:"+E)){const F={item:r,range:r.getFirstRange(),attributeKey:E,attributeOldValue:null,attributeNewValue:r.getAttribute(E)};this.fire(`attribute:${E}:$text`,F,_)}}}_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,_,x){this._addConsumablesForRange(x.consumable,r,`attribute:${c}`);for(const M of r){const E={item:M.item,range:Si._createFromPositionAndShift(M.previousPosition,M.length),attributeKey:c,attributeOldValue:u,attributeNewValue:_};this._testAndFire(`attribute:${c}`,E,x)}}_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_(Jg({},_),{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 x of c.getItems()){if(!u.consumable.test(x,_))continue;const M={item:x,range:Si._createOn(x),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 x of _.getAttributeKeys())r.add(_,"attribute:"+x)}}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}:${(V=c).item.is("element")?V.item.name:"$text"}`,x=c.item.is("$textProxy")?u.consumable._getSymbolForTextProxy(c.item):c.item,M=this._firedEventsMap.get(u),E=M.get(x);var V;if(E){if(E.has(_))return;E.add(_)}else M.set(x,new Set([_]));this.fire(_,c,u)}_testAndFireAddAttributes(r,c){const u={item:r,range:Si._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_(Jg({},this._conversionApi),{consumable:new V3,writer:r,options:u,convertItem:x=>this._convertInsert(Si._createOn(x),_),convertChildren:x=>this._convertInsert(Si._createIn(x),_,{doNotAddConsumables:!0}),convertAttributes:x=>this._testAndFireAddAttributes(x,_),canReuseView:x=>!c.has(_.mapper.toModelElement(x))});return this._firedEventsMap.set(_,new Map),_}}function jm(m,r,c){const u=r.getRange(),_=Array.from(m.getAncestors());return _.shift(),_.reverse(),!_.some(x=>{if(u.containsItem(x))return!!c.toViewElement(x).getCustomProperty("addHighlight")})}function j_(m){return{item:m.item,range:Si._createFromPositionAndShift(m.previousPosition,m.length)}}class Ud extends(Oe(Up)){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 Si(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 Si(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 Si(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 Si)this._setRanges([c],!!_&&!!_.backward);else if(c instanceof to)this._setRanges([new Si(c)]);else if(c instanceof oc){const x=!!_&&!!_.backward;let M;if("in"==u)M=Si._createIn(c);else if("on"==u)M=Si._createOn(c);else{if(void 0===u)throw new nt("model-selection-setto-required-second-parameter",[this,c]);M=new Si(to._createAt(c,u))}this._setRanges([M],x)}else{if(!it(c))throw new nt("model-selection-setto-not-selectable",[this,c]);this._setRanges(c,_&&!!_.backward)}}_setRanges(r,c=!1){const u=Array.from(r),_=u.some(x=>{if(!(x instanceof Si))throw new nt("model-selection-set-ranges-not-range",[this,r]);return this._ranges.every(M=>!M.isEqual(x))});(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 nt("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 Si(u,_)),this._lastRangeBackward=!0):(this._pushRange(new Si(_,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=Wg(c.start,r);B2(u,c)&&(yield u);for(const x of c.getWalker()){const M=x.item;"elementEnd"==x.type&&j3(M,r,c)&&(yield M)}const _=Wg(c.end,r);Kg(_,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 Si(r.start,r.end))}_checkRange(r){for(let c=0;c0;)this._popRange()}_popRange(){this._ranges.pop()}}function Qg(m,r){return!r.has(m)&&(r.add(m),m.root.document.model.schema.isBlock(m)&&!!m.parent)}function j3(m,r,c){return Qg(m,r)&&$g(m,c)}function Wg(m,r){const c=m.parent.root.document.model.schema,u=m.parent.getAncestors({parentFirst:!0,includeSelf:!0});let _=!1;const x=u.find(M=>!_&&(_=c.isLimit(M),!_&&Qg(M,r)));return u.forEach(M=>r.add(M)),x}function $g(m,r){const c=function(u){const _=u.root.document.model.schema;let x=u.parent;for(;x;){if(_.isBlock(x))return x;x=x.parent}}(m);return!c||!r.containsRange(Si._createOn(c),!0)}function B2(m,r){return!!m&&(!(!r.isCollapsed&&!m.isEmpty)||!r.start.isTouching(to._createAt(m,m.maxOffset))&&$g(m,r))}function Kg(m,r){return!!m&&(!(!r.isCollapsed&&!m.isEmpty)||!r.end.isTouching(to._createAt(m,0))&&$g(m,r))}Ud.prototype.is=function(m){return"selection"===m||"model:selection"===m};class Xu extends(Oe(Si)){constructor(r,c){super(r,c),th.call(this)}detach(){this.stopListening()}toRange(){return new Si(this.start,this.end)}static fromRange(r){return new Xu(r.start,r.end)}}function th(){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=Si._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 x=null;if(u){"$graveyard"==c.root.rootName&&(x="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:x})}else _&&this.fire("change:content",this.toRange(),{deletionPosition:x})}Xu.prototype.is=function(m){return"liveRange"===m||"model:liveRange"===m||"range"==m||"model:range"===m};const V2="selection:";class Ou extends(Oe(Up)){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 V2+r}static _isStoreAttributeKey(r){return r.startsWith(V2)}}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,_,x)=>{this._updateMarker(u,x)}),this.listenTo(this._document,"change",(c,u)=>{!function(_,x){const M=_.document.differ;for(const E of M.getChanges()){if("insert"!=E.type)continue;const F=E.position.parent;E.length===F.maxOffset&&_.enqueueChange(x,V=>{const W=Array.from(F.getAttributeKeys()).filter(dt=>dt.startsWith(V2));for(const dt of W)V.removeAttribute(dt,F)})}}(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=x.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 x=_.name.split(":",1)[0];if(!this._observedMarkers.has(x))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 x=Array.from(this.markers),M=this.markers.has(r);if(c){let E=!1;for(const F of this.getRanges())if(c.containsRange(F,!F.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:x,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[x,M]of this._attributePriority)"low"==M&&(this._attrs.delete(x),this._attributePriority.delete(x));this._setAttributesTo(c);const _=[];for(const[x,M]of this.getAttributes())u.has(x)&&u.get(x)===M||_.push(x);for(const[x]of u)this.hasAttribute(x)||_.push(x);_.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(V2)&&(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,x=r.textNode?r.textNode:r.nodeAfter;if(this.isGravityOverridden||(u=j2(_,c)),u||(u=j2(x,c)),!this.isGravityOverridden&&!u){let M=_;for(;M&&!u;)M=M.previousSibling,u=j2(M,c)}if(!u){let M=x;for(;M&&!u;)M=M.nextSibling,u=j2(M,c)}u||(u=this.getStoredAttributes())}else{const _=this.getFirstRange();for(const x of _){if(x.item.is("element")&&c.isObject(x.item)){u=j2(x.item,c);break}if("text"==x.type){u=x.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 ss)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 j6 extends no{elementToElement(r){return this.add(function(c){const u=J2(c.model),_=G2(c.view,"container");return u.attributes.length&&(u.children=!0),x=>{x.on(`insert:${u.name}`,function(M,E=G6){return(F,V,W)=>{if(!E(V.item,W.consumable,{preflight:!0}))return;const dt=M(V.item,W,V);if(!dt)return;E(V.item,W.consumable);const Zt=W.mapper.toViewPosition(V.range.start);W.mapper.bindElements(V.item,dt),W.writer.insert(Zt,dt),W.convertAttributes(V.item),t0(dt,V.item.getChildren(),W,{reconversion:V.reconversion})}}(_,J6(u)),{priority:c.converterPriority||"normal"}),(u.children||u.attributes.length)&&x.on("reduceChanges",J3(u),{priority:"low"})}}(r))}elementToStructure(r){return this.add(function(c){const u=J2(c.model),_=G2(c.view,"container");return u.children=!0,x=>{if(x._conversionApi.schema.checkChild(u.name,"$text"))throw new nt("conversion-element-to-structure-disallowed-text",x,{elementName:u.name});var M,E;x.on(`insert:${u.name}`,(M=_,E=J6(u),(F,V,W)=>{if(!E(V.item,W.consumable,{preflight:!0}))return;const dt=new Map;var Ae,Ie,ln;W.writer._registerSlotFactory((Ae=V.item,Ie=dt,ln=W,(Dn,di)=>{const Ri=Dn.createContainerElement("$slot");let Go=null;if("children"===di)Go=Array.from(Ae.getChildren());else{if("function"!=typeof di)throw new nt("conversion-slot-mode-unknown",ln.dispatcher,{modeOrFilter:di});Go=Array.from(Ae.getChildren()).filter(Da=>di(Da))}return Ie.set(Ri,Go),Ri}));const Zt=M(V.item,W,V);if(W.writer._clearSlotFactory(),!Zt)return;(function(Ae,Ie,ln){const Dn=Array.from(Ie.values()).flat(),di=new Set(Dn);if(di.size!=Dn.length)throw new nt("conversion-slot-filter-overlap",ln.dispatcher,{element:Ae});if(di.size!=Ae.childCount)throw new nt("conversion-slot-filter-incomplete",ln.dispatcher,{element:Ae})})(V.item,dt,W),E(V.item,W.consumable);const ue=W.mapper.toViewPosition(V.range.start);W.mapper.bindElements(V.item,Zt),W.writer.insert(ue,Zt),W.convertAttributes(V.item),function(Ae,Ie,ln,Dn){ln.mapper.on("modelToViewPosition",Go,{priority:"highest"});let di=null,Ri=null;for([di,Ri]of Ie)t0(Ae,Ri,ln,Dn),ln.writer.move(ln.writer.createRangeIn(di),ln.writer.createPositionBefore(di)),ln.writer.remove(di);function Go(Da,ws){const Il=Ri.indexOf(ws.modelPosition.nodeAfter);Il<0||(ws.viewPosition=ws.mapper.findPositionIn(di,Il))}ln.mapper.off("modelToViewPosition",Go)}(Zt,dt,W,{reconversion:V.reconversion})}),{priority:c.converterPriority||"normal"}),x.on("reduceChanges",J3(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]=G2(c.view[M],"attribute");else c.view=G2(c.view,"attribute");const x=Zp(c);return M=>{var E;M.on(_,(E=x,(F,V,W)=>{if(!W.consumable.test(V.item,F.name))return;const dt=E(V.attributeOldValue,W,V),Zt=E(V.attributeNewValue,W,V);if(!dt&&!Zt)return;W.consumable.consume(V.item,F.name);const ue=W.writer;if(V.item instanceof Ud||V.item instanceof Ou)ue.wrap(ue.document.selection.getFirstRange(),Zt);else{let Ie=W.mapper.toViewRange(V.range);null!==V.attributeOldValue&&dt&&(Ie=ue.unwrap(Ie,dt)),null!==V.attributeNewValue&&Zt&&ue.wrap(Ie,Zt)}}),{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 x=Zp(c);return M=>{var E;M.on(_,(E=x,(F,V,W)=>{if(!W.consumable.test(V.item,F.name))return;const dt=E(V.attributeOldValue,W,V),Zt=E(V.attributeNewValue,W,V);if(!dt&&!Zt)return;W.consumable.consume(V.item,F.name);const ue=W.mapper.toViewElement(V.item),Ae=W.writer;if(!ue)throw new nt("conversion-attribute-to-attribute-on-text",W.dispatcher,V);if(null!==V.attributeOldValue&&dt)if("class"==dt.key){const Ie=Ss(dt.value);for(const ln of Ie)Ae.removeClass(ln,ue)}else if("style"==dt.key){const Ie=Object.keys(dt.value);for(const ln of Ie)Ae.removeStyle(ln,ue)}else Ae.removeAttribute(dt.key,ue);if(null!==V.attributeNewValue&&Zt)if("class"==Zt.key){const Ie=Ss(Zt.value);for(const ln of Ie)Ae.addClass(ln,ue)}else if("style"==Zt.key){const Ie=Object.keys(Zt.value);for(const ln of Ie)Ae.setStyle(ln,Zt.value[ln],ue)}else Ae.setAttribute(Zt.key,Zt.value,ue)}),{priority:c.converterPriority||"normal"})}}(r))}markerToElement(r){return this.add(function(c){const u=G2(c.view,"ui");return _=>{var x;_.on(`addMarker:${c.model}`,(x=u,(M,E,F)=>{E.isOpening=!0;const V=x(E,F);E.isOpening=!1;const W=x(E,F);if(!V||!W)return;const dt=E.markerRange;if(dt.isCollapsed&&!F.consumable.consume(dt,M.name))return;for(const Ae of dt)if(!F.consumable.consume(Ae.item,M.name))return;const Zt=F.mapper,ue=F.writer;ue.insert(Zt.toViewPosition(dt.start),V),F.mapper.bindElementToMarker(V,E.markerName),dt.isCollapsed||(ue.insert(Zt.toViewPosition(dt.end),W),F.mapper.bindElementToMarker(W,E.markerName)),M.stop()}),{priority:c.converterPriority||"normal"}),_.on(`removeMarker:${c.model}`,(M,E,F)=>{const V=F.mapper.markerNameToElements(E.markerName);if(V){for(const W of V)F.mapper.unbindElementFromMarkerName(W,E.markerName),F.writer.clear(F.writer.createRangeOn(W),W);F.writer.clearClonedElementsGroup(E.markerName),M.stop()}},{priority:c.converterPriority||"normal"})}}(r))}markerToHighlight(r){return this.add((c=r,u=>{var _,x;u.on(`addMarker:${c.model}`,(_=c.view,(x,M,E)=>{if(!M.item||!(M.item instanceof Ud||M.item instanceof Ou||M.item.is("$textProxy")))return;const F=Q2(_,M,E);if(!F||!E.consumable.consume(M.item,x.name))return;const V=E.writer,W=Xg(V,F);if(M.item instanceof Ud||M.item instanceof Ou)V.wrap(V.document.selection.getFirstRange(),W);else{const Zt=E.mapper.toViewRange(M.range),ue=V.wrap(Zt,W);for(const Ae of ue.getItems())if(Ae.is("attributeElement")&&Ae.isSimilar(W)){E.mapper.bindElementToMarker(Ae,M.markerName);break}}}),{priority:c.converterPriority||"normal"}),u.on(`addMarker:${c.model}`,(x=c.view,(M,E,F)=>{if(!(E.item&&E.item instanceof Jr))return;const V=Q2(x,E,F);if(!V||!F.consumable.test(E.item,M.name))return;const W=F.mapper.toViewElement(E.item);if(W&&W.getCustomProperty("addHighlight")){F.consumable.consume(E.item,M.name);for(const dt of Si._createIn(E.item))F.consumable.consume(dt.item,M.name);W.getCustomProperty("addHighlight")(W,V,F.writer),F.mapper.bindElementToMarker(W,E.markerName)}}),{priority:c.converterPriority||"normal"}),u.on(`removeMarker:${c.model}`,function(x){return(M,E,F)=>{if(E.markerRange.isCollapsed)return;const V=Q2(x,E,F);if(!V)return;const W=Xg(F.writer,V),dt=F.mapper.markerNameToElements(E.markerName);if(dt){for(const Zt of dt)F.mapper.unbindElementFromMarkerName(Zt,E.markerName),Zt.is("attributeElement")?F.writer.unwrap(F.writer.createRangeOn(Zt),W):Zt.getCustomProperty("removeHighlight")(Zt,V.id,F.writer);F.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 _||(_=x=>({group:u,name:x.substr(c.model.length+1)})),x=>{var M,E;x.on(`addMarker:${u}`,(M=_,(E,F,V)=>{const W=M(F.markerName,V);if(!W)return;const dt=F.markerRange;V.consumable.consume(dt,E.name)&&(Eu(dt,!1,V,F,W),Eu(dt,!0,V,F,W),E.stop())}),{priority:c.converterPriority||"normal"}),x.on(`removeMarker:${u}`,(E=_,(F,V,W)=>{const dt=E(V.markerName,W);if(!dt)return;const Zt=W.mapper.markerNameToElements(V.markerName);if(Zt){for(const Ae of Zt)W.mapper.unbindElementFromMarkerName(Ae,V.markerName),Ae.is("containerElement")?(ue(`data-${dt.group}-start-before`,Ae),ue(`data-${dt.group}-start-after`,Ae),ue(`data-${dt.group}-end-before`,Ae),ue(`data-${dt.group}-end-after`,Ae)):W.writer.clear(W.writer.createRangeOn(Ae),Ae);W.writer.clearClonedElementsGroup(V.markerName),F.stop()}function ue(Ae,Ie){if(Ie.hasAttribute(Ae)){const ln=new Set(Ie.getAttribute(Ae).split(","));ln.delete(dt.name),0==ln.size?W.writer.removeAttribute(Ae,Ie):W.writer.setAttribute(Ae,Array.from(ln).join(","),Ie)}}}),{priority:c.converterPriority||"normal"})}}(r))}}function Xg(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 x=r?m.start:m.end,M=x.nodeAfter&&x.nodeAfter.is("element")?x.nodeAfter:null,E=x.nodeBefore&&x.nodeBefore.is("element")?x.nodeBefore:null;if(M||E){let F,V;r&&M||!r&&!E?(F=M,V=!0):(F=E,V=!1);const W=c.mapper.toViewElement(F);if(W)return void function(dt,Zt,ue,Ae,Ie,ln){const Dn=`data-${ln.group}-${Zt?"start":"end"}-${ue?"before":"after"}`,di=dt.hasAttribute(Dn)?dt.getAttribute(Dn).split(","):[];di.unshift(ln.name),Ae.writer.setAttribute(Dn,di.join(","),dt),Ae.mapper.bindElementToMarker(dt,Ie.markerName)}(W,r,V,c,u,_)}!function(F,V,W,dt,Zt){const Ie=W.writer.createUIElement(`${Zt.group}-${V?"start":"end"}`,Zt.name?{name:Zt.name}:null);W.writer.insert(F,Ie),W.mapper.bindElementToMarker(Ie,dt.markerName)}(c.mapper.toViewPosition(x),r,c,u,_)}function J2(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 G2(m,r){return"function"==typeof m?m:(c,u)=>function(_,x,M){let E;"string"==typeof _&&(_={name:_});const F=x.writer,V=Object.assign({},_.attributes);if(E="container"==M?F.createContainerElement(_.name,V):"attribute"==M?F.createAttributeElement(_.name,V,{priority:_.priority||tm.DEFAULT_PRIORITY}):F.createUIElement(_.name,V),_.styles){const W=Object.keys(_.styles);for(const dt of W)F.setStyle(dt,_.styles[dt],E)}if(_.classes){const W=_.classes;if("string"==typeof W)F.addClass(W,E);else for(const dt of W)F.addClass(dt,E)}return E}(m,u,r)}function Zp(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 Q2(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 J3(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 x of u.changes){const M="attribute"==x.type?x.range.start.nodeAfter:x.position.parent;if(M&&r(M,x)){if(!u.reconvertedElements.has(M)){u.reconvertedElements.add(M);const E=to._createBefore(M);let F=_.length;for(let V=_.length-1;V>=0;V--){const W=_[V],dt=("attribute"==W.type?W.range.start:W.position).compareWith(E);if("before"==dt||"remove"==W.type&&"same"==dt)break;F=V}_.splice(F,0,{type:"remove",name:M.name,position:E,length:1},{type:"reinsert",name:M.name,position:E,length:1})}}else _.push(x)}u.changes=_}}function J6(m){return(r,c,u={})=>{const _=["insert"];for(const x of m.attributes)r.hasAttribute(x)&&_.push(`attribute:${x}`);return!!_.every(x=>c.test(r,x))&&(u.preflight||_.forEach(x=>c.consume(r,x)),!0)}}function t0(m,r,c,u){for(const _ of r)cm(m.root,_,c,u)||c.convertItem(_)}function cm(m,r,c,u){const{writer:_,mapper:x}=c;if(!u.reconversion)return!1;const M=x.toViewElement(r);return!(!M||M.root==m||!c.canReuseView(M)||(_.move(_.createRangeOn(M),x.toViewPosition(to._createBefore(r))),0))}function G6(m,r,{preflight:c}={}){return c?r.test(m,"insert"):r.consume(m,"insert")}function eh(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 W2(m,r,c){const u=c.createContext(m);return!!c.checkChild(u,"paragraph")&&!!c.checkChild(u.push("paragraph"),r)}function e0(m,r){const c=r.createElement("paragraph");return r.insert(c,m),r.createPositionAt(c,0)}var G3=Object.defineProperty,$2=Object.defineProperties,nh=Object.getOwnPropertyDescriptors,ih=Object.getOwnPropertySymbols,Qd=Object.prototype.hasOwnProperty,n0=Object.prototype.propertyIsEnumerable,G_=(m,r,c)=>r in m?G3(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Q6 extends no{elementToElement(r){return this.add(Q3(r))}elementToAttribute(r){return this.add(function(c){Sl(c=U1(c));const u=Wd(c,!1),_=oh(c.view),x=_?`element:${_}`:"element";return M=>{M.on(x,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(x){"string"==typeof x.view&&(x.view={key:x.view});const M=x.view.key;let E;return E="class"==M||"style"==M?{["class"==M?"classes":"styles"]:x.view.value}:{attributes:{[M]:void 0===x.view.value?/[\s\S]*/:x.view.value}},x.view.name&&(E.name=x.view.name),x.view=E,M}(c)),Sl(c,u);const _=Wd(c,!0);return x=>{x.on("element",_,{priority:c.converterPriority||"low"})}}(r))}elementToMarker(r){return this.add(function(c){const u=(M=c.model,(E,F)=>{const V="string"==typeof M?M:M(E,F);return F.writer.createElement("$marker",{"data-name":V})});var M,_;return Q3((_=((M,E)=>{for(var F in E||(E={}))Qd.call(E,F)&&G_(M,F,E[F]);if(ih)for(var F of ih(E))n0.call(E,F)&&G_(M,F,E[F]);return M})({},c),$2(_,nh({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(Mp(u,"start")),x=lm(Mp(u,"end"));return M=>{M.on(`element:${c.view}-start`,_,{priority:c.converterPriority||"normal"}),M.on(`element:${c.view}-end`,x,{priority:c.converterPriority||"normal"});const E=Dt.low,F=Dt.highest,V=Dt.get(c.converterPriority)/F;var W;M.on("element",(W=u,(dt,Zt,ue)=>{const Ae=`data-${W.view}`;function Ie(ln,Dn){for(const di of Dn){const Ri=W.model(di,ue),Go=ue.writer.createElement("$marker",{"data-name":Ri});ue.writer.insert(Go,ln),Zt.modelCursor=Zt.modelCursor.isEqual(ln)?Zt.modelCursor.getShiftedBy(1):Zt.modelCursor._getTransformedByInsertion(ln,1),Zt.modelRange=Zt.modelRange._getTransformedByInsertion(ln,1)[0]}}(ue.consumable.test(Zt.viewItem,{attributes:Ae+"-end-after"})||ue.consumable.test(Zt.viewItem,{attributes:Ae+"-start-after"})||ue.consumable.test(Zt.viewItem,{attributes:Ae+"-end-before"})||ue.consumable.test(Zt.viewItem,{attributes:Ae+"-start-before"}))&&(Zt.modelRange||Object.assign(Zt,ue.convertChildren(Zt.viewItem,Zt.modelCursor)),ue.consumable.consume(Zt.viewItem,{attributes:Ae+"-end-after"})&&Ie(Zt.modelRange.end,Zt.viewItem.getAttribute(Ae+"-end-after").split(",")),ue.consumable.consume(Zt.viewItem,{attributes:Ae+"-start-after"})&&Ie(Zt.modelRange.end,Zt.viewItem.getAttribute(Ae+"-start-after").split(",")),ue.consumable.consume(Zt.viewItem,{attributes:Ae+"-end-before"})&&Ie(Zt.modelRange.start,Zt.viewItem.getAttribute(Ae+"-end-before").split(",")),ue.consumable.consume(Zt.viewItem,{attributes:Ae+"-start-before"})&&Ie(Zt.modelRange.start,Zt.viewItem.getAttribute(Ae+"-start-before").split(",")))}),{priority:E+V})}}(r))}}function Q3(m){const r=lm(m=U1(m)),c=oh(m.view),u=c?`element:${c}`:"element";return _=>{_.on(u,r,{priority:m.converterPriority||"normal"})}}function oh(m){return"string"==typeof m?m:"object"==typeof m&&"string"==typeof m.name?m.name:null}function lm(m){const r=new ps(m.view);return(c,u,_)=>{const x=r.match(u.viewItem);if(!x)return;const M=x.match;if(M.name=!0,!_.consumable.test(u.viewItem,M))return;const E=(W=_,(F=m.model)instanceof Function?F(u.viewItem,W):W.writer.createElement(F));var F,W;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||(x=>x.getAttribute(r)):m.model.value}}function Wd(m,r){const c=new ps(m.view);return(u,_,x)=>{if(!_.modelRange&&r)return;const M=c.match(_.viewItem);if(!M||(function(W,dt){const Zt="function"==typeof W?W(dt):W;return!("object"==typeof Zt&&!oh(Zt)||Zt.classes||Zt.attributes||Zt.styles)}(m.view,_.viewItem)?M.match.name=!0:delete M.match.name,!x.consumable.test(_.viewItem,M.match)))return;const E=m.model.key,F="function"==typeof m.model.value?m.model.value(_.viewItem,x):m.model.value;null!==F&&(_.modelRange||Object.assign(_,x.convertChildren(_.viewItem,_.modelCursor)),function(W,dt,Zt,ue){let Ae=!1;for(const Ie of Array.from(W.getItems({shallow:Zt})))ue.schema.checkAttribute(Ie,dt.key)&&(Ae=!0,Ie.hasAttribute(dt.key)||ue.writer.setAttribute(dt.key,dt.value,Ie));return Ae}(_.modelRange,{key:E,value:F},r,x)&&(x.consumable.test(_.viewItem,{name:!0})&&(M.match.name=!0),x.consumable.consume(_.viewItem,M.match)))}}function Mp(m,r){return{view:`${m.view}-${r}`,model:(c,u)=>{const _=c.getAttribute("name"),x=m.model(_,u);return u.writer.createElement("$marker",{"data-name":x})}}}function Ga(m,r){return m.isCollapsed?function(c,u){const _=c.start,x=u.getNearestSelectionRange(_);if(!x){const E=_.getAncestors().reverse().find(F=>u.isObject(F));return E?Si._createOn(E):null}if(!x.isCollapsed)return x;const M=x.start;return _.isEqual(M)?null:new Si(M)}(m,r):function(c,u){const{start:_,end:x}=c,M=u.checkChild(_,"$text"),E=u.checkChild(x,"$text"),F=u.getLimitElement(_),V=u.getLimitElement(x);if(F===V){if(M&&E)return null;if(function(Zt,ue,Ae){const Ie=Zt.nodeAfter&&!Ae.isLimit(Zt.nodeAfter)||Ae.checkChild(Zt,"$text"),ln=ue.nodeBefore&&!Ae.isLimit(ue.nodeBefore)||Ae.checkChild(ue,"$text");return Ie||ln}(_,x,u)){const Zt=_.nodeAfter&&u.isSelectable(_.nodeAfter)?null:u.getNearestSelectionRange(_,"forward"),ue=x.nodeBefore&&u.isSelectable(x.nodeBefore)?null:u.getNearestSelectionRange(x,"backward");return new Si(Zt?Zt.start:_,ue?ue.end:x)}}const W=F&&!F.is("rootElement"),dt=V&&!V.is("rootElement");if(W||dt){const Zt=_.nodeAfter&&x.nodeBefore&&_.nodeAfter.parent===x.nodeBefore.parent,ue=W&&(!Zt||!Q_(_.nodeAfter,u)),Ae=dt&&(!Zt||!Q_(x.nodeBefore,u));let Ie=_,ln=x;return ue&&(Ie=to._createBefore(rh(F,u))),Ae&&(ln=to._createAfter(rh(V,u))),new Si(Ie,ln)}return null}(m,r)}function rh(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(Ue()){constructor(r,c){super(),this.model=r,this.view=new Vg(c),this.mapper=new B3,this.downcastDispatcher=new Gg({mapper:this.mapper,schema:r.schema});const u=this.model.document,_=u.selection,x=this.model.markers;var M,E,F,V,W;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(V=>{this.downcastDispatcher.convertChanges(u.differ,x,V),this.downcastDispatcher.convertSelection(_,x,V)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",(V=this.model,W=this.mapper,(dt,Zt)=>{const ue=Zt.newSelection,Ae=[];for(const ln of ue.getRanges())Ae.push(W.toModelRange(ln));const Ie=V.createSelection(Ae,{backward:ue.isBackward});Ie.isEqual(V.document.selection)||V.change(ln=>{ln.setSelection(Ie)})})),this.listenTo(this.view.document,"beforeinput",(M=this.mapper,E=this.model.schema,F=this.view,(V,W)=>{if(!F.document.isComposing||D_isAndroid)for(let dt=0;dt{if(!dt.consumable.consume(W.item,V.name))return;const Zt=dt.writer,ue=dt.mapper.toViewPosition(W.range.start),Ae=Zt.createText(W.item.data);Zt.insert(ue,Ae)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(V,W,dt)=>{dt.convertAttributes(W.item),W.reconversion||!W.item.is("element")||W.item.isEmpty||dt.convertChildren(W.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(V,W,dt)=>{const Zt=dt.mapper.toViewPosition(W.position),ue=W.position.getShiftedBy(W.length),Ae=dt.mapper.toViewPosition(ue,{isPhantom:!0}),Ie=dt.writer.createRange(Zt,Ae),ln=dt.writer.remove(Ie.getTrimmed());for(const Dn of dt.writer.createRangeIn(ln).getItems())dt.mapper.unbindViewElement(Dn,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("cleanSelection",(V,W,dt)=>{const Zt=dt.writer,ue=Zt.document.selection;for(const Ae of ue.getRanges())Ae.isCollapsed&&Ae.end.parent.isAttached()&&dt.writer.mergeAttributes(Ae.start);Zt.setSelection(null)}),this.downcastDispatcher.on("selection",(V,W,dt)=>{const Zt=W.selection;if(Zt.isCollapsed||!dt.consumable.consume(Zt,"selection"))return;const ue=[];for(const Ae of Zt.getRanges())ue.push(dt.mapper.toViewRange(Ae));dt.writer.setSelection(ue,{backward:Zt.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(V,W,dt)=>{const Zt=W.selection;if(!Zt.isCollapsed||!dt.consumable.consume(Zt,"selection"))return;const ue=dt.writer,Ae=Zt.getFirstPosition(),Ie=dt.mapper.toViewPosition(Ae),ln=ue.breakAttributes(Ie);ue.setSelection(ln)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(V=>{if("$graveyard"==V.rootName)return null;const W=new qm(this.view.document,V.name);return W.rootName=V.rootName,this.mapper.bindElements(V,W),W})}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 nt("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 ch(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 x=r.getStyleNames();for(const M of x)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 sh=["attributes","classes","styles"];class ch{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 sh)c in r&&this._add(c,r[c])}test(r){if(r.name&&!this._canConsumeName)return this._canConsumeName;for(const c of sh)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 sh)c in r&&this._consume(c,r[c])}revert(r){r.name&&(this._canConsumeName=!0);for(const c of sh)c in r&&this._revert(c,r[c])}_add(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const x of u){if("attributes"===r&&("class"===x||"style"===x))throw new nt("viewconsumable-invalid-attribute",this);if(_.set(x,!0),"styles"===r)for(const M of this.element.document.stylesProcessor.getRelatedStyles(x))_.set(M,!0)}}_test(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const x of u)if("attributes"!==r||"class"!==x&&"style"!==x){const M=_.get(x);if(void 0===M)return null;if(!M)return!1}else{const M="class"==x?"classes":"styles",E=this._test(M,[...this._consumables[M].keys()]);if(!0!==E)return E}return!0}_consume(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const x of u)if("attributes"!==r||"class"!==x&&"style"!==x){if(_.set(x,!1),"styles"==r)for(const M of this.element.document.stylesProcessor.getRelatedStyles(x))_.set(M,!1)}else{const M="class"==x?"classes":"styles";this._consume(M,[...this._consumables[M].keys()])}}_revert(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const x of u)if("attributes"!==r||"class"!==x&&"style"!==x)!1===_.get(x)&&_.set(x,!0);else{const M="class"==x?"classes":"styles";this._revert(M,[...this._consumables[M].keys()])}}}class W3 extends(Ue()){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 nt("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 nt("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 nt("schema-check-merge-no-element-before",this);if(!(_ instanceof Jr))throw new nt("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 x=r(u,_);"boolean"==typeof x&&(c.stop(),c.return=x)},{priority:"high"})}addAttributeCheck(r){this.on("checkAttribute",(c,[u,_])=>{const x=r(u,_);"boolean"==typeof x&&(c.stop(),c.return=x)},{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 Si?[r]:Array.from(r.getRanges())).reduce((u,_)=>{const x=_.getCommonAncestor();return u?u.getCommonAncestor(x,{includeSelf:!0}):x},null);!this.isLimit(c)&&c.parent;)c=c.parent;return c}checkAttributeInSelection(r,c){if(r.isCollapsed){const u=[...r.getFirstPosition().getAncestors(),new ss("",r.getAttributes())];return this.checkAttribute(u,c)}{const u=r.getRanges();for(const _ of u)for(const x of _)if(this.checkAttribute(x.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 Si(r);let u,_;const x=r.getAncestors().reverse().find(M=>this.isLimit(M))||r.root;"both"!=c&&"backward"!=c||(u=new Gd({boundaries:Si._createIn(x),startPosition:r,direction:"backward"})),"both"!=c&&"forward"!=c||(_=new Gd({boundaries:Si._createIn(x),startPosition:r}));for(const M of function*(E,F){let V=!1;for(;!V;){if(V=!0,E){const W=E.next();W.done||(V=!1,yield{walker:E,value:W.value})}if(F){const W=F.next();W.done||(V=!1,yield{walker:F,value:W.value})}}}(u,_)){const F=M.value;if(F.type==(M.walker==u?"elementEnd":"elementStart")&&this.isObject(F.item))return Si._createOn(F.item);if(this.checkChild(F.nextPosition,"$text"))return new Si(F.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[x,M]of Object.entries(c))_.schema.checkAttribute(r,x)&&u.setAttribute(x,M,r)}removeDisallowedAttributes(r,c){for(const u of r)if(u.is("$text"))lh(this,u,c);else{const _=Si._createIn(u).getPositions();for(const x of _)lh(this,x.nodeBefore||x.parent,c)}}getAttributesWithProperty(r,c,u){const _={};for(const[x,M]of r.getAttributes()){const E=this.getAttributeProperties(x);void 0!==E[c]&&(void 0!==u&&u!==E[c]||(_[x]=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[_]=o0(c[_],_);for(const _ of u)$3(r,_);for(const _ of u)W6(r,_);for(const _ of u)K3(r,_);for(const _ of u)Zd(r,_),pm(r,_);for(const _ of u)$6(r,_),kp(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 x=this.getDefinition(_);return this._checkContextMatch(x,c,u-1)}}return!1}*_getValidRangesForRange(r,c){let u=r.start,_=r.start;for(const x of r.getItems({shallow:!0}))x.is("element")&&(yield*this._getValidRangesForRange(Si._createIn(x),c)),this.checkAttribute(x,c)||(u.isEqual(_)||(yield new Si(u,_)),u=to._createAfter(x)),_=to._createAfter(x);u.isEqual(_)||(yield new Si(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(Fc)}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 o0(m,r){const c={name:r,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(u,_){for(const x of u){const M=Object.keys(x).filter(E=>E.startsWith("is"));for(const E of M)_[E]=!!x[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 x of u){const M=x.inheritAllFrom;M&&(_.allowContentOf.push(M),_.allowWhere.push(M),_.allowAttributesOf.push(M),_.inheritTypesFrom.push(M))}}(m,c),c}function $3(m,r){const c=m[r];for(const u of c.allowChildren){const _=m[u];_&&_.allowIn.push(r)}c.allowChildren.length=0}function W6(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 K3(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 x=Object.keys(_).filter(M=>M.startsWith("is"));for(const M of x)M in c||(c[M]=_[M])}}delete c.inheritTypesFrom}function $6(m,r){const c=m[r],u=c.allowIn.filter(_=>m[_]);c.allowIn=Array.from(new Set(u))}function kp(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 Fc(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 lh(m,r,c){for(const u of r.getAttributeKeys())m.checkAttribute(r,u)||c.removeAttribute(u,r)}var Md=Object.defineProperty,a0=Object.defineProperties,uh=Object.getOwnPropertyDescriptors,r0=Object.getOwnPropertySymbols,Gm=Object.prototype.hasOwnProperty,K2=Object.prototype.propertyIsEnumerable,X2=(m,r,c)=>r in m?Md(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Qm extends(Oe()){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 x in _||(_={}))Gm.call(_,x)&&X2(u,x,_[x]);if(r0)for(var x of r0(_))K2.call(_,x)&&X2(u,x,_[x]);return u})({},r),a0(c,uh({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 F;for(const V of new dm(M)){const W={};for(const Zt of V.getAttributeKeys())W[Zt]=V.getAttribute(Zt);const dt=E.createElement(V.name,W);F&&E.insert(dt,F),F=to._createAt(dt,0)}return F}(u,c),this.conversionApi.writer=c,this.conversionApi.consumable=W_.createFrom(r),this.conversionApi.store={};const{modelRange:_}=this._convertItem(r,this._modelCursor),x=c.createDocumentFragment();if(_){this._removeEmptyElements();for(const M of Array.from(this._modelCursor.parent.getChildren()))c.append(M,x);x.markers=function(M,E){const F=new Set,V=new Map,W=Si._createIn(M).getItems();for(const dt of W)dt.is("element","$marker")&&F.add(dt);for(const dt of F){const Zt=dt.getAttribute("data-name"),ue=E.createPositionBefore(dt);V.has(Zt)?V.get(Zt).end=ue.clone():V.set(Zt,new Si(ue.clone())),E.remove(dt)}return V}(x,c)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,x}_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 Si))throw new nt("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 Si(u);for(const x of Array.from(r.getChildren())){const M=this._convertItem(x,u);M.modelRange instanceof Si&&(_.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 x=this._cursorParents.get(r);c.modelCursor=x?_.createPositionAt(x,0):c.modelRange.end}_splitToAllowedParent(r,c){const{schema:u,writer:_}=this.conversionApi;let x=u.findAllowedParent(c,r);if(x){if(x===c.parent)return{position:c};this._modelCursor.parent.getAncestors().includes(x)&&(x=null)}if(!x)return W2(c,r,u)?{position:e0(c,_)}:null;const M=this.conversionApi.writer.split(c,x),E=[];for(const V of M.range.getWalker())if("elementEnd"==V.type)E.push(V.item);else{const W=E.pop();this._registerSplitPair(W,V.item)}const F=M.range.end.parent;return this._cursorParents.set(r,F),{position:M.position,cursorParent:F}}_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 s0{constructor(r){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new F_(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(Oe()){constructor(r,c){super(),this.model=r,this.mapper=new B3,this.downcastDispatcher=new Gg({mapper:this.mapper,schema:r.schema}),this.downcastDispatcher.on("insert:$text",(u,_,x)=>{if(!x.consumable.consume(_.item,u.name))return;const M=x.writer,E=x.mapper.toViewPosition(_.range.start),F=M.createText(_.item.data);M.insert(E,F)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(u,_,x)=>{x.convertAttributes(_.item),_.reconversion||!_.item.is("element")||_.item.isEmpty||x.convertChildren(_.item)},{priority:"lowest"}),this.upcastDispatcher=new Qm({schema:r.schema}),this.viewDocument=new Xp(c),this.stylesProcessor=c,this.htmlProcessor=new s0(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Hm(this.viewDocument),this.upcastDispatcher.on("text",(u,_,{schema:x,consumable:M,writer:E})=>{let F=_.modelCursor;if(!M.test(_.viewItem))return;if(!x.checkChild(F,"$text")){if(!W2(F,"$text",x)||0==_.viewItem.data.trim().length)return;const W=F.nodeBefore;F=e0(F,E),W&&W.is("element","$marker")&&(E.move(E.createRangeOn(W),F),F=E.createPositionAfter(W))}M.consume(_.viewItem);const V=E.createText(_.viewItem.data);E.insert(V,F),_.modelRange=E.createRange(F,F.getShiftedBy(V.offsetSize)),_.modelCursor=_.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(u,_,x)=>{if(!_.modelRange&&x.consumable.consume(_.viewItem,{name:!0})){const{modelRange:M,modelCursor:E}=x.convertChildren(_.viewItem,_.modelCursor);_.modelRange=M,_.modelCursor=E}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(u,_,x)=>{if(!_.modelRange&&x.consumable.consume(_.viewItem,{name:!0})){const{modelRange:M,modelCursor:E}=x.convertChildren(_.viewItem,_.modelCursor);_.modelRange=M,_.modelCursor=E}},{priority:"lowest"}),Ue().prototype.decorate.call(this,"init"),Ue().prototype.decorate.call(this,"set"),Ue().prototype.decorate.call(this,"get"),Ue().prototype.decorate.call(this,"toView"),Ue().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},eh)},{priority:"lowest"})}get(r={}){const{rootName:c="main",trim:u="empty"}=r;if(!this._checkIfRootsExists([c]))throw new nt("datacontroller-get-non-existent-root",this);const _=this.model.document.getRoot(c);return _.isAttached()||Tt("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 x=Si._createIn(r),M=new Td(u);this.mapper.bindElements(r,M);const E=r.is("documentFragment")?r.markers:function(F){const V=[],W=F.root.document;if(!W)return new Map;const dt=Si._createIn(F);for(const Zt of W.model.markers){const ue=Zt.getRange(),Ae=ue.isCollapsed,Ie=ue.start.isEqual(dt.start)||ue.end.isEqual(dt.end);if(Ae&&Ie)V.push([Zt.name,ue]);else{const ln=dt.getIntersection(ue);ln&&V.push([Zt.name,ln])}}return V.sort(([Zt,ue],[Ae,Ie])=>{if("after"!==ue.end.compareWith(Ie.start))return 1;if("before"!==ue.start.compareWith(Ie.end))return-1;switch(ue.start.compareWith(Ie.start)){case"before":return 1;case"after":return-1;default:switch(ue.end.compareWith(Ie.end)){case"before":return 1;case"after":return-1;default:return Ae.localeCompare(Zt)}}}),new Map(V)}(r);return this.downcastDispatcher.convert(x,E,_,c),M}init(r){if(this.model.document.version)throw new nt("datacontroller-init-document-not-empty",this);let c={};if("string"==typeof r?c.main=r:c=r,!this._checkIfRootsExists(Object.keys(c)))throw new nt("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},u=>{for(const _ of Object.keys(c)){const x=this.model.document.getRoot(_);u.insert(this.parse(c[_],x),x,0)}}),Promise.resolve()}set(r,c={}){let u={};if("string"==typeof r?u.main=r:u=r,!this._checkIfRootsExists(Object.keys(u)))throw new nt("datacontroller-set-non-existent-root",this);this.model.enqueueChange(c.batchType||{},_=>{_.setSelection(null),_.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const x of Object.keys(u)){const M=this.model.document.getRoot(x);_.remove(_.createRangeIn(M)),_.insert(this.parse(u[x],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 nt("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:r,dispatchers:[c],isDowncast:u})}for(r){if(!this._helpers.has(r))throw new nt("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 nt("conversion-group-exists",this);const _=u?new j6(c):new Q6(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*c0(c,u,_)}else yield*c0(m.model,m.view,m.upcastAlso)}function*c0(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 dh(m,r){const c=mh(r),u=c.reduce((M,E)=>M+E.offsetSize,0),_=m.parent;$m(m);const x=m.index;return _._insertChild(x,c),J1(_,x+c.length),J1(_,x),new Si(m,m.getShiftedBy(u))}function ph(m){if(!m.isFlat)throw new nt("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 nt("operation-utils-move-range-not-flat",this);const c=ph(m);return dh(r=r._getTransformedByDeletion(m.start,m.end.offset-m.start.offset),c)}function mh(m){const r=[];!function c(u){if("string"==typeof u)r.push(new ss(u));else if(u instanceof Ku)r.push(new ss(u.data,u.getAttributes()));else if(u instanceof oc)r.push(u);else if(it(u))for(const _ of u)c(_)}(m);for(let c=1;cr.maxOffset)throw new nt("move-operation-nodes-do-not-exist",this);if(r===c&&u<_&&_=u&&this.targetPosition.path[x]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))),dh(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 x of r.nodes)u.push(x.name?Jr.fromJSON(x):ss.fromJSON(x));const _=new _c(to.fromJSON(r.position,c),u,r.baseVersion);return _.shouldReceiveAttributes=r.shouldReceiveAttributes,_}}class Ar extends ed{constructor(r,c,u,_,x){super(x),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 Si(this.splitPosition,r)}get affectedSelectable(){const r=[Si._createFromPositionAndShift(this.splitPosition,0),Si._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&r.push(Si._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 fs(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(x=>new Wr(x,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,fs,(m,r)=>{const c=[];m.range.start.hasSameParentAs(r.deletionPosition)&&(m.range.containsPosition(r.deletionPosition)||m.range.start.isEqual(r.deletionPosition))&&c.push(Si._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 x=Si._createFromPositionAndShift(_.sourcePosition,_.howMany);let M=null,E=[];x.containsRange(u,!0)?M=u:u.start.hasSameParentAs(x.start)?(E=u.getDifference(x),M=u.getIntersection(x)):E=[u];const F=[];for(let V of E){V=V._getTransformedByDeletion(_.sourcePosition,_.howMany);const W=_.getMovedRangeStart(),dt=V.start.hasSameParentAs(W),Zt=V._getTransformedByInsertion(W,_.howMany,dt);F.push(...Zt)}return M&&F.push(M._getTransformedByMove(_.sourcePosition,_.targetPosition,_.howMany,!1)[0]),F}(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 Si(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,fs,(m,r)=>(m.position=m.position._getTransformedByMergeOperation(r),[m])),Zr(Ts,_c,(m,r)=>(m.oldRange&&(m.oldRange=m.oldRange._getTransformedByInsertOperation(r)[0]),m.newRange&&(m.newRange=m.newRange._getTransformedByInsertOperation(r)[0]),[m])),Zr(Ts,Ts,(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(Ts,fs,(m,r)=>(m.oldRange&&(m.oldRange=m.oldRange._getTransformedByMergeOperation(r)),m.newRange&&(m.newRange=m.newRange._getTransformedByMergeOperation(r)),[m])),Zr(Ts,ir,(m,r,c)=>{if(m.oldRange&&(m.oldRange=Si._createFromRanges(m.oldRange._getTransformedByMoveOperation(r))),m.newRange){if(c.abRelation){const u=Si._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=Si._createFromRanges(m.newRange._getTransformedByMoveOperation(r))}return[m]}),Zr(Ts,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(fs,_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(fs,fs,(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 x=r.targetPosition._getTransformedByMergeOperation(r),M=m.targetPosition._getTransformedByMergeOperation(r);return[new ir(x,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(fs,ir,(m,r,c)=>{const u=Si._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(fs,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=Si._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=Si._createFromPositionAndShift(m.sourcePosition,m.howMany),_=Si._createFromPositionAndShift(r.sourcePosition,r.howMany);let x,M=c.aIsStrong,E=!c.aIsStrong;if("insertBefore"==c.abRelation||"insertAfter"==c.baRelation?E=!0:"insertAfter"!=c.abRelation&&"insertBefore"!=c.baRelation||(E=!1),x=m.targetPosition.isEqual(r.targetPosition)&&E?m.targetPosition._getTransformedByDeletion(r.sourcePosition,r.howMany):m.targetPosition._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),tf(m,r)&&tf(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],x);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],x);const F=ct(m.sourcePosition.getParentPath(),r.sourcePosition.getParentPath());if("prefix"==F||"extension"==F)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],x);"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 V=[],W=u.getDifference(_);for(const Zt of W){Zt.start=Zt.start._getTransformedByDeletion(r.sourcePosition,r.howMany),Zt.end=Zt.end._getTransformedByDeletion(r.sourcePosition,r.howMany);const ue="same"==ct(Zt.start.getParentPath(),r.getMovedRangeStart().getParentPath()),Ae=Zt._getTransformedByInsertion(r.getMovedRangeStart(),r.howMany,ue);V.push(...Ae)}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===V.length?V.push(dt):1==V.length?_.start.isBefore(u.start)||_.start.isEqual(u.start)?V.unshift(dt):V.push(dt):V.splice(1,0,dt)),0===V.length?[new fc(m.baseVersion)]:mm(V,x)}),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 _=Si._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 Si(r.splitPosition,_.end);return M=M._getTransformedBySplitOperation(r),mm([new Si(_.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 x=[_._getTransformedBySplitOperation(r)];if(r.graveyardPosition){const M=_.start.isEqual(r.graveyardPosition)||_.containsPosition(r.graveyardPosition);m.howMany>1&&M&&!c.aWasUndone&&x.push(Si._createFromPositionAndShift(r.insertionPosition,1))}return mm(x,u)}),Zr(ir,fs,(m,r,c)=>{const u=Si._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 x=[];let M=r.graveyardPosition.clone(),E=r.targetPosition._getTransformedByMergeOperation(r);m.howMany>1&&(x.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 F=r.deletionPosition._getCombined(m.sourcePosition,m.targetPosition),V=new ir(M,1,F,0),W=V.getMovedRangeStart().path.slice();W.push(0);const dt=new to(V.targetPosition.root,W);E=E._getTransformedByMove(M,F,1);const Zt=new ir(E,r.howMany,dt,0);return x.push(V),x.push(Zt),x}const _=Si._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,fs,(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"==ct(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(ml,ml,(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),x=Ar.getInsertionPosition(new to(r.graveyardPosition.root,u)),M=new Ar(_,0,x,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=Si._createFromPositionAndShift(r.sourcePosition,r.howMany);if(m.graveyardPosition){const x=u.start.isEqual(m.graveyardPosition)||u.containsPosition(m.graveyardPosition);if(!c.bWasUndone&&x){const M=m.splitPosition._getTransformedByMoveOperation(r),E=m.graveyardPosition._getTransformedByMoveOperation(r),F=E.path.slice();F.push(0);const V=new to(E.root,F);return[new ir(M,m.howMany,V,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:x,offset:M}=c.abRelation;return m.howMany+=x,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 x=[];return r.howMany&&x.push(new ir(r.moveTargetPosition,r.howMany,r.splitPosition,0)),m.howMany&&x.push(new ir(m.splitPosition,m.howMany,m.moveTargetPosition,0)),x}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&&K6.call(this,c)},{priority:"low"})}function K6(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}:{},Tt("batch-constructor-deprecated-string-type"));const{isUndoable:c=!0,isLocal:u=!0,isUndo:_=!1,isTyping:x=!1}=r;this.operations=[],this.isUndoable=c,this.isLocal=u,this.isUndo=_,this.isTyping=x}get type(){return Tt("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 X6=Object.defineProperty,t4=Object.defineProperties,wv=Object.getOwnPropertyDescriptors,fh=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,e4=Object.prototype.propertyIsEnumerable,Gl=(m,r,c)=>r in m?X6(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,nf=(m,r)=>{for(var c in r||(r={}))ef.call(r,c)&&Gl(m,c,r[c]);if(fh)for(var c of fh(r))e4.call(r,c)&&Gl(m,c,r[c]);return m};class n4{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=Si._createFromPositionAndShift(c.position,1);for(const _ of this._markerCollection.getMarkersIntersectingRange(u)){const x=_.getData();this.bufferMarkerChange(_.name,x,x)}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 x=c.targetPosition.parent;this._isInInsertedElement(x)||this._markInsert(x,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,x=r.range&&c.range&&!r.range.isEqual(c.range);if(u||_||x)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((W,dt)=>W.offset===dt.offset?W.type!=dt.type?"remove"==W.type?-1:1:0:W.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(d0),r.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map(r=>{const c=nf({},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 x=this._changedRoots.get(r)||{name:r},M=x.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 x.attributes,void 0===x.state&&this._changedRoots.delete(r)):(x.attributes=M,this._changedRoots.set(r,x))}_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=Si._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=nf({},_),t4(c,wv({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(_>x){const M={type:"attribute",offset:x,howMany:_-x,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.offsetx?(r.nodesToHandle=_-x,r.offset=x):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&&_<=x?(r.nodesToHandle=0,r.howMany=0,r.offset=0):r.offset<=u.offset&&_>=x&&(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[x,M]of c){const E=u.has(x)?u.get(x):null;E!==M&&_.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:x,attributeOldValue:M,attributeNewValue:E,changeCount:this._changeCount++}),u.delete(x)}for(const[x,M]of u)_.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:x,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 x of u)if("insert"==x.type&&_>=x.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 nt("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,F]of this._gaps)r>E&&rE&&_this.lastOperation.baseVersion)return[];let x=this._baseVersionToOperationIndex.get(r);void 0===x&&(x=0);let M=this._baseVersionToOperationIndex.get(_);return void 0===M&&(M=this._operations.length-1),this._operations.slice(x,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,e5=Object.defineProperties,Uv=Object.getOwnPropertyDescriptors,Dp=Object.getOwnPropertySymbols,gh=Object.prototype.hasOwnProperty,bh=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={}))gh.call(r,c)&&fm(m,c,r[c]);if(Dp)for(var c of Dp(r))bh.call(r,c)&&fm(m,c,r[c]);return m},Xm=(m,r)=>e5(m,Uv(r));const af="$graveyard";class n5 extends(Oe()){constructor(r){super(),this.model=r,this.history=new t5,this.selection=new Ou(this),this.roots=new ec({idProperty:"rootName"}),this.differ=new n4(r.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",af),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,_,x,M)=>{const E=Xm(X_({},u.getData()),{range:x});this.differ.bufferMarkerChange(u.name,M,E),null===_&&u.on("change",(F,V)=>{const W=u.getData();this.differ.bufferMarkerChange(u.name,Xm(X_({},W),{range:V}),W)})}),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(af)}createRoot(r="$root",c="main"){if(this.roots.get(c))throw new nt("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!cn(c,u)&&!hd(c,u)}return!0}var vh=Object.defineProperty,p0=Object.defineProperties,o5=Object.getOwnPropertyDescriptors,m0=Object.getOwnPropertySymbols,a5=Object.prototype.hasOwnProperty,xh=Object.prototype.propertyIsEnumerable,Q1=(m,r,c)=>r in m?vh(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class t2 extends(Oe()){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 x=r instanceof hm?r.name:r;if(x.includes(","))throw new nt("markercollection-incorrect-marker-name",this);const M=this._markers.get(x);if(M){const W=M.getData(),dt=M.getRange();let Zt=!1;return dt.isEqual(c)||(M._attachLiveRange(Xu.fromRange(c)),Zt=!0),u!=M.managedUsingOperations&&(M._managedUsingOperations=u,Zt=!0),"boolean"==typeof _&&_!=M.affectsData&&(M._affectsData=_,Zt=!0),Zt&&this.fire(`update:${x}`,M,dt,c,W),M}const E=Xu.fromRange(c),F=new hm(x,E,u,_);var V;return this._markers.set(x,F),this.fire(`update:${x}`,F,null,c,(V=((W,dt)=>{for(var Zt in dt||(dt={}))a5.call(dt,Zt)&&Q1(W,Zt,dt[Zt]);if(m0)for(var Zt of m0(dt))xh.call(dt,Zt)&&Q1(W,Zt,dt[Zt]);return W})({},F.getData()),p0(V,o5({range:null})))),F}_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 nt("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(Oe(Up)){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 nt("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new nt("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new nt("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new nt("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new nt("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 nt("detach-operation-on-document-node",this)}_execute(){ph(Si._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Xd extends Up{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):ss.fromJSON(u));return new Xd(c)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,c){const u="string"==typeof(_=c)?[new ss(_)]:(it(_)||(_=[_]),Array.from(_).map(x=>"string"==typeof x?new ss(x):x instanceof Ku?new ss(x.data,x.getAttributes()):x));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 rf{constructor(r,c){this.model=r,this.batch=c}createText(r,c){return new ss(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 ss&&""==r.data)return;const _=to._createAt(c,u);if(r.parent){if(f0(r.root,_.root))return void this.move(Si._createOn(r),_);if(r.root.document)throw new nt("model-writer-insert-forbidden-move",this);this.remove(r)}const M=new _c(_,r,_.root.document?_.root.document.version:null);if(r instanceof ss&&(M.shouldReceiveAttributes=!0),this.batch.addOperation(M),this.model.applyOperation(M),r instanceof Xd)for(const[E,F]of r.markers){const V=to._createAt(F.root,0),W={range:new Si(F.start._getCombined(V,_),F.end._getCombined(V,_)),usingOperation:!0,affectsData:!0};this.model.markers.has(E)?this.updateMarker(E,W):this.addMarker(E,W)}}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 Si){const _=u.getMinimalFlatRanges();for(const x of _)t_(this,r,c,x)}else Ch(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 Si){const u=c.getMinimalFlatRanges();for(const _ of u)t_(this,r,null,_)}else Ch(this,r,null,c)}clearAttributes(r){this._assertWriterUsedCorrectly();const c=u=>{for(const _ of u.getAttributeKeys())this.removeAttribute(_,u)};if(r instanceof Si)for(const u of r.getItems())c(u);else c(r)}move(r,c,u){if(this._assertWriterUsedCorrectly(),!(r instanceof Si))throw new nt("writer-move-invalid-range",this);if(!r.isFlat)throw new nt("writer-move-range-not-flat",this);const _=to._createAt(c,u);if(_.isEqual(r.start))return;if(this._addOperationForAffectedMarkers("move",r),!f0(r.root,_.root))throw new nt("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 Si?r:Si._createOn(r)).getMinimalFlatRanges().reverse();for(const u of c)this._addOperationForAffectedMarkers("move",u),_0(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 nt("writer-merge-no-element-before",this);if(!(u instanceof Jr))throw new nt("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(Si._createIn(u),to._createAt(c,"end")),this.remove(u)}_merge(r){const c=to._createAt(r.nodeBefore,"end"),u=to._createAt(r.nodeAfter,0),x=new to(r.root.document.graveyard,[0]),E=new fs(u,r.nodeAfter.maxOffset,c,x,r.root.document.version);this.batch.addOperation(E),this.model.applyOperation(E)}rename(r,c){if(this._assertWriterUsedCorrectly(),!(r instanceof Jr))throw new nt("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,_,x=r.parent;if(!x.parent)throw new nt("writer-split-element-no-parent",this);if(c||(c=x.parent),!r.parent.getAncestors({includeSelf:!0}).includes(c))throw new nt("writer-split-invalid-limit-element",this);do{const M=x.root.document?x.root.document.version:null,E=x.maxOffset-r.offset,F=Ar.getInsertionPosition(r),V=new Ar(r,E,F,null,M);this.batch.addOperation(V),this.model.applyOperation(V),u||_||(u=x,_=r.parent.nextSibling),x=(r=this.createPositionAfter(r.parent)).parent}while(x!==c);return{position:r,range:new Si(to._createAt(u,"end"),to._createAt(_,0))}}wrap(r,c){if(this._assertWriterUsedCorrectly(),!r.isFlat)throw new nt("writer-wrap-range-not-flat",this);const u=c instanceof Jr?c:new Jr(c);if(u.childCount>0)throw new nt("writer-wrap-element-not-empty",this);if(null!==u.parent)throw new nt("writer-wrap-element-attached",this);this.insert(u,r.start);const _=new Si(r.start.getShiftedBy(1),r.end.getShiftedBy(1));this.move(_,to._createAt(u,0))}unwrap(r){if(this._assertWriterUsedCorrectly(),null===r.parent)throw new nt("writer-unwrap-element-no-parent",this);this.move(Si._createIn(r),this.createPositionAfter(r)),this.remove(r)}addMarker(r,c){if(this._assertWriterUsedCorrectly(),!c||"boolean"!=typeof c.usingOperation)throw new nt("writer-addmarker-no-usingoperation",this);const u=c.usingOperation,_=c.range,x=void 0!==c.affectsData&&c.affectsData;if(this.model.markers.has(r))throw new nt("writer-addmarker-marker-exists",this);if(!_)throw new nt("writer-addmarker-no-range",this);return u?(Pp(this,r,null,_,x),this.model.markers.get(r)):this.model.markers._set(r,_,u,x)}updateMarker(r,c){this._assertWriterUsedCorrectly();const u="string"==typeof r?r:r.name,_=this.model.markers.get(u);if(!_)throw new nt("writer-updatemarker-marker-not-exists",this);if(!c)return Tt("writer-updatemarker-reconvert-using-editingcontroller",{markerName:u}),void this.model.markers._refresh(_);const x="boolean"==typeof c.usingOperation,M="boolean"==typeof c.affectsData,E=M?c.affectsData:_.affectsData;if(!x&&!c.range&&!M)throw new nt("writer-updatemarker-wrong-options",this);const F=_.getRange(),V=c.range?c.range:F;x&&c.usingOperation!==_.managedUsingOperations?c.usingOperation?Pp(this,u,null,V,E):(Pp(this,u,F,null,E),this.model.markers._set(u,V,void 0,E)):_.managedUsingOperations?Pp(this,u,F,V,E):this.model.markers._set(u,V,void 0,E)}removeMarker(r){this._assertWriterUsedCorrectly();const c="string"==typeof r?r:r.name;if(!this.model.markers.has(c))throw new nt("writer-removemarker-no-marker",this);const u=this.model.markers.get(c);u.managedUsingOperations?Pp(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 nt("writer-addroot-root-exists",this);const _=this.model.document,x=new ml(r,c,!0,_,_.version);return this.batch.addOperation(x),this.model.applyOperation(x),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 nt("writer-detachroot-no-root",this);for(const x of this.model.markers)x.getRange().root===c&&this.removeMarker(x);for(const x of c.getAttributeKeys())this.removeAttribute(x,c);this.remove(this.createRangeIn(c));const u=this.model.document,_=new ml(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 nt("writer-incorrect-use",this)}_addOperationForAffectedMarkers(r,c){for(const u of this.model.markers){if(!u.managedUsingOperations)continue;const _=u.getRange();let x=!1;if("move"===r){const M=c;x=M.containsPosition(_.start)||M.start.isEqual(_.start)||M.containsPosition(_.end)||M.end.isEqual(_.end)}else{const F=c.nodeAfter,W=_.end.parent==F&&0==_.end.offset,dt=_.end.nodeAfter==F,Zt=_.start.nodeAfter==F;x=_.start.parent==c.nodeBefore&&_.start.isAtEnd||W||dt||Zt}x&&this.updateMarker(u.name,{range:_})}}}function t_(m,r,c,u){const _=m.model,x=_.document;let M,E,F,V=u.start;for(const dt of u.getWalker({shallow:!0}))F=dt.item.getAttribute(r),M&&E!=F&&(E!=c&&W(),V=M),M=dt.nextPosition,E=F;function W(){const dt=new Si(V,M),ue=new Wr(dt,r,E,c,dt.root.document?x.version:null);m.batch.addOperation(ue),_.applyOperation(ue)}M instanceof to&&M!=V&&E!=c&&W()}function Ch(m,r,c,u){const _=m.model,x=_.document,M=u.getAttribute(r);let E,F;M!=c&&(u.root===u?F=new $d(u,r,M,c,u.document?x.version:null):(E=new Si(to._createBefore(u),m.createPositionAfter(u)),F=new Wr(E,r,M,c,E.root.document?x.version:null)),m.batch.addOperation(F),_.applyOperation(F))}function Pp(m,r,c,u,_){const x=m.model,E=new Ts(r,c,u,x.markers,!!_,x.document.version);m.batch.addOperation(E),x.applyOperation(E)}function _0(m,r,c,u){let _;if(m.root.document){const x=u.document,M=new to(x.graveyard,[0]);_=new ir(m,r,M,x.version)}else _=new gm(m,r);c.addOperation(_),u.applyOperation(_)}function f0(m,r){return m===r||m instanceof nl&&r instanceof nl}function Ah(m,r,c={}){if(r.isCollapsed)return;const u=r.getFirstRange();if("$graveyard"==u.root.rootName)return;const _=m.schema;m.change(x=>{if(!c.doNotResetEntireContent&&function(V,W){const dt=V.getLimitElement(W);if(!W.containsEntireContent(dt))return!1;const Zt=W.getFirstRange();return Zt.start.parent!=Zt.end.parent&&V.checkChild(dt,"paragraph")}(_,r))return void function(V,W){const dt=V.model.schema.getLimitElement(W);V.remove(V.createRangeIn(dt)),g0(V,V.createPositionAt(dt,0),W)}(x,r);const M={};if(!c.doNotAutoparagraph){const V=r.getSelectedElement();V&&Object.assign(M,_.getAttributesWithProperty(V,"copyOnReplace",!0))}const[E,F]=function(V){const W=V.root.document.model,dt=V.start;let Zt=V.end;if(W.hasContent(V,{ignoreMarkers:!0})){const ue=function(Ae){const Ie=Ae.parent,ln=Ie.root.document.model.schema,Dn=Ie.getAncestors({parentFirst:!0,includeSelf:!0});for(const di of Dn){if(ln.isLimit(di))return null;if(ln.isBlock(di))return di}}(Zt);if(ue&&Zt.isTouching(W.createPositionAt(ue,0))){const Ae=W.createSelection(V);W.modifySelection(Ae,{direction:"backward"});const Ie=Ae.getLastPosition(),ln=W.createRange(Ie,Zt);W.hasContent(ln,{ignoreMarkers:!0})||(Zt=Ie)}}return[el.fromPosition(dt,"toPrevious"),el.fromPosition(Zt,"toNext")]}(u);E.isTouching(F)||x.remove(x.createRange(E,F)),c.leaveUnmerged||(function(V,W,dt){const Zt=V.model;if(!h0(V.model.schema,W,dt))return;const[ue,Ae]=function(Ie,ln){const Dn=Ie.getAncestors(),di=ln.getAncestors();let Ri=0;for(;Dn[Ri]&&Dn[Ri]==di[Ri];)Ri++;return[Dn[Ri],di[Ri]]}(W,dt);!ue||!Ae||(!Zt.hasContent(ue,{ignoreMarkers:!0})&&Zt.hasContent(Ae,{ignoreMarkers:!0})?r5(V,W,dt,ue.parent):i4(V,W,dt,ue.parent))}(x,E,F),_.removeDisallowedAttributes(E.parent.getChildren(),x)),b0(x,r,E),!c.doNotAutoparagraph&&function(V,W){const dt=V.checkChild(W,"$text"),Zt=V.checkChild(W,"paragraph");return!dt&&Zt}(_,E)&&g0(x,E,r,M),E.detach(),F.detach()})}function i4(m,r,c,u){const _=r.parent,x=c.parent;if(_!=u&&x!=u){for(r=m.createPositionAfter(_),(c=m.createPositionBefore(x)).isEqual(r)||m.insert(x,r),m.merge(r);c.parent.isEmpty;){const M=c.parent;c=m.createPositionBefore(M),m.remove(M)}h0(m.model.schema,r,c)&&i4(m,r,c,u)}}function r5(m,r,c,u){const _=r.parent,x=c.parent;if(_!=u&&x!=u){for(r=m.createPositionAfter(_),(c=m.createPositionBefore(x)).isEqual(r)||m.insert(_,c);r.parent.isEmpty;){const M=r.parent;r=m.createPositionBefore(M),m.remove(M)}c=m.createPositionBefore(x),function(M,E){const F=E.nodeBefore,V=E.nodeAfter;F.name!=V.name&&M.rename(F,V.name),M.clearAttributes(F),M.setAttributes(Object.fromEntries(V.getAttributes()),F),M.merge(E)}(m,c),h0(m.model.schema,r,c)&&r5(m,r,c,u)}}function h0(m,r,c){const u=r.parent,_=c.parent;return u!=_&&!m.isLimit(u)&&!m.isLimit(_)&&function(x,M,E){const F=new Si(x,M);for(const V of F.getWalker())if(E.isLimit(V.item))return!1;return!0}(r,c,m)}function g0(m,r,c,u={}){const _=m.createElement("paragraph");m.model.schema.setAllowedAttributes(_,u,m),m.insert(_,r),b0(m,c,m.createPositionAt(_,0))}function b0(m,r,c){r instanceof Ou?m.setSelection(c):r.setTo(c)}function sf(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 x=r.createRangeOn(_);_=_.parent,r.remove(x)}})}class o4{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 nt("insertcontent-invalid-insertion-position",this);this.position=u,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?Si._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Si(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 nt("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 nt("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 v0(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 _=as(m.getSelectedBlocks());if(!_)return r.createRange(m.focus);if(_.isEmpty)return r.createRange(r.createPositionAt(_,0));const x=r.createPositionAfter(_);return m.focus.isTouching(x)?r.createRange(x):r.createRange(r.createPositionBefore(_))}function a4(m,r){const{isForward:c,walker:u,unit:_,schema:x,treatEmojiAsSingleUnit:M}=m,{type:E,item:F,nextPosition:V}=r;if("text"==E)return"word"===m.unit?function(W,dt){let Zt=W.position.textNode;for(Zt||(Zt=dt?W.position.nodeAfter:W.position.nodeBefore);Zt&&Zt.is("$text");){const ue=W.position.offset-Zt.startOffset;if(x0(Zt,ue,dt))Zt=dt?W.position.nodeAfter:W.position.nodeBefore;else{if(s5(Zt.data,ue,dt))break;W.next()}}return W.position}(u,c):function(W,dt,Zt){const ue=W.position.textNode;if(ue){const Ae=ue.data;let Ie=W.position.offset-ue.startOffset;for(;cn(Ae,Ie)||"character"==dt&&hd(Ae,Ie)||Zt&&kl(Ae,Ie);)W.next(),Ie=W.position.offset-ue.startOffset}return W.position}(u,_,M);if(E==(c?"elementStart":"elementEnd")){if(x.isSelectable(F))return to._createAt(F,c?"after":"before");if(x.checkChild(V,"$text"))return V}else{if(x.isLimit(F))return void u.skip(()=>!0);if(x.checkChild(V,"$text"))return V}}function r4(m,r){const u=to._createAt(m.root,r?"end":0);return r?new Si(m,u):new Si(u,m)}function s5(m,r,c){return' ,.?!:;"-()'.includes(m.charAt(r+(c?0:-1)))}function x0(m,r,c){return r===(c?m.offsetSize:0)}class hs extends(Ue()){constructor(){super(),this.markers=new t2,this.document=new n5(this),this.schema=new W3,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 ah(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.selection,x=u.schema,M=[];let E=!1;for(const F of _.getRanges()){const V=Ga(F,x);V&&!V.isEqual(F)?(M.push(V),E=!0):M.push(F)}return E&&c.setSelection(function(F){const V=[...F],W=new Set;let dt=1;for(;dt!W.has(ue))}(M),{backward:_.isBackward}),!1}(r,m))}(this),this.document.registerPostFixer(eh),this.on("insertContent",(r,[c,u])=>{var _,x,M;r.return=(x=c,M=u,(_=this).change(E=>{const F=M||_.document.selection;F.isCollapsed||_.deleteContent(F,{doNotAutoparagraph:!0});const V=new o4(_,E,F.anchor),W=[];let dt;if(x.is("documentFragment")){if(x.markers.size){const Ae=[];for(const[Ie,ln]of x.markers){const{start:Dn,end:di}=ln,Ri=Dn.isEqual(di);Ae.push({position:Dn,name:Ie,isCollapsed:Ri},{position:di,name:Ie,isCollapsed:Ri})}Ae.sort(({position:Ie},{position:ln})=>Ie.isBefore(ln)?1:-1);for(const{position:Ie,name:ln,isCollapsed:Dn}of Ae){let di=null,Ri=null;const Go=Ie.parent===x&&Ie.isAtStart,Da=Ie.parent===x&&Ie.isAtEnd;Go||Da?Dn&&(Ri=Go?"start":"end"):(di=E.createElement("$marker"),E.insert(di,Ie)),W.push({name:ln,element:di,collapsed:Ri})}}dt=x.getChildren()}else dt=[x];V.handleNodes(dt);let Zt=V.getSelectionRange();if(x.is("documentFragment")&&W.length){const Ae=Zt?Xu.fromRange(Zt):null,Ie={};for(let ln=W.length-1;ln>=0;ln--){const{name:Dn,element:di,collapsed:Ri}=W[ln],Go=!Ie[Dn];if(Go&&(Ie[Dn]=[]),di){const Da=E.createPositionAt(di,"before");Ie[Dn].push(Da),E.remove(di)}else{const Da=V.getAffectedRange();if(!Da){Ri&&Ie[Dn].push(V.position);continue}Ie[Dn].push(Ri?Da[Ri]:Go?Da.start:Da.end)}}for(const[ln,[Dn,di]]of Object.entries(Ie))Dn&&di&&Dn.root===di.root&&E.addMarker(ln,{usingOperation:!0,affectsData:!0,range:new Si(Dn,di)});Ae&&(Zt=Ae.toRange(),Ae.detach())}Zt&&(F instanceof Ou?E.setSelection(Zt):F.setTo(Zt));const ue=V.getAffectedRange()||_.createRange(F.anchor);return V.destroy(),ue}))}),this.on("insertObject",(r,[c,u,_])=>{r.return=function mu(m,r,c,u={}){if(!m.schema.isObject(r))throw new nt("insertobject-element-not-an-object",m,{object:r});const _=c||m.document.selection;let x=_;u.findOptimalPosition&&m.schema.isBlock(r)&&(x=m.createSelection(v0(_,m,u.findOptimalPosition)));const M=as(_.getSelectedBlocks()),E={};return M&&Object.assign(E,m.schema.getAttributesWithProperty(M,"copyOnReplace",!0)),m.change(F=>{x.isCollapsed||m.deleteContent(x,{doNotAutoparagraph:!0});let V=r;const W=x.anchor.parent;!m.schema.checkChild(W,r)&&m.schema.checkChild(W,"paragraph")&&m.schema.checkChild("paragraph",r)&&(V=F.createElement("paragraph"),F.insert(r,V)),m.schema.setAllowedAttributes(V,E,F);const dt=m.insertContent(V,x);return dt.isCollapsed||u.setSelection&&function(Zt,ue,Ae,Ie){const ln=Zt.model;if("on"==Ae)return void Zt.setSelection(ue,"on");if("after"!=Ae)throw new nt("insertobject-invalid-place-parameter-value",ln);let Dn=ue.nextSibling;ln.schema.isInline(ue)?Zt.setSelection(ue,"after"):(!(Dn&&ln.schema.checkChild(Dn,"$text"))&&ln.schema.checkChild(ue.parent,"paragraph")&&(Dn=Zt.createElement("paragraph"),ln.schema.setAllowedAttributes(Dn,Ie,Zt),ln.insertContent(Dn,Zt.createPositionAfter(ue))),Dn&&Zt.setSelection(Dn,0))}(F,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){nt.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){nt.rethrowUnexpectedError(u,this)}}applyOperation(r){r._execute()}insertContent(r,c,u,..._){const x=e2(c,u);return this.fire("insertContent",[r,x,u,..._])}insertObject(r,c,u,_,...x){const M=e2(c,u);return this.fire("insertObject",[r,M,_,_,...x])}deleteContent(r,c){Ah(this,r,c)}modifySelection(r,c){!function(u,_,x={}){const M=u.schema,E="backward"!=x.direction,F=x.unit?x.unit:"character",V=!!x.treatEmojiAsSingleUnit,dt=new Gd({boundaries:r4(_.focus,E),singleCharacters:!0,direction:E?"forward":"backward"}),Zt={walker:dt,schema:M,isForward:E,unit:F,treatEmojiAsSingleUnit:V};let ue;for(;ue=dt.next();){if(ue.done)return;const Ae=a4(Zt,ue.value);if(Ae)return void(_ instanceof Ou?u.change(Ie=>{Ie.setSelectionFocus(Ae)}):_.setFocus(Ae))}}(this,r,c)}getSelectedContent(r){return u=r,this.change(_=>{const x=_.createDocumentFragment(),M=u.getFirstRange();if(!M||M.isCollapsed)return x;const E=M.start.root,F=M.start.getCommonPath(M.end),V=E.getNodeByPath(F);let W;W=M.start.parent==M.end.parent?M:_.createRange(_.createPositionAt(V,M.start.path[F.length]),_.createPositionAt(V,M.end.path[F.length]+1));const dt=W.end.offset-W.start.offset;for(const Zt of W.getItems({shallow:!0}))Zt.is("$textProxy")?_.appendText(Zt.data,Zt.getAttributes(),x):_.append(_.cloneElement(Zt,!0),x);if(W!=M){const Zt=M._getTransformedByMove(W.start,_.createPositionAt(x,0),dt)[0],ue=_.createRange(_.createPositionAt(x,0),Zt.start);sf(_.createRange(Zt.end,_.createPositionAt(x,"end")),_),sf(ue,_)}return x});var u}hasContent(r,c={}){const u=r instanceof Si?r:Si._createIn(r);if(u.isCollapsed)return!1;const{ignoreWhitespaces:_=!1,ignoreMarkers:x=!1}=c;if(!x)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 Si(r,c)}createRangeIn(r){return Si._createIn(r)}createRangeOn(r){return Si._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 rf(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 s4 extends Wu{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(r){this.fire(r.type,r)}}class C0 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){Xe(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 Ma(r,c)}createRangeOn(r){return Ma._createOn(r)}createRangeIn(r){return Ma._createIn(r)}createSelection(...r){return new ju(...r)}}class c4{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 nt("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 l4 extends(Ue()){constructor(r={}){super();const c=this.constructor;this._context=r.context||new M2({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 Ef(this,_,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new c4,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new hs,this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});const x=new Lg;this.data=new $_(this.model,x),this.editing=new um(this.model,x),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 nt("editor-isreadonly-has-no-setter")}enableReadOnlyMode(r){if("string"!=typeof r&&"symbol"!=typeof r)throw new nt("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 nt("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")||[],x=r.get("substitutePlugins")||[];return this.plugins.init(c.concat(_),u,x)}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){nt.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 cf(m){return class extends m{updateSourceElement(r=this.data.get()){if(!this.sourceElement)throw new nt("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:"")}}}cf.updateSourceElement=cf(Object).prototype.updateSourceElement;class Th 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 nt("pendingactions-add-invalid-message",this);const c=new(Ue());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 gs={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 A0=v(5542);No()(A0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const{threeVerticalDots:o2}=gs,y0={alignLeft:gs.alignLeft,bold:gs.bold,importExport:gs.importExport,paragraph:gs.paragraph,plus:gs.plus,text:gs.text,threeVerticalDots:gs.threeVerticalDots,pilcrow:gs.pilcrow,dragIndicator:gs.dragIndicator};class T0 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 rs,this.keystrokes=new $c,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new Bs(r),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const x="rtl"===r.uiLanguageDirection;this._focusCycler=new ul({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[x?"arrowright":"arrowleft","arrowup"],focusNext:[x?"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(F=>{F.target===E.element&&F.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new u4(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 _=_p(r),x=u||_.removeItems;return this._cleanItemsConfiguration(_.items,c,x).map(M=>Wt(M)?this._createNestedToolbarDropdown(M,c,x):"|"===M?new dl:"-"===M?new Z2:c.create(M)).filter(M=>!!M)}_cleanItemsConfiguration(r,c,u){const _=r.filter((x,M,E)=>"|"===x||-1===u.indexOf(x)&&("-"===x?!this.options.shouldGroupWhenFull||(Tt("toolbarview-line-break-ignored-when-grouping-items",E),!1):!(!Wt(x)&&!c.has(x)&&(Tt("toolbarview-item-unavailable",{item:x}),1))));return this._cleanSeparatorsAndLineBreaks(_)}_cleanSeparatorsAndLineBreaks(r){const c=M=>"-"!==M&&"|"!==M,u=r.length,_=r.findIndex(c);if(-1===_)return[];const x=u-r.slice().reverse().findIndex(c);return r.slice(_,x).filter((M,E,F)=>!!c(M)||!(E>0&&F[E-1]===M))}_createNestedToolbarDropdown(r,c,u){let{label:_,icon:x,items:M,tooltip:E=!0,withText:F=!1}=r;if(M=this._cleanItemsConfiguration(M,c,u),!M.length)return null;const V=Lp(this.locale);return _||Tt("toolbarview-nested-toolbar-dropdown-missing-label",r),V.class="ck-toolbar__nested-toolbar-dropdown",V.buttonView.set({label:_,tooltip:E,withText:!!F}),!1!==x?V.buttonView.icon=y0[x]||x||o2:V.buttonView.withText=!0,e_(V,()=>V.toolbarView._buildItemsFromConfig(M,c,u)),V}}class Bs 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 u4{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,x=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<_+x.length;M++){const E=x[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 ce(r.lastChild),_=new ce(r);if(!this.cachedPadding){const x=Mt.window.getComputedStyle(r);this.cachedPadding=Number.parseInt(x["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 dl),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=Lp(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 d4(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",x=>!x)]},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);No()(r2.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class d4 extends oa{constructor(r){super(r),this._listItemGroupToChangeListeners=new WeakMap;const c=this.bindTemplate;this.focusables=new Na,this.items=this.createCollection(),this.focusTracker=new rs,this.keystrokes=new $c,this._focusCycler=new ul({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((_,x)=>{this._registerFocusableListItem(_,void 0!==c?c+x: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 Uh 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 Sp extends oa{constructor(r){super(r),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var bm=v(7686);No()(bm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class p4 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 rs,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 Mh=v(7339);No()(Mh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var vm=v(3949);function Lp(m,r=x1){const c=new r(m),u=new y_(m),_=new Uu(m,c,u);return c.bind("isEnabled").to(_),c instanceof p4?c.arrowView.bind("isOn").to(_,"isOpen"):c.bind("isOn").to(_,"isOpen"),(M=x=_).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 ys||(M.isOpen=!1)})}(x),function(M){M.focusTracker.on("change:isFocused",(E,F,V)=>{M.isOpen&&!V&&(M.isOpen=!1)})}(x),function(M){M.keystrokes.set("arrowdown",(E,F)=>{M.isOpen&&(M.panelView.focus(),F())}),M.keystrokes.set("arrowup",(E,F)=>{M.isOpen&&(M.panelView.focusLast(),F())})}(x),function(M){M.on("change:isOpen",(E,F,V)=>{if(V)return;const W=M.panelView.element;W&&W.contains(Mt.document.activeElement)&&M.buttonView.focus()})}(x),function(M){M.on("change:isOpen",(E,F,V)=>{V&&M.panelView.focus()},{priority:"low"})}(x),_;var x,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,x=m.toolbarView=new T0(u),M="function"==typeof r?r():r;x.ariaLabel=c.ariaLabel||_("Dropdown toolbar"),c.maxWidth&&(x.maxWidth=c.maxWidth),c.class&&(x.class=c.class),c.isCompact&&(x.isCompact=c.isCompact),c.isVertical&&(x.isVertical=!0),M instanceof Na?x.items.bindTo(M).using(E=>E):x.items.addMany(M),m.panelView.children.add(x),x.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 Uh&&u.children.first.isOn))}function Cm(m,r,c){const u=m.locale,_=m.listView=new d4(u),x="function"==typeof r?r():r;_.ariaLabel=c.ariaLabel,_.role=c.role,Am(m,_.items,x,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():Tt("ui-dropdown-focus-child-on-open-child-missing-focus",{view:c}))},{priority:Dt.low-10})}function Am(m,r,c,u){r.bindTo(c).using(_=>{if("separator"===_.type)return new Sp(u);if("group"===_.type){const x=new a2(u);return x.set({label:_.label}),Am(m,x.items,_.items,u),x.items.delegate("execute").to(m),x}if("button"===_.type||"switchbutton"===_.type){const x=new Uh(u);let M;return M="button"===_.type?new $o(u):new ys(u),M.bind(...Object.keys(_.model)).to(_.model),M.delegate("execute").to(x),x.children.add(M),x}return null})}No()(vm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const lf=(m,r,c)=>{const u=new vg(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,w0=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}%)`},kh=m=>{const r=m.toString(16);return r.length<2?"0"+r:r},_4=(m,r)=>{if(m===r)return!0;for(const c in m)if(m[c]!==r[c])return!1;return!0},k0={},D0=m=>{let r=k0[m];return r||(r=document.createElement("template"),r.innerHTML=m,k0[m]=r),r},Dh=(m,r,c)=>{m.dispatchEvent(new CustomEvent(r,{bubbles:!0,detail:c}))};let ym=!1;const P0=m=>"touches"in m,uf=(m,r)=>{const c=P0(r)?r.touches[0]:r,u=m.el.getBoundingClientRect();Dh(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 f4{constructor(r,c,u,_){const x=D0(`
`);r.appendChild(x.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&&!P0(c)||(ym||(ym=P0(c)),0)||!ym&&0!=r.button)return;this.el.focus(),uf(this,r),this.dragging=!0;break;case"mousemove":case"touchmove":r.preventDefault(),uf(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(),Dh(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 f4{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 f4{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 st=Symbol("same"),Qt=Symbol("color"),Ne=Symbol("hsva"),pn=Symbol("update"),zn=Symbol("parts"),si=Symbol("css"),_i=Symbol("sliders");class Wi extends HTMLElement{static get observedAttributes(){return["color"]}get[si](){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[_i](){return[R,L]}get color(){return this[Qt]}set color(r){if(!this[st](r)){const c=this.colorModel.toHsva(r);this[pn](c),this[Qt]=r}}constructor(){super();const r=D0(``),c=this.attachShadow({mode:"open"});c.appendChild(r.content.cloneNode(!0)),c.addEventListener("move",this),this[zn]=this[_i].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[st](_)||(this.color=_)}handleEvent(r){const c=this[Ne],u={...c,...r.detail};let _;this[pn](u),_4(u,c)||this[st](_=this.colorModel.fromHsva(u))||(this[Qt]=_,Dh(this,"color-changed",{value:_}))}[st](r){return this.color&&this.colorModel.equal(r,this.color)}[pn](r){this[Ne]=r,this[zn].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),x=_-Math.min(m,r,c),M=x?_===m?(r-c)/x:_===r?2+(c-m)/x:4+(m-r)/x:0;return{h:Ol(60*(M<0?M+6:M)),s:Ol(_?x/_*100:0),v:Ol(_/255*100),a:u}})(w0(m)),fromHsva:({h:m,s:r,v:c})=>(({r:m,g:r,b:c,a:u})=>{const _=u<1?kh(Ol(255*u)):"";return"#"+kh(m)+kh(r)+kh(c)+_})((({h:m,s:r,v:c,a:u})=>{m=m/360*6,r/=100,c/=100;const _=Math.floor(m),x=c*(1-r),M=c*(1-(m-_)*r),E=c*(1-(1-m+_)*r),F=_%6;return{r:Ol(255*[c,M,x,x,E,c][F]),g:Ol(255*[E,c,c,M,x,x][F]),b:Ol(255*[x,x,E,c,c,M][F]),a:Ol(u,2)}})({h:m,s:r,v:c,a:1})),equal:(m,r)=>m.toLowerCase()===r.toLowerCase()||_4(w0(m),w0(r)),fromAttr:m=>m};class co extends Wi{get colorModel(){return $i}}customElements.define("hex-color-picker",class extends co{});var Lo=v(3398);No()(Lo.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ue(ec);var xa=v(4157);No()(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 nt("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);No()(za.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var hc=Object.defineProperty,_l=Object.getOwnPropertySymbols,Es=Object.prototype.hasOwnProperty,Ql=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(_l)for(var c of _l(r))Ql.call(r,c)&&_u(m,c,r[c]);return m};const i_=bo("px"),c2=Mt.document.body,Ph={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}},h4=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=h4.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=h4._getOptimalPosition(c)||Ph,_=parseInt(u.left),x=parseInt(u.top),M=u.name,E=u.config||{},{withArrow:F=!0}=E;this.top=x,this.left=_,this.position=M,this.withArrow=F}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=g4(m.target),c=m.limiter?g4(m.limiter):c2;this.listenTo(Mt.document,"scroll",(u,_)=>{const x=_.target,M=r&&x.contains(r),E=c&&x.contains(c);!M&&!E&&r&&c||this.attachTo(m)},{useCapture:!0}),this.listenTo(Mt.window,"resize",()=>{this.attachTo(m)})}_stopPinning(){this.stopListening(Mt.document,"scroll"),this.stopListening(Mt.window,"resize")}};let id=h4;function g4(m){return la(m)?m:jt(m)?m.commonAncestorContainer:"function"==typeof m?g4(m()):null}function b4(m={}){const{sideOffset:r=id.arrowSideOffset,heightOffset:c=id.arrowHeightOffset,stickyVerticalOffset:u=id.stickyVerticalOffset,config:_}=m;return{northWestArrowSouthWest:(E,F)=>_r({top:x(E,F),left:E.left-r,name:"arrow_sw"},_&&{config:_}),northWestArrowSouthMiddleWest:(E,F)=>_r({top:x(E,F),left:E.left-.25*F.width-r,name:"arrow_smw"},_&&{config:_}),northWestArrowSouth:(E,F)=>_r({top:x(E,F),left:E.left-F.width/2,name:"arrow_s"},_&&{config:_}),northWestArrowSouthMiddleEast:(E,F)=>_r({top:x(E,F),left:E.left-.75*F.width+r,name:"arrow_sme"},_&&{config:_}),northWestArrowSouthEast:(E,F)=>_r({top:x(E,F),left:E.left-F.width+r,name:"arrow_se"},_&&{config:_}),northArrowSouthWest:(E,F)=>_r({top:x(E,F),left:E.left+E.width/2-r,name:"arrow_sw"},_&&{config:_}),northArrowSouthMiddleWest:(E,F)=>_r({top:x(E,F),left:E.left+E.width/2-.25*F.width-r,name:"arrow_smw"},_&&{config:_}),northArrowSouth:(E,F)=>_r({top:x(E,F),left:E.left+E.width/2-F.width/2,name:"arrow_s"},_&&{config:_}),northArrowSouthMiddleEast:(E,F)=>_r({top:x(E,F),left:E.left+E.width/2-.75*F.width+r,name:"arrow_sme"},_&&{config:_}),northArrowSouthEast:(E,F)=>_r({top:x(E,F),left:E.left+E.width/2-F.width+r,name:"arrow_se"},_&&{config:_}),northEastArrowSouthWest:(E,F)=>_r({top:x(E,F),left:E.right-r,name:"arrow_sw"},_&&{config:_}),northEastArrowSouthMiddleWest:(E,F)=>_r({top:x(E,F),left:E.right-.25*F.width-r,name:"arrow_smw"},_&&{config:_}),northEastArrowSouth:(E,F)=>_r({top:x(E,F),left:E.right-F.width/2,name:"arrow_s"},_&&{config:_}),northEastArrowSouthMiddleEast:(E,F)=>_r({top:x(E,F),left:E.right-.75*F.width+r,name:"arrow_sme"},_&&{config:_}),northEastArrowSouthEast:(E,F)=>_r({top:x(E,F),left:E.right-F.width+r,name:"arrow_se"},_&&{config:_}),southWestArrowNorthWest:E=>_r({top:M(E),left:E.left-r,name:"arrow_nw"},_&&{config:_}),southWestArrowNorthMiddleWest:(E,F)=>_r({top:M(E),left:E.left-.25*F.width-r,name:"arrow_nmw"},_&&{config:_}),southWestArrowNorth:(E,F)=>_r({top:M(E),left:E.left-F.width/2,name:"arrow_n"},_&&{config:_}),southWestArrowNorthMiddleEast:(E,F)=>_r({top:M(E),left:E.left-.75*F.width+r,name:"arrow_nme"},_&&{config:_}),southWestArrowNorthEast:(E,F)=>_r({top:M(E),left:E.left-F.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,F)=>_r({top:M(E),left:E.left+E.width/2-.25*F.width-r,name:"arrow_nmw"},_&&{config:_}),southArrowNorth:(E,F)=>_r({top:M(E),left:E.left+E.width/2-F.width/2,name:"arrow_n"},_&&{config:_}),southArrowNorthMiddleEast:(E,F)=>_r({top:M(E),left:E.left+E.width/2-.75*F.width+r,name:"arrow_nme"},_&&{config:_}),southArrowNorthEast:(E,F)=>_r({top:M(E),left:E.left+E.width/2-F.width+r,name:"arrow_ne"},_&&{config:_}),southEastArrowNorthWest:E=>_r({top:M(E),left:E.right-r,name:"arrow_nw"},_&&{config:_}),southEastArrowNorthMiddleWest:(E,F)=>_r({top:M(E),left:E.right-.25*F.width-r,name:"arrow_nmw"},_&&{config:_}),southEastArrowNorth:(E,F)=>_r({top:M(E),left:E.right-F.width/2,name:"arrow_n"},_&&{config:_}),southEastArrowNorthMiddleEast:(E,F)=>_r({top:M(E),left:E.right-.75*F.width+r,name:"arrow_nme"},_&&{config:_}),southEastArrowNorthEast:(E,F)=>_r({top:M(E),left:E.right-F.width+r,name:"arrow_ne"},_&&{config:_}),westArrowEast:(E,F)=>_r({top:E.top+E.height/2-F.height/2,left:E.left-F.width-c,name:"arrow_e"},_&&{config:_}),eastArrowWest:(E,F)=>_r({top:E.top+E.height/2-F.height/2,left:E.right+c,name:"arrow_w"},_&&{config:_}),viewportStickyNorth:(E,F,V,W)=>{const dt=W||V;return E.getIntersection(dt)?dt.height-E.height>u?null:{top:dt.top+u,left:E.left+E.width/2-F.width/2,name:"arrowless",config:_r({withArrow:!1},_)}:null}};function x(E,F){return E.top-F.height-c}function M(E){return E.bottom+c}}id.arrowSideOffset=25,id.arrowHeightOffset=10,id.stickyVerticalOffset=20,id._getOptimalPosition=es,id.defaultPositions=b4();var l5=v(3332);No()(l5.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const u5="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=u5,this.balloonPanelView.content.add(this.tooltipTextView),this._pinTooltipDebounced=R_(this._pinTooltip,600),this.listenTo(Mt.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Mt.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=v4(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(!la(r)||this._currentElementWithTooltip&&r!==this._currentElementWithTooltip)return;const u=v4(r),_=v4(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 _=as(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=[u5,u].filter(x=>x).join(" ");for(const x of od._editors)this.listenTo(x.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 S0=od;function v4(m){return la(m)?m.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}S0.defaultBalloonPositions=b4({heightOffset:5,sideOffset:13}),S0._editors=new Set,S0._instance=null;const Sh=function(m,r,c){var u=!0,_=!0;if("function"!=typeof m)throw new TypeError("Expected a function");return Wt(c)&&(u="leading"in c?!!c.leading:u,_="trailing"in c?!!c.trailing:_),R_(m,r,{leading:u,maxWait:r,trailing:_})};var x4=Object.defineProperty,Mv=Object.getOwnPropertySymbols,d5=Object.prototype.hasOwnProperty,C4=Object.prototype.propertyIsEnumerable,L0=(m,r,c)=>r in m?x4(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Dv extends(Xi()){constructor(r){super(),this.editor=r,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=Sh(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(ue){return ue.length>=40&&ue.length<=255?"VALID":"INVALID"}if(!c)return"INVALID";let _="";try{_=atob(c)}catch{return"INVALID"}const x=_.split("-"),M=x[0],E=x[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 F="";try{atob(M),F=atob(E)}catch{return"INVALID"}if(8!==F.length)return"INVALID";const V=Number(F.substring(0,4)),W=Number(F.substring(4,6))-1,dt=Number(F.substring(6,8)),Zt=new Date(V,W,dt);return Zt{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 y4(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?Oh(u,E=_,(F,V)=>F.left+F.width-V.width-E.horizontalOffset):function(M,E){return Oh(M,E,F=>F.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(x=>r.ui.getEditableElement(x));this._lastFocusedEditableElement=_.includes(u)?u:_[0]}}class y4 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(x=>x.preventDefault())}}]})}}function Oh(m,r,c){return(u,_)=>{const x=new ce(m);if(x.width<350||x.height<50)return null;let M;M="inside"===r.position?x.bottom-_.height:x.bottom-_.height/2,M-=r.verticalOffset;const E=c(x,_),F=u.clone().moveTo(E,M).getIntersection(_.clone().moveTo(E,M)).getVisible();return!F||F.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={}))d5.call(r,c)&&L0(m,c,r[c]);if(Mv)for(var c of Mv(r))C4.call(r,c)&&L0(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 Pv=Object.defineProperty,e1=Object.getOwnPropertySymbols,T4=Object.prototype.hasOwnProperty,E0=Object.prototype.propertyIsEnumerable,M1=(m,r,c)=>r in m?Pv(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Op extends(Ue()){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 rs,this.tooltipManager=new S0(r),this.poweredBy=new Dv(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",(x,M)=>{const E=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(E)&&!Array.from(c.domRoots.values()).includes(E)&&(u=E);const F=this._getCurrentFocusedToolbarDefinition();F&&_||(_=this._getFocusableCandidateToolbarDefinitions());for(let V=0;V<_.length;V++){const W=_.shift();if(_.push(W),W!==F&&this._focusFocusableCandidateToolbar(W)){F&&F.options.afterBlur&&F.options.afterBlur();break}}M()}),r.keystrokes.set("Esc",(x,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)=>Sv(c)-Sv(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=((_,x)=>{for(var M in x||(x={}))T4.call(x,M)&&M1(_,M,x[M]);if(e1)for(var M of e1(x))E0.call(x,M)&&M1(_,M,x[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 Sv(m){const{toolbarView:r,options:c}=m;let u=10;return ra(r.element)&&u--,c.isContextual&&u--,u}var w4=v(9688);No()(w4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class m5 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 Lv extends m5{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 M8 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 x=r.document.getRoot(u.name);_.addClass(u.isFocused?"ck-focused":"ck-blurred",x),_.removeClass(u.isFocused?"ck-blurred":"ck-focused",x)})}r.isRenderingInProgress?function u(_){r.once("change:isRenderingInProgress",(x,M,E)=>{E?u(_):c(_)})}(this):c(this)}}class U4 extends M8{constructor(r,c,u,_={}){super(r,c,u);const x=r.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=_.label||(()=>x("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 Eh=v(8847);No()(Eh.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 Z4 extends(Ue()){constructor(r,c){super(),c&&q2(this,c),r&&this.set(r)}}var N0=v(4650);No()(N0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var df=v(7676);No()(df.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Ih=bo("px");class F0 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 nt("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 nt("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 nt("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 Ov(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 x=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return c("%0 of %1",[x,_])}),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 k8(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 Ov extends oa{constructor(r){super(r);const c=r.t,u=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new rs,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 k8 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",Ih),left:u.to("left",Ih),width:u.to("width",Ih),height:u.to("height",Ih)}},children:this.content}),this.on("change:numberOfPanels",(_,x,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 ce(this._balloonPanelView.element);Object.assign(this,{top:r,left:c,width:u,height:_})}}}var Ev=v(5868);No()(Ev.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const pf=bo("px");class Nv 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?pf(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?pf(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:c.to("_stickyTopOffset",u=>u&&pf(u)),bottom:c.to("_stickyBottomOffset",u=>u&&pf(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(Mt.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 ce(this.limiterElement);let c=r.getVisible();if(c){const u=new ce(Mt.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",x=>!x),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 D8 extends oa{constructor(r){super(r),this.children=this.createCollection(),this.focusTracker=new rs,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new ul({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,qv=RegExp(Fv.source);const f5=function(m){return(m=wg(m))&&qv.test(m)?m.replace(Fv,"\\$&"):m};var h5=v(6770);No()(h5.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var fu=Object.defineProperty,g5=Object.getOwnPropertySymbols,P8=Object.prototype.hasOwnProperty,n1=Object.prototype.propertyIsEnumerable,b5=(m,r,c)=>r in m?fu(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class v5 extends oa{constructor(r,c){super(r),this._config=c,this.filteredView=c.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new rs,this.keystrokes=new $c,this.resultsView=new D8(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 ul({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",(u,{resultsCount:_,totalItemsCount:x})=>{this.resultsCount=_,this.totalItemsCount=x}),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(f5(r),"ig"):null,u=this.filteredView.filter(c);this.fire("search",((_,x)=>{for(var M in x||(x={}))P8.call(x,M)&&b5(_,M,x[M]);if(g5)for(var M of g5(x))n1.call(x,M)&&b5(_,M,x[M]);return _})({query:r},u))}_createSearchTextQueryView(){const r=new Wl(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:x,resultsCount:M,totalItemsCount:E}){return"function"==typeof _?_(x,M,E):_}this.on("search",(_,x)=>{if(x.resultsCount)c.set({isVisible:!1});else{const M=this._config.infoView&&this._config.infoView.text;let E,F;x.totalItemsCount?M&&M.notFound?(E=M.notFound.primary,F=M.notFound.secondary):(E=r("No results found"),F=""):M&&M.noSearchableItems?(E=M.noSearchableItems.primary,F=M.noSearchableItems.secondary):(E=r("No searchable items"),F=""),c.set({primaryText:u(E,x),secondaryText:u(F,x),isVisible:!0})}})}}var S8=v(8157);No()(S8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const q0=class extends v5{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",(_,x,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",(_,x)=>{this.resultsView.isVisible=!1,x()}),this.listenTo(Mt.document,"scroll",()=>{this._updateResultsViewWidthAndPosition()}),this.on("change:isEnabled",()=>{this._updateResultsVisibility()}),this.filteredView.on("execute",(_,{value:x})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=x,this.resultsView.isVisible=!1}),this.resultsView.on("change:isVisible",()=>{this._updateResultsViewWidthAndPosition()})}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new ce(this.queryView.fieldView.element).width;const m=q0._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:q0.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 Ep=q0;Ep.defaultResultsPositions=[m=>({top:m.bottom,left:m.left,name:"s"}),(m,r)=>({top:m.top-r.height,left:m.left,name:"n"})],Ep._getOptimalPosition=es;var Rv=v(8960);No()(Rv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var o1=v(498);No()(o1.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),bo("px");var tp=v(9695);No()(tp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),bo("px"),bo("px");class zv extends Op{constructor(r,c){super(r),this.view=c,this._toolbarConfig=_p(r.config.get("toolbar")),this._elementReplacer=new Ke,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,x=u.editable,M=_.document.getRoot();x.name=M.rootName,u.render();const E=x.element;this.setEditableElement(x.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 x;const M=r.config.get("placeholder");M&&(x="string"==typeof M?M:M[this.view.editable.name]),!x&&_&&"textarea"===_.tagName.toLowerCase()&&(x=_.getAttribute("placeholder")),x&&(u.placeholder=x),Y({view:c,element:u,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(r,c,u){const _=this.view.stickyPanel;if(_.isSticky){const x=new ce(_.element).height;c.viewportOffset.top+=x}else{const x=()=>{this.editor.editing.view.scrollToTheSelection(u)};this.listenTo(_,"change:isSticky",x),setTimeout(()=>{this.stopListening(_,"change:isSticky",x)},20)}}}var Yv=v(3143);No()(Yv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class O8 extends Lv{constructor(r,c,u={}){super(r),this.stickyPanel=new Nv(r),this.toolbar=new T0(r,{shouldGroupWhenFull:u.shouldToolbarGroupWhenFull}),this.editable=new U4(r,c)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class C5{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 x=c[_++];if(!u.has(x)&&R0(x)&&!r.has(x))if(u.add(x),Symbol.iterator in x)try{for(const M of x)c.push(M)}catch{}else for(const M in x)"defaultValue"!==M&&c.push(x[M])}return u}function R0(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),x=d2(r,c);for(const M of _)if(x.has(M))return!0;return!1}var A5=Object.defineProperty,E8=Object.defineProperties,y5=Object.getOwnPropertyDescriptors,H0=Object.getOwnPropertySymbols,Nh=Object.prototype.hasOwnProperty,Vv=Object.prototype.propertyIsEnumerable,k4=(m,r,c)=>r in m?A5(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,D4=(m,r)=>{for(var c in r||(r={}))Nh.call(r,c)&&k4(m,c,r[c]);if(H0)for(var c of H0(r))Vv.call(r,c)&&k4(m,c,r[c]);return m};class P4 extends C5{constructor(r,c={}){super(c),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=Sh(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[F,V]of Object.entries(this._data.roots))V.isLoaded?(r[F]="",_[F]=u[F]||{}):c.push(F);const x=(M=D4({},this._config),E8(M,y5({extraPlugins:this._config.extraPlugins||[],lazyRoots:c,rootsAttributes:_,_watchdogInitialData:this._data})));var M;return delete x.initialData,x.extraPlugins.push(rc),this._initUsingData?this.create(r,x,x.context):la(this._elementOrData)?this.create(this._elementOrData,x,x.context):this.create(this._editables,x,x.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"),x=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}))),x&&(M.suggestions=JSON.stringify(x.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)=>la(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:x}])=>{const M=JSON.parse(_),E=JSON.parse(x),F=c.model.document.getRoot(u);for(const[V,W]of E)r.setAttribute(V,W,F);for(const V of M){const W=this._createNode(r,V);r.insert(W,F,"end")}}),Object.entries(this._data.markers).forEach(([u,_])=>{const{document:x}=c.model,M=_,{rangeJSON:{start:E,end:F}}=M,V=((Ae,Ie)=>{var ln={};for(var Dn in Ae)Nh.call(Ae,Dn)&&Ie.indexOf(Dn)<0&&(ln[Dn]=Ae[Dn]);if(null!=Ae&&H0)for(var Dn of H0(Ae))Ie.indexOf(Dn)<0&&Vv.call(Ae,Dn)&&(ln[Dn]=Ae[Dn]);return ln})(M,["rangeJSON"]),W=x.getRoot(E.root),dt=r.createPositionFromPath(W,E.path,E.stickiness),Zt=r.createPositionFromPath(W,F.path,F.stickiness),ue=r.createRange(dt,Zt);r.addMarker(u,D4({range:ue},V))})}_restoreCollaborationData(){const r=JSON.parse(this._data.commentThreads),c=JSON.parse(this._data.suggestions);r.forEach(u=>{const _=this.editor.config.get("collaboration.channelId"),x=this.editor.plugins.get("CommentsRepository");x.hasCommentThread(u.threadId)&&x.getCommentThread(u.threadId).remove(),x.addCommentThread(D4({channelId:_},u))}),c.forEach(u=>{const _=this.editor.plugins.get("TrackChangesEditing");_.hasSuggestion(u.id)?_.getSuggestion(u.id).attributes=u.attributes:_.addSuggestionData(u)})}}const mf=Symbol("MainQueueId");class T5{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(r){this._onEmptyCallbacks.push(r)}enqueue(r,c){const u=r===mf;this._activeActions++,this._queues.get(r)||this._queues.set(r,Promise.resolve());const _=Promise.all(u?this._queues.values():[this._queues.get(mf),this._queues.get(r)]).then(c),x=_.catch(()=>{});return this._queues.set(r,x),_.finally(()=>{this._activeActions--,this._queues.get(r)===x&&0===this._activeActions&&this._onEmptyCallbacks.forEach(M=>M())})}}function z0(m){return Array.isArray(m)?m:[m]}class Y0 extends(n2(cf(l4))){constructor(r,c={}){if(!Fh(r)&&void 0!==c.initialData)throw new nt("editor-create-initial-data",null);var x,M;super(c),void 0===this.config.get("initialData")&&this.config.set("initialData",Fh(x=r)?(M=x)instanceof HTMLTextAreaElement?M.value:M.innerHTML:x),Fh(r)&&(this.sourceElement=r),this.model.document.createRoot();const u=!this.config.get("toolbar.shouldNotGroupWhenFull"),_=new O8(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:u});this.ui=new zv(this,_),function(x){if(!Fo(x.updateSourceElement))throw new nt("attachtoform-missing-elementapi-interface",x);const M=x.sourceElement;if((E=M)&&"textarea"===E.tagName.toLowerCase()&&M.form){let E;const F=M.form,V=()=>x.updateSourceElement();Fo(F.submit)&&(E=F.submit,F.submit=()=>{V(),E.apply(F)}),F.addEventListener("submit",V),x.on("destroy",()=>{F.removeEventListener("submit",V),E&&(F.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(Fh(r)?r:null)).then(()=>_.data.init(_.config.get("initialData"))).then(()=>_.fire("ready")).then(()=>_))})}}function Fh(m){return la(m)}Y0.Context=M2,Y0.EditorWatchdog=P4,Y0.ContextWatchdog=class extends C5{constructor(m,r={}){super(r),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new T5,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(mf,()=>(this._contextConfig=m,this._create()))}getItem(m){return this._getWatchdog(m)._item}getItemState(m){return this._getWatchdog(m).state}add(m){const r=z0(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 P4(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:x,causesRestart:M})=>{this._fire("itemError",{itemId:c.id,error:x}),M&&this._actionQueues.enqueue(c.id,()=>new Promise(E=>{const F=()=>{u.off("restart",F),this._fire("itemRestart",{itemId:c.id}),E()};u.on("restart",F)}))}),u.create(c.sourceElementOrData,c.config,this._context);throw new Error(`Not supported item type: '${c.type}'.`)})))}remove(m){const r=z0(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(mf,()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(mf,()=>(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 qh extends Wu{constructor(r){super(r),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const c=this.document;function u(_){return(x,M)=>{M.preventDefault();const E=M.dropRange?[M.dropRange]:null,F=new lt(c,_);c.fire(F,{dataTransfer:M.dataTransfer,method:x.name,targetRanges:E,target:M.target,domEvent:M.domEvent}),F.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(x,M){const E=M.target.ownerDocument,F=M.clientX,V=M.clientY;let W;return E.caretRangeFromPoint&&E.caretRangeFromPoint(F,V)?W=E.caretRangeFromPoint(F,V):M.rangeParent&&(W=E.createRange(),W.setStart(M.rangeParent,M.rangeOffset),W.collapse(!0)),W?x.domConverter.domRangeToView(W):null}(this.view,r)),this.fire(r.type,r,_)}}const w5=["figcaption","li"];function U5(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 _=U5(u);c&&(c.is("containerElement")||u.is("containerElement"))&&(w5.includes(c.name)||w5.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(qh),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",(x,M)=>{"paste"!=M.method||r.model.canEditAt(r.model.document.selection)||x.stop()},{priority:"highest"}),this.listenTo(_,"clipboardInput",(x,M)=>{const E=M.dataTransfer;let F;if(M.content)F=M.content;else{let dt="";E.getData("text/html")?dt=E.getData("text/html").replace(/(\s+)<\/span>/g,(ue,Ae)=>1==Ae.length?" ":Ae).replace(//g,""):E.getData("text/plain")&&(((V=(V=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("

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

${V}

`),dt=V),F=this.editor.data.htmlProcessor.toView(dt)}var V;const W=new lt(this,"inputTransformation");this.fire(W,{content:F,dataTransfer:E,targetRanges:M.targetRanges,method:M.method}),W.stop.called&&x.stop(),u.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(x,M)=>{if(M.content.isEmpty)return;const E=this.editor.data.toModel(M.content,"$clipboardHolder");0!=E.childCount&&(x.stop(),c.change(()=>{this.fire("contentInsertion",{content:E,method:M.method,dataTransfer:M.dataTransfer,targetRanges:M.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(x,M)=>{M.resultRange=c.insertContent(M.content)},{priority:"low"})}_setupCopyCut(){const r=this.editor,c=r.model.document,u=r.editing.view.document,_=(x,M)=>{const E=M.dataTransfer;M.preventDefault(),this._fireOutputTransformationEvent(E,c.selection,x.name)};this.listenTo(u,"copy",_,{priority:"low"}),this.listenTo(u,"cut",(x,M)=>{r.model.canEditAt(r.model.document.selection)?_(x,M):M.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(x,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",(x,M)=>{M.content.isEmpty||(M.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(M.content)),M.dataTransfer.setData("text/plain",U5(M.content))),"cut"==M.method&&r.model.deleteContent(c.selection)},{priority:"low"})}}class Z5{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 I8 extends Za{constructor(r,c){super(r),this._buffer=new Z5(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||"",x=_.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,F=>{this._buffer.lock(),c.deleteContent(M),_&&c.insertContent(F.createText(_,u.selection.getAttributes()),M),E?F.setSelection(E):M.is("documentSelection")||F.setSelection(M),this._buffer.unlock(),this._buffer.input(x)})}}const jv=["insertText","insertReplacementText"];class Jv extends Qu{constructor(r){super(r),this.focusObserver=r.getObserver(z_),D_isAndroid&&jv.push("insertCompositionText");const c=r.document;c.on("beforeinput",(u,_)=>{if(!this.isEnabled)return;const{data:x,targetRanges:M,inputType:E,domEvent:F}=_;if(!jv.includes(E))return;this.focusObserver.flush();const V=new lt(c,"insertText");c.fire(V,new pc(r,F,{text:x,selection:r.createSelection(M)})),V.stop.called&&u.stop()}),c.on("compositionend",(u,{data:_,domEvent:x})=>{this.isEnabled&&!D_isAndroid&&_&&c.fire("insertText",new pc(r,x,{text:_,selection:c.selection}))},{priority:"lowest"})}observe(){}stopObserving(){}}class Gv 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 x=new I8(r,r.config.get("typing.undoStep")||20);r.commands.add("insertText",x),r.commands.add("input",x),this.listenTo(u.document,"insertText",(M,E)=>{u.document.isComposing||E.preventDefault();const{text:F,selection:V,resultRange:W}=E,dt=Array.from(V.getRanges()).map(Ae=>r.editing.mapper.toModelRange(Ae));let Zt=F;if(D_isAndroid){const Ae=Array.from(dt[0].getItems()).reduce((Ie,ln)=>Ie+(ln.is("$textProxy")?ln.data:""),"");Ae&&(Ae.length<=Zt.length?Zt.startsWith(Ae)&&(Zt=Zt.substring(Ae.length),dt[0].start=dt[0].start.getShiftedBy(Ae.length)):Ae.startsWith(Zt)&&(dt[0].start=dt[0].start.getShiftedBy(Zt.length),Zt=""))}const ue={text:Zt,selection:c.createSelection(dt)};W&&(ue.resultRange=r.editing.mapper.toModelRange(W)),r.execute("insertText",ue),u.scrollToTheSelection()}),D_isAndroid?this.listenTo(u.document,"keydown",(M,E)=>{!_.isCollapsed&&229==E.keyCode&&u.document.isComposing&&M5(c,x)}):this.listenTo(u.document,"compositionstart",()=>{_.isCollapsed||M5(c,x)})}}function M5(m,r){if(!r.isEnabled)return;const c=r.buffer;c.lock(),m.enqueueChange(c.batch,()=>{m.deleteContent(m.document.selection)}),c.unlock()}class Qv extends Za{constructor(r,c){super(r),this.direction=c,this._buffer=new Z5(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 x=_.createSelection(r.selection||u.selection);if(!c.canEditAt(x))return;const M=r.sequence||1,E=x.isCollapsed;if(x.isCollapsed&&c.modifySelection(x,{direction:this.direction,unit:r.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(M))return void this._replaceEntireContentWithParagraph(_);if(this._shouldReplaceFirstBlockWithParagraph(x,M))return void this.editor.execute("paragraph",{selection:x});if(x.isCollapsed)return;let F=0;x.getFirstRange().getMinimalFlatRanges().forEach(V=>{F+=ne(V.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),c.deleteContent(x,{doNotResetEntireContent:E,direction:this.direction}),this._buffer.input(F),_.setSelection(x),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 x=_.getChild(0);return!x||!x.is("element","paragraph")}_replaceEntireContentWithParagraph(r){const c=this.editor.model,_=c.schema.getLimitElement(c.document.selection),x=r.createElement("paragraph");r.remove(r.createRangeIn(_)),r.insert(x,_),r.setSelection(x,0)}_shouldReplaceFirstBlockWithParagraph(r,c){const u=this.editor.model;if(c>1||"backward"!=this.direction||!r.isCollapsed)return!1;const _=r.getFirstPosition(),x=u.schema.getLimitElement(_),M=x.getChild(0);return _.parent==M&&!!r.containsEntireContent(M)&&!!u.schema.checkChild(x,"paragraph")&&"paragraph"!=M.name}}const p2="selection",Rh="backward",a_="forward",$v={deleteContent:{unit:p2,direction:Rh},deleteContentBackward:{unit:"codePoint",direction:Rh},deleteWordBackward:{unit:"word",direction:Rh},deleteHardLineBackward:{unit:p2,direction:Rh},deleteSoftLineBackward:{unit:p2,direction:Rh},deleteContentForward:{unit:"character",direction:a_},deleteWordForward:{unit:"word",direction:a_},deleteHardLineForward:{unit:p2,direction:a_},deleteSoftLineForward:{unit:p2,direction:a_}};class Kv 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",(_,x)=>{if(!this.isEnabled)return;const{targetRanges:M,domEvent:E,inputType:F}=x,V=$v[F];if(!V)return;const W={direction:V.direction,unit:V.unit,sequence:u};W.unit==p2&&(W.selectionToRemove=r.createSelection(M[0])),"deleteContentBackward"===F&&(D_isAndroid&&(W.sequence=1),function(Zt){if(1!=Zt.length||Zt[0].isCollapsed)return!1;const ue=Zt[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let Ae=0;for(const{nextPosition:Ie}of ue){if(Ie.parent.is("$text")){const ln=Ie.parent.data,Dn=Ie.offset;if(cn(ln,Dn)||hd(ln,Dn)||kl(ln,Dn))continue;Ae++}else Ae++;if(Ae>1)return!0}return!1}(M)&&(W.unit=p2,W.selectionToRemove=r.createSelection(M)));const dt=new xp(c,"delete",M[0]);c.fire(dt,new pc(r,E,W)),dt.stop.called&&_.stop()}),D_isBlink&&function(_){const x=_.view,M=x.document;let E=null,F=!1;function V(dt){return dt==Ka.backspace||dt==Ka.delete}function W(dt){return dt==Ka.backspace?Rh:a_}M.on("keydown",(dt,{keyCode:Zt})=>{E=Zt,F=!1}),M.on("keyup",(dt,{keyCode:Zt,domEvent:ue})=>{const Ae=M.selection,Ie=_.isEnabled&&Zt==E&&V(Zt)&&!Ae.isCollapsed&&!F;if(E=null,Ie){const ln=Ae.getFirstRange(),Dn=new xp(M,"delete",ln),di={unit:p2,direction:W(Zt),selectionToRemove:Ae};M.fire(Dn,new pc(x,ue,di))}}),M.on("beforeinput",(dt,{inputType:Zt})=>{const ue=$v[Zt];V(E)&&ue&&ue.direction==W(E)&&(F=!0)},{priority:"high"}),M.on("beforeinput",(dt,{inputType:Zt,data:ue})=>{E==Ka.delete&&"insertText"==Zt&&"\x7f"==ue&&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(Kv),this._undoOnBackspace=!1;const x=new Qv(r,"forward");r.commands.add("deleteForward",x),r.commands.add("forwardDelete",x),r.commands.add("delete",new Qv(r,"backward")),this.listenTo(u,"delete",(M,E)=>{u.isComposing||E.preventDefault();const{direction:F,sequence:V,selectionToRemove:W,unit:dt}=E,Zt="forward"===F?"deleteForward":"delete",ue={sequence:V};if("selection"==dt){const Ae=Array.from(W.getRanges()).map(Ie=>r.editing.mapper.toModelRange(Ie));ue.selection=r.model.createSelection(Ae)}else ue.unit=dt;r.execute(Zt,ue),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 Ya extends lo{static get requires(){return[Gv,r_]}static get pluginName(){return"Typing"}}function S4(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 Xv extends(Ue()){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,x=u.createRange(u.createPositionAt(_.focus.parent,0),_.focus),{text:M,range:E}=S4(x,u),F=this.testCallback(M);if(!F&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!F,F){const V=Object.assign(c,{text:M,range:E});"object"==typeof F&&Object.assign(V,F),this.fire(`matched:${r}`,V)}}}class k5 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,x=r.model.document.selection;this.listenTo(r.editing.view.document,"arrowKey",(M,E)=>{if(!x.isCollapsed||E.shiftKey||E.altKey||E.ctrlKey)return;const F=E.keyCode==Ka.arrowright,V=E.keyCode==Ka.arrowleft;if(!F&&!V)return;const W=_.contentLanguageDirection;let dt=!1;dt="ltr"===W&&F||"rtl"===W&&V?this._handleForwardMovement(E):this._handleBackwardMovement(E),!0===dt&&M.stop()},{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(x,"change:range",(M,E)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!E.directChange&&B0(x.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&&L4(u,c)||!B0(_,c)||(Hh(r),this._overrideGravity(),0))}_handleBackwardMovement(r){const c=this.attributes,u=this.editor.model,_=u.document.selection,x=_.getFirstPosition();return this._isGravityOverridden?(Hh(r),this._restoreGravity(),O4(u,c,x),!0):x.isAtStart?!!L4(_,c)&&(Hh(r),O4(u,c,x),!0):(E=c,!(!B0(x.getShiftedBy(-1),E)||(x.isAtEnd&&!L4(_,c)&&B0(x,c)?(Hh(r),O4(u,c,x),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 L4(m,r){for(const c of r)if(m.hasAttribute(c))return!0;return!1}function O4(m,r,c){const u=c.nodeBefore;m.change(_=>{if(u){const x=[],M=m.schema.isObject(u)&&m.schema.isInline(u);for(const[E,F]of u.getAttributes())!m.schema.checkAttribute("$text",E)||M&&!1===m.schema.getAttributeProperties(E).copyFromObject||x.push([E,F]);_.setSelectionAttribute(x)}else _.removeSelectionAttribute(r)})}function Hh(m){m.preventDefault()}function B0(m,r){const{nodeBefore:c,nodeAfter:u}=m;for(const _ of r){const x=c?c.getAttribute(_):void 0;if((u?u.getAttribute(_):void 0)!==x)return!0}return!1}const D5={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"]},ua=["symbols","mathematical","typography","quotes"];function tx(m){return"string"==typeof m?new RegExp(`(${f5(m)})$`):m}function E4(m){return"string"==typeof m?()=>[m]:m instanceof Array?()=>m:m}function P5(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(ex(m,r,c,!0,u),ex(m,r,c,!1,u))}function ex(m,r,c,u,_){let x=m.textNode||(u?m.nodeBefore:m.nodeAfter),M=null;for(;x&&x.getAttribute(r)==c;)M=x,x=u?x.previousSibling:x.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 nx extends Za{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,x=u.isCollapsed,M=u.getFirstRange(),E=M.start.parent,F=M.end.parent;if(_.isLimit(E)||_.isLimit(F))return x||E!=F||c.deleteContent(u),!1;if(x){const V=m2(r.model.schema,u.getAttributes());return wi(r,M.start),r.setSelectionAttribute(V),!0}{const V=!(M.start.isAtStart&&M.end.isAtEnd),W=E==F;if(c.deleteContent(u,{leaveUnmerged:V}),V){if(W)return wi(r,u.focus),!0;r.setSelection(F,0)}}return!1}}function wi(m,r){m.split(r),m.setSelection(r.parent.nextSibling,0)}const Bn={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class H extends Qu{constructor(r){super(r);const c=this.document;let u=!1;c.on("keydown",(_,x)=>{u=x.shiftKey}),c.on("beforeinput",(_,x)=>{if(!this.isEnabled)return;let M=x.inputType;D_isSafari&&u&&"insertParagraph"==M&&(M="insertLineBreak");const E=x.domEvent,F=Bn[M];if(!F)return;const V=new xp(c,"enter",x.targetRanges[0]);c.fire(V,new pc(r,E,{isSoft:F.isSoft})),V.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 nx(r)),this.listenTo(u,"enter",(_,x)=>{u.isComposing||x.preventDefault(),x.isSoft||(r.execute("enter"),c.scrollToTheSelection())},{priority:"low"})}}class hu extends Za{execute(){const r=this.editor.model,c=r.document;r.change(u=>{(function(_,x,M){const E=M.isCollapsed,F=M.getFirstRange(),W=F.end.parent,dt=F.start.parent==W;if(E){const Zt=m2(_.schema,M.getAttributes());ka(_,x,F.end),x.removeSelectionAttribute(M.getAttributeKeys()),x.setSelectionAttribute(Zt)}else{const Zt=!(F.start.isAtStart&&F.end.isAtEnd);_.deleteContent(M,{leaveUnmerged:Zt}),dt?ka(_,x,M.focus):Zt&&x.setSelection(W,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 x=_.anchor;if(!x||!u.checkChild(x,"softBreak"))return!1;const M=_.getFirstRange(),E=M.start.parent,F=M.end.parent;return!((I4(E,u)||I4(F,u))&&E!==F)}(r.schema,r.document.selection)}}function ka(m,r,c){const u=r.createElement("softBreak");m.insertContent(u,c),r.setSelection(u,"after")}function I4(m,r){return!m.is("rootElement")&&(r.isLimit(m)||I4(m.parent,r))}class N8 extends lo{static get pluginName(){return"ShiftEnter"}init(){const r=this.editor,u=r.conversion,_=r.editing.view,x=_.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(x,"enter",(M,E)=>{x.isComposing||E.preventDefault(),E.isSoft&&(r.execute("shiftEnter"),_.scrollToTheSelection())},{priority:"low"})}}class ix extends(Oe()){constructor(){super(...arguments),this._stack=[]}add(r,c){const u=this._stack,_=u[0];this._insertDescriptor(r);const x=u[0];_===x||s_(_,x)||this.fire("change:top",{oldDescriptor:_,newDescriptor:x,writer:c})}remove(r,c){const u=this._stack,_=u[0];this._removeDescriptor(r);const x=u[0];_===x||s_(_,x)||this.fire("change:top",{oldDescriptor:_,newDescriptor:x,writer:c})}_insertDescriptor(r){const c=this._stack,u=c.findIndex(x=>x.id===r.id);if(s_(r,c[u]))return;u>-1&&c.splice(u,1);let _=0;for(;c[_]&&F8(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&&_f(m.classes)==_f(r.classes)}function F8(m,r){return m.priority>r.priority||!(m.priority_f(r.classes)}function _f(m){return Array.isArray(m)?m.sort().join(","):m}const ox="ck-widget_selected";function El(m){return!!m.is("element")&&!!m.getCustomProperty("widget")}function ep(m,r,c={}){if(!m.is("containerElement"))throw new nt("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=R8,r.setCustomProperty("widgetLabel",[],m),c.label&&(_=c.label,m.getCustomProperty("widgetLabel").push(_)),c.hasSelectionHandle&&function(u,_){const x=_.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(M){const E=this.toDomElement(M),F=new zs;return F.set("content",''),F.render(),E.appendChild(F.element),E});_.insert(_.createPositionAt(u,0),x),_.addClass(["ck-widget_with-selection-handle"],u)}(m,r),S5(m,r),m;var _}function q8(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 ax(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 S5(m,r,c=q8,u=ax){const _=new ix;_.on("change:top",(x,M)=>{M.oldDescriptor&&u(m,M.oldDescriptor,M.writer),M.newDescriptor&&c(m,M.newDescriptor,M.writer)}),r.setCustomProperty("addHighlight",(x,M,E)=>_.add(M,E),m),r.setCustomProperty("removeHighlight",(x,M,E)=>_.remove(M,E),m)}function L5(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,_,x)=>{r.setAttribute("contenteditable",x?"false":"true",m)}),m.on("change:isFocused",(u,_,x)=>{x?r.addClass("ck-editor__nested-editable_focused",m):r.removeClass("ck-editor__nested-editable_focused",m)}),S5(m,r),m}function F4(m,r){const c=m.getSelectedElement();if(c){const u=np(m);if(u)return r.createRange(r.createPositionAt(c,u))}return v0(m,r)}function R8(){return null}const c_="widget-type-around";function ff(m,r,c){return!!m&&El(m)&&!c.isInline(r)}function np(m){return m.getAttribute(c_)}var rx=v(4921);No()(rx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const hf=["before","after"],_2=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,q4="ck-widget__type-around_disabled";class cx 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,_,x)=>{c.change(M=>{for(const E of c.document.roots)x?M.removeClass(q4,E):M.addClass(q4,E)}),x||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,x=u.model.schema.getAttributesWithProperty(r,"copyOnReplace",!0);u.execute("insertParagraph",{position:u.model.createPositionAt(r,c),attributes:x}),_.focus(),_.scrollToTheSelection()}_listenToIfEnabled(r,c,u,_){this.listenTo(r,c,(...x)=>{this.isEnabled&&u(...x)},_)}_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",(x,M,E)=>{const F=E.mapper.toViewElement(M.item);F&&ff(F,M.item,c)&&(function(V,W,dt){const Zt=V.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(ue){const Ae=this.toDomElement(ue);return function(Ie,ln){for(const Dn of hf){const di=new Ur({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${Dn}`],title:ln[Dn],"aria-hidden":"true"},children:[Ie.ownerDocument.importNode(_2,!0)]});Ie.appendChild(di.render())}}(Ae,W),function(Ie){const ln=new Ur({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});Ie.appendChild(ln.render())}(Ae),Ae});V.insert(V.createPositionAt(dt,"end"),Zt)}(E.writer,_,F),F.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,F)=>{this._handleArrowKeyPress(E,F)},{context:[El,"$text"],priority:"high"}),this._listenToIfEnabled(u,"change:range",(E,F)=>{F.directChange&&r.model.change(V=>{V.removeSelectionAttribute(c_)})}),this._listenToIfEnabled(c.document,"change:data",()=>{const E=u.getSelectedElement();E&&ff(r.editing.mapper.toViewElement(E),E,_)||r.model.change(F=>{F.removeSelectionAttribute(c_)})}),this._listenToIfEnabled(r.editing.downcastDispatcher,"selection",(E,F,V)=>{const W=V.writer;if(this._currentFakeCaretModelElement){const Ae=V.mapper.toViewElement(this._currentFakeCaretModelElement);Ae&&(W.removeClass(hf.map(M),Ae),this._currentFakeCaretModelElement=null)}const dt=F.selection.getSelectedElement();if(!dt)return;const Zt=V.mapper.toViewElement(dt);if(!ff(Zt,dt,_))return;const ue=np(F.selection);ue&&(W.addClass(M(ue),Zt),this._currentFakeCaretModelElement=dt)}),this._listenToIfEnabled(r.ui.focusTracker,"change:isFocused",(E,F,V)=>{V||r.model.change(W=>{W.removeSelectionAttribute(c_)})})}_handleArrowKeyPress(r,c){const u=this.editor,_=u.model,x=_.document.selection,M=_.schema,E=u.editing.view,F=function(dt,Zt){const ue=b1(dt,Zt);return"down"===ue||"right"===ue}(c.keyCode,u.locale.contentLanguageDirection),V=E.document.selection.getSelectedElement();let W;ff(V,u.editing.mapper.toModelElement(V),M)?W=this._handleArrowKeyPressOnSelectedWidget(F):x.isCollapsed?W=this._handleArrowKeyPressWhenSelectionNextToAWidget(F):c.shiftKey||(W=this._handleArrowKeyPressWhenNonCollapsedSelection(F)),W&&(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,x=c.plugins.get("Widget"),M=x._getObjectElementNextToSelection(r);return!!ff(c.editing.mapper.toViewElement(M),M,_)&&(u.change(E=>{x._setSelectionOverElement(M),E.setSelectionAttribute(c_,r?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(r){const c=this.editor,u=c.model,_=u.schema,x=c.editing.mapper,M=u.document.selection,E=r?M.getLastPosition().nodeBefore:M.getFirstPosition().nodeAfter;return!!ff(x.toViewElement(E),E,_)&&(u.change(F=>{F.setSelection(E,"on"),F.setSelectionAttribute(c_,r?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const r=this.editor,c=r.editing.view;this._listenToIfEnabled(c.document,"mousedown",(u,_)=>{const x=_.domTarget.closest(".ck-widget__type-around__button");if(!x)return;const M=x.classList.contains("ck-widget__type-around__button_before")?"before":"after",E=function(V,W){const dt=V.closest(".ck-widget");return W.mapDomToView(dt)}(x,c.domConverter),F=r.editing.mapper.toModelElement(E);this._insertParagraph(F,M),_.preventDefault(),u.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const r=this.editor,c=r.model.document.selection;this._listenToIfEnabled(r.editing.view.document,"enter",(_,x)=>{if("atTarget"!=_.eventPhase)return;const M=c.getSelectedElement(),E=r.editing.mapper.toViewElement(M),F=r.model.schema;let V;this._insertParagraphAccordingToFakeCaretPosition()?V=!0:ff(E,M,F)&&(this._insertParagraph(M,x.isSoft?"before":"after"),V=!0),V&&(x.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",(x,M)=>{if("atTarget"!=x.eventPhase)return;const E=np(u.document.selection);if(!E)return;const F=M.direction,V=u.document.selection.getSelectedElement(),W="forward"==F;if("before"===E===W)r.execute("delete",{selection:u.createSelection(V,"on")});else{const dt=_.getNearestSelectionRange(u.createPositionAt(V,E),F);if(dt)if(dt.isCollapsed){const Zt=u.createSelection(dt.start);if(u.modifySelection(Zt,{direction:F}),Zt.focus.isEqual(dt.start)){const ue=function(Ae,Ie){let ln=Ie;for(const Dn of Ie.getAncestors({parentFirst:!0})){if(Dn.childCount>1||Ae.isLimit(Dn))break;ln=Dn}return ln}(_,dt.start.parent);u.deleteContent(u.createSelection(ue,"on"),{doNotAutoparagraph:!0})}else u.change(ue=>{ue.setSelection(dt),r.execute(W?"deleteForward":"delete")})}else u.change(Zt=>{Zt.setSelection(dt),r.execute(W?"deleteForward":"delete")})}M.preventDefault(),x.stop()},{context:El})}_enableInsertContentIntegration(){const c=this.editor.model,u=c.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(_,[x,M])=>{if(M&&!M.is("documentSelection"))return;const E=np(u);return E?(_.stop(),c.change(F=>{const V=u.getSelectedElement(),W=c.createPositionAt(V,E),dt=F.createSelection(W),Zt=c.insertContent(x,dt);return F.setSelection(dt),Zt})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const c=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"insertObject",(u,_)=>{const[,x,M={}]=_;if(x&&!x.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 ux(m,r,c){const u=m.schema,_=m.createRangeIn(r.root),x="forward"==c?"elementStart":"elementEnd";for(const{previousPosition:M,item:E,type:F}of _.getWalker({startPosition:r,direction:c})){if(u.isLimit(E)&&!u.isInline(E))return M;if(F==x&&u.isBlock(E))return null}return null}function gf(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 zh=v(3488);No()(zh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class V0 extends lo{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[cx,r_]}init(){const r=this.editor,c=r.editing.view,u=c.document;this.editor.editing.downcastDispatcher.on("selection",(_,x,M)=>{const E=M.writer,F=x.selection;if(F.isCollapsed)return;const V=F.getSelectedElement();if(!V)return;const W=r.editing.mapper.toViewElement(V);var dt;El(W)&&M.consumable.consume(F,"selection")&&E.setSelection(E.createRangeOn(W),{fake:!0,label:(dt=W,dt.getCustomProperty("widgetLabel").reduce((Zt,ue)=>"function"==typeof ue?Zt?Zt+". "+ue():ue():Zt?Zt+". "+ue:ue,""))})}),this.editor.editing.downcastDispatcher.on("selection",(_,x,M)=>{this._clearPreviouslySelectedWidgets(M.writer);const E=M.writer,F=E.document.selection;let V=null;for(const W of F.getRanges())for(const dt of W){const Zt=dt.item;El(Zt)&&!H8(Zt,V)&&(E.addClass(ox,Zt),this._previouslySelected.add(Zt),V=Zt)}},{priority:"low"}),c.addObserver(C0),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 lx(m){const r=m.model;return(c,u)=>{const x=u.keyCode==Ka.arrowdown,M=u.shiftKey,E=r.document.selection;if(u.keyCode!=Ka.arrowup&&!x)return;const F=x;if(M&&!(W=E).isCollapsed&&W.isBackward==F)return;var W;const V=function(W,dt,Zt){const ue=W.model;if(Zt){const Ae=dt.isCollapsed?dt.focus:dt.getLastPosition(),Ie=ux(ue,Ae,"forward");if(!Ie)return null;const ln=ue.createRange(Ae,Ie),Dn=gf(ue.schema,ln,"backward");return Dn?ue.createRange(Ae,Dn):null}{const Ae=dt.isCollapsed?dt.focus:dt.getFirstPosition(),Ie=ux(ue,Ae,"backward");if(!Ie)return null;const ln=ue.createRange(Ie,Ae),Dn=gf(ue.schema,ln,"forward");return Dn?ue.createRange(Dn,Ae):null}}(m,E,F);if(V){if(V.isCollapsed&&(E.isCollapsed||M))return;(V.isCollapsed||function(W,dt,Zt){const ue=W.model,Ae=W.view.domConverter;if(Zt){const Ri=ue.createSelection(dt.start);ue.modifySelection(Ri),Ri.focus.isAtEnd||dt.start.isEqual(Ri.focus)||(dt=ue.createRange(Ri.focus,dt.end))}const Ie=W.mapper.toViewRange(dt),ln=Ae.viewRangeToDom(Ie),Dn=ce.getDomRangeRects(ln);let di;for(const Ri of Dn)if(void 0!==di){if(Math.round(Ri.top)>=di)return!1;di=Math.max(di,Math.round(Ri.bottom))}else di=Math.round(Ri.bottom);return!0}(m,V,F))&&(r.change(W=>{const dt=F?V.end:V.start;if(M){const Zt=r.createSelection(E.anchor);Zt.setFocus(dt),W.setSelection(Zt)}else W.setSelection(dt)}),c.stop(),u.preventDefault(),u.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(u,"delete",(_,x)=>{this._handleDelete("forward"==x.direction)&&(x.preventDefault(),_.stop())},{context:"$root"})}_onMousedown(r,c){const u=this.editor,_=u.editing.view,x=_.document;let M=c.target;if(function(F){let V=F;for(;V;){if(V.is("editableElement")&&!V.is("rootElement"))return!0;if(El(V))return!1;V=V.parent}return!1}(M)){if((D_isSafari||D_isGecko)&&c.domEvent.detail>=3){const F=u.editing.mapper,V=M.is("attributeElement")?M.findAncestor(dt=>!dt.is("attributeElement")):M,W=F.toModelElement(V);c.preventDefault(),this.editor.model.change(dt=>{dt.setSelection(W,"in")})}return}if(!El(M)&&(M=M.findAncestor(El),!M))return;D_isAndroid&&c.preventDefault(),x.isFocused||_.focus();const E=u.editing.mapper.toModelElement(M);this._setSelectionOverElement(E)}_handleSelectionChangeOnArrowKeyPress(r,c){const u=c.keyCode,_=this.editor.model,x=_.schema,M=_.document.selection,E=M.getSelectedElement(),F=b1(u,this.editor.locale.contentLanguageDirection),V="down"==F||"right"==F,W="up"==F||"down"==F;if(E&&x.isObject(E)){const Zt=V?M.getLastPosition():M.getFirstPosition(),ue=x.getNearestSelectionRange(Zt,V?"forward":"backward");return void(ue&&(_.change(Ae=>{Ae.setSelection(ue)}),c.preventDefault(),r.stop()))}if(!M.isCollapsed&&!c.shiftKey){const Zt=M.getFirstPosition(),ue=M.getLastPosition(),Ae=Zt.nodeAfter,Ie=ue.nodeBefore;return void((Ae&&x.isObject(Ae)||Ie&&x.isObject(Ie))&&(_.change(ln=>{ln.setSelection(V?ue:Zt)}),c.preventDefault(),r.stop()))}if(!M.isCollapsed)return;const dt=this._getObjectElementNextToSelection(V);if(dt&&x.isObject(dt)){if(x.isInline(dt)&&W)return;this._setSelectionOverElement(dt),c.preventDefault(),r.stop()}}_preventDefaultOnArrowKeyPress(r,c){const u=this.editor.model,_=u.schema,x=u.document.selection.getSelectedElement();x&&_.isObject(x)&&(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 x=c.anchor.parent;for(;x.isEmpty;){const M=x;x=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,x=c.createSelection(_);if(c.modifySelection(x,{direction:r?"forward":"backward"}),x.isEqual(_))return null;const M=r?x.focus.nodeBefore:x.focus.nodeAfter;return M&&u.isObject(M)?M:null}_clearPreviouslySelectedWidgets(r){for(const c of this._previouslySelected)r.removeClass(ox,c);this._previouslySelected.clear()}}function H8(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[F0]}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 x=_.getSelectedElement();return!(!x||!El(x))})(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:x="ck-toolbar-container"}){if(!u.length)return void Tt("widget-toolbar-no-items",{toolbarId:r});const M=this.editor,E=M.t,F=new T0(M.locale);if(F.ariaLabel=c||E("Widget toolbar"),this._toolbarDefinitions.has(r))throw new nt("widget-toolbar-duplicated",this,{toolbarId:r});const V={view:F,getRelatedElement:_,balloonClassName:x,itemsConfig:u,initialized:!1};M.ui.addToolbar(F,{isContextual:!0,beforeFocus:()=>{const W=_(M.editing.view.document.selection);W&&this._showToolbar(V,W)},afterBlur:()=>{this._hideToolbar(V)}}),this._toolbarDefinitions.set(r,V)}_updateToolbarsVisibility(){let r=0,c=null,u=null;for(const _ of this._toolbarDefinitions.values()){const x=_.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&x)if(this.editor.ui.focusTracker.isFocused){const M=x.getAncestors().length;M>r&&(r=M,c=x,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)?O5(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:E5(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);O5(this.editor,_)}}))}_isToolbarVisible(r){return this._balloon.visibleView===r.view}_isToolbarInBalloon(r){return this._balloon.hasView(r.view)}}function O5(m,r){const c=m.plugins.get("ContextualBalloon"),u=E5(m,r);c.updatePosition(u)}function E5(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]}}Ue(),Ue();var px=v(8506);No()(px.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const I5=bo("px");class z8 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=>I5(c)),top:r.to("top",c=>I5(c)),width:r.to("width",c=>I5(c))}}})}}class N5 extends lo{constructor(){super(...arguments),this.removeDropMarkerDelayed=wr(()=>this.removeDropMarker(),40),this._updateDropMarkerThrottled=Sh(r=>this._updateDropMarker(r),40),this._reconvertMarkerThrottled=Sh(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0),this._dropTargetLineView=new z8,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,_,x){this.removeDropMarkerDelayed.cancel();const M=F5(this.editor,r,c,u,_,x);M&&this._updateDropMarkerThrottled(M)}getFinalDropRange(r,c,u,_,x){const M=F5(this.editor,r,c,u,_,x);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,x=r.start.parent,M=u?c.mapper.toViewElement(u):null,E=M?c.view.domConverter.mapViewToDom(M):null,F=_?c.mapper.toViewElement(_):null,V=F?c.view.domConverter.mapViewToDom(F):null,W=c.mapper.toViewElement(x),dt=c.view.domConverter.mapViewToDom(W),Zt=this._getScrollableRect(W),{scrollX:ue,scrollY:Ae}=Mt.window,Ie=E?new ce(E):null,ln=V?new ce(V):null,Dn=new ce(dt).excludeScrollbarsAndBorders(),di=Ie?Ie.bottom:Dn.top,Ri=ln?ln.top:Dn.bottom,Go=Mt.window.getComputedStyle(dt),Da=di<=Ri?(di+Ri)/2:Ri;if(Zt.topZt.is("element")&&!ny(m,Zt));let W=0,dt=V.length;if(0==dt)return M.createRange(M.createPositionAt(F,"end"));for(;Wr in m?Y8(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class V8 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(Mt.document,"dragover",(u,_)=>this._handleBlockDragging(_)),this._domEmitter.listenTo(Mt.document,"drop",(u,_)=>this._handleBlockDragging(_)),this._domEmitter.listenTo(Mt.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&c.setAttribute("draggable","true"),this.on("change:isEnabled",(u,_,x)=>{c.setAttribute("draggable",x?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(r){if(!this.isEnabled)return;const c=this.editor.model,_=this.editor.editing.view,x=Array.from(c.document.selection.getSelectedBlocks()),M=c.createRange(c.createPositionBefore(x[0]),c.createPositionAfter(x[x.length-1]));c.change(E=>E.setSelection(M)),this._isBlockDragging=!0,_.focus(),_.getObserver(qh).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),x=this.editor.editing.view;var M;_&&_.closest(".ck-editor__editable")&&x.getObserver(qh).onDomEvent((M=((F,V)=>{for(var W in V||(V={}))fx.call(V,W)&&hx(F,W,V[W]);if(bf)for(var W of bf(V))q5.call(V,W)&&hx(F,W,V[W]);return F})({},r),B8(M,_x({type:r.type,dataTransfer:r.dataTransfer,target:_,clientX:c,clientY:u,preventDefault:()=>r.preventDefault(),stopPropagation:()=>r.stopPropagation()}))))}_handleBlockDragEnd(){this._isBlockDragging=!1}}var gx=v(903);No()(gx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class vx 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,V0,N5,V8]}init(){const r=this.editor,c=r.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,c.addObserver(qh),c.addObserver(C0),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(r,"change:isReadOnly",(u,_,x)=>{x?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(u,_,x)=>{x||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,x=r.plugins.get(N5);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 F=c.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(E.dataTransfer,F,"dragstart");const{dataTransfer:V,domTarget:W,domEvent:dt}=E,{clientX:Zt}=dt;this._updatePreview({dataTransfer:V,domTarget:W,clientX:Zt}),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(Mt.document,"dragend",()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(_,"dragenter",()=>{this.isEnabled&&u.focus()}),this.listenTo(_,"dragleave",()=>{x.removeDropMarkerDelayed()}),this.listenTo(_,"dragging",(M,E)=>{if(!this.isEnabled)return void(E.dataTransfer.dropEffect="none");const{clientX:F,clientY:V}=E.domEvent;x.updateDropMarker(E.target,E.targetRanges,F,V,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(N5);this.listenTo(c,"clipboardInput",(_,x)=>{if("drop"!=x.method)return;const{clientX:M,clientY:E}=x.domEvent,F=u.getFinalDropRange(x.target,x.targetRanges,M,E,this._blockMode);return F?(this._draggedRange&&this._draggingUid!=x.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==xx(x.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(F,!0)?(this._finalizeDragging(!1),void _.stop()):void(x.targetRanges=[r.editing.mapper.toViewRange(F)])):(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(x=>this.editor.editing.mapper.toModelRange(x));this.editor.model.change(x=>x.setSelection(_))},{priority:"high"}),r.on("contentInsertion",(c,u)=>{if(!this.isEnabled||"drop"!==u.method)return;const _="move"==xx(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",(_,x)=>{if(D_isAndroid||!x)return;this._clearDraggableAttributesDelayed.cancel();let M=Yh(x.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(N5).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 x=u.createSelection(this._draggedRange);u.deleteContent(x,{doNotAutoparagraph:!0});const M=x.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,x=r?Yh(r):null;if(x){const V=c.editing.mapper.toModelElement(x);return this._draggedRange=Xu.fromRange(u.createRangeOn(V)),this._blockMode=u.schema.isBlock(V),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 F=Cx(u,M);if(M.length>1)this._draggedRange=Xu.fromRange(F),this._blockMode=!0;else if(1==M.length){const V=E.start.isTouching(F.start)&&E.end.isTouching(F.end);this._draggedRange=Xu.fromRange(V?F:E),this._blockMode=V}u.change(V=>V.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:r,domTarget:c,clientX:u}){const _=this.editor.editing.view,M=_.domConverter.mapViewToDom(_.document.selection.editableElement),E=Mt.window.getComputedStyle(M);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=We(Mt.document,"div",{style:"position: fixed; left: -999999px;"}),Mt.document.body.appendChild(this._previewContainer));const F=new ce(M);if(M.contains(c))return;const V=parseFloat(E.paddingLeft),W=We(Mt.document,"div");W.className="ck ck-content",W.style.width=E.width,W.style.paddingLeft=`${F.left-u+V}px`,D_isiOS&&(W.style.backgroundColor="white"),W.innerHTML=r.getData("text/html"),r.setDragImage(W,0,0),this._previewContainer.appendChild(W)}}function xx(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 Cx(m,r){const c=r[0],u=r[r.length-1],_=c.getCommonAncestor(u),x=m.createPositionBefore(c),M=m.createPositionAfter(u);if(_&&_.is("element")&&!m.schema.isLimit(_)){const E=m.createRangeOn(_),F=x.isTouching(E.start),V=M.isTouching(E.end);if(F&&V)return Cx(m,[_])}return m.createRange(x,M)}class Ax 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,x=c.document.selection;let M=!1;u.addObserver(qh),this.listenTo(_,"keydown",(E,F)=>{M=F.shiftKey}),r.plugins.get(Np).on("contentInsertion",(E,F)=>{(M||function(V,W){if(V.childCount>1)return!1;const dt=V.getChild(0);return!W.isObject(dt)&&0==Array.from(dt.getAttributeKeys()).length}(F.content,c.schema))&&c.change(V=>{const W=Array.from(x.getAttributes()).filter(([Zt])=>c.schema.getAttributeProperties(Zt).isFormatting);x.isCollapsed||c.deleteContent(x,{doNotAutoparagraph:!0}),W.push(...x.getAttributes());const dt=V.createRangeIn(F.content);for(const Zt of dt.getItems())Zt.is("$textProxy")&&V.setAttributes(W,Zt)})})}}class yx extends lo{static get pluginName(){return"Clipboard"}static get requires(){return[Np,vx,Ax]}}class H4 extends Za{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)||!Tx(r.schema,u))do{if(u=u.parent,!u)return}while(!Tx(r.schema,u));r.change(_=>{_.setSelection(u,"in")})}}function Tx(m,r){return m.isLimit(r)&&(m.checkChild(r,"$text")||m.checkChild(r,"paragraph"))}const wx=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 H4(r)),this.listenTo(c,"keydown",(u,_)=>{Tc(_)===wx&&(r.execute("selectAll"),_.preventDefault())})}}class R5 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 J8 extends lo{static get requires(){return[j8,R5]}static get pluginName(){return"SelectAll"}}var Ux=Object.defineProperty,H5=Object.getOwnPropertySymbols,Zx=Object.prototype.hasOwnProperty,Mx=Object.prototype.propertyIsEnumerable,kx=(m,r,c)=>r in m?Ux(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Bh extends Za{constructor(r){super(r),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(r.data,"set",(c,u)=>{u[1]=((x,M)=>{for(var E in M||(M={}))Zx.call(M,E)&&kx(x,E,M[E]);if(H5)for(var E of H5(M))Mx.call(M,E)&&kx(x,E,M[E]);return x})({},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,x=_.document,M=[],E=r.map(V=>V.getTransformedByOperations(u)),F=E.flat();for(const V of E){const W=V.filter(dt=>dt.root!=x.graveyard).filter(dt=>!Dx(dt,F));W.length&&(G8(W),M.push(W[0]))}M.length&&_.change(V=>{V.setSelection(M,{backward:c})})}_undo(r,c){const u=this.editor.model,_=u.document;this._createdBatches.add(c);const x=r.operations.slice().filter(M=>M.isDocumentOperation);x.reverse();for(const M of x){const F=Array.from(_.history.getOperations(M.baseVersion+1)),V=_h([M.getReversed()],F,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let W of V){const dt=W.affectedSelectable;dt&&!u.canEditAt(dt)&&(W=new fc(W.baseVersion)),c.addOperation(W),u.applyOperation(W),_.history.setOperationAsUndone(M,W)}}}}function G8(m){m.sort((r,c)=>r.start.isBefore(c.start)?-1:1);for(let r=1;rc!==m&&c.containsRange(m,!0))}class Px extends Bh{execute(r=null){const c=r?this._stack.findIndex(x=>x.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 x=this.editor.model.document.history.getOperations(u.batch.baseVersion);this._restoreSelection(u.selection.ranges,u.selection.isBackward,x)}),this.fire("revert",u.batch,_),this.refresh()}}class Q8 extends Bh{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 W8 extends lo{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const r=this.editor;this._undoCommand=new Px(r),this._redoCommand=new Q8(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 x=_.batch,M=this._redoCommand.createdBatches.has(x),E=this._undoCommand.createdBatches.has(x);this._batchRegistry.has(x)||(this._batchRegistry.add(x),x.isUndoable&&(M?this._undoCommand.addBatch(x):E||(this._undoCommand.addBatch(x),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 z5='',Sx='';class $8 extends lo{static get pluginName(){return"UndoUI"}init(){const r=this.editor,c=r.locale,u=r.t,_="ltr"==c.uiLanguageDirection?z5:Sx,x="ltr"==c.uiLanguageDirection?Sx:z5;this._addButton("undo",u("Undo"),"CTRL+Z",_),this._addButton("redo",u("Redo"),"CTRL+Y",x)}_addButton(r,c,u,_){const x=this.editor;x.ui.componentFactory.add(r,M=>{const E=x.commands.get(r),F=new $o(M);return F.set({label:c,icon:_,keystroke:u,tooltip:!0}),F.bind("isEnabled").to(E,"isEnabled"),this.listenTo(F,"execute",()=>{x.execute(r),x.editing.view.focus()}),F})}}class Lx extends lo{static get requires(){return[W8,$8]}static get pluginName(){return"Undo"}}class Ox extends(Ue()){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 x=c.result;this._data=x,u(x)},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[Th]}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 Tt("filerepository-no-upload-adapter"),null;const c=new Y5(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 Y5?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(Th);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 Y5 extends(Ue()){constructor(r,c){super(),this.id=Pt(),this._filePromiseWrapper=this._createFilePromiseWrapper(r),this._adapter=c(this),this._reader=new Ox,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 nt("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 nt("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(x=>{c.isFulfilled=!0,u(x)}).catch(x=>{c.isFulfilled=!0,_(x)})}),c}}class Ex extends oa{constructor(r){super(r),this.buttonView=new $o(r),this._fileInputView=new K8(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 K8 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 X8{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,x=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&&(x.uploadTotal=E.total,x.uploaded=E.loaded)})}_sendRequest(r){const c=new FormData;c.append("upload",r),c.append("ckCsrfToken",function V5(){let m=function(u){u=u.toLowerCase();const _=document.cookie.split(";");for(const x of _){const M=x.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 x=new Uint8Array(40);window.crypto.getRandomValues(x);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 Fp(m,r,c,u){let _,x=null;"function"==typeof u?_=u:(x=m.commands.get(u),_=()=>{m.execute(u)}),m.model.document.on("change:data",(M,E)=>{if(x&&!x.isEnabled||!r.isEnabled)return;const F=as(m.model.document.selection.getRanges());if(!F.isCollapsed||E.isUndo||!E.isLocal)return;const V=Array.from(m.model.document.differ.getChanges()),W=V[0];if(1!=V.length||"insert"!==W.type||"$text"!=W.name||1!=W.length)return;const dt=W.position.parent;if(dt.is("element","codeBlock")||dt.is("element","listItem")&&"function"!=typeof u&&!["numberedList","bulletedList","todoList"].includes(u)||x&&!0===x.value)return;const Zt=dt.getChild(0),ue=m.model.createRangeOn(Zt);if(!ue.containsRange(F)&&!F.end.isEqual(ue.end))return;const Ae=c.exec(Zt.data.substr(0,F.end.offset));Ae&&m.model.enqueueChange(Ie=>{const ln=Ie.createPositionAt(dt,0),Dn=Ie.createPositionAt(dt,Ae[0].length),di=new Xu(ln,Dn);if(!1!==_({match:Ae})){Ie.remove(di);const Ri=m.model.document.selection.getFirstRange(),Go=Ie.createRangeIn(dt);!dt.isEmpty||Go.isEqual(Ri)||Go.containsRange(Ri,!0)||Ie.remove(dt)}di.detach(),m.model.enqueueChange(()=>{m.plugins.get("Delete").requestUndoOnBackspace()})})})}function f2(m,r,c,u){let _,x;c instanceof RegExp?_=c:x=c,x=x||(M=>{let E;const F=[],V=[];for(;null!==(E=_.exec(M))&&!(E&&E.length<4);){let{index:W,1:dt,2:Zt,3:ue}=E;W+=E[0].length-(dt+Zt+ue).length;const ln=[W+dt.length+Zt.length,W+dt.length+Zt.length+ue.length];F.push([W,W+dt.length]),F.push(ln),V.push([W+dt.length,W+dt.length+Zt.length])}return{remove:F,format:V}}),m.model.document.on("change:data",(M,E)=>{if(E.isUndo||!E.isLocal||!r.isEnabled)return;const F=m.model,V=F.document.selection;if(!V.isCollapsed)return;const W=Array.from(F.document.differ.getChanges()),dt=W[0];if(1!=W.length||"insert"!==dt.type||"$text"!=dt.name||1!=dt.length)return;const Zt=V.focus,ue=Zt.parent,{text:Ae,range:Ie}=function(Ri,Go){let Da=Ri.start;return{text:Array.from(Ri.getItems()).reduce((Kr,Il)=>!Il.is("$text")&&!Il.is("$textProxy")||Il.getAttribute("code")?(Da=Go.createPositionAfter(Il),""):Kr+Il.data,""),range:Go.createRange(Da,Ri.end)}}(F.createRange(F.createPositionAt(ue,0),Zt),F),ln=x(Ae),Dn=j5(Ie.start,ln.format,F),di=j5(Ie.start,ln.remove,F);Dn.length&&di.length&&F.enqueueChange(Ri=>{if(!1!==u(Ri,Dn)){for(const Go of di.reverse())Ri.remove(Go);F.enqueueChange(()=>{m.plugins.get("Delete").requestUndoOnBackspace()})}})})}function j5(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 Vh(m,r){return(c,u)=>{if(!m.commands.get(r).isEnabled)return!1;const _=m.model.schema.getValidRanges(u,r);for(const x of _)c.setAttribute(r,!0,x);c.removeSelectionAttribute(r)}}class Ix extends Za{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(x=>{if(u.isCollapsed)_?x.setSelectionAttribute(this.attributeKey,!0):x.removeSelectionAttribute(this.attributeKey);else{const M=c.schema.getValidRanges(u.getRanges(),this.attributeKey);for(const E of M)_?x.setAttribute(this.attributeKey,_,E):x.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 x of _.getItems())if(c.checkAttribute(x,this.attributeKey))return x.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 Ix(r,jh)),r.keystrokes.set("CTRL+B",jh)}}const G5="bold";class Q5 extends lo{static get pluginName(){return"BoldUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add(G5,u=>{const _=r.commands.get(G5),x=new $o(u);return x.set({label:c("Bold"),icon:gs.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),x.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(x,"execute",()=>{r.execute(G5),r.editing.view.focus()}),x})}}var vf=v(8603);No()(vf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Jh="italic";class iy extends lo{static get pluginName(){return"ItalicEditing"}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:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),r.commands.add(Jh,new Ix(r,Jh)),r.keystrokes.set("CTRL+I",Jh)}}const Q0="italic";class B4 extends lo{static get pluginName(){return"ItalicUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add(Q0,u=>{const _=r.commands.get(Q0),x=new $o(u);return x.set({label:c("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),x.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(x,"execute",()=>{r.execute(Q0),r.editing.view.focus()}),x})}}class tA extends Za{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const c=this.editor.model,u=c.schema,x=Array.from(c.document.selection.getSelectedBlocks()),M=void 0===r.forceValue?!this.value:r.forceValue;c.change(E=>{if(M){const F=x.filter(V=>xf(V)||W5(u,V));this._applyQuote(E,F)}else this._removeQuote(E,x.filter(xf))})}_getValue(){const r=as(this.editor.model.document.selection.getSelectedBlocks());return!(!r||!xf(r))}_checkEnabled(){if(this.value)return!0;const c=this.editor.model.schema,u=as(this.editor.model.document.selection.getSelectedBlocks());return!!u&&W5(c,u)}_removeQuote(r,c){Nx(r,c).reverse().forEach(u=>{if(u.start.isAtStart&&u.end.isAtEnd)return void r.unwrap(u.start.parent);if(u.start.isAtStart){const x=r.createPositionBefore(u.start.parent);return void r.move(u,x)}u.end.isAtEnd||r.split(u.end);const _=r.createPositionAfter(u.end.parent);r.move(u,_)})}_applyQuote(r,c){const u=[];Nx(r,c).reverse().forEach(_=>{let x=xf(_.start);x||(x=r.createElement("blockQuote"),r.wrap(_,x)),u.push(x)}),u.reverse().reduce((_,x)=>_.nextSibling==x?(r.merge(r.createPositionAfter(_)),_):x)}}function xf(m){return"blockQuote"==m.parent.name?m.parent:null}function Nx(m,r){let c,u=0;const _=[];for(;u{const E=r.model.document.differ.getChanges();for(const F of E)if("insert"==F.type){const V=F.position.nodeAfter;if(!V)continue;if(V.is("element","blockQuote")&&V.isEmpty)return M.remove(V),!0;if(V.is("element","blockQuote")&&!c.checkChild(F.position,V))return M.unwrap(V),!0;if(V.is("element")){const W=M.createRangeIn(V);for(const dt of W.getItems())if(dt.is("element","blockQuote")&&!c.checkChild(M.createPositionBefore(dt),dt))return M.unwrap(dt),!0}}else if("remove"==F.type){const V=F.position.parent;if(V.is("element","blockQuote")&&V.isEmpty)return M.remove(V),!0}return!1});const u=this.editor.editing.view.document,_=r.model.document.selection,x=r.commands.get("blockQuote");this.listenTo(u,"enter",(M,E)=>{!_.isCollapsed||!x.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||!x.value)return;const F=_.getLastPosition().parent;F.isEmpty&&!F.previousSibling&&(r.execute("blockQuote"),r.editing.view.scrollToTheSelection(),E.preventDefault(),M.stop())},{context:"blockquote"})}}var _a=v(3062);No()(_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"),x=new $o(u);return x.set({label:c("Block quote"),icon:gs.quote,tooltip:!0,isToggleable:!0}),x.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(x,"execute",()=>{r.execute("blockQuote"),r.editing.view.focus()}),x})}}class qx 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 x=new $o(_);return x.set({label:u("Open file manager"),icon:'',tooltip:!0}),x.bind("isOn","isEnabled").to(c,"value","isEnabled"),x.on("execute",()=>{r.execute("ckbox")}),x})}}function Rx(m){const r=[];let c=0;for(const _ in m){const x=parseInt(_,10);isNaN(x)||(x>c&&(c=x),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 eA extends Za{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=We(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",(_,x)=>{if(!this.isEnabled)return;const M=r.commands.get("insertImage"),E=r.commands.get("link"),F=function({assets:V,isImageAllowed:W,isLinkAllowed:dt}){return V.map(Zt=>function(ue){const Ae=ue.data.metadata;return!!Ae&&Ae.width&&Ae.height}(Zt)?{id:Zt.data.id,type:"image",attributes:nA(Zt)}:{id:Zt.data.id,type:"link",attributes:iA(Zt)}).filter(Zt=>"image"===Zt.type?W:dt)}({assets:x,isImageAllowed:M.isEnabled,isLinkAllowed:E.isEnabled});0!==F.length&&c.change(V=>{for(const W of F)this._insertAsset(W,W===F[F.length-1],V),u&&(setTimeout(()=>this._chosenAssets.delete(W),1e3),this._chosenAssets.add(W))})}),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:x}=r.attributes;c.execute("insertImage",{source:{src:u,sources:_,alt:x}})}_insertLink(r,c){const u=this.editor,_=u.model,x=_.document.selection,{linkName:M,linkHref:E}=r.attributes;if(x.isCollapsed){const F=Kc(x.getAttributes()),V=c.createText(M,F),W=_.insertContent(V);c.setSelection(W)}u.execute("link",E)}}function nA(m){const{imageFallbackUrl:r,imageSources:c}=Rx(m.data.imageUrls);return{imageFallbackUrl:r,imageSources:c,imageTextAlternative:m.data.metadata.description||""}}function iA(m){return{linkName:m.data.name,linkHref:K5(m)}}function K5(m){const r=new URL(m.data.url);return r.searchParams.set("download","true"),r.toString()}var Gh=(m,r,c)=>new Promise((u,_)=>{var x=F=>{try{E(c.next(F))}catch(V){_(V)}},M=F=>{try{E(c.throw(F))}catch(V){_(V)}},E=F=>F.done?u(F.value):Promise.resolve(F.value).then(x,M);E((c=c.apply(m,r)).next())});class Hx extends lo{static get requires(){return["ImageUploadEditing","ImageUploadProgress",ip,X5]}static get pluginName(){return"CKBoxUploadAdapter"}afterInit(){return Gh(this,null,function*(){const r=this.editor,c=!!r.config.get("ckbox"),u=!!window.CKBox;if(!c&&!u)return;const _=r.plugins.get(ip),x=r.plugins.get(X5);_.createUploadAdapter=F=>new zx(F,x.getToken(),r);const M=!r.config.get("ckbox.ignoreDataId"),E=r.plugins.get("ImageUploadEditing");M&&E.on("uploadComplete",(F,{imageElement:V,data:W})=>{r.model.change(dt=>{dt.setAttribute("ckboxImageId",W.ckboxImageId,V)})})})}}class zx{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(_,x){const[,M]=_.value.split("."),E=JSON.parse(atob(M)),F=E.auth&&E.auth.ckbox&&E.auth.ckbox.workspaces||[E.aud];return x?"superadmin"==(E.auth&&E.auth.ckbox&&E.auth.ckbox.role)||F.includes(x)?x:null:F[0]}(this.token,c);if(null==u)throw At("ckbox-access-default-workspace-error"),r;return u}getAvailableCategories(r=0){return Gh(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=>Gh(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(),At("ckbox-fetch-category-http-error")})})}getCategoryIdForFile(r){return Gh(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(F=>F.toLowerCase()==c));if(M){const E=u.find(F=>F.id===M||F.name===M);return E?E.id:null}}const x=u.find(M=>M.extensions.find(E=>E.toLowerCase()==c));return x?x.id:null})}upload(){return Gh(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 x=new URL("assets",this.serviceOrigin),M=new FormData;return x.searchParams.set("workspaceId",this.getWorkspaceId()),M.append("categoryId",_),M.append("file",u),this._sendHttpRequest({method:"POST",url:x,data:M,onUploadProgress:F=>{F.lengthComputable&&(this.loader.uploadTotal=F.total,this.loader.uploaded=F.loaded)}}).then(F=>Gh(this,null,function*(){const V=Rx(F.imageUrls);return{ckboxImageId:F.id,default:V.imageFallbackUrl,sources:V.imageSources}})).catch(()=>{const F=r("Cannot upload file:")+` ${u.name}.`;return Promise.reject(F)})})}abort(){this.controller.abort()}_sendHttpRequest({url:r,method:c="GET",data:u,onUploadProgress:_}){const x=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((F,V)=>{x.addEventListener("abort",E),M.addEventListener("loadstart",()=>{x.addEventListener("abort",E)}),M.addEventListener("loadend",()=>{x.removeEventListener("abort",E)}),M.addEventListener("error",()=>{V()}),M.addEventListener("abort",()=>{V()}),M.addEventListener("load",()=>Gh(this,null,function*(){const W=M.response;return!W||W.statusCode>=400?V(W&&W.message):F(W)})),_&&M.upload.addEventListener("progress",W=>{_(W)}),M.send(u)})}}class X5 extends lo{static get pluginName(){return"CKBoxEditing"}static get requires(){return["CloudServices","LinkEditing","PictureEditing",Hx]}init(){return r=this,u=function*(){const _=this.editor,x=!!_.config.get("ckbox"),M=!!window.CKBox;if(!x&&!M)return;this._initConfig();const E=_.plugins.get("CloudServicesCore"),F=_.config.get("ckbox.tokenUrl");if(F===_.config.get("cloudServices.tokenUrl")){const V=_.plugins.get("CloudServices");this._token=V.token}else this._token=yield E.createToken(F).init();_.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),M&&_.commands.add("ckbox",new eA(_))},new Promise((_,x)=>{var M=V=>{try{F(u.next(V))}catch(W){x(W)}},E=V=>{try{F(u.throw(V))}catch(W){x(W)}},F=V=>V.done?_(V.value):Promise.resolve(V.value).then(M,E);F((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 nt("ckbox-plugin-missing-token-url",this);r.plugins.has("ImageBlockEditing")||r.plugins.has("ImageInlineEditing")||At("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,_,x)=>{const{writer:M,mapper:E,consumable:F}=x;if(!F.consume(_.item,u.name))return;const V=[...E.toViewElement(_.item).getChildren()].find(W=>"a"===W.name);V&&(_.item.hasAttribute("ckboxLinkId")?M.setAttribute("data-ckbox-resource-id",_.item.getAttribute("ckboxLinkId"),V):M.removeAttribute("data-ckbox-resource-id",V))},{priority:"low"}),c.on("attribute:ckboxLinkId",(u,_,x)=>{const{writer:M,mapper:E,consumable:F}=x;if(F.consume(_.item,u.name)){if(_.attributeOldValue){const V=aA(M,_.attributeOldValue);M.unwrap(E.toViewRange(_.range),V)}if(_.attributeNewValue){const V=aA(M,_.attributeNewValue);_.item.is("selection")?M.wrap(M.document.selection.getFirstRange(),V):M.wrap(E.toViewRange(_.range),V)}}},{priority:"low"})}),r.conversion.for("upcast").add(c=>{c.on("element:a",(u,_,x)=>{const{writer:M,consumable:E}=x;if(!_.viewItem.getAttribute("href")||!E.consume(_.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const F=_.viewItem.getAttribute("data-ckbox-resource-id");if(F)if(_.modelRange)for(let V of _.modelRange.getItems())V.is("$textProxy")&&(V=V.textNode),rA(V)&&M.setAttribute("ckboxLinkId",F,V);else M.setAttribute("ckboxLinkId",F,_.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,x=>{let M=!1;const E=_.model,F=_.commands.get("ckbox");if(!F)return M;for(const V of E.document.differ.getChanges()){if("insert"!==V.type&&"attribute"!==V.type)continue;const W="insert"===V.type?new Si(V.position,V.position.getShiftedBy(V.length)):V.range,dt="attribute"===V.type&&"linkHref"===V.attributeKey&&null===V.attributeNewValue;for(const Zt of W.getItems()){if(dt&&Zt.hasAttribute("ckboxLinkId")){x.removeAttribute("ckboxLinkId",Zt),M=!0;continue}const ue=oA(Zt,F._chosenAssets);for(const Ae of ue){const Ie="image"===Ae.type?"ckboxImageId":"ckboxLinkId";Ae.id!==Zt.getAttribute(Ie)&&(x.setAttribute(Ie,Ae.id,Zt),M=!0)}}}return M})),c.document.registerPostFixer(function(_){return x=>!(_.hasAttribute("linkHref")||!_.hasAttribute("ckboxLinkId")||(x.removeSelectionAttribute("ckboxLinkId"),0))}(u))}}function oA(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 aA(m,r){const c=m.createAttributeElement("a",{"data-ckbox-resource-id":r},{priority:5});return m.setCustomProperty("link",!0,c),c}function rA(m){return!!m.is("$text")||!(!m.is("element","imageInline")&&!m.is("element","imageBlock"))}class Yx extends lo{static get pluginName(){return"CKFinderUI"}init(){const r=this.editor,u=r.t;r.ui.componentFactory.add("ckfinder",_=>{const x=r.commands.get("ckfinder"),M=new $o(_);return M.set({label:u("Insert image or file"),icon:'',tooltip:!0}),M.bind("isEnabled").to(x),M.on("execute",()=>{r.execute("ckfinder"),r.editing.view.focus()}),M})}}class Bx extends Za{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 nt("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=x=>{_&&_(x),x.on("files:choose",M=>{const E=M.data.files.toArray(),F=E.filter(dt=>!dt.isImage()),V=E.filter(dt=>dt.isImage());for(const dt of F)r.execute("link",dt.getUrl());const W=[];for(const dt of V){const Zt=dt.getUrl();W.push(Zt||x.request("file:getProxyUrl",{file:dt}))}W.length&&tb(r,W)}),x.on("file:choose:resizedImage",M=>{const E=M.data.resizedUrl;if(E)tb(r,[E]);else{const F=r.plugins.get("Notification"),V=r.locale.t;F.showWarning(V("Could not obtain resized image URL."),{title:V("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[c](u)}}function tb(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 Vx 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 nt("ckfinder-missing-image-plugin",r);r.commands.add("ckfinder",new Bx(r))}}class sA 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 x=r.plugins.get("CloudServicesCore");this._uploadGateway=x.createUploadGateway(u,_),r.plugins.get(ip).createUploadAdapter=M=>new cA(this._uploadGateway,M)}}class cA{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 eb extends Za{constructor(r){super(r),this._isEnabledBasedOnSelection=!1}refresh(){const r=this.editor.model,c=as(r.document.selection.getSelectedBlocks());this.value=!!c&&c.is("element","paragraph"),this.isEnabled=!!c&&jx(c,r.schema)}execute(r={}){const c=this.editor.model,_=r.selection||c.document.selection;c.canEditAt(_)&&c.change(x=>{const M=_.getSelectedBlocks();for(const E of M)!E.is("element","paragraph")&&jx(E,c.schema)&&x.rename(E,"paragraph")})}}function jx(m,r){return r.checkChild(m.parent,"paragraph")&&!r.isObject(m)}class lA extends Za{constructor(r){super(r),this._isEnabledBasedOnSelection=!1}execute(r){const c=this.editor.model,u=r.attributes;let _=r.position;c.canEditAt(_)&&c.change(x=>{if(_=this._findPositionToInsertParagraph(_,x),!_)return;const M=x.createElement("paragraph");u&&c.schema.setAllowedAttributes(M,u,x),c.insertContent(M,_),x.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 x=r.parent,M=u.schema.checkChild(x,"$text");return x.isEmpty||M&&r.isAtEnd?u.createPositionAfter(x):!x.isEmpty&&M&&r.isAtStart?u.createPositionBefore(x):c.split(r,_).position}}const nb=class extends lo{static get pluginName(){return"Paragraph"}init(){const m=this.editor,r=m.model;m.commands.add("paragraph",new eb(m)),m.commands.add("insertParagraph",new lA(m)),r.schema.register("paragraph",{inheritAllFrom:"$block"}),m.conversion.elementToElement({model:"paragraph",view:"p"}),m.conversion.for("upcast").elementToElement({model:(c,{writer:u})=>nb.paragraphLikeElements.has(c.name)?c.isEmpty?null:u.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};let ib=nb;ib.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class W0 extends Za{constructor(r,c){super(r),this.modelElements=c}refresh(){const r=as(this.editor.model.document.selection.getSelectedBlocks());this.value=!!r&&this.modelElements.includes(r.name)&&r.name,this.isEnabled=!!r&&this.modelElements.some(c=>V4(r,c,this.editor.model.schema))}execute(r){const c=this.editor.model,u=c.document,_=r.value;c.change(x=>{const M=Array.from(u.selection.getSelectedBlocks()).filter(E=>V4(E,_,c.schema));for(const E of M)E.is("element",_)||x.rename(E,_)})}}function V4(m,r,c){return c.checkChild(m.parent,r)&&!c.isObject(m)}const ob="paragraph";class ab 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[ib]}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 W0(r,u))}afterInit(){const r=this.editor,c=r.commands.get("enter"),u=r.config.get("heading.options");c&&this.listenTo(c,"afterExecute",(_,x)=>{const M=r.model.document.selection.getFirstPosition().parent;u.some(E=>M.is("element",E.model))&&!M.is("element",ob)&&0===M.childCount&&x.writer.rename(M,ob)})}_addDefaultH1Conversion(r){r.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Dt.low+1})}}var rb=v(8733);No()(rb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Gx extends lo{static get pluginName(){return"HeadingUI"}init(){const r=this.editor,c=r.t,u=function(M){const E=M.t,F={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(V=>{const W=F[V.title];return W&&W!=V.title&&(V.title=W),V})}(r),_=c("Choose heading"),x=c("Heading");r.ui.componentFactory.add("heading",M=>{const E={},F=new ec,V=r.commands.get("heading"),W=r.commands.get("paragraph"),dt=[V];for(const ue of u){const Ae={type:"button",model:new Z4({label:ue.title,class:ue.class,role:"menuitemradio",withText:!0})};"paragraph"===ue.model?(Ae.model.bind("isOn").to(W,"value"),Ae.model.set("commandName","paragraph"),dt.push(W)):(Ae.model.bind("isOn").to(V,"value",Ie=>Ie===ue.model),Ae.model.set({commandName:"heading",commandValue:ue.model})),F.add(Ae),E[ue.model]=ue.title}const Zt=Lp(M);return t1(Zt,F,{ariaLabel:x,role:"menu"}),Zt.buttonView.set({ariaLabel:x,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:x}),Zt.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),Zt.bind("isEnabled").toMany(dt,"isEnabled",(...ue)=>ue.some(Ae=>Ae)),Zt.buttonView.bind("label").to(V,"value",W,"value",(ue,Ae)=>{const Ie=ue||Ae&&"paragraph";return"boolean"==typeof Ie?_:E[Ie]?E[Ie]:_}),this.listenTo(Zt,"execute",ue=>{const{commandName:Ae,commandValue:Ie}=ue.source;r.execute(Ae,Ie?{value:Ie}:void 0),r.editing.view.focus()}),Zt})}}function Qx(m){return m.createContainerElement("figure",{class:"image"},[m.createEmptyElement("img"),m.createSlot("children")])}function uA(m,r){const c=m.plugins.get("ImageUtils"),u=m.plugins.has("ImageInlineEditing")&&m.plugins.has("ImageBlockEditing");return x=>c.isInlineImageView(x)?u&&("block"==x.getStyle("display")||x.findAncestor(c.isBlockImageView)?"imageBlock":"imageInline")!==r?null:function _(x){const M={name:!0};return x.hasAttribute("src")&&(M.attributes=["src"]),M}(x):null}function j4(m,r){const c=as(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 sb(m){const r=$0(m.getStyle("width")),c=$0(m.getStyle("height"));return!(!r||!c)}var J4=Object.defineProperty,da=Object.getOwnPropertySymbols,K0=Object.prototype.hasOwnProperty,dA=Object.prototype.propertyIsEnumerable,G4=(m,r,c)=>r in m?J4(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)&&G4(m,c,r[c]);if(da)for(var c of da(r))dA.call(r,c)&&G4(m,c,r[c]);return m};const pA=/^(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 x=this.editor,M=x.model,E=M.document.selection;u=Qh(x,c||E,u),r=Pd(Pd({},Object.fromEntries(E.getAttributes())),r);for(const F in r)M.schema.checkAttribute(u,F)||delete r[F];return M.change(F=>{const{setImageSizes:V=!0}=_,W=F.createElement(u,r);return M.insertObject(W,c,null,{setSelection:"on",findOptimalPosition:c||"imageInline"==u?void 0:"auto"}),W.parent?(V&&this.setImageNaturalSizeAttributes(W),W):null})}setImageNaturalSizeAttributes(r){const c=r.getAttribute("src");c&&(r.getAttribute("width")||r.getAttribute("height")||this.editor.model.change(u=>{const _=new Mt.window.Image;this._domEmitter.listenTo(_,"load",()=>{r.getAttribute("width")||r.getAttribute("height")||this.editor.model.enqueueChange(u.batch,x=>{x.setAttribute("width",_.naturalWidth,r),x.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:pA})}isImageAllowed(){const r=this.editor.model.document.selection;return function(c,u){if("imageBlock"==Qh(c,u,null)){const x=function(M,E){const V=F4(M,E).start.parent;return V.isEmpty&&!V.is("element","$root")?V.parent:V}(u,c.model);if(c.model.schema.checkChild(x,"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 Qh(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 Q4 extends Za{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,x=u.getClosestSelectedImageElement(_.document.selection);_.change(M=>{M.setAttribute("alt",r.newValue,x)})}}class Wx extends lo{static get requires(){return[Sd]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Q4(this.editor))}}var $x=v(1905);No()($x.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var t3=v(6764);No()(t3.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 rs,this.keystrokes=new $c,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(c("Save"),gs.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(c("Cancel"),gs.cancel,"ck-button-cancel","cancel"),this._focusables=new Na,this._focusCycler=new ul({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),C({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 x=new $o(this.locale);return x.set({label:r,icon:c,tooltip:!0}),x.extendTemplate({attributes:{class:u}}),_&&x.delegate("execute").to(this,_),x}_createLabeledInputView(){const r=this.locale.t,c=new Sr(this.locale,lf);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[F0]}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"),x=new $o(u);return x.set({label:c("Change image text alternative"),icon:gs.lowVision,tooltip:!0}),x.bind("isEnabled").to(_,"isEnabled"),x.bind("isOn").to(_,"value",M=>!!M),this.listenTo(x,"execute",()=>{this._showForm()}),x})}_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",(_,x)=>{this._hideForm(!0),x()}),this.listenTo(r.ui,"update",()=>{u.getClosestSelectedImageWidget(c.selection)?this._isVisible&&function(_){const x=_.plugins.get("ContextualBalloon");if(_.plugins.get("ImageUtils").getClosestSelectedImageWidget(_.editing.view.document.selection)){const M=cb(_);x.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 W4 extends lo{static get requires(){return[Wx,Xx]}static get pluginName(){return"ImageTextAlternative"}}function $4(m,r){const c=(u,_,x)=>{if(!x.consumable.consume(_.item,u.name))return;const M=x.writer,E=x.mapper.toViewElement(_.item),F=m.findViewImgElement(E);null===_.attributeNewValue?(M.removeAttribute("srcset",F),M.removeAttribute("sizes",F)):_.attributeNewValue&&(M.setAttribute("srcset",_.attributeNewValue,F),M.setAttribute("sizes","100vw",F))};return u=>{u.on(`attribute:srcset:${r}`,c)}}function K4(m,r,c){const u=(_,x,M)=>{if(!M.consumable.consume(x.item,_.name))return;const E=M.writer,F=M.mapper.toViewElement(x.item),V=m.findViewImgElement(F);E.setAttribute(x.attributeKey,x.attributeNewValue||"",V)};return _=>{_.on(`attribute:${c}:${r}`,u)}}class _A 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 oy=Object.defineProperty,e3=Object.getOwnPropertySymbols,lb=Object.prototype.hasOwnProperty,ub=Object.prototype.propertyIsEnumerable,X4=(m,r,c)=>r in m?oy(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Wh=(m,r)=>{for(var c in r||(r={}))lb.call(r,c)&&X4(m,c,r[c]);if(e3)for(var c of e3(r))ub.call(r,c)&&X4(m,c,r[c]);return m};class db extends Za{constructor(r){super(r);const c=r.config.get("image.insert.type");r.plugins.has("ImageBlockEditing")||"block"===c&&Tt("image-block-plugin-required"),r.plugins.has("ImageInlineEditing")||"inline"===c&&Tt("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"),x=Object.fromEntries(u.getAttributes());c.forEach((M,E)=>{const F=u.getSelectedElement();if("string"==typeof M&&(M={src:M}),E&&F&&_.isImage(F)){const V=this.editor.model.createPositionAfter(F);_.insertImage(Wh(Wh({},M),x),V)}else _.insertImage(Wh(Wh({},M),x))})}}class fA extends Za{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(_A),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 fA(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 x(M,E,F,V){M.on(`attribute:${E}:${r}`,(W,dt,Zt)=>{if(!Zt.consumable.consume(dt.item,W.name))return;const ue=Zt.writer,Ae=Zt.mapper.toViewElement(dt.item),Ie=u.findViewImgElement(Ae);if(null!==dt.attributeNewValue?ue.setAttribute(F,dt.attributeNewValue,Ie):ue.removeAttribute(F,Ie),dt.item.hasAttribute("sources"))return;const ln=dt.item.hasAttribute("resizedWidth");if("imageInline"===r&&!ln&&!V)return;const Dn=dt.item.getAttribute("width"),di=dt.item.getAttribute("height"),Ri=Ie.getStyle("aspect-ratio");Dn&&di&&!Ri&&ue.setStyle("aspect-ratio",`${Dn}/${di}`,Ie)})}c.conversion.for("upcast").attributeToAttribute({view:{name:_,styles:{width:/.+/}},model:{key:"width",value:M=>sb(M)?$0(M.getStyle("width")):null}}).attributeToAttribute({view:{name:_,key:"width"},model:"width"}).attributeToAttribute({view:{name:_,styles:{height:/.+/}},model:{key:"height",value:M=>sb(M)?$0(M.getStyle("height")):null}}).attributeToAttribute({view:{name:_,key:"height"},model:"height"}),c.conversion.for("editingDowncast").add(M=>{x(M,"width","width",!0),x(M,"height","height",!0)}),c.conversion.for("dataDowncast").add(M=>{x(M,"width","width",!1),x(M,"height","height",!1)})}}class _b extends Za{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"),x=_.getClosestSelectedImageElement(u.document.selection),M=Object.fromEntries(x.getAttributes());return M.src||M.uploadId?u.change(E=>{const{setImageSizes:F=!0}=r,V=Array.from(u.markers).filter(Zt=>Zt.getRange().containsItem(x)),W=_.insertImage(M,u.createSelection(x,"on"),this._modelElementName,{setImageSizes:F});if(!W)return null;const dt=E.createRangeOn(W);for(const Zt of V){const ue=Zt.getRange(),Ae="$graveyard"!=ue.root.rootName?ue.getJoined(dt,!0):dt;E.updateMarker(Zt,{range:Ae})}return{oldElement:x,newElement:W}}):null}}class n3 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:(x,{writer:M})=>Qx(M)}),u.for("editingDowncast").elementToStructure({model:"imageBlock",view:(x,{writer:M})=>_.toImageWidget(Qx(M),M,c("image widget"))}),u.for("downcast").add(K4(_,"imageBlock","src")).add(K4(_,"imageBlock","alt")).add($4(_,"imageBlock")),u.for("upcast").elementToElement({view:uA(r,"imageBlock"),model:(x,{writer:M})=>M.createElement("imageBlock",x.hasAttribute("src")?{src:x.getAttribute("src")}:void 0)}).add(function(x){const M=(E,F,V)=>{if(!V.consumable.test(F.viewItem,{name:!0,classes:"image"}))return;const W=x.findViewImgElement(F.viewItem);if(!W||!V.consumable.test(W,{name:!0}))return;V.consumable.consume(F.viewItem,{name:!0,classes:"image"});const dt=as(V.convertItem(W,F.modelCursor).modelRange.getItems());dt?(V.convertChildren(F.viewItem,dt),V.updateConversionResult(dt,F)):V.consumable.revert(F.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"),x=r.plugins.get("ClipboardPipeline");this.listenTo(x,"inputTransformation",(M,E)=>{const F=Array.from(E.content.getChildren());let V;if(!F.every(_.isInlineImageView))return;V=E.targetRanges?r.editing.mapper.toModelRange(E.targetRanges[0]):c.document.selection.getFirstRange();const W=c.createSelection(V);if("imageBlock"===j4(c.schema,W)){const dt=new W1(u.document),Zt=F.map(ue=>dt.createElement("figure",{class:"image"},ue));E.content=dt.createDocumentFragment(Zt)}}),this.listenTo(x,"contentInsertion",(M,E)=>{"paste"===E.method&&c.change(F=>{const V=F.createRangeIn(E.content);for(const W of V.getItems())W.is("element","imageBlock")&&_.setImageNaturalSizeAttributes(W)})})}}var t6=v(3508);No()(t6.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class tC extends lo{static get requires(){return[n3,V0,W4]}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:(x,{writer:M})=>M.createEmptyElement("img")}),u.for("editingDowncast").elementToStructure({model:"imageInline",view:(x,{writer:M})=>{return _.toImageWidget((E=M).createContainerElement("span",{class:"image-inline"},E.createEmptyElement("img")),M,c("image widget"));var E}}),u.for("downcast").add(K4(_,"imageInline","src")).add(K4(_,"imageInline","alt")).add($4(_,"imageInline")),u.for("upcast").elementToElement({view:uA(r,"imageInline"),model:(x,{writer:M})=>M.createElement("imageInline",x.hasAttribute("src")?{src:x.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const r=this.editor,c=r.model,u=r.editing.view,_=r.plugins.get("ImageUtils"),x=r.plugins.get("ClipboardPipeline");this.listenTo(x,"inputTransformation",(M,E)=>{const F=Array.from(E.content.getChildren());let V;if(!F.every(_.isBlockImageView))return;V=E.targetRanges?r.editing.mapper.toModelRange(E.targetRanges[0]):c.document.selection.getFirstRange();const W=c.createSelection(V);if("imageInline"===j4(c.schema,W)){const dt=new W1(u.document),Zt=F.map(ue=>1===ue.childCount?(Array.from(ue.getAttributes()).forEach(Ae=>dt.setAttribute(...Ae,_.findViewImgElement(ue))),ue.getChild(0)):ue);E.content=dt.createDocumentFragment(Zt)}}),this.listenTo(x,"contentInsertion",(M,E)=>{"paste"===E.method&&c.change(F=>{const V=F.createRangeIn(E.content);for(const W of V.getItems())W.is("element","imageInline")&&_.setImageNaturalSizeAttributes(W)})})}}class hA extends lo{static get requires(){return[eC,V0,W4]}static get pluginName(){return"ImageInline"}}class i3 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 Za{refresh(){const r=this.editor,c=r.plugins.get("ImageCaptionUtils"),u=r.plugins.get("ImageUtils");if(!r.plugins.has(n3))return this.isEnabled=!1,void(this.value=!1);const _=r.model.document.selection,x=_.getSelectedElement();if(!x){const M=c.getCaptionFromModelSelection(_);return this.isEnabled=!!M,void(this.value=!!M)}this.isEnabled=u.isImage(x),this.value=!!this.isEnabled&&!!c.getCaptionFromImageModelElement(x)}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"),x=this.editor.plugins.get("ImageUtils");let M=u.getSelectedElement();const E=_._getSavedCaption(M);x.isInlineImage(M)&&(this.editor.execute("imageTypeBlock"),M=u.getSelectedElement());const F=E||r.createElement("caption");r.append(F,M),c&&r.setSelection(F,"in")}_hideImageCaption(r){const c=this.editor,u=c.model.document.selection,_=c.plugins.get("ImageCaptionEditing"),x=c.plugins.get("ImageCaptionUtils");let M,E=u.getSelectedElement();E?M=x.getCaptionFromImageModelElement(E):(M=x.getCaptionFromModelSelection(u),E=M.parent),_._saveCaption(E,M),r.setSelection(E,"on"),r.remove(M)}}class gA extends lo{constructor(r){super(r),this._savedCaptionsMap=new WeakMap}static get requires(){return[Sd,i3]}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"),x=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 F=E.createEditableElement("figcaption");E.setCustomProperty("imageCaption",!0,F),F.placeholder=x("Enter image caption"),Y({view:c,element:F,keepOnFocus:!0});const V=M.parent.getAttribute("alt");return L5(F,E,{label:V?x("Caption for image: %0",[V]):x("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const r=this.editor,c=r.plugins.get("ImageUtils"),u=r.plugins.get("ImageCaptionUtils"),_=r.commands.get("imageTypeInline"),x=r.commands.get("imageTypeBlock"),M=E=>{if(!E.return)return;const{oldElement:F,newElement:V}=E.return;if(!F)return;if(c.isBlockImage(F)){const dt=u.getCaptionFromImageModelElement(F);if(dt)return void this._saveCaption(V,dt)}const W=this._getSavedCaption(F);W&&this._saveCaption(V,W)};_&&this.listenTo(_,"execute",M,{priority:"low"}),x&&this.listenTo(x,"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 x=c.document.differ.getChanges();for(const M of x){if("alt"!==M.attributeKey)continue;const E=M.range.start.nodeAfter;if(u.isBlockImage(E)){const F=_.getCaptionFromImageModelElement(E);if(!F)return;r.editing.reconvertItem(F)}}})}}class hb extends lo{static get requires(){return[i3]}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",x=>{const M=r.commands.get("toggleImageCaption"),E=new $o(x);return E.set({icon:gs.caption,tooltip:!0,isToggleable:!0}),E.bind("isOn","isEnabled").to(M,"value","isEnabled"),E.bind("label").to(M,"value",F=>_(F?"Toggle caption off":"Toggle caption on")),this.listenTo(E,"execute",()=>{r.execute("toggleImageCaption",{focusCaptionOnShow:!0});const F=u.getCaptionFromModelSelection(r.model.document.selection);if(F){const V=r.editing.mapper.toViewElement(F);c.scrollToTheSelection(),c.change(W=>{W.addClass("image__caption_highlighted",V)})}r.editing.view.focus()}),E})}}var gb=v(2640);function Cf(m){const r=m.map(c=>c.replace("+","\\+"));return new RegExp(`^image\\/(${r.join("|")})$`)}function bA(m){return new Promise((r,c)=>{const u=m.getAttribute("src");fetch(u).then(_=>_.blob()).then(_=>{const x=iC(_,u),M=x.replace("image/",""),E=new File([_],`image.${M}`,{type:x});r(E)}).catch(_=>{return _&&"TypeError"===_.name?(x=u,(M=x,new Promise((E,F)=>{const V=Mt.document.createElement("img");V.addEventListener("load",()=>{const W=Mt.document.createElement("canvas");W.width=V.width,W.height=V.height,W.getContext("2d").drawImage(V,0,0),W.toBlob(dt=>dt?E(dt):F())}),V.addEventListener("error",()=>F()),V.src=M})).then(M=>{const E=iC(M,x),F=E.replace("image/","");return new File([M],`image.${F}`,{type:E})})).then(r).catch(c):c(_);var x,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"}No()(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 x=new Ex(_),M=r.commands.get("uploadImage"),E=r.config.get("image.upload.types"),F=Cf(E);return x.set({acceptedType:E.map(V=>`image/${V}`).join(","),allowMultipleFiles:!0}),x.buttonView.set({label:c("Insert image"),icon:gs.image,tooltip:!0}),x.buttonView.bind("isEnabled").to(M),x.on("done",(V,W)=>{const dt=Array.from(W).filter(Zt=>F.test(Zt.type));dt.length&&(r.execute("uploadImage",{file:dt}),r.editing.view.focus())}),x};r.ui.componentFactory.add("uploadImage",u),r.ui.componentFactory.add("imageUpload",u)}}var vA=v(3689);No()(vA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var vb=v(4036);No()(vb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var xb=v(3773);No()(xb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class xA extends lo{constructor(r){super(r),this.uploadStatusChange=(c,u,_)=>{const x=this.editor,M=u.item,E=M.getAttribute("uploadId");if(!_.consumable.consume(u.item,c.name))return;const F=x.plugins.get("ImageUtils"),V=x.plugins.get(ip),W=E?u.attributeNewValue:null,dt=this.placeholder,Zt=x.editing.mapper.toViewElement(M),ue=_.writer;if("reading"==W)return Cb(Zt,ue),void aC(F,dt,Zt,ue);if("uploading"==W){const Ae=V.loaders.get(E);return Cb(Zt,ue),void(Ae?(rC(Zt,ue),function(Ie,ln,Dn,di){const Ri=function(Go){const Da=Go.createUIElement("div",{class:"ck-progress-bar"});return Go.setCustomProperty("progressBar",!0,Da),Da}(ln);ln.insert(ln.createPositionAt(Ie,"end"),Ri),Dn.on("change:uploadedPercent",(Go,Da,ws)=>{di.change(Kr=>{Kr.setStyle("width",ws+"%",Ri)})})}(Zt,ue,Ae,x.editing.view),function(Ie,ln,Dn,di){if(di.data){const Ri=Ie.findViewImgElement(ln);Dn.setAttribute("src",di.data,Ri)}}(F,Zt,ue,Ae)):aC(F,dt,Zt,ue))}"complete"==W&&V.loaders.get(E)&&function(Ae,Ie,ln){const Dn=Ie.createUIElement("div",{class:"ck-image-upload-complete-icon"});Ie.insert(Ie.createPositionAt(Ae,"end"),Dn),setTimeout(()=>{ln.change(di=>di.remove(di.createRangeOn(Dn)))},3e3)}(Zt,ue,x.editing.view),o3(Zt,ue,"progressBar"),rC(Zt,ue),ue.removeClass("ck-appear",Zt)},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(x){const M=x.createUIElement("div",{class:"ck-upload-placeholder-loader"});return x.setCustomProperty("placeholder",!0,M),M}(u))}function rC(m,r){m.hasClass("ck-image-upload-placeholder")&&r.removeClass("ck-image-upload-placeholder",m),o3(m,r,"placeholder")}function sC(m,r){for(const c of m.getChildren())if(c.getCustomProperty(r))return c}function o3(m,r,c){const u=sC(m,c);u&&r.remove(r.createRangeOn(u))}var cC=Object.defineProperty,lC=Object.defineProperties,n6=Object.getOwnPropertyDescriptors,i6=Object.getOwnPropertySymbols,ay=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 Za{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"),x=Object.fromEntries(u.getAttributes());c.forEach((M,E)=>{const F=u.getSelectedElement();if(E&&F&&_.isImage(F)){const V=this.editor.model.createPositionAfter(F);this._uploadImage(M,x,V)}else this._uploadImage(M,x)})}_uploadImage(r,c,u){const _=this.editor,x=_.plugins.get(ip).createLoader(r),M=_.plugins.get("ImageUtils");var E;x&&M.insertImage((E=((V,W)=>{for(var dt in W||(W={}))ay.call(W,dt)&&uC(V,dt,W[dt]);if(i6)for(var dt of i6(W))Ab.call(W,dt)&&uC(V,dt,W[dt]);return V})({},c),lC(E,n6({uploadId:x.id}))),u)}}class Af 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),x=r.plugins.get("ImageUtils"),M=r.plugins.get("ClipboardPipeline"),E=Cf(r.config.get("image.upload.types")),F=new dC(r);r.commands.add("uploadImage",F),r.commands.add("imageUpload",F),u.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(r.editing.view.document,"clipboardInput",(V,W)=>{if(dt=W.dataTransfer,Array.from(dt.types).includes("text/html")&&""!==dt.getData("text/html"))return;var dt;const Zt=Array.from(W.dataTransfer.files).filter(ue=>!!ue&&E.test(ue.type));Zt.length&&(V.stop(),r.model.change(ue=>{W.targetRanges&&ue.setSelection(W.targetRanges.map(Ae=>r.editing.mapper.toModelRange(Ae))),r.execute("uploadImage",{file:Zt})}))}),this.listenTo(M,"inputTransformation",(V,W)=>{const dt=Array.from(r.editing.view.createRangeIn(W.content)).map(ue=>ue.item).filter(ue=>{return!(!x.isInlineImageView(Ie=ue)||!Ie.getAttribute("src")||!Ie.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!Ie.getAttribute("src").match(/^blob:/g)||ue.getAttribute("uploadProcessed"));var Ie}).map(ue=>({promise:bA(ue),imageElement:ue}));if(!dt.length)return;const Zt=new W1(r.editing.view.document);for(const ue of dt){Zt.setAttribute("uploadProcessed",!0,ue.imageElement);const Ae=_.createLoader(ue.promise);Ae&&(Zt.setAttribute("src","",ue.imageElement),Zt.setAttribute("uploadId",Ae.id,ue.imageElement))}}),r.editing.view.document.on("dragover",(V,W)=>{W.preventDefault()}),c.on("change",()=>{const V=c.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),W=new Set;for(const dt of V)if("insert"==dt.type&&"$text"!=dt.name){const Zt=dt.position.nodeAfter,ue="$graveyard"==dt.position.root.rootName;for(const Ae of CA(r,Zt)){const Ie=Ae.getAttribute("uploadId");if(!Ie)continue;const ln=_.loaders.get(Ie);ln&&(ue?W.has(Ie)||ln.abort():(W.add(Ie),this._uploadImageElements.set(Ie,Ae),"idle"==ln.status&&this._readAndUpload(ln)))}}}),this.on("uploadComplete",(V,{imageElement:W,data:dt})=>{const Zt=dt.urls?dt.urls:dt;this.editor.model.change(ue=>{ue.setAttribute("src",Zt.default,W),this._parseAndSetSrcsetAttributeOnImage(Zt,W,ue),x.setImageNaturalSizeAttributes(W)})},{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,x=c.plugins.get(ip),M=c.plugins.get(u2),E=c.plugins.get("ImageUtils"),F=this._uploadImageElements;return u.enqueueChange({isUndoable:!1},W=>{W.setAttribute("uploadStatus","reading",F.get(r.id))}),r.read().then(()=>{const W=r.upload(),dt=F.get(r.id);if(D_isSafari){const Zt=c.editing.mapper.toViewElement(dt),ue=E.findViewImgElement(Zt);c.editing.view.once("render",()=>{if(!ue.parent)return;const Ae=c.editing.view.domConverter.mapViewToDom(ue.parent);if(!Ae)return;const Ie=Ae.style.display;Ae.style.display="none",Ae._ckHack=Ae.offsetHeight,Ae.style.display=Ie})}return u.enqueueChange({isUndoable:!1},Zt=>{Zt.setAttribute("uploadStatus","uploading",dt)}),W}).then(W=>{u.enqueueChange({isUndoable:!1},dt=>{const Zt=F.get(r.id);dt.setAttribute("uploadStatus","complete",Zt),this.fire("uploadComplete",{data:W,imageElement:Zt})}),V()}).catch(W=>{if("error"!==r.status&&"aborted"!==r.status)throw W;"error"==r.status&&W&&M.showWarning(W,{title:_("Upload failed"),namespace:"upload"}),u.enqueueChange({isUndoable:!1},dt=>{dt.remove(F.get(r.id))}),V()});function V(){u.enqueueChange({isUndoable:!1},W=>{const dt=F.get(r.id);W.removeAttribute("uploadId",dt),W.removeAttribute("uploadStatus",dt),F.delete(r.id)}),x.destroyLoader(r)}}_parseAndSetSrcsetAttributeOnImage(r,c,u){let _=0;const x=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(""!=x){const M={srcset:x};c.hasAttribute("width")||c.hasAttribute("height")||(M.width=_),u.setAttributes(M,c)}}}function CA(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 $r=v(1568);No()($r.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var pC=v(3535);No()(pC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var yA=v(6270);No()(yA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class wA extends Za{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(x=>{const M=r.value,{setImageSizes:E=!0}=r;let F=_.getClosestSelectedImageElement(u.document.selection);M&&this.shouldConvertImageType(M,F)&&(this.editor.execute(_.isBlockImage(F)?"imageTypeInline":"imageTypeBlock",{setImageSizes:E}),F=_.getClosestSelectedImageElement(u.document.selection)),!M||this._styles.get(M).isDefault?x.removeAttribute("imageStyle",F):x.setAttribute("imageStyle",M,F),E&&_.setImageNaturalSizeAttributes(F)})}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,o6=(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)&&o6(m,c,r[c]);if(Tb)for(var c of Tb(r))ZA.call(r,c)&&o6(m,c,r[c]);return m};const{objectFullWidth:a6,objectInline:mC,objectLeft:Zb,objectRight:Mb,objectCenter:a3,objectBlockLeft:kb,objectBlockRight:Db}=gs,Kh={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:a6,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){Tt("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)?Kh[c]?Ub({},Kh[c]):{name:c}:function(u,_){const x=Ub({},_);for(const M in u)Object.prototype.hasOwnProperty.call(_,M)||(x[M]=u[M]);return x}(Kh[c.name],c)).icon&&(c.icon=Pb[c.icon]||c.icon),c;var c}).filter(r=>function(c,{isBlockPluginLoaded:u,isInlinePluginLoaded:_}){const{modelElements:x,name:M}=c;if(!(x&&x.length&&M))return MA({style:c}),!1;{const E=[u?"imageBlock":null,_?"imageInline":null];if(!x.some(F=>E.includes(F)))return Tt("image-style-missing-dependency",{style:c,missingPlugins:x.map(F=>"imageBlock"===F?"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:Kh,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"),x=u.plugins.has("ImageInlineEditing");u.config.define("image.styles",c(_,x)),this.normalizedStyles=r({configuredStyles:u.config.get("image.styles"),isBlockPluginLoaded:_,isInlinePluginLoaded:x}),this._setupConversion(_,x),this._setupPostFixer(),u.commands.add("imageStyle",new wA(u,this.normalizedStyles))}_setupConversion(r,c){const u=this.editor,_=u.model.schema,x=(M=this.normalizedStyles,(F,V,W)=>{if(!W.consumable.consume(V.item,F.name))return;const dt=kA(V.attributeNewValue,M),Zt=kA(V.attributeOldValue,M),ue=W.mapper.toViewElement(V.item),Ae=W.writer;Zt&&Ae.removeClass(Zt.className,ue),dt&&Ae.addClass(dt.className,ue)});var M;const E=function(F){const V={imageInline:F.filter(W=>!W.isDefault&&W.modelElements.includes("imageInline")),imageBlock:F.filter(W=>!W.isDefault&&W.modelElements.includes("imageBlock"))};return(W,dt,Zt)=>{if(!dt.modelRange)return;const ue=dt.viewItem,Ae=as(dt.modelRange.getItems());if(Ae&&Zt.schema.checkAttribute(Ae,"imageStyle"))for(const Ie of V[Ae.name])Zt.consumable.consume(ue,{classes:Ie.className})&&Zt.writer.setAttribute("imageStyle",Ie.name,Ae)}}(this.normalizedStyles);u.editing.downcastDispatcher.on("attribute:imageStyle",x),u.data.downcastDispatcher.on("attribute:imageStyle",x),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(x=>[x.name,x]));c.registerPostFixer(x=>{let M=!1;for(const E of c.differ.getChanges())if("insert"==E.type||"attribute"==E.type&&"imageStyle"==E.attributeKey){let F="insert"==E.type?E.position.nodeAfter:E.range.start.nodeAfter;if(F&&F.is("element","paragraph")&&F.childCount>0&&(F=F.getChild(0)),!u.isImage(F))continue;const V=F.getAttribute("imageStyle");if(!V)continue;const W=_.get(V);W&&W.modelElements.includes(F.name)||(x.removeAttribute("imageStyle",F),M=!0)}return M})}}var DA=v(5083);No()(DA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class sy 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 x of u)this._createButton(x);const _=PA([...c.filter(Wt),...r3.getDefaultDropdownDefinitions(r)],this.localizedDefaultStylesTitles);for(const x of _)this._createDropdown(x,u)}_createDropdown(r,c){const u=this.editor.ui.componentFactory;u.add(r.name,_=>{let x;const{defaultItem:M,items:E,title:F}=r,V=E.filter(ue=>c.find(({name:Ae})=>SA(Ae)===ue)).map(ue=>{const Ae=u.create(ue);return ue===M&&(x=Ae),Ae});E.length!==V.length&&r3.warnInvalidStyle({dropdown:r});const W=Lp(_,p4),dt=W.buttonView,Zt=dt.arrowView;return e_(W,V,{enableActiveItemFocusOnDropdownOpen:!0}),dt.set({label:LA(F,x.label),class:null,tooltip:!0}),Zt.unbind("label"),Zt.set({label:F}),dt.bind("icon").toMany(V,"isOn",(...ue)=>{const Ae=ue.findIndex(ku);return Ae<0?x.icon:V[Ae].icon}),dt.bind("label").toMany(V,"isOn",(...ue)=>{const Ae=ue.findIndex(ku);return LA(F,Ae<0?x.label:V[Ae].label)}),dt.bind("isOn").toMany(V,"isOn",(...ue)=>ue.some(ku)),dt.bind("class").toMany(V,"isOn",(...ue)=>ue.some(ku)?"ck-splitbutton_flatten":void 0),dt.on("execute",()=>{V.some(({isOn:ue})=>ue)?W.isOpen=!W.isOpen:x.fire("execute")}),W.bind("isEnabled").toMany(V,"isEnabled",(...ue)=>ue.some(ku)),this.listenTo(W,"execute",()=>{this.editor.editing.view.focus()}),W})}_createButton(r){const c=r.name;this.editor.ui.componentFactory.add(SA(c),u=>{const _=this.editor.commands.get("imageStyle"),x=new $o(u);return x.set({label:r.title,icon:r.icon,tooltip:!0,isToggleable:!0}),x.bind("isEnabled").to(_,"isEnabled"),x.bind("isOn").to(_,"value",M=>M===c),x.on("execute",this._executeCommand.bind(this,c)),x})}_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 r6 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,x="ltr"==c.uiLanguageDirection?Sb:OA;this._defineButton("indent",u("Increase indent"),_),this._defineButton("outdent",u("Decrease indent"),x)}_defineButton(r,c,u){const _=this.editor;_.ui.componentFactory.add(r,x=>{const M=_.commands.get(r),E=new $o(x);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 x=_.writer,M=x.document.selection;for(const E of this._definitions){const F=x.createAttributeElement("a",E.attributes,{priority:5});E.classes&&x.addClass(E.classes,F);for(const V in E.styles)x.setStyle(V,E.styles[V],F);x.setCustomProperty("link",!0,F),E.callback(u.attributeNewValue)?u.item.is("selection")?x.wrap(M.getFirstRange(),F):x.wrap(_.mapper.toViewRange(u.range),F):x.unwrap(_.mapper.toViewRange(u.range),F)}},{priority:"high"})}}getDispatcherForLinkedImage(){return r=>{r.on("attribute:linkHref:imageBlock",(c,u,{writer:_,mapper:x})=>{const M=x.toViewElement(u.item),E=Array.from(M.getChildren()).find(F=>F.is("element","a"));for(const F of this._definitions){const V=Kc(F.attributes);if(F.callback(u.attributeNewValue)){for(const[W,dt]of V)"class"===W?_.addClass(dt,E):_.setAttribute(W,dt,E);F.classes&&_.addClass(F.classes,E);for(const W in F.styles)_.setStyle(W,F.styles[W],E)}else{for(const[W,dt]of V)"class"===W?_.removeClass(dt,E):_.removeAttribute(W,E);F.classes&&_.removeClass(F.classes,E);for(const W in F.styles)_.removeStyle(W,E)}}})}}}var cy=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const c3=function(m){return cy.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}",Xh="[\\ud800-\\udbff][\\udc00-\\udfff]",yC="(?:"+Lb+"|"+Ob+")?",TC="[\\ufe0e\\ufe0f]?",ly=TC+yC+"(?:\\u200d(?:"+[CC,AC,Xh].join("|")+")"+TC+yC+")*",uy="(?:"+[CC+Lb+"?",Lb,AC,Xh,xC].join("|")+")",EA=RegExp(Ob+"(?="+Ob+")|"+uy+ly,"g");const dy=function(r){r=wg(r);var c=c3(r)?function(m){return c3(m)?function(m){return m.match(EA)||[]}(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 D2(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 l3(m){const r=String(m);return r.replace(UC,"").match(ZC)?r:"#"}function s6(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 c6(m){window.open(m,"_blank","noopener")}class Ib extends Za{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()||as(c.getSelectedBlocks());s6(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,x=[],M=[];for(const E in c)c[E]?x.push(E):M.push(E);u.change(E=>{if(_.isCollapsed){const F=_.getFirstPosition();if(_.hasAttribute("linkHref")){const V=DC(_);let W=gc(F,"linkHref",_.getAttribute("linkHref"),u);_.getAttribute("linkHref")===V&&(W=this._updateLinkContent(u,E,W,r)),E.setAttribute("linkHref",r,W),x.forEach(dt=>{E.setAttribute(dt,!0,W)}),M.forEach(dt=>{E.removeAttribute(dt,W)}),E.setSelection(E.createPositionAfter(W.end.nodeBefore))}else if(""!==r){const V=Kc(_.getAttributes());V.set("linkHref",r),x.forEach(dt=>{V.set(dt,!0)});const{end:W}=u.insertContent(E.createText(r,V),F);E.setSelection(W)}["linkHref",...x,...M].forEach(V=>{E.removeSelectionAttribute(V)})}else{const F=u.schema.getValidRanges(_.getRanges(),"linkHref"),V=[];for(const dt of _.getSelectedBlocks())u.schema.checkAttribute(dt,"linkHref")&&V.push(E.createRangeOn(dt));const W=V.slice();for(const dt of F)this._isRangeToUpdate(dt,V)&&W.push(dt);for(const dt of W){let Zt=dt;if(1===W.length){const ue=DC(_);_.getAttribute("linkHref")===ue&&(Zt=this._updateLinkContent(u,E,dt,r),E.setSelection(E.createSelection(Zt)))}E.setAttribute("linkHref",r,Zt),x.forEach(ue=>{E.setAttribute(ue,!0,Zt)}),M.forEach(ue=>{E.removeAttribute(ue,Zt)})}}})}_getDecoratorStateFromModel(r){const c=this.editor.model,u=c.document.selection,_=u.getSelectedElement();return s6(_,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 x=c.createText(_,{linkHref:_});return r.insertContent(x,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 Nb extends Za{refresh(){const r=this.editor.model,c=r.document.selection,u=c.getSelectedElement();this.isEnabled=s6(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(x=>{const M=u.isCollapsed?[gc(u.getFirstPosition(),"linkHref",u.getAttribute("linkHref"),c)]:c.schema.getValidRanges(u.getRanges(),"linkHref");for(const E of M)if(x.removeAttribute("linkHref",E),_)for(const F of _.manualDecorators)x.removeAttribute(F.id,E)})}}class PC extends(Ue()){constructor({id:r,label:c,attributes:u,classes:_,styles:x,defaultValue:M}){super(),this.id=r,this.set("value",void 0),this.defaultValue=M,this.label=c,this.attributes=u,this.classes=_,this.styles=x}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var Fb=v(9773);No()(Fb.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,l6=(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[k5,Gv,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(l3(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 Nb(r));const c=function(u,_){const x={"Open in a new tab":u("Open in a new tab"),Downloadable:u("Downloadable")};return _.forEach(M=>("label"in M&&x[M.label]&&(M.label=x[M.label]),M)),_}(r.t,function(u){const _=[];if(u)for(const[x,M]of Object.entries(u)){const E=Object.assign({},M,{id:`link${dy(x)}`});_.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(k5).registerAttribute("linkHref"),function(u,_,x,M){const E=u.editing.view,F=new Set;E.document.registerPostFixer(V=>{const W=u.model.document.selection;let dt=!1;if(W.hasAttribute(_)){const Zt=gc(W.getFirstPosition(),_,W.getAttribute(_),u.model),ue=u.editing.mapper.toViewRange(Zt);for(const Ae of ue.getItems())Ae.is("element","a")&&!Ae.hasClass(M)&&(V.addClass(M,Ae),F.add(Ae),dt=!0)}return dt}),u.conversion.for("editingDowncast").add(V=>{function W(){E.change(dt=>{for(const Zt of F.values())dt.removeClass(M,Zt),F.delete(Zt)})}V.on("insert",W,{priority:"highest"}),V.on("remove",W,{priority:"highest"}),V.on("attribute",W,{priority:"highest"}),V.on("selection",W,{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 x=new PC(_);u.add(x),c.conversion.for("downcast").attributeToElement({model:x.id,view:(M,{writer:E,schema:F},{item:V})=>{if((V.is("selection")||F.isInline(V))&&M){const W=E.createAttributeElement("a",x.attributes,{priority:5});x.classes&&E.addClass(x.classes,W);for(const dt in x.styles)E.setStyle(dt,x.styles[dt],W);return E.setCustomProperty("link",!0,W),W}}}),c.conversion.for("upcast").elementToAttribute({view:l6({name:"a"},x._createPattern()),model:{key:x.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 x=_.domTarget;if("a"!=x.tagName.toLowerCase()&&(x=x.closest("a")),!x)return;const M=x.getAttribute("href");M&&(u.stop(),_.preventDefault(),c6(M))},{context:"$capture"}),this.listenTo(c,"keydown",(u,_)=>{const x=r.commands.get("link").value;x&&_.keyCode===Ka.enter&&_.altKey&&(u.stop(),c6(x))})}_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(x=>{op(x,NC(r.schema))}))},{priority:"low"})}_enableClickingAfterLink(){const r=this.editor,c=r.model;r.editing.view.addObserver(C0);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 x=_.getFirstPosition(),M=gc(x,"linkHref",_.getAttribute("linkHref"),c);(x.isTouching(M.start)||x.isTouching(M.end))&&c.change(E=>{op(E,NC(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 x=r.model.document.selection;x.isCollapsed||(_?_=!1:IC(r)&&function(M){const E=M.document.selection,F=E.getFirstPosition(),V=E.getLastPosition(),W=F.nodeAfter;return!!(W&&W.is("$text")&&W.hasAttribute("linkHref"))&&(W===(V.textNode||V.nodeBefore)||gc(F,"linkHref",W.getAttribute("linkHref"),M).containsRange(M.createRange(F,V),!0))}(r.model)&&(u=x.getAttributes()))},{priority:"high"}),this.listenTo(r.model,"insertContent",(x,[M])=>{_=!1,IC(r)&&u&&(r.model.change(E=>{for(const[F,V]of u)E.setAttribute(F,V,M)}),u=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const r=this.editor,c=r.model,u=c.document.selection;let x=!1,M=!1;this.listenTo(r.editing.view.document,"delete",(E,F)=>{M="backward"===F.direction},{priority:"high"}),this.listenTo(c,"deleteContent",()=>{x=!1;const E=u.getFirstPosition(),F=u.getAttribute("linkHref");if(!F)return;const V=gc(E,"linkHref",F,c);x=V.containsPosition(E)||V.end.isEqual(E)},{priority:"high"}),this.listenTo(c,"deleteContent",()=>{M&&(M=!1,x||r.model.enqueueChange(E=>{op(E,NC(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",(_,x)=>{c.change(M=>{const E=M.createRangeIn(x.content);for(const F of E.getItems())if(F.hasAttribute("linkHref")){const V=r1(F.getAttribute("linkHref"),u);M.setAttribute("linkHref",V,F)}})})}}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 NC(m){return m.getDefinition("$text").allowAttributes.filter(r=>r.startsWith("link"))}var u3=v(7754);No()(u3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class NA extends oa{constructor(r,c){super(r),this.focusTracker=new rs,this.keystrokes=new $c,this._focusables=new Na;const u=r.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(u("Save"),gs.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(u("Cancel"),gs.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(c),this.children=this._createFormChildren(c.manualDecorators),this._focusCycler=new ul({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(),C({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,lf);return c.label=r("Link URL"),c}_createButton(r,c,u,_){const x=new $o(this.locale);return x.set({label:r,icon:c,tooltip:!0}),x.extendTemplate({attributes:{class:u}}),_&&x.delegate("execute").to(this,_),x}_createManualDecoratorSwitches(r){const c=this.createCollection();for(const u of r.manualDecorators){const _=new ys(this.locale);_.set({name:u.id,label:u.label,withText:!0}),_.bind("isOn").toMany([u,r],"value",(x,M)=>void 0===M&&void 0===x?!!u.defaultValue:!!x),_.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 Yb=v(2347);No()(Yb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class my extends oa{constructor(r){super(r),this.focusTracker=new rs,this.keystrokes=new $c,this._focusables=new Na;const c=r.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(c("Unlink"),'',"unlink"),this.editButtonView=this._createButton(c("Edit link"),gs.pencil,"edit"),this.set("href",void 0),this._focusCycler=new ul({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",_=>_&&l3(_)),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 qp="link-ui";class FA extends lo{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[F0]}static get pluginName(){return"LinkUI"}init(){const r=this.editor;r.editing.view.addObserver(s4),this._balloon=r.plugins.get(F0),this._createToolbarLinkButton(),this._enableBalloonActivators(),r.conversion.for("editingDowncast").markerToHighlight({model:qp,view:{classes:["ck-fake-link-selection"]}}),r.conversion.for("editingDowncast").markerToElement({model:qp,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",(x,M)=>{this._hideUI(),M()}),c.keystrokes.set(k1,(x,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:x}=_.urlInputView.fieldView.element,M=r1(x,u);r.execute("link",M,_.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(_,"cancel",()=>{this._closeFormView()}),_.keystrokes.set("Esc",(x,M)=>{this._closeFormView(),M()}),_}_createToolbarLinkButton(){const r=this.editor,c=r.commands.get("link"),u=r.t;r.ui.componentFactory.add("link",_=>{const x=new $o(_);return x.isEnabled=!0,x.label=u("Link"),x.icon='',x.keystroke=k1,x.tooltip=!0,x.isToggleable=!0,x.bind("isEnabled").to(c,"isEnabled"),x.bind("isOn").to(c,"value",M=>!!M),this.listenTo(x,"execute",()=>this._showUI(!0)),x})}_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 x=()=>{const E=this._getSelectedLinkElement(),F=M();u&&!E||!u&&F!==_?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),u=E,_=F};function M(){return c.selection.focus.getAncestors().reverse().find(E=>E.is("element"))}this.listenTo(r.ui,"update",x),this.listenTo(this._balloon,"change:visibleView",x)}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(qp)){const x=Array.from(this.editor.editing.mapper.markerNameToElements(qp)),M=r.createRange(r.createPositionBefore(x[0]),r.createPositionAfter(x[x.length-1]));_=r.domConverter.viewRangeToDom(M)}else _=()=>{const x=this._getSelectedLinkElement();return x?r.domConverter.mapViewToDom(x):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 u6(c.getFirstPosition());{const _=c.getFirstRange().getTrimmed(),x=u6(_.start),M=u6(_.end);return x&&x==M&&r.createRangeIn(x).getTrimmed().isEqual(_)?x:null}}_showFakeVisualSelection(){const r=this.editor.model;r.change(c=>{const u=r.document.selection.getFirstRange();if(r.markers.has(qp))c.updateMarker(qp,{range:u});else if(u.start.isAtEnd){const _=u.start.getLastMatchingPosition(({item:x})=>!r.schema.isContent(x),{boundaries:u});c.addMarker(qp,{usingOperation:!1,affectsData:!1,range:c.createRange(_,u.end)})}else c.addMarker(qp,{usingOperation:!1,affectsData:!1,range:u})})}_hideFakeVisualSelection(){const r=this.editor.model;r.markers.has(qp)&&r.change(c=>{c.removeMarker(qp)})}}function u6(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 d6 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 Xv(r.model,u=>{if(!((x=u).length>4&&" "===x[x.length-1]&&" "!==x[x.length-2]))return;var x;const _=p6(u.substr(0,u.length-1));return _?{url:_}:void 0});c.on("matched:data",(u,_)=>{const{batch:x,range:M,url:E}=_;if(!x.isTyping)return;const F=M.end.getShiftedBy(-1),V=F.getShiftedBy(-E.length),W=r.model.createRange(V,F);this._applyAutoLink(E,W)}),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 x=c.createRangeIn(_.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(x)})}_enableShiftEnterHandling(){const r=this.editor,c=r.model,u=r.commands.get("shiftEnter");u&&u.on("execute",()=>{const _=c.document.selection.getFirstPosition(),x=c.createRange(c.createPositionAt(_.parent,0),_.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(x)})}_checkAndApplyAutoLinkOnRange(r){const c=this.editor.model,{text:u,range:_}=S4(r,c),x=p6(u);if(x){const M=c.createRange(_.end.getShiftedBy(-x.length),_.end);this._applyAutoLink(x,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(x){const M=x.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(x=>{x.setAttribute("linkHref",r,c),u.enqueueChange(()=>{_.requestUndoOnBackspace()})})}}function p6(m){const r=_y.exec(m);return r?r[2]:null}var p3=v(111);No()(p3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Bb=v(5730);No()(Bb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var m3=v(4564);function zC(m,r,c,u){const _=r.parent,x=c.mapper,M=c.writer;let E=x.toViewPosition(u.createPositionBefore(m));const F=YC(m.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:m.getAttribute("listIndent")}),V=m.previousSibling;if(F&&F.getAttribute("listIndent")==m.getAttribute("listIndent")){const W=x.toViewElement(F);E=M.breakContainer(M.createPositionAfter(W))}else if(V&&"listItem"==V.name){E=x.toViewPosition(u.createPositionAt(V,"end"));const W=x.findMappedViewAncestor(E),dt=function(Zt){for(const ue of Zt.getChildren())if("ul"==ue.name||"ol"==ue.name)return ue;return null}(W);E=dt?M.createPositionBefore(dt):M.createPositionAt(W,"end")}else E=x.toViewPosition(u.createPositionBefore(m));if(E=jb(E),M.insert(E,_),V&&"listItem"==V.name){const W=x.toViewElement(V),dt=M.createRange(M.createPositionAt(W,0),E).getWalker({ignoreElementEnd:!0});for(const Zt of dt)if(Zt.item.is("element","li")){const ue=M.breakContainer(M.createPositionBefore(Zt.item)),Ae=Zt.item.parent,Ie=M.createPositionAt(r,"end");D1(M,Ie.nodeBefore,Ie.nodeAfter),M.move(M.createRangeOn(Ae),Ie),dt._position=ue}}else{const W=_.nextSibling;if(W&&(W.is("element","ul")||W.is("element","ol"))){let dt=null;for(const Zt of W.getChildren()){const ue=x.toModelElement(Zt);if(!(ue&&ue.getAttribute("listIndent")>m.getAttribute("listIndent")))break;dt=Zt}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 jb(m){return m.getLastMatchingPosition(r=>r.item.is("uiElement"))}function YC(m,r){const c=!!r.sameIndent,u=!!r.smallerIndent,_=r.listIndent;let x=m;for(;x&&"listItem"==x.name;){const M=x.getAttribute("listIndent");if(c&&_==M||u&&_>M)return x;x="forward"===r.direction?x.nextSibling:x.previousSibling}return null}function BC(m,r,c,u){m.ui.componentFactory.add(r,_=>{const x=m.commands.get(r),M=new $o(_);return M.set({label:c,icon:u,tooltip:!0,isToggleable:!0}),M.bind("isOn","isEnabled").to(x,"value","isEnabled"),M.on("execute",()=>{m.execute(r),m.editing.view.focus()}),M})}function VC(m,r){const c=[],u=m.parent,_={ignoreElementEnd:!1,startPosition:m,shallow:!0,direction:r},x=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")x)){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}No()(m3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const qA=["disc","circle","square"],jC=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function JC(){const m=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||m?0:zf.call(this)}class RA extends lo{static get pluginName(){return"ListUI"}init(){const r=this.editor.t;BC(this.editor,"numberedList",r("Numbered List"),''),BC(this.editor,"bulletedList",r("Bulleted List"),'')}}const GC={},fy={},hy={},HA=[{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 HA)GC[m]=c,fy[m]=r,r&&(hy[r]=m);var zA=v(4721);No()(zA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var QC=v(6082);No()(QC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var WC=v(2417);No()(WC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Gb extends Za{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 x=u[u.length-1];let M=x.nextSibling;for(;M&&"listItem"==M.name&&M.getAttribute("listIndent")>x.getAttribute("listIndent");)u.push(M),M=M.nextSibling;this._indentBy<0&&(u=u.reverse());for(const E of u){const F=E.getAttribute("listIndent")+this._indentBy;F<0?_.rename(E,"paragraph"):_.setAttribute("listIndent",F,E)}this.fire("_executeCleanup",u)})}_checkEnabled(){const r=as(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 h2 extends Za{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=>_6(M,c.schema)),x=void 0!==r.forceValue?!r.forceValue:this.value;c.change(M=>{if(x){let E=_[_.length-1].nextSibling,F=Number.POSITIVE_INFINITY,V=[];for(;E&&"listItem"==E.name&&0!==E.getAttribute("listIndent");){const W=E.getAttribute("listIndent");W=c;)x>_.getAttribute("listIndent")&&(x=_.getAttribute("listIndent")),_.getAttribute("listIndent")==x&&m[r?"unshift":"push"](_),_=_[r?"previousSibling":"nextSibling"]}}function _6(m,r){return r.checkChild(m.parent,"listItem")&&!r.isObject(m)}class Wb extends lo{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(r){return qA.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 x=c.change(M=>M.createPositionAt(_,0));return[...VC(x,"backward"),...VC(x,"forward")]}).flat();return u=[...new Set(u)],u}(r)}getSiblingNodes(r,c){return VC(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 x=c.item;zC(x,function HC(m,r){const c=r.mapper,u=r.writer,_="numbered"==m.getAttribute("listType")?"ol":"ul",x=function(E){const F=E.createContainerElement("li");return F.getFillerOffset=JC,F}(u),M=u.createContainerElement(_,null);return u.insert(u.createPositionAt(M,0),x),c.bindElements(m,x),x}(x,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)},yf=(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)},f3=(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,x=[];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 F=_.remove(_.createRange(M,E));x.push(F)}u=_.createPositionAfter(u.parent)}if(x.length>0){for(let M=0;M0){const F=D1(_,E,E.nextSibling);F&&F.parent==E&&u.offset--}}D1(_,u.nodeBefore,u.nodeAfter)}}},gy=(m,r,c)=>{const u=c.mapper.toViewPosition(r.position);D1(c.writer,u.nodeBefore,u.nodeAfter)},by=(m,r,c)=>{if(c.consumable.consume(r.viewItem,{name:!0})){const u=c.writer,_=u.createElement("listItem"),x=function(F){let V=0,W=F.parent;for(;W;){if(W.is("element","li"))V++;else{const dt=W.previousSibling;dt&&dt.is("element","li")&&V++}W=W.parent}return V}(r.viewItem);if(u.setAttribute("listIndent",x,_),u.setAttribute("listType",r.viewItem.parent&&"ol"==r.viewItem.parent.name?"numbered":"bulleted",_),!c.safeInsert(_,r.modelCursor))return;const E=function(F,V,W){const{writer:dt,schema:Zt}=W;let ue=dt.createPositionAfter(F);for(const Ae of V)if("ul"==Ae.name||"ol"==Ae.name)ue=W.convertItem(Ae,ue).modelCursor;else{const Ie=W.convertItem(Ae,dt.createPositionAt(F,"end")),ln=Ie.modelRange.start.nodeAfter;ln&&ln.is("element")&&!Zt.checkChild(F,ln.name)&&(F=Ie.modelCursor.parent.is("element","listItem")?Ie.modelCursor.parent:jA(Ie.modelCursor),ue=dt.createPositionAfter(F))}return ue}(_,r.viewItem.getChildren(),c);r.modelRange=u.createRange(r.modelCursor,E),c.updateConversionResult(_,r)}},BA=(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")&&!tg(_)&&_._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 x of u)_&&!tg(x)&&x._remove(),tg(x)&&(_=!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),x=_.getAncestors().find(tg),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==x){c.viewPosition=E.nextPosition;break}}}}}const VA=function(m,[r,c]){let _,x=r.is("documentFragment")?r.getChild(0):r;if(_=c?this.createSelection(c):this.document.selection,x&&x.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 F=E.getAttribute("listIndent");if(F>0)for(;x&&x.is("element","listItem");)x._setAttribute("listIndent",x.getAttribute("listIndent")+F),x=x.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,_,x){const M=YC(r.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:m}),E=_.mapper,F=_.writer,V=M?M.getAttribute("listIndent"):null;let W;if(M)if(V==m){const dt=E.toViewElement(M).parent;W=F.createPositionAfter(dt)}else{const dt=x.createPositionAt(M,"end");W=E.toViewPosition(dt)}else W=c;W=jb(W);for(const dt of[...u.getChildren()])tg(dt)&&(W=F.move(F.createRangeOn(dt),W).end,D1(F,dt,dt.nextSibling),D1(F,dt.previousSibling,dt))}function tg(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,F){const V=E.document.differ.getChanges(),W=new Map;let dt=!1;for(const Ie of V)if("insert"==Ie.type&&"listItem"==Ie.name)Zt(Ie.position);else if("insert"==Ie.type&&"listItem"!=Ie.name){if("$text"!=Ie.name){const ln=Ie.position.nodeAfter;ln.hasAttribute("listIndent")&&(F.removeAttribute("listIndent",ln),dt=!0),ln.hasAttribute("listType")&&(F.removeAttribute("listType",ln),dt=!0),ln.hasAttribute("listStyle")&&(F.removeAttribute("listStyle",ln),dt=!0),ln.hasAttribute("listReversed")&&(F.removeAttribute("listReversed",ln),dt=!0),ln.hasAttribute("listStart")&&(F.removeAttribute("listStart",ln),dt=!0);for(const Dn of Array.from(E.createRangeIn(ln)).filter(di=>di.item.is("element","listItem")))Zt(Dn.previousPosition)}Zt(Ie.position.getShiftedBy(Ie.length))}else"remove"==Ie.type&&"listItem"==Ie.name?Zt(Ie.position):("attribute"==Ie.type&&"listIndent"==Ie.attributeKey||"attribute"==Ie.type&&"listType"==Ie.attributeKey)&&Zt(Ie.range.start);for(const Ie of W.values())ue(Ie),Ae(Ie);return dt;function Zt(Ie){const ln=Ie.nodeBefore;if(ln&&ln.is("element","listItem")){let Dn=ln;if(W.has(Dn))return;for(let di=Dn.previousSibling;di&&di.is("element","listItem");di=Dn.previousSibling)if(Dn=di,W.has(Dn))return;W.set(ln,Dn)}else{const Dn=Ie.nodeAfter;Dn&&Dn.is("element","listItem")&&W.set(Dn,Dn)}}function ue(Ie){let ln=0,Dn=null;for(;Ie&&Ie.is("element","listItem");){const di=Ie.getAttribute("listIndent");if(di>ln){let Ri;null===Dn?(Dn=di-ln,Ri=ln):(Dn>di&&(Dn=di),Ri=di-Dn),F.setAttribute("listIndent",Ri,Ie),dt=!0}else Dn=null,ln=Ie.getAttribute("listIndent")+1;Ie=Ie.nextSibling}}function Ae(Ie){let ln=[],Dn=null;for(;Ie&&Ie.is("element","listItem");){const di=Ie.getAttribute("listIndent");if(Dn&&Dn.getAttribute("listIndent")>di&&(ln=ln.slice(0,di+1)),0!=di)if(ln[di]){const Ri=ln[di];Ie.getAttribute("listType")!=Ri&&(F.setAttribute("listType",Ri,Ie),dt=!0)}else ln[di]=Ie.getAttribute("listType");Dn=Ie,Ie=Ie.nextSibling}}}(r.model,M)),u.mapper.registerViewToModelLength("li",f6),c.mapper.registerViewToModelLength("li",f6),u.mapper.on("modelToViewPosition",Xb(u.view)),u.mapper.on("viewToModelPosition",(_=r.model,(M,E)=>{const F=E.viewPosition,V=F.parent,W=E.mapper;if("ul"==V.name||"ol"==V.name){if(F.isAtEnd){const dt=W.toModelElement(F.nodeBefore),Zt=W.getModelLength(F.nodeBefore);E.modelPosition=_.createPositionBefore(dt).getShiftedBy(Zt)}else{const dt=W.toModelElement(F.nodeAfter);E.modelPosition=_.createPositionBefore(dt)}M.stop()}else if("li"==V.name&&F.nodeBefore&&("ul"==F.nodeBefore.name||"ol"==F.nodeBefore.name)){const dt=W.toModelElement(V);let Zt=1,ue=F.nodeBefore;for(;ue&&tg(ue);)Zt+=W.getModelLength(ue),ue=ue.previousSibling;E.modelPosition=_.createPositionBefore(dt).getShiftedBy(Zt),M.stop()}})),c.mapper.on("modelToViewPosition",Xb(u.view)),r.conversion.for("editingDowncast").add(M=>{var E;M.on("insert",f3,{priority:"high"}),M.on("insert:listItem",$C(r.model)),M.on("attribute:listType:listItem",$b,{priority:"high"}),M.on("attribute:listType:listItem",yf,{priority:"low"}),M.on("attribute:listIndent:listItem",(E=r.model,(F,V,W)=>{if(!W.consumable.consume(V.item,"attribute:listIndent"))return;const dt=W.mapper.toViewElement(V.item),Zt=W.writer;Zt.breakContainer(Zt.createPositionBefore(dt)),Zt.breakContainer(Zt.createPositionAfter(dt));const ue=dt.parent,Ae=ue.previousSibling,Ie=Zt.createRangeOn(ue);Zt.remove(Ie),Ae&&Ae.nextSibling&&D1(Zt,Ae,Ae.nextSibling),KC(V.attributeOldValue+1,V.range.start,Ie.start,dt,W,E),zC(V.item,dt,W,E);for(const ln of V.item.getChildren())W.consumable.consume(ln,"insert")})),M.on("remove:listItem",function(E){return(F,V,W)=>{const dt=W.mapper.toViewPosition(V.position).getLastMatchingPosition(Dn=>!Dn.item.is("element","li")).nodeAfter,Zt=W.writer;Zt.breakContainer(Zt.createPositionBefore(dt)),Zt.breakContainer(Zt.createPositionAfter(dt));const ue=dt.parent,Ae=ue.previousSibling,Ie=Zt.createRangeOn(ue),ln=Zt.remove(Ie);Ae&&Ae.nextSibling&&D1(Zt,Ae,Ae.nextSibling),KC(W.mapper.toModelElement(dt).getAttribute("listIndent")+1,V.position,Ie.start,dt,W,E);for(const Dn of Zt.createRangeIn(ln).getItems())W.mapper.unbindViewElement(Dn);F.stop()}}(r.model)),M.on("remove",gy,{priority:"low"})}),r.conversion.for("dataDowncast").add(M=>{M.on("insert",f3,{priority:"high"}),M.on("insert:listItem",$C(r.model))}),r.conversion.for("upcast").add(M=>{M.on("element:ul",BA,{priority:"high"}),M.on("element:ol",BA,{priority:"high"}),M.on("element:li",Kb,{priority:"high"}),M.on("element:li",by)}),r.model.on("insertContent",VA,{priority:"high"}),r.commands.add("numberedList",new h2(r,"numbered")),r.commands.add("bulletedList",new h2(r,"bulleted")),r.commands.add("indentList",new Gb(r,"forward")),r.commands.add("outdentList",new Gb(r,"backward"));const x=u.view.document;this.listenTo(x,"enter",(M,E)=>{const F=this.editor.model.document,V=F.selection.getLastPosition().parent;F.selection.isCollapsed&&"listItem"==V.name&&V.isEmpty&&(this.editor.execute("outdentList"),E.preventDefault(),M.stop())},{context:"li"}),this.listenTo(x,"delete",(M,E)=>{if("backward"!==E.direction)return;const F=this.editor.model.document.selection;if(!F.isCollapsed)return;const V=F.getFirstPosition();if(!V.isAtStart)return;const W=V.parent;"listItem"===W.name&&(W.previousSibling&&"listItem"===W.previousSibling.name||(this.editor.execute("outdentList"),E.preventDefault(),M.stop()))},{context:"li"}),this.listenTo(r.editing.view.document,"tab",(M,E)=>{const F=E.shiftKey?"outdentList":"indentList";this.editor.commands.get(F).isEnabled&&(r.execute(F),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 f6(m){let r=1;for(const c of m.getChildren())if("ul"==c.name||"ol"==c.name)for(const u of c.getChildren())r+=f6(u);return r}tc("Ctrl+Enter");var ev=v(1199);function XC(m,r){const c=(u,_,x)=>{if(!x.consumable.consume(_.item,u.name))return;const M=_.attributeNewValue,E=x.writer,F=x.mapper.toViewElement(_.item),V=[...F.getChildren()].find(dt=>dt.getCustomProperty("media-content"));E.remove(V);const W=m.getMediaViewElement(E,M,r);E.insert(E.createPositionAt(F,0),W)};return u=>{u.on("attribute:url:media",c)}}function h6(m,r,c,u){return m.createContainerElement("figure",{class:"media"},[r.getMediaViewElement(m,c,u),m.createSlot()])}function h3(m){const r=m.getSelectedElement();return r&&r.is("element","media")?r:null}function GA(m,r,c,u){m.change(_=>{const x=_.createElement("media",{url:r});m.insertObject(x,c,null,{setSelection:"on",findOptimalPosition:u?"auto":void 0})})}No()(ev.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),tc("Ctrl+Enter");class t8 extends Za{refresh(){const r=this.editor.model,c=r.document.selection,u=h3(c);this.value=u?u.getAttribute("url"):void 0,this.isEnabled=function(_){const x=_.getSelectedElement();return!!x&&"media"===x.name}(c)||function(_,x){let E=F4(_,x).start.parent;return E.isEmpty&&!x.schema.isLimit(E)&&(E=E.parent),x.schema.checkChild(E,"media")}(c,r)}execute(r){const c=this.editor.model,u=c.document.selection,_=h3(u);_?c.change(x=>{x.setAttribute("url",r,_)}):GA(c,r,u,!0)}}class g3{constructor(r,c){const u=c.providers,_=c.extraProviders||[],x=new Set(c.removeProviders),M=u.concat(_).filter(E=>{const F=E.name;return F?!x.has(F):(Tt("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 x of _){const M=this._getUrlMatches(r,x);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 x=this._getPreviewHtml(c);_=r.createRawElement("div",u,(M,E)=>{E.setContentOf(M,x)})}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);No()(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 g3(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,x=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:(F,{writer:V})=>{const W=F.getAttribute("url");return h6(V,E,W,{elementName:M,renderMediaPreview:!!W&&x})}}),_.for("dataDowncast").add(XC(E,{elementName:M,renderMediaPreview:x})),_.for("editingDowncast").elementToStructure({model:"media",view:(F,{writer:V})=>{const W=F.getAttribute("url");return dt=h6(V,E,W,{elementName:M,renderForEditingView:!0}),Zt=V,ue=u("media widget"),Zt.setCustomProperty("media",!0,dt),ep(dt,Zt,{label:ue});var dt,Zt,ue}}),_.for("editingDowncast").add(XC(E,{elementName:M,renderForEditingView:!0})),_.for("upcast").elementToElement({view:F=>["oembed",M].includes(F.name)&&F.getAttribute("url")?{name:!0}:null,model:(F,{writer:V})=>{const W=F.getAttribute("url");return E.hasMedia(W)?V.createElement("media",{url:W}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(F,{writer:V})=>{const W=F.getAttribute("data-oembed-url");return E.hasMedia(W)?V.createElement("media",{url:W}):null}}).add(F=>{F.on("element:figure",(V,W,dt)=>{if(!dt.consumable.consume(W.viewItem,{name:!0,classes:"media"}))return;const{modelRange:Zt,modelCursor:ue}=dt.convertChildren(W.viewItem,W.modelCursor);W.modelRange=Zt,W.modelCursor=ue,as(Zt.getItems())||dt.consumable.revert(W.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[yx,r_,Lx]}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(),x=el.fromPosition(_.start);x.stickiness="toPrevious";const M=el.fromPosition(_.end);M.stickiness="toNext",c.once("change:data",()=>{this._embedMediaBetweenPositions(x,M),x.detach(),M.detach()},{priority:"high"})}),r.commands.get("undo").on("execute",()=>{this._timeoutId&&(Mt.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,x=new Xu(r,c),M=x.getWalker({ignoreElementEnd:!0});let E="";for(const F of M)F.item.is("$textProxy")&&(E+=F.item.data);E=E.trim(),E.match(QA)&&_.hasMedia(E)&&u.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=el.fromPosition(r),this._timeoutId=Mt.window.setTimeout(()=>{u.model.change(F=>{this._timeoutId=null,F.remove(x),x.detach();let V=null;"$graveyard"!==this._positionToInsert.root.rootName&&(V=this._positionToInsert),GA(u.model,E,V,!1),this._positionToInsert.detach(),this._positionToInsert=null}),u.plugins.get(r_).requestUndoOnBackspace()},100)):x.detach()}}var i8=v(9292);No()(i8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Cy extends oa{constructor(r,c){super(c);const u=c.t;this.focusTracker=new rs,this.keystrokes=new $c,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(u("Save"),gs.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",_=>!!_),this.cancelButtonView=this._createButton(u("Cancel"),gs.cancel,"ck-button-cancel","cancel"),this._focusables=new Na,this._focusCycler=new ul({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(),C({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,lf),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 x=new $o(this.locale);return x.set({label:r,icon:c,tooltip:!0}),x.extendTemplate({attributes:{class:u}}),_&&x.delegate("execute").to(this,_),x}}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 _=Lp(u);return this._setUpDropdown(_,c),_})}_setUpDropdown(r,c){const u=this.editor,_=u.t,x=r.buttonView,M=u.plugins.get(nv).registry;r.once("change:isOpen",()=>{const E=new(A(Cy))((F=u.t,V=M,[W=>{if(!W.url.length)return F("The URL must not be empty.")},W=>{if(!V.hasMedia(W.url))return F("This media URL is not supported.")}]),u.locale);var F,V;r.panelView.children.add(E),x.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),x.set({label:_("Insert media"),icon:'',tooltip:!0})}}var KA=v(4652);function yy(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),x=u.getChildIndex(r)+1;return c.insertChild(x,_,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),x=c.match(/\s{0,100}level(\d+)/i);u&&_&&x&&(r.id=u[2],r.order=_[1],r.indent=parseInt(x[1]))}return r}function wy(m){return btoa(m.match(/\w{2}/g).map(r=>String.fromCharCode(parseInt(r,16))).join(""))}No()(KA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Uy=//i,h=/xmlns:o="urn:schemas-microsoft-com/i;class g{constructor(r){this.document=r}isActive(r){return Uy.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 F=E.createRangeIn(M),V=new ps({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),W=[];for(const dt of F)if("elementStart"===dt.type&&V.match(dt.item)){const Zt=t7(dt.item);W.push({element:dt.item,id:Zt.id,order:Zt.order,indent:Zt.indent})}return W}(m,c);if(!u.length)return;let _=null,x=1;u.forEach((M,E)=>{const F=function(Ae,Ie){if(!Ae)return!0;if(Ae.id!==Ie.id)return Ie.indent-Ae.indent!=1;const ln=Ie.element.previousSibling;return!ln||!((Dn=ln).is("element","ol")||Dn.is("element","ul"));var Dn}(u[E-1],M),W=(Zt=M,(dt=F?null:u[E-1])?Zt.indent-dt.indent:Zt.indent-1);var dt,Zt;if(F&&(_=null,x=1),!_||0!==W){const Ae=function(Ie,ln){const di=/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${Ie.id}:level${Ie.indent}\\s*({[^}]*)`,"gi").exec(ln);let Da="decimal",ws="ol",Kr=null;if(Go&&Go[1]){const Il=di.exec(Go[1]);if(Il&&Il[1]&&(Da=Il[1].trim(),ws="bullet"!==Da&&"image"!==Da?"ol":"ul"),"bullet"===Da){const fl=function(w6){const b2=function(wf){if(wf.getChild(0).is("$text"))return null;for(const v2 of wf.getChildren()){if(!v2.is("element","span"))continue;const C3=v2.getChild(0);if(C3)return C3.is("$text")?C3:C3.getChild(0)}return null}(w6);if(!b2)return null;const Rp=b2._data;return"o"===Rp?"circle":"\xb7"===Rp?"disc":"\xa7"===Rp?"square":null}(Ie.element);fl&&(Da=fl)}else{const fl=Ri.exec(Go[1]);fl&&fl[1]&&(Kr=parseInt(fl[1]))}}return{type:ws,startIndex:Kr,style:yy(Da)}}(M,r);if(_)if(M.indent>x){const Ie=_.getChild(_.childCount-1),ln=Ie.getChild(Ie.childCount-1);_=XA(Ae,ln,c),x+=1}else M.indentx.indexOf(Ae)>-1)?W.push(Zt):Zt.getAttribute("src")||W.push(Zt)}for(const dt of W)E.remove(dt)})(u,m,c),function(x,M,E){const F=E.createRangeIn(M),V=[];for(const Zt of F)if("elementStart"==Zt.type&&Zt.item.is("element","v:shape")){const ue=Zt.item.getAttribute("id");if(x.includes(ue))continue;W(Zt.item.parent.getChildren(),ue)||V.push(Zt.item)}for(const Zt of V){const ue={src:dt(Zt)};Zt.hasAttribute("alt")&&(ue.alt=Zt.getAttribute("alt"));const Ae=E.createElement("img",ue);E.insertChild(Zt.index+1,Ae,Zt.parent)}function W(Zt,ue){for(const Ae of Zt)if(Ae.is("element")&&("img"==Ae.name&&Ae.getAttribute("v:shapes")==ue||W(Ae.getChildren(),ue)))return!0;return!1}function dt(Zt){for(const ue of Zt.getChildren())if(ue.is("element")&&ue.getAttribute("src"))return ue.getAttribute("src")}}(u,m,c),function(x,M){const E=M.createRangeIn(x),F=new ps({name:/v:(.+)/}),V=[];for(const W of E)"elementStart"==W.type&&F.match(W.item)&&V.push(W.item);for(const W of V)M.remove(W)}(m,c);const _=function(x,M){const E=M.createRangeIn(x),F=new ps({name:"img"}),V=[];for(const W of E)W.item.is("element")&&F.match(W.item)&&W.item.getAttribute("src").startsWith("file://")&&V.push(W.item);return V}(m,c);_.length&&function(x,M,E){if(x.length===M.length)for(let F=0;FM.is("element")&&!u.includes(M.name)&&!_.includes(M.name),{direction:r}),"forward"==r?x.nodeAfter:x.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 j{constructor(r){this.document=r}isActive(r){return q.test(r)}execute(r){const c=new W1(this.document),{body:u}=r._parsedData;(function(_,x){for(const M of _.getChildren())if(M.is("element","b")&&"normal"===M.getStyle("font-weight")){const E=_.getChildIndex(M);x.remove(M),x.insertChild(E,M.getChildren(),_)}})(u,c),function(_,x){for(const M of x.createRangeIn(_)){const E=M.item;if(E.is("element","li")){const F=E.getChild(0);F&&F.is("element","p")&&x.unwrapElement(F)}}}(u,c),function(_,x){const M=new Xp(x.document.stylesProcessor),E=new F_(M,{renderingMode:"data"}),F=E.blockElements,V=E.inlineObjectElements,W=[];for(const dt of x.createRangeIn(_)){const Zt=dt.item;if(Zt.is("element","br")){const ue=w(Zt,"forward",x,{blockElements:F,inlineObjectElements:V}),Ae=w(Zt,"backward",x,{blockElements:F,inlineObjectElements:V}),Ie=O(ue,F);(O(Ae,F)||Ie)&&W.push(Zt)}}for(const dt of W)dt.hasClass("Apple-interchange-newline")?x.remove(dt):x.replace(dt,x.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 je(m,r,c,u,_=1){null!=r&&null!=_&&r>_?u.setAttribute(m,r,c):u.removeAttribute(m,c)}function xn(m,r,c={}){const u=m.createElement("tableCell",c);return m.insertElement("paragraph",u),m.insert(u,r),u}function ai(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 x=u.modelRange.start.nodeAfter,M=_.createPositionAt(x,0);if(u.viewItem.isEmpty)return void _.insertElement("paragraph",M);const E=Array.from(x.getChildren());if(E.every(F=>F.is("element","$marker"))){const F=_.createElement("paragraph");_.insert(F,_.createPositionAt(x,0));for(const V of E)_.move(_.createRangeOn(V),_.createPositionAt(F,"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,x),this._shouldSkipSlot()||(c=this._formatOutValue(_)),this._nextCellAtColumn=this._column+x}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 x=this._row;x0&&!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,x=u.createContainerElement("table",null,[]),M=u.createContainerElement("figure",{class:"table"},x);_>0&&u.insert(u.createPositionAt(x,"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:F}of r.additionalSlots)u.insert(u.createPositionAt(x,E),u.createSlot(F));return u.insert(u.createPositionAt(x,"after"),u.createSlot(E=>!E.is("element","tableRow")&&!r.additionalSlots.some(({filter:F})=>F(E)))),r.asWidget?((F=u).setCustomProperty("table",!0,E=M),ep(E,F,{hasSelectionHandle:!0})):M;var E,F}}function oo(m={}){return(r,{writer:c})=>{const u=r.parent,_=u.parent,x=_.getChildIndex(u),M=new ro(_,{row:x}),E=_.getAttribute("headingRows")||0,F=_.getAttribute("headingColumns")||0;let V=null;for(const W of M)if(W.cell==r){const dt=W.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 Za{refresh(){const r=this.editor.model;this.isEnabled=function(_,x){const M=_.getFirstPosition().parent;return x.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"),x=c.config.get("table.defaultHeadings.rows"),M=c.config.get("table.defaultHeadings.columns");void 0===r.headingRows&&x&&(r.headingRows=x),void 0===r.headingColumns&&M&&(r.headingColumns=M),u.change(E=>{const F=_.createTable(E,r);u.insertObject(F,null,null,{findOptimalPosition:"auto"}),E.setSelection(E.createPositionAt(F.getNodeByPath([0,0,0]),0))})}}class g2 extends Za{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,x=u.getSelectionAffectedTableCells(c),M=u.getRowIndexes(x),E=_?M.first:M.last,F=x[0].findAncestor("table");u.insertRows(F,{at:_?E:E+1,copyStructureFromAbove:!_})}}class g6 extends Za{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,x=u.getSelectionAffectedTableCells(c),M=u.getColumnIndexes(x),E=_?M.first:M.last,F=x[0].findAncestor("table");u.insertColumns(F,{columns:1,at:_?E:E+1})}}class b3 extends Za{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:x,endColumn:M}=r,E=c.createElement("table"),F=x-u+1;for(let W=0;W0&&je("headingRows",Ie-Zt,W,Ae,0);const ln=parseInt(dt.getAttribute("headingColumns")||"0");ln>0&&je("headingColumns",ln-ue,W,Ae,0)}(E,m,u,_,c),E}function v6(m,r,c=0){const u=[],_=new ro(m,{startRow:c,endRow:r-1});for(const x of _){const{row:M,cellHeight:E}=x;M1&&(E.rowspan=F);const V=parseInt(m.getAttribute("colspan")||"1");V>1&&(E.colspan=V);const W=x+M,dt=[...new ro(_,{startRow:x,endRow:W,includeAllSlots:!0})];let Zt,ue=null;for(const Ae of dt){const{row:Ie,column:ln,cell:Dn}=Ae;Dn===m&&void 0===Zt&&(Zt=ln),void 0!==Zt&&Zt===ln&&Ie===W&&(ue=xn(c,Ae.getPositionBefore(),E))}return je("rowspan",M,m,c),ue}function C6(m,r){const c=[],u=new ro(m);for(const _ of u){const{column:x,cellWidth:M}=_;x1&&(x.colspan=M);const E=parseInt(m.getAttribute("rowspan")||"1");E>1&&(x.rowspan=E);const F=xn(u,u.createPositionAfter(m),x);return je("colspan",_,m,u),F}function v3(m,r,c,u,_,x){const M=parseInt(m.getAttribute("colspan")||"1"),E=parseInt(m.getAttribute("rowspan")||"1");c+M-1>_&&je("colspan",_-c+1,m,x,1),r+E-1>u&&je("rowspan",u-r+1,m,x,1)}function x3(m,r){const c=r.getColumns(m),u=new Array(c).fill(0);for(const{column:x}of new ro(m))u[x]++;const _=u.reduce((x,M,E)=>M?x:[...x,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){x3(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 Zy(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 Za{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,x=this.direction;r.change(M=>{const E="right"==x||"down"==x,F=E?u:_,V=E?_:u,W=V.parent;var Ie,ln,Dn;ln=F,Dn=M,My(Ie=V)||(My(ln)&&Dn.remove(Dn.createRangeIn(ln)),Dn.move(Dn.createRangeIn(Ie),Dn.createPositionAt(ln,"end"))),Dn.remove(Ie);const dt=this.isHorizontal?"colspan":"rowspan",Zt=parseInt(u.getAttribute(dt)||"1"),ue=parseInt(_.getAttribute(dt)||"1");M.setAttribute(dt,Zt+ue,F),M.setSelection(M.createRangeIn(F));const Ae=this.editor.plugins.get("TableUtils");e7(W.findAncestor("table"),Ae)})}_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,F,V){const Zt="right"==F?E.nextSibling:E.previousSibling,ue=(E.parent.parent.getAttribute("headingColumns")||0)>0;if(!Zt)return;const Ae="right"==F?E:Zt,Ie="right"==F?Zt:E,{column:ln}=V.getCellLocation(Ae),{column:Dn}=V.getCellLocation(Ie),di=parseInt(Ae.getAttribute("colspan")||"1"),Ri=ai(V,Ae),Go=ai(V,Ie);return ue&&Ri!=Go?void 0:ln+di===Dn?Zt:void 0}(u,this.direction,c):function(E,F,V){const W=E.parent,dt=W.parent,Zt=dt.getChildIndex(W);if("down"==F&&Zt===V.getRows(dt)-1||"up"==F&&0===Zt)return null;const ue=parseInt(E.getAttribute("rowspan")||"1"),Ae=dt.getAttribute("headingRows")||0;if(Ae&&("down"==F&&Zt+ue===Ae||"up"==F&&Zt===Ae))return null;const Dn=parseInt(E.getAttribute("rowspan")||"1"),di="down"==F?Zt+Dn:Zt,Ri=[...new ro(dt,{endRow:di})],Da=Ri.find(Kr=>Kr.cell===E).column,ws=Ri.find(({row:Kr,cellHeight:Il,column:fl})=>fl===Da&&("down"==F?Kr===di:di===Kr+Il));return ws&&ws.cell?ws.cell:null}(u,this.direction,c);if(!_)return;const x=this.isHorizontal?"rowspan":"colspan",M=parseInt(u.getAttribute(x)||"1");return parseInt(_.getAttribute(x)||"1")===M?_:void 0}}function My(m){const r=m.getChild(0);return 1==m.childCount&&r.is("element","paragraph")&&r.isEmpty}class ky extends Za{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"),x=r.getRows(_)-1,M=r.getRowIndexes(c);this.isEnabled=!(0===M.first&&M.last===x)}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),x=u[0],M=x.findAncestor("table"),E=c.getCellLocation(x).column;r.change(F=>{c.removeRows(M,{at:_.first,rows:_.last-_.first+1});const W=function(dt,Zt,ue,Ae){const Ie=dt.getChild(Math.min(Zt,Ae-1));let ln=Ie.getChild(0),Dn=0;for(const di of Ie.getChildren()){if(Dn>ue)return ln;ln=di,Dn+=parseInt(di.getAttribute("colspan")||"1")}return ln}(M,_.first,E,c.getRows(M));F.setSelection(F.createPositionAt(W,0))})}}class Dy extends Za{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"),x=r.getColumns(_),{first:M,last:E}=r.getColumnIndexes(c);this.isEnabled=E-MF.cell===c).column,last:x.find(F=>F.cell===u).column},E=(F=x,V=c,W=u,dt=M,parseInt(W.getAttribute("colspan")||"1")>1?W:V.previousSibling||W.nextSibling?W.nextSibling||V.previousSibling:dt.first?F.reverse().find(({column:ue})=>ueue>dt.last).cell);var F,V,W,dt;this.editor.model.change(F=>{r.removeColumns(_,{at:M.first,columns:M.last-M.first+1}),F.setSelection(F.createPositionAt(E,0))})}}class JT extends Za{refresh(){const u=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection),_=u.length>0;this.isEnabled=_,this.value=_&&u.every(x=>this._isInHeading(x,x.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),x=_[0].findAncestor("table"),{first:M,last:E}=c.getRowIndexes(_),F=this.value?M:E+1,V=x.getAttribute("headingRows")||0;u.change(W=>{if(F){const dt=v6(x,F,F>V?V:0);for(const{cell:Zt}of dt)x6(Zt,F,W)}je("headingRows",F,x,W,0)})}_isInHeading(r,c){const u=parseInt(c.getAttribute("headingRows")||"0");return!!u&&r.parent.index0;this.isEnabled=_,this.value=_&&u.every(x=>ai(c,x))}execute(r={}){if(r.forceValue===this.value)return;const c=this.editor.plugins.get("TableUtils"),u=this.editor.model,_=c.getSelectionAffectedTableCells(u.document.selection),x=_[0].findAncestor("table"),{first:M,last:E}=c.getColumnIndexes(_),F=this.value?M:E+1;u.change(V=>{if(F){const W=C6(x,F);for(const{cell:dt,column:Zt}of W)A6(dt,Zt,F,V)}je("headingColumns",F,x,V,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),x=new ro(u,{row:_});for(const{cell:M,row:E,column:F}of x)if(M===r)return{row:E,column:F}}createTable(r,c){const u=r.createElement("table"),_=c.rows||2,x=c.columns||2;return i7(r,u,0,_,x),c.headingRows&&je("headingRows",Math.min(c.headingRows,_),u,r,0),c.headingColumns&&je("headingColumns",Math.min(c.headingColumns,x),u,r,0),u}insertRows(r,c={}){const u=this.editor.model,_=c.at||0,x=c.rows||1,M=void 0!==c.copyStructureFromAbove,E=c.copyStructureFromAbove?_-1:_,F=this.getRows(r),V=this.getColumns(r);if(_>F)throw new nt("tableutils-insertrows-insert-out-of-range",this,{options:c});u.change(W=>{const dt=r.getAttribute("headingRows")||0;if(dt>_&&je("headingRows",dt+x,r,W,0),!M&&(0===_||_===F))return void i7(W,r,_,x,V);const Zt=M?Math.max(_,E):_,ue=new ro(r,{endRow:Zt}),Ae=new Array(V).fill(1);for(const{row:Ie,column:ln,cellHeight:Dn,cellWidth:di,cell:Ri}of ue){const Go=Ie+Dn-1,Da=Ie<=E&&E<=Go;Ie<_&&_<=Go?(W.setAttribute("rowspan",Dn+x,Ri),Ae[ln]=-di):M&&Da&&(Ae[ln]=di)}for(let Ie=0;Ie0&&xn(W,Ri,di>1?{colspan:di}:void 0),Dn+=Math.abs(di)-1}}})}insertColumns(r,c={}){const _=c.at||0,x=c.columns||1;this.editor.model.change(M=>{const E=r.getAttribute("headingColumns");_x-1)throw new nt("tableutils-removerows-row-index-out-of-range",this,{table:r,options:c});u.change(F=>{const V={first:M,last:E},{cellsToMove:W,cellsToTrim:dt}=function(Zt,{first:ue,last:Ae}){const Ie=new Map,ln=[];for(const{row:Dn,column:di,cellHeight:Ri,cell:Go}of new ro(Zt,{endRow:Ae})){const Da=Dn+Ri-1;if(Dn>=ue&&Dn<=Ae&&Da>Ae&&Ie.set(di,{cell:Go,rowspan:Ri-(Ae-Dn+1)}),Dn=ue){let ws;ws=Da>=Ae?Ae-ue+1:Da-ue+1,ln.push({cell:Go,rowspan:Ri-ws})}}return{cellsToMove:Ie,cellsToTrim:ln}}(r,V);W.size&&function(Zt,ue,Ae,Ie){const Dn=[...new ro(Zt,{includeAllSlots:!0,row:ue})],di=Zt.getChild(ue);let Ri;for(const{column:Go,cell:Da,isAnchor:ws}of Dn)if(Ae.has(Go)){const{cell:Kr,rowspan:Il}=Ae.get(Go),fl=Ri?Ie.createPositionAfter(Ri):Ie.createPositionAt(di,0);Ie.move(Ie.createRangeOn(Kr),fl),je("rowspan",Il,Kr,Ie),Ri=Kr}else ws&&(Ri=Da)}(r,E+1,W,F);for(let Zt=E;Zt>=M;Zt--)F.remove(r.getChild(Zt));for(const{rowspan:Zt,cell:ue}of dt)je("rowspan",Zt,ue,F);(function(Zt,{first:ue,last:Ae},Ie){const ln=Zt.getAttribute("headingRows")||0;ue{!function(V,W,dt){const Zt=V.getAttribute("headingColumns")||0;if(Zt&&W.firstc.is("element","tableColumnGroup"))}(m);return r?Array.from(r.getChildren()):[]}(r);for(let V=M;V>=_;V--){for(const{cell:W,column:dt,cellWidth:Zt}of[...new ro(r)])dt<=V&&Zt>1&&dt+Zt>V?je("colspan",Zt-1,W,E):dt===V&&E.remove(W);if(F[V]){const W=0===V?F[1]:F[V-1],dt=parseFloat(F[V].getAttribute("columnWidth")),Zt=parseFloat(W.getAttribute("columnWidth"));E.remove(F[V]),E.setAttribute("columnWidth",dt+Zt+"%",W)}}a8(r,this)||x3(r,this)})}splitCellVertically(r,c=2){const u=this.editor.model,_=r.parent.parent,x=parseInt(r.getAttribute("rowspan")||"1"),M=parseInt(r.getAttribute("colspan")||"1");u.change(E=>{if(M>1){const{newCellsSpan:F,updatedSpan:V}=Py(M,c);je("colspan",V,r,E);const W={};F>1&&(W.colspan=F),x>1&&(W.rowspan=x),y6(M>c?c-1:M-1,E,E.createPositionAfter(r),W)}if(MAe===r),dt=V.filter(({cell:Ae,cellWidth:Ie,column:ln})=>Ae!==r&&ln===W||lnW);for(const{cell:Ae,cellWidth:Ie}of dt)E.setAttribute("colspan",Ie+F,Ae);const Zt={};x>1&&(Zt.rowspan=x),y6(F,E,E.createPositionAfter(r),Zt);const ue=_.getAttribute("headingColumns")||0;ue>W&&je("headingColumns",ue+F,_,E)}})}splitCellHorizontally(r,c=2){const u=this.editor.model,_=r.parent,x=_.parent,M=x.getChildIndex(_),E=parseInt(r.getAttribute("rowspan")||"1"),F=parseInt(r.getAttribute("colspan")||"1");u.change(V=>{if(E>1){const W=[...new ro(x,{startRow:M,endRow:M+E-1,includeAllSlots:!0})],{newCellsSpan:dt,updatedSpan:Zt}=Py(E,c);je("rowspan",Zt,r,V);const{column:ue}=W.find(({cell:Ie})=>Ie===r),Ae={};dt>1&&(Ae.rowspan=dt),F>1&&(Ae.colspan=F);for(const Ie of W){const{column:ln,row:Dn}=Ie;Dn>=M+Zt&&ln===ue&&(Dn+M+Zt)%dt==0&&y6(1,V,Ie.getPositionBefore(),Ae)}}if(EM&&V.setAttribute("rowspan",Ie+W,Ae);const Zt={};F>1&&(Zt.colspan=F),i7(V,x,M+1,W,1,Zt);const ue=x.getAttribute("headingRows")||0;ue>M&&je("headingRows",ue+W,x,V)}})}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:F}=this.getCellLocation(M),V=parseInt(M.getAttribute("rowspan"))||1,W=parseInt(M.getAttribute("colspan"))||1;c.add(E),u.add(F),V>1&&c.add(E+V-1),W>1&&u.add(F+W-1),_+=V*W}return function(M,E){const F=Array.from(M.values()),V=Array.from(E.values());return(Math.max(...F)-Math.min(...F)+1)*(Math.max(...V)-Math.min(...V)+1)}(c,u)==_}sortRanges(r){return Array.from(r).sort(Sy)}_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 x=this.getColumnIndexes(r),M=parseInt(c.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(x,M)}_areIndexesInSameSection({first:r,last:c},u){return r{const _=c.getSelectedTableCells(r.document.selection),x=_.shift(),{mergeWidth:M,mergeHeight:E}=function(F,V,W){let dt=0,Zt=0;for(const Dn of V){const{row:di,column:Ri}=W.getCellLocation(Dn);dt=Ly(Dn,Ri,dt,"colspan"),Zt=Ly(Dn,di,Zt,"rowspan")}const{row:ue,column:Ae}=W.getCellLocation(F);return{mergeWidth:dt-Ae,mergeHeight:Zt-ue}}(x,_,c);je("colspan",M,x,u),je("rowspan",E,x,u);for(const F of _)Kn(F,x,u);e7(x.findAncestor("table"),c),u.setSelection(x,"in")})}}function Kn(m,r,c){Ba(m)||(Ba(r)&&c.remove(c.createRangeIn(r)),c.move(c.createRangeIn(m),c.createPositionAt(r,"end"))),c.remove(m)}function Ba(m){const r=m.getChild(0);return 1==m.childCount&&r.is("element","paragraph")&&r.isEmpty}function Ly(m,r,c,u){const _=parseInt(m.getAttribute(u)||"1");return Math.max(c,r+_)}class o7 extends Za{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),x=u[0].findAncestor("table"),M=[];for(let E=_.first;E<=_.last;E++)for(const F of x.getChild(E).getChildren())M.push(r.createRangeOn(F));r.change(E=>{E.setSelection(M)})}}class Oy extends Za{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],x=u.pop(),M=_.findAncestor("table"),E=r.getCellLocation(_),F=r.getCellLocation(x),V=Math.min(E.column,F.column),W=Math.max(E.column,F.column),dt=[];for(const Zt of new ro(M,{startColumn:V,endColumn:W}))dt.push(c.createRangeOn(Zt.cell));c.change(Zt=>{Zt.setSelection(dt)})}}function KT(m,r){let c=!1;const u=function(_){const x=parseInt(_.getAttribute("headingRows")||"0"),M=Array.from(_.getChildren()).reduce((F,V)=>V.is("element","tableRow")?F+1:F,0),E=[];for(const{row:F,cell:V,cellHeight:W}of new ro(_)){if(W<2)continue;const dt=Fdt&&E.push({cell:V,rowspan:dt-F})}return E}(m);if(u.length){c=!0;for(const _ of u)je("rowspan",_.rowspan,_.cell,r,1)}return c}function a7(m,r){let c=!1;const u=function(E){const F=new Array(E.childCount).fill(0);for(const{rowIndex:V}of new ro(E,{includeAllSlots:!0}))F[V]++;return F}(m),_=[];for(const[E,F]of u.entries())!F&&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 x=u.filter((E,F)=>m.getChild(F).is("element","tableRow")),M=x[0];if(!x.every(E=>E===M)){const E=x.reduce((F,V)=>V>F?V:F,0);for(const[F,V]of x.entries()){const W=E-V;if(W){for(let dt=0;dtu.is("$text"));for(const u of c)r.wrap(r.createRangeOn(u),"paragraph");return!!c.length}function n9(m){return!!m.position.parent.is("element","tableCell")&&("insert"==m.type&&"$text"==m.name||"remove"==m.type)}function i9(m,r){if(!m.is("element","paragraph"))return!1;const c=r.toViewElement(m);return!!c&&zr(m)!==c.is("element","span")}var Iy=v(3881);No()(Iy.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,x=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,F,V)=>{if(!V.consumable.test(F.viewItem,{name:!0,classes:"table"}))return;const W=function(Zt){for(const ue of Zt.getChildren())if(ue.is("element","table"))return ue}(F.viewItem);if(!W||!V.consumable.test(W,{name:!0}))return;V.consumable.consume(F.viewItem,{name:!0,classes:"table"});const dt=as(V.convertItem(W,F.modelCursor).modelRange.getItems());dt?(V.convertChildren(F.viewItem,V.writer.createPositionAt(dt,"end")),V.updateConversionResult(dt,F)):V.consumable.revert(F.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:x,headingRows:M,headingColumns:E}=function(W){let dt,Zt=0;const ue=[],Ae=[];let Ie;for(const ln of Array.from(W.getChildren())){if("tbody"!==ln.name&&"thead"!==ln.name&&"tfoot"!==ln.name)continue;"thead"!==ln.name||Ie||(Ie=ln);const Dn=Array.from(ln.getChildren()).filter(di=>di.is("element","tr"));for(const di of Dn)if(Ie&&ln===Ie||"tbody"===ln.name&&Array.from(di.getChildren()).length&&Array.from(di.getChildren()).every(Ri=>Ri.is("element","th")))Zt++,ue.push(di);else{Ae.push(di);const Ri=Ao(di);(!dt||Riu.convertItem(W,u.writer.createPositionAt(V,"end"))),u.convertChildren(_,u.writer.createPositionAt(V,"end")),V.isEmpty){const W=u.writer.createElement("tableRow");u.writer.insert(W,u.writer.createPositionAt(V,"end")),xn(u.writer,u.writer.createPositionAt(W,"end"))}u.updateConversionResult(V,c)}})}}()),_.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Ta(x,{asWidget:!0,additionalSlots:this._additionalSlots})}),_.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Ta(x,{additionalSlots:this._additionalSlots})}),_.for("upcast").elementToElement({model:"tableRow",view:"tr"}),_.for("upcast").add(M=>{M.on("element:tr",(E,F)=>{F.viewItem.isEmpty&&0==F.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:Ea({asWidget:!0}),converterPriority:"high"}),_.for("dataDowncast").elementToElement({model:"paragraph",view:Ea(),converterPriority:"high"}),_.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),_.for("upcast").attributeToAttribute({model:{key:"colspan",value:Fy("colspan")},view:"colspan"}),_.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),_.for("upcast").attributeToAttribute({model:{key:"rowspan",value:Fy("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 g2(r,{order:"above"})),r.commands.add("insertTableRowBelow",new g2(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 ky(r)),r.commands.add("removeTableColumn",new Dy(r)),r.commands.add("splitTableCellVertically",new b3(r,{direction:"vertically"})),r.commands.add("splitTableCellHorizontally",new b3(r,{direction:"horizontally"})),r.commands.add("mergeTableCells",new WT(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 GT(r)),r.commands.add("setTableRowHeader",new JT(r)),r.commands.add("selectTableRow",new o7(r)),r.commands.add("selectTableColumn",new Oy(r)),function $T(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.differ.getChanges();let x=!1;const M=new Set;for(const E of _){let F=null;"insert"==E.type&&"table"==E.name&&(F=E.position.nodeAfter),"insert"!=E.type&&"remove"!=E.type||"tableRow"!=E.name&&"tableCell"!=E.name||(F=E.position.findAncestor("table")),XT(E)&&(F=E.range.start.findAncestor("table")),F&&!M.has(F)&&(x=KT(F,c)||x,x=a7(F,c)||x,M.add(F))}return x}(r,m))}(c),function t9(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.differ.getChanges();let x=!1;for(const M of _)"insert"==M.type&&"table"==M.name&&(x=e9(M.position.nodeAfter,c)||x),"insert"==M.type&&"tableRow"==M.name&&(x=Ey(M.position.nodeAfter,c)||x),"insert"==M.type&&"tableCell"==M.name&&(x=ov(M.position.nodeAfter,c)||x),"remove"!=M.type&&"insert"!=M.type||!n9(M)||(x=ov(M.position.parent,c)||x);return x}(r,m))}(c),this.listenTo(c.document,"change:data",()=>{(function(M,E){const F=M.document.differ;for(const V of F.getChanges()){let W,dt=!1;if("attribute"==V.type){const Ie=V.range.start.nodeAfter;if(!Ie||!Ie.is("element","table")||"headingRows"!=V.attributeKey&&"headingColumns"!=V.attributeKey)continue;W=Ie,dt="headingRows"==V.attributeKey}else"tableRow"!=V.name&&"tableCell"!=V.name||(W=V.position.findAncestor("table"),dt="tableRow"==V.name);if(!W)continue;const Zt=W.getAttribute("headingRows")||0,ue=W.getAttribute("headingColumns")||0,Ae=new ro(W);for(const Ie of Ae){const ln=Ie.rowi9(Zt,E.mapper));for(const Zt of dt)E.reconvertItem(Zt)}}(c,r.editing)})}registerAdditionalSlot(r){this._additionalSlots.push(r)}}function Fy(m){return r=>{const c=parseInt(r.getAttribute(m));return Number.isNaN(c)||c<=0?null:c}}var qy=v(1613);No()(qy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class r9 extends oa{constructor(r){super(r);const c=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new $c,this.focusTracker=new rs,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:x,column:M}=_.target.dataset;this.items.get(10*(parseInt(x,10)-1)+(parseInt(M,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(u,_,x)=>{if(!x)return;const{row:M,column:E}=x.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:x}){const M="number"==typeof _?()=>_:_;function E(W){return dt=>{const Zt=u.find(Ie=>Ie.element===c.focusedElement),ue=u.getIndex(Zt),Ae=W(ue,u);u.get(Ae).focus(),dt.stopPropagation(),dt.preventDefault()}}function F(W,dt){return W===dt-1?0:W+1}function V(W,dt){return 0===W?dt-1:W-1}r.set("arrowright",E((W,dt)=>"rtl"===x?V(W,dt.length):F(W,dt.length))),r.set("arrowleft",E((W,dt)=>"rtl"===x?F(W,dt.length):V(W,dt.length))),r.set("arrowup",E((W,dt)=>{let Zt=W-M();return Zt<0&&(Zt=W+M()*Math.floor(dt.length/M()),Zt>dt.length-1&&(Zt-=M())),Zt})),r.set("arrowdown",E((W,dt)=>{let Zt=W+M();return Zt>dt.length-1&&(Zt=W%M()),Zt}))}({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 x=Math.floor(_/10){const x=r.commands.get("insertTable"),M=Lp(_);let E;return M.bind("isEnabled").to(x),M.buttonView.set({icon:'',label:c("Insert table"),tooltip:!0}),M.on("change:isOpen",()=>{E||(E=new r9(_),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 x=[{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"),'',x,_)}),r.ui.componentFactory.add("tableRow",_=>{const x=[{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"),'',x,_)}),r.ui.componentFactory.add("mergeTableCells",_=>{const x=[{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"),'',x,_)})}_prepareDropdown(r,c,u,_){const x=this.editor,M=Lp(_),E=this._fillDropdownWithListOptions(M,u);return M.buttonView.set({label:r,icon:c,tooltip:!0}),M.bind("isEnabled").toMany(E,"isEnabled",(...F)=>F.some(V=>V)),this.listenTo(M,"execute",F=>{x.execute(F.source.commandName),F.source instanceof ys||x.editing.view.focus()}),M}_prepareMergeSplitButtonDropdown(r,c,u,_){const x=this.editor,M=Lp(_,p4),E="mergeTableCells",F=x.commands.get(E),V=this._fillDropdownWithListOptions(M,u);return M.buttonView.set({label:r,icon:c,tooltip:!0,isEnabled:!0}),M.bind("isEnabled").toMany([F,...V],"isEnabled",(...W)=>W.some(dt=>dt)),this.listenTo(M.buttonView,"execute",()=>{x.execute(E),x.editing.view.focus()}),this.listenTo(M,"execute",W=>{x.execute(W.source.commandName),x.editing.view.focus()}),M}_fillDropdownWithListOptions(r,c){const u=this.editor,_=[],x=new ec;for(const M of c)c9(M,u,_,x);return t1(r,x),_}}function c9(m,r,c,u){if("button"===m.type||"switchbutton"===m.type){const _=m.model=new Z4(m.model),{commandName:x,bindIsOn:M}=m.model,E=r.commands.get(x);c.push(E),_.set({commandName:x}),_.bind("isEnabled").to(E),M&&_.bind("isOn").to(E,"value"),_.set({withText:!0})}u.add(m)}var r7=v(6945);No()(r7.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ua 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",(_,x)=>this._handleDeleteContent(_,x),{priority:"high"}),this.listenTo(u.document,"insertText",(_,x)=>this._handleInsertTextEvent(_,x),{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:x,last:M}=r.getColumnIndexes(c),{first:E,last:F}=r.getRowIndexes(c),V=c[0].findAncestor("table");let W=F,dt=M;if(r.isSelectionRectangular(c)){const ue={firstColumn:x,lastColumn:M,firstRow:E,lastRow:F};W=n7(V,ue),dt=Zy(V,ue)}const Zt=b6(V,{startRow:E,startColumn:x,endRow:W,endColumn:dt},u);return u.insert(Zt,_,0),_}):null}setCellSelection(r,c){const u=this._getCellsToSelect(r,c);this.editor.model.change(_=>{_.setSelection(u.cells.map(x=>_.createRangeOn(x)),{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=as(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",(_,x,M)=>{const E=M.writer;!function(W){for(const dt of c)W.removeClass("ck-editor__editable_selected",dt);c.clear()}(E);const F=this.getSelectedTableCells();if(!F)return;for(const W of F){const dt=M.mapper.toViewElement(W);E.addClass("ck-editor__editable_selected",dt),c.add(dt)}const V=M.mapper.toViewElement(F[F.length-1]);E.setSelection(V,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),x=r.model.schema.getNearestSelectionRange(_);u.setSelection(x)})}})}_handleDeleteContent(r,c){const u=this.editor.plugins.get(s1),_=c[0],x=c[1],M=this.editor.model,E=!x||"backward"==x.direction,F=u.getSelectedTableCells(_);F.length&&(r.stop(),M.change(V=>{const W=F[E?F.length-1:0];M.change(Zt=>{for(const ue of F)M.deleteContent(Zt.createSelection(ue,"in"))});const dt=M.schema.getNearestSelectionRange(V.createPositionAt(W,0));_.is("documentSelection")?V.setSelection(dt):_.setTo(dt)}))}_handleInsertTextEvent(r,c){const u=this.editor,_=this.getSelectedTableCells();if(!_)return;const x=u.editing.view,M=u.editing.mapper,E=_.map(F=>x.createRangeOn(M.toViewElement(F)));c.selection=x.createSelection(E)}_getCellsToSelect(r,c){const u=this.editor.plugins.get("TableUtils"),_=u.getCellLocation(r),x=u.getCellLocation(c),M=Math.min(_.row,x.row),E=Math.max(_.row,x.row),F=Math.min(_.column,x.column),V=Math.max(_.column,x.column),W=new Array(E-M+1).fill(null).map(()=>[]),dt={startRow:M,endRow:E,startColumn:F,endColumn:V};for(const{row:Ae,cell:Ie}of new ro(r.findAncestor("table"),dt))W[Ae-M].push(Ie);const Zt=x.row<_.row,ue=x.column<_.column;return Zt&&W.reverse(),ue&&W.forEach(Ae=>Ae.reverse()),{cells:W.flat(),backward:Zt||ue}}}class ya extends lo{static get pluginName(){return"TableClipboard"}static get requires(){return[Ua,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,[_,x])=>this._onInsertContent(u,_,x),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(r,c){const u=this.editor.plugins.get(Ua);if(!u.getSelectedTableCells()||"cut"==r.name&&!this.editor.model.canEditAt(this.editor.model.document.selection))return;c.preventDefault(),r.stop();const x=this.editor.editing.view.document,M=this.editor.data.toView(u.getSelectionAsFragment());x.fire("clipboardOutput",{dataTransfer:c.dataTransfer,content:M,method:r.name})}_onInsertContent(r,c,u){if(u&&!u.is("documentSelection"))return;const _=this.editor.model,x=this.editor.plugins.get(s1);let M=this.getTableIfOnlyTableInContent(c,_);if(!M)return;const E=x.getSelectionAffectedTableCells(_.document.selection);E.length?(r.stop(),_.change(F=>{const V={width:x.getColumns(M),height:x.getRows(M)},W=function(ln,Dn,di,Ri){const Go=ln[0].findAncestor("table"),Da=Ri.getColumnIndexes(ln),ws=Ri.getRowIndexes(ln),Kr={firstColumn:Da.first,lastColumn:Da.last,firstRow:ws.first,lastRow:ws.last},Il=1===ln.length;return Il&&(Kr.lastRow+=Dn.height-1,Kr.lastColumn+=Dn.width-1,function(fl,w6,b2,Rp){const wf=Rp.getColumns(fl),v2=Rp.getRows(fl);b2>wf&&Rp.insertColumns(fl,{at:wf,columns:b2-wf}),w6>v2&&Rp.insertRows(fl,{at:v2,rows:w6-v2})}(Go,Kr.lastRow+1,Kr.lastColumn+1,Ri)),Il||!Ri.isSelectionRectangular(ln)?function(fl,w6,b2){const{firstRow:Rp,lastRow:wf,firstColumn:v2,lastColumn:C3}=w6,nT={first:Rp,last:wf},_7={first:v2,last:C3};s7(fl,v2,nT,b2),s7(fl,C3+1,nT,b2),or(fl,Rp,_7,b2),or(fl,wf+1,_7,b2,Rp)}(Go,Kr,di):(Kr.lastRow=n7(Go,Kr),Kr.lastColumn=Zy(Go,Kr)),Kr}(E,V,F,x),Zt=W.lastColumn-W.firstColumn+1,ue={startRow:0,startColumn:0,endRow:Math.min(W.lastRow-W.firstRow+1,V.height)-1,endColumn:Math.min(Zt,V.width)-1};M=b6(M,ue,F);const Ae=E[0].findAncestor("table"),Ie=this._replaceSelectedCellsWithPasted(M,V,Ae,W,F);if(this.editor.plugins.get("TableSelection").isEnabled){const ln=x.sortRanges(Ie.map(Dn=>F.createRangeOn(Dn)));F.setSelection(ln)}else F.setSelection(Ie[0],0)})):e7(M,x)}_replaceSelectedCellsWithPasted(r,c,u,_,x){const{width:M,height:E}=c,F=function(ln,Dn,di){const Ri=new Array(di).fill(null).map(()=>new Array(Dn).fill(null));for(const{column:Go,row:Da,cell:ws}of new ro(ln))Ri[Da][Go]=ws;return Ri}(r,M,E),V=[...new ro(u,{startRow:_.firstRow,endRow:_.lastRow,startColumn:_.firstColumn,endColumn:_.lastColumn,includeAllSlots:!0})],W=[];let dt;for(const ln of V){const{row:Dn,column:di}=ln;di===_.firstColumn&&(dt=ln.getPositionBefore());const Da=F[(Dn-_.firstRow)%E][(di-_.firstColumn)%M],ws=Da?x.cloneElement(Da):null,Kr=this._replaceTableSlotCell(ln,ws,dt,x);Kr&&(v3(Kr,Dn,di,_.lastRow,_.lastColumn,x),W.push(Kr),dt=x.createPositionAfter(Kr))}const Zt=parseInt(u.getAttribute("headingRows")||"0"),ue=parseInt(u.getAttribute("headingColumns")||"0"),Ie=_.firstColumns8(x,M,c)).map(({cell:x})=>x6(x,r,u))}function s7(m,r,c,u){if(!(r<1))return C6(m,r).filter(({row:_,cellHeight:x})=>s8(_,x,c)).map(({cell:_,column:x})=>A6(_,x,r,u))}function s8(m,r,c){const u=m+r-1,{first:_,last:x}=c;return m>=_&&m<=x||m<_&&u>=_}class u9 extends lo{static get pluginName(){return"TableKeyboard"}static get requires(){return[Ua,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(x=>{x.setSelection(x.createRangeIn(_.getChild(0).getChild(0)))}))}_handleTab(r,c){const u=this.editor,_=this.editor.plugins.get(s1),x=this.editor.plugins.get("TableSelection"),E=!c.shiftKey;let F=_.getTableCellsContainingSelection(u.model.document.selection)[0];if(F||(F=x.getFocusCell()),!F)return;c.preventDefault(),c.stopPropagation(),r.stop();const V=F.parent,W=V.parent,dt=W.getChildIndex(V),Zt=V.getChildIndex(F),ue=0===Zt;if(!E&&ue&&0===dt)return void u.model.change(Dn=>{Dn.setSelection(Dn.createRangeOn(W))});const Ae=Zt===V.childCount-1,Ie=dt===_.getRows(W)-1;if(E&&Ie&&Ae&&(u.execute("insertTableRowBelow"),dt===_.getRows(W)-1))return void u.model.change(Dn=>{Dn.setSelection(Dn.createRangeOn(W))});let ln;if(E&&Ae)ln=W.getChild(dt+1).getChild(0);else if(!E&&ue){const Dn=W.getChild(dt-1);ln=Dn.getChild(Dn.childCount-1)}else ln=V.getChild(Zt+(E?1:-1));u.model.change(Dn=>{Dn.setSelection(Dn.createRangeIn(ln))})}_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"),x=this.editor.model,M=x.document.selection,E=["right","down"].includes(r),F=u.getSelectedTableCells(M);if(F.length){let W;return W=c?_.getFocusCell():E?F[F.length-1]:F[0],this._navigateFromCellInDirection(W,r,c),!0}const V=M.focus.findAncestor("tableCell");if(!V)return!1;if(!M.isCollapsed)if(c){if(M.isBackward==E&&!M.containsEntireContent(V))return!1}else{const W=M.getSelectedElement();if(!W||!x.schema.isObject(W))return!1}return!!this._isSelectionAtCellEdge(M,V,E)&&(this._navigateFromCellInDirection(V,r,c),!0)}_isSelectionAtCellEdge(r,c,u){const _=this.editor.model,x=this.editor.model.schema,M=u?r.getLastPosition():r.getFirstPosition();if(!x.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,x=r.findAncestor("table"),M=[...new ro(x,{includeAllSlots:!0})],{row:E,column:F}=M[M.length-1],V=M.find(({cell:Ie})=>Ie==r);let{row:W,column:dt}=V;switch(c){case"left":dt--;break;case"up":W--;break;case"right":dt+=V.cellWidth;break;case"down":W+=V.cellHeight}if(W<0||W>E||dt<0&&W<=0||dt>F&&W>=E)return void _.change(Ie=>{Ie.setSelection(Ie.createRangeOn(x))});dt<0?(dt=u?0:F,W--):dt>F&&(dt=u?F:0,W++);const Zt=M.find(Ie=>Ie.row==W&&Ie.column==dt).cell,ue=["right","down"].includes(c),Ae=this.editor.plugins.get("TableSelection");if(u&&Ae.isEnabled){const Ie=Ae.getAnchorCell()||r;Ae.setCellSelection(Ie,Zt)}else{const Ie=_.createPositionAt(Zt,ue?0:"end");_.change(ln=>{ln.setSelection(Ie)})}}}class Ry extends Wu{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(r){this.fire(r.type,r)}}class d9 extends lo{static get pluginName(){return"TableMouse"}static get requires(){return[Ua,s1]}init(){this.editor.editing.view.addObserver(Ry),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const r=this.editor,c=r.plugins.get(s1);let u=!1;const _=r.plugins.get(Ua);this.listenTo(r.editing.view.document,"mousedown",(x,M)=>{const E=r.model.document.selection;if(!this.isEnabled||!_.isEnabled||!M.domEvent.shiftKey)return;const F=_.getAnchorCell()||c.getTableCellsContainingSelection(E)[0];if(!F)return;const V=this._getModelTableCellFromDomEvent(M);V&&Hy(F,V)&&(u=!0,_.setCellSelection(F,V),M.preventDefault())}),this.listenTo(r.editing.view.document,"mouseup",()=>{u=!1}),this.listenTo(r.editing.view.document,"selectionChange",x=>{u&&x.stop()},{priority:"highest"})}_enableMouseDragSelection(){const r=this.editor;let c,u,_=!1,x=!1;const M=r.plugins.get(Ua);this.listenTo(r.editing.view.document,"mousedown",(E,F)=>{this.isEnabled&&M.isEnabled&&(F.domEvent.shiftKey||F.domEvent.ctrlKey||F.domEvent.altKey||(c=this._getModelTableCellFromDomEvent(F)))}),this.listenTo(r.editing.view.document,"mousemove",(E,F)=>{if(!F.domEvent.buttons||!c)return;const V=this._getModelTableCellFromDomEvent(F);V&&Hy(c,V)&&(u=V,_||u==c||(_=!0)),_&&(x=!0,M.setCellSelection(c,u),F.preventDefault())}),this.listenTo(r.editing.view.document,"mouseup",()=>{_=!1,x=!1,c=null,u=null}),this.listenTo(r.editing.view.document,"selectionChange",E=>{x&&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 Hy(m,r){return m.parent.parent==r.parent.parent}var c7=v(6306);function m9(m){const r=m.getSelectedElement();return r&&l7(r)?r:null}function zy(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)}No()(c7.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var c8=v(7368);No()(c8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Yy=v(9247);No()(Yy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Vy=v(4070);No()(Vy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Jy=v(6237);No()(Jy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Gy=v(5087);No()(Gy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Qy=v(7341);No()(Qy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var av=v(2128);No()(av.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var $y=v(4101);No()($y.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Tf=Object.defineProperty,u7=Object.getOwnPropertySymbols,T6=Object.prototype.hasOwnProperty,v9=Object.prototype.propertyIsEnumerable,Ky=(m,r,c)=>r in m?Tf(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Xy=(m,r)=>{for(var c in r||(r={}))T6.call(r,c)&&Ky(m,c,r[c]);if(u7)for(var c of u7(r))v9.call(r,c)&&Ky(m,c,r[c]);return m};const x9={autoRefresh:!0};class d7 extends(Ue()){constructor(r,c={}){if(super(),!r)throw new nt("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((_,x)=>{const M=new XMLHttpRequest;M.open("GET",u),M.addEventListener("load",()=>{const E=M.status,F=M.response;return E<200||E>299?x(new nt("token-cannot-download-new-token",null)):_(F)}),M.addEventListener("error",()=>x(new Error("Network Error"))),M.addEventListener("abort",()=>x(new Error("Abort"))),M.send()});var u},this._options=Xy(Xy({},x9),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 nt("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 d7(r,c).init()}}const p7=/^data:(\S*?);base64,/;class C9 extends(Oe()){constructor(r,c,u){if(super(),!r)throw new nt("fileuploader-missing-file",null);if(!c)throw new nt("fileuploader-missing-token",null);if(!u)throw new nt("fileuploader-missing-api-address",null);this.file=function(_){if("string"!=typeof _)return!1;const x=_.match(p7);return!(!x||!x.length)}(r)?function(_,x=512){try{const M=_.match(p7)[1],E=atob(_.replace(p7,"")),F=[];for(let V=0;Vr(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 x=c.status,M=c.response;return x<200||x>299?_(M.message?new nt("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 tT{constructor(r,c){if(!r)throw new nt("uploadgateway-missing-token",null);if(!c)throw new nt("uploadgateway-missing-api-address",null);this._token=r,this._apiAddress=c}upload(r){return new C9(r,this._token,this._apiAddress)}}class A9 extends w_{static get pluginName(){return"CloudServicesCore"}createToken(r,c){return new d7(r,c)}createUploadGateway(r,c){return new tT(r,c)}}var eT=(m,r,c)=>new Promise((u,_)=>{var x=F=>{try{E(c.next(F))}catch(V){_(V)}},M=F=>{try{E(c.throw(F))}catch(V){_(V)}},E=F=>F.done?u(F.value):Promise.resolve(F.value).then(x,M);E((c=c.apply(m,r)).next())});class m7 extends Y0{}m7.builtinPlugins=[class extends lo{static get requires(){return[yx,Tm,J8,N8,Ya,Lx]}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 X8(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")&&Fp(this.editor,this,/^[*-]\s$/,"bulletedList"),m.get("numberedList")&&Fp(this.editor,this,/^1[.|)]\s$/,"numberedList"),m.get("todoList")&&Fp(this.editor,this,/^\[\s?\]\s$/,"todoList"),m.get("checkTodoList")&&Fp(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=Vh(this.editor,"bold");f2(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,r),f2(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,r)}if(m.get("italic")){const r=Vh(this.editor,"italic");f2(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,r),f2(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,r)}if(m.get("code")){const r=Vh(this.editor,"code");f2(this.editor,this,/(`)([^`]+)(`)$/g,r)}if(m.get("strikethrough")){const r=Vh(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$`);Fp(this.editor,this,u,()=>{if(!m.isEnabled||m.value===r)return!1;this.editor.execute("heading",{value:r})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&Fp(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const m=this.editor,r=m.model.document.selection;m.commands.get("codeBlock")&&Fp(m,this,/^```$/,()=>{if(r.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&Fp(this.editor,this,/^---$/,"horizontalLine")}},class extends lo{static get requires(){return[J5,Q5]}static get pluginName(){return"Bold"}},class extends lo{static get requires(){return[iy,B4]}static get pluginName(){return"Italic"}},class extends lo{static get requires(){return[$5,Fx]}static get pluginName(){return"BlockQuote"}},class extends lo{static get pluginName(){return"CKBox"}static get requires(){return[X5,qx]}},class extends lo{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",Vx,Yx]}},class extends w_{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[A9]}init(){return eT(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 eT(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 nt("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[sA,"ImageUpload"]}init(){const m=this.editor;m.plugins.has("ImageBlockEditing")||m.plugins.has("ImageInlineEditing")||Tt("easy-image-image-feature-missing",m)}},class extends lo{static get requires(){return[ab,Gx]}static get pluginName(){return"Heading"}},class extends lo{static get requires(){return[tC,hA]}static get pluginName(){return"Image"}},class extends lo{static get requires(){return[gA,hb]}static get pluginName(){return"ImageCaption"}},class extends lo{static get requires(){return[fC,sy]}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(x=>Wt(x)?x.name:x)),getRelatedElement:x=>u.getClosestSelectedImageWidget(x)})}},class extends lo{static get pluginName(){return"ImageUpload"}static get requires(){return[Af,bb,xA]}},class extends lo{static get pluginName(){return"Indent"}static get requires(){return[r6,s3]}},class extends lo{static get requires(){return[zb,FA,d6]}static get pluginName(){return"Link"}},class extends lo{static get requires(){return[tv,RA]}static get pluginName(){return"List"}},class extends lo{static get requires(){return[nv,$A,WA,V0]}static get pluginName(){return"MediaEmbed"}},ib,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 j(c)),u.push(new Ut(c)),r.on("inputTransformation",(_,x)=>{if(x._isTransformedWithPasteFromOffice||m.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const M=x.dataTransfer.getData("text/html"),E=u.find(F=>F.isActive(M));E&&(x._parsedData||(x._parsedData=function be(m,r){const c=new DOMParser,u=Ht(Ht(function(F){const V="",dt=F.indexOf(V);if(dt<0)return F;const Zt=F.indexOf("",dt+V.length);return F.substring(0,dt+V.length)+(Zt>=0?F.substring(Zt):"")}(m=m.replace(//)>-1||t[D].search(/\]>/)>-1||t[D].search(/!DOCTYPE/)>-1)&&(C=!1)):t[D].search(/-->/)>-1||t[D].search(/\]>/)>-1?(k+=t[D],C=!1):/^<\w/.exec(t[D-1])&&/^<\/\w/.exec(t[D])&&/^<[\w:\-\.\,]+/.exec(t[D-1])==/^<\/[\w:\-\.\,]+/.exec(t[D])[0].replace("/","")?(k+=t[D],C||U--):t[D].search(/<\w/)>-1&&-1==t[D].search(/<\//)&&-1==t[D].search(/\/>/)?k=k+=C?t[D]:P[U++]+t[D]:t[D].search(/<\w/)>-1&&t[D].search(/<\//)>-1?k=k+=C?t[D]:P[U]+t[D]:t[D].search(/<\//)>-1?k=k+=C?t[D]:P[--U]+t[D]:t[D].search(/\/>/)>-1?k=k+=C?t[D]:P[U]+t[D]:t[D].search(/<\?/)>-1||t[D].search(/xmlns\:/)>-1||t[D].search(/xmlns\=/)>-1?k+=P[U]+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,C=0,U="",k=0,D=T?et(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,}\)/,")")},ot.exports=new b},67824:(ot,et,b)=>{"use strict";function d(p){for(var v in p)et.hasOwnProperty(v)||(et[v]=p[v])}Object.defineProperty(et,"__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(ot,et,b){"use strict";var t,d=this&&this.__extends||(t=function(A,C){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,k){U.__proto__=k}||function(U,k){for(var D in k)k.hasOwnProperty(D)&&(U[D]=k[D])})(A,C)},function(A,C){function U(){this.constructor=A}t(A,C),A.prototype=null===C?Object.create(C):(U.prototype=C.prototype,new U)});Object.defineProperty(et,"__esModule",{value:!0});var p=b(15675),v=function(t){function A(C){var U=t.call(this)||this,D=C;return D.trigger&&(U.trigger=D.trigger),D.kick&&(U.kick=D.kick),D.drag&&(U.drag=D.drag),D.on&&(U.on=D.on),U.dragstart=U.dragStart=p.Layout.dragStart,U.dragend=U.dragEnd=p.Layout.dragEnd,U}return d(A,t),A.prototype.trigger=function(C){},A.prototype.kick=function(){},A.prototype.drag=function(){},A.prototype.on=function(C,U){return this},A}(p.Layout);et.LayoutAdaptor=v,et.adaptor=function T(t){return new v(t)}},83292:(ot,et,b)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=b(15675),p=b(76767);et.gridify=function v(A,C,U,k){A.cola.start(0,0,0,10,!1);var D=function T(A,C,U,k){A.forEach(function(P){P.routerNode={name:P.name,bounds:P.bounds.inflate(-U)}}),C.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(C).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}},U-k)}(A.cola.nodes(),A.cola.groups(),U,k);return D.routeEdges(A.powerGraph.powerEdges,C,function(P){return P.source.routerNode.id},function(P){return P.target.routerNode.id})},et.powerGraphGridLayout=function t(A,C,U){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=U})});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(K){return P.push({source:G,target:K.index})}),typeof z.groups<"u"&&z.groups.forEach(function(K){return P.push({source:G,target:K.id+D})})}),k.powerEdges.forEach(function(z){P.push({source:z.source.index,target:z.target.index})}),(new d.Layout).size(C).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(C).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=U})}).start(50,0,100,0,!1),powerGraph:k}}},26243:(ot,et,b)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=b(49346),p=b(22487);et.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(ot,et,b){"use strict";var t,d=this&&this.__extends||(t=function(A,C){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,k){U.__proto__=k}||function(U,k){for(var D in k)k.hasOwnProperty(D)&&(U[D]=k[D])})(A,C)},function(A,C){function U(){this.constructor=A}t(A,C),A.prototype=null===C?Object.create(C):(U.prototype=C.prototype,new U)});Object.defineProperty(et,"__esModule",{value:!0});var p=b(15675),v=function(t){function A(){var C=t.call(this)||this;C.event=d3.dispatch(p.EventType[p.EventType.start],p.EventType[p.EventType.tick],p.EventType[p.EventType.end]);var U=C;return C.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),U.resume()}).on("dragend.d3adaptor",p.Layout.dragEnd);if(!arguments.length)return D;this.call(D)},C}return d(A,t),A.prototype.trigger=function(C){var U={type:p.EventType[C.type],alpha:C.alpha,stress:C.stress};this.event[U.type](U)},A.prototype.kick=function(){var C=this;d3.timer(function(){return t.prototype.tick.call(C)})},A.prototype.on=function(C,U){return this.event.on("string"==typeof C?C:p.EventType[C],U),this},A}(p.Layout);et.D3StyleLayoutAdaptor=v,et.d3adaptor=function T(){return new v}},22487:function(ot,et,b){"use strict";var T,d=this&&this.__extends||(T=function(t,A){return(T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,U){C.__proto__=U}||function(C,U){for(var k in U)U.hasOwnProperty(k)&&(C[k]=U[k])})(t,A)},function(t,A){function C(){this.constructor=t}T(t,A),t.prototype=null===A?Object.create(A):(C.prototype=A.prototype,new C)});Object.defineProperty(et,"__esModule",{value:!0});var p=b(15675),v=function(T){function t(A){var C=T.call(this)||this;C.d3Context=A,C.event=A.dispatch(p.EventType[p.EventType.start],p.EventType[p.EventType.tick],p.EventType[p.EventType.end]);var U=C;return C.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),U.resume()}).on("end.d3adaptor",p.Layout.dragEnd);if(!arguments.length)return D;arguments[0].call(D)},C}return d(t,T),t.prototype.trigger=function(A){var C={type:p.EventType[A.type],alpha:A.alpha,stress:A.stress};this.event.call(C.type,C)},t.prototype.kick=function(){var A=this,C=this.d3Context.timer(function(){return T.prototype.tick.call(A)&&C.stop()})},t.prototype.on=function(A,C){return this.event.on("string"==typeof A?A:p.EventType[A],C),this},t}(p.Layout);et.D3StyleLayoutAdaptor=v},91786:(ot,et)=>{"use strict";Object.defineProperty(et,"__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}();et.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 C=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,U=C;U--;)for(k=C;--k>U;){var D=t[U][k];D>0&&D1e-9)break;var lt=this.offsetDir();for(C=0;C1&&bt>Pt||!isFinite(Pt)){for(C=0;C1&&(Dt=1);var zt=Pt*Pt,Vt=2*Dt*(bt-Pt)/(zt*bt),nt=bt*bt*bt,Tt=2*-Dt/(zt*nt);for(isFinite(Vt)||console.log(Vt),C=0;C0?se-(xe+1)*ft:se-(xe-1)*ft)&&at<=At&&(this.scaleSnapByMaxH?(this.g[C][I]+=P*Bt*at,this.H[C][I][I]+=P*Bt):(this.g[C][I]+=Bt*at,this.H[C][I][I]+=Bt))}this.locks.isEmpty()||this.locks.apply(function(qe,$e){for(C=0;C0;)for(var U=t;U-- >0;)A(C,U)},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 C=this.computeStepSize(this.g);if(this.stepAndProject(T,t,this.g,C),this.project){this.matrixApply(function(k,D){return A.e[k][D]=T[k][D]-t[k][D]});var U=this.computeStepSize(this.e);U=Math.max(.2,Math.min(U,1)),this.stepAndProject(T,t,this.e,U)}},v.prototype.run=function(T){for(var t=Number.MAX_VALUE,A=!1;!A&&T-- >0;){var C=this.rungeKutta();A=Math.abs(t/C-1)>16)/this.range},v.prototype.getNextBetween=function(T,t){return T+this.getNext()*(t-T)},v}();et.PseudoRandom=p},30225:function(ot,et,b){"use strict";var ve,d=this&&this.__extends||(ve=function(xe,Oe){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qe,$e){qe.__proto__=$e}||function(qe,$e){for(var Xt in $e)$e.hasOwnProperty(Xt)&&(qe[Xt]=$e[Xt])})(xe,Oe)},function(xe,Oe){function qe(){this.constructor=xe}ve(xe,Oe),xe.prototype=null===Oe?Object.create(Oe):(qe.prototype=Oe.prototype,new qe)});Object.defineProperty(et,"__esModule",{value:!0});var p=b(4068),v=function ve(){};et.Point=v;var T=function ve(xe,Oe,qe,$e){this.x1=xe,this.y1=Oe,this.x2=qe,this.y2=$e};et.LineSegment=T;var t=function(ve){function xe(){return null!==ve&&ve.apply(this,arguments)||this}return d(xe,ve),xe}(v);function A(ve,xe,Oe){return(xe.x-ve.x)*(Oe.y-ve.y)-(Oe.x-ve.x)*(xe.y-ve.y)}function C(ve,xe,Oe){return A(ve,xe,Oe)>0}function U(ve,xe,Oe){return A(ve,xe,Oe)<0}function z(ve,xe){var Oe=xe.slice(0);return Oe.push(xe[0]),{rtan:G(ve,Oe),ltan:K(ve,Oe)}}function G(ve,xe){var qe,$e,Xt,ae,Oe=xe.length-1;if(U(ve,xe[1],xe[0])&&!C(ve,xe[Oe-1],xe[0]))return 0;for(qe=0,$e=Oe;;){if($e-qe==1)return C(ve,xe[qe],xe[$e])?qe:$e;if((ae=U(ve,xe[(Xt=Math.floor((qe+$e)/2))+1],xe[Xt]))&&!C(ve,xe[Xt-1],xe[Xt]))return Xt;C(ve,xe[qe+1],xe[qe])?ae||C(ve,xe[qe],xe[Xt])?$e=Xt:qe=Xt:ae&&U(ve,xe[qe],xe[Xt])?$e=Xt:qe=Xt}}function K(ve,xe){var qe,$e,Xt,ae,Oe=xe.length-1;if(C(ve,xe[Oe-1],xe[0])&&!U(ve,xe[1],xe[0]))return 0;for(qe=0,$e=Oe;;){if($e-qe==1)return U(ve,xe[qe],xe[$e])?qe:$e;if(ae=U(ve,xe[(Xt=Math.floor((qe+$e)/2))+1],xe[Xt]),C(ve,xe[Xt-1],xe[Xt])&&!ae)return Xt;U(ve,xe[qe+1],xe[qe])?ae?U(ve,xe[qe],xe[Xt])?$e=Xt:qe=Xt:$e=Xt:ae?qe=Xt:C(ve,xe[qe],xe[Xt])?$e=Xt:qe=Xt}}function at(ve,xe,Oe,qe,$e,Xt){var we,ae;ae=qe(ve[we=Oe(xe[0],ve)],xe);for(var Kt=!1;!Kt;){for(Kt=!0;we===ve.length-1&&(we=0),!$e(xe[ae],ve[we],ve[we+1]);)++we;for(;0===ae&&(ae=xe.length-1),!Xt(ve[we],xe[ae],xe[ae-1]);)--ae,Kt=!1}return{t1:we,t2:ae}}function bt(ve,xe){return at(ve,xe,G,K,C,U)}et.PolyPoint=t,et.isLeft=A,et.ConvexHull=function k(ve){var qe,xe=ve.slice(0).sort(function(Pe,on){return Pe.x!==on.x?on.x-Pe.x:on.y-Pe.y}),Oe=ve.length,Xt=xe[0].x;for(qe=1;qe=0&&xe[qe].x===Wt;qe--);for(Kt=qe+1,qe=we;++qe<=Kt;)if(!(A(xe[0],xe[Kt],xe[qe])>=0&&qe1&&!(A(ae[ae.length-2],ae[ae.length-1],xe[qe])>0);)ae.length-=1;0!=qe&&ae.push(xe[qe])}de!=Kt&&ae.push(xe[de]);var re=ae.length;for(qe=Kt;--qe>=we;)if(!(A(xe[de],xe[we],xe[qe])>=0&&qe>we)){for(;ae.length>re&&!(A(ae[ae.length-2],ae[ae.length-1],xe[qe])>0);)ae.length-=1;0!=qe&&ae.push(xe[qe])}}return ae},et.clockwiseRadialSweep=function D(ve,xe,Oe){xe.slice(0).sort(function(qe,$e){return Math.atan2(qe.y-ve.y,qe.x-ve.x)-Math.atan2($e.y-ve.y,$e.x-ve.x)}).forEach(Oe)},et.tangent_PolyPolyC=at,et.LRtangent_PolyPolyC=function lt(ve,xe){var Oe=bt(xe,ve);return{t1:Oe.t2,t2:Oe.t1}},et.RLtangent_PolyPolyC=bt,et.LLtangent_PolyPolyC=function Pt(ve,xe){return at(ve,xe,K,K,U,U)},et.RRtangent_PolyPolyC=function Dt(ve,xe){return at(ve,xe,G,G,C,C)};var zt=function ve(xe,Oe){this.t1=xe,this.t2=Oe};et.BiTangent=zt;var Vt=function ve(){};et.BiTangents=Vt;var nt=function(ve){function xe(){return null!==ve&&ve.apply(this,arguments)||this}return d(xe,ve),xe}(v);et.TVGPoint=nt;var Tt=function ve(xe,Oe,qe,$e){this.id=xe,this.polyid=Oe,this.polyvertid=qe,this.p=$e,$e.vv=this};et.VisibilityVertex=Tt;var At=function(){function ve(xe,Oe){this.source=xe,this.target=Oe}return ve.prototype.length=function(){var xe=this.source.p.x-this.target.p.x,Oe=this.source.p.y-this.target.p.y;return Math.sqrt(xe*xe+Oe*Oe)},ve}();et.VisibilityEdge=At;var ft=function(){function ve(xe,Oe){if(this.P=xe,this.V=[],this.E=[],Oe)this.V=Oe.V.slice(0),this.E=Oe.E.slice(0);else{for(var qe=xe.length,$e=0;$e0&&this.E.push(new At(Xt[we-1].vv,Kt))}Xt.length>1&&this.E.push(new At(Xt[0].vv,Xt[Xt.length-1].vv))}for($e=0;$e0)return!0;return!1},ve}();function Et(ve,xe){for(var Oe=[],qe=1,$e=xe.length;qe<$e;++qe){var Xt=p.Rectangle.lineIntersection(ve.x1,ve.y1,ve.x2,ve.y2,xe[qe-1].x,xe[qe-1].y,xe[qe].x,xe[qe].y);Xt&&Oe.push(Xt)}return Oe}function Bt(ve,xe){for(var Oe=ve.length-1,qe=xe.length-1,$e=new Vt,Xt=0;Xt=0&&_n>=0&&ye<0&&gn>=0&&Ue>=0&&un<0?$e.ll=new zt(Xt,we):on<=0&&_n<=0&&ye>0&&gn<=0&&Ue<=0&&un>0?$e.rr=new zt(Xt,we):on<=0&&_n>0&&ye<=0&&gn>=0&&Ue<0&&un>=0?$e.rl=new zt(Xt,we):on>=0&&_n<0&&ye>=0&&gn<=0&&Ue>0&&un<=0&&($e.lr=new zt(Xt,we))}return $e}function se(ve,xe){return!ve.every(function(Oe){return!function It(ve,xe){for(var Oe=1,qe=xe.length;Oe0)return!0}return!1}},76767:(ot,et,b)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=b(4068),p=b(98237),v=b(33858),T=function U(k,D,P){this.id=k,this.rect=D,this.children=P,this.leaf=typeof P>"u"||0===P.length};et.NodeWrapper=T;var t=function U(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};et.Vert=t;var A=function(){function U(k,D){this.s=k,this.t=D;var P=U.findMatch(k,D),I=D.slice(0).reverse(),z=U.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 U.findMatch=function(k,D){for(var P=k.length,I=D.length,z={length:0,si:-1,ti:-1},G=new Array(P),K=0;Kz.length&&(z.length=lt,z.si=K-lt+1,z.ti=at-lt+1)}else G[K][at]=0}return z},U.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},U}();et.LongestCommonSubsequence=A;var C=function(){function U(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(nt,Tt){return new T(Tt,D.getBounds(nt),D.getChildren(nt))}),this.leaves=this.nodes.filter(function(nt){return nt.leaf}),this.groups=this.nodes.filter(function(nt){return!nt.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(nt){return nt.children.forEach(function(Tt){return I.nodes[Tt].parent=nt})}),this.root={children:[]},this.nodes.forEach(function(nt){typeof nt.parent>"u"&&(nt.parent=I.root,I.root.children.push(nt.id)),nt.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(nt,Tt){return I.getDepth(nt)-I.getDepth(Tt)}),this.backToFront.slice(0).reverse().filter(function(nt){return!nt.leaf}).forEach(function(nt){var Tt=d.Rectangle.empty();nt.children.forEach(function(At){return Tt=Tt.union(I.nodes[At].rect)}),nt.rect=Tt.inflate(I.groupPadding)});var G=this.midPoints(this.cols.map(function(nt){return nt.pos})),K=this.midPoints(this.rows.map(function(nt){return nt.pos})),at=G[0],lt=G[G.length-1],bt=K[0],Pt=K[K.length-1],Dt=this.rows.map(function(nt){return{x1:at,x2:lt,y1:nt.pos,y2:nt.pos}}).concat(K.map(function(nt){return{x1:at,x2:lt,y1:nt,y2:nt}})),zt=this.cols.map(function(nt){return{x1:nt.pos,x2:nt.pos,y1:bt,y2:Pt}}).concat(G.map(function(nt){return{x1:nt,x2:nt,y1:bt,y2:Pt}})),Vt=Dt.concat(zt);Vt.forEach(function(nt){return nt.verts=[]}),this.verts=[],this.edges=[],Dt.forEach(function(nt){return zt.forEach(function(Tt){var At=new t(I.verts.length,Tt.x1,nt.y1);nt.verts.push(At),Tt.verts.push(At),I.verts.push(At);for(var ft=I.backToFront.length;ft-- >0;){var Et=I.backToFront[ft],Bt=Et.rect,It=Math.abs(At.x-Bt.cx()),se=Math.abs(At.y-Bt.cy());if(It0;){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,K){return G.pos-K.pos}),D},U.prototype.getDepth=function(k){for(var D=0;k.parent!==this.root;)D++,k=k.parent;return D},U.prototype.midPoints=function(k){for(var D=k[1]-k[0],P=[k[0]-D/2],I=1;I.1)&&bt.push(Pt={pos:at[0][D],segments:[]}),Pt.segments.push(at)}return bt},U.nudgeSegs=function(k,D,P,I,z,G){var K=I.length;if(!(K<=1)){for(var at=I.map(function(Et){return new p.Variable(Et[0][k])}),lt=[],bt=0;bt=0&<.push(new p.Constraint(at[Tt],at[At],G))}new p.Solver(at,lt).solve(),at.forEach(function(Et,Bt){var It=I[Bt],se=Et.position();It[0][k]=It[1][k]=se;var Jt=P[It.edgeid];It.i>0&&(Jt[It.i-1][1][k]=se),It.iMath.PI||z<-Math.PI)&&(z=I-P),z},U.isLeft=function(k,D,P){return(D.x-k.x)*(P.y-k.y)-(D.y-k.y)*(P.x-k.x)<=0},U.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]}},U.orderEdges=function(k){for(var D=[],P=0;P=z.length||K.ti+K.length>=G.length)){D.push({l:P,r:I});continue}K.si+K.length>=z.length||K.ti+K.length>=G.length?(at=z[K.si+1],bt=z[K.si-1],lt=G[K.ti-1]):(at=z[K.si+K.length-2],lt=z[K.si+K.length],bt=G[K.ti+K.length]),U.isLeft(at,lt,bt)?D.push({l:I,r:P}):D.push({l:P,r:I})}}return U.getOrder(D)},U.makeSegments=function(k){function D(lt){return{x:lt.x,y:lt.y}}for(var I=[],z=D(k[0]),G=1;G1&&ve>1?1e3:0}).reverse().map(function(At){return P.verts[At]});return Tt.push(this.nodes[z.id].ports[0]),Tt.filter(function(At,ft){return!(ft0&&At.node===z&&Tt[ft-1].node===z)})},U.getRoutePath=function(k,D,P,I){var K,at,lt,Jt,ve,z={routepath:"M "+k[0][0].x+" "+k[0][0].y+" ",arrowpath:""};if(k.length>1)for(var G=0;G0?at-=bt/Math.abs(bt)*D:lt-=Pt/Math.abs(Pt)*D,z.routepath+="L "+at+" "+lt+" ";var Dt=k[G+1],zt=Dt[0].x,Vt=Dt[0].y;bt=Dt[1].x-zt,Pt=Dt[1].y-Vt;var ft,Et,At=U.angleBetween2Lines(K,Dt)<0?1:0;Math.abs(bt)>0?(ft=zt+bt/Math.abs(bt)*D,Et=Vt):(ft=zt,Et=Vt+Pt/Math.abs(Pt)*D);var Bt=Math.abs(ft-at),It=Math.abs(Et-lt);z.routepath+="A "+Bt+" "+It+" 0 0 "+At+" "+ft+" "+Et+" "}else{var se=[at,lt];Math.abs(bt)>0?(Jt=[at-=bt/Math.abs(bt)*I,lt+P],ve=[at,lt-P]):(Jt=[at+P,lt-=Pt/Math.abs(Pt)*I],ve=[at-P,lt]),z.routepath+="L "+at+" "+lt+" ",I>0&&(z.arrowpath="M "+se[0]+" "+se[1]+" L "+Jt[0]+" "+Jt[1]+" L "+ve[0]+" "+ve[1])}}else bt=(at=(K=k[0])[1].x)-K[0].x,Pt=(lt=K[1].y)-K[0].y,se=[at,lt],Math.abs(bt)>0?(Jt=[at-=bt/Math.abs(bt)*I,lt+P],ve=[at,lt-P]):(Jt=[at+P,lt-=Pt/Math.abs(Pt)*I],ve=[at-P,lt]),z.routepath+="L "+at+" "+lt+" ",I>0&&(z.arrowpath="M "+se[0]+" "+se[1]+" L "+Jt[0]+" "+Jt[1]+" L "+ve[0]+" "+ve[1]);return z},U}();et.GridRouter=C},30345:(ot,et)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var b_GOLDEN_SECTION=(1+Math.sqrt(5))/2;et.applyPacking=function d(v,T,t,G,z,U){void 0===z&&(z=1),void 0===U&&(U=!0);var P=T,I=t,K=(z=typeof z<"u"?z:1,G=typeof G<"u"?G:0,0),at=0,lt=0,bt=0,Pt=[];function nt(Et,Bt){Pt=[],K=0,at=0,bt=0;for(var It=0;It=Et.height&&Pt[se].x+Pt[se].width+Et.width+10-Bt<=1e-4){It=Pt[se];break}Pt.push(Et),void 0!==It?(Et.x=It.x+It.width+10,Et.y=It.bottom,Et.space_left=Et.height,Et.bottom=Et.y,It.space_left-=Et.height+10,It.bottom+=Et.height+10):(Et.y=bt,bt+=Et.height+10,Et.x=0,Et.bottom=Et.y,Et.space_left=Et.height),Et.y+Et.height-at>-1e-4&&(at=Et.y+Et.height-0),Et.x+Et.width-K>-1e-4&&(K=Et.x+Et.width-0)}0!=v.length&&(function Dt(Et){Et.forEach(function(It){!function Bt(It){var se=Number.MAX_VALUE,Jt=Number.MAX_VALUE,ve=0,xe=0;It.array.forEach(function(Oe){var qe=typeof Oe.width<"u"?Oe.width:G,$e=typeof Oe.height<"u"?Oe.height:G;qe/=2,$e/=2,ve=Math.max(Oe.x+qe,ve),se=Math.min(Oe.x-qe,se),xe=Math.max(Oe.y+$e,xe),Jt=Math.min(Oe.y-$e,Jt)}),It.width=ve-se,It.height=xe-Jt}(It)})}(v),function Vt(Et,Bt){var It=Number.POSITIVE_INFINITY,se=0;Et.sort(function(de,Wt){return Wt.height-de.height});for(var Jt=ae=lt=Et.reduce(function(de,Wt){return de.widthlt||we>1e-4;){if(1!=$e){var ae=ve-(ve-Jt)/b_GOLDEN_SECTION;Oe=nt(Et,ae)}if(0!=$e){var Kt=Jt+(ve-Jt)/b_GOLDEN_SECTION;qe=nt(Et,Kt)}if(Xt=Math.abs(ae-Kt),we=Math.abs(Oe-qe),Oeqe?(Jt=ae,ae=Kt,Oe=qe,$e=1):(ve=Kt,Kt=ae,qe=Oe,$e=0),xe++>100)break}nt(Et,se)}(v),U&&function zt(Et){Et.forEach(function(Bt){var It={x:0,y:0};Bt.array.forEach(function(ve){It.x+=ve.x,It.y+=ve.y}),It.x/=Bt.array.length,It.y/=Bt.array.length;var Jt_x=Bt.x-(It.x-Bt.width/2)+P/2-K/2,Jt_y=Bt.y-(It.y-Bt.height/2)+I/2-at/2;Bt.array.forEach(function(ve){ve.x+=Jt_x,ve.y+=Jt_y})})}(v))},et.separateGraphs=function p(v,T){for(var t={},A={},C=[],U=0,k=0;k{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var U,P,d=b(33900),p=b(58802),v=b(91786),T=b(4068),t=b(33858),A=b(30225),C=b(30345);function k(P){return typeof P.leaves<"u"||typeof P.groups<"u"}(P=U=et.EventType||(et.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[U[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(K,[G.px,G.py]));var lt=this._descent.rungeKutta();return 0===lt?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=lt),this._lastStress=lt,this.updateNodePositions(),this.trigger({type:U.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],K=this._nodes.length;K--;)(G=this._nodes[K]).x=I[K],G.y=z[K]},P.prototype.nodes=function(I){if(!I){if(0===this._nodes.length&&this._links.length>0){var z=0;this._links.forEach(function(K){z=Math.max(z,K.source,K.target)}),this._nodes=new Array(++z);for(var G=0;G"u"&&(G.padding=1),typeof G.leaves<"u"&&G.leaves.forEach(function(K,at){"number"==typeof K&&((G.leaves[at]=z._nodes[K]).parent=G)}),typeof G.groups<"u"&&G.groups.forEach(function(K,at){"number"==typeof K&&((G.groups[at]=z._groups[K]).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:U.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(K){return I*K.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(K){return I*K.length}),this._linkLengthCalculator=function(){return p.jaccardLinkLengths(G._links,G.linkAccessor,z)},this},P.prototype.start=function(I,z,G,K,at,lt){var bt=this;void 0===I&&(I=0),void 0===z&&(z=0),void 0===G&&(G=0),void 0===K&&(K=0),void 0===at&&(at=!0),void 0===lt&&(lt=!0);var se,zt=this.nodes().length,Vt=zt+2*this._groups.length,Tt=this._canvasSize[0],At=this._canvasSize[1],ft=new Array(Vt),Et=new Array(Vt),Bt=null,It=this._avoidOverlaps;this._nodes.forEach(function(Xt,we){Xt.index=we,typeof Xt.x>"u"&&(Xt.x=Tt/2,Xt.y=At/2),ft[we]=Xt.x,Et[we]=Xt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?se=this._distanceMatrix:(se=new t.Calculator(Vt,this._links,P.getSourceIndex,P.getTargetIndex,function(Xt){return bt.getLinkLength(Xt)}).DistanceMatrix(),Bt=v.Descent.createSquareMatrix(Vt,function(){return 2}),this._links.forEach(function(Xt){"number"==typeof Xt.source&&(Xt.source=bt._nodes[Xt.source]),"number"==typeof Xt.target&&(Xt.target=bt._nodes[Xt.target])}),this._links.forEach(function(Xt){var we=P.getSourceIndex(Xt),ae=P.getTargetIndex(Xt);Bt[we][ae]=Bt[ae][we]=Xt.weight||1}));var Jt=v.Descent.createSquareMatrix(Vt,function(Xt,we){return se[Xt][we]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var Pt=zt;this._groups.forEach(function(we){(function(we,ae,Kt,de){Bt[we][ae]=Bt[ae][we]=Kt,Jt[we][ae]=Jt[ae][we]=.1})(Pt,Pt+1,bt._groupCompactness),ft[Pt]=0,Et[Pt++]=0,ft[Pt]=0,Et[Pt++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var xe=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,xe=xe.concat(p.generateDirectedEdgeConstraints(zt,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new v.Descent([ft,Et],Jt),this._descent.locks.clear(),Pt=0;Pt0&&(this._descent.project=new T.Projection(this._nodes,this._groups,this._rootGroup,xe).projectFunctions()),this._descent.run(z),this.separateOverlappingComponents(Tt,At,lt),this.avoidOverlaps(It),It&&(this._nodes.forEach(function(Xt,we){Xt.x=ft[we],Xt.y=Et[we]}),this._descent.project=new T.Projection(this._nodes,this._groups,this._rootGroup,xe,!0).projectFunctions(),this._nodes.forEach(function(Xt,we){ft[we]=Xt.x,Et[we]=Xt.y})),this._descent.G=Bt,this._descent.run(G),K){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=zt,this._descent.scaleSnapByMaxH=zt!=Vt;var $e=v.Descent.createSquareMatrix(Vt,function(Xt,we){return Xt>=zt||we>=zt?Bt[Xt][we]:0});this._descent.G=$e,this._descent.run(K)}return this.updateNodePositions(),this.separateOverlappingComponents(Tt,At,lt),at?this.resume():this},P.prototype.initialLayout=function(I,z,G){if(this._groups.length>0&&I>0){var K=this._nodes.length,at=this._links.map(function(bt){return{source:bt.source.index,target:bt.target.index}}),lt=this._nodes.map(function(bt){return{index:bt.index}});this._groups.forEach(function(bt,Pt){lt.push({index:bt.index=K+Pt})}),this._groups.forEach(function(bt,Pt){typeof bt.leaves<"u"&&bt.leaves.forEach(function(Dt){return at.push({source:bt.index,target:Dt.index})}),typeof bt.groups<"u"&&bt.groups.forEach(function(Dt){return at.push({source:bt.index,target:Dt.index})})}),(new P).size(this.size()).nodes(lt).links(at).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(I,0,0,0,!1),this._nodes.forEach(function(bt){z[bt.index]=lt[bt.index].x,G[bt.index]=lt[bt.index].y})}else this._descent.run(I)},P.prototype.separateOverlappingComponents=function(I,z,G){var K=this;if(void 0===G&&(G=!0),!this._distanceMatrix&&this._handleDisconnected){var at=this._descent.x[0],lt=this._descent.x[1];this._nodes.forEach(function(Pt,Dt){Pt.x=at[Dt],Pt.y=lt[Dt]});var bt=C.separateGraphs(this._nodes,this._links);C.applyPacking(bt,I,z,this._defaultNodeSize,1,G),this._nodes.forEach(function(Pt,Dt){K._descent.x[0][Dt]=Pt.x,K._descent.x[1][Dt]=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 K=[],at=new A.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),lt={x:I.source.x,y:I.source.y},bt={x:I.target.x,y:I.target.y},Pt=at.addPoint(lt,I.source.index),Dt=at.addPoint(bt,I.target.index);at.addEdgeIfVisible(lt,bt,I.source.index,I.target.index),typeof G<"u"&&G(at);var At=new t.Calculator(at.V.length,at.E,function(Jt){return Jt.source.id},function(Jt){return Jt.target.id},function(Jt){return Jt.length()}).PathFromNodeToNode(Pt.id,Dt.id);if(1===At.length||At.length===at.V.length){var ft=T.makeEdgeBetween(I.source.innerBounds,I.target.innerBounds,z);K=[ft.sourceIntersection,ft.arrowStart]}else{for(var Et=At.length-2,Bt=at.V[At[Et]].p,It=at.V[At[0]].p,se=(K=[I.source.innerBounds.rayIntersection(Bt.x,Bt.y)],Et);se>=0;--se)K.push(at.V[At[se]].p);K.push(T.makeEdgeTo(It,I.target.innerBounds,z))}return K},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}();et.Layout=D},86461:(ot,et,b)=>{"use strict";Object.defineProperty(et,"__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}();et.Link3D=t,et.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 C=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"&&(K[Pt]=Math.random())}z.result[0][at]=K.x,z.result[1][at]=K.y,z.result[2][at]=K.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 U;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(),K=p.Descent.createSquareMatrix(I,function(Pt,Dt){return G[Pt][Dt]}),at=p.Descent.createSquareMatrix(I,function(){return 2});this.links.forEach(function(Pt){var Dt=Pt.source,zt=Pt.target;return at[Dt][zt]=at[zt][Dt]=1}),this.descent=new p.Descent(this.result,K),this.descent.threshold=.001,this.descent.G=at,this.constraints&&(this.descent.project=new v.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var lt=0;lt{"use strict";function b(U,k){var D={};for(var P in U)D[P]={};for(var P in k)D[P]={};return Object.keys(D).length}function d(U,k){var D=0;for(var P in U)typeof k[P]<"u"&&++D;return D}function v(U,k,D,P){var I=function p(U,k){var D={},P=function(I,z){typeof D[I]>"u"&&(D[I]={}),D[I][z]={}};return U.forEach(function(I){var z=k.getSourceIndex(I),G=k.getTargetIndex(I);P(z,G),P(G,z)}),D}(U,P);U.forEach(function(z){var G=I[P.getSourceIndex(z)],K=I[P.getTargetIndex(z)];P.setLength(z,1+k*D(G,K))})}function C(U,k,D){var P=[],I=0,z=[],G=[];function K(At){At.index=At.lowlink=I++,z.push(At),At.onStack=!0;for(var ft=0,Et=At.out;ft"u"?(K(Bt),At.lowlink=Math.min(At.lowlink,Bt.lowlink)):Bt.onStack&&(At.lowlink=Math.min(At.lowlink,Bt.index))}if(At.lowlink===At.index){for(var It=[];z.length&&((Bt=z.pop()).onStack=!1,It.push(Bt),Bt!==At););G.push(It.map(function(se){return se.id}))}}for(var at=0;at"u"&&K(Tt)}return G}Object.defineProperty(et,"__esModule",{value:!0}),et.symmetricDiffLinkLengths=function T(U,k,D){void 0===D&&(D=1),v(U,D,function(P,I){return Math.sqrt(b(P,I)-d(P,I))},k)},et.jaccardLinkLengths=function t(U,k,D){void 0===D&&(D=1),v(U,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)},et.generateDirectedEdgeConstraints=function A(U,k,D,P){var I=C(U,k,P),z={};I.forEach(function(K,at){return K.forEach(function(lt){return z[lt]=at})});var G=[];return k.forEach(function(K){var at=P.getSourceIndex(K),lt=P.getTargetIndex(K);z[at]!==z[lt]&&G.push({axis:D,left:at,right:lt,gap:P.getMinSeparation(K)})}),G},et.stronglyConnectedComponents=C},33900:(ot,et)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var b=function k(D,P,I){this.source=D,this.target=P,this.type=I};et.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 K=0;K=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(K){var at=P.modules[K.source],lt=P.modules[K.target];D.push(new b(typeof at.gid>"u"?K.source:I[at.gid],typeof lt.gid>"u"?K.target:I[lt.gid],K.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)}})}et.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}();et.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}();et.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]),K=G.count();K>0&&(P.sets[z]=G,P.n+=K)}}),P},k}();et.LinkSets=A,et.getGroups=function U(k,D,P,I){for(var G=new d(k.length,D,P,I);G.greedyMerge(););var K=[],at=G.getGroupHierarchy(K);return K.forEach(function(lt){var bt=function(Pt){var Dt=lt[Pt];"number"==typeof Dt&&(lt[Pt]=k[Dt])};bt("source"),bt("target")}),{groups:at,powerEdges:K}}},88866:(ot,et)=>{"use strict";Object.defineProperty(et,"__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 C=this._root;null!==C;){var U=this._comparator(A,C.data);if(0===U)return C.data;C=C.get_child(U>0)}return null},t.prototype.lowerBound=function(A){return this._bound(A,this._comparator)},t.prototype.upperBound=function(A){var C=this._comparator;return this._bound(A,function U(k,D){return C(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 U,C=this.iterator();null!==(U=C.next());)A(U)},t.prototype.reach=function(A){for(var U,C=this.iterator();null!==(U=C.prev());)A(U)},t.prototype._bound=function(A,C){for(var U=this._root,k=this.iterator();null!==U;){var D=this._comparator(A,U.data);if(0===D)return k._cursor=U,k;k._ancestors.push(U),U=U.get_child(D>0)}for(var P=k._ancestors.length-1;P>=0;--P)if(C(A,(U=k._ancestors[P]).data)>0)return k._cursor=U,k._ancestors.length=P,k;return k._ancestors.length=0,k},t}();et.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 C;do{if(C=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===C)}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 C;do{if(C=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===C)}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}();et.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,C){A?this.right=C:this.left=C},t}(),T=function(t){function A(C){var U=t.call(this)||this;return U._root=null,U._comparator=C,U.size=0,U}return b(A,t),A.prototype.insert=function(C){var U=!1;if(null===this._root)this._root=new v(C),U=!0,this.size++;else{var k=new v(void 0),D=!1,P=!1,I=null,z=k,G=null,K=this._root;for(z.right=this._root;;){if(null===K?(K=new v(C),G.set_child(D,K),U=!0,this.size++):A.is_red(K.left)&&A.is_red(K.right)&&(K.red=!0,K.left.red=!1,K.right.red=!1),A.is_red(K)&&A.is_red(G)){var at=z.right===I;K===G.get_child(P)?z.set_child(at,A.single_rotate(I,!P)):z.set_child(at,A.double_rotate(I,!P))}var lt=this._comparator(K.data,C);if(0===lt)break;P=D,null!==I&&(z=I),I=G,G=K,K=K.get_child(D=lt<0)}this._root=k.right}return this._root.red=!1,U},A.prototype.remove=function(C){if(null===this._root)return!1;var U=new v(void 0),k=U;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 K=this._comparator(C,k.data);if(z=K>0,0===K&&(I=k),!A.is_red(k)&&!A.is_red(k.get_child(z)))if(A.is_red(k.get_child(!z))){var at=A.single_rotate(k,z);D.set_child(G,at),D=at}else if(!A.is_red(k.get_child(!z))){var lt=D.get_child(!G);if(null!==lt)if(A.is_red(lt.get_child(!G))||A.is_red(lt.get_child(G))){var bt=P.right===D;A.is_red(lt.get_child(G))?P.set_child(bt,A.double_rotate(D,G)):A.is_red(lt.get_child(!G))&&P.set_child(bt,A.single_rotate(D,G));var Pt=P.get_child(bt);Pt.red=!0,k.red=!0,Pt.left.red=!1,Pt.right.red=!1}else D.red=!1,lt.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=U.right,null!==this._root&&(this._root.red=!1),null!==I},A.is_red=function(C){return null!==C&&C.red},A.single_rotate=function(C,U){var k=C.get_child(!U);return C.set_child(!U,k.get_child(U)),k.set_child(U,C),C.red=!0,k.red=!1,k},A.double_rotate=function(C,U){return C.set_child(!U,A.single_rotate(C.get_child(!U),!U)),A.single_rotate(C,U)},A}(d);et.RBTree=T},4068:function(ot,et,b){"use strict";var At,d=this&&this.__extends||(At=function(ft,Et){return(At=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bt,It){Bt.__proto__=It}||function(Bt,It){for(var se in It)It.hasOwnProperty(se)&&(Bt[se]=It[se])})(ft,Et)},function(ft,Et){function Bt(){this.constructor=ft}At(ft,Et),ft.prototype=null===Et?Object.create(Et):(Bt.prototype=Et.prototype,new Bt)});Object.defineProperty(et,"__esModule",{value:!0});var p=b(98237),v=b(94655);function T(At){return At.bounds=typeof At.leaves<"u"?At.leaves.reduce(function(ft,Et){return Et.bounds.union(ft)},t.empty()):t.empty(),typeof At.groups<"u"&&(At.bounds=At.groups.reduce(function(ft,Et){return T(Et).union(ft)},At.bounds)),At.bounds=At.bounds.inflate(At.padding),At.bounds}et.computeGroupBounds=T;var t=function(){function At(ft,Et,Bt,It){this.x=ft,this.X=Et,this.y=Bt,this.Y=It}return At.empty=function(){return new At(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},At.prototype.cx=function(){return(this.x+this.X)/2},At.prototype.cy=function(){return(this.y+this.Y)/2},At.prototype.overlapX=function(ft){var Et=this.cx(),Bt=ft.cx();return Et<=Bt&&ft.x0?Bt[0]:null},At.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}]},At.lineIntersection=function(ft,Et,Bt,It,se,Jt,ve,xe){var Oe=Bt-ft,qe=ve-se,$e=It-Et,Xt=xe-Jt,we=Xt*Oe-qe*$e;if(0==we)return null;var ae=ft-se,Kt=Et-Jt,Wt=(qe*Kt-Xt*ae)/we,Pe=(Oe*Kt-$e*ae)/we;return Wt>=0&&Wt<=1&&Pe>=0&&Pe<=1?{x:ft+Wt*Oe,y:Et+Wt*$e}:null},At.prototype.inflate=function(ft){return new At(this.x-ft,this.X+ft,this.y-ft,this.Y+ft)},At}();et.Rectangle=t,et.makeEdgeBetween=function A(At,ft,Et){var Bt=At.rayIntersection(ft.cx(),ft.cy())||{x:At.cx(),y:At.cy()},It=ft.rayIntersection(At.cx(),At.cy())||{x:ft.cx(),y:ft.cy()},se=It.x-Bt.x,Jt=It.y-Bt.y,ve=Math.sqrt(se*se+Jt*Jt),xe=ve-Et;return{sourceIntersection:Bt,targetIntersection:It,arrowStart:{x:Bt.x+xe*se/ve,y:Bt.y+xe*Jt/ve}}},et.makeEdgeTo=function C(At,ft,Et){var Bt=ft.rayIntersection(At.x,At.y);Bt||(Bt={x:ft.cx(),y:ft.cy()});var It=Bt.x-At.x,se=Bt.y-At.y,Jt=Math.sqrt(It*It+se*se);return{x:Bt.x-Et*It/Jt,y:Bt.y-Et*se/Jt}};var U=function At(ft,Et,Bt){this.v=ft,this.r=Et,this.pos=Bt,this.prev=P(),this.next=P()},k=function At(ft,Et,Bt){this.isOpen=ft,this.v=Et,this.pos=Bt};function D(At,ft){return At.pos>ft.pos?1:At.pos0&&(At[Bt].insert(se),se[It].insert(At))};Et("next","prev"),Et("prev","next")}};function G(At,ft,Et,Bt){void 0===Bt&&(Bt=!1);var It=At.padding,se=typeof At.groups<"u"?At.groups.length:0,Jt=typeof At.leaves<"u"?At.leaves.length:0,ve=se?At.groups.reduce(function(_n,ye){return _n.concat(G(ye,ft,Et,!0))},[]):[],xe=(Bt?2:0)+Jt+se,Oe=new Array(xe),qe=new Array(xe),$e=0,Xt=function(_n,ye){qe[$e]=_n,Oe[$e++]=ye};if(Bt){var we=At.bounds,ae=ft.getCentre(we),Kt=ft.getSize(we)/2,de=ft.getOpen(we),Wt=ft.getClose(we),re=ae-Kt+It/2,Pe=ae+Kt-It/2;At.minVar.desiredPosition=re,Xt(ft.makeRect(de,Wt,re,It),At.minVar),At.maxVar.desiredPosition=Pe,Xt(ft.makeRect(de,Wt,Pe,It),At.maxVar)}Jt&&At.leaves.forEach(function(_n){return Xt(_n.bounds,_n.variable)}),se&&At.groups.forEach(function(_n){var ye=_n.bounds;Xt(ft.makeRect(ft.getOpen(ye),ft.getClose(ye),ft.getCentre(ye),ft.getSize(ye)),_n.minVar)});var on=K(qe,Oe,ft,Et);return se&&(Oe.forEach(function(_n){_n.cOut=[],_n.cIn=[]}),on.forEach(function(_n){_n.left.cOut.push(_n),_n.right.cIn.push(_n)}),At.groups.forEach(function(_n){var ye=(_n.padding-ft.getSize(_n.bounds))/2;_n.minVar.cIn.forEach(function(gn){return gn.gap+=ye}),_n.minVar.cOut.forEach(function(gn){gn.left=_n.maxVar,gn.gap+=ye})})),ve.concat(on)}function K(At,ft,Et,Bt){var It,se=At.length,Jt=2*se;console.assert(ft.length>=se);var ve=new Array(Jt);for(It=0;Itve[Bt]&&(ve[Bt]=xe)}Jt=ve})}},At.prototype.createAlignment=function(ft){var Et=this,Bt=this.nodes[ft.offsets[0].node].variable;this.makeFeasible(ft);var It="x"===ft.axis?this.xConstraints:this.yConstraints;ft.offsets.slice(1).forEach(function(se){It.push(new p.Constraint(Bt,Et.nodes[se.node].variable,se.offset,!0))})},At.prototype.createConstraints=function(ft){var Et=this,Bt=function(It){return typeof It.type>"u"||"separation"===It.type};this.xConstraints=ft.filter(function(It){return"x"===It.axis&&Bt(It)}).map(function(It){return Et.createSeparation(It)}),this.yConstraints=ft.filter(function(It){return"y"===It.axis&&Bt(It)}).map(function(It){return Et.createSeparation(It)}),ft.filter(function(It){return"alignment"===It.type}).forEach(function(It){return Et.createAlignment(It)})},At.prototype.setupVariablesAndBounds=function(ft,Et,Bt,It){this.nodes.forEach(function(se,Jt){se.fixed?(se.variable.weight=se.fixedWeight?se.fixedWeight:1e3,Bt[Jt]=It(se)):se.variable.weight=1;var ve=(se.width||0)/2,xe=(se.height||0)/2,Oe=ft[Jt],qe=Et[Jt];se.bounds=new t(Oe-ve,Oe+ve,qe-xe,qe+xe)})},At.prototype.xProject=function(ft,Et,Bt){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(ft,Et,ft,Bt,function(It){return It.px},this.xConstraints,Dt,function(It){return It.bounds.setXCentre(Bt[It.variable.index]=It.variable.position())},function(It){var se=Bt[It.minVar.index]=It.minVar.position(),Jt=Bt[It.maxVar.index]=It.maxVar.position(),ve=It.padding/2;It.bounds.x=se-ve,It.bounds.X=Jt+ve})},At.prototype.yProject=function(ft,Et,Bt){!this.rootGroup&&!this.yConstraints||this.project(ft,Et,Et,Bt,function(It){return It.py},this.yConstraints,zt,function(It){return It.bounds.setYCentre(Bt[It.variable.index]=It.variable.position())},function(It){var se=Bt[It.minVar.index]=It.minVar.position(),Jt=Bt[It.maxVar.index]=It.maxVar.position(),ve=It.padding/2;It.bounds.y=se-ve,It.bounds.Y=Jt+ve})},At.prototype.projectFunctions=function(){var ft=this;return[function(Et,Bt,It){return ft.xProject(Et,Bt,It)},function(Et,Bt,It){return ft.yProject(Et,Bt,It)}]},At.prototype.project=function(ft,Et,Bt,It,se,Jt,ve,xe,Oe){this.setupVariablesAndBounds(ft,Et,It,se),this.rootGroup&&this.avoidOverlaps&&(T(this.rootGroup),Jt=Jt.concat(ve(this.rootGroup))),this.solve(this.variables,Jt,Bt,It),this.nodes.forEach(xe),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(Oe),T(this.rootGroup))},At.prototype.solve=function(ft,Et,Bt,It){var se=new p.Solver(ft,Et);se.setStartingPositions(Bt),se.setDesiredPositions(It),se.solve()},At}();et.Projection=Tt},33858:(ot,et,b)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var d=b(88866),p=function A(C,U){this.id=C,this.distance=U},v=function A(C){this.id=C,this.neighbours=[]},T=function A(C,U,k){this.node=C,this.prev=U,this.d=k},t=function(){function A(C,U,k,D,P){this.n=C,this.es=U,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),K=D(z),at=P(z);this.neighbours[G].neighbours.push(new p(K,at)),this.neighbours[K].neighbours.push(new p(G,at))}}return A.prototype.DistanceMatrix=function(){for(var C=new Array(this.n),U=0;Ult&&(K.d=lt,K.prev=z,k.reduceKey(K.q,K,function(Pt,Dt){return Pt.q=Dt}))}}return P},A}();et.Calculator=t},98237:(ot,et)=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var b=function(){function C(U){this.scale=U,this.AB=0,this.AD=0,this.A2=0}return C.prototype.addVariable=function(U){var k=this.scale/U.scale,P=U.weight;this.AB+=P*k*(U.offset/U.scale),this.AD+=P*k*U.desiredPosition,this.A2+=P*k*k},C.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},C}();et.PositionStats=b;var d=function(){function C(U,k,D,P){void 0===P&&(P=!1),this.left=U,this.right=k,this.gap=D,this.equality=P,this.active=!1,this.unsatisfiable=!1,this.left=U,this.right=k,this.gap=D,this.equality=P}return C.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},C}();et.Constraint=d;var p=function(){function C(U,k,D){void 0===k&&(k=1),void 0===D&&(D=1),this.desiredPosition=U,this.weight=k,this.scale=D,this.offset=0}return C.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},C.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},C.prototype.visitNeighbours=function(U,k){var D=function(P,I){return P.active&&U!==I&&k(P,I)};this.cOut.forEach(function(P){return D(P,P.right)}),this.cIn.forEach(function(P){return D(P,P.left)})},C}();et.Variable=p;var v=function(){function C(U){this.vars=[],U.offset=0,this.ps=new b(U.scale),this.addVariable(U)}return C.prototype.addVariable=function(U){U.block=this,this.vars.push(U),this.ps.addVariable(U),this.posn=this.ps.getPosn()},C.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var U=0,k=this.vars.length;U=0?this.inactive.push(U):this.bs.merge(U)}}},C.prototype.solve=function(){this.satisfy();for(var U=Number.MAX_VALUE,k=this.bs.cost();Math.abs(U-k)>1e-4;)this.satisfy(),U=k,k=this.bs.cost();return k},C.LAGRANGIAN_TOLERANCE=-1e-4,C.ZERO_UPPERBOUND=-1e-10,C}();et.Solver=t,et.removeOverlapInOneDimension=function A(C,U,k){for(var D=C.map(function(nt){return new p(nt.desiredCenter)}),P=[],I=C.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,ot.exports=p,p.id=46700},7100:(ot,et,b)=>{"use strict";b.d(et,{AB:()=>gi,EC:()=>ei,K:()=>dn,g2:()=>An});var d=b(84080),p=b(94650),v=b(42654),T=b(8929),t=b(36787),A=b(29521),C=b(72986),U=b(1059),k=b(7625),D=b(80013),P=b(92198),I=b(99602),z=b(36895),G=b(3238),K=b(40445),at=b(4859),lt=b(21281),bt=b(98184),Pt=b(24006),Dt=b(59549),zt=b(284),Vt=b(97392),nt=b(65412),Tt=b(83353);const At=["ngx-mat-calendar-body",""];function ft(tt,Rt){if(1&tt&&(p.TgZ(0,"tr",2)(1,"td",3),p._uU(2),p.qZA()()),2&tt){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 Et(tt,Rt){if(1&tt&&(p.TgZ(0,"td",7),p._uU(1),p.qZA()),2&tt){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 Bt(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td",8),p.NdJ("click",function(Be){const Gi=p.CHM(Q).$implicit,Co=p.oxw(2);return p.KtG(Co._cellClicked(Gi,Be))}),p.TgZ(1,"div",9),p._uU(2),p.qZA(),p._UZ(3,"div",10),p.qZA()}if(2&tt){const Q=Rt.$implicit,Ft=Rt.index,Be=p.oxw().index,Rn=p.oxw();p.Udp("width",Rn._cellWidth)("padding-top",Rn._cellPadding)("padding-bottom",Rn._cellPadding),p.ekj("mat-calendar-body-disabled",!Q.enabled)("mat-calendar-body-active",Rn._isActiveCell(Be,Ft))("mat-calendar-body-range-start",Rn._isRangeStart(Q.compareValue))("mat-calendar-body-range-end",Rn._isRangeEnd(Q.compareValue))("mat-calendar-body-in-range",Rn._isInRange(Q.compareValue))("mat-calendar-body-comparison-bridge-start",Rn._isComparisonBridgeStart(Q.compareValue,Be,Ft))("mat-calendar-body-comparison-bridge-end",Rn._isComparisonBridgeEnd(Q.compareValue,Be,Ft))("mat-calendar-body-comparison-start",Rn._isComparisonStart(Q.compareValue))("mat-calendar-body-comparison-end",Rn._isComparisonEnd(Q.compareValue))("mat-calendar-body-in-comparison-range",Rn._isInComparisonRange(Q.compareValue))("mat-calendar-body-preview-start",Rn._isPreviewStart(Q.compareValue))("mat-calendar-body-preview-end",Rn._isPreviewEnd(Q.compareValue))("mat-calendar-body-in-preview",Rn._isInPreview(Q.compareValue)),p.Q6J("ngClass",Q.cssClasses)("tabindex",Rn._isActiveCell(Be,Ft)?0:-1),p.uIk("data-mat-row",Be)("data-mat-col",Ft)("aria-label",Q.ariaLabel)("aria-disabled",!Q.enabled||null)("aria-selected",Rn._isSelected(Q)),p.xp6(1),p.ekj("mat-calendar-body-selected",Rn._isSelected(Q))("mat-calendar-body-today",Rn.todayValue===Q.compareValue),p.xp6(1),p.hij(" ",Q.displayValue," ")}}function It(tt,Rt){if(1&tt&&(p.TgZ(0,"tr",4),p.YNc(1,Et,2,6,"td",5),p.YNc(2,Bt,4,44,"td",6),p.qZA()),2&tt){const Q=Rt.$implicit,Ft=Rt.index,Be=p.oxw();p.xp6(1),p.Q6J("ngIf",0===Ft&&Be._firstRowOffset),p.xp6(1),p.Q6J("ngForOf",Q)}}function se(tt,Rt){if(1&tt&&(p.TgZ(0,"th",5),p._uU(1),p.qZA()),2&tt){const Q=Rt.$implicit;p.uIk("aria-label",Q.long),p.xp6(1),p.Oqu(Q.narrow)}}const Jt=["*"];function ve(tt,Rt){}function xe(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"ngx-mat-month-view",5),p.NdJ("activeDateChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn.activeDate=Be)})("selectedChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._dateSelected(Be))})("_userSelection",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be._userSelected())}),p.qZA()}if(2&tt){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 Oe(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"ngx-mat-year-view",6),p.NdJ("activeDateChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn.activeDate=Be)})("monthSelected",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._monthSelectedInYearView(Be))})("selectedChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._goToDateInView(Be,"month"))}),p.qZA()}if(2&tt){const Q=p.oxw();p.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)}}function qe(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"ngx-mat-multi-year-view",7),p.NdJ("activeDateChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn.activeDate=Be)})("yearSelected",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._yearSelectedInMultiYearView(Be))})("selectedChange",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn._goToDateInView(Be,"year"))}),p.qZA()}if(2&tt){const Q=p.oxw();p.Q6J("activeDate",Q.activeDate)("selected",Q.selected)("dateFilter",Q.dateFilter)("maxDate",Q.maxDate)("minDate",Q.minDate)}}function $e(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td")(1,"button",10),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw(2);return p.KtG(Be.change("second",!0))}),p.TgZ(2,"mat-icon"),p._uU(3,"expand_less"),p.qZA()()()}if(2&tt){const Q=p.oxw(2);p.xp6(1),p.Q6J("disabled",Q.disabled||Q.disableMinute)}}function Xt(tt,Rt){1&tt&&p._UZ(0,"td",6)}function we(tt,Rt){1&tt&&p._UZ(0,"td")}function ae(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"tr")(1,"td")(2,"button",10),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.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 Be=p.oxw();return p.KtG(Be.change("minute",!0))}),p.TgZ(8,"mat-icon"),p._uU(9,"expand_less"),p.qZA()()(),p._UZ(10,"td"),p.YNc(11,$e,4,1,"td",3),p.YNc(12,Xt,1,0,"td",8),p.YNc(13,we,1,0,"td",3),p.qZA()}if(2&tt){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 Kt(tt,Rt){1&tt&&(p.TgZ(0,"td",6),p._uU(1,":"),p.qZA())}function de(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td")(1,"mat-form-field",4)(2,"input",11),p.NdJ("input",function(Be){p.CHM(Q);const Rn=p.oxw();return p.KtG(Rn.formatInput(Be.target))})("keydown.ArrowUp",function(Be){return p.CHM(Q),p.oxw().change("second",!0),p.KtG(Be.preventDefault())})("keydown.ArrowDown",function(Be){return p.CHM(Q),p.oxw().change("second",!1),p.KtG(Be.preventDefault())})("blur",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.change("second"))}),p.qZA()()()}}function Wt(tt,Rt){1&tt&&p._UZ(0,"td",6)}function re(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td",12)(1,"button",13),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.toggleMeridian())}),p._uU(2),p.qZA()()}if(2&tt){const Q=p.oxw();p.xp6(1),p.Q6J("color",Q.color)("disabled",Q.disabled),p.xp6(1),p.hij(" ",Q.meridian," ")}}function Pe(tt,Rt){1&tt&&p._UZ(0,"td")}function on(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"td")(1,"button",14),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw(2);return p.KtG(Be.change("second",!1))}),p.TgZ(2,"mat-icon"),p._uU(3,"expand_more"),p.qZA()()()}if(2&tt){const Q=p.oxw(2);p.xp6(1),p.Q6J("disabled",Q.disabled||Q.disableMinute)}}function _n(tt,Rt){1&tt&&p._UZ(0,"td",6)}function ye(tt,Rt){1&tt&&p._UZ(0,"td")}function gn(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"tr")(1,"td")(2,"button",14),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.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 Be=p.oxw();return p.KtG(Be.change("minute",!1))}),p.TgZ(8,"mat-icon"),p._uU(9,"expand_more"),p.qZA()()(),p.YNc(10,Pe,1,0,"td",3),p.YNc(11,on,4,1,"td",3),p.YNc(12,_n,1,0,"td",8),p.YNc(13,ye,1,0,"td",3),p.qZA()}if(2&tt){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 Ue(tt,Rt){if(1&tt){const Q=p.EpF();p.TgZ(0,"div",6)(1,"ngx-mat-timepicker",7),p.NdJ("ngModelChange",function(Be){p.CHM(Q);const Rn=p.oxw(2);return p.KtG(Rn.datepicker._selected=Be)}),p.qZA()()}if(2&tt){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 un(tt,Rt){1&tt&&(p.TgZ(0,"mat-icon"),p._uU(1,"done"),p.qZA())}function Mn(tt,Rt){}function oi(tt,Rt){if(1&tt){const Q=p.EpF();p.ynx(0),p.YNc(1,Ue,2,12,"div",2),p.TgZ(2,"div",3)(3,"button",4),p.NdJ("click",function(){p.CHM(Q);const Be=p.oxw();return p.KtG(Be.datepicker.ok())}),p.YNc(4,un,2,0,"mat-icon",1),p.YNc(5,Mn,0,0,"ng-template",5),p.qZA()(),p.BQk()}if(2&tt){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 bi=new p.OlP("ngx-mat-date-formats");class ri{constructor(Rt,Q,Ft,Be,Rn={},Gi=Rt,Co){this.value=Rt,this.displayValue=Q,this.ariaLabel=Ft,this.enabled=Be,this.cssClasses=Rn,this.compareValue=Gi,this.rawValue=Co}}let Ke=(()=>{class tt{constructor(Q,Ft){this._elementRef=Q,this._ngZone=Ft,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=Be=>{if(this._skipNextFocus&&"focus"===Be.type)this._skipNextFocus=!1;else if(Be.target&&this.isRange){const Rn=this._getCellFromElement(Be.target);Rn&&this._ngZone.run(()=>this.previewChange.emit({value:Rn.enabled?Rn:null,event:Be}))}},this._leaveHandler=Be=>{null!==this.previewEnd&&this.isRange&&Be.target&&ne(Be.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Be}))},Ft.runOutsideAngular(()=>{const Be=Q.nativeElement;Be.addEventListener("mouseenter",this._enterHandler,!0),Be.addEventListener("focus",this._enterHandler,!0),Be.addEventListener("mouseleave",this._leaveHandler,!0),Be.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(Q,Ft){Q.enabled&&this.selectedValueChange.emit({value:Q.value,event:Ft})}_isSelected(Q){return this.startValue===Q.compareValue||this.endValue===Q.compareValue}ngOnChanges(Q){const Ft=Q.numCols,{rows:Be,numCols:Rn}=this;(Q.rows||Ft)&&(this._firstRowOffset=Be&&Be.length&&Be[0].length?Rn-Be[0].length:0),(Q.cellAspectRatio||Ft||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Rn+"%"),(Ft||!this._cellWidth)&&(this._cellWidth=100/Rn+"%")}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,Ft){let Be=Q*this.numCols+Ft;return Q&&(Be-=this._firstRowOffset),Be==this.activeCell}_focusActiveCell(Q=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe((0,C.q)(1)).subscribe(()=>{const Ft=this._elementRef.nativeElement.querySelector(".ngx-mat-calendar-body-active");Ft&&(Q||(this._skipNextFocus=!0),Ft.focus())})})}_isRangeStart(Q){return ct(Q,this.startValue,this.endValue)}_isRangeEnd(Q){return it(Q,this.startValue,this.endValue)}_isInRange(Q){return kt(Q,this.startValue,this.endValue,this.isRange)}_isComparisonStart(Q){return ct(Q,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(Q,Ft,Be){if(!this._isComparisonStart(Q)||this._isRangeStart(Q)||!this._isInRange(Q))return!1;let Rn=this.rows[Ft][Be-1];if(!Rn){const Gi=this.rows[Ft-1];Rn=Gi&&Gi[Gi.length-1]}return Rn&&!this._isRangeEnd(Rn.compareValue)}_isComparisonBridgeEnd(Q,Ft,Be){if(!this._isComparisonEnd(Q)||this._isRangeEnd(Q)||!this._isInRange(Q))return!1;let Rn=this.rows[Ft][Be+1];if(!Rn){const Gi=this.rows[Ft+1];Rn=Gi&&Gi[0]}return Rn&&!this._isRangeStart(Rn.compareValue)}_isComparisonEnd(Q){return it(Q,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(Q){return kt(Q,this.comparisonStart,this.comparisonEnd,this.isRange)}_isPreviewStart(Q){return ct(Q,this.previewStart,this.previewEnd)}_isPreviewEnd(Q){return it(Q,this.previewStart,this.previewEnd)}_isInPreview(Q){return kt(Q,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(Q){let Ft;if(ne(Q)?Ft=Q:ne(Q.parentNode)&&(Ft=Q.parentNode),Ft){const Be=Ft.getAttribute("data-ngx-mat-row"),Rn=Ft.getAttribute("data-ngx-mat-col");if(Be&&Rn)return this.rows[parseInt(Be)][parseInt(Rn)]}return null}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(p.SBq),p.Y36(p.R0b))},tt.\u0275cmp=p.Xpm({type:tt,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:At,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,Ft){1&Q&&(p.YNc(0,ft,3,6,"tr",0),p.YNc(1,It,3,2,"tr",1)),2&Q&&(p.Q6J("ngIf",Ft._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}),tt})();function ne(tt){return"TD"===tt.nodeName}function ct(tt,Rt,Q){return null!==Q&&Rt!==Q&&tt=Rt&&tt===Q}function kt(tt,Rt,Q,Ft){return Ft&&null!==Rt&&null!==Q&&Rt!==Q&&tt>=Rt&&tt<=Q}class Gt extends G._A{isSameTime(Rt,Q){return null==Rt||null==Q||this.getHour(Rt)===this.getHour(Q)&&this.getMinute(Rt)===this.getMinute(Q)&&this.getSecond(Rt)===this.getSecond(Q)}copyTime(Rt,Q){this.setHour(Rt,this.getHour(Q)),this.setMinute(Rt,this.getMinute(Q)),this.setSecond(Rt,this.getSecond(Q))}compareDateWithTime(Rt,Q,Ft){let Be=super.compareDate(Rt,Q)||this.getHour(Rt)-this.getHour(Q)||this.getMinute(Rt)-this.getMinute(Q);return Ft&&(Be=Be||this.getSecond(Rt)-this.getSecond(Q)),Be}setTimeByDefaultValues(Rt,Q){if(!Array.isArray(Q))throw Error("@Input DefaultTime should be an array");this.setHour(Rt,Q[0]||0),this.setMinute(Rt,Q[1]||0),this.setSecond(Rt,Q[2]||0)}}const oe=new p.OlP("NGX_MAT_DATE_RANGE_SELECTION_STRATEGY");let Ce=(()=>{class tt{constructor(Q){this._dateAdapter=Q}selectionFinished(Q,Ft){let{start:Be,end:Rn}=Ft;return null==Be?Be=Q:null==Rn&&Q&&this._dateAdapter.compareDate(Q,Be)>=0?Rn=Q:(Be=Q,Rn=null),new I.C0(Be,Rn)}createPreview(Q,Ft){let Be=null,Rn=null;return Ft.start&&!Ft.end&&Q&&(Be=Ft.start,Rn=Q),new I.C0(Be,Rn)}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.LFG(Gt))},tt.\u0275prov=p.Yz7({token:tt,factory:tt.\u0275fac}),tt})();const Ee={minHour:0,maxHour:24,minMinute:0,maxMinute:60,minSecond:0,maxSecond:60,meridian:12},mi=/[^0-9]/g,Oi=/^(2[0-3]|[0-1][0-9]|[0-9])$/,ho=/^([0-5][0-9]|[0-9])$/,fi=/^([0-5][0-9]|[0-9])$/;function Yn(tt){const Rt=tt.toString();return Rt.length>1?Rt:`0${Rt}`}function jn(tt){return Error(`NgxMatDatepicker: No provider found for ${tt}. You must import one of the following modules at your application root: NgxMatNativeDateModule, NgxMatMomentModule, or provide a custom implementation.`)}let ze=(()=>{class tt{constructor(Q,Ft,Be,Rn,Gi){if(this._changeDetectorRef=Q,this._dateFormats=Ft,this._dateAdapter=Be,this._dir=Rn,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 jn("NgxMatDateAdapter");if(!this._dateFormats)throw jn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){const Ft=this._activeDate,Be=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Be,this.minDate,this.maxDate),this._hasSameMonthAndYear(Ft,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,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(Q){const Ft=Q.value,Be=this._dateAdapter.getYear(this.activeDate),Rn=this._dateAdapter.getMonth(this.activeDate),Gi=this._dateAdapter.createDate(Be,Rn,Ft);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!==Ft||gr!==Ft)&&this.selectedChange.emit(Gi),this._userSelection.emit({value:Gi,event:Q.event})}_handleCalendarBodyKeydown(Q){const Ft=this._activeDate,Be=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Be?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Be?-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(Ft,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:Ft}){if(this._rangeStrategy){const Rn=this._rangeStrategy.createPreview(Ft?Ft.rawValue:null,this.selected,Q);this._previewStart=this._getCellCompareValue(Rn.start),this._previewEnd=this._getCellCompareValue(Rn.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const Q=this._dateAdapter.getFirstDayOfWeek(),Ft=this._dateAdapter.getDayOfWeekNames("narrow");let Rn=this._dateAdapter.getDayOfWeekNames("long").map((Gi,Co)=>({long:Gi,narrow:Ft[Co]}));this._weekdays=Rn.slice(Q).concat(Rn.slice(0,Q))}_createWeekCells(){const Q=this._dateAdapter.getNumDaysInMonth(this.activeDate),Ft=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Be=0,Rn=this._firstWeekOffset;Be=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,Ft){return!(!Q||!Ft||this._dateAdapter.getMonth(Q)!=this._dateAdapter.getMonth(Ft)||this._dateAdapter.getYear(Q)!=this._dateAdapter.getYear(Ft))}_getCellCompareValue(Q){if(Q){const Ft=this._dateAdapter.getYear(Q),Be=this._dateAdapter.getMonth(Q),Rn=this._dateAdapter.getDate(Q);return new Date(Ft,Be,Rn).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 tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(p.sBO),p.Y36(bi,8),p.Y36(Gt,8),p.Y36(K.Is,8),p.Y36(oe,8))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-month-view"]],viewQuery:function(Q,Ft){if(1&Q&&p.Gf(Ke,5),2&Q){let Be;p.iGM(Be=p.CRH())&&(Ft._matCalendarBody=Be.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,Ft){1&Q&&(p.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),p.YNc(3,se,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(Rn){return Ft._dateSelected(Rn)})("previewChange",function(Rn){return Ft._previewChanged(Rn)})("keydown",function(Rn){return Ft._handleCalendarBodyKeydown(Rn)}),p.qZA()()),2&Q&&(p.xp6(3),p.Q6J("ngForOf",Ft._weekdays),p.xp6(3),p.Q6J("label",Ft._monthLabel)("rows",Ft._weeks)("todayValue",Ft._todayDate)("startValue",Ft._rangeStart)("endValue",Ft._rangeEnd)("comparisonStart",Ft._comparisonRangeStart)("comparisonEnd",Ft._comparisonRangeEnd)("previewStart",Ft._previewStart)("previewEnd",Ft._previewEnd)("isRange",Ft._isRange)("labelMinRequiredCells",3)("activeCell",Ft._dateAdapter.getDate(Ft.activeDate)-1))},dependencies:[z.sg,Ke],encapsulation:2,changeDetection:0}),tt})(),le=(()=>{class tt{constructor(Q,Ft,Be){if(this._changeDetectorRef=Q,this._dateAdapter=Ft,this._dir=Be,this._rerenderSubscription=v.w.EMPTY,this.selectedChange=new p.vpe,this.yearSelected=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw jn("NgxMatDateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){let Ft=this._activeDate;const Be=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Be,this.minDate,this.maxDate),Je(this._dateAdapter,Ft,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,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Ft=this._dateAdapter.getYear(this._activeDate)-Lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Be=0,Rn=[];Be<24;Be++)Rn.push(Ft+Be),4==Rn.length&&(this._years.push(Rn.map(Gi=>this._createCellForYear(Gi))),Rn=[]);this._changeDetectorRef.markForCheck()}_yearSelected(Q){const Ft=Q.value;this.yearSelected.emit(this._dateAdapter.createDate(Ft,0,1));let Be=this._dateAdapter.getMonth(this.activeDate),Rn=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Ft,Be,1));this.selectedChange.emit(this._dateAdapter.createDate(Ft,Be,Math.min(this._dateAdapter.getDate(this.activeDate),Rn)))}_handleCalendarBodyKeydown(Q){const Ft=this._activeDate,Be=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Be?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Be?-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,-Lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case A.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Lt(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(Ft,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),Q.preventDefault()}_getActiveCell(){return Lt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(Q){let Ft=this._dateAdapter.getYearName(this._dateAdapter.createDate(Q,0,1));return new ri(Q,Ft,Ft,this._shouldEnableYear(Q))}_shouldEnableYear(Q){if(null==Q||this.maxDate&&Q>this._dateAdapter.getYear(this.maxDate)||this.minDate&&Q{class tt{constructor(Q,Ft,Be,Rn){if(this._changeDetectorRef=Q,this._dateFormats=Ft,this._dateAdapter=Be,this._dir=Rn,this._rerenderSubscription=v.w.EMPTY,this.selectedChange=new p.vpe,this.monthSelected=new p.vpe,this.activeDateChange=new p.vpe,!this._dateAdapter)throw jn("NgxMatDateAdapter");if(!this._dateFormats)throw jn("NGX_MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Q){let Ft=this._activeDate;const Be=this._getValidDateOrNull(this._dateAdapter.deserialize(Q))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Be,this.minDate,this.maxDate),this._dateAdapter.getYear(Ft)!==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,U.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(Q){const Ft=Q.value,Be=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ft,1);this.monthSelected.emit(Be);const Rn=this._dateAdapter.getNumDaysInMonth(Be);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ft,Math.min(this._dateAdapter.getDate(this.activeDate),Rn)))}_handleCalendarBodyKeydown(Q){const Ft=this._activeDate,Be=this._isRtl();switch(Q.keyCode){case A.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Be?1:-1);break;case A.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Be?-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(Ft,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(Ft=>Ft.map(Be=>this._createCellForMonth(Be,Q[Be]))),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,Ft){let Be=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Q,1),this._dateFormats.display.monthYearA11yLabel);return new ri(Q,Ft.toLocaleUpperCase(),Be,this._shouldEnableMonth(Q))}_shouldEnableMonth(Q){const Ft=this._dateAdapter.getYear(this.activeDate);if(null==Q||this._isYearAndMonthAfterMaxDate(Ft,Q)||this._isYearAndMonthBeforeMinDate(Ft,Q))return!1;if(!this.dateFilter)return!0;for(let Rn=this._dateAdapter.createDate(Ft,Q,1);this._dateAdapter.getMonth(Rn)==Q;Rn=this._dateAdapter.addCalendarDays(Rn,1))if(this.dateFilter(Rn))return!0;return!1}_isYearAndMonthAfterMaxDate(Q,Ft){if(this.maxDate){const Be=this._dateAdapter.getYear(this.maxDate),Rn=this._dateAdapter.getMonth(this.maxDate);return Q>Be||Q===Be&&Ft>Rn}return!1}_isYearAndMonthBeforeMinDate(Q,Ft){if(this.minDate){const Be=this._dateAdapter.getYear(this.minDate),Rn=this._dateAdapter.getMonth(this.minDate);return Q{class tt{constructor(Q,Ft,Be,Rn,Gi){this._intl=Q,this.calendar=Ft,this._dateAdapter=Be,this._dateFormats=Rn,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 Ft=this._dateAdapter.getYear(this.calendar.activeDate)-Lt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Be=Ft+24-1;return function Ye(tt,Rt){return`${tt} \u2013 ${Rt}`}(this._dateAdapter.getYearName(this._dateAdapter.createDate(Ft,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(Be,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,Ft){return"month"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(Ft)&&this._dateAdapter.getMonth(Q)==this._dateAdapter.getMonth(Ft):"year"==this.calendar.currentView?this._dateAdapter.getYear(Q)==this._dateAdapter.getYear(Ft):Je(this._dateAdapter,Q,Ft,this.calendar.minDate,this.calendar.maxDate)}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(I.S8),p.Y36((0,p.Gpc)(()=>Fe)),p.Y36(Gt,8),p.Y36(bi,8),p.Y36(p.sBO))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-calendar-header"]],exportAs:["ngxMatCalendarHeader"],ngContentSelectors:Jt,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,Ft){1&Q&&(p.F$t(),p.TgZ(0,"div",0)(1,"div",1)(2,"button",2),p.NdJ("click",function(){return Ft.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 Ft.previousClicked()}),p.qZA(),p.TgZ(8,"button",6),p.NdJ("click",function(){return Ft.nextClicked()}),p.qZA()()()),2&Q&&(p.xp6(2),p.uIk("aria-label",Ft.periodButtonLabel),p.xp6(1),p.hij(" ",Ft.periodButtonText," "),p.xp6(1),p.ekj("mat-calendar-invert","month"!=Ft.calendar.currentView),p.xp6(3),p.Q6J("disabled",!Ft.previousEnabled()),p.uIk("aria-label",Ft.prevButtonLabel),p.xp6(1),p.Q6J("disabled",!Ft.nextEnabled()),p.uIk("aria-label",Ft.nextButtonLabel))},dependencies:[at.lW],encapsulation:2,changeDetection:0}),tt})(),Fe=(()=>{class tt{constructor(Q,Ft,Be,Rn){if(this._dateAdapter=Ft,this._dateFormats=Be,this._changeDetectorRef=Rn,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 jn("NgxDateAdapter");if(!this._dateFormats)throw jn("NGX_MAT_DATE_FORMATS");this._intlChanges=Q.changes.subscribe(()=>{Rn.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||Xe),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 Ft=Q.minDate||Q.maxDate||Q.dateFilter;if(Ft&&!Ft.firstChange){const Be=this._getCurrentViewComponent();Be&&(this._changeDetectorRef.detectChanges(),Be._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,Ft){this.activeDate=Q,this.currentView=Ft}_getValidDateOrNull(Q){return this._dateAdapter.isDateInstance(Q)&&this._dateAdapter.isValid(Q)?Q:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(I.S8),p.Y36(Gt,8),p.Y36(bi,8),p.Y36(p.sBO))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-calendar"]],viewQuery:function(Q,Ft){if(1&Q&&(p.Gf(ze,5),p.Gf(Te,5),p.Gf(le,5)),2&Q){let Be;p.iGM(Be=p.CRH())&&(Ft.monthView=Be.first),p.iGM(Be=p.CRH())&&(Ft.yearView=Be.first),p.iGM(Be=p.CRH())&&(Ft.multiYearView=Be.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,Ft){1&Q&&(p.YNc(0,ve,0,0,"ng-template",0),p.TgZ(1,"div",1),p.YNc(2,xe,1,6,"ngx-mat-month-view",2),p.YNc(3,Oe,1,5,"ngx-mat-year-view",3),p.YNc(4,qe,1,5,"ngx-mat-multi-year-view",4),p.qZA()),2&Q&&(p.Q6J("cdkPortalOutlet",Ft._calendarHeaderPortal),p.xp6(1),p.Q6J("ngSwitch",Ft.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,ze,Te,le],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}),tt})(),Tn=(()=>{class tt{constructor(Q,Ft,Be){if(this._dateAdapter=Q,this.cd=Ft,this.formBuilder=Be,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=Oi,!this._dateAdapter)throw jn("NgxMatDateAdapter");this.form=this.formBuilder.group({hour:[{value:null,disabled:this.disabled},[Pt.kI.required,Pt.kI.pattern(Oi)]],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(fi)]]})}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(mi,"")}toggleMeridian(){this.meridian="AM"===this.meridian?"PM":"AM",this.change("hour")}change(Q,Ft){const Be=this._getNextValueByProp(Q,Ft);this.form.controls[Q].setValue(Yn(Be),{onlySelf:!1,emitEvent:!1}),this._updateModel()}_updateHourMinuteSecond(){let Q=this._dateAdapter.getHour(this._model);const Ft=this._dateAdapter.getMinute(this._model),Be=this._dateAdapter.getSecond(this._model);this.enableMeridian&&(Q>=Ee.meridian?(Q-=Ee.meridian,this.meridian="PM"):this.meridian="AM",0===Q&&(Q=Ee.meridian)),this.form.controls.hour.setValue(Yn(Q)),this.form.controls.minute.setValue(Yn(Ft)),this.form.controls.second.setValue(Yn(Be))}_updateModel(){let Q=this.hour;this.enableMeridian&&("AM"===this.meridian&&Q===Ee.meridian?Q=0:"PM"===this.meridian&&Q!==Ee.meridian&&(Q+=Ee.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,Ft){const Be=Q[0].toUpperCase()+Q.slice(1),Rn=Ee[`min${Be}`];let Co,Gi=Ee[`max${Be}`];return"hour"===Q&&this.enableMeridian&&(Gi=Ee.meridian),null==Ft?(Co=this[Q]%Gi,"hour"===Q&&this.enableMeridian&&0===Co&&(Co=Gi)):(Co=Ft?this[Q]+this[`step${Be}`]:this[Q]-this[`step${Be}`],"hour"===Q&&this.enableMeridian?(Co%=Gi+1,0===Co&&(Co=Ft?1:Gi)):Co%=Gi,Co=Ft?Co>Gi?Co-Gi+Rn:Co:Cott),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,Ft){1&Q&&(p.TgZ(0,"form",0)(1,"table",1)(2,"tbody",2),p.YNc(3,ae,14,5,"tr",3),p.TgZ(4,"tr")(5,"td")(6,"mat-form-field",4)(7,"input",5),p.NdJ("input",function(Rn){return Ft.formatInput(Rn.target)})("keydown.ArrowUp",function(Rn){return Ft.change("hour",!0),Rn.preventDefault()})("keydown.ArrowDown",function(Rn){return Ft.change("hour",!1),Rn.preventDefault()})("blur",function(){return Ft.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(Rn){return Ft.formatInput(Rn.target)})("keydown.ArrowUp",function(Rn){return Ft.change("minute",!0),Rn.preventDefault()})("keydown.ArrowDown",function(Rn){return Ft.change("minute",!1),Rn.preventDefault()})("blur",function(){return Ft.change("minute")}),p.qZA()()(),p.YNc(13,Kt,2,0,"td",8),p.YNc(14,de,3,0,"td",3),p.YNc(15,Wt,1,0,"td",8),p.YNc(16,re,3,3,"td",9),p.qZA(),p.YNc(17,gn,14,6,"tr",3),p.qZA()()()),2&Q&&(p.Q6J("formGroup",Ft.form),p.xp6(3),p.Q6J("ngIf",Ft.showSpinners),p.xp6(10),p.Q6J("ngIf",Ft.showSeconds),p.xp6(1),p.Q6J("ngIf",Ft.showSeconds),p.xp6(1),p.Q6J("ngIf",Ft.enableMeridian),p.xp6(1),p.Q6J("ngIf",Ft.enableMeridian),p.xp6(1),p.Q6J("ngIf",Ft.showSpinners))},dependencies:[z.O5,Dt.KE,zt.Nt,Pt._Y,Pt.Fj,Pt.JJ,Pt.JL,Pt.nD,Pt.sg,Pt.u,Vt.Hw,at.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}),tt})(),he=0;const Re=(0,G.pj)(class{constructor(tt){this._elementRef=tt}});let En=(()=>{class tt extends Re{constructor(Q,Ft,Be){super(Q),this.cd=Ft,this._viewContainerRef=Be}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 tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(p.s_b))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-datetime-content"]],viewQuery:function(Q,Ft){if(1&Q&&(p.Gf(Fe,5),p.Gf(Tn,5)),2&Q){let Be;p.iGM(Be=p.CRH())&&(Ft._calendar=Be.first),p.iGM(Be=p.CRH())&&(Ft._timePicker=Be.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(Q,Ft){2&Q&&(p.d8E("@transformPanel","enter"),p.ekj("mat-datepicker-content-touch",Ft.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,Ft){1&Q&&(p.TgZ(0,"ngx-mat-calendar",0),p.NdJ("selectedChange",function(Rn){return Ft.datepicker.select(Rn)})("yearSelected",function(Rn){return Ft.datepicker._selectYear(Rn)})("monthSelected",function(Rn){return Ft.datepicker._selectMonth(Rn)}),p.qZA(),p.YNc(1,oi,6,5,"ng-container",1)),2&Q&&(p.Q6J("id",Ft.datepicker.id)("ngClass",Ft.datepicker.panelClass)("startAt",Ft.datepicker.startAt)("startView",Ft.datepicker.startView)("minDate",Ft.datepicker._minDate)("maxDate",Ft.datepicker._maxDate)("dateFilter",Ft.datepicker._dateFilter)("headerComponent",Ft.datepicker.calendarHeaderComponent)("selected",Ft.datepicker._selected)("dateClass",Ft.datepicker.dateClass)("@fadeInCalendar","enter"),p.xp6(1),p.Q6J("ngIf",Ft.isViewMonth))},dependencies:[z.mk,z.O5,d.Pl,Pt.JJ,Pt.On,Vt.Hw,at.lW,Tn,Fe],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}),tt})(),gi=(()=>{class tt{constructor(Q,Ft,Be,Rn,Gi,Co,gr,br){if(this._dialog=Q,this._overlay=Ft,this._ngZone=Be,this._viewContainerRef=Rn,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-"+he++,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 jn("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,lt.Ig)(Q)}get hideTime(){return this._hideTime}set hideTime(Q){this._hideTime=(0,lt.Ig)(Q)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(Q){const Ft=(0,lt.Ig)(Q);Ft!==this._disabled&&(this._disabled=Ft,this.stateChanges.next(Ft))}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(),Ft=this._maxValidator();return null==Q&&null==Ft}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(Ft=>this._selected=Ft)}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(En,{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(En,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,C.q)(1)).subscribe(()=>{this._popupRef.updatePosition()}))}_createPopup(){const Q=new bt.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)(Ft=>Ft.keyCode===A.hY||this.datepickerInput&&Ft.altKey&&Ft.keyCode===A.LH))).subscribe(Ft=>{Ft&&Ft.preventDefault(),this._hasBackdrop&&Ft?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 tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(nt.uw),p.Y36(bt.aV),p.Y36(p.R0b),p.Y36(p.s_b),p.Y36(I.Uu),p.Y36(Gt,8),p.Y36(K.Is,8),p.Y36(z.K0,8))},tt.\u0275cmp=p.Xpm({type:tt,selectors:[["ngx-mat-datetime-picker"]],contentQueries:function(Q,Ft,Be){if(1&Q&&p.Suo(Be,p.Rgc,5),2&Q){let Rn;p.iGM(Rn=p.CRH())&&(Ft._customIcon=Rn.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,Ft){},encapsulation:2,changeDetection:0}),tt})();const go={provide:Pt.JU,useExisting:(0,p.Gpc)(()=>An),multi:!0},_o={provide:Pt.Cf,useExisting:(0,p.Gpc)(()=>An),multi:!0};class mn{constructor(Rt,Q){this.target=Rt,this.targetElement=Q,this.value=this.target.value}}let Zi,An=(()=>{class tt{constructor(Q,Ft,Be,Rn){if(this._elementRef=Q,this._dateAdapter=Ft,this._dateFormats=Be,this._formField=Rn,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 jn("NgxMatDateAdapter");if(!this._dateFormats)throw jn("NGX_MAT_DATE_FORMATS");this._localeSubscription=Ft.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(Ft=>{this.value=Ft,this._cvaOnChange(Ft),this._onTouched(),this.dateInput.emit(new mn(this,this._elementRef.nativeElement)),this.dateChange.emit(new mn(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 Ft=this.value;this._value=Q,this._formatValue(Q),this._dateAdapter.sameDate(Ft,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 Ft=null!=Q&&"false"!=`${Q}`,Be=this._elementRef.nativeElement;this._disabled!==Ft&&(this._disabled=Ft,this.stateChanges.emit(void 0)),Ft&&Be.blur&&Be.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 Ft=this._lastValueValid;let Be=this._dateAdapter.parse(Q,this._dateFormats.parse.dateInput);this._lastValueValid=!Be||this._dateAdapter.isValid(Be),Be=this._getValidDateOrNull(Be);const Rn=this._dateAdapter.isSameTime(Be,this._value);null!=Be&&(!Rn||!this._dateAdapter.sameDate(Be,this._value))||null==Be&&null!=this._value?(this._value=Be,this._cvaOnChange(Be),this._valueChange.emit(Be),this.dateInput.emit(new mn(this,this._elementRef.nativeElement))):Ft!==this._lastValueValid&&this._validatorOnChange()}_onChange(){this.dateChange.emit(new mn(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 tt.\u0275fac=function(Q){return new(Q||tt)(p.Y36(p.SBq),p.Y36(Gt,8),p.Y36(bi,8),p.Y36(Dt.KE,8))},tt.\u0275dir=p.lG2({type:tt,selectors:[["input","ngxMatDatetimePicker",""]],hostVars:5,hostBindings:function(Q,Ft){1&Q&&p.NdJ("input",function(Rn){return Ft._onInput(Rn.target.value)})("change",function(){return Ft._onChange()})("blur",function(){return Ft._onBlur()})("focus",function(){return Ft._onFocus()})("keydown",function(Rn){return Ft._onKeydown(Rn)}),2&Q&&(p.Ikx("disabled",Ft.disabled),p.uIk("aria-haspopup",Ft._datepicker?"dialog":null)("aria-owns",(null==Ft._datepicker?null:Ft._datepicker.opened)&&Ft._datepicker.id||null)("min",Ft.min?Ft._dateAdapter.toIso8601(Ft.min):null)("max",Ft.max?Ft._dateAdapter.toIso8601(Ft.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:zt.Jk,useExisting:tt}])]}),tt})(),sn=(()=>{class tt{}return tt.\u0275fac=function(Q){return new(Q||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({imports:[z.ez,zt.c,Pt.UX,Pt.u5,Vt.Ps,at.ot]}),tt})(),ei=(()=>{class tt{}return tt.\u0275fac=function(Q){return new(Q||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({providers:[I.Lv,{provide:oe,useClass:Ce}],imports:[z.ez,I.FA,nt.Is,d.eL,Pt.u5,Vt.Ps,at.ot,zt.c,sn]}),tt})();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"]},Fo=fr(31,tt=>String(tt+1)),ca={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Ia=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function fr(tt,Rt){const Q=Array(tt);for(let Ft=0;Ft{class tt extends Gt{constructor(Q,Ft){super(),this.useUtcForDisplay=!0,super.setLocale(Q),this.useUtcForDisplay=!Ft.TRIDENT,this._clampDate=Ft.TRIDENT||Ft.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 Ft=new Intl.DateTimeFormat(this.locale,{month:Q,timeZone:"utc"});return fr(12,Be=>this._stripDirectionalityCharacters(this._format(Ft,new Date(2017,Be,1))))}return vo[Q]}getDateNames(){if(Zi){const Q=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return fr(31,Ft=>this._stripDirectionalityCharacters(this._format(Q,new Date(2017,0,Ft+1))))}return Fo}getDayOfWeekNames(Q){if(Zi){const Ft=new Intl.DateTimeFormat(this.locale,{weekday:Q,timeZone:"utc"});return fr(7,Be=>this._stripDirectionalityCharacters(this._format(Ft,new Date(2017,0,Be+1))))}return ca[Q]}getYearName(Q){if(Zi){const Ft=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(Ft,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,Ft,Be){if(Ft<0||Ft>11)throw Error(`Invalid month index "${Ft}". Month index has to be between 0 and 11.`);if(Be<1)throw Error(`Invalid date "${Be}". Date has to be greater than 0.`);let Rn=this._createDateWithOverflow(Q,Ft,Be);if(Rn.getMonth()!=Ft)throw Error(`Invalid date "${Be}" for month with index "${Ft}".`);return Rn}today(){return new Date}parse(Q){return"number"==typeof Q?new Date(Q):Q?new Date(Date.parse(Q)):null}format(Q,Ft){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()))),Ft={...Ft,timeZone:"utc"};const Be=new Intl.DateTimeFormat(this.locale,Ft);return this._stripDirectionalityCharacters(this._format(Be,Q))}return this._stripDirectionalityCharacters(Q.toDateString())}addCalendarYears(Q,Ft){return this.addCalendarMonths(Q,12*Ft)}addCalendarMonths(Q,Ft){let Be=this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q)+Ft,this.getDate(Q));return this.getMonth(Be)!=((this.getMonth(Q)+Ft)%12+12)%12&&(Be=this._createDateWithOverflow(this.getYear(Be),this.getMonth(Be),0)),Be}addCalendarDays(Q,Ft){return this._createDateWithOverflow(this.getYear(Q),this.getMonth(Q),this.getDate(Q)+Ft)}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(Ia.test(Q)){let Ft=new Date(Q);if(this.isValid(Ft))return Ft}}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,Ft){Q.setHours(Ft)}setMinute(Q,Ft){Q.setMinutes(Ft)}setSecond(Q,Ft){Q.setSeconds(Ft)}_createDateWithOverflow(Q,Ft,Be){const Rn=new Date(Q,Ft,Be);return Q>=0&&Q<100&&Rn.setFullYear(this.getYear(Rn)-1900),Rn}_2digit(Q){return("00"+Q).slice(-2)}_stripDirectionalityCharacters(Q){return Q.replace(/[\u200e\u200f]/g,"")}_format(Q,Ft){const Be=new Date;return Be.setUTCFullYear(Ft.getFullYear(),Ft.getMonth(),Ft.getDate()),Be.setUTCHours(Ft.getHours(),Ft.getMinutes(),Ft.getSeconds(),Ft.getMilliseconds()),Q.format(Be)}}return tt.\u0275fac=function(Q){return new(Q||tt)(p.LFG(G.Ad,8),p.LFG(Tt.t4))},tt.\u0275prov=p.Yz7({token:tt,factory:tt.\u0275fac}),tt})();const In={year:"numeric",month:"numeric",day:"numeric",hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"},He={parse:{dateInput:In},display:{dateInput:In,monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let ke=(()=>{class tt{}return tt.\u0275fac=function(Q){return new(Q||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({providers:[{provide:Gt,useClass:Ge}],imports:[Tt.ud]}),tt})(),dn=(()=>{class tt{}return tt.\u0275fac=function(Q){return new(Q||tt)},tt.\u0275mod=p.oAB({type:tt}),tt.\u0275inj=p.cJS({providers:[{provide:bi,useValue:He}],imports:[ke]}),tt})()},37340:(ot,et,b)=>{"use strict";b.d(et,{F4:()=>D,IO:()=>K,LC:()=>p,SB:()=>k,X$:()=>T,ZE:()=>Pt,ZN:()=>bt,_j:()=>d,eR:()=>P,jt:()=>t,k1:()=>Dt,l3:()=>v,oB:()=>U,pV:()=>z,ru:()=>A,vP:()=>C});class d{}class p{}const v="*";function T(zt,Vt){return{type:7,name:zt,definitions:Vt,options:{}}}function t(zt,Vt=null){return{type:4,styles:Vt,timings:zt}}function A(zt,Vt=null){return{type:3,steps:zt,options:Vt}}function C(zt,Vt=null){return{type:2,steps:zt,options:Vt}}function U(zt){return{type:6,styles:zt,offset:null}}function k(zt,Vt,nt){return{type:0,name:zt,styles:Vt,options:nt}}function D(zt){return{type:5,steps:zt}}function P(zt,Vt,nt=null){return{type:1,expr:zt,animation:Vt,options:nt}}function z(zt=null){return{type:9,options:zt}}function K(zt,Vt,nt=null){return{type:11,selector:zt,animation:Vt,options:nt}}function lt(zt){Promise.resolve().then(zt)}class bt{constructor(Vt=0,nt=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=Vt+nt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Vt=>Vt()),this._onDoneFns=[])}onStart(Vt){this._originalOnStartFns.push(Vt),this._onStartFns.push(Vt)}onDone(Vt){this._originalOnDoneFns.push(Vt),this._onDoneFns.push(Vt)}onDestroy(Vt){this._onDestroyFns.push(Vt)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){lt(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Vt=>Vt()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Vt=>Vt()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Vt){this._position=this.totalTime?Vt*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Vt){const nt="start"==Vt?this._onStartFns:this._onDoneFns;nt.forEach(Tt=>Tt()),nt.length=0}}class Pt{constructor(Vt){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Vt;let nt=0,Tt=0,At=0;const ft=this.players.length;0==ft?lt(()=>this._onFinish()):this.players.forEach(Et=>{Et.onDone(()=>{++nt==ft&&this._onFinish()}),Et.onDestroy(()=>{++Tt==ft&&this._onDestroy()}),Et.onStart(()=>{++At==ft&&this._onStart()})}),this.totalTime=this.players.reduce((Et,Bt)=>Math.max(Et,Bt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Vt=>Vt()),this._onDoneFns=[])}init(){this.players.forEach(Vt=>Vt.init())}onStart(Vt){this._onStartFns.push(Vt)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Vt=>Vt()),this._onStartFns=[])}onDone(Vt){this._onDoneFns.push(Vt)}onDestroy(Vt){this._onDestroyFns.push(Vt)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Vt=>Vt.play())}pause(){this.players.forEach(Vt=>Vt.pause())}restart(){this.players.forEach(Vt=>Vt.restart())}finish(){this._onFinish(),this.players.forEach(Vt=>Vt.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Vt=>Vt.destroy()),this._onDestroyFns.forEach(Vt=>Vt()),this._onDestroyFns=[])}reset(){this.players.forEach(Vt=>Vt.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Vt){const nt=Vt*this.totalTime;this.players.forEach(Tt=>{const At=Tt.totalTime?Math.min(1,nt/Tt.totalTime):1;Tt.setPosition(At)})}getPosition(){const Vt=this.players.reduce((nt,Tt)=>null===nt||Tt.totalTime>nt.totalTime?Tt:nt,null);return null!=Vt?Vt.getPosition():0}beforeDestroy(){this.players.forEach(Vt=>{Vt.beforeDestroy&&Vt.beforeDestroy()})}triggerCallback(Vt){const nt="start"==Vt?this._onStartFns:this._onDoneFns;nt.forEach(Tt=>Tt()),nt.length=0}}const Dt="!"},12687:(ot,et,b)=>{"use strict";b.d(et,{$s:()=>Bt,Em:()=>xe,Kd:()=>mi,X6:()=>ne,ic:()=>qe,kH:()=>jn,mK:()=>un,qV:()=>Ue,qm:()=>We,rt:()=>en,s1:()=>ve,tE:()=>Yn,yG:()=>ct});var d=b(36895),p=b(94650),v=b(83353),T=b(8929),t=b(42654),A=b(591),C=b(21086),U=b(29521),k=b(22868),D=b(80013),P=b(92198),I=b(24850),z=b(72986),G=b(31307),K=b(75778),at=b(7625),lt=b(21281),bt=b(49643),Pt=b(62289);function nt(le,Je){return(le.getAttribute(Je)||"").match(/\S+/g)||[]}const At="cdk-describedby-message",ft="cdk-describedby-host";let Et=0,Bt=(()=>{class le{constructor(Lt,wt){this._platform=wt,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Et++,this._document=Lt,this._id=(0,p.f3M)(p.AFp)+"-"+Et++}describe(Lt,wt,Ot){if(!this._canBeDescribed(Lt,wt))return;const Te=It(wt,Ot);"string"!=typeof wt?(se(wt,this._id),this._messageRegistry.set(Te,{messageElement:wt,referenceCount:0})):this._messageRegistry.has(Te)||this._createMessageElement(wt,Ot),this._isElementDescribedByMessage(Lt,Te)||this._addMessageReference(Lt,Te)}removeDescription(Lt,wt,Ot){if(!wt||!this._isElementNode(Lt))return;const Te=It(wt,Ot);if(this._isElementDescribedByMessage(Lt,Te)&&this._removeMessageReference(Lt,Te),"string"==typeof wt){const Xe=this._messageRegistry.get(Te);Xe&&0===Xe.referenceCount&&this._deleteMessageElement(Te)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Lt=this._document.querySelectorAll(`[${ft}="${this._id}"]`);for(let wt=0;wt0!=Ot.indexOf(At));Lt.setAttribute("aria-describedby",wt.join(" "))}_addMessageReference(Lt,wt){const Ot=this._messageRegistry.get(wt);(function zt(le,Je,Lt){const wt=nt(le,Je);wt.some(Ot=>Ot.trim()==Lt.trim())||(wt.push(Lt.trim()),le.setAttribute(Je,wt.join(" ")))})(Lt,"aria-describedby",Ot.messageElement.id),Lt.setAttribute(ft,this._id),Ot.referenceCount++}_removeMessageReference(Lt,wt){const Ot=this._messageRegistry.get(wt);Ot.referenceCount--,function Vt(le,Je,Lt){const Ot=nt(le,Je).filter(Te=>Te!=Lt.trim());Ot.length?le.setAttribute(Je,Ot.join(" ")):le.removeAttribute(Je)}(Lt,"aria-describedby",Ot.messageElement.id),Lt.removeAttribute(ft)}_isElementDescribedByMessage(Lt,wt){const Ot=nt(Lt,"aria-describedby"),Te=this._messageRegistry.get(wt),Xe=Te&&Te.messageElement.id;return!!Xe&&-1!=Ot.indexOf(Xe)}_canBeDescribed(Lt,wt){if(!this._isElementNode(Lt))return!1;if(wt&&"object"==typeof wt)return!0;const Ot=null==wt?"":`${wt}`.trim(),Te=Lt.getAttribute("aria-label");return!(!Ot||Te&&Te.trim()===Ot)}_isElementNode(Lt){return Lt.nodeType===this._document.ELEMENT_NODE}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(d.K0),p.LFG(v.t4))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();function It(le,Je){return"string"==typeof le?`${Je||""}/${le}`:le}function se(le,Je){le.id||(le.id=`${At}-${Je}-${Et++}`)}class Jt{constructor(Je){this._items=Je,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=Lt=>Lt.disabled,this._pressedLetters=[],this.tabOut=new T.xQ,this.change=new T.xQ,Je instanceof p.n_E&&Je.changes.subscribe(Lt=>{if(this._activeItem){const Ot=Lt.toArray().indexOf(this._activeItem);Ot>-1&&Ot!==this._activeItemIndex&&(this._activeItemIndex=Ot)}})}skipPredicate(Je){return this._skipPredicateFn=Je,this}withWrap(Je=!0){return this._wrap=Je,this}withVerticalOrientation(Je=!0){return this._vertical=Je,this}withHorizontalOrientation(Je){return this._horizontal=Je,this}withAllowedModifierKeys(Je){return this._allowedModifierKeys=Je,this}withTypeAhead(Je=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,k.b)(Lt=>this._pressedLetters.push(Lt)),(0,D.b)(Je),(0,P.h)(()=>this._pressedLetters.length>0),(0,I.U)(()=>this._pressedLetters.join(""))).subscribe(Lt=>{const wt=this._getItemsArray();for(let Ot=1;Ot!Je[Te]||this._allowedModifierKeys.indexOf(Te)>-1);switch(Lt){case U.Mf:return void this.tabOut.next();case U.JH:if(this._vertical&&Ot){this.setNextItemActive();break}return;case U.LH:if(this._vertical&&Ot){this.setPreviousItemActive();break}return;case U.SV:if(this._horizontal&&Ot){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case U.oh:if(this._horizontal&&Ot){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case U.Sd:if(this._homeAndEnd&&Ot){this.setFirstItemActive();break}return;case U.uR:if(this._homeAndEnd&&Ot){this.setLastItemActive();break}return;default:return void((Ot||(0,U.Vb)(Je,"shiftKey"))&&(Je.key&&1===Je.key.length?this._letterKeyStream.next(Je.key.toLocaleUpperCase()):(Lt>=U.A&&Lt<=U.Z||Lt>=U.xE&&Lt<=U.aO)&&this._letterKeyStream.next(String.fromCharCode(Lt))))}this._pressedLetters=[],Je.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(Je){const Lt=this._getItemsArray(),wt="number"==typeof Je?Je:Lt.indexOf(Je);this._activeItem=Lt[wt]??null,this._activeItemIndex=wt}_setActiveItemByDelta(Je){this._wrap?this._setActiveInWrapMode(Je):this._setActiveInDefaultMode(Je)}_setActiveInWrapMode(Je){const Lt=this._getItemsArray();for(let wt=1;wt<=Lt.length;wt++){const Ot=(this._activeItemIndex+Je*wt+Lt.length)%Lt.length;if(!this._skipPredicateFn(Lt[Ot]))return void this.setActiveItem(Ot)}}_setActiveInDefaultMode(Je){this._setActiveItemByIndex(this._activeItemIndex+Je,Je)}_setActiveItemByIndex(Je,Lt){const wt=this._getItemsArray();if(wt[Je]){for(;this._skipPredicateFn(wt[Je]);)if(!wt[Je+=Lt])return;this.setActiveItem(Je)}}_getItemsArray(){return this._items instanceof p.n_E?this._items.toArray():this._items}}class ve extends Jt{setActiveItem(Je){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Je),this.activeItem&&this.activeItem.setActiveStyles()}}class xe extends Jt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Je){return this._origin=Je,this}setActiveItem(Je){super.setActiveItem(Je),this.activeItem&&this.activeItem.focus(this._origin)}}let qe=(()=>{class le{constructor(Lt){this._platform=Lt}isDisabled(Lt){return Lt.hasAttribute("disabled")}isVisible(Lt){return function Xt(le){return!!(le.offsetWidth||le.offsetHeight||"function"==typeof le.getClientRects&&le.getClientRects().length)}(Lt)&&"visible"===getComputedStyle(Lt).visibility}isTabbable(Lt){if(!this._platform.isBrowser)return!1;const wt=function $e(le){try{return le.frameElement}catch{return null}}(function ye(le){return le.ownerDocument&&le.ownerDocument.defaultView||window}(Lt));if(wt&&(-1===Pe(wt)||!this.isVisible(wt)))return!1;let Ot=Lt.nodeName.toLowerCase(),Te=Pe(Lt);return Lt.hasAttribute("contenteditable")?-1!==Te:!("iframe"===Ot||"object"===Ot||this._platform.WEBKIT&&this._platform.IOS&&!function on(le){let Je=le.nodeName.toLowerCase(),Lt="input"===Je&&le.type;return"text"===Lt||"password"===Lt||"select"===Je||"textarea"===Je}(Lt))&&("audio"===Ot?!!Lt.hasAttribute("controls")&&-1!==Te:"video"===Ot?-1!==Te&&(null!==Te||this._platform.FIREFOX||Lt.hasAttribute("controls")):Lt.tabIndex>=0)}isFocusable(Lt,wt){return function _n(le){return!function ae(le){return function de(le){return"input"==le.nodeName.toLowerCase()}(le)&&"hidden"==le.type}(le)&&(function we(le){let Je=le.nodeName.toLowerCase();return"input"===Je||"select"===Je||"button"===Je||"textarea"===Je}(le)||function Kt(le){return function Wt(le){return"a"==le.nodeName.toLowerCase()}(le)&&le.hasAttribute("href")}(le)||le.hasAttribute("contenteditable")||re(le))}(Lt)&&!this.isDisabled(Lt)&&(wt?.ignoreVisibility||this.isVisible(Lt))}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(v.t4))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();function re(le){if(!le.hasAttribute("tabindex")||void 0===le.tabIndex)return!1;let Je=le.getAttribute("tabindex");return!(!Je||isNaN(parseInt(Je,10)))}function Pe(le){if(!re(le))return null;const Je=parseInt(le.getAttribute("tabindex")||"",10);return isNaN(Je)?-1:Je}class gn{constructor(Je,Lt,wt,Ot,Te=!1){this._element=Je,this._checker=Lt,this._ngZone=wt,this._document=Ot,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Te||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Je){this._enabled=Je,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Je,this._startAnchor),this._toggleAnchorTabIndex(Je,this._endAnchor))}destroy(){const Je=this._startAnchor,Lt=this._endAnchor;Je&&(Je.removeEventListener("focus",this.startAnchorListener),Je.remove()),Lt&&(Lt.removeEventListener("focus",this.endAnchorListener),Lt.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(Je){return new Promise(Lt=>{this._executeOnStable(()=>Lt(this.focusInitialElement(Je)))})}focusFirstTabbableElementWhenReady(Je){return new Promise(Lt=>{this._executeOnStable(()=>Lt(this.focusFirstTabbableElement(Je)))})}focusLastTabbableElementWhenReady(Je){return new Promise(Lt=>{this._executeOnStable(()=>Lt(this.focusLastTabbableElement(Je)))})}_getRegionBoundary(Je){const Lt=this._element.querySelectorAll(`[cdk-focus-region-${Je}], [cdkFocusRegion${Je}], [cdk-focus-${Je}]`);return"start"==Je?Lt.length?Lt[0]:this._getFirstTabbableElement(this._element):Lt.length?Lt[Lt.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Je){const Lt=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Lt){if(!this._checker.isFocusable(Lt)){const wt=this._getFirstTabbableElement(Lt);return wt?.focus(Je),!!wt}return Lt.focus(Je),!0}return this.focusFirstTabbableElement(Je)}focusFirstTabbableElement(Je){const Lt=this._getRegionBoundary("start");return Lt&&Lt.focus(Je),!!Lt}focusLastTabbableElement(Je){const Lt=this._getRegionBoundary("end");return Lt&&Lt.focus(Je),!!Lt}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Je){if(this._checker.isFocusable(Je)&&this._checker.isTabbable(Je))return Je;const Lt=Je.children;for(let wt=0;wt=0;wt--){const Ot=Lt[wt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Lt[wt]):null;if(Ot)return Ot}return null}_createAnchor(){const Je=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Je),Je.classList.add("cdk-visually-hidden"),Je.classList.add("cdk-focus-trap-anchor"),Je.setAttribute("aria-hidden","true"),Je}_toggleAnchorTabIndex(Je,Lt){Je?Lt.setAttribute("tabindex","0"):Lt.removeAttribute("tabindex")}toggleAnchors(Je){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Je,this._startAnchor),this._toggleAnchorTabIndex(Je,this._endAnchor))}_executeOnStable(Je){this._ngZone.isStable?Je():this._ngZone.onStable.pipe((0,z.q)(1)).subscribe(Je)}}let Ue=(()=>{class le{constructor(Lt,wt,Ot){this._checker=Lt,this._ngZone=wt,this._document=Ot}create(Lt,wt=!1){return new gn(Lt,this._checker,this._ngZone,this._document,wt)}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(qe),p.LFG(p.R0b),p.LFG(d.K0))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),un=(()=>{class le{constructor(Lt,wt,Ot){this._elementRef=Lt,this._focusTrapFactory=wt,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(Lt){this.focusTrap.enabled=(0,lt.Ig)(Lt)}get autoCapture(){return this._autoCapture}set autoCapture(Lt){this._autoCapture=(0,lt.Ig)(Lt)}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(Lt){const wt=Lt.autoCapture;wt&&!wt.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,v.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.Y36(p.SBq),p.Y36(Ue),p.Y36(d.K0))},le.\u0275dir=p.lG2({type:le,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[p.TTD]}),le})();function ne(le){return 0===le.buttons||0===le.offsetX&&0===le.offsetY}function ct(le){const Je=le.touches&&le.touches[0]||le.changedTouches&&le.changedTouches[0];return!(!Je||-1!==Je.identifier||null!=Je.radiusX&&1!==Je.radiusX||null!=Je.radiusY&&1!==Je.radiusY)}const it=new p.OlP("cdk-input-modality-detector-options"),kt={ignoreKeys:[U.zL,U.jx,U.b2,U.MW,U.JU]},oe=(0,v.i$)({passive:!0,capture:!0});let Ce=(()=>{class le{constructor(Lt,wt,Ot,Te){this._platform=Lt,this._mostRecentTarget=null,this._modality=new A.X(null),this._lastTouchMs=0,this._onKeydown=Xe=>{this._options?.ignoreKeys?.some(Fe=>Fe===Xe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,v.sA)(Xe))},this._onMousedown=Xe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ne(Xe)?"keyboard":"mouse"),this._mostRecentTarget=(0,v.sA)(Xe))},this._onTouchstart=Xe=>{ct(Xe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,v.sA)(Xe))},this._options={...kt,...Te},this.modalityDetected=this._modality.pipe((0,G.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,K.x)()),Lt.isBrowser&&wt.runOutsideAngular(()=>{Ot.addEventListener("keydown",this._onKeydown,oe),Ot.addEventListener("mousedown",this._onMousedown,oe),Ot.addEventListener("touchstart",this._onTouchstart,oe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,oe),document.removeEventListener("mousedown",this._onMousedown,oe),document.removeEventListener("touchstart",this._onTouchstart,oe))}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(v.t4),p.LFG(p.R0b),p.LFG(d.K0),p.LFG(it,8))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const Ee=new p.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Pn(){return null}}),Ln=new p.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let mi=(()=>{class le{constructor(Lt,wt,Ot,Te){this._ngZone=wt,this._defaultOptions=Te,this._document=Ot,this._liveElement=Lt||this._createLiveElement()}announce(Lt,...wt){const Ot=this._defaultOptions;let Te,Xe;return 1===wt.length&&"number"==typeof wt[0]?Xe=wt[0]:[Te,Xe]=wt,this.clear(),clearTimeout(this._previousTimeout),Te||(Te=Ot&&Ot.politeness?Ot.politeness:"polite"),null==Xe&&Ot&&(Xe=Ot.duration),this._liveElement.setAttribute("aria-live",Te),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Fe=>this._currentResolve=Fe)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Lt,"number"==typeof Xe&&(this._previousTimeout=setTimeout(()=>this.clear(),Xe)),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 Lt="cdk-live-announcer-element",wt=this._document.getElementsByClassName(Lt),Ot=this._document.createElement("div");for(let Te=0;Te{class le{constructor(Lt,wt,Ot,Te,Xe){this._ngZone=Lt,this._platform=wt,this._inputModalityDetector=Ot,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=Fe=>{for(let he=(0,v.sA)(Fe);he;he=he.parentElement)"focus"===Fe.type?this._onFocus(Fe,he):this._onBlur(Fe,he)},this._document=Te,this._detectionMode=Xe?.detectionMode||0}monitor(Lt,wt=!1){const Ot=(0,lt.fI)(Lt);if(!this._platform.isBrowser||1!==Ot.nodeType)return(0,C.of)(null);const Te=(0,v.kV)(Ot)||this._getDocument(),Xe=this._elementInfo.get(Ot);if(Xe)return wt&&(Xe.checkChildren=!0),Xe.subject;const Fe={checkChildren:wt,subject:new T.xQ,rootNode:Te};return this._elementInfo.set(Ot,Fe),this._registerGlobalListeners(Fe),Fe.subject}stopMonitoring(Lt){const wt=(0,lt.fI)(Lt),Ot=this._elementInfo.get(wt);Ot&&(Ot.subject.complete(),this._setClasses(wt),this._elementInfo.delete(wt),this._removeGlobalListeners(Ot))}focusVia(Lt,wt,Ot){const Te=(0,lt.fI)(Lt);Te===this._getDocument().activeElement?this._getClosestElementsInfo(Te).forEach(([Fe,Tn])=>this._originChanged(Fe,wt,Tn)):(this._setOrigin(wt),"function"==typeof Te.focus&&Te.focus(Ot))}ngOnDestroy(){this._elementInfo.forEach((Lt,wt)=>this.stopMonitoring(wt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Lt){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Lt)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Lt&&this._isLastInteractionFromInputLabel(Lt)?"mouse":"program"}_shouldBeAttributedToTouch(Lt){return 1===this._detectionMode||!!Lt?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Lt,wt){Lt.classList.toggle("cdk-focused",!!wt),Lt.classList.toggle("cdk-touch-focused","touch"===wt),Lt.classList.toggle("cdk-keyboard-focused","keyboard"===wt),Lt.classList.toggle("cdk-mouse-focused","mouse"===wt),Lt.classList.toggle("cdk-program-focused","program"===wt)}_setOrigin(Lt,wt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Lt,this._originFromTouchInteraction="touch"===Lt&&wt,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Lt,wt){const Ot=this._elementInfo.get(wt),Te=(0,v.sA)(Lt);!Ot||!Ot.checkChildren&&wt!==Te||this._originChanged(wt,this._getFocusOrigin(Te),Ot)}_onBlur(Lt,wt){const Ot=this._elementInfo.get(wt);!Ot||Ot.checkChildren&&Lt.relatedTarget instanceof Node&&wt.contains(Lt.relatedTarget)||(this._setClasses(wt),this._emitOrigin(Ot,null))}_emitOrigin(Lt,wt){Lt.subject.observers.length&&this._ngZone.run(()=>Lt.subject.next(wt))}_registerGlobalListeners(Lt){if(!this._platform.isBrowser)return;const wt=Lt.rootNode,Ot=this._rootNodeFocusListenerCount.get(wt)||0;Ot||this._ngZone.runOutsideAngular(()=>{wt.addEventListener("focus",this._rootNodeFocusAndBlurListener,fi),wt.addEventListener("blur",this._rootNodeFocusAndBlurListener,fi)}),this._rootNodeFocusListenerCount.set(wt,Ot+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,at.R)(this._stopInputModalityDetector)).subscribe(Te=>{this._setOrigin(Te,!0)}))}_removeGlobalListeners(Lt){const wt=Lt.rootNode;if(this._rootNodeFocusListenerCount.has(wt)){const Ot=this._rootNodeFocusListenerCount.get(wt);Ot>1?this._rootNodeFocusListenerCount.set(wt,Ot-1):(wt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,fi),wt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,fi),this._rootNodeFocusListenerCount.delete(wt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Lt,wt,Ot){this._setClasses(Lt,wt),this._emitOrigin(Ot,wt),this._lastFocusOrigin=wt}_getClosestElementsInfo(Lt){const wt=[];return this._elementInfo.forEach((Ot,Te)=>{(Te===Lt||Ot.checkChildren&&Te.contains(Lt))&&wt.push([Te,Ot])}),wt}_isLastInteractionFromInputLabel(Lt){const{_mostRecentTarget:wt,mostRecentModality:Ot}=this._inputModalityDetector;if("mouse"!==Ot||!wt||wt===Lt||"INPUT"!==Lt.nodeName&&"TEXTAREA"!==Lt.nodeName||Lt.disabled)return!1;const Te=Lt.labels;if(Te)for(let Xe=0;Xe{class le{constructor(Lt,wt){this._elementRef=Lt,this._focusMonitor=wt,this._focusOrigin=null,this.cdkFocusChange=new p.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const Lt=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Lt,1===Lt.nodeType&&Lt.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(wt=>{this._focusOrigin=wt,this.cdkFocusChange.emit(wt)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.Y36(p.SBq),p.Y36(Yn))},le.\u0275dir=p.lG2({type:le,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]}),le})();const Ye="cdk-high-contrast-black-on-white",fn="cdk-high-contrast-white-on-black",ze="cdk-high-contrast-active";let We=(()=>{class le{constructor(Lt,wt){this._platform=Lt,this._document=wt,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 Lt=this._document.createElement("div");Lt.style.backgroundColor="rgb(1,2,3)",Lt.style.position="absolute",this._document.body.appendChild(Lt);const wt=this._document.defaultView||window,Ot=wt&&wt.getComputedStyle?wt.getComputedStyle(Lt):null,Te=(Ot&&Ot.backgroundColor||"").replace(/ /g,"");switch(Lt.remove(),Te){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 Lt=this._document.body.classList;Lt.remove(ze,Ye,fn),this._hasCheckedHighContrastMode=!0;const wt=this.getHighContrastMode();1===wt?Lt.add(ze,Ye):2===wt&&Lt.add(ze,fn)}}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(v.t4),p.LFG(d.K0))},le.\u0275prov=p.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),en=(()=>{class le{constructor(Lt){Lt._applyBodyHighContrastModeCssClasses()}}return le.\u0275fac=function(Lt){return new(Lt||le)(p.LFG(We))},le.\u0275mod=p.oAB({type:le}),le.\u0275inj=p.cJS({imports:[bt.Q8]}),le})()},40445:(ot,et,b)=>{"use strict";b.d(et,{Is:()=>C,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 C=(()=>{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:(ot,et,b)=>{"use strict";b.d(et,{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 U{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 U.\u0275fac=function(D){return new(D||U)(p.LFG(d.K0))},U.\u0275prov=p.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})()},21281:(ot,et,b)=>{"use strict";b.d(et,{Eq:()=>t,HM:()=>A,Ig:()=>p,du:()=>U,fI:()=>C,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 C(k){return k instanceof d.SBq?k.nativeElement:k}function U(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:(ot,et,b)=>{"use strict";b.d(et,{A8:()=>P,Ov:()=>k,Z9:()=>t,eX:()=>U,k:()=>I,o2:()=>T,yy:()=>C});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 C{applyChanges(G,K,at,lt,bt){G.forEachOperation((Pt,Dt,zt)=>{let Vt,nt;if(null==Pt.previousIndex){const Tt=at(Pt,Dt,zt);Vt=K.createEmbeddedView(Tt.templateRef,Tt.context,Tt.index),nt=1}else null==zt?(K.remove(Dt),nt=3):(Vt=K.get(Dt),K.move(Vt,zt),nt=2);bt&&bt({context:Vt?.context,operation:nt,record:Pt})})}detach(){}}class U{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(G,K,at,lt,bt){G.forEachOperation((Pt,Dt,zt)=>{let Vt,nt;null==Pt.previousIndex?(Vt=this._insertView(()=>at(Pt,Dt,zt),zt,K,lt(Pt)),nt=Vt?1:0):null==zt?(this._detachAndCacheView(Dt,K),nt=3):(Vt=this._moveView(Dt,zt,K,lt(Pt)),nt=2),bt&&bt({context:Vt?.context,operation:nt,record:Pt})})}detach(){for(const G of this._viewCache)G.destroy();this._viewCache=[]}_insertView(G,K,at,lt){const bt=this._insertViewFromCache(K,at);if(bt)return void(bt.context.$implicit=lt);const Pt=G();return at.createEmbeddedView(Pt.templateRef,Pt.context,Pt.index)}_detachAndCacheView(G,K){const at=K.detach(G);this._maybeCacheView(at,K)}_moveView(G,K,at,lt){const bt=at.get(G);return at.move(bt,K),bt.context.$implicit=lt,bt}_maybeCacheView(G,K){if(this._viewCache.lengththis._markSelected(bt)):this._markSelected(K[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(at=>this._markSelected(at));const K=this._hasQueuedChanges();return this._emitChangeEvent(),K}deselect(...G){this._verifyValueAssignment(G),G.forEach(at=>this._unmarkSelected(at));const K=this._hasQueuedChanges();return this._emitChangeEvent(),K}setSelection(...G){this._verifyValueAssignment(G);const K=this.selected,at=new Set(G);G.forEach(bt=>this._markSelected(bt)),K.filter(bt=>!at.has(bt)).forEach(bt=>this._unmarkSelected(bt));const lt=this._hasQueuedChanges();return this._emitChangeEvent(),lt}toggle(G){return this.isSelected(G)?this.deselect(G):this.select(G)}clear(G=!0){this._unmarkAll();const K=this._hasQueuedChanges();return G&&this._emitChangeEvent(),K}isSelected(G){if(this.compareWith){for(const K of this._selection)if(this.compareWith(K,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(K,at){for(let lt of this._listeners)lt(K,at)}listen(K){return this._listeners.push(K),()=>{this._listeners=this._listeners.filter(at=>K!==at)}}ngOnDestroy(){this._listeners=[]}}return z.\u0275fac=function(K){return new(K||z)},z.\u0275prov=v.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();const I=new v.OlP("_ViewRepeater")},73555:(ot,et,b)=>{"use strict";b.d(et,{Wj:()=>fi,Zt:()=>le,_t:()=>Je,bA:()=>ye});var d=b(94650),p=b(36895),v=b(67376),T=b(83353),t=b(21281),A=b(12687),C=b(8929),U=b(42654),k=b(61715),D=b(90352),P=b(56498),I=b(36787),z=b(7625),G=b(1059),K=b(24850),at=b(72986),lt=b(22868),bt=b(87545),Pt=b(40445);function Dt(Lt,wt,Ot){for(let Te in wt)if(wt.hasOwnProperty(Te)){const Xe=wt[Te];Xe?Lt.setProperty(Te,Xe,Ot?.has(Te)?"important":""):Lt.removeProperty(Te)}return Lt}function zt(Lt,wt){const Ot=wt?"":"none";Dt(Lt.style,{"touch-action":wt?"":"none","-webkit-user-drag":wt?"":"none","-webkit-tap-highlight-color":wt?"":"transparent","user-select":Ot,"-ms-user-select":Ot,"-webkit-user-select":Ot,"-moz-user-select":Ot})}function Vt(Lt,wt,Ot){Dt(Lt.style,{position:wt?"":"fixed",top:wt?"":"0",opacity:wt?"":"0",left:wt?"":"-999em"},Ot)}function nt(Lt,wt){return wt&&"none"!=wt?Lt+" "+wt:Lt}function Tt(Lt){const wt=Lt.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Lt)*wt}function ft(Lt,wt){return Lt.getPropertyValue(wt).split(",").map(Te=>Te.trim())}function Et(Lt){const wt=Lt.getBoundingClientRect();return{top:wt.top,right:wt.right,bottom:wt.bottom,left:wt.left,width:wt.width,height:wt.height,x:wt.x,y:wt.y}}function Bt(Lt,wt,Ot){const{top:Te,bottom:Xe,left:Fe,right:Tn}=Lt;return Ot>=Te&&Ot<=Xe&&wt>=Fe&&wt<=Tn}function It(Lt,wt,Ot){Lt.top+=wt,Lt.bottom=Lt.top+Lt.height,Lt.left+=Ot,Lt.right=Lt.left+Lt.width}function se(Lt,wt,Ot,Te){const{top:Xe,right:Fe,bottom:Tn,left:he,width:Re,height:En}=Lt,gi=Re*wt,go=En*wt;return Te>Xe-go&&Tehe-gi&&Ot{this.positions.set(Ot,{scrollPosition:{top:Ot.scrollTop,left:Ot.scrollLeft},clientRect:Et(Ot)})})}handleScroll(wt){const Ot=(0,T.sA)(wt),Te=this.positions.get(Ot);if(!Te)return null;const Xe=Te.scrollPosition;let Fe,Tn;if(Ot===this._document){const En=this.getViewportScrollPosition();Fe=En.top,Tn=En.left}else Fe=Ot.scrollTop,Tn=Ot.scrollLeft;const he=Xe.top-Fe,Re=Xe.left-Tn;return this.positions.forEach((En,gi)=>{En.clientRect&&Ot!==gi&&Ot.contains(gi)&&It(En.clientRect,he,Re)}),Xe.top=Fe,Xe.left=Tn,{top:he,left:Re}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function ve(Lt){const wt=Lt.cloneNode(!0),Ot=wt.querySelectorAll("[id]"),Te=Lt.nodeName.toLowerCase();wt.removeAttribute("id");for(let Xe=0;Xe{if(this.beforeStarted.next(),this._handles.length){const Re=this._getTargetHandle(he);Re&&!this._disabledHandles.has(Re)&&!this.disabled&&this._initializeDragSequence(Re,he)}else this.disabled||this._initializeDragSequence(this._rootElement,he)},this._pointerMove=he=>{const Re=this._getPointerPositionOnPage(he);if(!this._hasStartedDragging){if(Math.abs(Re.x-this._pickupPositionOnPage.x)+Math.abs(Re.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const mn=Date.now()>=this._dragStartTime+this._getDragStartDelay(he),An=this._dropContainer;if(!mn)return void this._endDragSequence(he);(!An||!An.isDragging()&&!An.isReceiving())&&(he.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(he)))}return}he.preventDefault();const En=this._getConstrainedPointerPosition(Re);if(this._hasMoved=!0,this._lastKnownPointerPosition=Re,this._updatePointerDirectionDelta(En),this._dropContainer)this._updateActiveDropContainer(En,Re);else{const gi=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,go=this._activeTransform;go.x=En.x-gi.x+this._passiveTransform.x,go.y=En.y-gi.y+this._passiveTransform.y,this._applyRootElementTransform(go.x,go.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:En,event:he,distance:this._getDragDistance(En),delta:this._pointerDirectionDelta})})},this._pointerUp=he=>{this._endDragSequence(he)},this._nativeDragStart=he=>{if(this._handles.length){const Re=this._getTargetHandle(he);Re&&!this._disabledHandles.has(Re)&&!this.disabled&&he.preventDefault()}else this.disabled||he.preventDefault()},this.withRootElement(wt).withParent(Ot.parentDragRef||null),this._parentPositions=new Jt(Te),Tn.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(wt){const Ot=(0,t.Ig)(wt);Ot!==this._disabled&&(this._disabled=Ot,this._toggleNativeDragInteractions(),this._handles.forEach(Te=>zt(Te,Ot)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(wt){this._handles=wt.map(Te=>(0,t.fI)(Te)),this._handles.forEach(Te=>zt(Te,this.disabled)),this._toggleNativeDragInteractions();const Ot=new Set;return this._disabledHandles.forEach(Te=>{this._handles.indexOf(Te)>-1&&Ot.add(Te)}),this._disabledHandles=Ot,this}withPreviewTemplate(wt){return this._previewTemplate=wt,this}withPlaceholderTemplate(wt){return this._placeholderTemplate=wt,this}withRootElement(wt){const Ot=(0,t.fI)(wt);return Ot!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{Ot.addEventListener("mousedown",this._pointerDown,we),Ot.addEventListener("touchstart",this._pointerDown,Xt),Ot.addEventListener("dragstart",this._nativeDragStart,we)}),this._initialTransform=void 0,this._rootElement=Ot),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(wt){return this._boundaryElement=wt?(0,t.fI)(wt):null,this._resizeSubscription.unsubscribe(),wt&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(wt){return this._parentDragRef=wt,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(wt){!this._disabledHandles.has(wt)&&this._handles.indexOf(wt)>-1&&(this._disabledHandles.add(wt),zt(wt,!0))}enableHandle(wt){this._disabledHandles.has(wt)&&(this._disabledHandles.delete(wt),zt(wt,this.disabled))}withDirection(wt){return this._direction=wt,this}_withDropContainer(wt){this._dropContainer=wt}getFreeDragPosition(){const wt=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:wt.x,y:wt.y}}setFreeDragPosition(wt){return this._activeTransform={x:0,y:0},this._passiveTransform.x=wt.x,this._passiveTransform.y=wt.y,this._dropContainer||this._applyRootElementTransform(wt.x,wt.y),this}withPreviewContainer(wt){return this._previewContainer=wt,this}_sortFromLastPointerPosition(){const wt=this._lastKnownPointerPosition;wt&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(wt),wt)}_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(wt){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:wt}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(wt),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const Ot=this._getPointerPositionOnPage(wt);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(Ot),dropPoint:Ot,event:wt})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(wt){Pe(wt)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const Ot=this._dropContainer;if(Ot){const Te=this._rootElement,Xe=Te.parentNode,Fe=this._placeholder=this._createPlaceholderElement(),Tn=this._anchor=this._anchor||this._document.createComment(""),he=this._getShadowRoot();Xe.insertBefore(Tn,Te),this._initialTransform=Te.style.transform||"",this._preview=this._createPreviewElement(),Vt(Te,!1,Kt),this._document.body.appendChild(Xe.replaceChild(Fe,Te)),this._getPreviewInsertionPoint(Xe,he).appendChild(this._preview),this.started.next({source:this,event:wt}),Ot.start(),this._initialContainer=Ot,this._initialIndex=Ot.getItemIndex(this)}else this.started.next({source:this,event:wt}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(Ot?Ot.getScrollableParents():[])}_initializeDragSequence(wt,Ot){this._parentDragRef&&Ot.stopPropagation();const Te=this.isDragging(),Xe=Pe(Ot),Fe=!Xe&&0!==Ot.button,Tn=this._rootElement,he=(0,T.sA)(Ot),Re=!Xe&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),En=Xe?(0,A.yG)(Ot):(0,A.X6)(Ot);if(he&&he.draggable&&"mousedown"===Ot.type&&Ot.preventDefault(),Te||Fe||Re||En)return;if(this._handles.length){const _o=Tn.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=Et(this._boundaryElement));const gi=this._previewTemplate;this._pickupPositionInElement=gi&&gi.template&&!gi.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,wt,Ot);const go=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(Ot);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:go.x,y:go.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,Ot)}_cleanupDragArtifacts(wt){Vt(this._rootElement,!0,Kt),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 Ot=this._dropContainer,Te=Ot.getItemIndex(this),Xe=this._getPointerPositionOnPage(wt),Fe=this._getDragDistance(Xe),Tn=Ot._isOverContainer(Xe.x,Xe.y);this.ended.next({source:this,distance:Fe,dropPoint:Xe,event:wt}),this.dropped.next({item:this,currentIndex:Te,previousIndex:this._initialIndex,container:Ot,previousContainer:this._initialContainer,isPointerOverContainer:Tn,distance:Fe,dropPoint:Xe,event:wt}),Ot.drop(this,Te,this._initialIndex,this._initialContainer,Tn,Fe,Xe,wt),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:wt,y:Ot},{x:Te,y:Xe}){let Fe=this._initialContainer._getSiblingContainerFromPosition(this,wt,Ot);!Fe&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(wt,Ot)&&(Fe=this._initialContainer),Fe&&Fe!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=Fe,this._dropContainer.enter(this,wt,Ot,Fe===this._initialContainer&&Fe.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:Fe,currentIndex:Fe.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(Te,Xe),this._dropContainer._sortItem(this,wt,Ot,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(wt,Ot):this._applyPreviewTransform(wt-this._pickupPositionInElement.x,Ot-this._pickupPositionInElement.y))}_createPreviewElement(){const wt=this._previewTemplate,Ot=this.previewClass,Te=wt?wt.template:null;let Xe;if(Te&&wt){const Fe=wt.matchSize?this._initialClientRect:null,Tn=wt.viewContainer.createEmbeddedView(Te,wt.context);Tn.detectChanges(),Xe=on(Tn,this._document),this._previewRef=Tn,wt.matchSize?_n(Xe,Fe):Xe.style.transform=Wt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else Xe=ve(this._rootElement),_n(Xe,this._initialClientRect),this._initialTransform&&(Xe.style.transform=this._initialTransform);return Dt(Xe.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Kt),zt(Xe,!1),Xe.classList.add("cdk-drag-preview"),Xe.setAttribute("dir",this._direction),Ot&&(Array.isArray(Ot)?Ot.forEach(Fe=>Xe.classList.add(Fe)):Xe.classList.add(Ot)),Xe}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const wt=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(wt.left,wt.top);const Ot=function At(Lt){const wt=getComputedStyle(Lt),Ot=ft(wt,"transition-property"),Te=Ot.find(he=>"transform"===he||"all"===he);if(!Te)return 0;const Xe=Ot.indexOf(Te),Fe=ft(wt,"transition-duration"),Tn=ft(wt,"transition-delay");return Tt(Fe[Xe])+Tt(Tn[Xe])}(this._preview);return 0===Ot?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(Te=>{const Xe=Tn=>{(!Tn||(0,T.sA)(Tn)===this._preview&&"transform"===Tn.propertyName)&&(this._preview?.removeEventListener("transitionend",Xe),Te(),clearTimeout(Fe))},Fe=setTimeout(Xe,1.5*Ot);this._preview.addEventListener("transitionend",Xe)}))}_createPlaceholderElement(){const wt=this._placeholderTemplate,Ot=wt?wt.template:null;let Te;return Ot?(this._placeholderRef=wt.viewContainer.createEmbeddedView(Ot,wt.context),this._placeholderRef.detectChanges(),Te=on(this._placeholderRef,this._document)):Te=ve(this._rootElement),Te.style.pointerEvents="none",Te.classList.add("cdk-drag-placeholder"),Te}_getPointerPositionInElement(wt,Ot,Te){const Xe=Ot===this._rootElement?null:Ot,Fe=Xe?Xe.getBoundingClientRect():wt,Tn=Pe(Te)?Te.targetTouches[0]:Te,he=this._getViewportScrollPosition();return{x:Fe.left-wt.left+(Tn.pageX-Fe.left-he.left),y:Fe.top-wt.top+(Tn.pageY-Fe.top-he.top)}}_getPointerPositionOnPage(wt){const Ot=this._getViewportScrollPosition(),Te=Pe(wt)?wt.touches[0]||wt.changedTouches[0]||{pageX:0,pageY:0}:wt,Xe=Te.pageX-Ot.left,Fe=Te.pageY-Ot.top;if(this._ownerSVGElement){const Tn=this._ownerSVGElement.getScreenCTM();if(Tn){const he=this._ownerSVGElement.createSVGPoint();return he.x=Xe,he.y=Fe,he.matrixTransform(Tn.inverse())}}return{x:Xe,y:Fe}}_getConstrainedPointerPosition(wt){const Ot=this._dropContainer?this._dropContainer.lockAxis:null;let{x:Te,y:Xe}=this.constrainPosition?this.constrainPosition(wt,this,this._initialClientRect,this._pickupPositionInElement):wt;if("x"===this.lockAxis||"x"===Ot?Xe=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===Ot)&&(Te=this._pickupPositionOnPage.x),this._boundaryRect){const{x:Fe,y:Tn}=this._pickupPositionInElement,he=this._boundaryRect,{width:Re,height:En}=this._getPreviewRect(),gi=he.top+Tn,go=he.bottom-(En-Tn);Te=re(Te,he.left+Fe,he.right-(Re-Fe)),Xe=re(Xe,gi,go)}return{x:Te,y:Xe}}_updatePointerDirectionDelta(wt){const{x:Ot,y:Te}=wt,Xe=this._pointerDirectionDelta,Fe=this._pointerPositionAtLastDirectionChange,Tn=Math.abs(Ot-Fe.x),he=Math.abs(Te-Fe.y);return Tn>this._config.pointerDirectionChangeThreshold&&(Xe.x=Ot>Fe.x?1:-1,Fe.x=Ot),he>this._config.pointerDirectionChangeThreshold&&(Xe.y=Te>Fe.y?1:-1,Fe.y=Te),Xe}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const wt=this._handles.length>0||!this.isDragging();wt!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=wt,zt(this._rootElement,wt))}_removeRootElementListeners(wt){wt.removeEventListener("mousedown",this._pointerDown,we),wt.removeEventListener("touchstart",this._pointerDown,Xt),wt.removeEventListener("dragstart",this._nativeDragStart,we)}_applyRootElementTransform(wt,Ot){const Te=Wt(wt,Ot),Xe=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=Xe.transform&&"none"!=Xe.transform?Xe.transform:""),Xe.transform=nt(Te,this._initialTransform)}_applyPreviewTransform(wt,Ot){const Te=this._previewTemplate?.template?void 0:this._initialTransform,Xe=Wt(wt,Ot);this._preview.style.transform=nt(Xe,Te)}_getDragDistance(wt){const Ot=this._pickupPositionOnPage;return Ot?{x:wt.x-Ot.x,y:wt.y-Ot.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:wt,y:Ot}=this._passiveTransform;if(0===wt&&0===Ot||this.isDragging()||!this._boundaryElement)return;const Te=this._rootElement.getBoundingClientRect(),Xe=this._boundaryElement.getBoundingClientRect();if(0===Xe.width&&0===Xe.height||0===Te.width&&0===Te.height)return;const Fe=Xe.left-Te.left,Tn=Te.right-Xe.right,he=Xe.top-Te.top,Re=Te.bottom-Xe.bottom;Xe.width>Te.width?(Fe>0&&(wt+=Fe),Tn>0&&(wt-=Tn)):wt=0,Xe.height>Te.height?(he>0&&(Ot+=he),Re>0&&(Ot-=Re)):Ot=0,(wt!==this._passiveTransform.x||Ot!==this._passiveTransform.y)&&this.setFreeDragPosition({y:Ot,x:wt})}_getDragStartDelay(wt){const Ot=this.dragStartDelay;return"number"==typeof Ot?Ot:Pe(wt)?Ot.touch:Ot?Ot.mouse:0}_updateOnScroll(wt){const Ot=this._parentPositions.handleScroll(wt);if(Ot){const Te=(0,T.sA)(wt);this._boundaryRect&&Te!==this._boundaryElement&&Te.contains(this._boundaryElement)&&It(this._boundaryRect,Ot.top,Ot.left),this._pickupPositionOnPage.x+=Ot.left,this._pickupPositionOnPage.y+=Ot.top,this._dropContainer||(this._activeTransform.x-=Ot.left,this._activeTransform.y-=Ot.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(wt,Ot){const Te=this._previewContainer||"global";if("parent"===Te)return wt;if("global"===Te){const Xe=this._document;return Ot||Xe.fullscreenElement||Xe.webkitFullscreenElement||Xe.mozFullScreenElement||Xe.msFullscreenElement||Xe.body}return(0,t.fI)(Te)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(wt){return this._handles.find(Ot=>wt.target&&(wt.target===Ot||Ot.contains(wt.target)))}}function Wt(Lt,wt){return`translate3d(${Math.round(Lt)}px, ${Math.round(wt)}px, 0)`}function re(Lt,wt,Ot){return Math.max(wt,Math.min(Ot,Lt))}function Pe(Lt){return"t"===Lt.type[0]}function on(Lt,wt){const Ot=Lt.rootNodes;if(1===Ot.length&&Ot[0].nodeType===wt.ELEMENT_NODE)return Ot[0];const Te=wt.createElement("div");return Ot.forEach(Xe=>Te.appendChild(Xe)),Te}function _n(Lt,wt){Lt.style.width=`${wt.width}px`,Lt.style.height=`${wt.height}px`,Lt.style.transform=Wt(wt.left,wt.top)}function ye(Lt,wt,Ot){const Te=un(wt,Lt.length-1),Xe=un(Ot,Lt.length-1);if(Te===Xe)return;const Fe=Lt[Te],Tn=Xe0)return null;const he="horizontal"===this.orientation,Re=Fe.findIndex(ei=>ei.drag===wt),En=Fe[Tn],go=En.clientRect,_o=Re>Tn?1:-1,mn=this._getItemOffsetPx(Fe[Re].clientRect,go,_o),An=this._getSiblingOffsetPx(Re,Fe,_o),sn=Fe.slice();return ye(Fe,Re,Tn),Fe.forEach((ei,Zi)=>{if(sn[Zi]===ei)return;const vo=ei.drag===wt,Fo=vo?mn:An,ca=vo?wt.getPlaceholderElement():ei.drag.getRootElement();ei.offset+=Fo,he?(ca.style.transform=nt(`translate3d(${Math.round(ei.offset)}px, 0, 0)`,ei.initialTransform),It(ei.clientRect,0,Fo)):(ca.style.transform=nt(`translate3d(0, ${Math.round(ei.offset)}px, 0)`,ei.initialTransform),It(ei.clientRect,Fo,0))}),this._previousSwap.overlaps=Bt(go,Ot,Te),this._previousSwap.drag=En.drag,this._previousSwap.delta=he?Xe.x:Xe.y,{previousIndex:Re,currentIndex:Tn}}enter(wt,Ot,Te,Xe){const Fe=null==Xe||Xe<0?this._getItemIndexFromPointerPosition(wt,Ot,Te):Xe,Tn=this._activeDraggables,he=Tn.indexOf(wt),Re=wt.getPlaceholderElement();let En=Tn[Fe];if(En===wt&&(En=Tn[Fe+1]),!En&&(null==Fe||-1===Fe||Fe-1&&Tn.splice(he,1),En&&!this._dragDropRegistry.isDragging(En)){const gi=En.getRootElement();gi.parentElement.insertBefore(Re,gi),Tn.splice(Fe,0,wt)}else(0,t.fI)(this._element).appendChild(Re),Tn.push(wt);Re.style.transform="",this._cacheItemPositions()}withItems(wt){this._activeDraggables=wt.slice(),this._cacheItemPositions()}withSortPredicate(wt){this._sortPredicate=wt}reset(){this._activeDraggables.forEach(wt=>{const Ot=wt.getRootElement();if(Ot){const Te=this._itemPositions.find(Xe=>Xe.drag===wt)?.initialTransform;Ot.style.transform=Te||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(wt){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(Te=>Te.drag===wt)}updateOnScroll(wt,Ot){this._itemPositions.forEach(({clientRect:Te})=>{It(Te,wt,Ot)}),this._itemPositions.forEach(({drag:Te})=>{this._dragDropRegistry.isDragging(Te)&&Te._sortFromLastPointerPosition()})}_cacheItemPositions(){const wt="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(Ot=>{const Te=Ot.getVisibleElement();return{drag:Ot,offset:0,initialTransform:Te.style.transform||"",clientRect:Et(Te)}}).sort((Ot,Te)=>wt?Ot.clientRect.left-Te.clientRect.left:Ot.clientRect.top-Te.clientRect.top)}_getItemOffsetPx(wt,Ot,Te){const Xe="horizontal"===this.orientation;let Fe=Xe?Ot.left-wt.left:Ot.top-wt.top;return-1===Te&&(Fe+=Xe?Ot.width-wt.width:Ot.height-wt.height),Fe}_getSiblingOffsetPx(wt,Ot,Te){const Xe="horizontal"===this.orientation,Fe=Ot[wt].clientRect,Tn=Ot[wt+-1*Te];let he=Fe[Xe?"width":"height"]*Te;if(Tn){const Re=Xe?"left":"top",En=Xe?"right":"bottom";-1===Te?he-=Tn.clientRect[Re]-Fe[En]:he+=Fe[Re]-Tn.clientRect[En]}return he}_shouldEnterAsFirstChild(wt,Ot){if(!this._activeDraggables.length)return!1;const Te=this._itemPositions,Xe="horizontal"===this.orientation;if(Te[0].drag!==this._activeDraggables[0]){const Tn=Te[Te.length-1].clientRect;return Xe?wt>=Tn.right:Ot>=Tn.bottom}{const Tn=Te[0].clientRect;return Xe?wt<=Tn.left:Ot<=Tn.top}}_getItemIndexFromPointerPosition(wt,Ot,Te,Xe){const Fe="horizontal"===this.orientation,Tn=this._itemPositions.findIndex(({drag:he,clientRect:Re})=>{if(he===wt)return!1;if(Xe){const En=Fe?Xe.x:Xe.y;if(he===this._previousSwap.drag&&this._previousSwap.overlaps&&En===this._previousSwap.delta)return!1}return Fe?Ot>=Math.floor(Re.left)&&Ot=Math.floor(Re.top)&&Te!0,this.sortPredicate=()=>!0,this.beforeStarted=new C.xQ,this.entered=new C.xQ,this.exited=new C.xQ,this.dropped=new C.xQ,this.sorted=new C.xQ,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=U.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new C.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,k.F)(0,D.Z).pipe((0,z.R)(this._stopScrollTimers)).subscribe(()=>{const Tn=this._scrollNode,he=this.autoScrollStep;1===this._verticalScrollDirection?Tn.scrollBy(0,-he):2===this._verticalScrollDirection&&Tn.scrollBy(0,he),1===this._horizontalScrollDirection?Tn.scrollBy(-he,0):2===this._horizontalScrollDirection&&Tn.scrollBy(he,0)})},this.element=(0,t.fI)(wt),this._document=Te,this.withScrollableParents([this.element]),Ot.registerDropContainer(this),this._parentPositions=new Jt(Te),this._sortStrategy=new Mn(this.element,Ot),this._sortStrategy.withSortPredicate((Tn,he)=>this.sortPredicate(Tn,he,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(wt,Ot,Te,Xe){this._draggingStarted(),null==Xe&&this.sortingDisabled&&(Xe=this._draggables.indexOf(wt)),this._sortStrategy.enter(wt,Ot,Te,Xe),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:wt,container:this,currentIndex:this.getItemIndex(wt)})}exit(wt){this._reset(),this.exited.next({item:wt,container:this})}drop(wt,Ot,Te,Xe,Fe,Tn,he,Re={}){this._reset(),this.dropped.next({item:wt,currentIndex:Ot,previousIndex:Te,container:this,previousContainer:Xe,isPointerOverContainer:Fe,distance:Tn,dropPoint:he,event:Re})}withItems(wt){const Ot=this._draggables;return this._draggables=wt,wt.forEach(Te=>Te._withDropContainer(this)),this.isDragging()&&(Ot.filter(Xe=>Xe.isDragging()).every(Xe=>-1===wt.indexOf(Xe))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(wt){return this._sortStrategy.direction=wt,this}connectedTo(wt){return this._siblings=wt.slice(),this}withOrientation(wt){return this._sortStrategy.orientation=wt,this}withScrollableParents(wt){const Ot=(0,t.fI)(this.element);return this._scrollableElements=-1===wt.indexOf(Ot)?[Ot,...wt]:wt.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(wt){return this._isDragging?this._sortStrategy.getItemIndex(wt):this._draggables.indexOf(wt)}isReceiving(){return this._activeSiblings.size>0}_sortItem(wt,Ot,Te,Xe){if(this.sortingDisabled||!this._clientRect||!se(this._clientRect,.05,Ot,Te))return;const Fe=this._sortStrategy.sort(wt,Ot,Te,Xe);Fe&&this.sorted.next({previousIndex:Fe.previousIndex,currentIndex:Fe.currentIndex,container:this,item:wt})}_startScrollingIfNecessary(wt,Ot){if(this.autoScrollDisabled)return;let Te,Xe=0,Fe=0;if(this._parentPositions.positions.forEach((Tn,he)=>{he===this._document||!Tn.clientRect||Te||se(Tn.clientRect,.05,wt,Ot)&&([Xe,Fe]=function ct(Lt,wt,Ot,Te){const Xe=Ke(wt,Te),Fe=ne(wt,Ot);let Tn=0,he=0;if(Xe){const Re=Lt.scrollTop;1===Xe?Re>0&&(Tn=1):Lt.scrollHeight-Re>Lt.clientHeight&&(Tn=2)}if(Fe){const Re=Lt.scrollLeft;1===Fe?Re>0&&(he=1):Lt.scrollWidth-Re>Lt.clientWidth&&(he=2)}return[Tn,he]}(he,Tn.clientRect,wt,Ot),(Xe||Fe)&&(Te=he))}),!Xe&&!Fe){const{width:Tn,height:he}=this._viewportRuler.getViewportSize(),Re={width:Tn,height:he,top:0,right:Tn,bottom:he,left:0};Xe=Ke(Re,Ot),Fe=ne(Re,wt),Te=window}Te&&(Xe!==this._verticalScrollDirection||Fe!==this._horizontalScrollDirection||Te!==this._scrollNode)&&(this._verticalScrollDirection=Xe,this._horizontalScrollDirection=Fe,this._scrollNode=Te,(Xe||Fe)&&Te?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const wt=(0,t.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=wt.msScrollSnapType||wt.scrollSnapType||"",wt.scrollSnapType=wt.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const wt=(0,t.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(wt).clientRect}_reset(){this._isDragging=!1;const wt=(0,t.fI)(this.element).style;wt.scrollSnapType=wt.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(Ot=>Ot._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(wt,Ot){return null!=this._clientRect&&Bt(this._clientRect,wt,Ot)}_getSiblingContainerFromPosition(wt,Ot,Te){return this._siblings.find(Xe=>Xe._canReceive(wt,Ot,Te))}_canReceive(wt,Ot,Te){if(!this._clientRect||!Bt(this._clientRect,Ot,Te)||!this.enterPredicate(wt,this))return!1;const Xe=this._getShadowRoot().elementFromPoint(Ot,Te);if(!Xe)return!1;const Fe=(0,t.fI)(this.element);return Xe===Fe||Fe.contains(Xe)}_startReceiving(wt,Ot){const Te=this._activeSiblings;!Te.has(wt)&&Ot.every(Xe=>this.enterPredicate(Xe,this)||this._draggables.indexOf(Xe)>-1)&&(Te.add(wt),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(wt){this._activeSiblings.delete(wt),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(wt=>{if(this.isDragging()){const Ot=this._parentPositions.handleScroll(wt);Ot&&this._sortStrategy.updateOnScroll(Ot.top,Ot.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const wt=(0,T.kV)((0,t.fI)(this.element));this._cachedShadowRoot=wt||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const wt=this._sortStrategy.getActiveItemsSnapshot().filter(Ot=>Ot.isDragging());this._siblings.forEach(Ot=>Ot._startReceiving(this,wt))}}function Ke(Lt,wt){const{top:Ot,bottom:Te,height:Xe}=Lt,Fe=.05*Xe;return wt>=Ot-Fe&&wt<=Ot+Fe?1:wt>=Te-Fe&&wt<=Te+Fe?2:0}function ne(Lt,wt){const{left:Ot,right:Te,width:Xe}=Lt,Fe=.05*Xe;return wt>=Ot-Fe&&wt<=Ot+Fe?1:wt>=Te-Fe&&wt<=Te+Fe?2:0}const it=(0,T.i$)({passive:!1,capture:!0});let kt=(()=>{class Lt{constructor(Ot,Te){this._ngZone=Ot,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=Xe=>Xe.isDragging(),this.pointerMove=new C.xQ,this.pointerUp=new C.xQ,this.scroll=new C.xQ,this._preventDefaultWhileDragging=Xe=>{this._activeDragInstances.length>0&&Xe.preventDefault()},this._persistentTouchmoveListener=Xe=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&Xe.preventDefault(),this.pointerMove.next(Xe))},this._document=Te}registerDropContainer(Ot){this._dropInstances.has(Ot)||this._dropInstances.add(Ot)}registerDragItem(Ot){this._dragInstances.add(Ot),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,it)})}removeDropContainer(Ot){this._dropInstances.delete(Ot)}removeDragItem(Ot){this._dragInstances.delete(Ot),this.stopDragging(Ot),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,it)}startDragging(Ot,Te){if(!(this._activeDragInstances.indexOf(Ot)>-1)&&(this._activeDragInstances.push(Ot),1===this._activeDragInstances.length)){const Xe=Te.type.startsWith("touch");this._globalListeners.set(Xe?"touchend":"mouseup",{handler:Fe=>this.pointerUp.next(Fe),options:!0}).set("scroll",{handler:Fe=>this.scroll.next(Fe),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:it}),Xe||this._globalListeners.set("mousemove",{handler:Fe=>this.pointerMove.next(Fe),options:it}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((Fe,Tn)=>{this._document.addEventListener(Tn,Fe.handler,Fe.options)})})}}stopDragging(Ot){const Te=this._activeDragInstances.indexOf(Ot);Te>-1&&(this._activeDragInstances.splice(Te,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(Ot){return this._activeDragInstances.indexOf(Ot)>-1}scrolled(Ot){const Te=[this.scroll];return Ot&&Ot!==this._document&&Te.push(new P.y(Xe=>this._ngZone.runOutsideAngular(()=>{const Tn=he=>{this._activeDragInstances.length&&Xe.next(he)};return Ot.addEventListener("scroll",Tn,!0),()=>{Ot.removeEventListener("scroll",Tn,!0)}}))),(0,I.T)(...Te)}ngOnDestroy(){this._dragInstances.forEach(Ot=>this.removeDragItem(Ot)),this._dropInstances.forEach(Ot=>this.removeDropContainer(Ot)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((Ot,Te)=>{this._document.removeEventListener(Te,Ot.handler,Ot.options)}),this._globalListeners.clear()}}return Lt.\u0275fac=function(Ot){return new(Ot||Lt)(d.LFG(d.R0b),d.LFG(p.K0))},Lt.\u0275prov=d.Yz7({token:Lt,factory:Lt.\u0275fac,providedIn:"root"}),Lt})();const Gt={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let oe=(()=>{class Lt{constructor(Ot,Te,Xe,Fe){this._document=Ot,this._ngZone=Te,this._viewportRuler=Xe,this._dragDropRegistry=Fe}createDrag(Ot,Te=Gt){return new de(Ot,Te,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(Ot){return new ri(Ot,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return Lt.\u0275fac=function(Ot){return new(Ot||Lt)(d.LFG(p.K0),d.LFG(d.R0b),d.LFG(v.rL),d.LFG(kt))},Lt.\u0275prov=d.Yz7({token:Lt,factory:Lt.\u0275fac,providedIn:"root"}),Lt})();const Ce=new d.OlP("CDK_DRAG_PARENT"),Ee=new d.OlP("CdkDropListGroup"),Ln=new d.OlP("CDK_DRAG_CONFIG");let Oi=0;const ho=new d.OlP("CdkDropList");let fi=(()=>{class Lt{constructor(Ot,Te,Xe,Fe,Tn,he,Re){this.element=Ot,this._changeDetectorRef=Xe,this._scrollDispatcher=Fe,this._dir=Tn,this._group=he,this._destroyed=new C.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+Oi++,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=Te.createDropList(Ot),this._dropListRef.data=this,Re&&this._assignDefaults(Re),this._dropListRef.enterPredicate=(En,gi)=>this.enterPredicate(En.data,gi.data),this._dropListRef.sortPredicate=(En,gi,go)=>this.sortPredicate(En,gi.data,go.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),Lt._dropLists.push(this),he&&he._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(Ot){this._dropListRef.disabled=this._disabled=(0,t.Ig)(Ot)}addItem(Ot){this._unsortedItems.add(Ot),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(Ot){this._unsortedItems.delete(Ot),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((Ot,Te)=>Ot._dragRef.getVisibleElement().compareDocumentPosition(Te._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const Ot=Lt._dropLists.indexOf(this);Ot>-1&&Lt._dropLists.splice(Ot,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(Ot){this._dir&&this._dir.change.pipe((0,G.O)(this._dir.value),(0,z.R)(this._destroyed)).subscribe(Te=>Ot.withDirection(Te)),Ot.beforeStarted.subscribe(()=>{const Te=(0,t.Eq)(this.connectedTo).map(Xe=>"string"==typeof Xe?Lt._dropLists.find(Tn=>Tn.id===Xe):Xe);if(this._group&&this._group._items.forEach(Xe=>{-1===Te.indexOf(Xe)&&Te.push(Xe)}),!this._scrollableParentsResolved){const Xe=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(Fe=>Fe.getElementRef().nativeElement);this._dropListRef.withScrollableParents(Xe),this._scrollableParentsResolved=!0}Ot.disabled=this.disabled,Ot.lockAxis=this.lockAxis,Ot.sortingDisabled=(0,t.Ig)(this.sortingDisabled),Ot.autoScrollDisabled=(0,t.Ig)(this.autoScrollDisabled),Ot.autoScrollStep=(0,t.su)(this.autoScrollStep,2),Ot.connectedTo(Te.filter(Xe=>Xe&&Xe!==this).map(Xe=>Xe._dropListRef)).withOrientation(this.orientation)})}_handleEvents(Ot){Ot.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),Ot.entered.subscribe(Te=>{this.entered.emit({container:this,item:Te.item.data,currentIndex:Te.currentIndex})}),Ot.exited.subscribe(Te=>{this.exited.emit({container:this,item:Te.item.data}),this._changeDetectorRef.markForCheck()}),Ot.sorted.subscribe(Te=>{this.sorted.emit({previousIndex:Te.previousIndex,currentIndex:Te.currentIndex,container:this,item:Te.item.data})}),Ot.dropped.subscribe(Te=>{this.dropped.emit({previousIndex:Te.previousIndex,currentIndex:Te.currentIndex,previousContainer:Te.previousContainer.data,container:Te.container.data,item:Te.item.data,isPointerOverContainer:Te.isPointerOverContainer,distance:Te.distance,dropPoint:Te.dropPoint,event:Te.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(Ot){const{lockAxis:Te,draggingDisabled:Xe,sortingDisabled:Fe,listAutoScrollDisabled:Tn,listOrientation:he}=Ot;this.disabled=Xe??!1,this.sortingDisabled=Fe??!1,this.autoScrollDisabled=Tn??!1,this.orientation=he||"vertical",Te&&(this.lockAxis=Te)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(Ot=>Ot._dragRef))}}return Lt._dropLists=[],Lt.\u0275fac=function(Ot){return new(Ot||Lt)(d.Y36(d.SBq),d.Y36(oe),d.Y36(d.sBO),d.Y36(v.mF),d.Y36(Pt.Is,8),d.Y36(Ee,12),d.Y36(Ln,8))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(Ot,Te){2&Ot&&(d.uIk("id",Te.id),d.ekj("cdk-drop-list-disabled",Te.disabled)("cdk-drop-list-dragging",Te._dropListRef.isDragging())("cdk-drop-list-receiving",Te._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:Ee,useValue:void 0},{provide:ho,useExisting:Lt}])]}),Lt})();const Yn=new d.OlP("CdkDragHandle"),Ye=new d.OlP("CdkDragPlaceholder"),ze=new d.OlP("CdkDragPreview");let le=(()=>{class Lt{constructor(Ot,Te,Xe,Fe,Tn,he,Re,En,gi,go,_o){this.element=Ot,this.dropContainer=Te,this._ngZone=Fe,this._viewContainerRef=Tn,this._dir=Re,this._changeDetectorRef=gi,this._selfHandle=go,this._parentDrag=_o,this._destroyed=new C.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(mn=>{const An=this._dragRef.moved.pipe((0,K.U)(sn=>({source:this,pointerPosition:sn.pointerPosition,event:sn.event,delta:sn.delta,distance:sn.distance}))).subscribe(mn);return()=>{An.unsubscribe()}}),this._dragRef=En.createDrag(Ot,{dragStartThreshold:he&&null!=he.dragStartThreshold?he.dragStartThreshold:5,pointerDirectionChangeThreshold:he&&null!=he.pointerDirectionChangeThreshold?he.pointerDirectionChangeThreshold:5,zIndex:he?.zIndex}),this._dragRef.data=this,Lt._dragInstances.push(this),he&&this._assignDefaults(he),Te&&(this._dragRef._withDropContainer(Te._dropListRef),Te.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(Ot){this._disabled=(0,t.Ig)(Ot),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(Ot){this._dragRef.setFreeDragPosition(Ot)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,at.q)(1),(0,z.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(Ot){const Te=Ot.rootElementSelector,Xe=Ot.freeDragPosition;Te&&!Te.firstChange&&this._updateRootElement(),Xe&&!Xe.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const Ot=Lt._dragInstances.indexOf(this);Ot>-1&&Lt._dragInstances.splice(Ot,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const Ot=this.element.nativeElement;let Te=Ot;this.rootElementSelector&&(Te=void 0!==Ot.closest?Ot.closest(this.rootElementSelector):Ot.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(Te||Ot)}_getBoundaryElement(){const Ot=this.boundaryElement;return Ot?"string"==typeof Ot?this.element.nativeElement.closest(Ot):(0,t.fI)(Ot):null}_syncInputs(Ot){Ot.beforeStarted.subscribe(()=>{if(!Ot.isDragging()){const Te=this._dir,Xe=this.dragStartDelay,Fe=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,Tn=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;Ot.disabled=this.disabled,Ot.lockAxis=this.lockAxis,Ot.dragStartDelay="object"==typeof Xe&&Xe?Xe:(0,t.su)(Xe),Ot.constrainPosition=this.constrainPosition,Ot.previewClass=this.previewClass,Ot.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(Fe).withPreviewTemplate(Tn).withPreviewContainer(this.previewContainer||"global"),Te&&Ot.withDirection(Te.value)}}),Ot.beforeStarted.pipe((0,at.q)(1)).subscribe(()=>{if(this._parentDrag)return void Ot.withParent(this._parentDrag._dragRef);let Te=this.element.nativeElement.parentElement;for(;Te;){if(Te.classList.contains("cdk-drag")){Ot.withParent(Lt._dragInstances.find(Xe=>Xe.element.nativeElement===Te)?._dragRef||null);break}Te=Te.parentElement}})}_handleEvents(Ot){Ot.started.subscribe(Te=>{this.started.emit({source:this,event:Te.event}),this._changeDetectorRef.markForCheck()}),Ot.released.subscribe(Te=>{this.released.emit({source:this,event:Te.event})}),Ot.ended.subscribe(Te=>{this.ended.emit({source:this,distance:Te.distance,dropPoint:Te.dropPoint,event:Te.event}),this._changeDetectorRef.markForCheck()}),Ot.entered.subscribe(Te=>{this.entered.emit({container:Te.container.data,item:this,currentIndex:Te.currentIndex})}),Ot.exited.subscribe(Te=>{this.exited.emit({container:Te.container.data,item:this})}),Ot.dropped.subscribe(Te=>{this.dropped.emit({previousIndex:Te.previousIndex,currentIndex:Te.currentIndex,previousContainer:Te.previousContainer.data,container:Te.container.data,isPointerOverContainer:Te.isPointerOverContainer,item:this,distance:Te.distance,dropPoint:Te.dropPoint,event:Te.event})})}_assignDefaults(Ot){const{lockAxis:Te,dragStartDelay:Xe,constrainPosition:Fe,previewClass:Tn,boundaryElement:he,draggingDisabled:Re,rootElementSelector:En,previewContainer:gi}=Ot;this.disabled=Re??!1,this.dragStartDelay=Xe||0,Te&&(this.lockAxis=Te),Fe&&(this.constrainPosition=Fe),Tn&&(this.previewClass=Tn),he&&(this.boundaryElement=he),En&&(this.rootElementSelector=En),gi&&(this.previewContainer=gi)}_setupHandlesListener(){this._handles.changes.pipe((0,G.O)(this._handles),(0,lt.b)(Ot=>{const Te=Ot.filter(Xe=>Xe._parentDrag===this).map(Xe=>Xe.element);this._selfHandle&&this.rootElementSelector&&Te.push(this.element),this._dragRef.withHandles(Te)}),(0,bt.w)(Ot=>(0,I.T)(...Ot.map(Te=>Te._stateChanges.pipe((0,G.O)(Te))))),(0,z.R)(this._destroyed)).subscribe(Ot=>{const Te=this._dragRef,Xe=Ot.element.nativeElement;Ot.disabled?Te.disableHandle(Xe):Te.enableHandle(Xe)})}}return Lt._dragInstances=[],Lt.\u0275fac=function(Ot){return new(Ot||Lt)(d.Y36(d.SBq),d.Y36(ho,12),d.Y36(p.K0),d.Y36(d.R0b),d.Y36(d.s_b),d.Y36(Ln,8),d.Y36(Pt.Is,8),d.Y36(oe),d.Y36(d.sBO),d.Y36(Yn,10),d.Y36(Ce,12))},Lt.\u0275dir=d.lG2({type:Lt,selectors:[["","cdkDrag",""]],contentQueries:function(Ot,Te,Xe){if(1&Ot&&(d.Suo(Xe,ze,5),d.Suo(Xe,Ye,5),d.Suo(Xe,Yn,5)),2&Ot){let Fe;d.iGM(Fe=d.CRH())&&(Te._previewTemplate=Fe.first),d.iGM(Fe=d.CRH())&&(Te._placeholderTemplate=Fe.first),d.iGM(Fe=d.CRH())&&(Te._handles=Fe)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(Ot,Te){2&Ot&&d.ekj("cdk-drag-disabled",Te.disabled)("cdk-drag-dragging",Te._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:Ce,useExisting:Lt}]),d.TTD]}),Lt})(),Je=(()=>{class Lt{}return Lt.\u0275fac=function(Ot){return new(Ot||Lt)},Lt.\u0275mod=d.oAB({type:Lt}),Lt.\u0275inj=d.cJS({providers:[oe],imports:[v.ZD]}),Lt})()},29521:(ot,et,b)=>{"use strict";b.d(et,{A:()=>ae,JH:()=>Dt,JU:()=>A,K5:()=>t,Ku:()=>z,LH:()=>bt,L_:()=>I,MW:()=>Ln,Mf:()=>v,SV:()=>Pt,Sd:()=>at,VM:()=>G,Vb:()=>bc,Z:()=>Pn,ZH:()=>p,aO:()=>Oe,b2:()=>Er,hY:()=>P,jx:()=>C,oh:()=>lt,uR:()=>K,xE:()=>At,yY:()=>Tt,zL:()=>U});const p=8,v=9,t=13,A=16,C=17,U=18,P=27,I=32,z=33,G=34,K=35,at=36,lt=37,bt=38,Pt=39,Dt=40,Tt=46,At=48,Oe=57,ae=65,Pn=90,Ln=91,Er=224;function bc(dr,...Br){return Br.length?Br.some(Gr=>dr[Gr]):dr.altKey||dr.shiftKey||dr.ctrlKey||dr.metaKey}},62289:(ot,et,b)=>{"use strict";b.d(et,{Yg:()=>Dt,u3:()=>Vt,xu:()=>G});var d=b(94650),p=b(21281),v=b(8929),T=b(23426),t=b(61221),A=b(56498),C=b(72986),U=b(31307),k=b(80013),D=b(24850),P=b(1059),I=b(7625),z=b(83353);let G=(()=>{class nt{}return nt.\u0275fac=function(At){return new(At||nt)},nt.\u0275mod=d.oAB({type:nt}),nt.\u0275inj=d.cJS({}),nt})();const K=new Set;let at,lt=(()=>{class nt{constructor(At){this._platform=At,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Pt}matchMedia(At){return(this._platform.WEBKIT||this._platform.BLINK)&&function bt(nt){if(!K.has(nt))try{at||(at=document.createElement("style"),at.setAttribute("type","text/css"),document.head.appendChild(at)),at.sheet&&(at.sheet.insertRule(`@media ${nt} {body{ }}`,0),K.add(nt))}catch(Tt){console.error(Tt)}}(At),this._matchMedia(At)}}return nt.\u0275fac=function(At){return new(At||nt)(d.LFG(z.t4))},nt.\u0275prov=d.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function Pt(nt){return{matches:"all"===nt||""===nt,media:nt,addListener:()=>{},removeListener:()=>{}}}let Dt=(()=>{class nt{constructor(At,ft){this._mediaMatcher=At,this._zone=ft,this._queries=new Map,this._destroySubject=new v.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(At){return zt((0,p.Eq)(At)).some(Et=>this._registerQuery(Et).mql.matches)}observe(At){const Et=zt((0,p.Eq)(At)).map(It=>this._registerQuery(It).observable);let Bt=(0,T.aj)(Et);return Bt=(0,t.z)(Bt.pipe((0,C.q)(1)),Bt.pipe((0,U.T)(1),(0,k.b)(0))),Bt.pipe((0,D.U)(It=>{const se={matches:!1,breakpoints:{}};return It.forEach(({matches:Jt,query:ve})=>{se.matches=se.matches||Jt,se.breakpoints[ve]=Jt}),se}))}_registerQuery(At){if(this._queries.has(At))return this._queries.get(At);const ft=this._mediaMatcher.matchMedia(At),Bt={observable:new A.y(It=>{const se=Jt=>this._zone.run(()=>It.next(Jt));return ft.addListener(se),()=>{ft.removeListener(se)}}).pipe((0,P.O)(ft),(0,D.U)(({matches:It})=>({query:At,matches:It})),(0,I.R)(this._destroySubject)),mql:ft};return this._queries.set(At,Bt),Bt}}return nt.\u0275fac=function(At){return new(At||nt)(d.LFG(lt),d.LFG(d.R0b))},nt.\u0275prov=d.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();function zt(nt){return nt.map(Tt=>Tt.split(",")).reduce((Tt,At)=>Tt.concat(At)).map(Tt=>Tt.trim())}const Vt={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:(ot,et,b)=>{"use strict";b.d(et,{Q8:()=>k,wD:()=>U});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})(),C=(()=>{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 at=this._observeElement(z).subscribe(G);return()=>{at.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(K=>z.next(K));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})(),U=(()=>{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(C),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:(ot,et,b)=>{"use strict";b.d(et,{Iu:()=>Oe,U8:()=>ri,X_:()=>Tt,Xj:()=>xe,_G:()=>Xt,aV:()=>ye,pI:()=>Mn,xu:()=>un});var d=b(67376),p=b(36895),v=b(94650),T=b(21281),t=b(83353),A=b(40445),C=b(84080),U=b(8929),k=b(42654),D=b(36787),P=b(72986),I=b(7625),z=b(44290),G=b(29521);const K=(0,t.Mq)();class at{constructor(ct,it){this._viewportRuler=ct,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=it}attach(){}enable(){if(this._canBeEnabled()){const ct=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ct.style.left||"",this._previousHTMLStyles.top=ct.style.top||"",ct.style.left=(0,T.HM)(-this._previousScrollPosition.left),ct.style.top=(0,T.HM)(-this._previousScrollPosition.top),ct.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ct=this._document.documentElement,kt=ct.style,Gt=this._document.body.style,oe=kt.scrollBehavior||"",Ce=Gt.scrollBehavior||"";this._isEnabled=!1,kt.left=this._previousHTMLStyles.left,kt.top=this._previousHTMLStyles.top,ct.classList.remove("cdk-global-scrollblock"),K&&(kt.scrollBehavior=Gt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),K&&(kt.scrollBehavior=oe,Gt.scrollBehavior=Ce)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const it=this._document.body,kt=this._viewportRuler.getViewportSize();return it.scrollHeight>kt.height||it.scrollWidth>kt.width}}class bt{constructor(ct,it,kt,Gt){this._scrollDispatcher=ct,this._ngZone=it,this._viewportRuler=kt,this._config=Gt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(ct){this._overlayRef=ct}enable(){if(this._scrollSubscription)return;const ct=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ct.subscribe(()=>{const it=this._viewportRuler.getViewportScrollPosition().top;Math.abs(it-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ct.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Pt{enable(){}disable(){}attach(){}}function Dt(ne,ct){return ct.some(it=>ne.bottomit.bottom||ne.rightit.right)}function zt(ne,ct){return ct.some(it=>ne.topit.bottom||ne.leftit.right)}class Vt{constructor(ct,it,kt,Gt){this._scrollDispatcher=ct,this._viewportRuler=it,this._ngZone=kt,this._config=Gt,this._scrollSubscription=null}attach(ct){this._overlayRef=ct}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 it=this._overlayRef.overlayElement.getBoundingClientRect(),{width:kt,height:Gt}=this._viewportRuler.getViewportSize();Dt(it,[{width:kt,height:Gt,bottom:Gt,right:kt,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 nt=(()=>{class ne{constructor(it,kt,Gt,oe){this._scrollDispatcher=it,this._viewportRuler=kt,this._ngZone=Gt,this.noop=()=>new Pt,this.close=Ce=>new bt(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ce),this.block=()=>new at(this._viewportRuler,this._document),this.reposition=Ce=>new Vt(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ce),this._document=oe}}return ne.\u0275fac=function(it){return new(it||ne)(v.LFG(d.mF),v.LFG(d.rL),v.LFG(v.R0b),v.LFG(p.K0))},ne.\u0275prov=v.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})();class Tt{constructor(ct){if(this.scrollStrategy=new Pt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,ct){const it=Object.keys(ct);for(const kt of it)void 0!==ct[kt]&&(this[kt]=ct[kt])}}}class Et{constructor(ct,it){this.connectionPair=ct,this.scrollableViewProperties=it}}let se=(()=>{class ne{constructor(it){this._attachedOverlays=[],this._document=it}ngOnDestroy(){this.detach()}add(it){this.remove(it),this._attachedOverlays.push(it)}remove(it){const kt=this._attachedOverlays.indexOf(it);kt>-1&&this._attachedOverlays.splice(kt,1),0===this._attachedOverlays.length&&this.detach()}}return ne.\u0275fac=function(it){return new(it||ne)(v.LFG(p.K0))},ne.\u0275prov=v.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),Jt=(()=>{class ne extends se{constructor(it,kt){super(it),this._ngZone=kt,this._keydownListener=Gt=>{const oe=this._attachedOverlays;for(let Ce=oe.length-1;Ce>-1;Ce--)if(oe[Ce]._keydownEvents.observers.length>0){const Ee=oe[Ce]._keydownEvents;this._ngZone?this._ngZone.run(()=>Ee.next(Gt)):Ee.next(Gt);break}}}add(it){super.add(it),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 ne.\u0275fac=function(it){return new(it||ne)(v.LFG(p.K0),v.LFG(v.R0b,8))},ne.\u0275prov=v.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),ve=(()=>{class ne extends se{constructor(it,kt,Gt){super(it),this._platform=kt,this._ngZone=Gt,this._cursorStyleIsSet=!1,this._pointerDownListener=oe=>{this._pointerDownEventTarget=(0,t.sA)(oe)},this._clickListener=oe=>{const Ce=(0,t.sA)(oe),Ee="click"===oe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ce;this._pointerDownEventTarget=null;const Pn=this._attachedOverlays.slice();for(let Ln=Pn.length-1;Ln>-1;Ln--){const mi=Pn[Ln];if(mi._outsidePointerEvents.observers.length<1||!mi.hasAttached())continue;if(mi.overlayElement.contains(Ce)||mi.overlayElement.contains(Ee))break;const Oi=mi._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Oi.next(oe)):Oi.next(oe)}}}add(it){if(super.add(it),!this._isAttached){const kt=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(kt)):this._addEventListeners(kt),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=kt.style.cursor,kt.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const it=this._document.body;it.removeEventListener("pointerdown",this._pointerDownListener,!0),it.removeEventListener("click",this._clickListener,!0),it.removeEventListener("auxclick",this._clickListener,!0),it.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(it.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(it){it.addEventListener("pointerdown",this._pointerDownListener,!0),it.addEventListener("click",this._clickListener,!0),it.addEventListener("auxclick",this._clickListener,!0),it.addEventListener("contextmenu",this._clickListener,!0)}}return ne.\u0275fac=function(it){return new(it||ne)(v.LFG(p.K0),v.LFG(t.t4),v.LFG(v.R0b,8))},ne.\u0275prov=v.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),xe=(()=>{class ne{constructor(it,kt){this._platform=kt,this._document=it}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const it="cdk-overlay-container";if(this._platform.isBrowser||(0,t.Oy)()){const Gt=this._document.querySelectorAll(`.${it}[platform="server"], .${it}[platform="test"]`);for(let oe=0;oethis._backdropClick.next(Oi),this._backdropTransitionendHandler=Oi=>{this._disposeBackdrop(Oi.target)},this._keydownEvents=new U.xQ,this._outsidePointerEvents=new U.xQ,Gt.scrollStrategy&&(this._scrollStrategy=Gt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Gt.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ct){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const it=this._portalOutlet.attach(ct);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 it?.onDestroy&&it.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),it}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ct=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ct}dispose(){const ct=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,ct&&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(ct){ct!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ct,this.hasAttached()&&(ct.attach(this),this.updatePosition()))}updateSize(ct){this._config={...this._config,...ct},this._updateElementSize()}setDirection(ct){this._config={...this._config,direction:ct},this._updateElementDirection()}addPanelClass(ct){this._pane&&this._toggleClasses(this._pane,ct,!0)}removePanelClass(ct){this._pane&&this._toggleClasses(this._pane,ct,!1)}getDirection(){const ct=this._config.direction;return ct?"string"==typeof ct?ct:ct.value:"ltr"}updateScrollStrategy(ct){ct!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ct,this.hasAttached()&&(ct.attach(this),ct.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ct=this._pane.style;ct.width=(0,T.HM)(this._config.width),ct.height=(0,T.HM)(this._config.height),ct.minWidth=(0,T.HM)(this._config.minWidth),ct.minHeight=(0,T.HM)(this._config.minHeight),ct.maxWidth=(0,T.HM)(this._config.maxWidth),ct.maxHeight=(0,T.HM)(this._config.maxHeight)}_togglePointerEvents(ct){this._pane.style.pointerEvents=ct?"":"none"}_attachBackdrop(){const ct="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(ct)})}):this._backdropElement.classList.add(ct)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ct=this._backdropElement;if(ct){if(this._animationsDisabled)return void this._disposeBackdrop(ct);ct.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{ct.addEventListener("transitionend",this._backdropTransitionendHandler)}),ct.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ct)},500))}}_toggleClasses(ct,it,kt){const Gt=(0,T.Eq)(it||[]).filter(oe=>!!oe);Gt.length&&(kt?ct.classList.add(...Gt):ct.classList.remove(...Gt))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const ct=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()),ct.unsubscribe())})})}_disposeScrollStrategy(){const ct=this._scrollStrategy;ct&&(ct.disable(),ct.detach&&ct.detach())}_disposeBackdrop(ct){ct&&(ct.removeEventListener("click",this._backdropClickHandler),ct.removeEventListener("transitionend",this._backdropTransitionendHandler),ct.remove(),this._backdropElement===ct&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const qe="cdk-overlay-connected-position-bounding-box",$e=/([A-Za-z%]+)$/;class Xt{constructor(ct,it,kt,Gt,oe){this._viewportRuler=it,this._document=kt,this._platform=Gt,this._overlayContainer=oe,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 U.xQ,this._resizeSubscription=k.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(ct)}get positions(){return this._preferredPositions}attach(ct){this._validatePositions(),ct.hostElement.classList.add(qe),this._overlayRef=ct,this._boundingBox=ct.hostElement,this._pane=ct.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 ct=this._originRect,it=this._overlayRect,kt=this._viewportRect,Gt=this._containerRect,oe=[];let Ce;for(let Ee of this._preferredPositions){let Pn=this._getOriginPoint(ct,Gt,Ee),Ln=this._getOverlayPoint(Pn,it,Ee),mi=this._getOverlayFit(Ln,it,kt,Ee);if(mi.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Ee,Pn);this._canFitWithFlexibleDimensions(mi,Ln,kt)?oe.push({position:Ee,origin:Pn,overlayRect:it,boundingBoxRect:this._calculateBoundingBoxRect(Pn,Ee)}):(!Ce||Ce.overlayFit.visibleAreaPn&&(Pn=mi,Ee=Ln)}return this._isPushed=!1,void this._applyPosition(Ee.position,Ee.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ce.position,Ce.originPoint);this._applyPosition(Ce.position,Ce.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&we(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(qe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ct=this._lastPosition;if(ct){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const it=this._getOriginPoint(this._originRect,this._containerRect,ct);this._applyPosition(ct,it)}else this.apply()}withScrollableContainers(ct){return this._scrollables=ct,this}withPositions(ct){return this._preferredPositions=ct,-1===ct.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ct){return this._viewportMargin=ct,this}withFlexibleDimensions(ct=!0){return this._hasFlexibleDimensions=ct,this}withGrowAfterOpen(ct=!0){return this._growAfterOpen=ct,this}withPush(ct=!0){return this._canPush=ct,this}withLockedPosition(ct=!0){return this._positionLocked=ct,this}setOrigin(ct){return this._origin=ct,this}withDefaultOffsetX(ct){return this._offsetX=ct,this}withDefaultOffsetY(ct){return this._offsetY=ct,this}withTransformOriginOn(ct){return this._transformOriginSelector=ct,this}_getOriginPoint(ct,it,kt){let Gt,oe;if("center"==kt.originX)Gt=ct.left+ct.width/2;else{const Ce=this._isRtl()?ct.right:ct.left,Ee=this._isRtl()?ct.left:ct.right;Gt="start"==kt.originX?Ce:Ee}return it.left<0&&(Gt-=it.left),oe="center"==kt.originY?ct.top+ct.height/2:"top"==kt.originY?ct.top:ct.bottom,it.top<0&&(oe-=it.top),{x:Gt,y:oe}}_getOverlayPoint(ct,it,kt){let Gt,oe;return Gt="center"==kt.overlayX?-it.width/2:"start"===kt.overlayX?this._isRtl()?-it.width:0:this._isRtl()?0:-it.width,oe="center"==kt.overlayY?-it.height/2:"top"==kt.overlayY?0:-it.height,{x:ct.x+Gt,y:ct.y+oe}}_getOverlayFit(ct,it,kt,Gt){const oe=Kt(it);let{x:Ce,y:Ee}=ct,Pn=this._getOffset(Gt,"x"),Ln=this._getOffset(Gt,"y");Pn&&(Ce+=Pn),Ln&&(Ee+=Ln);let ho=0-Ee,fi=Ee+oe.height-kt.height,Yn=this._subtractOverflows(oe.width,0-Ce,Ce+oe.width-kt.width),jn=this._subtractOverflows(oe.height,ho,fi),Ye=Yn*jn;return{visibleArea:Ye,isCompletelyWithinViewport:oe.width*oe.height===Ye,fitsInViewportVertically:jn===oe.height,fitsInViewportHorizontally:Yn==oe.width}}_canFitWithFlexibleDimensions(ct,it,kt){if(this._hasFlexibleDimensions){const Gt=kt.bottom-it.y,oe=kt.right-it.x,Ce=ae(this._overlayRef.getConfig().minHeight),Ee=ae(this._overlayRef.getConfig().minWidth),Ln=ct.fitsInViewportHorizontally||null!=Ee&&Ee<=oe;return(ct.fitsInViewportVertically||null!=Ce&&Ce<=Gt)&&Ln}return!1}_pushOverlayOnScreen(ct,it,kt){if(this._previousPushAmount&&this._positionLocked)return{x:ct.x+this._previousPushAmount.x,y:ct.y+this._previousPushAmount.y};const Gt=Kt(it),oe=this._viewportRect,Ce=Math.max(ct.x+Gt.width-oe.width,0),Ee=Math.max(ct.y+Gt.height-oe.height,0),Pn=Math.max(oe.top-kt.top-ct.y,0),Ln=Math.max(oe.left-kt.left-ct.x,0);let mi=0,Oi=0;return mi=Gt.width<=oe.width?Ln||-Ce:ct.xYn&&!this._isInitialRender&&!this._growAfterOpen&&(Ce=ct.y-Yn/2)}if("end"===it.overlayX&&!Gt||"start"===it.overlayX&&Gt)ho=kt.width-ct.x+this._viewportMargin,mi=ct.x-this._viewportMargin;else if("start"===it.overlayX&&!Gt||"end"===it.overlayX&&Gt)Oi=ct.x,mi=kt.right-ct.x;else{const fi=Math.min(kt.right-ct.x+kt.left,ct.x),Yn=this._lastBoundingBoxSize.width;mi=2*fi,Oi=ct.x-fi,mi>Yn&&!this._isInitialRender&&!this._growAfterOpen&&(Oi=ct.x-Yn/2)}return{top:Ce,left:Oi,bottom:Ee,right:ho,width:mi,height:oe}}_setBoundingBoxStyles(ct,it){const kt=this._calculateBoundingBoxRect(ct,it);!this._isInitialRender&&!this._growAfterOpen&&(kt.height=Math.min(kt.height,this._lastBoundingBoxSize.height),kt.width=Math.min(kt.width,this._lastBoundingBoxSize.width));const Gt={};if(this._hasExactPosition())Gt.top=Gt.left="0",Gt.bottom=Gt.right=Gt.maxHeight=Gt.maxWidth="",Gt.width=Gt.height="100%";else{const oe=this._overlayRef.getConfig().maxHeight,Ce=this._overlayRef.getConfig().maxWidth;Gt.height=(0,T.HM)(kt.height),Gt.top=(0,T.HM)(kt.top),Gt.bottom=(0,T.HM)(kt.bottom),Gt.width=(0,T.HM)(kt.width),Gt.left=(0,T.HM)(kt.left),Gt.right=(0,T.HM)(kt.right),Gt.alignItems="center"===it.overlayX?"center":"end"===it.overlayX?"flex-end":"flex-start",Gt.justifyContent="center"===it.overlayY?"center":"bottom"===it.overlayY?"flex-end":"flex-start",oe&&(Gt.maxHeight=(0,T.HM)(oe)),Ce&&(Gt.maxWidth=(0,T.HM)(Ce))}this._lastBoundingBoxSize=kt,we(this._boundingBox.style,Gt)}_resetBoundingBoxStyles(){we(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){we(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ct,it){const kt={},Gt=this._hasExactPosition(),oe=this._hasFlexibleDimensions,Ce=this._overlayRef.getConfig();if(Gt){const mi=this._viewportRuler.getViewportScrollPosition();we(kt,this._getExactOverlayY(it,ct,mi)),we(kt,this._getExactOverlayX(it,ct,mi))}else kt.position="static";let Ee="",Pn=this._getOffset(it,"x"),Ln=this._getOffset(it,"y");Pn&&(Ee+=`translateX(${Pn}px) `),Ln&&(Ee+=`translateY(${Ln}px)`),kt.transform=Ee.trim(),Ce.maxHeight&&(Gt?kt.maxHeight=(0,T.HM)(Ce.maxHeight):oe&&(kt.maxHeight="")),Ce.maxWidth&&(Gt?kt.maxWidth=(0,T.HM)(Ce.maxWidth):oe&&(kt.maxWidth="")),we(this._pane.style,kt)}_getExactOverlayY(ct,it,kt){let Gt={top:"",bottom:""},oe=this._getOverlayPoint(it,this._overlayRect,ct);return this._isPushed&&(oe=this._pushOverlayOnScreen(oe,this._overlayRect,kt)),"bottom"===ct.overlayY?Gt.bottom=this._document.documentElement.clientHeight-(oe.y+this._overlayRect.height)+"px":Gt.top=(0,T.HM)(oe.y),Gt}_getExactOverlayX(ct,it,kt){let Ce,Gt={left:"",right:""},oe=this._getOverlayPoint(it,this._overlayRect,ct);return this._isPushed&&(oe=this._pushOverlayOnScreen(oe,this._overlayRect,kt)),Ce=this._isRtl()?"end"===ct.overlayX?"left":"right":"end"===ct.overlayX?"right":"left","right"===Ce?Gt.right=this._document.documentElement.clientWidth-(oe.x+this._overlayRect.width)+"px":Gt.left=(0,T.HM)(oe.x),Gt}_getScrollVisibility(){const ct=this._getOriginRect(),it=this._pane.getBoundingClientRect(),kt=this._scrollables.map(Gt=>Gt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:zt(ct,kt),isOriginOutsideView:Dt(ct,kt),isOverlayClipped:zt(it,kt),isOverlayOutsideView:Dt(it,kt)}}_subtractOverflows(ct,...it){return it.reduce((kt,Gt)=>kt-Math.max(Gt,0),ct)}_getNarrowedViewportRect(){const ct=this._document.documentElement.clientWidth,it=this._document.documentElement.clientHeight,kt=this._viewportRuler.getViewportScrollPosition();return{top:kt.top+this._viewportMargin,left:kt.left+this._viewportMargin,right:kt.left+ct-this._viewportMargin,bottom:kt.top+it-this._viewportMargin,width:ct-2*this._viewportMargin,height:it-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ct,it){return"x"===it?ct.offsetX??this._offsetX:ct.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(ct){this._pane&&(0,T.Eq)(ct).forEach(it=>{""!==it&&-1===this._appliedPanelClasses.indexOf(it)&&(this._appliedPanelClasses.push(it),this._pane.classList.add(it))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ct=>{this._pane.classList.remove(ct)}),this._appliedPanelClasses=[])}_getOriginRect(){const ct=this._origin;if(ct instanceof v.SBq)return ct.nativeElement.getBoundingClientRect();if(ct instanceof Element)return ct.getBoundingClientRect();const it=ct.width||0,kt=ct.height||0;return{top:ct.y,bottom:ct.y+kt,left:ct.x,right:ct.x+it,height:kt,width:it}}}function we(ne,ct){for(let it in ct)ct.hasOwnProperty(it)&&(ne[it]=ct[it]);return ne}function ae(ne){if("number"!=typeof ne&&null!=ne){const[ct,it]=ne.split($e);return it&&"px"!==it?null:parseFloat(ct)}return ne||null}function Kt(ne){return{top:Math.floor(ne.top),right:Math.floor(ne.right),bottom:Math.floor(ne.bottom),left:Math.floor(ne.left),width:Math.floor(ne.width),height:Math.floor(ne.height)}}const re="cdk-global-overlay-wrapper";class Pe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(ct){const it=ct.getConfig();this._overlayRef=ct,this._width&&!it.width&&ct.updateSize({width:this._width}),this._height&&!it.height&&ct.updateSize({height:this._height}),ct.hostElement.classList.add(re),this._isDisposed=!1}top(ct=""){return this._bottomOffset="",this._topOffset=ct,this._alignItems="flex-start",this}left(ct=""){return this._xOffset=ct,this._xPosition="left",this}bottom(ct=""){return this._topOffset="",this._bottomOffset=ct,this._alignItems="flex-end",this}right(ct=""){return this._xOffset=ct,this._xPosition="right",this}start(ct=""){return this._xOffset=ct,this._xPosition="start",this}end(ct=""){return this._xOffset=ct,this._xPosition="end",this}width(ct=""){return this._overlayRef?this._overlayRef.updateSize({width:ct}):this._width=ct,this}height(ct=""){return this._overlayRef?this._overlayRef.updateSize({height:ct}):this._height=ct,this}centerHorizontally(ct=""){return this.left(ct),this._xPosition="center",this}centerVertically(ct=""){return this.top(ct),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ct=this._overlayRef.overlayElement.style,it=this._overlayRef.hostElement.style,kt=this._overlayRef.getConfig(),{width:Gt,height:oe,maxWidth:Ce,maxHeight:Ee}=kt,Pn=!("100%"!==Gt&&"100vw"!==Gt||Ce&&"100%"!==Ce&&"100vw"!==Ce),Ln=!("100%"!==oe&&"100vh"!==oe||Ee&&"100%"!==Ee&&"100vh"!==Ee),mi=this._xPosition,Oi=this._xOffset,ho="rtl"===this._overlayRef.getConfig().direction;let fi="",Yn="",jn="";Pn?jn="flex-start":"center"===mi?(jn="center",ho?Yn=Oi:fi=Oi):ho?"left"===mi||"end"===mi?(jn="flex-end",fi=Oi):("right"===mi||"start"===mi)&&(jn="flex-start",Yn=Oi):"left"===mi||"start"===mi?(jn="flex-start",fi=Oi):("right"===mi||"end"===mi)&&(jn="flex-end",Yn=Oi),ct.position=this._cssPosition,ct.marginLeft=Pn?"0":fi,ct.marginTop=Ln?"0":this._topOffset,ct.marginBottom=this._bottomOffset,ct.marginRight=Pn?"0":Yn,it.justifyContent=jn,it.alignItems=Ln?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ct=this._overlayRef.overlayElement.style,it=this._overlayRef.hostElement,kt=it.style;it.classList.remove(re),kt.justifyContent=kt.alignItems=ct.marginTop=ct.marginBottom=ct.marginLeft=ct.marginRight=ct.position="",this._overlayRef=null,this._isDisposed=!0}}let on=(()=>{class ne{constructor(it,kt,Gt,oe){this._viewportRuler=it,this._document=kt,this._platform=Gt,this._overlayContainer=oe}global(){return new Pe}flexibleConnectedTo(it){return new Xt(it,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return ne.\u0275fac=function(it){return new(it||ne)(v.LFG(d.rL),v.LFG(p.K0),v.LFG(t.t4),v.LFG(xe))},ne.\u0275prov=v.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),_n=0,ye=(()=>{class ne{constructor(it,kt,Gt,oe,Ce,Ee,Pn,Ln,mi,Oi,ho,fi){this.scrollStrategies=it,this._overlayContainer=kt,this._componentFactoryResolver=Gt,this._positionBuilder=oe,this._keyboardDispatcher=Ce,this._injector=Ee,this._ngZone=Pn,this._document=Ln,this._directionality=mi,this._location=Oi,this._outsideClickDispatcher=ho,this._animationsModuleType=fi}create(it){const kt=this._createHostElement(),Gt=this._createPaneElement(kt),oe=this._createPortalOutlet(Gt),Ce=new Tt(it);return Ce.direction=Ce.direction||this._directionality.value,new Oe(oe,kt,Gt,Ce,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(it){const kt=this._document.createElement("div");return kt.id="cdk-overlay-"+_n++,kt.classList.add("cdk-overlay-pane"),it.appendChild(kt),kt}_createHostElement(){const it=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(it),it}_createPortalOutlet(it){return this._appRef||(this._appRef=this._injector.get(v.z2F)),new C.u0(it,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return ne.\u0275fac=function(it){return new(it||ne)(v.LFG(nt),v.LFG(xe),v.LFG(v._Vd),v.LFG(on),v.LFG(Jt),v.LFG(v.zs3),v.LFG(v.R0b),v.LFG(p.K0),v.LFG(A.Is),v.LFG(p.Ye),v.LFG(ve),v.LFG(v.QbO,8))},ne.\u0275prov=v.Yz7({token:ne,factory:ne.\u0275fac}),ne})();const gn=[{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"}],Ue=new v.OlP("cdk-connected-overlay-scroll-strategy");let un=(()=>{class ne{constructor(it){this.elementRef=it}}return ne.\u0275fac=function(it){return new(it||ne)(v.Y36(v.SBq))},ne.\u0275dir=v.lG2({type:ne,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),ne})(),Mn=(()=>{class ne{constructor(it,kt,Gt,oe,Ce){this._overlay=it,this._dir=Ce,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 C.UE(kt,Gt),this._scrollStrategyFactory=oe,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(it){this._offsetX=it,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(it){this._offsetY=it,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(it){this._hasBackdrop=(0,T.Ig)(it)}get lockPosition(){return this._lockPosition}set lockPosition(it){this._lockPosition=(0,T.Ig)(it)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(it){this._flexibleDimensions=(0,T.Ig)(it)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(it){this._growAfterOpen=(0,T.Ig)(it)}get push(){return this._push}set push(it){this._push=(0,T.Ig)(it)}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(it){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),it.origin&&this.open&&this._position.apply()),it.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=gn);const it=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=it.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=it.detachments().subscribe(()=>this.detach.emit()),it.keydownEvents().subscribe(kt=>{this.overlayKeydown.next(kt),kt.keyCode===G.hY&&!this.disableClose&&!(0,G.Vb)(kt)&&(kt.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(kt=>{this.overlayOutsideClick.next(kt)})}_buildConfig(){const it=this._position=this.positionStrategy||this._createPositionStrategy(),kt=new Tt({direction:this._dir,positionStrategy:it,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(kt.width=this.width),(this.height||0===this.height)&&(kt.height=this.height),(this.minWidth||0===this.minWidth)&&(kt.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(kt.minHeight=this.minHeight),this.backdropClass&&(kt.backdropClass=this.backdropClass),this.panelClass&&(kt.panelClass=this.panelClass),kt}_updatePositionStrategy(it){const kt=this.positions.map(Gt=>({originX:Gt.originX,originY:Gt.originY,overlayX:Gt.overlayX,overlayY:Gt.overlayY,offsetX:Gt.offsetX||this.offsetX,offsetY:Gt.offsetY||this.offsetY,panelClass:Gt.panelClass||void 0}));return it.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(kt).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const it=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(it),it}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof un?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(it=>{this.backdropClick.emit(it)}):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(it=>{this.positionChange.emit(it),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return ne.\u0275fac=function(it){return new(it||ne)(v.Y36(ye),v.Y36(v.Rgc),v.Y36(v.s_b),v.Y36(Ue),v.Y36(A.Is,8))},ne.\u0275dir=v.lG2({type:ne,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]}),ne})();const bi={provide:Ue,deps:[ye],useFactory:function oi(ne){return()=>ne.scrollStrategies.reposition()}};let ri=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275mod=v.oAB({type:ne}),ne.\u0275inj=v.cJS({providers:[ye,bi],imports:[A.vT,C.eL,d.Cl,d.Cl]}),ne})()},83353:(ot,et,b)=>{"use strict";b.d(et,{Mq:()=>G,Oy:()=>zt,_i:()=>K,ht:()=>Pt,i$:()=>P,kV:()=>bt,qK:()=>U,sA:()=>Dt,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 Vt{constructor(Tt){this._platformId=Tt,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 Vt.\u0275fac=function(Tt){return new(Tt||Vt)(d.LFG(d.Lbi))},Vt.\u0275prov=d.Yz7({token:Vt,factory:Vt.\u0275fac,providedIn:"root"}),Vt})(),t=(()=>{class Vt{}return Vt.\u0275fac=function(Tt){return new(Tt||Vt)},Vt.\u0275mod=d.oAB({type:Vt}),Vt.\u0275inj=d.cJS({}),Vt})();const C=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function U(){if(A)return A;if("object"!=typeof document||!document)return A=new Set(C),A;let Vt=document.createElement("input");return A=new Set(C.filter(nt=>(Vt.setAttribute("type",nt),Vt.type===nt))),A}let k,I,z,at;function P(Vt){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}()?Vt:!!Vt.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 Vt=Element.prototype.scrollTo;z=!!Vt&&!/\{\s*\[native code\]\s*\}/.test(Vt.toString())}}return z}function K(){if("object"!=typeof document||!document)return 0;if(null==I){const Vt=document.createElement("div"),nt=Vt.style;Vt.dir="rtl",nt.width="1px",nt.overflow="auto",nt.visibility="hidden",nt.pointerEvents="none",nt.position="absolute";const Tt=document.createElement("div"),At=Tt.style;At.width="2px",At.height="1px",Vt.appendChild(Tt),document.body.appendChild(Vt),I=0,0===Vt.scrollLeft&&(Vt.scrollLeft=1,I=0===Vt.scrollLeft?1:2),Vt.remove()}return I}function bt(Vt){if(function lt(){if(null==at){const Vt=typeof document<"u"?document.head:null;at=!(!Vt||!Vt.createShadowRoot&&!Vt.attachShadow)}return at}()){const nt=Vt.getRootNode?Vt.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&nt instanceof ShadowRoot)return nt}return null}function Pt(){let Vt=typeof document<"u"&&document?document.activeElement:null;for(;Vt&&Vt.shadowRoot;){const nt=Vt.shadowRoot.activeElement;if(nt===Vt)break;Vt=nt}return Vt}function Dt(Vt){return Vt.composedPath?Vt.composedPath()[0]:Vt.target}function zt(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(ot,et,b)=>{"use strict";b.d(et,{C5:()=>D,Pl:()=>Pt,UE:()=>P,eL:()=>zt,en:()=>z,ig:()=>lt,u0:()=>K});var d=b(94650),p=b(36895);class k{attach(Tt){return this._attachedHost=Tt,Tt.attach(this)}detach(){let Tt=this._attachedHost;null!=Tt&&(this._attachedHost=null,Tt.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Tt){this._attachedHost=Tt}}class D extends k{constructor(Tt,At,ft,Et){super(),this.component=Tt,this.viewContainerRef=At,this.injector=ft,this.componentFactoryResolver=Et}}class P extends k{constructor(Tt,At,ft,Et){super(),this.templateRef=Tt,this.viewContainerRef=At,this.context=ft,this.injector=Et}get origin(){return this.templateRef.elementRef}attach(Tt,At=this.context){return this.context=At,super.attach(Tt)}detach(){return this.context=void 0,super.detach()}}class I extends k{constructor(Tt){super(),this.element=Tt instanceof d.SBq?Tt.nativeElement:Tt}}class z{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Tt){return Tt instanceof D?(this._attachedPortal=Tt,this.attachComponentPortal(Tt)):Tt instanceof P?(this._attachedPortal=Tt,this.attachTemplatePortal(Tt)):this.attachDomPortal&&Tt instanceof I?(this._attachedPortal=Tt,this.attachDomPortal(Tt)):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(Tt){this._disposeFn=Tt}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class K extends z{constructor(Tt,At,ft,Et,Bt){super(),this.outletElement=Tt,this._componentFactoryResolver=At,this._appRef=ft,this._defaultInjector=Et,this.attachDomPortal=It=>{const se=It.element,Jt=this._document.createComment("dom-portal");se.parentNode.insertBefore(Jt,se),this.outletElement.appendChild(se),this._attachedPortal=It,super.setDisposeFn(()=>{Jt.parentNode&&Jt.parentNode.replaceChild(se,Jt)})},this._document=Bt}attachComponentPortal(Tt){const ft=(Tt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Tt.component);let Et;return Tt.viewContainerRef?(Et=Tt.viewContainerRef.createComponent(ft,Tt.viewContainerRef.length,Tt.injector||Tt.viewContainerRef.injector),this.setDisposeFn(()=>Et.destroy())):(Et=ft.create(Tt.injector||this._defaultInjector||d.zs3.NULL),this._appRef.attachView(Et.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(Et.hostView),Et.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Et)),this._attachedPortal=Tt,Et}attachTemplatePortal(Tt){let At=Tt.viewContainerRef,ft=At.createEmbeddedView(Tt.templateRef,Tt.context,{injector:Tt.injector});return ft.rootNodes.forEach(Et=>this.outletElement.appendChild(Et)),ft.detectChanges(),this.setDisposeFn(()=>{let Et=At.indexOf(ft);-1!==Et&&At.remove(Et)}),this._attachedPortal=Tt,ft}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Tt){return Tt.hostView.rootNodes[0]}}let lt=(()=>{class nt extends P{constructor(At,ft){super(At,ft)}}return nt.\u0275fac=function(At){return new(At||nt)(d.Y36(d.Rgc),d.Y36(d.s_b))},nt.\u0275dir=d.lG2({type:nt,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[d.qOj]}),nt})(),Pt=(()=>{class nt extends z{constructor(At,ft,Et){super(),this._componentFactoryResolver=At,this._viewContainerRef=ft,this._isInitialized=!1,this.attached=new d.vpe,this.attachDomPortal=Bt=>{const It=Bt.element,se=this._document.createComment("dom-portal");Bt.setAttachedHost(this),It.parentNode.insertBefore(se,It),this._getRootNode().appendChild(It),this._attachedPortal=Bt,super.setDisposeFn(()=>{se.parentNode&&se.parentNode.replaceChild(It,se)})},this._document=Et}get portal(){return this._attachedPortal}set portal(At){this.hasAttached()&&!At&&!this._isInitialized||(this.hasAttached()&&super.detach(),At&&super.attach(At),this._attachedPortal=At||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(At){At.setAttachedHost(this);const ft=null!=At.viewContainerRef?At.viewContainerRef:this._viewContainerRef,Bt=(At.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(At.component),It=ft.createComponent(Bt,ft.length,At.injector||ft.injector);return ft!==this._viewContainerRef&&this._getRootNode().appendChild(It.hostView.rootNodes[0]),super.setDisposeFn(()=>It.destroy()),this._attachedPortal=At,this._attachedRef=It,this.attached.emit(It),It}attachTemplatePortal(At){At.setAttachedHost(this);const ft=this._viewContainerRef.createEmbeddedView(At.templateRef,At.context,{injector:At.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=At,this._attachedRef=ft,this.attached.emit(ft),ft}_getRootNode(){const At=this._viewContainerRef.element.nativeElement;return At.nodeType===At.ELEMENT_NODE?At:At.parentNode}}return nt.\u0275fac=function(At){return new(At||nt)(d.Y36(d._Vd),d.Y36(d.s_b),d.Y36(p.K0))},nt.\u0275dir=d.lG2({type:nt,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[d.qOj]}),nt})(),zt=(()=>{class nt{}return nt.\u0275fac=function(At){return new(At||nt)},nt.\u0275mod=d.oAB({type:nt}),nt.\u0275inj=d.cJS({}),nt})()},67376:(ot,et,b)=>{"use strict";b.d(et,{Cl:()=>$e,PQ:()=>nt,ZD:()=>qe,mF:()=>Vt,rL:()=>At});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 Vt=(()=>{class Xt{constructor(ae,Kt,de){this._ngZone=ae,this._platform=Kt,this._scrolled=new v.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=de}register(ae){this.scrollContainers.has(ae)||this.scrollContainers.set(ae,ae.elementScrolled().subscribe(()=>this._scrolled.next(ae)))}deregister(ae){const Kt=this.scrollContainers.get(ae);Kt&&(Kt.unsubscribe(),this.scrollContainers.delete(ae))}scrolled(ae=20){return this._platform.isBrowser?new t.y(Kt=>{this._globalSubscription||this._addGlobalListener();const de=ae>0?this._scrolled.pipe((0,k.e)(ae)).subscribe(Kt):this._scrolled.subscribe(Kt);return this._scrolledCount++,()=>{de.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,T.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ae,Kt)=>this.deregister(Kt)),this._scrolled.complete()}ancestorScrolled(ae,Kt){const de=this.getAncestorScrollContainers(ae);return this.scrolled(Kt).pipe((0,D.h)(Wt=>!Wt||de.indexOf(Wt)>-1))}getAncestorScrollContainers(ae){const Kt=[];return this.scrollContainers.forEach((de,Wt)=>{this._scrollableContainsElement(Wt,ae)&&Kt.push(Wt)}),Kt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ae,Kt){let de=(0,d.fI)(Kt),Wt=ae.getElementRef().nativeElement;do{if(de==Wt)return!0}while(de=de.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ae=this._getWindow();return(0,A.R)(ae.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(p.LFG(p.R0b),p.LFG(I.t4),p.LFG(z.K0,8))},Xt.\u0275prov=p.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})(),nt=(()=>{class Xt{constructor(ae,Kt,de,Wt){this.elementRef=ae,this.scrollDispatcher=Kt,this.ngZone=de,this.dir=Wt,this._destroyed=new v.xQ,this._elementScrolled=new t.y(re=>this.ngZone.runOutsideAngular(()=>(0,A.R)(this.elementRef.nativeElement,"scroll").pipe((0,P.R)(this._destroyed)).subscribe(re)))}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(ae){const Kt=this.elementRef.nativeElement,de=this.dir&&"rtl"==this.dir.value;null==ae.left&&(ae.left=de?ae.end:ae.start),null==ae.right&&(ae.right=de?ae.start:ae.end),null!=ae.bottom&&(ae.top=Kt.scrollHeight-Kt.clientHeight-ae.bottom),de&&0!=(0,I._i)()?(null!=ae.left&&(ae.right=Kt.scrollWidth-Kt.clientWidth-ae.left),2==(0,I._i)()?ae.left=ae.right:1==(0,I._i)()&&(ae.left=ae.right?-ae.right:ae.right)):null!=ae.right&&(ae.left=Kt.scrollWidth-Kt.clientWidth-ae.right),this._applyScrollToOptions(ae)}_applyScrollToOptions(ae){const Kt=this.elementRef.nativeElement;(0,I.Mq)()?Kt.scrollTo(ae):(null!=ae.top&&(Kt.scrollTop=ae.top),null!=ae.left&&(Kt.scrollLeft=ae.left))}measureScrollOffset(ae){const Kt="left",Wt=this.elementRef.nativeElement;if("top"==ae)return Wt.scrollTop;if("bottom"==ae)return Wt.scrollHeight-Wt.clientHeight-Wt.scrollTop;const re=this.dir&&"rtl"==this.dir.value;return"start"==ae?ae=re?"right":Kt:"end"==ae&&(ae=re?Kt:"right"),re&&2==(0,I._i)()?ae==Kt?Wt.scrollWidth-Wt.clientWidth-Wt.scrollLeft:Wt.scrollLeft:re&&1==(0,I._i)()?ae==Kt?Wt.scrollLeft+Wt.scrollWidth-Wt.clientWidth:-Wt.scrollLeft:ae==Kt?Wt.scrollLeft:Wt.scrollWidth-Wt.clientWidth-Wt.scrollLeft}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(p.Y36(p.SBq),p.Y36(Vt),p.Y36(p.R0b),p.Y36(G.Is,8))},Xt.\u0275dir=p.lG2({type:Xt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Xt})(),At=(()=>{class Xt{constructor(ae,Kt,de){this._platform=ae,this._change=new v.xQ,this._changeListener=Wt=>{this._change.next(Wt)},this._document=de,Kt.runOutsideAngular(()=>{if(ae.isBrowser){const Wt=this._getWindow();Wt.addEventListener("resize",this._changeListener),Wt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ae=this._getWindow();ae.removeEventListener("resize",this._changeListener),ae.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ae={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ae}getViewportRect(){const ae=this.getViewportScrollPosition(),{width:Kt,height:de}=this.getViewportSize();return{top:ae.top,left:ae.left,bottom:ae.top+de,right:ae.left+Kt,height:de,width:Kt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ae=this._document,Kt=this._getWindow(),de=ae.documentElement,Wt=de.getBoundingClientRect();return{top:-Wt.top||ae.body.scrollTop||Kt.scrollY||de.scrollTop||0,left:-Wt.left||ae.body.scrollLeft||Kt.scrollX||de.scrollLeft||0}}change(ae=20){return ae>0?this._change.pipe((0,k.e)(ae)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ae=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ae.innerWidth,height:ae.innerHeight}:{width:0,height:0}}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(p.LFG(I.t4),p.LFG(p.R0b),p.LFG(z.K0,8))},Xt.\u0275prov=p.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})(),qe=(()=>{class Xt{}return Xt.\u0275fac=function(ae){return new(ae||Xt)},Xt.\u0275mod=p.oAB({type:Xt}),Xt.\u0275inj=p.cJS({}),Xt})(),$e=(()=>{class Xt{}return Xt.\u0275fac=function(ae){return new(ae||Xt)},Xt.\u0275mod=p.oAB({type:Xt}),Xt.\u0275inj=p.cJS({imports:[G.vT,qe,G.vT,qe]}),Xt})()},12138:(ot,et,b)=>{"use strict";b.d(et,{B8:()=>Dt,KL:()=>z,U5:()=>nt,be:()=>Pt,gx:()=>bt,po:()=>Vt,st:()=>zt,u6:()=>G});var d=b(12687),p=b(40445),v=b(21281),T=b(29521),t=b(94650),A=b(83353),C=b(8929),U=b(21086),k=b(1059),D=b(7625);function P(Tt,At){1&Tt&&t.Hsn(0)}const I=["*"];let z=(()=>{class Tt{constructor(ft){this._elementRef=ft}focus(){this._elementRef.nativeElement.focus()}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36(t.SBq))},Tt.\u0275dir=t.lG2({type:Tt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),Tt})(),G=(()=>{class Tt{constructor(ft){this.template=ft}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36(t.Rgc))},Tt.\u0275dir=t.lG2({type:Tt,selectors:[["","cdkStepLabel",""]]}),Tt})(),K=0;const bt=new t.OlP("STEPPER_GLOBAL_OPTIONS");let Pt=(()=>{class Tt{constructor(ft,Et){this._stepper=ft,this.interacted=!1,this.interactedStream=new t.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Et||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(ft){this._editable=(0,v.Ig)(ft)}get optional(){return this._optional}set optional(ft){this._optional=(0,v.Ig)(ft)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(ft){this._completedOverride=(0,v.Ig)(ft)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(ft){this._customError=(0,v.Ig)(ft)}_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 Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36((0,t.Gpc)(()=>Dt)),t.Y36(bt,8))},Tt.\u0275cmp=t.Xpm({type:Tt,selectors:[["cdk-step"]],contentQueries:function(ft,Et,Bt){if(1&ft&&t.Suo(Bt,G,5),2&ft){let It;t.iGM(It=t.CRH())&&(Et.stepLabel=It.first)}},viewQuery:function(ft,Et){if(1&ft&&t.Gf(t.Rgc,7),2&ft){let Bt;t.iGM(Bt=t.CRH())&&(Et.content=Bt.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(ft,Et){1&ft&&(t.F$t(),t.YNc(0,P,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),Tt})(),Dt=(()=>{class Tt{constructor(ft,Et,Bt){this._dir=ft,this._changeDetectorRef=Et,this._elementRef=Bt,this._destroyed=new C.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=K++}get linear(){return this._linear}set linear(ft){this._linear=(0,v.Ig)(ft)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ft){const Et=(0,v.su)(ft);this.steps&&this._steps?(this._isValidIndex(Et),this.selected?._markAsInteracted(),this._selectedIndex!==Et&&!this._anyControlsInvalidOrPending(Et)&&(Et>=this._selectedIndex||this.steps.toArray()[Et].editable)&&this._updateSelectedItemIndex(Et)):this._selectedIndex=Et}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(ft){this.selectedIndex=ft&&this.steps?this.steps.toArray().indexOf(ft):-1}get orientation(){return this._orientation}set orientation(ft){this._orientation=ft,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===ft)}ngAfterContentInit(){this._steps.changes.pipe((0,k.O)(this._steps),(0,D.R)(this._destroyed)).subscribe(ft=>{this.steps.reset(ft.filter(Et=>Et._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,k.O)(this._stepHeader),(0,D.R)(this._destroyed)).subscribe(ft=>{this._sortedHeaders.reset(ft.toArray().sort((Et,Bt)=>Et._elementRef.nativeElement.compareDocumentPosition(Bt._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,U.of)()).pipe((0,k.O)(this._layoutDirection()),(0,D.R)(this._destroyed)).subscribe(ft=>this._keyManager.withHorizontalOrientation(ft)),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(ft=>ft.reset()),this._stateChanged()}_getStepLabelId(ft){return`cdk-step-label-${this._groupId}-${ft}`}_getStepContentId(ft){return`cdk-step-content-${this._groupId}-${ft}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(ft){const Et=ft-this._selectedIndex;return Et<0?"rtl"===this._layoutDirection()?"next":"previous":Et>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(ft,Et="number"){const Bt=this.steps.toArray()[ft],It=this._isCurrentStep(ft);return Bt._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Bt,It):this._getGuidelineLogic(Bt,It,Et)}_getDefaultIndicatorLogic(ft,Et){return ft._showError()&&ft.hasError&&!Et?"error":!ft.completed||Et?"number":ft.editable?"edit":"done"}_getGuidelineLogic(ft,Et,Bt="number"){return ft._showError()&&ft.hasError&&!Et?"error":ft.completed&&!Et?"done":ft.completed&&Et?Bt:ft.editable&&Et?"edit":Bt}_isCurrentStep(ft){return this._selectedIndex===ft}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(ft){const Et=this.steps.toArray();this.selectionChange.emit({selectedIndex:ft,previouslySelectedIndex:this._selectedIndex,selectedStep:Et[ft],previouslySelectedStep:Et[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(ft):this._keyManager.updateActiveItem(ft),this._selectedIndex=ft,this._stateChanged()}_onKeydown(ft){const Et=(0,T.Vb)(ft),Bt=ft.keyCode,It=this._keyManager;null==It.activeItemIndex||Et||Bt!==T.L_&&Bt!==T.K5?It.onKeydown(ft):(this.selectedIndex=It.activeItemIndex,ft.preventDefault())}_anyControlsInvalidOrPending(ft){return!!(this._linear&&ft>=0)&&this.steps.toArray().slice(0,ft).some(Et=>{const Bt=Et.stepControl;return(Bt?Bt.invalid||Bt.pending||!Et.interacted:!Et.completed)&&!Et.optional&&!Et._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const ft=this._elementRef.nativeElement,Et=(0,A.ht)();return ft===Et||ft.contains(Et)}_isValidIndex(ft){return ft>-1&&(!this.steps||ft{class Tt{constructor(ft){this._stepper=ft,this.type="submit"}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36(Dt))},Tt.\u0275dir=t.lG2({type:Tt,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(ft,Et){1&ft&&t.NdJ("click",function(){return Et._stepper.next()}),2&ft&&t.Ikx("type",Et.type)},inputs:{type:"type"}}),Tt})(),Vt=(()=>{class Tt{constructor(ft){this._stepper=ft,this.type="button"}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(t.Y36(Dt))},Tt.\u0275dir=t.lG2({type:Tt,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(ft,Et){1&ft&&t.NdJ("click",function(){return Et._stepper.previous()}),2&ft&&t.Ikx("type",Et.type)},inputs:{type:"type"}}),Tt})(),nt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275mod=t.oAB({type:Tt}),Tt.\u0275inj=t.cJS({imports:[p.vT]}),Tt})()},39349:(ot,et,b)=>{"use strict";b.d(et,{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),C=b(57138),U=b(7625),k=b(36895);const D=(0,d.i$)({passive:!0});let P=(()=>{class K{constructor(lt,bt){this._platform=lt,this._ngZone=bt,this._monitoredElements=new Map}monitor(lt){if(!this._platform.isBrowser)return T.E;const bt=(0,v.fI)(lt),Pt=this._monitoredElements.get(bt);if(Pt)return Pt.subject;const Dt=new t.xQ,zt="cdk-text-field-autofilled",Vt=nt=>{"cdk-text-field-autofill-start"!==nt.animationName||bt.classList.contains(zt)?"cdk-text-field-autofill-end"===nt.animationName&&bt.classList.contains(zt)&&(bt.classList.remove(zt),this._ngZone.run(()=>Dt.next({target:nt.target,isAutofilled:!1}))):(bt.classList.add(zt),this._ngZone.run(()=>Dt.next({target:nt.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{bt.addEventListener("animationstart",Vt,D),bt.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(bt,{subject:Dt,unlisten:()=>{bt.removeEventListener("animationstart",Vt,D)}}),Dt}stopMonitoring(lt){const bt=(0,v.fI)(lt),Pt=this._monitoredElements.get(bt);Pt&&(Pt.unlisten(),Pt.subject.complete(),bt.classList.remove("cdk-text-field-autofill-monitored"),bt.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(bt))}ngOnDestroy(){this._monitoredElements.forEach((lt,bt)=>this.stopMonitoring(bt))}}return K.\u0275fac=function(lt){return new(lt||K)(p.LFG(d.t4),p.LFG(p.R0b))},K.\u0275prov=p.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"}),K})(),z=(()=>{class K{constructor(lt,bt,Pt,Dt){this._elementRef=lt,this._platform=bt,this._ngZone=Pt,this._destroyed=new t.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=zt=>{this._hasFocus="focus"===zt.type},this._document=Dt,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(lt){this._minRows=(0,v.su)(lt),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(lt){this._maxRows=(0,v.su)(lt),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(lt){lt=(0,v.Ig)(lt),this._enabled!==lt&&((this._enabled=lt)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(lt){this._cachedPlaceholderHeight=void 0,lt?this._textareaElement.setAttribute("placeholder",lt):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const lt=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;lt&&(this._textareaElement.style.minHeight=lt)}_setMaxHeight(){const lt=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;lt&&(this._textareaElement.style.maxHeight=lt)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const lt=this._getWindow();(0,A.R)(lt,"resize").pipe((0,C.e)(16),(0,U.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 lt=this._textareaElement.cloneNode(!1);lt.rows=1,lt.style.position="absolute",lt.style.visibility="hidden",lt.style.border="none",lt.style.padding="0",lt.style.height="",lt.style.minHeight="",lt.style.maxHeight="",lt.style.overflow="hidden",this._textareaElement.parentNode.appendChild(lt),this._cachedLineHeight=lt.clientHeight,lt.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const lt=this._textareaElement,bt=lt.style.marginBottom||"",Pt=this._platform.FIREFOX,Dt=Pt&&this._hasFocus,zt=Pt?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Dt&&(lt.style.marginBottom=`${lt.clientHeight}px`),lt.classList.add(zt);const Vt=lt.scrollHeight-4;return lt.classList.remove(zt),Dt&&(lt.style.marginBottom=bt),Vt}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const lt=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=lt}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(lt=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const bt=this._elementRef.nativeElement,Pt=bt.value;if(!lt&&this._minRows===this._previousMinRows&&Pt===this._previousValue)return;const Dt=this._measureScrollHeight(),zt=Math.max(Dt,this._cachedPlaceholderHeight||0);bt.style.height=`${zt}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(bt)):setTimeout(()=>this._scrollToCaretPosition(bt))}),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(lt){const{selectionStart:bt,selectionEnd:Pt}=lt;!this._destroyed.isStopped&&this._hasFocus&<.setSelectionRange(bt,Pt)}}return K.\u0275fac=function(lt){return new(lt||K)(p.Y36(p.SBq),p.Y36(d.t4),p.Y36(p.R0b),p.Y36(k.K0,8))},K.\u0275dir=p.lG2({type:K,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(lt,bt){1<&&p.NdJ("input",function(){return bt._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),K})(),G=(()=>{class K{}return K.\u0275fac=function(lt){return new(lt||K)},K.\u0275mod=p.oAB({type:K}),K.\u0275inj=p.cJS({}),K})()},57851:(ot,et,b)=>{"use strict";b.d(et,{C2:()=>z,HI:()=>K,Hs:()=>At,Ud:()=>Jt,VY:()=>G,XJ:()=>se,Xx:()=>Bt,_0:()=>Tt,cu:()=>at,nZ:()=>xe,rO:()=>bt});var d=b(95017),p=b(54715),v=b(8929),T=b(591),t=b(21086),A=b(72986),C=b(92198),U=b(7625),k=b(94650),D=b(21281),P=b(40445);class I{constructor(){this.expansionModel=new d.Ov(!0)}toggle(qe){this.expansionModel.toggle(this._trackByValue(qe))}expand(qe){this.expansionModel.select(this._trackByValue(qe))}collapse(qe){this.expansionModel.deselect(this._trackByValue(qe))}isExpanded(qe){return this.expansionModel.isSelected(this._trackByValue(qe))}toggleDescendants(qe){this.expansionModel.isSelected(this._trackByValue(qe))?this.collapseDescendants(qe):this.expandDescendants(qe)}collapseAll(){this.expansionModel.clear()}expandDescendants(qe){let $e=[qe];$e.push(...this.getDescendants(qe)),this.expansionModel.select(...$e.map(Xt=>this._trackByValue(Xt)))}collapseDescendants(qe){let $e=[qe];$e.push(...this.getDescendants(qe)),this.expansionModel.deselect(...$e.map(Xt=>this._trackByValue(Xt)))}_trackByValue(qe){return this.trackBy?this.trackBy(qe):qe}}class z extends I{constructor(qe,$e,Xt){super(),this.getLevel=qe,this.isExpandable=$e,this.options=Xt,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(qe){const Xt=[];for(let we=this.dataNodes.indexOf(qe)+1;wethis._trackByValue(qe)))}}class G extends I{constructor(qe,$e){super(),this.getChildren=qe,this.options=$e,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const qe=this.dataNodes.reduce(($e,Xt)=>[...$e,...this.getDescendants(Xt),Xt],[]);this.expansionModel.select(...qe.map($e=>this._trackByValue($e)))}getDescendants(qe){const $e=[];return this._getDescendants($e,qe),$e.splice(1)}_getDescendants(qe,$e){qe.push($e);const Xt=this.getChildren($e);Array.isArray(Xt)?Xt.forEach(we=>this._getDescendants(qe,we)):(0,p.b)(Xt)&&Xt.pipe((0,A.q)(1),(0,C.h)(Boolean)).subscribe(we=>{for(const ae of we)this._getDescendants(qe,ae)})}}const K=new k.OlP("CDK_TREE_NODE_OUTLET_NODE");let at=(()=>{class Oe{constructor($e,Xt){this.viewContainer=$e,this._node=Xt}}return Oe.\u0275fac=function($e){return new($e||Oe)(k.Y36(k.s_b),k.Y36(K,8))},Oe.\u0275dir=k.lG2({type:Oe,selectors:[["","cdkTreeNodeOutlet",""]]}),Oe})();class lt{constructor(qe){this.$implicit=qe}}let bt=(()=>{class Oe{constructor($e){this.template=$e}}return Oe.\u0275fac=function($e){return new($e||Oe)(k.Y36(k.Rgc))},Oe.\u0275dir=k.lG2({type:Oe,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),Oe})(),Tt=(()=>{class Oe{constructor($e,Xt){this._differs=$e,this._changeDetectorRef=Xt,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($e){this._dataSource!==$e&&this._switchDataSource($e)}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 $e=this._nodeDefs.filter(Xt=>!Xt.when);this._defaultNodeDef=$e[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource($e){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),$e||this._nodeOutlet.viewContainer.clear(),this._dataSource=$e,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let $e;(0,d.Z9)(this._dataSource)?$e=this._dataSource.connect(this):(0,p.b)(this._dataSource)?$e=this._dataSource:Array.isArray(this._dataSource)&&($e=(0,t.of)(this._dataSource)),$e&&(this._dataSubscription=$e.pipe((0,U.R)(this._onDestroy)).subscribe(Xt=>this.renderNodeChanges(Xt)))}renderNodeChanges($e,Xt=this._dataDiffer,we=this._nodeOutlet.viewContainer,ae){const Kt=Xt.diff($e);!Kt||(Kt.forEachOperation((de,Wt,re)=>{if(null==de.previousIndex)this.insertNode($e[re],re,we,ae);else if(null==re)we.remove(Wt),this._levels.delete(de.item);else{const Pe=we.get(Wt);we.move(Pe,re)}}),this._changeDetectorRef.detectChanges())}_getNodeDef($e,Xt){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(ae=>ae.when&&ae.when(Xt,$e))||this._defaultNodeDef}insertNode($e,Xt,we,ae){const Kt=this._getNodeDef($e,Xt),de=new lt($e);de.level=this.treeControl.getLevel?this.treeControl.getLevel($e):typeof ae<"u"&&this._levels.has(ae)?this._levels.get(ae)+1:0,this._levels.set($e,de.level),(we||this._nodeOutlet.viewContainer).createEmbeddedView(Kt.template,de,Xt),At.mostRecentTreeNode&&(At.mostRecentTreeNode.data=$e)}}return Oe.\u0275fac=function($e){return new($e||Oe)(k.Y36(k.ZZ4),k.Y36(k.sBO))},Oe.\u0275cmp=k.Xpm({type:Oe,selectors:[["cdk-tree"]],contentQueries:function($e,Xt,we){if(1&$e&&k.Suo(we,bt,5),2&$e){let ae;k.iGM(ae=k.CRH())&&(Xt._nodeDefs=ae)}},viewQuery:function($e,Xt){if(1&$e&&k.Gf(at,7),2&$e){let we;k.iGM(we=k.CRH())&&(Xt._nodeOutlet=we.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function($e,Xt){1&$e&&k.GkF(0,0)},dependencies:[at],encapsulation:2}),Oe})(),At=(()=>{class Oe{constructor($e,Xt){this._elementRef=$e,this._tree=Xt,this._destroyed=new v.xQ,this._dataChanges=new v.xQ,Oe.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role($e){this._elementRef.nativeElement.setAttribute("role",$e)}get data(){return this._data}set data($e){$e!==this._data&&(this._data=$e,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 ft(Oe){let qe=Oe.parentElement;for(;qe&&!Et(qe);)qe=qe.parentElement;return qe?qe.classList.contains("cdk-nested-tree-node")?(0,D.su)(qe.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){Oe.mostRecentTreeNode===this&&(Oe.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return Oe.mostRecentTreeNode=null,Oe.\u0275fac=function($e){return new($e||Oe)(k.Y36(k.SBq),k.Y36(Tt))},Oe.\u0275dir=k.lG2({type:Oe,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function($e,Xt){2&$e&&k.uIk("aria-expanded",Xt.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),Oe})();function Et(Oe){const qe=Oe.classList;return!(!qe?.contains("cdk-nested-tree-node")&&!qe?.contains("cdk-tree"))}let Bt=(()=>{class Oe extends At{constructor($e,Xt,we){super($e,Xt),this._differs=we}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const $e=this._tree.treeControl.getChildren(this.data);Array.isArray($e)?this.updateChildrenNodes($e):(0,p.b)($e)&&$e.pipe((0,U.R)(this._destroyed)).subscribe(Xt=>this.updateChildrenNodes(Xt)),this.nodeOutlet.changes.pipe((0,U.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes($e){const Xt=this._getNodeOutlet();$e&&(this._children=$e),Xt&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,Xt.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const $e=this._getNodeOutlet();$e&&($e.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const $e=this.nodeOutlet;return $e&&$e.find(Xt=>!Xt._node||Xt._node===this)}}return Oe.\u0275fac=function($e){return new($e||Oe)(k.Y36(k.SBq),k.Y36(Tt),k.Y36(k.ZZ4))},Oe.\u0275dir=k.lG2({type:Oe,selectors:[["cdk-nested-tree-node"]],contentQueries:function($e,Xt,we){if(1&$e&&k.Suo(we,at,5),2&$e){let ae;k.iGM(ae=k.CRH())&&(Xt.nodeOutlet=ae)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[k._Bn([{provide:At,useExisting:Oe},{provide:K,useExisting:Oe}]),k.qOj]}),Oe})();const It=/([A-Za-z%]+)$/;let se=(()=>{class Oe{constructor($e,Xt,we,ae){this._treeNode=$e,this._tree=Xt,this._element=we,this._dir=ae,this._destroyed=new v.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),ae&&ae.change.pipe((0,U.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),$e._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level($e){this._setLevelInput($e)}get indent(){return this._indent}set indent($e){this._setIndentInput($e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const $e=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,Xt=this._level??$e;return"number"==typeof Xt?`${Xt*this._indent}${this.indentUnits}`:null}_setPadding($e=!1){const Xt=this._paddingIndent();if(Xt!==this._currentPadding||$e){const we=this._element.nativeElement,ae=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",Kt="paddingLeft"===ae?"paddingRight":"paddingLeft";we.style[ae]=Xt||"",we.style[Kt]="",this._currentPadding=Xt}}_setLevelInput($e){this._level=(0,D.su)($e,null),this._setPadding()}_setIndentInput($e){let Xt=$e,we="px";if("string"==typeof $e){const ae=$e.split(It);Xt=ae[0],we=ae[1]||we}this.indentUnits=we,this._indent=(0,D.su)(Xt),this._setPadding()}}return Oe.\u0275fac=function($e){return new($e||Oe)(k.Y36(At),k.Y36(Tt),k.Y36(k.SBq),k.Y36(P.Is,8))},Oe.\u0275dir=k.lG2({type:Oe,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),Oe})(),Jt=(()=>{class Oe{constructor($e,Xt){this._tree=$e,this._treeNode=Xt,this._recursive=!1}get recursive(){return this._recursive}set recursive($e){this._recursive=(0,D.Ig)($e)}_toggle($e){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),$e.stopPropagation()}}return Oe.\u0275fac=function($e){return new($e||Oe)(k.Y36(Tt),k.Y36(At))},Oe.\u0275dir=k.lG2({type:Oe,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function($e,Xt){1&$e&&k.NdJ("click",function(ae){return Xt._toggle(ae)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),Oe})(),xe=(()=>{class Oe{}return Oe.\u0275fac=function($e){return new($e||Oe)},Oe.\u0275mod=k.oAB({type:Oe}),Oe.\u0275inj=k.cJS({}),Oe})()},36895:(ot,et,b)=>{"use strict";b.d(et,{Do:()=>Dt,ED:()=>Sc,EM:()=>Gc,H9:()=>zl,HT:()=>t,JF:()=>Ps,JJ:()=>Hl,K0:()=>C,Mx:()=>Rn,NF:()=>bu,Nd:()=>jc,O5:()=>dr,Ov:()=>Al,PC:()=>Qr,PM:()=>Dr,RF:()=>Pc,S$:()=>lt,V_:()=>D,Ye:()=>zt,b0:()=>Pt,bD:()=>xc,ez:()=>Yl,i8:()=>Oc,mk:()=>Gi,n9:()=>al,q:()=>v,qS:()=>Be,rS:()=>Bc,sg:()=>ar,tP:()=>Fs,uU:()=>yl,w_:()=>A,xG:()=>Ia});var d=b(94650);let p=null;function v(){return p}function t(Mt){p||(p=Mt)}class A{}const C=new d.OlP("DocumentToken");let U=(()=>{class Mt{historyGo(jt){throw new Error("Not implemented")}}return Mt.\u0275fac=function(jt){return new(jt||Mt)},Mt.\u0275prov=d.Yz7({token:Mt,factory:function(){return function k(){return(0,d.LFG)(P)}()},providedIn:"platform"}),Mt})();const D=new d.OlP("Location Initialized");let P=(()=>{class Mt extends U{constructor(jt){super(),this._doc=jt,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return v().getBaseHref(this._doc)}onPopState(jt){const Qe=v().getGlobalEventTarget(this._doc,"window");return Qe.addEventListener("popstate",jt,!1),()=>Qe.removeEventListener("popstate",jt)}onHashChange(jt){const Qe=v().getGlobalEventTarget(this._doc,"window");return Qe.addEventListener("hashchange",jt,!1),()=>Qe.removeEventListener("hashchange",jt)}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(jt){this.location.pathname=jt}pushState(jt,Qe,On){I()?this._history.pushState(jt,Qe,On):this.location.hash=On}replaceState(jt,Qe,On){I()?this._history.replaceState(jt,Qe,On):this.location.hash=On}forward(){this._history.forward()}back(){this._history.back()}historyGo(jt=0){this._history.go(jt)}getState(){return this._history.state}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.LFG(C))},Mt.\u0275prov=d.Yz7({token:Mt,factory:function(){return function z(){return new P((0,d.LFG)(C))}()},providedIn:"platform"}),Mt})();function I(){return!!window.history.pushState}function G(Mt,me){if(0==Mt.length)return me;if(0==me.length)return Mt;let jt=0;return Mt.endsWith("/")&&jt++,me.startsWith("/")&&jt++,2==jt?Mt+me.substring(1):1==jt?Mt+me:Mt+"/"+me}function K(Mt){const me=Mt.match(/#|\?|$/),jt=me&&me.index||Mt.length;return Mt.slice(0,jt-("/"===Mt[jt-1]?1:0))+Mt.slice(jt)}function at(Mt){return Mt&&"?"!==Mt[0]?"?"+Mt:Mt}let lt=(()=>{class Mt{historyGo(jt){throw new Error("Not implemented")}}return Mt.\u0275fac=function(jt){return new(jt||Mt)},Mt.\u0275prov=d.Yz7({token:Mt,factory:function(){return(0,d.f3M)(Pt)},providedIn:"root"}),Mt})();const bt=new d.OlP("appBaseHref");let Pt=(()=>{class Mt extends lt{constructor(jt,Qe){super(),this._platformLocation=jt,this._removeListenerFns=[],this._baseHref=Qe??this._platformLocation.getBaseHrefFromDOM()??(0,d.f3M)(C).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(jt){this._removeListenerFns.push(this._platformLocation.onPopState(jt),this._platformLocation.onHashChange(jt))}getBaseHref(){return this._baseHref}prepareExternalUrl(jt){return G(this._baseHref,jt)}path(jt=!1){const Qe=this._platformLocation.pathname+at(this._platformLocation.search),On=this._platformLocation.hash;return On&&jt?`${Qe}${On}`:Qe}pushState(jt,Qe,On,Nt){const ce=this.prepareExternalUrl(On+at(Nt));this._platformLocation.pushState(jt,Qe,ce)}replaceState(jt,Qe,On,Nt){const ce=this.prepareExternalUrl(On+at(Nt));this._platformLocation.replaceState(jt,Qe,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(jt=0){this._platformLocation.historyGo?.(jt)}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.LFG(U),d.LFG(bt,8))},Mt.\u0275prov=d.Yz7({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})(),Dt=(()=>{class Mt extends lt{constructor(jt,Qe){super(),this._platformLocation=jt,this._baseHref="",this._removeListenerFns=[],null!=Qe&&(this._baseHref=Qe)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(jt){this._removeListenerFns.push(this._platformLocation.onPopState(jt),this._platformLocation.onHashChange(jt))}getBaseHref(){return this._baseHref}path(jt=!1){let Qe=this._platformLocation.hash;return null==Qe&&(Qe="#"),Qe.length>0?Qe.substring(1):Qe}prepareExternalUrl(jt){const Qe=G(this._baseHref,jt);return Qe.length>0?"#"+Qe:Qe}pushState(jt,Qe,On,Nt){let ce=this.prepareExternalUrl(On+at(Nt));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.pushState(jt,Qe,ce)}replaceState(jt,Qe,On,Nt){let ce=this.prepareExternalUrl(On+at(Nt));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.replaceState(jt,Qe,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(jt=0){this._platformLocation.historyGo?.(jt)}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.LFG(U),d.LFG(bt,8))},Mt.\u0275prov=d.Yz7({token:Mt,factory:Mt.\u0275fac}),Mt})(),zt=(()=>{class Mt{constructor(jt){this._subject=new d.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=jt;const Qe=this._locationStrategy.getBaseHref();this._baseHref=K(Tt(Qe)),this._locationStrategy.onPopState(On=>{this._subject.emit({url:this.path(!0),pop:!0,state:On.state,type:On.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(jt=!1){return this.normalize(this._locationStrategy.path(jt))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(jt,Qe=""){return this.path()==this.normalize(jt+at(Qe))}normalize(jt){return Mt.stripTrailingSlash(function nt(Mt,me){return Mt&&me.startsWith(Mt)?me.substring(Mt.length):me}(this._baseHref,Tt(jt)))}prepareExternalUrl(jt){return jt&&"/"!==jt[0]&&(jt="/"+jt),this._locationStrategy.prepareExternalUrl(jt)}go(jt,Qe="",On=null){this._locationStrategy.pushState(On,"",jt,Qe),this._notifyUrlChangeListeners(this.prepareExternalUrl(jt+at(Qe)),On)}replaceState(jt,Qe="",On=null){this._locationStrategy.replaceState(On,"",jt,Qe),this._notifyUrlChangeListeners(this.prepareExternalUrl(jt+at(Qe)),On)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(jt=0){this._locationStrategy.historyGo?.(jt)}onUrlChange(jt){return this._urlChangeListeners.push(jt),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Qe=>{this._notifyUrlChangeListeners(Qe.url,Qe.state)})),()=>{const Qe=this._urlChangeListeners.indexOf(jt);this._urlChangeListeners.splice(Qe,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(jt="",Qe){this._urlChangeListeners.forEach(On=>On(jt,Qe))}subscribe(jt,Qe,On){return this._subject.subscribe({next:jt,error:Qe,complete:On})}}return Mt.normalizeQueryParams=at,Mt.joinWithSlash=G,Mt.stripTrailingSlash=K,Mt.\u0275fac=function(jt){return new(jt||Mt)(d.LFG(lt))},Mt.\u0275prov=d.Yz7({token:Mt,factory:function(){return function Vt(){return new zt((0,d.LFG)(lt))}()},providedIn:"root"}),Mt})();function Tt(Mt){return Mt.replace(/\/index.html$/,"")}const At={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 ft=(()=>((ft=ft||{})[ft.Decimal=0]="Decimal",ft[ft.Percent=1]="Percent",ft[ft.Currency=2]="Currency",ft[ft.Scientific=3]="Scientific",ft))(),Bt=(()=>((Bt=Bt||{})[Bt.Format=0]="Format",Bt[Bt.Standalone=1]="Standalone",Bt))(),It=(()=>((It=It||{})[It.Narrow=0]="Narrow",It[It.Abbreviated=1]="Abbreviated",It[It.Wide=2]="Wide",It[It.Short=3]="Short",It))(),se=(()=>((se=se||{})[se.Short=0]="Short",se[se.Medium=1]="Medium",se[se.Long=2]="Long",se[se.Full=3]="Full",se))(),Jt=(()=>((Jt=Jt||{})[Jt.Decimal=0]="Decimal",Jt[Jt.Group=1]="Group",Jt[Jt.List=2]="List",Jt[Jt.PercentSign=3]="PercentSign",Jt[Jt.PlusSign=4]="PlusSign",Jt[Jt.MinusSign=5]="MinusSign",Jt[Jt.Exponential=6]="Exponential",Jt[Jt.SuperscriptingExponent=7]="SuperscriptingExponent",Jt[Jt.PerMille=8]="PerMille",Jt[Jt.Infinity=9]="Infinity",Jt[Jt.NaN=10]="NaN",Jt[Jt.TimeSeparator=11]="TimeSeparator",Jt[Jt.CurrencyDecimal=12]="CurrencyDecimal",Jt[Jt.CurrencyGroup=13]="CurrencyGroup",Jt))();function Kt(Mt,me){return ri((0,d.cg1)(Mt)[d.wAp.DateFormat],me)}function de(Mt,me){return ri((0,d.cg1)(Mt)[d.wAp.TimeFormat],me)}function Wt(Mt,me){return ri((0,d.cg1)(Mt)[d.wAp.DateTimeFormat],me)}function re(Mt,me){const jt=(0,d.cg1)(Mt),Qe=jt[d.wAp.NumberSymbols][me];if(typeof Qe>"u"){if(me===Jt.CurrencyDecimal)return jt[d.wAp.NumberSymbols][Jt.Decimal];if(me===Jt.CurrencyGroup)return jt[d.wAp.NumberSymbols][Jt.Group]}return Qe}function Pe(Mt,me){return(0,d.cg1)(Mt)[d.wAp.NumberFormats][me]}function un(Mt){if(!Mt[d.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Mt[d.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ri(Mt,me){for(let jt=me;jt>-1;jt--)if(typeof Mt[jt]<"u")return Mt[jt];throw new Error("Locale data API: locale data undefined")}function Ke(Mt){const[me,jt]=Mt.split(":");return{hours:+me,minutes:+jt}}const kt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Gt={},oe=/((?:[^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 Ce=(()=>((Ce=Ce||{})[Ce.Short=0]="Short",Ce[Ce.ShortGMT=1]="ShortGMT",Ce[Ce.Long=2]="Long",Ce[Ce.Extended=3]="Extended",Ce))(),Ee=(()=>((Ee=Ee||{})[Ee.FullYear=0]="FullYear",Ee[Ee.Month=1]="Month",Ee[Ee.Date=2]="Date",Ee[Ee.Hours=3]="Hours",Ee[Ee.Minutes=4]="Minutes",Ee[Ee.Seconds=5]="Seconds",Ee[Ee.FractionalSeconds=6]="FractionalSeconds",Ee[Ee.Day=7]="Day",Ee))(),Pn=(()=>((Pn=Pn||{})[Pn.DayPeriods=0]="DayPeriods",Pn[Pn.Days=1]="Days",Pn[Pn.Months=2]="Months",Pn[Pn.Eras=3]="Eras",Pn))();function Ln(Mt,me,jt,Qe){let On=function Re(Mt){if(gi(Mt))return Mt;if("number"==typeof Mt&&!isNaN(Mt))return new Date(Mt);if("string"==typeof Mt){if(Mt=Mt.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Mt)){const[On,Nt=1,ce=1]=Mt.split("-").map(Me=>+Me);return mi(On,Nt-1,ce)}const jt=parseFloat(Mt);if(!isNaN(Mt-jt))return new Date(jt);let Qe;if(Qe=Mt.match(kt))return function En(Mt){const me=new Date(0);let jt=0,Qe=0;const On=Mt[8]?me.setUTCFullYear:me.setFullYear,Nt=Mt[8]?me.setUTCHours:me.setHours;Mt[9]&&(jt=Number(Mt[9]+Mt[10]),Qe=Number(Mt[9]+Mt[11])),On.call(me,Number(Mt[1]),Number(Mt[2])-1,Number(Mt[3]));const ce=Number(Mt[4]||0)-jt,Me=Number(Mt[5]||0)-Qe,tn=Number(Mt[6]||0),vn=Math.floor(1e3*parseFloat("0."+(Mt[7]||0)));return Nt.call(me,ce,Me,tn,vn),me}(Qe)}const me=new Date(Mt);if(!gi(me))throw new Error(`Unable to convert "${Mt}" into a date`);return me}(Mt);me=Oi(jt,me)||me;let Me,ce=[];for(;me;){if(Me=oe.exec(me),!Me){ce.push(me);break}{ce=ce.concat(Me.slice(1));const Gn=ce.pop();if(!Gn)break;me=Gn}}let tn=On.getTimezoneOffset();Qe&&(tn=Fe(Qe,tn),On=function he(Mt,me,jt){const Qe=jt?-1:1,On=Mt.getTimezoneOffset();return function Tn(Mt,me){return(Mt=new Date(Mt.getTime())).setMinutes(Mt.getMinutes()+me),Mt}(Mt,Qe*(Fe(me,On)-On))}(On,Qe,!0));let vn="";return ce.forEach(Gn=>{const Qn=function Xe(Mt){if(Te[Mt])return Te[Mt];let me;switch(Mt){case"G":case"GG":case"GGG":me=fn(Pn.Eras,It.Abbreviated);break;case"GGGG":me=fn(Pn.Eras,It.Wide);break;case"GGGGG":me=fn(Pn.Eras,It.Narrow);break;case"y":me=jn(Ee.FullYear,1,0,!1,!0);break;case"yy":me=jn(Ee.FullYear,2,0,!0,!0);break;case"yyy":me=jn(Ee.FullYear,3,0,!1,!0);break;case"yyyy":me=jn(Ee.FullYear,4,0,!1,!0);break;case"Y":me=Ot(1);break;case"YY":me=Ot(2,!0);break;case"YYY":me=Ot(3);break;case"YYYY":me=Ot(4);break;case"M":case"L":me=jn(Ee.Month,1,1);break;case"MM":case"LL":me=jn(Ee.Month,2,1);break;case"MMM":me=fn(Pn.Months,It.Abbreviated);break;case"MMMM":me=fn(Pn.Months,It.Wide);break;case"MMMMM":me=fn(Pn.Months,It.Narrow);break;case"LLL":me=fn(Pn.Months,It.Abbreviated,Bt.Standalone);break;case"LLLL":me=fn(Pn.Months,It.Wide,Bt.Standalone);break;case"LLLLL":me=fn(Pn.Months,It.Narrow,Bt.Standalone);break;case"w":me=wt(1);break;case"ww":me=wt(2);break;case"W":me=wt(1,!0);break;case"d":me=jn(Ee.Date,1);break;case"dd":me=jn(Ee.Date,2);break;case"c":case"cc":me=jn(Ee.Day,1);break;case"ccc":me=fn(Pn.Days,It.Abbreviated,Bt.Standalone);break;case"cccc":me=fn(Pn.Days,It.Wide,Bt.Standalone);break;case"ccccc":me=fn(Pn.Days,It.Narrow,Bt.Standalone);break;case"cccccc":me=fn(Pn.Days,It.Short,Bt.Standalone);break;case"E":case"EE":case"EEE":me=fn(Pn.Days,It.Abbreviated);break;case"EEEE":me=fn(Pn.Days,It.Wide);break;case"EEEEE":me=fn(Pn.Days,It.Narrow);break;case"EEEEEE":me=fn(Pn.Days,It.Short);break;case"a":case"aa":case"aaa":me=fn(Pn.DayPeriods,It.Abbreviated);break;case"aaaa":me=fn(Pn.DayPeriods,It.Wide);break;case"aaaaa":me=fn(Pn.DayPeriods,It.Narrow);break;case"b":case"bb":case"bbb":me=fn(Pn.DayPeriods,It.Abbreviated,Bt.Standalone,!0);break;case"bbbb":me=fn(Pn.DayPeriods,It.Wide,Bt.Standalone,!0);break;case"bbbbb":me=fn(Pn.DayPeriods,It.Narrow,Bt.Standalone,!0);break;case"B":case"BB":case"BBB":me=fn(Pn.DayPeriods,It.Abbreviated,Bt.Format,!0);break;case"BBBB":me=fn(Pn.DayPeriods,It.Wide,Bt.Format,!0);break;case"BBBBB":me=fn(Pn.DayPeriods,It.Narrow,Bt.Format,!0);break;case"h":me=jn(Ee.Hours,1,-12);break;case"hh":me=jn(Ee.Hours,2,-12);break;case"H":me=jn(Ee.Hours,1);break;case"HH":me=jn(Ee.Hours,2);break;case"m":me=jn(Ee.Minutes,1);break;case"mm":me=jn(Ee.Minutes,2);break;case"s":me=jn(Ee.Seconds,1);break;case"ss":me=jn(Ee.Seconds,2);break;case"S":me=jn(Ee.FractionalSeconds,1);break;case"SS":me=jn(Ee.FractionalSeconds,2);break;case"SSS":me=jn(Ee.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":me=We(Ce.Short);break;case"ZZZZZ":me=We(Ce.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":me=We(Ce.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":me=We(Ce.Long);break;default:return null}return Te[Mt]=me,me}(Gn);vn+=Qn?Qn(On,jt,tn):"''"===Gn?"'":Gn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),vn}function mi(Mt,me,jt){const Qe=new Date(0);return Qe.setFullYear(Mt,me,jt),Qe.setHours(0,0,0),Qe}function Oi(Mt,me){const jt=function xe(Mt){return(0,d.cg1)(Mt)[d.wAp.LocaleId]}(Mt);if(Gt[jt]=Gt[jt]||{},Gt[jt][me])return Gt[jt][me];let Qe="";switch(me){case"shortDate":Qe=Kt(Mt,se.Short);break;case"mediumDate":Qe=Kt(Mt,se.Medium);break;case"longDate":Qe=Kt(Mt,se.Long);break;case"fullDate":Qe=Kt(Mt,se.Full);break;case"shortTime":Qe=de(Mt,se.Short);break;case"mediumTime":Qe=de(Mt,se.Medium);break;case"longTime":Qe=de(Mt,se.Long);break;case"fullTime":Qe=de(Mt,se.Full);break;case"short":const On=Oi(Mt,"shortTime"),Nt=Oi(Mt,"shortDate");Qe=ho(Wt(Mt,se.Short),[On,Nt]);break;case"medium":const ce=Oi(Mt,"mediumTime"),Me=Oi(Mt,"mediumDate");Qe=ho(Wt(Mt,se.Medium),[ce,Me]);break;case"long":const tn=Oi(Mt,"longTime"),vn=Oi(Mt,"longDate");Qe=ho(Wt(Mt,se.Long),[tn,vn]);break;case"full":const Gn=Oi(Mt,"fullTime"),Qn=Oi(Mt,"fullDate");Qe=ho(Wt(Mt,se.Full),[Gn,Qn])}return Qe&&(Gt[jt][me]=Qe),Qe}function ho(Mt,me){return me&&(Mt=Mt.replace(/\{([^}]+)}/g,function(jt,Qe){return null!=me&&Qe in me?me[Qe]:jt})),Mt}function fi(Mt,me,jt="-",Qe,On){let Nt="";(Mt<0||On&&Mt<=0)&&(On?Mt=1-Mt:(Mt=-Mt,Nt=jt));let ce=String(Mt);for(;ce.length0||Me>-jt)&&(Me+=jt),Mt===Ee.Hours)0===Me&&-12===jt&&(Me=12);else if(Mt===Ee.FractionalSeconds)return function Yn(Mt,me){return fi(Mt,3).substring(0,me)}(Me,me);const tn=re(ce,Jt.MinusSign);return fi(Me,me,tn,Qe,On)}}function fn(Mt,me,jt=Bt.Format,Qe=!1){return function(On,Nt){return function ze(Mt,me,jt,Qe,On,Nt){switch(jt){case Pn.Months:return function $e(Mt,me,jt){const Qe=(0,d.cg1)(Mt),Nt=ri([Qe[d.wAp.MonthsFormat],Qe[d.wAp.MonthsStandalone]],me);return ri(Nt,jt)}(me,On,Qe)[Mt.getMonth()];case Pn.Days:return function qe(Mt,me,jt){const Qe=(0,d.cg1)(Mt),Nt=ri([Qe[d.wAp.DaysFormat],Qe[d.wAp.DaysStandalone]],me);return ri(Nt,jt)}(me,On,Qe)[Mt.getDay()];case Pn.DayPeriods:const ce=Mt.getHours(),Me=Mt.getMinutes();if(Nt){const vn=function Mn(Mt){const me=(0,d.cg1)(Mt);return un(me),(me[d.wAp.ExtraData][2]||[]).map(Qe=>"string"==typeof Qe?Ke(Qe):[Ke(Qe[0]),Ke(Qe[1])])}(me),Gn=function oi(Mt,me,jt){const Qe=(0,d.cg1)(Mt);un(Qe);const Nt=ri([Qe[d.wAp.ExtraData][0],Qe[d.wAp.ExtraData][1]],me)||[];return ri(Nt,jt)||[]}(me,On,Qe),Qn=vn.findIndex(yi=>{if(Array.isArray(yi)){const[Ti,bo]=yi,xo=ce>=Ti.hours&&Me>=Ti.minutes,yo=ce0?Math.floor(On/60):Math.ceil(On/60);switch(Mt){case Ce.Short:return(On>=0?"+":"")+fi(ce,2,Nt)+fi(Math.abs(On%60),2,Nt);case Ce.ShortGMT:return"GMT"+(On>=0?"+":"")+fi(ce,1,Nt);case Ce.Long:return"GMT"+(On>=0?"+":"")+fi(ce,2,Nt)+":"+fi(Math.abs(On%60),2,Nt);case Ce.Extended:return 0===Qe?"Z":(On>=0?"+":"")+fi(ce,2,Nt)+":"+fi(Math.abs(On%60),2,Nt);default:throw new Error(`Unknown zone width "${Mt}"`)}}}function Lt(Mt){return mi(Mt.getFullYear(),Mt.getMonth(),Mt.getDate()+(4-Mt.getDay()))}function wt(Mt,me=!1){return function(jt,Qe){let On;if(me){const Nt=new Date(jt.getFullYear(),jt.getMonth(),1).getDay()-1,ce=jt.getDate();On=1+Math.floor((ce+Nt)/7)}else{const Nt=Lt(jt),ce=function Je(Mt){const me=mi(Mt,0,1).getDay();return mi(Mt,0,1+(me<=4?4:11)-me)}(Nt.getFullYear()),Me=Nt.getTime()-ce.getTime();On=1+Math.round(Me/6048e5)}return fi(On,Mt,re(Qe,Jt.MinusSign))}}function Ot(Mt,me=!1){return function(jt,Qe){return fi(Lt(jt).getFullYear(),Mt,re(Qe,Jt.MinusSign),me)}}const Te={};function Fe(Mt,me){Mt=Mt.replace(/:/g,"");const jt=Date.parse("Jan 01, 1970 00:00:00 "+Mt)/6e4;return isNaN(jt)?me:jt}function gi(Mt){return Mt instanceof Date&&!isNaN(Mt.valueOf())}const go=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ca(Mt,me,jt,Qe,On,Nt,ce=!1){let Me="",tn=!1;if(isFinite(Mt)){let vn=function ke(Mt){let Qe,On,Nt,ce,Me,me=Math.abs(Mt)+"",jt=0;for((On=me.indexOf("."))>-1&&(me=me.replace(".","")),(Nt=me.search(/e/i))>0?(On<0&&(On=Nt),On+=+me.slice(Nt+1),me=me.substring(0,Nt)):On<0&&(On=me.length),Nt=0;"0"===me.charAt(Nt);Nt++);if(Nt===(Me=me.length))Qe=[0],On=1;else{for(Me--;"0"===me.charAt(Me);)Me--;for(On-=Nt,Qe=[],ce=0;Nt<=Me;Nt++,ce++)Qe[ce]=Number(me.charAt(Nt))}return On>22&&(Qe=Qe.splice(0,21),jt=On-1,On=1),{digits:Qe,exponent:jt,integerLen:On}}(Mt);ce&&(vn=function He(Mt){if(0===Mt.digits[0])return Mt;const me=Mt.digits.length-Mt.integerLen;return Mt.exponent?Mt.exponent+=2:(0===me?Mt.digits.push(0,0):1===me&&Mt.digits.push(0),Mt.integerLen+=2),Mt}(vn));let Gn=me.minInt,Qn=me.minFrac,yi=me.maxFrac;if(Nt){const ra=Nt.match(go);if(null===ra)throw new Error(`${Nt} is not a valid digit info`);const fa=ra[1],es=ra[3],Hs=ra[5];null!=fa&&(Gn=tt(fa)),null!=es&&(Qn=tt(es)),null!=Hs?yi=tt(Hs):null!=es&&Qn>yi&&(yi=Qn)}!function dn(Mt,me,jt){if(me>jt)throw new Error(`The minimum number of digits after fraction (${me}) is higher than the maximum (${jt}).`);let Qe=Mt.digits,On=Qe.length-Mt.integerLen;const Nt=Math.min(Math.max(me,On),jt);let ce=Nt+Mt.integerLen,Me=Qe[ce];if(ce>0){Qe.splice(Math.max(Mt.integerLen,ce));for(let Qn=ce;Qn=5)if(ce-1<0){for(let Qn=0;Qn>ce;Qn--)Qe.unshift(0),Mt.integerLen++;Qe.unshift(1),Mt.integerLen++}else Qe[ce-1]++;for(;On=vn?bo.pop():tn=!1),yi>=10?1:0},0);Gn&&(Qe.unshift(Gn),Mt.integerLen++)}(vn,Qn,yi);let Ti=vn.digits,bo=vn.integerLen;const xo=vn.exponent;let yo=[];for(tn=Ti.every(ra=>!ra);bo0?yo=Ti.splice(bo,Ti.length):(yo=Ti,Ti=[0]);const ga=[];for(Ti.length>=me.lgSize&&ga.unshift(Ti.splice(-me.lgSize,Ti.length).join(""));Ti.length>me.gSize;)ga.unshift(Ti.splice(-me.gSize,Ti.length).join(""));Ti.length&&ga.unshift(Ti.join("")),Me=ga.join(re(jt,Qe)),yo.length&&(Me+=re(jt,On)+yo.join("")),xo&&(Me+=re(jt,Jt.Exponential)+"+"+xo)}else Me=re(jt,Jt.Infinity);return Me=Mt<0&&!tn?me.negPre+Me+me.negSuf:me.posPre+Me+me.posSuf,Me}function Ia(Mt,me,jt,Qe,On){const ce=In(Pe(me,ft.Currency),re(me,Jt.MinusSign));return ce.minFrac=function it(Mt){let me;const jt=At[Mt];return jt&&(me=jt[2]),"number"==typeof me?me:2}(Qe),ce.maxFrac=ce.minFrac,ca(Mt,ce,me,Jt.CurrencyGroup,Jt.CurrencyDecimal,On).replace("\xa4",jt).replace("\xa4","").trim()}function In(Mt,me="-"){const jt={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Qe=Mt.split(";"),On=Qe[0],Nt=Qe[1],ce=-1!==On.indexOf(".")?On.split("."):[On.substring(0,On.lastIndexOf("0")+1),On.substring(On.lastIndexOf("0")+1)],Me=ce[0],tn=ce[1]||"";jt.posPre=Me.substring(0,Me.indexOf("#"));for(let Gn=0;Gn{class Mt{constructor(jt,Qe,On,Nt){this._iterableDiffers=jt,this._keyValueDiffers=Qe,this._ngEl=On,this._renderer=Nt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(jt){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof jt?jt.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(jt){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof jt?jt.split(/\s+/):jt,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 jt=this._iterableDiffer.diff(this._rawClass);jt&&this._applyIterableChanges(jt)}else if(this._keyValueDiffer){const jt=this._keyValueDiffer.diff(this._rawClass);jt&&this._applyKeyValueChanges(jt)}}_applyKeyValueChanges(jt){jt.forEachAddedItem(Qe=>this._toggleClass(Qe.key,Qe.currentValue)),jt.forEachChangedItem(Qe=>this._toggleClass(Qe.key,Qe.currentValue)),jt.forEachRemovedItem(Qe=>{Qe.previousValue&&this._toggleClass(Qe.key,!1)})}_applyIterableChanges(jt){jt.forEachAddedItem(Qe=>{if("string"!=typeof Qe.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,d.AaK)(Qe.item)}`);this._toggleClass(Qe.item,!0)}),jt.forEachRemovedItem(Qe=>this._toggleClass(Qe.item,!1))}_applyClasses(jt){jt&&(Array.isArray(jt)||jt instanceof Set?jt.forEach(Qe=>this._toggleClass(Qe,!0)):Object.keys(jt).forEach(Qe=>this._toggleClass(Qe,!!jt[Qe])))}_removeClasses(jt){jt&&(Array.isArray(jt)||jt instanceof Set?jt.forEach(Qe=>this._toggleClass(Qe,!1)):Object.keys(jt).forEach(Qe=>this._toggleClass(Qe,!1)))}_toggleClass(jt,Qe){(jt=jt.trim())&&jt.split(/\s+/g).forEach(On=>{Qe?this._renderer.addClass(this._ngEl.nativeElement,On):this._renderer.removeClass(this._ngEl.nativeElement,On)})}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.ZZ4),d.Y36(d.aQg),d.Y36(d.SBq),d.Y36(d.Qsj))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Mt})();class ls{constructor(me,jt,Qe,On){this.$implicit=me,this.ngForOf=jt,this.index=Qe,this.count=On}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 ar=(()=>{class Mt{constructor(jt,Qe,On){this._viewContainer=jt,this._template=Qe,this._differs=On,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(jt){this._ngForOf=jt,this._ngForOfDirty=!0}set ngForTrackBy(jt){this._trackByFn=jt}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(jt){jt&&(this._template=jt)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const jt=this._ngForOf;!this._differ&&jt&&(this._differ=this._differs.find(jt).create(this.ngForTrackBy))}if(this._differ){const jt=this._differ.diff(this._ngForOf);jt&&this._applyChanges(jt)}}_applyChanges(jt){const Qe=this._viewContainer;jt.forEachOperation((On,Nt,ce)=>{if(null==On.previousIndex)Qe.createEmbeddedView(this._template,new ls(On.item,this._ngForOf,-1,-1),null===ce?void 0:ce);else if(null==ce)Qe.remove(null===Nt?void 0:Nt);else if(null!==Nt){const Me=Qe.get(Nt);Qe.move(Me,ce),Er(Me,On)}});for(let On=0,Nt=Qe.length;On{Er(Qe.get(On.currentIndex),On)})}static ngTemplateContextGuard(jt,Qe){return!0}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(d.ZZ4))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Mt})();function Er(Mt,me){Mt.context.$implicit=me.item}let dr=(()=>{class Mt{constructor(jt,Qe){this._viewContainer=jt,this._context=new Br,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Qe}set ngIf(jt){this._context.$implicit=this._context.ngIf=jt,this._updateView()}set ngIfThen(jt){Gr("ngIfThen",jt),this._thenTemplateRef=jt,this._thenViewRef=null,this._updateView()}set ngIfElse(jt){Gr("ngIfElse",jt),this._elseTemplateRef=jt,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(jt,Qe){return!0}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.s_b),d.Y36(d.Rgc))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Mt})();class Br{constructor(){this.$implicit=null,this.ngIf=null}}function Gr(Mt,me){if(me&&!me.createEmbeddedView)throw new Error(`${Mt} must be a TemplateRef, but received '${(0,d.AaK)(me)}'.`)}class Ir{constructor(me,jt){this._viewContainerRef=me,this._templateRef=jt,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(me){me&&!this._created?this.create():!me&&this._created&&this.destroy()}}let Pc=(()=>{class Mt{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(jt){this._ngSwitch=jt,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(jt){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(jt)}_matchCase(jt){const Qe=jt==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Qe,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Qe}_updateDefaultCases(jt){if(this._defaultViews&&jt!==this._defaultUsed){this._defaultUsed=jt;for(let Qe=0;Qe{class Mt{constructor(jt,Qe,On){this.ngSwitch=On,On._addCase(),this._view=new Ir(jt,Qe)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(Pc,9))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Mt})(),Sc=(()=>{class Mt{constructor(jt,Qe,On){On._addDefault(new Ir(jt,Qe))}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(Pc,9))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Mt})(),Qr=(()=>{class Mt{constructor(jt,Qe,On){this._ngEl=jt,this._differs=Qe,this._renderer=On,this._ngStyle=null,this._differ=null}set ngStyle(jt){this._ngStyle=jt,!this._differ&&jt&&(this._differ=this._differs.find(jt).create())}ngDoCheck(){if(this._differ){const jt=this._differ.diff(this._ngStyle);jt&&this._applyChanges(jt)}}_setStyle(jt,Qe){const[On,Nt]=jt.split("."),ce=-1===On.indexOf("-")?void 0:d.JOm.DashCase;null!=Qe?this._renderer.setStyle(this._ngEl.nativeElement,On,Nt?`${Qe}${Nt}`:Qe,ce):this._renderer.removeStyle(this._ngEl.nativeElement,On,ce)}_applyChanges(jt){jt.forEachRemovedItem(Qe=>this._setStyle(Qe.key,null)),jt.forEachAddedItem(Qe=>this._setStyle(Qe.key,Qe.currentValue)),jt.forEachChangedItem(Qe=>this._setStyle(Qe.key,Qe.currentValue))}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.SBq),d.Y36(d.aQg),d.Y36(d.Qsj))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Mt})(),Fs=(()=>{class Mt{constructor(jt){this._viewContainerRef=jt,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(jt){if(jt.ngTemplateOutlet||jt.ngTemplateOutletInjector){const Qe=this._viewContainerRef;if(this._viewRef&&Qe.remove(Qe.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:On,ngTemplateOutletContext:Nt,ngTemplateOutletInjector:ce}=this;this._viewRef=Qe.createEmbeddedView(On,Nt,ce?{injector:ce}:void 0)}else this._viewRef=null}else this._viewRef&&jt.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.s_b))},Mt.\u0275dir=d.lG2({type:Mt,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[d.TTD]}),Mt})();function hr(Mt,me){return new d.vHH(2100,!1)}class iu{createSubscription(me,jt){return me.subscribe({next:jt,error:Qe=>{throw Qe}})}dispose(me){me.unsubscribe()}}class f1{createSubscription(me,jt){return me.then(jt,Qe=>{throw Qe})}dispose(me){}}const vc=new f1,Cl=new iu;let Al=(()=>{class Mt{constructor(jt){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=jt}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(jt){return this._obj?jt!==this._obj?(this._dispose(),this.transform(jt)):this._latestValue:(jt&&this._subscribe(jt),this._latestValue)}_subscribe(jt){this._obj=jt,this._strategy=this._selectStrategy(jt),this._subscription=this._strategy.createSubscription(jt,Qe=>this._updateLatestValue(jt,Qe))}_selectStrategy(jt){if((0,d.QGY)(jt))return vc;if((0,d.F4k)(jt))return Cl;throw hr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(jt,Qe){jt===this._obj&&(this._latestValue=Qe,this._ref.markForCheck())}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.sBO,16))},Mt.\u0275pipe=d.Yjl({name:"async",type:Mt,pure:!1,standalone:!0}),Mt})(),Oc=(()=>{class Mt{transform(jt){if(null==jt)return null;if("string"!=typeof jt)throw hr();return jt.toLowerCase()}}return Mt.\u0275fac=function(jt){return new(jt||Mt)},Mt.\u0275pipe=d.Yjl({name:"lowercase",type:Mt,pure:!0,standalone:!0}),Mt})();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 Bc=(()=>{class Mt{transform(jt){if(null==jt)return null;if("string"!=typeof jt)throw hr();return jt.replace(Vs,Qe=>Qe[0].toUpperCase()+Qe.slice(1).toLowerCase())}}return Mt.\u0275fac=function(jt){return new(jt||Mt)},Mt.\u0275pipe=d.Yjl({name:"titlecase",type:Mt,pure:!0,standalone:!0}),Mt})();const js=new d.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let yl=(()=>{class Mt{constructor(jt,Qe){this.locale=jt,this.defaultTimezone=Qe}transform(jt,Qe="mediumDate",On,Nt){if(null==jt||""===jt||jt!=jt)return null;try{return Ln(jt,Qe,Nt||this.locale,On??this.defaultTimezone??void 0)}catch(ce){throw hr()}}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.soG,16),d.Y36(js,24))},Mt.\u0275pipe=d.Yjl({name:"date",type:Mt,pure:!0,standalone:!0}),Mt})(),jc=(()=>{class Mt{constructor(jt){this.differs=jt,this.keyValues=[],this.compareFn=ks}transform(jt,Qe=ks){if(!jt||!(jt instanceof Map)&&"object"!=typeof jt)return null;this.differ||(this.differ=this.differs.find(jt).create());const On=this.differ.diff(jt),Nt=Qe!==this.compareFn;return On&&(this.keyValues=[],On.forEachItem(ce=>{this.keyValues.push(function Gs(Mt,me){return{key:Mt,value:me}}(ce.key,ce.currentValue))})),(On||Nt)&&(this.keyValues.sort(Qe),this.compareFn=Qe),this.keyValues}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.aQg,16))},Mt.\u0275pipe=d.Yjl({name:"keyvalue",type:Mt,pure:!1,standalone:!0}),Mt})();function ks(Mt,me){const jt=Mt.key,Qe=me.key;if(jt===Qe)return 0;if(void 0===jt)return 1;if(void 0===Qe)return-1;if(null===jt)return 1;if(null===Qe)return-1;if("string"==typeof jt&&"string"==typeof Qe)return jt{class Mt{constructor(jt){this._locale=jt}transform(jt,Qe,On){if(!qo(jt))return null;On=On||this._locale;try{return function Ge(Mt,me,jt){return ca(Mt,In(Pe(me,ft.Decimal),re(me,Jt.MinusSign)),me,Jt.Group,Jt.Decimal,jt)}(rr(jt),On,Qe)}catch(Nt){throw hr()}}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.soG,16))},Mt.\u0275pipe=d.Yjl({name:"number",type:Mt,pure:!0,standalone:!0}),Mt})(),zl=(()=>{class Mt{constructor(jt,Qe="USD"){this._locale=jt,this._defaultCurrencyCode=Qe}transform(jt,Qe=this._defaultCurrencyCode,On="symbol",Nt,ce){if(!qo(jt))return null;ce=ce||this._locale,"boolean"==typeof On&&(On=On?"symbol":"code");let Me=Qe||this._defaultCurrencyCode;"code"!==On&&(Me="symbol"===On||"symbol-narrow"===On?function ne(Mt,me,jt="en"){const Qe=function gn(Mt){return(0,d.cg1)(Mt)[d.wAp.Currencies]}(jt)[Mt]||At[Mt]||[],On=Qe[1];return"narrow"===me&&"string"==typeof On?On:Qe[0]||Mt}(Me,"symbol"===On?"wide":"narrow",ce):On);try{return Ia(rr(jt),ce,Me,Qe,Nt)}catch(tn){throw hr()}}}return Mt.\u0275fac=function(jt){return new(jt||Mt)(d.Y36(d.soG,16),d.Y36(d.EJc,16))},Mt.\u0275pipe=d.Yjl({name:"currency",type:Mt,pure:!0,standalone:!0}),Mt})();function qo(Mt){return!(null==Mt||""===Mt||Mt!=Mt)}function rr(Mt){if("string"==typeof Mt&&!isNaN(Number(Mt)-parseFloat(Mt)))return Number(Mt);if("number"!=typeof Mt)throw new Error(`${Mt} is not a number`);return Mt}let Yl=(()=>{class Mt{}return Mt.\u0275fac=function(jt){return new(jt||Mt)},Mt.\u0275mod=d.oAB({type:Mt}),Mt.\u0275inj=d.cJS({}),Mt})();const xc="browser";function bu(Mt){return Mt===xc}function Dr(Mt){return"server"===Mt}let Gc=(()=>{class Mt{}return Mt.\u0275prov=(0,d.Yz7)({token:Mt,providedIn:"root",factory:()=>new xs((0,d.LFG)(C),window)}),Mt})();class xs{constructor(me,jt){this.document=me,this.window=jt,this.offset=()=>[0,0]}setOffset(me){this.offset=Array.isArray(me)?()=>me:me}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(me){this.supportsScrolling()&&this.window.scrollTo(me[0],me[1])}scrollToAnchor(me){if(!this.supportsScrolling())return;const jt=function sr(Mt,me){const jt=Mt.getElementById(me)||Mt.getElementsByName(me)[0];if(jt)return jt;if("function"==typeof Mt.createTreeWalker&&Mt.body&&(Mt.body.createShadowRoot||Mt.body.attachShadow)){const Qe=Mt.createTreeWalker(Mt.body,NodeFilter.SHOW_ELEMENT);let On=Qe.currentNode;for(;On;){const Nt=On.shadowRoot;if(Nt){const ce=Nt.getElementById(me)||Nt.querySelector(`[name="${me}"]`);if(ce)return ce}On=Qe.nextNode()}}return null}(this.document,me);jt&&(this.scrollToElement(jt),jt.focus())}setHistoryScrollRestoration(me){if(this.supportScrollRestoration()){const jt=this.window.history;jt&&jt.scrollRestoration&&(jt.scrollRestoration=me)}}scrollToElement(me){const jt=me.getBoundingClientRect(),Qe=jt.left+this.window.pageXOffset,On=jt.top+this.window.pageYOffset,Nt=this.offset();this.window.scrollTo(Qe-Nt[0],On-Nt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const me=Ac(this.window.history)||Ac(Object.getPrototypeOf(this.window.history));return!(!me||!me.writable&&!me.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Ac(Mt){return Object.getOwnPropertyDescriptor(Mt,"scrollRestoration")}class Ps{}},80529:(ot,et,b)=>{"use strict";b.d(et,{JF:()=>it,LE:()=>bt,PG:()=>U,TP:()=>qe,Zn:()=>se,eN:()=>xe});var d=b(36895),p=b(94650),v=b(21086),T=b(56498),t=b(21406),A=b(92198),C=b(24850);class U{}class k{}class D{constructor(Ce){this.normalizedNames=new Map,this.lazyUpdate=null,Ce?this.lazyInit="string"==typeof Ce?()=>{this.headers=new Map,Ce.split("\n").forEach(Ee=>{const Pn=Ee.indexOf(":");if(Pn>0){const Ln=Ee.slice(0,Pn),mi=Ln.toLowerCase(),Oi=Ee.slice(Pn+1).trim();this.maybeSetNormalizedName(Ln,mi),this.headers.has(mi)?this.headers.get(mi).push(Oi):this.headers.set(mi,[Oi])}})}:()=>{this.headers=new Map,Object.keys(Ce).forEach(Ee=>{let Pn=Ce[Ee];const Ln=Ee.toLowerCase();"string"==typeof Pn&&(Pn=[Pn]),Pn.length>0&&(this.headers.set(Ln,Pn),this.maybeSetNormalizedName(Ee,Ln))})}:this.headers=new Map}has(Ce){return this.init(),this.headers.has(Ce.toLowerCase())}get(Ce){this.init();const Ee=this.headers.get(Ce.toLowerCase());return Ee&&Ee.length>0?Ee[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Ce){return this.init(),this.headers.get(Ce.toLowerCase())||null}append(Ce,Ee){return this.clone({name:Ce,value:Ee,op:"a"})}set(Ce,Ee){return this.clone({name:Ce,value:Ee,op:"s"})}delete(Ce,Ee){return this.clone({name:Ce,value:Ee,op:"d"})}maybeSetNormalizedName(Ce,Ee){this.normalizedNames.has(Ee)||this.normalizedNames.set(Ee,Ce)}init(){this.lazyInit&&(this.lazyInit instanceof D?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Ce=>this.applyUpdate(Ce)),this.lazyUpdate=null))}copyFrom(Ce){Ce.init(),Array.from(Ce.headers.keys()).forEach(Ee=>{this.headers.set(Ee,Ce.headers.get(Ee)),this.normalizedNames.set(Ee,Ce.normalizedNames.get(Ee))})}clone(Ce){const Ee=new D;return Ee.lazyInit=this.lazyInit&&this.lazyInit instanceof D?this.lazyInit:this,Ee.lazyUpdate=(this.lazyUpdate||[]).concat([Ce]),Ee}applyUpdate(Ce){const Ee=Ce.name.toLowerCase();switch(Ce.op){case"a":case"s":let Pn=Ce.value;if("string"==typeof Pn&&(Pn=[Pn]),0===Pn.length)return;this.maybeSetNormalizedName(Ce.name,Ee);const Ln=("a"===Ce.op?this.headers.get(Ee):void 0)||[];Ln.push(...Pn),this.headers.set(Ee,Ln);break;case"d":const mi=Ce.value;if(mi){let Oi=this.headers.get(Ee);if(!Oi)return;Oi=Oi.filter(ho=>-1===mi.indexOf(ho)),0===Oi.length?(this.headers.delete(Ee),this.normalizedNames.delete(Ee)):this.headers.set(Ee,Oi)}else this.headers.delete(Ee),this.normalizedNames.delete(Ee)}}forEach(Ce){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ee=>Ce(this.normalizedNames.get(Ee),this.headers.get(Ee)))}}class I{encodeKey(Ce){return at(Ce)}encodeValue(Ce){return at(Ce)}decodeKey(Ce){return decodeURIComponent(Ce)}decodeValue(Ce){return decodeURIComponent(Ce)}}const G=/%(\d[a-f0-9])/gi,K={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function at(oe){return encodeURIComponent(oe).replace(G,(Ce,Ee)=>K[Ee]??Ce)}function lt(oe){return`${oe}`}class bt{constructor(Ce={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Ce.encoder||new I,Ce.fromString){if(Ce.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function z(oe,Ce){const Ee=new Map;return oe.length>0&&oe.replace(/^\?/,"").split("&").forEach(Ln=>{const mi=Ln.indexOf("="),[Oi,ho]=-1==mi?[Ce.decodeKey(Ln),""]:[Ce.decodeKey(Ln.slice(0,mi)),Ce.decodeValue(Ln.slice(mi+1))],fi=Ee.get(Oi)||[];fi.push(ho),Ee.set(Oi,fi)}),Ee}(Ce.fromString,this.encoder)}else Ce.fromObject?(this.map=new Map,Object.keys(Ce.fromObject).forEach(Ee=>{const Pn=Ce.fromObject[Ee],Ln=Array.isArray(Pn)?Pn.map(lt):[lt(Pn)];this.map.set(Ee,Ln)})):this.map=null}has(Ce){return this.init(),this.map.has(Ce)}get(Ce){this.init();const Ee=this.map.get(Ce);return Ee?Ee[0]:null}getAll(Ce){return this.init(),this.map.get(Ce)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Ce,Ee){return this.clone({param:Ce,value:Ee,op:"a"})}appendAll(Ce){const Ee=[];return Object.keys(Ce).forEach(Pn=>{const Ln=Ce[Pn];Array.isArray(Ln)?Ln.forEach(mi=>{Ee.push({param:Pn,value:mi,op:"a"})}):Ee.push({param:Pn,value:Ln,op:"a"})}),this.clone(Ee)}set(Ce,Ee){return this.clone({param:Ce,value:Ee,op:"s"})}delete(Ce,Ee){return this.clone({param:Ce,value:Ee,op:"d"})}toString(){return this.init(),this.keys().map(Ce=>{const Ee=this.encoder.encodeKey(Ce);return this.map.get(Ce).map(Pn=>Ee+"="+this.encoder.encodeValue(Pn)).join("&")}).filter(Ce=>""!==Ce).join("&")}clone(Ce){const Ee=new bt({encoder:this.encoder});return Ee.cloneFrom=this.cloneFrom||this,Ee.updates=(this.updates||[]).concat(Ce),Ee}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Ce=>this.map.set(Ce,this.cloneFrom.map.get(Ce))),this.updates.forEach(Ce=>{switch(Ce.op){case"a":case"s":const Ee=("a"===Ce.op?this.map.get(Ce.param):void 0)||[];Ee.push(lt(Ce.value)),this.map.set(Ce.param,Ee);break;case"d":if(void 0===Ce.value){this.map.delete(Ce.param);break}{let Pn=this.map.get(Ce.param)||[];const Ln=Pn.indexOf(lt(Ce.value));-1!==Ln&&Pn.splice(Ln,1),Pn.length>0?this.map.set(Ce.param,Pn):this.map.delete(Ce.param)}}}),this.cloneFrom=this.updates=null)}}class Dt{constructor(){this.map=new Map}set(Ce,Ee){return this.map.set(Ce,Ee),this}get(Ce){return this.map.has(Ce)||this.map.set(Ce,Ce.defaultValue()),this.map.get(Ce)}delete(Ce){return this.map.delete(Ce),this}has(Ce){return this.map.has(Ce)}keys(){return this.map.keys()}}function Vt(oe){return typeof ArrayBuffer<"u"&&oe instanceof ArrayBuffer}function nt(oe){return typeof Blob<"u"&&oe instanceof Blob}function Tt(oe){return typeof FormData<"u"&&oe instanceof FormData}class ft{constructor(Ce,Ee,Pn,Ln){let mi;if(this.url=Ee,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Ce.toUpperCase(),function zt(oe){switch(oe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ln?(this.body=void 0!==Pn?Pn:null,mi=Ln):mi=Pn,mi&&(this.reportProgress=!!mi.reportProgress,this.withCredentials=!!mi.withCredentials,mi.responseType&&(this.responseType=mi.responseType),mi.headers&&(this.headers=mi.headers),mi.context&&(this.context=mi.context),mi.params&&(this.params=mi.params)),this.headers||(this.headers=new D),this.context||(this.context=new Dt),this.params){const Oi=this.params.toString();if(0===Oi.length)this.urlWithParams=Ee;else{const ho=Ee.indexOf("?");this.urlWithParams=Ee+(-1===ho?"?":hoYe.set(fn,Ce.setHeaders[fn]),fi)),Ce.setParams&&(Yn=Object.keys(Ce.setParams).reduce((Ye,fn)=>Ye.set(fn,Ce.setParams[fn]),Yn)),new ft(Ee,Pn,mi,{params:Yn,headers:fi,context:jn,reportProgress:ho,responseType:Ln,withCredentials:Oi})}}var Et=(()=>((Et=Et||{})[Et.Sent=0]="Sent",Et[Et.UploadProgress=1]="UploadProgress",Et[Et.ResponseHeader=2]="ResponseHeader",Et[Et.DownloadProgress=3]="DownloadProgress",Et[Et.Response=4]="Response",Et[Et.User=5]="User",Et))();class Bt{constructor(Ce,Ee=200,Pn="OK"){this.headers=Ce.headers||new D,this.status=void 0!==Ce.status?Ce.status:Ee,this.statusText=Ce.statusText||Pn,this.url=Ce.url||null,this.ok=this.status>=200&&this.status<300}}class It extends Bt{constructor(Ce={}){super(Ce),this.type=Et.ResponseHeader}clone(Ce={}){return new It({headers:Ce.headers||this.headers,status:void 0!==Ce.status?Ce.status:this.status,statusText:Ce.statusText||this.statusText,url:Ce.url||this.url||void 0})}}class se extends Bt{constructor(Ce={}){super(Ce),this.type=Et.Response,this.body=void 0!==Ce.body?Ce.body:null}clone(Ce={}){return new se({body:void 0!==Ce.body?Ce.body:this.body,headers:Ce.headers||this.headers,status:void 0!==Ce.status?Ce.status:this.status,statusText:Ce.statusText||this.statusText,url:Ce.url||this.url||void 0})}}class Jt extends Bt{constructor(Ce){super(Ce,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Ce.url||"(unknown url)"}`:`Http failure response for ${Ce.url||"(unknown url)"}: ${Ce.status} ${Ce.statusText}`,this.error=Ce.error||null}}function ve(oe,Ce){return{body:Ce,headers:oe.headers,context:oe.context,observe:oe.observe,params:oe.params,reportProgress:oe.reportProgress,responseType:oe.responseType,withCredentials:oe.withCredentials}}let xe=(()=>{class oe{constructor(Ee){this.handler=Ee}request(Ee,Pn,Ln={}){let mi;if(Ee instanceof ft)mi=Ee;else{let fi,Yn;fi=Ln.headers instanceof D?Ln.headers:new D(Ln.headers),Ln.params&&(Yn=Ln.params instanceof bt?Ln.params:new bt({fromObject:Ln.params})),mi=new ft(Ee,Pn,void 0!==Ln.body?Ln.body:null,{headers:fi,context:Ln.context,params:Yn,reportProgress:Ln.reportProgress,responseType:Ln.responseType||"json",withCredentials:Ln.withCredentials})}const Oi=(0,v.of)(mi).pipe((0,t.b)(fi=>this.handler.handle(fi)));if(Ee instanceof ft||"events"===Ln.observe)return Oi;const ho=Oi.pipe((0,A.h)(fi=>fi instanceof se));switch(Ln.observe||"body"){case"body":switch(mi.responseType){case"arraybuffer":return ho.pipe((0,C.U)(fi=>{if(null!==fi.body&&!(fi.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return fi.body}));case"blob":return ho.pipe((0,C.U)(fi=>{if(null!==fi.body&&!(fi.body instanceof Blob))throw new Error("Response is not a Blob.");return fi.body}));case"text":return ho.pipe((0,C.U)(fi=>{if(null!==fi.body&&"string"!=typeof fi.body)throw new Error("Response is not a string.");return fi.body}));default:return ho.pipe((0,C.U)(fi=>fi.body))}case"response":return ho;default:throw new Error(`Unreachable: unhandled observe type ${Ln.observe}}`)}}delete(Ee,Pn={}){return this.request("DELETE",Ee,Pn)}get(Ee,Pn={}){return this.request("GET",Ee,Pn)}head(Ee,Pn={}){return this.request("HEAD",Ee,Pn)}jsonp(Ee,Pn){return this.request("JSONP",Ee,{params:(new bt).append(Pn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ee,Pn={}){return this.request("OPTIONS",Ee,Pn)}patch(Ee,Pn,Ln={}){return this.request("PATCH",Ee,ve(Ln,Pn))}post(Ee,Pn,Ln={}){return this.request("POST",Ee,ve(Ln,Pn))}put(Ee,Pn,Ln={}){return this.request("PUT",Ee,ve(Ln,Pn))}}return oe.\u0275fac=function(Ee){return new(Ee||oe)(p.LFG(U))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})();class Oe{constructor(Ce,Ee){this.next=Ce,this.interceptor=Ee}handle(Ce){return this.interceptor.intercept(Ce,this.next)}}const qe=new p.OlP("HTTP_INTERCEPTORS");let $e=(()=>{class oe{intercept(Ee,Pn){return Pn.handle(Ee)}}return oe.\u0275fac=function(Ee){return new(Ee||oe)},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})();const _n=/^\)\]\}',?\n/;let gn=(()=>{class oe{constructor(Ee){this.xhrFactory=Ee}handle(Ee){if("JSONP"===Ee.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new T.y(Pn=>{const Ln=this.xhrFactory.build();if(Ln.open(Ee.method,Ee.urlWithParams),Ee.withCredentials&&(Ln.withCredentials=!0),Ee.headers.forEach((ze,We)=>Ln.setRequestHeader(ze,We.join(","))),Ee.headers.has("Accept")||Ln.setRequestHeader("Accept","application/json, text/plain, */*"),!Ee.headers.has("Content-Type")){const ze=Ee.detectContentTypeHeader();null!==ze&&Ln.setRequestHeader("Content-Type",ze)}if(Ee.responseType){const ze=Ee.responseType.toLowerCase();Ln.responseType="json"!==ze?ze:"text"}const mi=Ee.serializeBody();let Oi=null;const ho=()=>{if(null!==Oi)return Oi;const ze=Ln.statusText||"OK",We=new D(Ln.getAllResponseHeaders()),en=function ye(oe){return"responseURL"in oe&&oe.responseURL?oe.responseURL:/^X-Request-URL:/m.test(oe.getAllResponseHeaders())?oe.getResponseHeader("X-Request-URL"):null}(Ln)||Ee.url;return Oi=new It({headers:We,status:Ln.status,statusText:ze,url:en}),Oi},fi=()=>{let{headers:ze,status:We,statusText:en,url:le}=ho(),Je=null;204!==We&&(Je=typeof Ln.response>"u"?Ln.responseText:Ln.response),0===We&&(We=Je?200:0);let Lt=We>=200&&We<300;if("json"===Ee.responseType&&"string"==typeof Je){const wt=Je;Je=Je.replace(_n,"");try{Je=""!==Je?JSON.parse(Je):null}catch(Ot){Je=wt,Lt&&(Lt=!1,Je={error:Ot,text:Je})}}Lt?(Pn.next(new se({body:Je,headers:ze,status:We,statusText:en,url:le||void 0})),Pn.complete()):Pn.error(new Jt({error:Je,headers:ze,status:We,statusText:en,url:le||void 0}))},Yn=ze=>{const{url:We}=ho(),en=new Jt({error:ze,status:Ln.status||0,statusText:Ln.statusText||"Unknown Error",url:We||void 0});Pn.error(en)};let jn=!1;const Ye=ze=>{jn||(Pn.next(ho()),jn=!0);let We={type:Et.DownloadProgress,loaded:ze.loaded};ze.lengthComputable&&(We.total=ze.total),"text"===Ee.responseType&&!!Ln.responseText&&(We.partialText=Ln.responseText),Pn.next(We)},fn=ze=>{let We={type:Et.UploadProgress,loaded:ze.loaded};ze.lengthComputable&&(We.total=ze.total),Pn.next(We)};return Ln.addEventListener("load",fi),Ln.addEventListener("error",Yn),Ln.addEventListener("timeout",Yn),Ln.addEventListener("abort",Yn),Ee.reportProgress&&(Ln.addEventListener("progress",Ye),null!==mi&&Ln.upload&&Ln.upload.addEventListener("progress",fn)),Ln.send(mi),Pn.next({type:Et.Sent}),()=>{Ln.removeEventListener("error",Yn),Ln.removeEventListener("abort",Yn),Ln.removeEventListener("load",fi),Ln.removeEventListener("timeout",Yn),Ee.reportProgress&&(Ln.removeEventListener("progress",Ye),null!==mi&&Ln.upload&&Ln.upload.removeEventListener("progress",fn)),Ln.readyState!==Ln.DONE&&Ln.abort()}})}}return oe.\u0275fac=function(Ee){return new(Ee||oe)(p.LFG(d.JF))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})();const Ue=new p.OlP("XSRF_COOKIE_NAME"),un=new p.OlP("XSRF_HEADER_NAME");class Mn{}let oi=(()=>{class oe{constructor(Ee,Pn,Ln){this.doc=Ee,this.platform=Pn,this.cookieName=Ln,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ee=this.doc.cookie||"";return Ee!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,d.Mx)(Ee,this.cookieName),this.lastCookieString=Ee),this.lastToken}}return oe.\u0275fac=function(Ee){return new(Ee||oe)(p.LFG(d.K0),p.LFG(p.Lbi),p.LFG(Ue))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})(),bi=(()=>{class oe{constructor(Ee,Pn){this.tokenService=Ee,this.headerName=Pn}intercept(Ee,Pn){const Ln=Ee.url.toLowerCase();if("GET"===Ee.method||"HEAD"===Ee.method||Ln.startsWith("http://")||Ln.startsWith("https://"))return Pn.handle(Ee);const mi=this.tokenService.getToken();return null!==mi&&!Ee.headers.has(this.headerName)&&(Ee=Ee.clone({headers:Ee.headers.set(this.headerName,mi)})),Pn.handle(Ee)}}return oe.\u0275fac=function(Ee){return new(Ee||oe)(p.LFG(Mn),p.LFG(un))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})(),ri=(()=>{class oe{constructor(Ee,Pn){this.backend=Ee,this.injector=Pn,this.chain=null}handle(Ee){if(null===this.chain){const Pn=this.injector.get(qe,[]);this.chain=Pn.reduceRight((Ln,mi)=>new Oe(Ln,mi),this.backend)}return this.chain.handle(Ee)}}return oe.\u0275fac=function(Ee){return new(Ee||oe)(p.LFG(k),p.LFG(p.zs3))},oe.\u0275prov=p.Yz7({token:oe,factory:oe.\u0275fac}),oe})(),ct=(()=>{class oe{static disable(){return{ngModule:oe,providers:[{provide:bi,useClass:$e}]}}static withOptions(Ee={}){return{ngModule:oe,providers:[Ee.cookieName?{provide:Ue,useValue:Ee.cookieName}:[],Ee.headerName?{provide:un,useValue:Ee.headerName}:[]]}}}return oe.\u0275fac=function(Ee){return new(Ee||oe)},oe.\u0275mod=p.oAB({type:oe}),oe.\u0275inj=p.cJS({providers:[bi,{provide:qe,useExisting:bi,multi:!0},{provide:Mn,useClass:oi},{provide:Ue,useValue:"XSRF-TOKEN"},{provide:un,useValue:"X-XSRF-TOKEN"}]}),oe})(),it=(()=>{class oe{}return oe.\u0275fac=function(Ee){return new(Ee||oe)},oe.\u0275mod=p.oAB({type:oe}),oe.\u0275inj=p.cJS({providers:[xe,{provide:U,useClass:ri},gn,{provide:k,useExisting:gn}],imports:[ct.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),oe})()},94650:(ot,et,b)=>{"use strict";b.d(et,{$8M:()=>Hd,$Z:()=>fs,AFp:()=>hC,ALo:()=>Gx,AaK:()=>U,AsE:()=>mf,B6R:()=>Je,BQk:()=>Oh,CHM:()=>xu,CRH:()=>eC,CZH:()=>s3,CqO:()=>E0,D6c:()=>i8,DdM:()=>Bx,Dn7:()=>sb,EJc:()=>yC,EiD:()=>qg,EpF:()=>Pv,F$t:()=>U4,F4k:()=>T4,FYo:()=>j3,FiY:()=>nc,G48:()=>BC,Gf:()=>fb,GfV:()=>Kg,GkF:()=>l2,Gpc:()=>P,Gre:()=>Np,HOy:()=>z0,Hsn:()=>Eh,Ikx:()=>E4,JOm:()=>C1,JVY:()=>Bf,Jf7:()=>Eu,KtG:()=>$s,L6k:()=>F_,LAX:()=>F3,LFG:()=>Sr,LSH:()=>Rg,Lbi:()=>vC,Lck:()=>Jh,MAs:()=>d5,MGl:()=>u2,MMx:()=>xf,NdJ:()=>M1,O4$:()=>Ei,OlP:()=>wr,Oqu:()=>P4,PXZ:()=>FC,Q6J:()=>C4,QGY:()=>e1,QP$:()=>gi,QbO:()=>Ob,Qsj:()=>Wg,R0b:()=>r1,RDi:()=>Pu,Rgc:()=>Qh,SBq:()=>j_,Sil:()=>wC,Suo:()=>tC,TTD:()=>ou,TgZ:()=>A4,Tol:()=>Ho,Udp:()=>x5,VKq:()=>tb,W1O:()=>gb,WFA:()=>Op,WLB:()=>Vx,XFs:()=>ri,Xpm:()=>le,Xts:()=>ia,Y36:()=>Ar,YKP:()=>Y4,YNc:()=>x4,Yjl:()=>Tn,Yz7:()=>de,Z0I:()=>on,ZZ4:()=>h3,_Bn:()=>Q5,_UZ:()=>O0,_Vd:()=>V_,_c5:()=>QA,_uU:()=>D4,aQg:()=>g3,c2e:()=>CC,cJS:()=>re,cg1:()=>wi,d8E:()=>P5,dDg:()=>LC,dqk:()=>Ln,dwT:()=>nx,eBb:()=>Vf,eFA:()=>qp,ekj:()=>q0,eoX:()=>OC,evT:()=>J2,f3M:()=>mp,g9A:()=>bC,gM2:()=>J4,h0i:()=>vf,hGG:()=>WA,hYB:()=>Z4,hij:()=>rc,iGM:()=>t6,ifc:()=>Pn,ip1:()=>Sb,jDz:()=>W5,kL8:()=>H,kYT:()=>Te,kcU:()=>g1,lG2:()=>Fe,lcZ:()=>j4,lnq:()=>T5,lqb:()=>to,lri:()=>SC,mCW:()=>T1,n5z:()=>tc,n_E:()=>Sd,oAB:()=>Ot,oJD:()=>Jf,oxw:()=>Lv,pB0:()=>z1,q3G:()=>ic,qLn:()=>sm,qOj:()=>ym,qZA:()=>Lh,qzn:()=>Jd,rWj:()=>Rb,s9C:()=>I0,sBO:()=>JC,sIi:()=>_i,s_b:()=>t3,soG:()=>Xh,tb:()=>xC,tp0:()=>N1,uIk:()=>Nu,uOi:()=>Hg,vHH:()=>K,vpe:()=>Pd,wAp:()=>ka,xi3:()=>$0,xp6:()=>rh,ynx:()=>y4,z2F:()=>m3,z3N:()=>y1,zSh:()=>ss,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 C(h,g){for(const w in g)g.hasOwnProperty(w)&&!h.hasOwnProperty(w)&&(h[w]=g[w])}function U(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(U).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 w=g.indexOf("\n");return-1===w?g:g.substring(0,w)}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 U(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 K extends Error{constructor(g,w){super(function at(h,g){return`NG0${Math.abs(h)}${g?": "+g.trim():""}`}(g,w)),this.code=g}}function lt(h){return"string"==typeof h?h:null==h?"":String(h)}function Vt(h,g){throw new K(-201,!1)}function $e(h,g){null==h&&function Xt(h,g,w,O){throw new Error(`ASSERTION ERROR: ${h}`+(null==O?"":` [Expected=> ${w} ${O} ${g} <=Actual]`))}(g,h,null,"!=")}function de(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function re(h){return{providers:h.providers||[],imports:h.imports||[]}}function Pe(h){return _n(h,un)||_n(h,oi)}function on(h){return null!==Pe(h)}function _n(h,g){return h.hasOwnProperty(g)?h[g]:null}function Ue(h){return h&&(h.hasOwnProperty(Mn)||h.hasOwnProperty(bi))?h[Mn]:null}const un=A({\u0275prov:A}),Mn=A({\u0275inj:A}),oi=A({ngInjectableDef:A}),bi=A({ngInjectorDef:A});var ri=(()=>((ri=ri||{})[ri.Default=0]="Default",ri[ri.Host=1]="Host",ri[ri.Self=2]="Self",ri[ri.SkipSelf=4]="SkipSelf",ri[ri.Optional=8]="Optional",ri))();let Ke;function ct(h){const g=Ke;return Ke=h,g}function it(h,g,w){const O=Pe(h);return O&&"root"==O.providedIn?void 0===O.value?O.value=O.factory():O.value:w&ri.Optional?null:void 0!==g?g:void Vt(U(h))}function Gt(h){return{toString:h}.toString()}var oe=(()=>((oe=oe||{})[oe.OnPush=0]="OnPush",oe[oe.Default=1]="Default",oe))(),Pn=(()=>{return(h=Pn||(Pn={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",Pn;var h})();const Ln=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ho={},fi=[],Yn=A({\u0275cmp:A}),jn=A({\u0275dir:A}),Ye=A({\u0275pipe:A}),fn=A({\u0275mod:A}),ze=A({\u0275fac:A}),We=A({__NG_ELEMENT_ID__:A});let en=0;function le(h){return Gt(()=>{const w=!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===oe.OnPush,directiveDefs:null,pipeDefs:null,standalone:w,dependencies:w&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||fi,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||Pn.Emulated,id:"c"+en++,styles:h.styles||fi,_:null,setInput:null,schemas:h.schemas||null,tView:null},j=h.dependencies,ut=h.features;return q.inputs=Xe(h.inputs,O),q.outputs=Xe(h.outputs),ut&&ut.forEach(Ut=>Ut(q)),q.directiveDefs=j?()=>("function"==typeof j?j():j).map(Lt).filter(wt):null,q.pipeDefs=j?()=>("function"==typeof j?j():j).map(En).filter(wt):null,q})}function Je(h,g,w){const O=h.\u0275cmp;O.directiveDefs=()=>("function"==typeof g?g():g).map(Lt),O.pipeDefs=()=>("function"==typeof w?w():w).map(En)}function Lt(h){return he(h)||Re(h)}function wt(h){return null!==h}function Ot(h){return Gt(()=>({type:h.type,bootstrap:h.bootstrap||fi,declarations:h.declarations||fi,imports:h.imports||fi,exports:h.exports||fi,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function Te(h,g){return Gt(()=>{const w=go(h,!0);w.declarations=g.declarations||fi,w.imports=g.imports||fi,w.exports=g.exports||fi})}function Xe(h,g){if(null==h)return ho;const w={};for(const O in h)if(h.hasOwnProperty(O)){let q=h[O],j=q;Array.isArray(q)&&(j=q[1],q=q[0]),w[q]=O,g&&(g[q]=j)}return w}const Fe=le;function Tn(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 he(h){return h[Yn]||null}function Re(h){return h[jn]||null}function En(h){return h[Ye]||null}function gi(h){const g=he(h)||Re(h)||En(h);return null!==g&&g.standalone}function go(h,g){const w=h[fn]||null;if(!w&&!0===g)throw new Error(`Type ${U(h)} does not have '\u0275mod' property.`);return w}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 al(h){return 2==(2&h.flags)}function Sc(h){return 1==(1&h.flags)}function Ns(h){return null!==h.template}function Lc(h){return 0!=(256&h[2])}function ks(h,g){return h.hasOwnProperty(ze)?h[ze]:null}class Hl{constructor(g,w,O){this.previousValue=g,this.currentValue=w,this.firstChange=O}isFirstChange(){return this.firstChange}}function ou(){return zl}function zl(h){return h.type.prototype.ngOnChanges&&(h.setInput=rr),qo}function qo(){const h=qu(this),g=h?.current;if(g){const w=h.previous;if(w===ho)h.previous=g;else for(let O in g)w[O]=g[O];h.current=null,this.ngOnChanges(g)}}function rr(h,g,w,O){const q=qu(h)||function Yl(h,g){return h[cc]=g}(h,{previous:ho,current:null}),j=q.current||(q.current={}),ut=q.previous,Ut=this.declaredInputs[w],Ht=ut[Ut];j[Ut]=new Hl(Ht&&Ht.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 sr(h,g){return pr(g[h.index])}function Ps(h,g){return h.data[g]}function qs(h,g){return h[g]}function Cs(h,g){const w=g[h];return Gr(w)?w:w[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 Nr(h,g){h[5]+=g;let w=h,O=h[3];for(;null!==O&&(1===g&&1===w[5]||-1===g&&0===w[5]);)O[5]+=g,w=O,O=O[3]}const aa={lFrame:_t(null),bindingsEnabled:!0};function yc(){return aa.bindingsEnabled}function Bi(){return aa.lFrame.lView}function Pa(){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=pe();for(;null!==h&&64===h.type;)h=h.parent;return h}function pe(){return aa.lFrame.currentTNode}function qt(h,g){const w=aa.lFrame;w.currentTNode=h,w.isParent=g}function rt(){return aa.lFrame.isParent}function ki(){aa.lFrame.isParent=!1}function Fr(){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,w=g.bindingIndex;return g.bindingIndex=g.bindingIndex+h,w}function Vp(h,g){const w=aa.lFrame;w.bindingIndex=w.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 sl(){return aa.lFrame.currentQueryIndex}function Zl(h){aa.lFrame.currentQueryIndex=h}function dp(h){const g=h[1];return 2===g.type?g.declTNode:1===g.type?h[6]:null}function Ml(h,g,w){if(w&ri.SkipSelf){let q=g,j=h;for(;!(q=q.parent,null!==q||w&ri.Host||(q=dp(j),null===q||(j=j[15],10&q.type))););if(null===q)return!1;g=q,h=j}const O=aa.lFrame=Yi();return O.currentTNode=g,O.lView=h,!0}function cl(h){const g=Yi(),w=h[1];aa.lFrame=g,g.currentTNode=w.firstChild,g.lView=h,g.tView=w,g.contextLView=h,g.bindingIndex=w.bindingStartIndex,g.inI18n=!1}function Yi(){const h=aa.lFrame,g=null===h?null:h.child;return null===g?_t(h):g}function _t(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 Us(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 Vl(){aa.lFrame.currentNamespace=null}()}function Pi(h,g){for(let w=g.directiveStart,O=g.directiveEnd;w=O)break}else g[Ht]<0&&(h[Q]+=65536),(Ut>11>16&&(3&h[2])===g){h[2]+=2048;try{j.call(Ut)}finally{}}}else try{j.call(Ut)}finally{}}class Au{constructor(g,w,O){this.factory=g,this.resolving=!1,this.canSeeViewProviders=w,this.injectImpl=O}}function Qe(h,g,w){let O=0;for(;Og){ut=j-1;break}}}for(;j>16}(h),O=g;for(;w>0;)O=O[15],w--;return O}let yi=!0;function Ti(h){const g=yi;return yi=h,g}let ga=0;const ra={};function es(h,g){const w=ns(h,g);if(-1!==w)return w;const O=g[1];O.firstCreatePass&&(h.injectorIndex=g.length,Hs(O.data,h),Hs(g,null),Hs(O.blueprint,null));const q=is(h,g),j=h.injectorIndex;if(tn(q)){const ut=vn(q),Ut=Qn(q,g),Ht=Ut[1].data;for(let be=0;be<8;be++)g[j+be]=Ut[ut+be]|Ht[ut+be]}return g[j+8]=q,j}function Hs(h,g){h.push(0,0,0,0,0,0,0,0,g)}function ns(h,g){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===g[h.injectorIndex+8]?-1:h.injectorIndex}function is(h,g){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let w=0,O=null,q=g;for(;null!==q;){if(O=Ss(q),null===O)return-1;if(w++,q=q[15],-1!==O.injectorIndex)return O.injectorIndex|w<<16}return-1}function ds(h,g,w){!function fa(h,g,w){let O;"string"==typeof w?O=w.charCodeAt(0)||0:w.hasOwnProperty(We)&&(O=w[We]),null==O&&(O=w[We]=ga++);const q=255&O;g.data[h+(q>>5)]|=1<=0?255&g:Tc:g}(w);if("function"==typeof j){if(!Ml(g,h,O))return O&ri.Host?Xs(q,0,O):Nc(g,w,O,q);try{const ut=j(O);if(null!=ut||O&ri.Optional)return ut;Vt()}finally{Cu()}}else if("number"==typeof j){let ut=null,Ut=ns(h,g),Ht=-1,be=O&ri.Host?g[16][6]:null;for((-1===Ut||O&ri.SkipSelf)&&(Ht=-1===Ut?is(h,g):g[Ut+8],-1!==Ht&&Ka(O,!1)?(ut=g[1],Ut=vn(Ht),g=Qn(Ht,g)):Ut=-1);-1!==Ut;){const je=g[1];if(jp(j,Ut,je.data)){const xn=cr(Ut,g,w,ut,O,be);if(xn!==ra)return xn}Ht=g[Ut+8],-1!==Ht&&Ka(O,g[1].data[Ut+8]===be)&&jp(j,Ut,g)?(ut=je,Ut=vn(Ht),g=Qn(Ht,g)):Ut=-1}}return q}function cr(h,g,w,O,q,j){const ut=g[1],Ut=ut.data[h+8],je=lr(Ut,ut,w,null==O?al(Ut)&&yi:O!=ut&&0!=(3&Ut.type),q&ri.Host&&j===Ut);return null!==je?As(g,ut,je,Ut):ra}function lr(h,g,w,O,q){const j=h.providerIndexes,ut=g.data,Ut=1048575&j,Ht=h.directiveStart,je=j>>20,ai=q?Ut+je:h.directiveEnd;for(let Ai=O?Ut:Ut+je;Ai=Ht&&Vi.type===w)return Ai}if(q){const Ai=ut[Ht];if(Ai&&Ns(Ai)&&Ai.type===w)return Ht}return null}function As(h,g,w,O){let q=h[w];const j=g.data;if(function Ks(h){return h instanceof Au}(q)){const ut=q;ut.resolving&&function Pt(h,g){const w=g?`. Dependency path: ${g.join(" > ")} > ${h}`:"";throw new K(-200,`Circular dependency in DI detected for ${h}${w}`)}(function bt(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():lt(h)}(j[w]));const Ut=Ti(ut.canSeeViewProviders);ut.resolving=!0;const Ht=ut.injectImpl?ct(ut.injectImpl):null;Ml(h,O,ri.Default);try{q=h[w]=ut.factory(void 0,j,h,O),g.firstCreatePass&&w>=O.directiveStart&&function Di(h,g,w){const{ngOnChanges:O,ngOnInit:q,ngDoCheck:j}=g.type.prototype;if(O){const ut=zl(g);(w.preOrderHooks||(w.preOrderHooks=[])).push(h,ut),(w.preOrderCheckHooks||(w.preOrderCheckHooks=[])).push(h,ut)}q&&(w.preOrderHooks||(w.preOrderHooks=[])).push(0-h,q),j&&((w.preOrderHooks||(w.preOrderHooks=[])).push(h,j),(w.preOrderCheckHooks||(w.preOrderCheckHooks=[])).push(h,j))}(w,j[w],g)}finally{null!==Ht&&ct(Ht),Ti(Ut),ut.resolving=!1,Cu()}}return q}function jp(h,g,w){return!!(w[g+(h>>5)]&1<{const g=h.prototype.constructor,w=g[ze]||yu(g),O=Object.prototype;let q=Object.getPrototypeOf(h.prototype).constructor;for(;q&&q!==O;){const j=q[ze]||yu(q);if(j&&j!==w)return j;q=Object.getPrototypeOf(q)}return j=>new j})}function yu(h){return z(h)?()=>{const g=yu(I(h));return g&&g()}:ks(h)}function Ss(h){const g=h[1],w=g.type;return 2===w?g.declTNode:1===w?h[6]:null}function Hd(h){return function Hr(h,g){if("class"===g)return h.classes;if("style"===g)return h.styles;const w=h.attrs;if(w){const O=w.length;let q=0;for(;q{const O=function as(h){return function(...w){if(h){const O=h(...w);for(const q in O)this[q]=O[q]}}}(g);function q(...j){if(this instanceof q)return O.apply(this,j),this;const ut=new q(...j);return Ut.annotation=ut,Ut;function Ut(Ht,be,je){const xn=Ht.hasOwnProperty(Yu)?Ht[Yu]:Object.defineProperty(Ht,Yu,{value:[]})[Yu];for(;xn.length<=je;)xn.push(null);return(xn[je]=xn[je]||[]).push(ut),Ht}}return w&&(q.prototype=Object.create(w.prototype)),q.prototype.ngMetadataName=h,q.annotationCls=q,q})}class wr{constructor(g,w){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof w?this.__NG_ELEMENT_ID__=w:void 0!==w&&(this.\u0275prov=de({token:this,providedIn:w.providedIn||"root",factory:w.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Jo(h,g){void 0===g&&(g=h);for(let w=0;wArray.isArray(w)?bd(w,g):g(w))}function x_(h,g,w){g>=h.length?h.push(w):h.splice(g,0,w)}function pp(h,g){return g>=h.length-1?h.pop():h.splice(g,1)[0]}function zd(h,g){const w=[];for(let O=0;O=0?h[1|O]=w:(O=~O,function vt(h,g,w,O){let q=h.length;if(q==g)h.push(w,O);else if(1===q)h.push(O,h[0]),h[0]=w;else{for(q--,h.push(h[q-1],h[q]);q>g;)h[q]=h[q-2],q--;h[g]=w,h[g+1]=O}}(h,O,g,w)),O}function De(h,g){const w=Un(h,g);if(w>=0)return h[1|w]}function Un(h,g){return function Ii(h,g,w){let O=0,q=h.length>>w;for(;q!==O;){const j=O+(q-O>>1),ut=h[j<g?q=j:O=j+1}return~(q<((C1=C1||{})[C1.Important=1]="Important",C1[C1.DashCase=2]="DashCase",C1))();const $p=new Map;let If=0;const Mu="__ngContext__";function Ls(h,g){Gr(g)?(h[Mu]=g[20],function wg(h){$p.set(h[20],h)}(g)):h[Mu]=g}function Ff(h,g){return undefined(h,g)}function k_(h){const g=h[3];return Ir(g)?g[3]:g}function qf(h){return Sg(h[13])}function L2(h){return Sg(h[4])}function Sg(h){for(;null!==h&&!Ir(h);)h=h[4];return h}function Du(h,g,w,O,q){if(null!=O){let j,ut=!1;Ir(O)?j=O:Gr(O)&&(ut=!0,O=O[0]);const Ut=pr(O);0===h&&null!==w?null==q?ms(g,w,Ut):Ad(g,w,Ut,q||null,!0):1===h&&null!==w?Ad(g,w,Ut,q||null,!0):2===h?function Td(h,g,w){const O=Xp(h,g);O&&function Og(h,g,w,O){h.removeChild(g,w,O)}(h,O,g,w)}(g,Ut,ut):3===h&&g.destroyNode(Ut),null!=j&&function Zc(h,g,w,O,q){const j=w[7];j!==pr(w)&&Du(g,h,O,j,q);for(let Ut=10;Ut0&&(h[w-1][4]=O[4]);const j=pp(h,10+g);!function Hf(h,g){_s(h,g,g[11],2,null,null),g[0]=null,g[6]=null}(O[1],O);const ut=j[19];null!==ut&&ut.detachView(j[1]),O[3]=null,O[4]=null,O[2]&=-65}return O}function Ma(h,g){if(!(128&g[2])){const w=g[11];w.destroyNode&&_s(h,g,w,3,null,null),function Nm(h){let g=h[13];if(!g)return Zs(h[1],h);for(;g;){let w=null;if(Gr(g))w=g[13];else{const O=g[10];O&&(w=O)}if(!w){for(;g&&!g[4]&&g!==h;)Gr(g)&&Zs(g[1],g),g=g[3];null===g&&(g=h),Gr(g)&&Zs(g[1],g),w=g&&g[4]}g=w}}(g)}}function Zs(h,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function P_(h,g){let w;if(null!=h&&null!=(w=h.destroyHooks))for(let O=0;O=0?O[q=be]():O[q=-be].unsubscribe(),j+=2}else{const ut=O[q=w[j+1]];w[j].call(ut)}if(null!==O){for(let j=q+1;jh,createScript:h=>h,createScriptURL:h=>h})}catch{}return jd}()?.createHTML(h)||h}function Pu(h){H1=h}function Pl(){if(void 0===I2&&(I2=null,Ln.trustedTypes))try{I2=Ln.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch{}return I2}function Jl(h){return Pl()?.createHTML(h)||h}function F2(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 I3 extends Gu{getTypeName(){return"HTML"}}class E_ extends Gu{getTypeName(){return"Style"}}class I_ extends Gu{getTypeName(){return"Script"}}class Ap 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 w=function N_(h){return h instanceof Gu&&h.getTypeName()||null}(h);if(null!=w&&w!==g){if("ResourceURL"===w&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${w} (see https://g.co/ng/security#xss)`)}return w===g}function Bf(h){return new I3(h)}function F_(h){return new E_(h)}function Vf(h){return new I_(h)}function F3(h){return new Ap(h)}function z1(h){return new N3(h)}class Qu{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const w=(new window.DOMParser).parseFromString(dc(g),"text/html").body;return null===w?this.inertDocumentHelper.getInertBodyElement(g):(w.removeChild(w.firstChild),w)}catch{return null}}}class q2{constructor(g){if(this.defaultDoc=g,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const w=this.inertDocument.createElement("html");this.inertDocument.appendChild(w);const O=this.inertDocument.createElement("body");w.appendChild(O)}}getInertBodyElement(g){const w=this.inertDocument.createElement("template");if("content"in w)return w.innerHTML=dc(g),w;const O=this.inertDocument.createElement("body");return O.innerHTML=dc(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(O),O}stripCustomNsAttrs(g){const w=g.attributes;for(let q=w.length-1;0"),!0}endElement(g){const w=g.nodeName.toLowerCase();jf.hasOwnProperty(w)&&!Su.hasOwnProperty(w)&&(this.buf.push(""))}chars(g){this.buf.push(Fg(g))}checkClobberedElement(g,w){if(w&&(g.compareDocumentPosition(w)&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 w}}const H3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Tp=/([^\#-~ |!])/g;function Fg(h){return h.replace(/&/g,"&").replace(H3,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(Tp,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let H_;function qg(h,g){let w=null;try{H_=H_||function yp(h){const g=new q2(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):"";w=H_.getInertBodyElement(O);let q=5,j=O;do{if(0===q)throw new Error("Failed to sanitize html because the input is unstable");q--,O=j,j=w.innerHTML,w=H_.getInertBodyElement(O)}while(O!==j);return dc((new Ng).sanitizeChildren(R2(w)||w))}finally{if(w){const O=R2(w)||w;for(;O.firstChild;)O.removeChild(O.firstChild)}}}function R2(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 Jf(h){const g=z2();return g?Jl(g.sanitize(ic.HTML,h)||""):Jd(h,"HTML")?Jl(y1(h)):qg(function zm(){return void 0!==H1?H1:typeof document<"u"?document:void 0}(),lt(h))}function Rg(h){const g=z2();return g?g.sanitize(ic.URL,h)||"":Jd(h,"URL")?y1(h):T1(lt(h))}function Hg(h){const g=z2();if(g)return F2(g.sanitize(ic.RESOURCE_URL,h)||"");if(Jd(h,"ResourceURL"))return F2(y1(h));throw new K(904,!1)}function z2(){const h=Bi();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,w=Zn){if(w===Zn){const O=new Error(`NullInjectorError: No provider for ${U(g)}!`);throw O.name="NullInjectorError",O}return w}}function wp(...h){return{\u0275providers:mc(0,h)}}function mc(h,...g){const w=[],O=new Set;let q;return bd(g,j=>{const ut=j;Bg(ut,w,[],O)&&(q||(q=[]),q.push(ut))}),void 0!==q&&Yg(q,w),w}function Yg(h,g){for(let w=0;w{g.push(j)})}}function Bg(h,g,w,O){if(!(h=I(h)))return!1;let q=null,j=Ue(h);const ut=!j&&he(h);if(j||ut){if(ut&&!ut.standalone)return!1;q=h}else{const Ht=h.ngModule;if(j=Ue(Ht),!j)return!1;q=Ht}const Ut=O.has(q);if(ut){if(Ut)return!1;if(O.add(q),ut.dependencies){const Ht="function"==typeof ut.dependencies?ut.dependencies():ut.dependencies;for(const be of Ht)Bg(be,g,w,O)}}else{if(!j)return!1;{if(null!=j.imports&&!Ut){let be;O.add(q);try{bd(j.imports,je=>{Bg(je,g,w,O)&&(be||(be=[]),be.push(je))})}finally{}void 0!==be&&Yg(be,g)}if(!Ut){const be=ks(q)||(()=>new q);g.push({provide:q,useFactory:be,deps:fi},{provide:z_,useValue:q,multi:!0},{provide:ia,useValue:()=>Sr(q),multi:!0})}const Ht=j.providers;null==Ht||Ut||bd(Ht,je=>{g.push(je)})}}return q!==h&&void 0!==h.providers}const Qf=A({provide:String,useValue:A});function U1(h){return null!==h&&"object"==typeof h&&Qf in h}function oc(h){return"function"==typeof h}const ss=new wr("Set Injector scope."),Ku={},Jr={};let Gd;function Y1(){return void 0===Gd&&(Gd=new w1),Gd}class to{}class B1 extends to{constructor(g,w,O,q){super(),this.parent=w,this.source=O,this.scopes=q,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Kf(g,ut=>this.processProvider(ut)),this.records.set(Y3,Si(void 0,this)),q.has("environment")&&this.records.set(to,Si(void 0,this));const j=this.records.get(ss);null!=j&&"string"==typeof j.value&&this.scopes.add(j.value),this.injectorDefTypes=new Set(this.get(z_.multi,fi,ri.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 w=wc(this),O=ct(void 0);try{return g()}finally{wc(w),ct(O)}}get(g,w=Zn,O=ri.Default){this.assertNotDestroyed();const q=wc(this),j=ct(void 0);try{if(!(O&ri.SkipSelf)){let Ut=this.records.get(g);if(void 0===Ut){const Ht=function Wf(h){return"function"==typeof h||"object"==typeof h&&h instanceof wr}(g)&&Pe(g);Ut=Ht&&this.injectableDefInScope(Ht)?Si(Bm(g),Ku):null,this.records.set(g,Ut)}if(null!=Ut)return this.hydrate(g,Ut)}return(O&ri.Self?Y1():this.parent).get(g,w=O&ri.Optional&&w===Zn?null:w)}catch(ut){if("NullInjectorError"===ut.name){if((ut[ys]=ut[ys]||[]).unshift(U(g)),q)throw ut;return function I1(h,g,w,O){const q=h[ys];throw g[C_]&&q.unshift(g[C_]),h.message=function xg(h,g,w,O=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.slice(2):h;let q=U(g);if(Array.isArray(g))q=g.map(U).join(" -> ");else if("object"==typeof g){let j=[];for(let ut in g)if(g.hasOwnProperty(ut)){let Ut=g[ut];j.push(ut+":"+("string"==typeof Ut?JSON.stringify(Ut):U(Ut)))}q=`{${j.join(", ")}}`}return`${w}${O?"("+O+")":""}[${q}]: ${h.replace(Zo,"\n ")}`}("\n"+h.message,q,w,O),h.ngTokenPath=q,h[ys]=null,h}(ut,g,"R3InjectorError",this.source)}throw ut}finally{ct(j),wc(q)}}resolveInjectorInitializers(){const g=wc(this),w=ct(void 0);try{const O=this.get(ia.multi,fi,ri.Self);for(const q of O)q()}finally{wc(g),ct(w)}}toString(){const g=[],w=this.records;for(const O of w.keys())g.push(U(O));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new K(205,!1)}processProvider(g){let w=oc(g=I(g))?g:I(g&&g.provide);const O=function rm(h){return U1(h)?Si(void 0,h.useValue):Si(Vm(h),Ku)}(g);if(oc(g)||!0!==g.multi)this.records.get(w);else{let q=this.records.get(w);q||(q=Si(void 0,Ku,!0),q.factory=()=>Yd(q.multi),this.records.set(w,q)),w=g,q.multi.push(g)}this.records.set(w,O)}hydrate(g,w){return w.value===Ku&&(w.value=Jr,w.value=w.factory()),"object"==typeof w.value&&w.value&&function V3(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(w.value)&&this._ngOnDestroyHooks.add(w.value),w.value}injectableDefInScope(g){if(!g.providedIn)return!1;const w=I(g.providedIn);return"string"==typeof w?"any"===w||this.scopes.has(w):this.injectorDefTypes.has(w)}}function Bm(h){const g=Pe(h),w=null!==g?g.factory:ks(h);if(null!==w)return w;if(h instanceof wr)throw new K(204,!1);if(h instanceof Function)return function Y_(h){const g=h.length;if(g>0)throw zd(g,"?"),new K(204,!1);const w=function ye(h){const g=h&&(h[un]||h[oi]);if(g){const w=function gn(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 "${w}" 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 "${w}" class.`),g}return null}(h);return null!==w?()=>w.factory(h):()=>new h}(h);throw new K(204,!1)}function Vm(h,g,w){let O;if(oc(h)){const q=I(h);return ks(q)||Bm(q)}if(U1(h))O=()=>I(h.useValue);else if(function Up(h){return!(!h||!h.useFactory)}(h))O=()=>h.useFactory(...Yd(h.deps||[]));else if(function Vg(h){return!(!h||!h.useExisting)}(h))O=()=>Sr(I(h.useExisting));else{const q=I(h&&(h.useClass||h.provide));if(!function B3(h){return!!h.deps}(h))return ks(q)||Bm(q);O=()=>new q(...Yd(h.deps))}return O}function Si(h,g,w=!1){return{factory:h,value:g,multi:w?[]:void 0}}function $f(h){return!!h.\u0275providers}function Kf(h,g){for(const w of h)Array.isArray(w)?Kf(w,g):$f(w)?Kf(w.\u0275providers,g):g(w)}class jg{}class Jg{resolveComponentFactory(g){throw function Y2(h){const g=Error(`No component factory found for ${U(h)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=h,g}(g)}}let V_=(()=>{class h{}return h.NULL=new Jg,h})();function Gg(){return jm(Pr(),Bi())}function jm(h,g){return new j_(sr(h,g))}let j_=(()=>{class h{constructor(w){this.nativeElement=w}}return h.__NG_ELEMENT_ID__=Gg,h})();function Ud(h){return h instanceof j_?h.nativeElement:h}class j3{}let Wg=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function $g(){const h=Bi(),w=Cs(Pr().index,h);return(Gr(w)?w:h)[11]}(),h})(),B2=(()=>{class h{}return h.\u0275prov=de({token:h,providedIn:"root",factory:()=>null}),h})();class Kg{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 Kg("14.3.0"),th={};function Ou(h){return h.ngOriginalError}class sm{constructor(){this._console=console}handleError(g){const w=this._findOriginalError(g);this._console.error("ERROR",g),w&&this._console.error("ORIGINAL ERROR",w)}_findOriginalError(g){let w=g&&Ou(g);for(;w&&Ou(w);)w=Ou(w);return w||null}}function Eu(h){return h.ownerDocument.defaultView}function J2(h){return h.ownerDocument}function V1(h){return h instanceof Function?h():h}function eh(h,g,w){let O=h.length;for(;;){const q=h.indexOf(g,w);if(-1===q)return q;if(0===q||h.charCodeAt(q-1)<=32){const j=g.length;if(q+j===O||h.charCodeAt(q+j)<=32)return q}w=q+1}}const e0="ng-template";function G3(h,g,w){let O=0;for(;Oj?"":q[xn+1].toLowerCase();const Ai=8&O?ai:null;if(Ai&&-1!==eh(Ai,be,0)||2&O&&be!==ai){if(Qd(O))return!1;ut=!0}}}}else{if(!ut&&!Qd(O)&&!Qd(Ht))return!1;if(ut&&Qd(Ht))continue;ut=!1,O=Ht|1&O}}return Qd(O)||ut}function Qd(h){return 0==(1&h)}function n0(h,g,w,O){if(null===g)return-1;let q=0;if(O||!w){let j=!1;for(;q-1)for(w++;w0?'="'+Ut+'"':"")+"]"}else 8&O?q+="."+ut:4&O&&(q+=" "+ut);else""!==q&&!Qd(ut)&&(g+=Sl(j,q),q=""),O=ut,j=j||!Qd(O);w++}return""!==q&&(g+=Sl(j,q)),g}const Ga={};function rh(h){Q_(Pa(),Bi(),Rr()+h,!1)}function Q_(h,g,w,O){if(!O)if(3==(3&g[2])){const j=h.preOrderCheckHooks;null!==j&&So(g,j,w)}else{const j=h.preOrderHooks;null!==j&&la(g,j,0,w)}Us(w)}function K3(h,g=null,w=null,O){const q=Zd(h,g,w,O);return q.resolveInjectorInitializers(),q}function Zd(h,g=null,w=null,O,q=new Set){const j=[w||fi,wp(h)];return O=O||("object"==typeof h?void 0:U(h)),new B1(j,g||Y1(),O||null,q)}let pm=(()=>{class h{static create(w,O){if(Array.isArray(w))return K3({name:""},O,w,"");{const q=w.name??"";return K3({name:q},w.parent,w.providers,q)}}}return h.THROW_IF_NOT_FOUND=Zn,h.NULL=new w1,h.\u0275prov=de({token:h,providedIn:"any",factory:()=>Sr(Y3)}),h.__NG_ELEMENT_ID__=-1,h})();function Ar(h,g=ri.Default){const w=Bi();return null===w?Sr(h,g):os(Pr(),w,I(h),g)}function fs(){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 ml(h){return(131068&h)>>2}function pu(h,g){return-131069&h|g<<2}function Sa(h){return 1|h}function m0(h,g){const w=h.contentQueries;if(null!==w)for(let O=0;O22&&Q_(h,g,22,!1),w(O,q)}finally{Us(j)}}function Ch(h,g,w){if(Pc(g)){const q=g.directiveEnd;for(let j=g.directiveStart;j0;){const w=h[--g];if("number"==typeof w&&w<0)return w}return 0})(Ut)!=Ht&&Ut.push(Ht),Ut.push(O,q,ut)}}function W1(h,g){null!==h.hostBindings&&h.hostBindings(1,g)}function l4(h,g){g.flags|=2,(h.components||(h.components=[])).push(g.index)}function cf(h,g,w){if(w){if(g.exportAs)for(let O=0;O0&&wh(w)}}function wh(h){for(let O=qf(h);null!==O;O=L2(O))for(let q=10;q0&&wh(j)}const w=h[1].components;if(null!==w)for(let O=0;O0&&wh(q)}}function d4(h,g){const w=Cs(g,h),O=w[1];(function Uh(h,g){for(let w=g.length;w-1&&(Uo(g,O),pp(w,O))}this._attachedToViewContainer=!1}Ma(this._lView[1],this._lView)}onDestroy(g){g0(this._lView[1],this._lView,null,g)}markForCheck(){bm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Zh(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new K(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function zf(h,g){_s(h,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new K(902,!1);this._appRef=g}}class lf extends Am{constructor(g){super(g),this._view=g}detectChanges(){const g=this._view;Zh(g[1],g,g[8],!1)}checkNoChanges(){}get context(){return null}}class K1 extends V_{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const w=he(g);return new X1(w,this.ngModule)}}function Ol(h){const g=[];for(let w in h)h.hasOwnProperty(w)&&g.push({propName:h[w],templateName:w});return g}class U0{constructor(g,w){this.injector=g,this.parentInjector=w}get(g,w,O){const q=this.injector.get(g,th,O);return q!==th||w===th?q:this.parentInjector.get(g,w,O)}}class X1 extends jg{constructor(g,w){super(),this.componentDef=g,this.ngModule=w,this.componentType=g.type,this.selector=function Mp(h){return h.map(Wd).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!w}get inputs(){return Ol(this.componentDef.inputs)}get outputs(){return Ol(this.componentDef.outputs)}create(g,w,O,q){let j=(q=q||this.ngModule)instanceof to?q:q?.injector;j&&null!==this.componentDef.getStandaloneInjector&&(j=this.componentDef.getStandaloneInjector(j)||j);const ut=j?new U0(g,j):g,Ut=ut.get(j3,null);if(null===Ut)throw new K(407,!1);const Ht=ut.get(B2,null),be=Ut.createRenderer(null,this.componentDef),je=this.componentDef.selectors[0][0]||"div",xn=O?function h0(h,g,w){return h.selectRootElement(g,w===Pn.ShadowDom)}(be,O,this.componentDef.encapsulation):Xc(be,je,function w0(h){const g=h.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(je)),ai=this.componentDef.onPush?288:272,Ai=Ah(0,null,null,1,0,null,null,null,null,null),Vi=Q1(null,Ai,null,ai,null,null,Ut,be,Ht,ut,null);let Ao,ro;cl(Vi);try{const pa=function _4(h,g,w,O,q,j){const ut=w[1];w[22]=h;const Ht=t2(ut,22,2,"#host",null),be=Ht.mergedAttrs=g.hostAttrs;null!==be&&(Cm(Ht,be,!0),null!==h&&(Qe(q,h,be),null!==Ht.classes&&tl(q,h,Ht.classes),null!==Ht.styles&&em(q,h,Ht.styles)));const je=O.createRenderer(h,g),xn=Q1(w,f0(g),null,g.onPush?32:16,w[22],Ht,O,je,j||null,null,null);return ut.firstCreatePass&&(ds(es(Ht,w),ut,g.type),l4(ut,Ht),Th(Ht,w.length,1)),Sp(w,xn),w[22]=xn}(xn,this.componentDef,Vi,Ut,be);if(xn)if(O)Qe(be,xn,["ng-version",Xu.full]);else{const{attrs:Ta,classes:oo}=function ah(h){const g=[],w=[];let O=1,q=2;for(;O0&&tl(be,xn,oo.join(" "))}if(ro=Ps(Ai,22),void 0!==w){const Ta=ro.projection=[];for(let oo=0;oo=0;O--){const q=h[O];q.hostVars=g+=q.hostVars,q.hostAttrs=ce(q.hostAttrs,w=ce(w,q.hostAttrs))}}(O)}function uf(h){return h===ho?{}:h===fi?[]:h}function f4(h,g){const w=h.viewQuery;h.viewQuery=w?(O,q)=>{g(O,q),w(O,q)}:g}function L(h,g){const w=h.contentQueries;h.contentQueries=w?(O,q,j)=>{g(O,q,j),w(O,q,j)}:g}function R(h,g){const w=h.hostBindings;h.hostBindings=w?(O,q)=>{g(O,q),w(O,q)}:g}let pn=null;function zn(){if(!pn){const h=Ln.Symbol;if(h&&h.iterator)pn=h.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let w=0;wUt(pr(zr[O.index])):O.index;let Ea=null;if(!Ut&&Ht&&(Ea=function Sv(h,g,w,O){const q=h.cleanup;if(null!=q)for(let j=0;jHt?Ut[Ht]:null}"string"==typeof ut&&(j+=2)}return null}(h,g,q,O.index)),null!==Ea)(Ea.__ngLastListenerFn__||Ea).__ngNextListenerFn__=j,Ea.__ngLastListenerFn__=j,Ai=!1;else{j=m5(O,g,xn,j,!1);const zr=w.listen(pa,q,j);ai.push(j,zr),je&&je.push(q,oo,Ta,Ta+1)}}else j=m5(O,g,xn,j,!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 M8(h,g){let w=null;const O=function Q6(h){const g=h.attrs;if(null!=g){const w=g.indexOf(5);if(0==(1&w))return g[w+1]}return null}(h);for(let q=0;q=0}const Wl={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function o_(h){return h.substring(Wl.key,Wl.keyEnd)}function qv(h,g){const w=Wl.textEnd;return w===g?-1:(g=Wl.keyEnd=function g5(h,g,w){for(;g32;)g++;return g}(h,Wl.key=g,w),fu(h,g,w))}function fu(h,g,w){for(;g=0;w=qv(g,w))ie(h,o_(g),!0)}function Ip(h,g,w,O){const q=Bi(),j=Pa(),ut=Ul(2);j.firstUpdatePass&&zv(j,h,ut,O),g!==Ga&&Aa(q,ut,g)&&y5(j,j.data[Rr()],q,q[11],h,q[ut+1]=function Vv(h,g){return null==h||("string"==typeof g?h+=g:"object"==typeof h&&(h=U(y1(h)))),h}(g,w),O,ut)}function tp(h,g,w,O){const q=Pa(),j=Ul(2);q.firstUpdatePass&&zv(q,null,j,O);const ut=Bi();if(w!==Ga&&Aa(ut,j,w)){const Ut=q.data[Rr()];if(k4(Ut,O)&&!Hv(q,j)){let Ht=O?Ut.classesWithoutHost:Ut.stylesWithoutHost;null!==Ht&&(w=k(Ht,w||"")),L0(q,Ut,ut,w,O)}else!function E8(h,g,w,O,q,j,ut,Ut){q===Ga&&(q=fi);let Ht=0,be=0,je=0=h.expandoStartIndex}function zv(h,g,w,O){const q=h.data;if(null===q[w+1]){const j=q[Rr()],ut=Hv(h,w);k4(j,O)&&null===g&&!ut&&(g=!1),g=function Yv(h,g,w,O){const q=Ic(h);let j=O?g.residualClasses:g.residualStyles;if(null===q)0===(O?g.classBindings:g.styleBindings)&&(w=R0(w=d2(null,h,g,w,O),g.attrs,O),j=null);else{const ut=g.directiveStylingLast;if(-1===ut||h[ut]!==q)if(w=d2(q,h,g,w,O),null===j){let Ht=function L8(h,g,w){const O=w?g.classBindings:g.styleBindings;if(0!==ml(O))return h[Wr(O)]}(h,g,O);void 0!==Ht&&Array.isArray(Ht)&&(Ht=d2(null,h,g,Ht[1],O),Ht=R0(Ht,g.attrs,O),function O8(h,g,w,O){h[Wr(w?g.classBindings:g.styleBindings)]=O}(h,g,O,Ht))}else j=function C5(h,g,w){let O;const q=g.directiveEnd;for(let j=1+g.directiveStylingLast;j0)&&(be=!0)}else je=w;if(q)if(0!==Ht){const ai=Wr(h[Ut+1]);h[O+1]=Iu(ai,Ut),0!==ai&&(h[ai+1]=pu(h[ai+1],O)),h[Ut+1]=function Ll(h,g){return 131071&h|g<<17}(h[Ut+1],O)}else h[O+1]=Iu(Ut,0),0!==Ut&&(h[Ut+1]=pu(h[Ut+1],O)),Ut=O;else h[O+1]=Iu(Ht,0),0===Ut?Ut=O:h[Ht+1]=pu(h[Ht+1],O),Ht=O;be&&(h[O+1]=$d(h[O+1])),pf(h,je,O,!0),pf(h,je,O,!1),function Iv(h,g,w,O,q){const j=q?h.residualClasses:h.residualStyles;null!=j&&"string"==typeof g&&Un(j,g)>=0&&(w[O+1]=Sa(w[O+1]))}(g,je,h,O,j),ut=Iu(Ut,Ht),j?g.classBindings=ut:g.styleBindings=ut}(q,j,g,w,ut,O)}}function d2(h,g,w,O,q){let j=null;const ut=w.directiveEnd;let Ut=w.directiveStylingLast;for(-1===Ut?Ut=w.directiveStart:Ut++;Ut0;){const Ht=h[q],be=Array.isArray(Ht),je=be?Ht[1]:Ht,xn=null===je;let ai=w[q+1];ai===Ga&&(ai=xn?fi:void 0);let Ai=xn?De(ai,O):je===O?ai:void 0;if(be&&!Nh(Ai)&&(Ai=De(Ht,O)),Nh(Ai)&&(Ut=Ai,ut))return Ut;const Vi=h[q+1];q=ut?Wr(Vi):ml(Vi)}if(null!==g){let Ht=j?g.residualClasses:g.residualStyles;null!=Ht&&(Ut=De(Ht,O))}return Ut}function Nh(h){return void 0!==h}function k4(h,g){return 0!=(h.flags&(g?16:32))}function D4(h,g=""){const w=Bi(),O=Pa(),q=h+22,j=O.firstCreatePass?t2(O,q,1,g,null):O.data[q],ut=w[q]=function Lg(h,g){return h.createText(g)}(w[11],g);Uc(O,w,ut,j),qt(j,!1)}function P4(h){return rc("",h,""),P4}function rc(h,g,w){const O=Bi(),q=_l(O,h,g,w);return q!==Ga&&t1(O,Rr(),q),rc}function mf(h,g,w,O,q){const j=Bi(),ut=Es(j,h,g,w,O,q);return ut!==Ga&&t1(j,Rr(),ut),mf}function T5(h,g,w,O,q,j,ut){const Ut=Bi(),Ht=function Ql(h,g,w,O,q,j,ut,Ut){const be=Xa(h,qr(),w,q,ut);return Ul(3),be?g+lt(w)+O+lt(q)+j+lt(ut)+Ut:Ga}(Ut,h,g,w,O,q,j,ut);return Ht!==Ga&&t1(Ut,Rr(),Ht),T5}function z0(h,g,w,O,q,j,ut,Ut,Ht){const be=Bi(),je=function _u(h,g,w,O,q,j,ut,Ut,Ht,be){const xn=za(h,qr(),w,q,ut,Ht);return Ul(4),xn?g+lt(w)+O+lt(q)+j+lt(ut)+Ut+lt(Ht)+be:Ga}(be,h,g,w,O,q,j,ut,Ut,Ht);return je!==Ga&&t1(be,Rr(),je),z0}function Np(h,g,w){tp(ie,o1,_l(Bi(),h,g,w),!0)}function E4(h,g,w){const O=Bi();return Aa(O,er(),g)&&mu(Pa(),Ra(),O,h,g,O[11],w,!0),E4}function P5(h,g,w){const O=Bi();if(Aa(O,er(),g)){const j=Pa(),ut=Ra();mu(j,ut,O,h,g,Lp(Ic(j.data),ut,O),w,!0)}return P5}const a1=void 0;var ex=["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 w=Math.floor(Math.abs(h)),O=h.toString().replace(/^[^.]*\.?/,"").length;return 1===w&&0===O?1:5}];let m2={};function nx(h,g,w){"string"!=typeof g&&(w=g,g=h[ka.LocaleId]),g=g.toLowerCase().replace(/_/g,"-"),m2[g]=h,w&&(m2[g][ka.ExtraData]=w)}function wi(h){const g=function I4(h){return h.toLowerCase().replace(/_/g,"-")}(h);let w=Tm(g);if(w)return w;const O=g.split("-")[0];if(w=Tm(O),w)return w;if("en"===O)return ex;throw new K(701,!1)}function H(h){return wi(h)[ka.PluralCase]}function Tm(h){return h in m2||(m2[h]=Ln.ng&&Ln.ng.common&&Ln.ng.common.locales&&Ln.ng.common.locales[h]),m2[h]}var ka=(()=>((ka=ka||{})[ka.LocaleId=0]="LocaleId",ka[ka.DayPeriodsFormat=1]="DayPeriodsFormat",ka[ka.DayPeriodsStandalone=2]="DayPeriodsStandalone",ka[ka.DaysFormat=3]="DaysFormat",ka[ka.DaysStandalone=4]="DaysStandalone",ka[ka.MonthsFormat=5]="MonthsFormat",ka[ka.MonthsStandalone=6]="MonthsStandalone",ka[ka.Eras=7]="Eras",ka[ka.FirstDayOfWeek=8]="FirstDayOfWeek",ka[ka.WeekendRange=9]="WeekendRange",ka[ka.DateFormat=10]="DateFormat",ka[ka.TimeFormat=11]="TimeFormat",ka[ka.DateTimeFormat=12]="DateTimeFormat",ka[ka.NumberSymbols=13]="NumberSymbols",ka[ka.NumberFormats=14]="NumberFormats",ka[ka.CurrencyCode=15]="CurrencyCode",ka[ka.CurrencySymbol=16]="CurrencySymbol",ka[ka.CurrencyName=17]="CurrencyName",ka[ka.Currencies=18]="Currencies",ka[ka.Directionality=19]="Directionality",ka[ka.PluralCase=20]="PluralCase",ka[ka.ExtraData=21]="ExtraData",ka))();const s_="en-US";let El=s_;function Fp(h,g,w,O,q){if(h=I(h),Array.isArray(h))for(let j=0;j>20;if(oc(h)||!h.multi){const Ai=new Au(Ht,q,Ar),Vi=Vh(Ut,g,q?je:je+ai,xn);-1===Vi?(ds(es(be,ut),j,Ut),f2(j,h,g.length),g.push(Ut),be.directiveStart++,be.directiveEnd++,q&&(be.providerIndexes+=1048576),w.push(Ai),ut.push(Ai)):(w[Vi]=Ai,ut[Vi]=Ai)}else{const Ai=Vh(Ut,g,je+ai,xn),Vi=Vh(Ut,g,je,je+ai),Ao=Ai>=0&&w[Ai],ro=Vi>=0&&w[Vi];if(q&&!ro||!q&&!Ao){ds(es(be,ut),j,Ut);const pa=function G5(h,g,w,O,q){const j=new Au(h,w,Ar);return j.multi=[],j.index=g,j.componentProviders=0,j5(j,q,O&&!w),j}(q?jh:Ix,w.length,q,O,Ht);!q&&ro&&(w[Vi].providerFactory=pa),f2(j,h,g.length,0),g.push(Ut),be.directiveStart++,be.directiveEnd++,q&&(be.providerIndexes+=1048576),w.push(pa),ut.push(pa)}else f2(j,h,Ai>-1?Ai:Vi,j5(w[q?Vi:Ai],Ht,!q&&O));!q&&O&&ro&&w[Vi].componentProviders++}}}function f2(h,g,w,O){const q=oc(g),j=function am(h){return!!h.useClass}(g);if(q||j){const Ht=(j?I(g.useClass):g).prototype.ngOnDestroy;if(Ht){const be=h.destroyHooks||(h.destroyHooks=[]);if(!q&&g.multi){const je=be.indexOf(w);-1===je?be.push(w,[O,Ht]):be[je+1].push(O,Ht)}else be.push(w,Ht)}}}function j5(h,g,w){return w&&h.componentProviders++,h.multi.push(g)-1}function Vh(h,g,w,O){for(let q=w;q{w.providersResolver=(O,q)=>function X8(h,g,w){const O=Pa();if(O.firstCreatePass){const q=Ns(h);Fp(w,O.data,O.blueprint,q,!0),Fp(g,O.data,O.blueprint,q,!1)}}(O,q?q(h):h,g)}}class vf{}class Y4{}function Jh(h,g){return new Q0(h,g??null)}class Q0 extends vf{constructor(g,w){super(),this._parent=w,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new K1(this);const O=go(g);this._bootstrapComponents=V1(O.bootstrap),this._r3Injector=Zd(g,w,[{provide:vf,useValue:this},{provide:V_,useValue:this.componentFactoryResolver}],U(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(w=>w()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class B4 extends Y4{constructor(g){super(),this.moduleType=g}create(g){return new Q0(this.moduleType,g)}}class tA extends vf{constructor(g,w,O){super(),this.componentFactoryResolver=new K1(this),this.instance=null;const q=new B1([...g,{provide:vf,useValue:this},{provide:V_,useValue:this.componentFactoryResolver}],w||Y1(),O,new Set(["environment"]));this.injector=q,q.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function xf(h,g,w=null){return new tA(h,g,w).injector}let Nx=(()=>{class h{constructor(w){this._injector=w,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(w){if(!w.standalone)return null;if(!this.cachedInjectors.has(w.id)){const O=mc(0,w.type),q=O.length>0?xf([O],this._injector,`Standalone[${w.type.name}]`):null;this.cachedInjectors.set(w.id,q)}return this.cachedInjectors.get(w.id)}ngOnDestroy(){try{for(const w of this.cachedInjectors.values())null!==w&&w.destroy()}finally{this.cachedInjectors.clear()}}}return h.\u0275prov=de({token:h,providedIn:"environment",factory:()=>new h(Sr(to))}),h})();function W5(h){h.getStandaloneInjector=g=>g.get(Nx).getOrCreateStandaloneInjector(h)}function Bx(h,g,w){const O=Fr()+h,q=Bi();return q[O]===Ga?ta(q,O,w?g.call(w):g()):function xa(h,g){return h[g]}(q,O)}function tb(h,g,w,O){return V4(Bi(),Fr(),h,g,w,O)}function Vx(h,g,w,O,q){return ob(Bi(),Fr(),h,g,w,O,q)}function W0(h,g){const w=h[g];return w===Ga?void 0:w}function V4(h,g,w,O,q,j){const ut=g+w;return Aa(h,ut,q)?ta(h,ut+1,j?O.call(j,q):O(q)):W0(h,ut+1)}function ob(h,g,w,O,q,j,ut){const Ut=g+w;return ba(h,Ut,q,j)?ta(h,Ut+2,ut?O.call(ut,q,j):O(q,j)):W0(h,Ut+2)}function Gx(h,g){const w=Pa();let O;const q=h+22;w.firstCreatePass?(O=function Qx(h,g){if(g)for(let w=g.length-1;w>=0;w--){const O=g[w];if(h===O.name)return O}}(g,w.pipeRegistry),w.data[q]=O,O.onDestroy&&(w.destroyHooks||(w.destroyHooks=[])).push(q,O.onDestroy)):O=w.data[q];const j=O.factory||(O.factory=ks(O.type)),ut=ct(Ar);try{const Ut=Ti(!1),Ht=j();return Ti(Ut),function Mv(h,g,w,O){w>=h.data.length&&(h.data[w]=null,h.blueprint[w]=null),g[w]=O}(w,Bi(),q,Ht),Ht}finally{ct(ut)}}function j4(h,g,w){const O=h+22,q=Bi(),j=qs(q,O);return K0(q,O)?V4(q,Fr(),g,j.transform,w,j):j.transform(w)}function $0(h,g,w,O){const q=h+22,j=Bi(),ut=qs(j,q);return K0(j,q)?ob(j,Fr(),g,ut.transform,w,O,ut):ut.transform(w,O)}function sb(h,g,w,O,q){const j=h+22,ut=Bi(),Ut=qs(ut,j);return K0(ut,j)?function ab(h,g,w,O,q,j,ut,Ut){const Ht=g+w;return Xa(h,Ht,q,j,ut)?ta(h,Ht+3,Ut?O.call(Ut,q,j,ut):O(q,j,ut)):W0(h,Ht+3)}(ut,Fr(),g,Ut.transform,w,O,q,Ut):Ut.transform(w,O,q)}function J4(h,g,w,O,q,j){const ut=h+22,Ut=Bi(),Ht=qs(Ut,ut);return K0(Ut,ut)?function rb(h,g,w,O,q,j,ut,Ut,Ht){const be=g+w;return za(h,be,q,j,ut,Ut)?ta(h,be+4,Ht?O.call(Ht,q,j,ut,Ut):O(q,j,ut,Ut)):W0(h,be+4)}(Ut,Fr(),g,Ht.transform,w,O,q,j,Ht):Ht.transform(w,O,q,j)}function K0(h,g){return h[1].data[g].pure}function G4(h){return g=>{setTimeout(h,void 0,g)}}const Pd=class dA extends d.xQ{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,w,O){let q=g,j=w||(()=>null),ut=O;if(g&&"object"==typeof g){const Ht=g;q=Ht.next?.bind(Ht),j=Ht.error?.bind(Ht),ut=Ht.complete?.bind(Ht)}this.__isAsync&&(j=G4(j),q&&(q=G4(q)),ut&&(ut=G4(ut)));const Ut=super.subscribe({next:q,error:j,complete:ut});return g instanceof p.w&&g.add(Ut),Ut}};function pA(){return this._results[zn()]()}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 w=zn(),O=Sd.prototype;O[w]||(O[w]=pA)}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,w){return this._results.reduce(g,w)}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,w){const O=this;O.dirty=!1;const q=Jo(g);(this._changesDetected=!function B(h,g,w){if(h.length!==g.length)return!1;for(let O=0;O{class h{}return h.__NG_ELEMENT_ID__=$x,h})();const Q4=Qh,Wx=class extends Q4{constructor(g,w,O){super(),this._declarationLView=g,this._declarationTContainer=w,this.elementRef=O}createEmbeddedView(g,w){const O=this._declarationTContainer.tViews,q=Q1(this._declarationLView,O,g,16,null,O.declTNode,null,null,null,null,w||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 X0(Pr(),Bi())}function X0(h,g){return 4&h.type?new Wx(g,h,jm(h,g)):null}let t3=(()=>{class h{}return h.__NG_ELEMENT_ID__=mA,h})();function mA(){return $4(Pr(),Bi())}const Kx=t3,cb=class extends Kx{constructor(g,w,O){super(),this._lContainer=g,this._hostTNode=w,this._hostLView=O}get element(){return jm(this._hostTNode,this._hostLView)}get injector(){return new cu(this._hostTNode,this._hostLView)}get parentInjector(){const g=is(this._hostTNode,this._hostLView);if(tn(g)){const w=Qn(g,this._hostLView),O=vn(g);return new cu(w[1].data[O+8],w)}return new cu(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const w=Xx(this._lContainer);return null!==w&&w[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,w,O){let q,j;"number"==typeof O?q=O:null!=O&&(q=O.index,j=O.injector);const ut=g.createEmbeddedView(w||{},j);return this.insert(ut,q),ut}createComponent(g,w,O,q,j){const ut=g&&!function To(h){return"function"==typeof h}(g);let Ut;if(ut)Ut=w;else{const xn=w||{};Ut=xn.index,O=xn.injector,q=xn.projectableNodes,j=xn.environmentInjector||xn.ngModuleRef}const Ht=ut?g:new X1(he(g)),be=O||this.parentInjector;if(!j&&null==Ht.ngModule){const ai=(ut?be:this.parentInjector).get(to,null);ai&&(j=ai)}const je=Ht.create(be,q,void 0,j);return this.insert(je.hostView,Ut),je}insert(g,w){const O=g._lView,q=O[1];if(function Qs(h){return Ir(h[3])}(O)){const je=this.indexOf(g);if(-1!==je)this.detach(je);else{const xn=O[3],ai=new cb(xn,xn[6],xn[3]);ai.detach(ai.indexOf(g))}}const j=this._adjustIndex(w),ut=this._lContainer;!function Fm(h,g,w,O){const q=10+O,j=w.length;O>0&&(w[q-1][4]=g),O0)O.push(ut[Ut/2]);else{const be=j[Ut+1],je=g[-Ht];for(let xn=10;xn{class h{constructor(w){this.appInits=w,this.resolve=r6,this.reject=r6,this.initialized=!1,this.done=!1,this.donePromise=new Promise((O,q)=>{this.resolve=O,this.reject=q})}runInitializers(){if(this.initialized)return;const w=[],O=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let q=0;q{j.subscribe({complete:Ut,error:Ht})});w.push(ut)}}Promise.all(w).then(()=>{O()}).catch(q=>{this.reject(q)}),0===w.length&&O(),this.initialized=!0}}return h.\u0275fac=function(w){return new(w||h)(Sr(Sb,8))},h.\u0275prov=de({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(w){console.log(w)}warn(w){console.warn(w)}}return h.\u0275fac=function(w){return new(w||h)},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();const Xh=new wr("LocaleId",{providedIn:"root",factory:()=>mp(Xh,ri.Optional|ri.SkipSelf)||function AC(){return typeof $localize<"u"&&$localize.locale||s_}()}),yC=new wr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class EA{constructor(g,w){this.ngModuleFactory=g,this.componentFactories=w}}let wC=(()=>{class h{compileModuleSync(w){return new B4(w)}compileModuleAsync(w){return Promise.resolve(this.compileModuleSync(w))}compileModuleAndAllComponentsSync(w){const O=this.compileModuleSync(w),j=V1(go(w).declarations).reduce((ut,Ut)=>{const Ht=he(Ut);return Ht&&ut.push(new X1(Ht)),ut},[]);return new EA(O,j)}compileModuleAndAllComponentsAsync(w){return Promise.resolve(this.compileModuleAndAllComponentsSync(w))}clearCache(){}clearCacheFor(w){}getModuleId(w){}}return h.\u0275fac=function(w){return new(w||h)},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const kC=(()=>Promise.resolve(0))();function l3(h){typeof Zone>"u"?kC.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class r1{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:w=!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 K(908,!1);Zone.assertZonePatched();const q=this;if(q._nesting=0,q._outer=q._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const j=Zone.AsyncStackTaggingZoneSpec;q._inner=q._inner.fork(new j("Angular"))}Zone.TaskTrackingZoneSpec&&(q._inner=q._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(q._inner=q._inner.fork(Zone.longStackTraceZoneSpec)),q.shouldCoalesceEventChangeDetection=!O&&w,q.shouldCoalesceRunChangeDetection=O,q.lastRequestAnimationFrameId=-1,q.nativeRequestAnimationFrame=function s6(){let h=Ln.requestAnimationFrame,g=Ln.cancelAnimationFrame;if(typeof Zone<"u"&&h&&g){const w=h[Zone.__symbol__("OriginalDelegate")];w&&(h=w);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(Ln,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,Nb(h),h.isCheckStableRunning=!0,c6(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),Nb(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(w,O,q,j,ut,Ut)=>{try{return PC(h),w.invokeTask(q,j,ut,Ut)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===j.type||h.shouldCoalesceRunChangeDetection)&&g(),Fb(h)}},onInvoke:(w,O,q,j,ut,Ut,Ht)=>{try{return PC(h),w.invoke(q,j,ut,Ut,Ht)}finally{h.shouldCoalesceRunChangeDetection&&g(),Fb(h)}},onHasTask:(w,O,q,j)=>{w.hasTask(q,j),O===q&&("microTask"==j.change?(h._hasPendingMicrotasks=j.microTask,Nb(h),c6(h)):"macroTask"==j.change&&(h.hasPendingMacrotasks=j.macroTask))},onHandleError:(w,O,q,j)=>(w.handleError(q,j),h.runOutsideAngular(()=>h.onError.emit(j)),!1)})}(q)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!r1.isInAngularZone())throw new K(909,!1)}static assertNotInAngularZone(){if(r1.isInAngularZone())throw new K(909,!1)}run(g,w,O){return this._inner.run(g,w,O)}runTask(g,w,O,q){const j=this._inner,ut=j.scheduleEventTask("NgZoneEvent: "+q,g,Eb,r6,r6);try{return j.runTask(ut,w,O)}finally{j.cancelTask(ut)}}runGuarded(g,w,O){return this._inner.runGuarded(g,w,O)}runOutsideAngular(g){return this._outer.run(g)}}const Eb={};function c6(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 Nb(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 Fb(h){h._nesting--,c6(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,w,O){return g.apply(w,O)}runGuarded(g,w,O){return g.apply(w,O)}runOutsideAngular(g){return g()}runTask(g,w,O,q){return g.apply(w,O)}}const SC=new wr(""),Rb=new wr("");let l6,LC=(()=>{class h{constructor(w,O,q){this._ngZone=w,this.registry=O,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,l6||(function EC(h){l6=h}(q),q.addToWindow(O)),this._watchAngularEvents(),w.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(),l3(()=>{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())l3(()=>{for(;0!==this._callbacks.length;){let w=this._callbacks.pop();clearTimeout(w.timeoutId),w.doneCb(this._didWork)}this._didWork=!1});else{let w=this.getPendingTasks();this._callbacks=this._callbacks.filter(O=>!O.updateCb||!O.updateCb(w)||(clearTimeout(O.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(w=>({source:w.source,creationLocation:w.creationLocation,data:w.data})):[]}addCallback(w,O,q){let j=-1;O&&O>0&&(j=setTimeout(()=>{this._callbacks=this._callbacks.filter(ut=>ut.timeoutId!==j),w(this._didWork,this.getPendingTasks())},O)),this._callbacks.push({doneCb:w,timeoutId:j,updateCb:q})}whenStable(w,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(w,O,q),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(w){this.registry.registerApplication(w,this)}unregisterApplication(w){this.registry.unregisterApplication(w)}findProviders(w,O,q){return[]}}return h.\u0275fac=function(w){return new(w||h)(Sr(r1),Sr(OC),Sr(Rb))},h.\u0275prov=de({token:h,factory:h.\u0275fac}),h})(),OC=(()=>{class h{constructor(){this._applications=new Map}registerApplication(w,O){this._applications.set(w,O)}unregisterApplication(w){this._applications.delete(w)}unregisterAllApplications(){this._applications.clear()}getTestability(w){return this._applications.get(w)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(w,O=!0){return l6?.findTestabilityInTree(this,w,O)??null}}return h.\u0275fac=function(w){return new(w||h)},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})(),l_=null;const Hb=new wr("AllowMultipleToken"),zb=new wr("PlatformDestroyListeners");class FC{constructor(g,w){this.name=g,this.token=w}}function qp(h,g,w=[]){const O=`Platform: ${g}`,q=new wr(O);return(j=[])=>{let ut=d6();if(!ut||ut.injector.get(Hb,!1)){const Ut=[...w,...j,{provide:q,useValue:!0}];h?h(Ut):function NA(h){if(l_&&!l_.get(Hb,!1))throw new K(400,!1);l_=h;const g=h.get(p6);(function qC(h){const g=h.get(bC,null);g&&g.forEach(w=>w())})(h)}(function u6(h=[],g){return pm.create({name:g,providers:[{provide:ss,useValue:"platform"},{provide:zb,useValue:new Set([()=>l_=null])},...h]})}(Ut,O))}return function FA(h){const g=d6();if(!g)throw new K(401,!1);return g}()}}function d6(){return l_?.get(p6)??null}let p6=(()=>{class h{constructor(w){this._injector=w,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(w,O){const q=function RC(h,g){let w;return w="noop"===h?new qb:("zone.js"===h?void 0:h)||new r1(g),w}(O?.ngZone,function p3(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}(O)),j=[{provide:r1,useValue:q}];return q.run(()=>{const ut=pm.create({providers:j,parent:this.injector,name:w.moduleType.name}),Ut=w.create(ut),Ht=Ut.injector.get(sm,null);if(!Ht)throw new K(402,!1);return q.runOutsideAngular(()=>{const be=q.onError.subscribe({next:je=>{Ht.handleError(je)}});Ut.onDestroy(()=>{_3(this._modules,Ut),be.unsubscribe()})}),function Bb(h,g,w){try{const O=w();return e1(O)?O.catch(q=>{throw g.runOutsideAngular(()=>h.handleError(q)),q}):O}catch(O){throw g.runOutsideAngular(()=>h.handleError(O)),O}}(Ht,q,()=>{const be=Ut.injector.get(s3);return be.runInitializers(),be.donePromise.then(()=>(function ep(h){$e(h,"Expected localeId to be defined"),"string"==typeof h&&(El=h.toLowerCase().replace(/_/g,"-"))}(Ut.injector.get(Xh,s_)||s_),this._moduleDoBootstrap(Ut),Ut))})})}bootstrapModule(w,O=[]){const q=Vb({},O);return function IC(h,g,w){const O=new B4(w);return Promise.resolve(O)}(0,0,w).then(j=>this.bootstrapModuleFactory(j,q))}_moduleDoBootstrap(w){const O=w.injector.get(m3);if(w._bootstrapComponents.length>0)w._bootstrapComponents.forEach(q=>O.bootstrap(q));else{if(!w.instance.ngDoBootstrap)throw new K(403,!1);w.instance.ngDoBootstrap(O)}this._modules.push(w)}onDestroy(w){this._destroyListeners.push(w)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new K(404,!1);this._modules.slice().forEach(O=>O.destroy()),this._destroyListeners.forEach(O=>O());const w=this._injector.get(zb,null);w&&(w.forEach(O=>O()),w.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(w){return new(w||h)(Sr(pm))},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();function Vb(h,g){return Array.isArray(g)?g.reduce(Vb,h):{...h,...g}}let m3=(()=>{class h{constructor(w,O,q){this._zone=w,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 j=new v.y(Ut=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ut.next(this._stable),Ut.complete()})}),ut=new v.y(Ut=>{let Ht;this._zone.runOutsideAngular(()=>{Ht=this._zone.onStable.subscribe(()=>{r1.assertNotInAngularZone(),l3(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ut.next(!0))})})});const be=this._zone.onUnstable.subscribe(()=>{r1.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ut.next(!1)}))});return()=>{Ht.unsubscribe(),be.unsubscribe()}});this.isStable=(0,T.T)(j,ut.pipe((0,t.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(w,O){const q=w instanceof jg;if(!this._injector.get(s3).done)throw!q&&gi(w),new K(405,false);let ut;ut=q?w:this._injector.get(V_).resolveComponentFactory(w),this.componentTypes.push(ut.componentType);const Ut=function u3(h){return h.isBoundToModule}(ut)?void 0:this._injector.get(vf),be=ut.create(pm.NULL,[],O||ut.selector,Ut),je=be.location.nativeElement,xn=be.injector.get(SC,null);return xn?.registerApplication(je),be.onDestroy(()=>{this.detachView(be.hostView),_3(this.components,be),xn?.unregisterApplication(je)}),this._loadComponent(be),be}tick(){if(this._runningTick)throw new K(101,!1);try{this._runningTick=!0;for(let w of this._views)w.detectChanges()}catch(w){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(w))}finally{this._runningTick=!1}}attachView(w){const O=w;this._views.push(O),O.attachToAppRef(this)}detachView(w){const O=w;_3(this._views,O),O.detachFromAppRef()}_loadComponent(w){this.attachView(w.hostView),this.tick(),this.components.push(w),this._injector.get(xC,[]).concat(this._bootstrapListeners).forEach(q=>q(w))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(w=>w()),this._views.slice().forEach(w=>w.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(w){return this._destroyListeners.push(w),()=>_3(this._destroyListeners,w)}destroy(){if(this._destroyed)throw new K(406,!1);const w=this._injector;w.destroy&&!w.destroyed&&w.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return h.\u0275fac=function(w){return new(w||h)(Sr(r1),Sr(to),Sr(sm))},h.\u0275prov=de({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function _3(h,g){const w=h.indexOf(g);w>-1&&h.splice(w,1)}let D1=!0;function BC(){D1=!1}let JC=(()=>{class h{}return h.__NG_ELEMENT_ID__=RA,h})();function RA(h){return function GC(h,g,w){if(al(h)&&!w){const O=Cs(h.index,g);return new Am(O,O)}return 47&h.type?new Am(g[16],g):null}(Pr(),Bi(),16==(16&h))}class Xb{constructor(){}supports(g){return _i(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 w;for(w=this._itHead;null!==w;w=w._next)g(w)}forEachOperation(g){let w=this._itHead,O=this._removalsHead,q=0,j=null;for(;w||O;){const ut=!O||w&&w.currentIndex{ut=this._trackByFn(q,Ut),null!==w&&Object.is(w.trackById,ut)?(O&&(w=this._verifyReinsertion(w,Ut,ut,q)),Object.is(w.item,Ut)||this._addIdentityChange(w,Ut)):(w=this._mismatch(w,Ut,ut,q),O=!0),w=w._next,q++}),this.length=q;return this._truncate(w),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,w,O,q){let j;return null===g?j=this._itTail:(j=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(O,null))?(Object.is(g.item,w)||this._addIdentityChange(g,w),this._reinsertAfter(g,j,q)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(O,q))?(Object.is(g.item,w)||this._addIdentityChange(g,w),this._moveAfter(g,j,q)):g=this._addAfter(new KC(w,O),j,q),g}_verifyReinsertion(g,w,O,q){let j=null===this._unlinkedRecords?null:this._unlinkedRecords.get(O,null);return null!==j?g=this._reinsertAfter(j,g._prev,q):g.currentIndex!=q&&(g.currentIndex=q,this._addToMoves(g,q)),g}_truncate(g){for(;null!==g;){const w=g._next;this._addToRemovals(this._unlink(g)),g=w}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,w,O){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const q=g._prevRemoved,j=g._nextRemoved;return null===q?this._removalsHead=j:q._nextRemoved=j,null===j?this._removalsTail=q:j._prevRemoved=q,this._insertAfter(g,w,O),this._addToMoves(g,O),g}_moveAfter(g,w,O){return this._unlink(g),this._insertAfter(g,w,O),this._addToMoves(g,O),g}_addAfter(g,w,O){return this._insertAfter(g,w,O),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,w,O){const q=null===w?this._itHead:w._next;return g._next=q,g._prev=w,null===q?this._itTail=g:q._prev=g,null===w?this._itHead=g:w._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 w=g._prev,O=g._next;return null===w?this._itHead=O:w._next=O,null===O?this._itTail=w:O._prev=w,g}_addToMoves(g,w){return g.previousIndex===w||(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,w){return g.item=w,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class KC{constructor(g,w){this.item=g,this.trackById=w,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 tg{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,w){let O;for(O=this._head;null!==O;O=O._nextDup)if((null===w||w<=O.currentIndex)&&Object.is(O.trackById,g))return O;return null}remove(g){const w=g._prevDup,O=g._nextDup;return null===w?this._head=O:w._nextDup=O,null===O?this._tail=w:O._prevDup=w,null===this._head}}class tv{constructor(){this.map=new Map}put(g){const w=g.trackById;let O=this.map.get(w);O||(O=new tg,this.map.set(w,O)),O.add(g)}get(g,w){const q=this.map.get(g);return q?q.get(g,w):null}remove(g){const w=g.trackById;return this.map.get(w).remove(g)&&this.map.delete(w),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function f6(h,g,w){const O=h.previousIndex;if(null===O)return O;let q=0;return w&&O{if(w&&w.key===q)this._maybeAddToChanges(w,O),this._appendAfter=w,w=w._next;else{const j=this._getOrCreateRecordForKey(q,O);w=this._insertBeforeOrAppend(w,j)}}),w){w._prev&&(w._prev._next=null),this._removalsHead=w;for(let O=w;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,w){if(g){const O=g._prev;return w._next=g,w._prev=O,g._prev=w,O&&(O._next=w),g===this._mapHead&&(this._mapHead=w),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=w,w._prev=this._appendAfter):this._mapHead=w,this._appendAfter=w,null}_getOrCreateRecordForKey(g,w){if(this._records.has(g)){const q=this._records.get(g);this._maybeAddToChanges(q,w);const j=q._prev,ut=q._next;return j&&(j._next=ut),ut&&(ut._prev=j),q._next=null,q._prev=null,q}const O=new XC(g);return this._records.set(g,O),O.currentValue=w,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,w){Object.is(w,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=w,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,w){g instanceof Map?g.forEach(w):Object.keys(g).forEach(O=>w(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 h6(){return new h3([new Xb])}let h3=(()=>{class h{constructor(w){this.factories=w}static create(w,O){if(null!=O){const q=O.factories.slice();w=w.concat(q)}return new h(w)}static extend(w){return{provide:h,useFactory:O=>h.create(w,O||h6()),deps:[[h,new N1,new nc]]}}find(w){const O=this.factories.find(q=>q.supports(w));if(null!=O)return O;throw new K(901,!1)}}return h.\u0275prov=de({token:h,providedIn:"root",factory:h6}),h})();function t8(){return new g3([new ev])}let g3=(()=>{class h{constructor(w){this.factories=w}static create(w,O){if(O){const q=O.factories.slice();w=w.concat(q)}return new h(w)}static extend(w){return{provide:h,useFactory:O=>h.create(w,O||t8()),deps:[[h,new N1,new nc]]}}find(w){const O=this.factories.find(q=>q.supports(w));if(O)return O;throw new K(901,!1)}}return h.\u0275prov=de({token:h,providedIn:"root",factory:t8}),h})();const QA=qp(null,"core",[]);let WA=(()=>{class h{constructor(w){}}return h.\u0275fac=function(w){return new(w||h)(Sr(m3))},h.\u0275mod=Ot({type:h}),h.\u0275inj=re({}),h})();function i8(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}},85863:(ot,et,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(et,{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 U(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,C(I),!!z]}function A(D){let[P]=t(D);return P.indexOf("row")>-1}function C(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:(ot,et,b)=>{"use strict";b.d(et,{Bs:()=>Pt,FL:()=>fi,IR:()=>z,Ot:()=>mi,QI:()=>zt,RK:()=>Vt,WU:()=>lt,g5:()=>at,iR:()=>ct,wY:()=>bt,yB:()=>Ke});var d=b(94650),p=b(36895),v=b(591),T=b(56498),t=b(36787),A=b(8929),C=b(85863),U=b(92198),k=b(22868);const P={provide:d.tb,useFactory:function D(Yn,jn){return()=>{if((0,p.NF)(jn)){const Ye=Array.from(Yn.querySelectorAll(`[class*=${I}]`)),fn=/\bflex-layout-.+?\b/g;Ye.forEach(ze=>{ze.classList.contains(`${I}ssr`)&&ze.parentNode?ze.parentNode.removeChild(ze):ze.className.replace(fn,"")})}}},deps:[p.K0,d.Lbi],multi:!0},I="flex-layout-";let z=(()=>{class Yn{}return Yn.\u0275fac=function(Ye){return new(Ye||Yn)},Yn.\u0275mod=d.oAB({type:Yn}),Yn.\u0275inj=d.cJS({providers:[P]}),Yn})();class G{constructor(jn=!1,Ye="all",fn="",ze="",We=0){this.matches=jn,this.mediaQuery=Ye,this.mqAlias=fn,this.suffix=ze,this.priority=We,this.property=""}clone(){return new G(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let K=(()=>{class Yn{constructor(){this.stylesheet=new Map}addStyleToElement(Ye,fn,ze){const We=this.stylesheet.get(Ye);We?We.set(fn,ze):this.stylesheet.set(Ye,new Map([[fn,ze]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(Ye,fn){const ze=this.stylesheet.get(Ye);let We="";if(ze){const en=ze.get(fn);("number"==typeof en||"string"==typeof en)&&(We=en+"")}return We}}return Yn.\u0275fac=function(Ye){return new(Ye||Yn)},Yn.\u0275prov=d.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();const at={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},lt=new d.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>at}),bt=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 Dt(Yn,jn){return Yn=Yn?.clone()??new G,jn&&(Yn.mqAlias=jn.alias,Yn.mediaQuery=jn.mediaQuery,Yn.suffix=jn.suffix,Yn.priority=jn.priority),Yn}class zt{constructor(){this.shouldCache=!0}sideEffect(jn,Ye,fn){}}let Vt=(()=>{class Yn{constructor(Ye,fn,ze,We){this._serverStylesheet=Ye,this._serverModuleLoaded=fn,this._platformId=ze,this.layoutConfig=We}applyStyleToElement(Ye,fn,ze=null){let We={};"string"==typeof fn&&(We[fn]=ze,fn=We),We=this.layoutConfig.disableVendorPrefixes?fn:(0,C.GK)(fn),this._applyMultiValueStyleToElement(We,Ye)}applyStyleToElements(Ye,fn=[]){const ze=this.layoutConfig.disableVendorPrefixes?Ye:(0,C.GK)(Ye);fn.forEach(We=>{this._applyMultiValueStyleToElement(ze,We)})}getFlowDirection(Ye){const fn="flex-direction";let ze=this.lookupStyle(Ye,fn);return[ze||"row",this.lookupInlineStyle(Ye,fn)||(0,p.PM)(this._platformId)&&this._serverModuleLoaded?ze:""]}hasWrap(Ye){return"wrap"===this.lookupStyle(Ye,"flex-wrap")}lookupAttributeValue(Ye,fn){return Ye.getAttribute(fn)??""}lookupInlineStyle(Ye,fn){return(0,p.NF)(this._platformId)?Ye.style.getPropertyValue(fn):function nt(Yn,jn){return ft(Yn)[jn]??""}(Ye,fn)}lookupStyle(Ye,fn,ze=!1){let We="";return Ye&&((We=this.lookupInlineStyle(Ye,fn))||((0,p.NF)(this._platformId)?ze||(We=getComputedStyle(Ye).getPropertyValue(fn)):this._serverModuleLoaded&&(We=this._serverStylesheet.getStyleForElement(Ye,fn)))),We?We.trim():""}_applyMultiValueStyleToElement(Ye,fn){Object.keys(Ye).sort().forEach(ze=>{const We=Ye[ze],en=Array.isArray(We)?We:[We];en.sort();for(let le of en)le=le?le+"":"",(0,p.NF)(this._platformId)||!this._serverModuleLoaded?(0,p.NF)(this._platformId)?fn.style.setProperty(ze,le):Tt(fn,ze,le):this._serverStylesheet.addStyleToElement(fn,ze,le)})}}return Yn.\u0275fac=function(Ye){return new(Ye||Yn)(d.LFG(K),d.LFG(bt),d.LFG(d.Lbi),d.LFG(lt))},Yn.\u0275prov=d.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();function Tt(Yn,jn,Ye){jn=jn.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const fn=ft(Yn);fn[jn]=Ye??"",function At(Yn,jn){let Ye="";for(const fn in jn)jn[fn]&&(Ye+=`${fn}:${jn[fn]};`);Yn.setAttribute("style",Ye)}(Yn,fn)}function ft(Yn){const jn={},Ye=Yn.getAttribute("style");if(Ye){const fn=Ye.split(/;+/g);for(let ze=0;ze0){const en=We.indexOf(":");if(-1===en)throw new Error(`Invalid CSS style: ${We}`);jn[We.substr(0,en).trim()]=We.substr(en+1).trim()}}}return jn}function Et(Yn,jn){return(jn&&jn.priority||0)-(Yn&&Yn.priority||0)}function Bt(Yn,jn){return(Yn.priority||0)-(jn.priority||0)}let It=(()=>{class Yn{constructor(Ye,fn,ze){this._zone=Ye,this._platformId=fn,this._document=ze,this.source=new v.X(new G(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const Ye=[];return this.registry.forEach((fn,ze)=>{fn.matches&&Ye.push(ze)}),Ye}isActive(Ye){return this.registry.get(Ye)?.matches??this.registerQuery(Ye).some(ze=>ze.matches)}observe(Ye,fn=!1){if(Ye&&Ye.length){const ze=this._observable$.pipe((0,U.h)(en=>!fn||Ye.indexOf(en.mediaQuery)>-1)),We=new T.y(en=>{const le=this.registerQuery(Ye);if(le.length){const Je=le.pop();le.forEach(Lt=>{en.next(Lt)}),this.source.next(Je)}en.complete()});return(0,t.T)(We,ze)}return this._observable$}registerQuery(Ye){const fn=Array.isArray(Ye)?Ye:[Ye],ze=[];return function Jt(Yn,jn){const Ye=Yn.filter(fn=>!se[fn]);if(Ye.length>0){const fn=Ye.join(", ");try{const ze=jn.createElement("style");ze.setAttribute("type","text/css"),ze.styleSheet||ze.appendChild(jn.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${fn} {.fx-query-test{ }}\n`)),jn.head.appendChild(ze),Ye.forEach(We=>se[We]=ze)}catch(ze){console.error(ze)}}}(fn,this._document),fn.forEach(We=>{const en=Je=>{this._zone.run(()=>this.source.next(new G(Je.matches,We)))};let le=this.registry.get(We);le||(le=this.buildMQL(We),le.addListener(en),this.pendingRemoveListenerFns.push(()=>le.removeListener(en)),this.registry.set(We,le)),le.matches&&ze.push(new G(!0,We))}),ze}ngOnDestroy(){let Ye;for(;Ye=this.pendingRemoveListenerFns.pop();)Ye()}buildMQL(Ye){return function xe(Yn,jn){return jn&&window.matchMedia("all").addListener?window.matchMedia(Yn):function ve(Yn){const jn=new EventTarget;return jn.matches="all"===Yn||""===Yn,jn.media=Yn,jn.addListener=()=>{},jn.removeListener=()=>{},jn.addEventListener=()=>{},jn.dispatchEvent=()=>!1,jn.onchange=null,jn}(Yn)}(Ye,(0,p.NF)(this._platformId))}}return Yn.\u0275fac=function(Ye){return new(Ye||Yn)(d.LFG(d.R0b),d.LFG(d.Lbi),d.LFG(p.K0))},Yn.\u0275prov=d.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();const se={},Oe=[{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}],qe="(orientation: portrait) and (max-width: 599.98px)",$e="(orientation: landscape) and (max-width: 959.98px)",Xt="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",we="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",ae="(orientation: portrait) and (min-width: 840px)",Kt="(orientation: landscape) and (min-width: 1280px)",de={HANDSET:`${qe}, ${$e}`,TABLET:`${Xt} , ${we}`,WEB:`${ae}, ${Kt} `,HANDSET_PORTRAIT:`${qe}`,TABLET_PORTRAIT:`${Xt} `,WEB_PORTRAIT:`${ae}`,HANDSET_LANDSCAPE:`${$e}`,TABLET_LANDSCAPE:`${we}`,WEB_LANDSCAPE:`${Kt}`},Wt=[{alias:"handset",priority:2e3,mediaQuery:de.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:de.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:de.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:de.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:de.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:de.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:de.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:de.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:de.WEB_PORTRAIT,overlapping:!0}],re=/(\.|-|_)/g;function Pe(Yn){let jn=Yn.length>0?Yn.charAt(0):"",Ye=Yn.length>1?Yn.slice(1):"";return jn.toUpperCase()+Ye}const gn=new d.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Yn=(0,d.f3M)(Pt),jn=(0,d.f3M)(lt),Ye=[].concat.apply([],(Yn||[]).map(ze=>Array.isArray(ze)?ze:[ze]));return function ye(Yn,jn=[]){const Ye={};return Yn.forEach(fn=>{Ye[fn.alias]=fn}),jn.forEach(fn=>{Ye[fn.alias]?(0,C.kt)(Ye[fn.alias],fn):Ye[fn.alias]=fn}),function _n(Yn){return Yn.forEach(jn=>{jn.suffix||(jn.suffix=function on(Yn){return Yn.replace(re,"|").split("|").map(Pe).join("")}(jn.alias),jn.overlapping=!!jn.overlapping)}),Yn}(Object.keys(Ye).map(fn=>Ye[fn]))}((jn.disableDefaultBps?[]:Oe).concat(jn.addOrientationBps?Wt:[]),Ye)}});let Ue=(()=>{class Yn{constructor(Ye){this.findByMap=new Map,this.items=[...Ye].sort(Bt)}findByAlias(Ye){return Ye?this.findWithPredicate(Ye,fn=>fn.alias===Ye):null}findByQuery(Ye){return this.findWithPredicate(Ye,fn=>fn.mediaQuery===Ye)}get overlappings(){return this.items.filter(Ye=>Ye.overlapping)}get aliases(){return this.items.map(Ye=>Ye.alias)}get suffixes(){return this.items.map(Ye=>Ye?.suffix??"")}findWithPredicate(Ye,fn){let ze=this.findByMap.get(Ye);return ze||(ze=this.items.find(fn)??null,this.findByMap.set(Ye,ze)),ze??null}}return Yn.\u0275fac=function(Ye){return new(Ye||Yn)(d.LFG(gn))},Yn.\u0275prov=d.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();const un="print",Mn={alias:un,mediaQuery:un,priority:1e3};let oi=(()=>{class Yn{constructor(Ye,fn,ze){this.breakpoints=Ye,this.layoutConfig=fn,this._document=ze,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new bi,this.deactivations=[]}withPrintQuery(Ye){return[...Ye,un]}isPrintEvent(Ye){return Ye.mediaQuery.startsWith(un)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(Ye=>this.breakpoints.findByAlias(Ye)).filter(Ye=>null!==Ye)}getEventBreakpoints({mediaQuery:Ye}){const fn=this.breakpoints.findByQuery(Ye);return(fn?[...this.printBreakPoints,fn]:this.printBreakPoints).sort(Et)}updateEvent(Ye){let fn=this.breakpoints.findByQuery(Ye.mediaQuery);return this.isPrintEvent(Ye)&&(fn=this.getEventBreakpoints(Ye)[0],Ye.mediaQuery=fn?.mediaQuery??""),Dt(Ye,fn)}registerBeforeAfterPrintHooks(Ye){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const fn=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(Ye,this.getEventBreakpoints(new G(!0,un))),Ye.updateStyles())},ze=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(Ye),Ye.updateStyles())};this._document.defaultView.addEventListener("beforeprint",fn),this._document.defaultView.addEventListener("afterprint",ze),this.beforePrintEventListeners.push(fn),this.afterPrintEventListeners.push(ze)}interceptEvents(Ye){return fn=>{this.isPrintEvent(fn)?fn.matches&&!this.isPrinting?(this.startPrinting(Ye,this.getEventBreakpoints(fn)),Ye.updateStyles()):!fn.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(Ye),Ye.updateStyles()):this.collectActivations(Ye,fn)}}blockPropagation(){return Ye=>!(this.isPrinting||this.isPrintEvent(Ye))}startPrinting(Ye,fn){this.isPrinting=!0,this.formerActivations=Ye.activatedBreakpoints,Ye.activatedBreakpoints=this.queue.addPrintBreakpoints(fn)}stopPrinting(Ye){Ye.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(Ye,fn){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!fn.matches){const ze=this.breakpoints.findByQuery(fn.mediaQuery);if(ze){const We=this.formerActivations&&this.formerActivations.includes(ze),en=!this.formerActivations&&Ye.activatedBreakpoints.includes(ze);(We||en)&&(this.deactivations.push(ze),this.deactivations.sort(Et))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(Ye=>this._document.defaultView.removeEventListener("beforeprint",Ye)),this.afterPrintEventListeners.forEach(Ye=>this._document.defaultView.removeEventListener("afterprint",Ye)))}}return Yn.\u0275fac=function(Ye){return new(Ye||Yn)(d.LFG(Ue),d.LFG(lt),d.LFG(p.K0))},Yn.\u0275prov=d.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();class bi{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(jn){return jn.push(Mn),jn.sort(Et),jn.forEach(Ye=>this.addBreakpoint(Ye)),this.printBreakpoints}addBreakpoint(jn){jn&&void 0===this.printBreakpoints.find(fn=>fn.mediaQuery===jn.mediaQuery)&&(this.printBreakpoints=function ri(Yn){return Yn?.mediaQuery.startsWith(un)??!1}(jn)?[jn,...this.printBreakpoints]:[...this.printBreakpoints,jn])}clear(){this.printBreakpoints=[]}}let Ke=(()=>{class Yn{constructor(Ye,fn,ze){this.matchMedia=Ye,this.breakpoints=fn,this.hook=ze,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(Ye){this._activatedBreakpoints=[...Ye]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(Ye){this._useFallbacks=Ye}onMediaChange(Ye){const fn=this.findByQuery(Ye.mediaQuery);if(fn){Ye=Dt(Ye,fn);const ze=this.activatedBreakpoints.indexOf(fn);Ye.matches&&-1===ze?(this._activatedBreakpoints.push(fn),this._activatedBreakpoints.sort(Et),this.updateStyles()):!Ye.matches&&-1!==ze&&(this._activatedBreakpoints.splice(ze,1),this._activatedBreakpoints.sort(Et),this.updateStyles())}}init(Ye,fn,ze,We,en=[]){ne(this.updateMap,Ye,fn,ze),ne(this.clearMap,Ye,fn,We),this.buildElementKeyMap(Ye,fn),this.watchExtraTriggers(Ye,fn,en)}getValue(Ye,fn,ze){const We=this.elementMap.get(Ye);if(We){const en=void 0!==ze?We.get(ze):this.getActivatedValues(We,fn);if(en)return en.get(fn)}}hasValue(Ye,fn){const ze=this.elementMap.get(Ye);if(ze){const We=this.getActivatedValues(ze,fn);if(We)return void 0!==We.get(fn)||!1}return!1}setValue(Ye,fn,ze,We){let en=this.elementMap.get(Ye);if(en){const Je=(en.get(We)??new Map).set(fn,ze);en.set(We,Je),this.elementMap.set(Ye,en)}else en=(new Map).set(We,(new Map).set(fn,ze)),this.elementMap.set(Ye,en);const le=this.getValue(Ye,fn);void 0!==le&&this.updateElement(Ye,fn,le)}trackValue(Ye,fn){return this.subject.asObservable().pipe((0,U.h)(ze=>ze.element===Ye&&ze.key===fn))}updateStyles(){this.elementMap.forEach((Ye,fn)=>{const ze=new Set(this.elementKeyMap.get(fn));let We=this.getActivatedValues(Ye);We&&We.forEach((en,le)=>{this.updateElement(fn,le,en),ze.delete(le)}),ze.forEach(en=>{if(We=this.getActivatedValues(Ye,en),We){const le=We.get(en);this.updateElement(fn,en,le)}else this.clearElement(fn,en)})})}clearElement(Ye,fn){const ze=this.clearMap.get(Ye);if(ze){const We=ze.get(fn);We&&(We(),this.subject.next({element:Ye,key:fn,value:""}))}}updateElement(Ye,fn,ze){const We=this.updateMap.get(Ye);if(We){const en=We.get(fn);en&&(en(ze),this.subject.next({element:Ye,key:fn,value:ze}))}}releaseElement(Ye){const fn=this.watcherMap.get(Ye);fn&&(fn.forEach(We=>We.unsubscribe()),this.watcherMap.delete(Ye));const ze=this.elementMap.get(Ye);ze&&(ze.forEach((We,en)=>ze.delete(en)),this.elementMap.delete(Ye))}triggerUpdate(Ye,fn){const ze=this.elementMap.get(Ye);if(ze){const We=this.getActivatedValues(ze,fn);We&&(fn?this.updateElement(Ye,fn,We.get(fn)):We.forEach((en,le)=>this.updateElement(Ye,le,en)))}}buildElementKeyMap(Ye,fn){let ze=this.elementKeyMap.get(Ye);ze||(ze=new Set,this.elementKeyMap.set(Ye,ze)),ze.add(fn)}watchExtraTriggers(Ye,fn,ze){if(ze&&ze.length){let We=this.watcherMap.get(Ye);if(We||(We=new Map,this.watcherMap.set(Ye,We)),!We.get(fn)){const le=(0,t.T)(...ze).subscribe(()=>{const Je=this.getValue(Ye,fn);this.updateElement(Ye,fn,Je)});We.set(fn,le)}}}findByQuery(Ye){return this.breakpoints.findByQuery(Ye)}getActivatedValues(Ye,fn){for(let We=0;Wefn.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(Ye)).pipe((0,k.b)(this.hook.interceptEvents(this)),(0,U.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Yn.\u0275fac=function(Ye){return new(Ye||Yn)(d.LFG(It),d.LFG(Ue),d.LFG(oi))},Yn.\u0275prov=d.Yz7({token:Yn,factory:Yn.\u0275fac,providedIn:"root"}),Yn})();function ne(Yn,jn,Ye,fn){if(void 0!==fn){const ze=Yn.get(jn)??new Map;ze.set(Ye,fn),Yn.set(jn,ze)}}let ct=(()=>{class Yn{constructor(Ye,fn,ze,We){this.elementRef=Ye,this.styleBuilder=fn,this.styler=ze,this.marshal=We,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(Ye){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Ye,this.marshal.activatedAlias)}ngOnChanges(Ye){Object.keys(Ye).forEach(fn=>{if(-1!==this.inputs.indexOf(fn)){const ze=fn.split(".").slice(1).join(".");this.setValue(Ye[fn].currentValue,ze)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(Ye=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),Ye)}addStyles(Ye,fn){const ze=this.styleBuilder,We=ze.shouldCache;let en=this.styleCache.get(Ye);(!en||!We)&&(en=ze.buildStyles(Ye,fn),We&&this.styleCache.set(Ye,en)),this.mru={...en},this.applyStyleToElement(en),ze.sideEffect(Ye,en,fn)}clearStyles(){Object.keys(this.mru).forEach(Ye=>{this.mru[Ye]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(Ye,fn=!1){if(Ye){const[ze,We]=this.styler.getFlowDirection(Ye);if(!We&&fn){const en=(0,C.Ar)(ze);this.styler.applyStyleToElements(en,[Ye])}return ze.trim()}return"row"}hasWrap(Ye){return this.styler.hasWrap(Ye)}applyStyleToElement(Ye,fn,ze=this.nativeElement){this.styler.applyStyleToElement(ze,Ye,fn)}setValue(Ye,fn){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Ye,fn)}updateWithValue(Ye){this.currentValue!==Ye&&(this.addStyles(Ye),this.currentValue=Ye)}}return Yn.\u0275fac=function(Ye){return new(Ye||Yn)(d.Y36(d.SBq),d.Y36(zt),d.Y36(Vt),d.Y36(Ke))},Yn.\u0275dir=d.lG2({type:Yn,features:[d.TTD]}),Yn})();function mi(Yn,jn="1",Ye="1"){let fn=[jn,Ye,Yn],ze=Yn.indexOf("calc");if(ze>0){fn[2]=Oi(Yn.substring(ze).trim());let We=Yn.substr(0,ze).trim().split(" ");2==We.length&&(fn[0]=We[0],fn[1]=We[1])}else if(0==ze)fn[2]=Oi(Yn.trim());else{let We=Yn.split(" ");fn=3===We.length?We:[jn,Ye,Yn]}return fn}function Oi(Yn){return Yn.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function fi(Yn,jn){if(void 0===jn)return Yn;const Ye=fn=>{const ze=+fn.slice(0,-"x".length);return Yn.endsWith("x")&&!isNaN(ze)?`${ze*jn.value}${jn.unit}`:Yn};return Yn.includes(" ")?Yn.split(" ").map(Ye).join(" "):Ye(Yn)}EventTarget},55829:(ot,et,b)=>{"use strict";b.d(et,{Zl:()=>xe,aT:()=>$e,b8:()=>Vt,oO:()=>at});var d=b(94650),p=b(32233),v=b(36895),T=b(21281),t=b(7625),A=b(11481);let z=(()=>{class Xt extends p.iR{constructor(ae,Kt,de,Wt,re,Pe,on){super(ae,null,Kt,de),this.ngClassInstance=on,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new v.mk(Wt,re,ae,Pe)),this.init(),this.setValue("","")}set klass(ae){this.ngClassInstance.klass=ae,this.setValue(ae,"")}updateWithValue(ae){this.ngClassInstance.ngClass=ae,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(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))},Xt.\u0275dir=d.lG2({type:Xt,inputs:{klass:["class","klass"]},features:[d.qOj]}),Xt})();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 at=(()=>{class Xt extends z{constructor(){super(...arguments),this.inputs=G}}return Xt.\u0275fac=function(){let we;return function(Kt){return(we||(we=d.n5z(Xt)))(Kt||Xt)}}(),Xt.\u0275dir=d.lG2({type:Xt,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]}),Xt})(),lt=(()=>{class Xt extends p.QI{buildStyles(ae,Kt){return{display:"true"===ae?Kt.display||(Kt.isServer?"initial":""):"none"}}}return Xt.\u0275fac=function(){let we;return function(Kt){return(we||(we=d.n5z(Xt)))(Kt||Xt)}}(),Xt.\u0275prov=d.Yz7({token:Xt,factory:Xt.\u0275fac,providedIn:"root"}),Xt})(),bt=(()=>{class Xt extends p.iR{constructor(ae,Kt,de,Wt,re,Pe,on){super(ae,Kt,de,Wt),this.layoutConfig=re,this.platformId=Pe,this.serverModuleLoaded=on,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const ae=Array.from(this.nativeElement.children);for(let de=0;de{if(-1!==this.inputs.indexOf(Kt)){const de=Kt.split("."),Wt=de.slice(1).join("."),re=ae[Kt].currentValue;let Pe=""===re||0!==re&&(0,T.Ig)(re);"fxHide"===de[0]&&(Pe=!Pe),this.setValue(Pe,Wt)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(ae=>{this.marshal.trackValue(this.nativeElement,ae).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(ae=!0){if(""===ae)return;const Kt=(0,v.PM)(this.platformId);this.addStyles(ae?"true":"false",{display:this.display,isServer:Kt}),Kt&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(d.Y36(d.SBq),d.Y36(lt),d.Y36(p.RK),d.Y36(p.yB),d.Y36(p.WU),d.Y36(d.Lbi),d.Y36(p.wY))},Xt.\u0275dir=d.lG2({type:Xt,features:[d.qOj,d.TTD]}),Xt})();const Pt=new WeakMap,Dt=["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 Vt=(()=>{class Xt extends bt{constructor(){super(...arguments),this.inputs=Dt}}return Xt.\u0275fac=function(){let we;return function(Kt){return(we||(we=d.n5z(Xt)))(Kt||Xt)}}(),Xt.\u0275dir=d.lG2({type:Xt,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]}),Xt})();class nt{constructor(we,ae,Kt=!0){this.key=we,this.value=ae,this.key=Kt?we.replace(/['"]/g,"").trim():we.trim(),this.value=Kt?ae.replace(/['"]/g,"").trim():ae.trim(),this.value=this.value.replace(/;/,"")}}function Tt(Xt){let we=typeof Xt;return"object"===we?Xt.constructor===Array?"array":Xt.constructor===Set?"set":"object":we}function Bt(Xt){const[we,...ae]=Xt.split(":");return new nt(we,ae.join(":"))}function It(Xt,we){return we.key&&(Xt[we.key]=we.value),Xt}let se=(()=>{class Xt extends p.iR{constructor(ae,Kt,de,Wt,re,Pe,on,_n,ye){super(ae,null,Kt,de),this.sanitizer=Wt,this.ngStyleInstance=on,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new v.PC(ae,re,Pe)),this.init();const gn=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(gn),this.isServer=_n&&(0,v.PM)(ye)}updateWithValue(ae){const Kt=this.buildStyleMap(ae);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...Kt},this.isServer&&this.applyStyleToElement(Kt),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(ae){const Kt=de=>this.sanitizer.sanitize(d.q3G.STYLE,de)??"";if(ae)switch(Tt(ae)){case"string":return Oe(function At(Xt,we=";"){return String(Xt).trim().split(we).map(ae=>ae.trim()).filter(ae=>""!==ae)}(ae),Kt);case"array":return Oe(ae,Kt);default:return function Et(Xt,we){let ae=[];return"set"===Tt(Xt)?Xt.forEach(Kt=>ae.push(Kt)):Object.keys(Xt).forEach(Kt=>{ae.push(`${Kt}:${Xt[Kt]}`)}),function ft(Xt,we){return Xt.map(Bt).filter(Kt=>!!Kt).map(Kt=>(we&&(Kt.value=we(Kt.value)),Kt)).reduce(It,{})}(ae,we)}(ae,Kt)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return Xt.\u0275fac=function(ae){return new(ae||Xt)(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))},Xt.\u0275dir=d.lG2({type:Xt,features:[d.qOj]}),Xt})();const Jt=["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 xe=(()=>{class Xt extends se{constructor(){super(...arguments),this.inputs=Jt}}return Xt.\u0275fac=function(){let we;return function(Kt){return(we||(we=d.n5z(Xt)))(Kt||Xt)}}(),Xt.\u0275dir=d.lG2({type:Xt,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]}),Xt})();function Oe(Xt,we){return Xt.map(Bt).filter(Kt=>!!Kt).map(Kt=>(we&&(Kt.value=we(Kt.value)),Kt)).reduce(It,{})}let $e=(()=>{class Xt{}return Xt.\u0275fac=function(ae){return new(ae||Xt)},Xt.\u0275mod=d.oAB({type:Xt}),Xt.\u0275inj=d.cJS({imports:[p.IR]}),Xt})()},1576:(ot,et,b)=>{"use strict";b.d(et,{SQ:()=>bt,Wh:()=>mi,XD:()=>ct,ae:()=>en,s9:()=>Gt,xw:()=>P,yH:()=>ve});var d=b(94650),p=b(40445),v=b(32233),T=b(85863),t=b(8929),A=b(7625);let C=(()=>{class le extends v.QI{buildStyles(Lt,{display:wt}){const Ot=(0,T.Ar)(Lt);return{...Ot,display:"none"===wt?wt:Ot.display}}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const U=["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 le extends v.iR{constructor(Lt,wt,Ot,Te,Xe){super(Lt,Ot,wt,Te),this._config=Xe,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(Lt){const Ot=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=I.get(Ot)??new Map,I.set(Ot,this.styleCache),this.currentValue!==Lt&&(this.addStyles(Lt,{display:Ot}),this.currentValue=Lt)}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(C),d.Y36(v.yB),d.Y36(v.WU))},le.\u0275dir=d.lG2({type:le,features:[d.qOj]}),le})(),P=(()=>{class le extends D{constructor(){super(...arguments),this.inputs=U}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,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]}),le})();const I=new Map,z={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let G=(()=>{class le extends v.QI{constructor(Lt,wt){super(),this._styler=Lt,this._config=wt}buildStyles(Lt,wt){return Lt.endsWith(nt)?(Lt=Lt.slice(0,Lt.indexOf(nt)),function At(le,Je){const[Lt,wt]=le.split(" "),Te=he=>`-${he}`;let Xe="0px",Fe=Te(wt??Lt),Tn="0px";return"rtl"===Je?Tn=Te(Lt):Xe=Te(Lt),{margin:`0px ${Xe} ${Fe} ${Tn}`}}(Lt=(0,v.FL)(Lt,this._config.multiplier),wt.directionality)):{}}sideEffect(Lt,wt,Ot){const Te=Ot.items;if(Lt.endsWith(nt)){Lt=Lt.slice(0,Lt.indexOf(nt));const Xe=function Tt(le,Je){const[Lt,wt]=le.split(" ");let Te="0px",Fe="0px";return"rtl"===Je?Fe=Lt:Te=Lt,{padding:`0px ${Te} ${wt??Lt} ${Fe}`}}(Lt=(0,v.FL)(Lt,this._config.multiplier),Ot.directionality);this._styler.applyStyleToElements(Xe,Ot.items)}else{Lt=(0,v.FL)(Lt,this._config.multiplier),Lt=this.addFallbackUnit(Lt);const Xe=Te.pop(),Fe=function Et(le,Je){const Lt=ft(Je.directionality,Je.layout),wt={...z};return wt[Lt]=le,wt}(Lt,Ot);this._styler.applyStyleToElements(Fe,Te),this._styler.applyStyleToElements(z,[Xe])}}addFallbackUnit(Lt){return isNaN(+Lt)?Lt:`${Lt}${this._config.defaultUnit}`}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.LFG(v.RK),d.LFG(v.WU))},le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const K=["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 lt=(()=>{class le extends v.iR{constructor(Lt,wt,Ot,Te,Xe,Fe){super(Lt,Xe,Te,Fe),this.zone=wt,this.directionality=Ot,this.styleUtils=Te,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new t.xQ;const Tn=[this.directionality.change,this.observerSubject.asObservable()];this.init(Tn),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,A.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const Lt=this.nativeElement.children,wt=[];for(let Ot=Lt.length;Ot--;)wt[Ot]=Lt[Ot];return wt}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(Lt){const Ot=Lt.value.split(" ");this.layout=Ot[0],T.iQ.find(Te=>Te===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(Lt){const wt=this.childrenNodes.filter(Ot=>1===Ot.nodeType&&this.willDisplay(Ot)).sort((Ot,Te)=>{const Xe=+this.styler.lookupStyle(Ot,"order"),Fe=+this.styler.lookupStyle(Te,"order");return isNaN(Xe)||isNaN(Fe)||Xe===Fe?0:Xe>Fe?1:-1});if(wt.length>0){const Ot=this.directionality.value,Te=this.layout;"row"===Te&&"rtl"===Ot?this.styleCache=Pt:"row"===Te&&"rtl"!==Ot?this.styleCache=zt:"column"===Te&&"rtl"===Ot?this.styleCache=Dt:"column"===Te&&"rtl"!==Ot&&(this.styleCache=Vt),this.addStyles(Lt,{directionality:Ot,items:wt,layout:Te})}}clearStyles(){const Lt=Object.keys(this.mru).length>0,wt=Lt?"padding":ft(this.directionality.value,this.layout);Lt&&super.clearStyles(),this.styleUtils.applyStyleToElements({[wt]:""},this.childrenNodes)}willDisplay(Lt){const wt=this.marshal.getValue(Lt,"show-hide");return!0===wt||void 0===wt&&"none"!==this.styleUtils.lookupStyle(Lt,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(Lt=>{Lt.some(Ot=>Ot.addedNodes&&Ot.addedNodes.length>0||Ot.removedNodes&&Ot.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(p.Is),d.Y36(v.RK),d.Y36(G),d.Y36(v.yB))},le.\u0275dir=d.lG2({type:le,features:[d.qOj]}),le})(),bt=(()=>{class le extends lt{constructor(){super(...arguments),this.inputs=K}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,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]}),le})();const Pt=new Map,Dt=new Map,zt=new Map,Vt=new Map,nt=" grid";function ft(le,Je){switch(Je){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===le?"margin-left":"margin-right";case"row-reverse":return"rtl"===le?"margin-right":"margin-left"}}let Bt=(()=>{class le extends v.QI{constructor(Lt){super(),this.layoutConfig=Lt}buildStyles(Lt,wt){let[Ot,Te,...Xe]=Lt.split(" "),Fe=Xe.join(" ");const Tn=wt.direction.indexOf("column")>-1?"column":"row",he=(0,T.tj)(Tn)?"max-width":"max-height",Re=(0,T.tj)(Tn)?"min-width":"min-height",En=String(Fe).indexOf("calc")>-1,gi=En||"auto"===Fe,go=String(Fe).indexOf("%")>-1&&!En,_o=String(Fe).indexOf("px")>-1||String(Fe).indexOf("rem")>-1||String(Fe).indexOf("em")>-1||String(Fe).indexOf("vw")>-1||String(Fe).indexOf("vh")>-1;let mn=En||_o;Ot="0"==Ot?0:Ot,Te="0"==Te?0:Te;const An=!Ot&&!Te;let sn={};const ei={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Fe||""){case"":const Zi=!1!==this.layoutConfig.useColumnBasisZero;Fe="row"===Tn?"0%":Zi?"0.000000001px":"auto";break;case"initial":case"nogrow":Ot=0,Fe="auto";break;case"grow":Fe="100%";break;case"noshrink":Te=0,Fe="auto";break;case"auto":break;case"none":Ot=0,Te=0,Fe="auto";break;default:!mn&&!go&&!isNaN(Fe)&&(Fe+="%"),"0%"===Fe&&(mn=!0),"0px"===Fe&&(Fe="0%"),sn=(0,T.kt)(ei,En?{"flex-grow":Ot,"flex-shrink":Te,"flex-basis":mn?Fe:"100%"}:{flex:`${Ot} ${Te} ${mn?Fe:"100%"}`})}return sn.flex||sn["flex-grow"]||(sn=(0,T.kt)(ei,En?{"flex-grow":Ot,"flex-shrink":Te,"flex-basis":Fe}:{flex:`${Ot} ${Te} ${Fe}`})),"0%"!==Fe&&"0px"!==Fe&&"0.000000001px"!==Fe&&"auto"!==Fe&&(sn[Re]=An||mn&&Ot?Fe:null,sn[he]=An||!gi&&Te?Fe:null),sn[Re]||sn[he]?wt.hasWrap&&(sn[En?"flex-basis":"flex"]=sn[he]?En?sn[he]:`${Ot} ${Te} ${sn[he]}`:En?sn[Re]:`${Ot} ${Te} ${sn[Re]}`):sn=(0,T.kt)(ei,En?{"flex-grow":Ot,"flex-shrink":Te,"flex-basis":Fe}:{flex:`${Ot} ${Te} ${Fe}`}),(0,T.kt)(sn,{"box-sizing":"border-box"})}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.LFG(v.WU))},le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const It=["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 Jt=(()=>{class le extends v.iR{constructor(Lt,wt,Ot,Te,Xe){super(Lt,Te,wt,Xe),this.layoutConfig=Ot,this.marshal=Xe,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(Lt){this.flexShrink=Lt||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Lt){this.flexGrow=Lt||"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(Lt){const Ot=Lt.value.split(" ");this.direction=Ot[0],this.wrap=void 0!==Ot[1]&&"wrap"===Ot[1],this.triggerUpdate()}updateWithValue(Lt){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 Ot=this.direction,Te=Ot.startsWith("row"),Xe=this.wrap;Te&&Xe?this.styleCache=qe:Te&&!Xe?this.styleCache=xe:!Te&&Xe?this.styleCache=$e:!Te&&!Xe&&(this.styleCache=Oe);const Fe=String(Lt).replace(";",""),Tn=(0,v.Ot)(Fe,this.flexGrow,this.flexShrink);this.addStyles(Tn.join(" "),{direction:Ot,hasWrap:Xe})}triggerReflow(){const Lt=this.activatedValue;if(void 0!==Lt){const wt=(0,v.Ot)(Lt+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,wt.join(" "))}}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(v.WU),d.Y36(Bt),d.Y36(v.yB))},le.\u0275dir=d.lG2({type:le,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[d.qOj]}),le})(),ve=(()=>{class le extends Jt{constructor(){super(...arguments),this.inputs=It}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,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]}),le})();const xe=new Map,Oe=new Map,qe=new Map,$e=new Map;let oi=(()=>{class le extends v.QI{buildStyles(Lt){const wt={};switch(Lt=Lt||"stretch"){case"start":wt["align-self"]="flex-start";break;case"end":wt["align-self"]="flex-end";break;default:wt["align-self"]=Lt}return wt}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const bi=["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 Ke=(()=>{class le extends v.iR{constructor(Lt,wt,Ot,Te){super(Lt,Ot,wt,Te),this.DIRECTIVE_KEY="flex-align",this.styleCache=ne,this.init()}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(oi),d.Y36(v.yB))},le.\u0275dir=d.lG2({type:le,features:[d.qOj]}),le})();const ne=new Map;let ct=(()=>{class le extends Ke{constructor(){super(...arguments),this.inputs=bi}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,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]}),le})();const it={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let kt=(()=>{class le extends v.QI{buildStyles(Lt){return it}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),Gt=(()=>{class le extends v.iR{constructor(Lt,wt,Ot,Te){super(Lt,Ot,wt,Te),this.styleCache=oe,this.addStyles("")}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(kt),d.Y36(v.yB))},le.\u0275dir=d.lG2({type:le,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[d.qOj]}),le})();const oe=new Map;let Ce=(()=>{class le extends v.QI{buildStyles(Lt,wt){const Ot={},[Te,Xe]=Lt.split(" ");switch(Te){case"center":Ot["justify-content"]="center";break;case"space-around":Ot["justify-content"]="space-around";break;case"space-between":Ot["justify-content"]="space-between";break;case"space-evenly":Ot["justify-content"]="space-evenly";break;case"end":case"flex-end":Ot["justify-content"]="flex-end";break;default:Ot["justify-content"]="flex-start"}switch(Xe){case"start":case"flex-start":Ot["align-items"]=Ot["align-content"]="flex-start";break;case"center":Ot["align-items"]=Ot["align-content"]="center";break;case"end":case"flex-end":Ot["align-items"]=Ot["align-content"]="flex-end";break;case"space-between":Ot["align-content"]="space-between",Ot["align-items"]="stretch";break;case"space-around":Ot["align-content"]="space-around",Ot["align-items"]="stretch";break;case"baseline":Ot["align-content"]="stretch",Ot["align-items"]="baseline";break;default:Ot["align-items"]=Ot["align-content"]="stretch"}return(0,T.kt)(Ot,{display:wt.inline?"inline-flex":"flex","flex-direction":wt.layout,"box-sizing":"border-box","max-width":"stretch"===Xe?(0,T.tj)(wt.layout)?null:"100%":null,"max-height":"stretch"===Xe&&(0,T.tj)(wt.layout)?"100%":null})}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275prov=d.Yz7({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const Ee=["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 Ln=(()=>{class le extends v.iR{constructor(Lt,wt,Ot,Te){super(Lt,Ot,wt,Te),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(Lt){const wt=this.layout||"row",Ot=this.inline;"row"===wt&&Ot?this.styleCache=jn:"row"!==wt||Ot?"row-reverse"===wt&&Ot?this.styleCache=fn:"row-reverse"!==wt||Ot?"column"===wt&&Ot?this.styleCache=Ye:"column"!==wt||Ot?"column-reverse"===wt&&Ot?this.styleCache=ze:"column-reverse"===wt&&!Ot&&(this.styleCache=Yn):this.styleCache=ho:this.styleCache=fi:this.styleCache=Oi,this.addStyles(Lt,{layout:wt,inline:Ot})}onLayoutChange(Lt){const wt=Lt.value.split(" ");this.layout=wt[0],this.inline=Lt.value.includes("inline"),T.iQ.find(Ot=>Ot===this.layout)||(this.layout="row"),this.triggerUpdate()}}return le.\u0275fac=function(Lt){return new(Lt||le)(d.Y36(d.SBq),d.Y36(v.RK),d.Y36(Ce),d.Y36(v.yB))},le.\u0275dir=d.lG2({type:le,features:[d.qOj]}),le})(),mi=(()=>{class le extends Ln{constructor(){super(...arguments),this.inputs=Ee}}return le.\u0275fac=function(){let Je;return function(wt){return(Je||(Je=d.n5z(le)))(wt||le)}}(),le.\u0275dir=d.lG2({type:le,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]}),le})();const Oi=new Map,ho=new Map,fi=new Map,Yn=new Map,jn=new Map,Ye=new Map,fn=new Map,ze=new Map;let en=(()=>{class le{}return le.\u0275fac=function(Lt){return new(Lt||le)},le.\u0275mod=d.oAB({type:le}),le.\u0275inj=d.cJS({imports:[v.IR,p.vT]}),le})()},24006:(ot,et,b)=>{"use strict";b.d(et,{CE:()=>Gs,Cf:()=>bt,F:()=>br,Fd:()=>pr,Fj:()=>G,JJ:()=>ri,JL:()=>Ke,JU:()=>U,NI:()=>Er,On:()=>Qr,Q7:()=>Bl,QS:()=>$s,UX:()=>rl,Zs:()=>Ps,_Y:()=>Fs,a5:()=>un,kI:()=>zt,nD:()=>lc,nJ:()=>Re,oH:()=>js,p4:()=>bc,qQ:()=>xs,qu:()=>Pa,sg:()=>md,u:()=>Hl,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 pe{constructor(qt,rt){this._renderer=qt,this._elementRef=rt,this.onChange=ki=>{},this.onTouched=()=>{}}setProperty(qt,rt){this._renderer.setProperty(this._elementRef.nativeElement,qt,rt)}registerOnTouched(qt){this.onTouched=qt}registerOnChange(qt){this.onChange=qt}setDisabledState(qt){this.setProperty("disabled",qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(d.Qsj),d.Y36(d.SBq))},pe.\u0275dir=d.lG2({type:pe}),pe})(),C=(()=>{class pe extends A{}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,features:[d.qOj]}),pe})();const U=new d.OlP("NgValueAccessor"),P={provide:U,useExisting:(0,d.Gpc)(()=>G),multi:!0},z=new d.OlP("CompositionEventMode");let G=(()=>{class pe extends A{constructor(qt,rt,ki){super(qt,rt),this._compositionMode=ki,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function I(){const pe=(0,p.q)()?(0,p.q)().getUserAgent():"";return/android (\d+)/.test(pe.toLowerCase())}())}writeValue(qt){this.setProperty("value",qt??"")}_handleInput(qt){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(qt)}_compositionStart(){this._composing=!0}_compositionEnd(qt){this._composing=!1,this._compositionMode&&this.onChange(qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(d.Qsj),d.Y36(d.SBq),d.Y36(z,8))},pe.\u0275dir=d.lG2({type:pe,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(qt,rt){1&qt&&d.NdJ("input",function(jo){return rt._handleInput(jo.target.value)})("blur",function(){return rt.onTouched()})("compositionstart",function(){return rt._compositionStart()})("compositionend",function(jo){return rt._compositionEnd(jo.target.value)})},features:[d._Bn([P]),d.qOj]}),pe})();function at(pe){return null==pe||("string"==typeof pe||Array.isArray(pe))&&0===pe.length}function lt(pe){return null!=pe&&"number"==typeof pe.length}const bt=new d.OlP("NgValidators"),Pt=new d.OlP("NgAsyncValidators"),Dt=/^(?=.{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 zt{static min(ee){return Vt(ee)}static max(ee){return nt(ee)}static required(ee){return Tt(ee)}static requiredTrue(ee){return At(ee)}static email(ee){return function ft(pe){return at(pe.value)||Dt.test(pe.value)?null:{email:!0}}(ee)}static minLength(ee){return function Et(pe){return ee=>at(ee.value)||!lt(ee.value)?null:ee.value.length{if(at(rt.value))return null;const ki=rt.value;return ee.test(ki)?null:{pattern:{requiredPattern:qt,actualValue:ki}}}}(ee)}static nullValidator(ee){return null}static compose(ee){return Xt(ee)}static composeAsync(ee){return ae(ee)}}function Vt(pe){return ee=>{if(at(ee.value)||at(pe))return null;const qt=parseFloat(ee.value);return!isNaN(qt)&&qt{if(at(ee.value)||at(pe))return null;const qt=parseFloat(ee.value);return!isNaN(qt)&&qt>pe?{max:{max:pe,actual:ee.value}}:null}}function Tt(pe){return at(pe.value)?{required:!0}:null}function At(pe){return!0===pe.value?null:{required:!0}}function Bt(pe){return ee=>lt(ee.value)&&ee.value.length>pe?{maxlength:{requiredLength:pe,actualLength:ee.value.length}}:null}function se(pe){return null}function Jt(pe){return null!=pe}function ve(pe){return(0,d.QGY)(pe)?(0,v.D)(pe):pe}function xe(pe){let ee={};return pe.forEach(qt=>{ee=null!=qt?{...ee,...qt}:ee}),0===Object.keys(ee).length?null:ee}function Oe(pe,ee){return ee.map(qt=>qt(pe))}function $e(pe){return pe.map(ee=>function qe(pe){return!pe.validate}(ee)?ee:qt=>ee.validate(qt))}function Xt(pe){if(!pe)return null;const ee=pe.filter(Jt);return 0==ee.length?null:function(qt){return xe(Oe(qt,ee))}}function we(pe){return null!=pe?Xt($e(pe)):null}function ae(pe){if(!pe)return null;const ee=pe.filter(Jt);return 0==ee.length?null:function(qt){const rt=Oe(qt,ee).map(ve);return(0,T.D)(rt).pipe((0,t.U)(xe))}}function Kt(pe){return null!=pe?ae($e(pe)):null}function de(pe,ee){return null===pe?[ee]:Array.isArray(pe)?[...pe,ee]:[pe,ee]}function Wt(pe){return pe._rawValidators}function re(pe){return pe._rawAsyncValidators}function Pe(pe){return pe?Array.isArray(pe)?pe:[pe]:[]}function on(pe,ee){return Array.isArray(pe)?pe.includes(ee):pe===ee}function _n(pe,ee){const qt=Pe(ee);return Pe(pe).forEach(ki=>{on(qt,ki)||qt.push(ki)}),qt}function ye(pe,ee){return Pe(ee).filter(qt=>!on(pe,qt))}class gn{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(ee){this._rawValidators=ee||[],this._composedValidatorFn=we(this._rawValidators)}_setAsyncValidators(ee){this._rawAsyncValidators=ee||[],this._composedAsyncValidatorFn=Kt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ee){this._onDestroyCallbacks.push(ee)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ee=>ee()),this._onDestroyCallbacks=[]}reset(ee){this.control&&this.control.reset(ee)}hasError(ee,qt){return!!this.control&&this.control.hasError(ee,qt)}getError(ee,qt){return this.control?this.control.getError(ee,qt):null}}class Ue extends gn{get formDirective(){return null}get path(){return null}}class un extends gn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Mn{constructor(ee){this._cd=ee}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 ri=(()=>{class pe extends Mn{constructor(qt){super(qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(un,2))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(qt,rt){2&qt&&d.ekj("ng-untouched",rt.isUntouched)("ng-touched",rt.isTouched)("ng-pristine",rt.isPristine)("ng-dirty",rt.isDirty)("ng-valid",rt.isValid)("ng-invalid",rt.isInvalid)("ng-pending",rt.isPending)},features:[d.qOj]}),pe})(),Ke=(()=>{class pe extends Mn{constructor(qt){super(qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(Ue,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(qt,rt){2&qt&&d.ekj("ng-untouched",rt.isUntouched)("ng-touched",rt.isTouched)("ng-pristine",rt.isPristine)("ng-dirty",rt.isDirty)("ng-valid",rt.isValid)("ng-invalid",rt.isInvalid)("ng-pending",rt.isPending)("ng-submitted",rt.isSubmitted)},features:[d.qOj]}),pe})();const ze="VALID",We="INVALID",en="PENDING",le="DISABLED";function Je(pe){return(Te(pe)?pe.validators:pe)||null}function Lt(pe){return Array.isArray(pe)?we(pe):pe||null}function wt(pe,ee){return(Te(ee)?ee.asyncValidators:pe)||null}function Ot(pe){return Array.isArray(pe)?Kt(pe):pe||null}function Te(pe){return null!=pe&&!Array.isArray(pe)&&"object"==typeof pe}function Xe(pe,ee,qt){const rt=pe.controls;if(!(ee?Object.keys(rt):rt).length)throw new d.vHH(1e3,"");if(!rt[qt])throw new d.vHH(1001,"")}function Fe(pe,ee,qt){pe._forEachChild((rt,ki)=>{if(void 0===qt[ki])throw new d.vHH(1002,"")})}class Tn{constructor(ee,qt){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=ee,this._rawAsyncValidators=qt,this._composedValidatorFn=Lt(this._rawValidators),this._composedAsyncValidatorFn=Ot(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(ee){this._rawValidators=this._composedValidatorFn=ee}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ee){this._rawAsyncValidators=this._composedAsyncValidatorFn=ee}get parent(){return this._parent}get valid(){return this.status===ze}get invalid(){return this.status===We}get pending(){return this.status==en}get disabled(){return this.status===le}get enabled(){return this.status!==le}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ee){this._rawValidators=ee,this._composedValidatorFn=Lt(ee)}setAsyncValidators(ee){this._rawAsyncValidators=ee,this._composedAsyncValidatorFn=Ot(ee)}addValidators(ee){this.setValidators(_n(ee,this._rawValidators))}addAsyncValidators(ee){this.setAsyncValidators(_n(ee,this._rawAsyncValidators))}removeValidators(ee){this.setValidators(ye(ee,this._rawValidators))}removeAsyncValidators(ee){this.setAsyncValidators(ye(ee,this._rawAsyncValidators))}hasValidator(ee){return on(this._rawValidators,ee)}hasAsyncValidator(ee){return on(this._rawAsyncValidators,ee)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ee={}){this.touched=!0,this._parent&&!ee.onlySelf&&this._parent.markAsTouched(ee)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ee=>ee.markAllAsTouched())}markAsUntouched(ee={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(qt=>{qt.markAsUntouched({onlySelf:!0})}),this._parent&&!ee.onlySelf&&this._parent._updateTouched(ee)}markAsDirty(ee={}){this.pristine=!1,this._parent&&!ee.onlySelf&&this._parent.markAsDirty(ee)}markAsPristine(ee={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(qt=>{qt.markAsPristine({onlySelf:!0})}),this._parent&&!ee.onlySelf&&this._parent._updatePristine(ee)}markAsPending(ee={}){this.status=en,!1!==ee.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ee.onlySelf&&this._parent.markAsPending(ee)}disable(ee={}){const qt=this._parentMarkedDirty(ee.onlySelf);this.status=le,this.errors=null,this._forEachChild(rt=>{rt.disable({...ee,onlySelf:!0})}),this._updateValue(),!1!==ee.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ee,skipPristineCheck:qt}),this._onDisabledChange.forEach(rt=>rt(!0))}enable(ee={}){const qt=this._parentMarkedDirty(ee.onlySelf);this.status=ze,this._forEachChild(rt=>{rt.enable({...ee,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ee.emitEvent}),this._updateAncestors({...ee,skipPristineCheck:qt}),this._onDisabledChange.forEach(rt=>rt(!1))}_updateAncestors(ee){this._parent&&!ee.onlySelf&&(this._parent.updateValueAndValidity(ee),ee.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ee){this._parent=ee}getRawValue(){return this.value}updateValueAndValidity(ee={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ze||this.status===en)&&this._runAsyncValidator(ee.emitEvent)),!1!==ee.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ee.onlySelf&&this._parent.updateValueAndValidity(ee)}_updateTreeValidity(ee={emitEvent:!0}){this._forEachChild(qt=>qt._updateTreeValidity(ee)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ee.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?le:ze}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ee){if(this.asyncValidator){this.status=en,this._hasOwnPendingAsyncValidator=!0;const qt=ve(this.asyncValidator(this));this._asyncValidationSubscription=qt.subscribe(rt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(rt,{emitEvent:ee})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ee,qt={}){this.errors=ee,this._updateControlsErrors(!1!==qt.emitEvent)}get(ee){let qt=ee;return null==qt||(Array.isArray(qt)||(qt=qt.split(".")),0===qt.length)?null:qt.reduce((rt,ki)=>rt&&rt._find(ki),this)}getError(ee,qt){const rt=qt?this.get(qt):this;return rt&&rt.errors?rt.errors[ee]:null}hasError(ee,qt){return!!this.getError(ee,qt)}get root(){let ee=this;for(;ee._parent;)ee=ee._parent;return ee}_updateControlsErrors(ee){this.status=this._calculateStatus(),ee&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ee)}_initObservables(){this.valueChanges=new d.vpe,this.statusChanges=new d.vpe}_calculateStatus(){return this._allControlsDisabled()?le:this.errors?We:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(en)?en:this._anyControlsHaveStatus(We)?We:ze}_anyControlsHaveStatus(ee){return this._anyControls(qt=>qt.status===ee)}_anyControlsDirty(){return this._anyControls(ee=>ee.dirty)}_anyControlsTouched(){return this._anyControls(ee=>ee.touched)}_updatePristine(ee={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ee.onlySelf&&this._parent._updatePristine(ee)}_updateTouched(ee={}){this.touched=this._anyControlsTouched(),this._parent&&!ee.onlySelf&&this._parent._updateTouched(ee)}_registerOnCollectionChange(ee){this._onCollectionChange=ee}_setUpdateStrategy(ee){Te(ee)&&null!=ee.updateOn&&(this._updateOn=ee.updateOn)}_parentMarkedDirty(ee){return!ee&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ee){return null}}class he extends Tn{constructor(ee,qt,rt){super(Je(qt),wt(rt,qt)),this.controls=ee,this._initObservables(),this._setUpdateStrategy(qt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(ee,qt){return this.controls[ee]?this.controls[ee]:(this.controls[ee]=qt,qt.setParent(this),qt._registerOnCollectionChange(this._onCollectionChange),qt)}addControl(ee,qt,rt={}){this.registerControl(ee,qt),this.updateValueAndValidity({emitEvent:rt.emitEvent}),this._onCollectionChange()}removeControl(ee,qt={}){this.controls[ee]&&this.controls[ee]._registerOnCollectionChange(()=>{}),delete this.controls[ee],this.updateValueAndValidity({emitEvent:qt.emitEvent}),this._onCollectionChange()}setControl(ee,qt,rt={}){this.controls[ee]&&this.controls[ee]._registerOnCollectionChange(()=>{}),delete this.controls[ee],qt&&this.registerControl(ee,qt),this.updateValueAndValidity({emitEvent:rt.emitEvent}),this._onCollectionChange()}contains(ee){return this.controls.hasOwnProperty(ee)&&this.controls[ee].enabled}setValue(ee,qt={}){Fe(this,0,ee),Object.keys(ee).forEach(rt=>{Xe(this,!0,rt),this.controls[rt].setValue(ee[rt],{onlySelf:!0,emitEvent:qt.emitEvent})}),this.updateValueAndValidity(qt)}patchValue(ee,qt={}){null!=ee&&(Object.keys(ee).forEach(rt=>{const ki=this.controls[rt];ki&&ki.patchValue(ee[rt],{onlySelf:!0,emitEvent:qt.emitEvent})}),this.updateValueAndValidity(qt))}reset(ee={},qt={}){this._forEachChild((rt,ki)=>{rt.reset(ee[ki],{onlySelf:!0,emitEvent:qt.emitEvent})}),this._updatePristine(qt),this._updateTouched(qt),this.updateValueAndValidity(qt)}getRawValue(){return this._reduceChildren({},(ee,qt,rt)=>(ee[rt]=qt.getRawValue(),ee))}_syncPendingControls(){let ee=this._reduceChildren(!1,(qt,rt)=>!!rt._syncPendingControls()||qt);return ee&&this.updateValueAndValidity({onlySelf:!0}),ee}_forEachChild(ee){Object.keys(this.controls).forEach(qt=>{const rt=this.controls[qt];rt&&ee(rt,qt)})}_setUpControls(){this._forEachChild(ee=>{ee.setParent(this),ee._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ee){for(const[qt,rt]of Object.entries(this.controls))if(this.contains(qt)&&ee(rt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(qt,rt,ki)=>((rt.enabled||this.disabled)&&(qt[ki]=rt.value),qt))}_reduceChildren(ee,qt){let rt=ee;return this._forEachChild((ki,jo)=>{rt=qt(rt,ki,jo)}),rt}_allControlsDisabled(){for(const ee of Object.keys(this.controls))if(this.controls[ee].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(ee){return this.controls.hasOwnProperty(ee)?this.controls[ee]:null}}const Re=he;class gi extends he{}function _o(pe,ee){return[...ee.path,pe]}function mn(pe,ee){Zi(pe,ee),ee.valueAccessor.writeValue(pe.value),pe.disabled&&ee.valueAccessor.setDisabledState?.(!0),function Fo(pe,ee){ee.valueAccessor.registerOnChange(qt=>{pe._pendingValue=qt,pe._pendingChange=!0,pe._pendingDirty=!0,"change"===pe.updateOn&&Ia(pe,ee)})}(pe,ee),function fr(pe,ee){const qt=(rt,ki)=>{ee.valueAccessor.writeValue(rt),ki&&ee.viewToModelUpdate(rt)};pe.registerOnChange(qt),ee._registerOnDestroy(()=>{pe._unregisterOnChange(qt)})}(pe,ee),function ca(pe,ee){ee.valueAccessor.registerOnTouched(()=>{pe._pendingTouched=!0,"blur"===pe.updateOn&&pe._pendingChange&&Ia(pe,ee),"submit"!==pe.updateOn&&pe.markAsTouched()})}(pe,ee),function ei(pe,ee){if(ee.valueAccessor.setDisabledState){const qt=rt=>{ee.valueAccessor.setDisabledState(rt)};pe.registerOnDisabledChange(qt),ee._registerOnDestroy(()=>{pe._unregisterOnDisabledChange(qt)})}}(pe,ee)}function An(pe,ee,qt=!0){const rt=()=>{};ee.valueAccessor&&(ee.valueAccessor.registerOnChange(rt),ee.valueAccessor.registerOnTouched(rt)),vo(pe,ee),pe&&(ee._invokeOnDestroyCallbacks(),pe._registerOnCollectionChange(()=>{}))}function sn(pe,ee){pe.forEach(qt=>{qt.registerOnValidatorChange&&qt.registerOnValidatorChange(ee)})}function Zi(pe,ee){const qt=Wt(pe);null!==ee.validator?pe.setValidators(de(qt,ee.validator)):"function"==typeof qt&&pe.setValidators([qt]);const rt=re(pe);null!==ee.asyncValidator?pe.setAsyncValidators(de(rt,ee.asyncValidator)):"function"==typeof rt&&pe.setAsyncValidators([rt]);const ki=()=>pe.updateValueAndValidity();sn(ee._rawValidators,ki),sn(ee._rawAsyncValidators,ki)}function vo(pe,ee){let qt=!1;if(null!==pe){if(null!==ee.validator){const ki=Wt(pe);if(Array.isArray(ki)&&ki.length>0){const jo=ki.filter(La=>La!==ee.validator);jo.length!==ki.length&&(qt=!0,pe.setValidators(jo))}}if(null!==ee.asyncValidator){const ki=re(pe);if(Array.isArray(ki)&&ki.length>0){const jo=ki.filter(La=>La!==ee.asyncValidator);jo.length!==ki.length&&(qt=!0,pe.setAsyncValidators(jo))}}}const rt=()=>{};return sn(ee._rawValidators,rt),sn(ee._rawAsyncValidators,rt),qt}function Ia(pe,ee){pe._pendingDirty&&pe.markAsDirty(),pe.setValue(pe._pendingValue,{emitModelToViewChange:!1}),ee.viewToModelUpdate(pe._pendingValue),pe._pendingChange=!1}function Ge(pe,ee){Zi(pe,ee)}function Rt(pe,ee){if(!pe.hasOwnProperty("model"))return!1;const qt=pe.model;return!!qt.isFirstChange()||!Object.is(ee,qt.currentValue)}function Ft(pe,ee){pe._syncPendingControls(),ee.forEach(qt=>{const rt=qt.control;"submit"===rt.updateOn&&rt._pendingChange&&(qt.viewToModelUpdate(rt._pendingValue),rt._pendingChange=!1)})}function Be(pe,ee){if(!ee)return null;let qt,rt,ki;return Array.isArray(ee),ee.forEach(jo=>{jo.constructor===G?qt=jo:function Q(pe){return Object.getPrototypeOf(pe.constructor)===C}(jo)?rt=jo:ki=jo}),ki||rt||qt||null}const Co={provide:Ue,useExisting:(0,d.Gpc)(()=>br)},gr=(()=>Promise.resolve())();let br=(()=>{class pe extends Ue{constructor(qt,rt){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new d.vpe,this.form=new he({},we(qt),Kt(rt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(qt){gr.then(()=>{const rt=this._findContainer(qt.path);qt.control=rt.registerControl(qt.name,qt.control),mn(qt.control,qt),qt.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(qt)})}getControl(qt){return this.form.get(qt.path)}removeControl(qt){gr.then(()=>{const rt=this._findContainer(qt.path);rt&&rt.removeControl(qt.name),this._directives.delete(qt)})}addFormGroup(qt){gr.then(()=>{const rt=this._findContainer(qt.path),ki=new he({});Ge(ki,qt),rt.registerControl(qt.name,ki),ki.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(qt){gr.then(()=>{const rt=this._findContainer(qt.path);rt&&rt.removeControl(qt.name)})}getFormGroup(qt){return this.form.get(qt.path)}updateModel(qt,rt){gr.then(()=>{this.form.get(qt.path).setValue(rt)})}setValue(qt){this.control.setValue(qt)}onSubmit(qt){return this.submitted=!0,Ft(this.form,this._directives),this.ngSubmit.emit(qt),"dialog"===qt?.target?.method}onReset(){this.resetForm()}resetForm(qt){this.form.reset(qt),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(qt){return qt.pop(),qt.length?this.form.get(qt):this.form}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(bt,10),d.Y36(Pt,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(qt,rt){1&qt&&d.NdJ("submit",function(jo){return rt.onSubmit(jo)})("reset",function(){return rt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[d._Bn([Co]),d.qOj]}),pe})();function ls(pe,ee){const qt=pe.indexOf(ee);qt>-1&&pe.splice(qt,1)}function ar(pe){return"object"==typeof pe&&null!==pe&&2===Object.keys(pe).length&&"value"in pe&&"disabled"in pe}const Er=class extends Tn{constructor(ee=null,qt,rt){super(Je(qt),wt(rt,qt)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ee),this._setUpdateStrategy(qt),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Te(qt)&&(qt.nonNullable||qt.initialValueIsDefault)&&(this.defaultValue=ar(ee)?ee.value:ee)}setValue(ee,qt={}){this.value=this._pendingValue=ee,this._onChange.length&&!1!==qt.emitModelToViewChange&&this._onChange.forEach(rt=>rt(this.value,!1!==qt.emitViewToModelChange)),this.updateValueAndValidity(qt)}patchValue(ee,qt={}){this.setValue(ee,qt)}reset(ee=this.defaultValue,qt={}){this._applyFormState(ee),this.markAsPristine(qt),this.markAsUntouched(qt),this.setValue(this.value,qt),this._pendingChange=!1}_updateValue(){}_anyControls(ee){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ee){this._onChange.push(ee)}_unregisterOnChange(ee){ls(this._onChange,ee)}registerOnDisabledChange(ee){this._onDisabledChange.push(ee)}_unregisterOnDisabledChange(ee){ls(this._onDisabledChange,ee)}_forEachChild(ee){}_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(ee){ar(ee)?(this.value=this._pendingValue=ee.value,ee.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ee}},bc=Er;let Br=(()=>{class pe extends Ue{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 pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,features:[d.qOj]}),pe})();const Lc={provide:un,useExisting:(0,d.Gpc)(()=>Qr)},xl=(()=>Promise.resolve())();let Qr=(()=>{class pe extends un{constructor(qt,rt,ki,jo,La){super(),this._changeDetectorRef=La,this.control=new Er,this._registered=!1,this.update=new d.vpe,this._parent=qt,this._setValidators(rt),this._setAsyncValidators(ki),this.valueAccessor=Be(0,jo)}ngOnChanges(qt){if(this._checkForErrors(),!this._registered||"name"in qt){if(this._registered&&(this._checkName(),this.formDirective)){const rt=qt.name.previousValue;this.formDirective.removeControl({name:rt,path:this._getPath(rt)})}this._setUpControl()}"isDisabled"in qt&&this._updateDisabled(qt),Rt(qt,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(qt){this.viewModel=qt,this.update.emit(qt)}_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(){mn(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(qt){xl.then(()=>{this.control.setValue(qt,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(qt){const rt=qt.isDisabled.currentValue,ki=0!==rt&&(0,d.D6c)(rt);xl.then(()=>{ki&&!this.control.disabled?this.control.disable():!ki&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(qt){return this._parent?_o(qt,this._parent):[qt]}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(Ue,9),d.Y36(bt,10),d.Y36(Pt,10),d.Y36(U,10),d.Y36(d.sBO,8))},pe.\u0275dir=d.lG2({type:pe,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]}),pe})(),Fs=(()=>{class pe{}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275dir=d.lG2({type:pe,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),pe})();const _1={provide:U,useExisting:(0,d.Gpc)(()=>hr),multi:!0};let hr=(()=>{class pe extends C{writeValue(qt){this.setProperty("value",qt??"")}registerOnChange(qt){this.onChange=rt=>{qt(""==rt?null:parseFloat(rt))}}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(qt,rt){1&qt&&d.NdJ("input",function(jo){return rt.onChange(jo.target.value)})("blur",function(){return rt.onTouched()})},features:[d._Bn([_1]),d.qOj]}),pe})(),vc=(()=>{class pe{}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({}),pe})();const Bc=new d.OlP("NgModelWithFormControlWarning"),Vc={provide:un,useExisting:(0,d.Gpc)(()=>js)};let js=(()=>{class pe extends un{constructor(qt,rt,ki,jo){super(),this._ngModelWarningConfig=jo,this.update=new d.vpe,this._ngModelWarningSent=!1,this._setValidators(qt),this._setAsyncValidators(rt),this.valueAccessor=Be(0,ki)}set isDisabled(qt){}ngOnChanges(qt){if(this._isControlChanged(qt)){const rt=qt.form.previousValue;rt&&An(rt,this,!1),mn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Rt(qt,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&An(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(qt){this.viewModel=qt,this.update.emit(qt)}_isControlChanged(qt){return qt.hasOwnProperty("form")}}return pe._ngModelWarningSentOnce=!1,pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(bt,10),d.Y36(Pt,10),d.Y36(U,10),d.Y36(Bc,8))},pe.\u0275dir=d.lG2({type:pe,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]}),pe})();const yl={provide:Ue,useExisting:(0,d.Gpc)(()=>md)};let md=(()=>{class pe extends Ue{constructor(qt,rt){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new d.vpe,this._setValidators(qt),this._setAsyncValidators(rt)}ngOnChanges(qt){this._checkFormPresent(),qt.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(qt){const rt=this.form.get(qt.path);return mn(rt,qt),rt.updateValueAndValidity({emitEvent:!1}),this.directives.push(qt),rt}getControl(qt){return this.form.get(qt.path)}removeControl(qt){An(qt.control||null,qt,!1),function Rn(pe,ee){const qt=pe.indexOf(ee);qt>-1&&pe.splice(qt,1)}(this.directives,qt)}addFormGroup(qt){this._setUpFormContainer(qt)}removeFormGroup(qt){this._cleanUpFormContainer(qt)}getFormGroup(qt){return this.form.get(qt.path)}addFormArray(qt){this._setUpFormContainer(qt)}removeFormArray(qt){this._cleanUpFormContainer(qt)}getFormArray(qt){return this.form.get(qt.path)}updateModel(qt,rt){this.form.get(qt.path).setValue(rt)}onSubmit(qt){return this.submitted=!0,Ft(this.form,this.directives),this.ngSubmit.emit(qt),"dialog"===qt?.target?.method}onReset(){this.resetForm()}resetForm(qt){this.form.reset(qt),this.submitted=!1}_updateDomValue(){this.directives.forEach(qt=>{const rt=qt.control,ki=this.form.get(qt.path);rt!==ki&&(An(rt||null,qt),(pe=>pe instanceof Er)(ki)&&(mn(ki,qt),qt.control=ki))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(qt){const rt=this.form.get(qt.path);Ge(rt,qt),rt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(qt){if(this.form){const rt=this.form.get(qt.path);rt&&function In(pe,ee){return vo(pe,ee)}(rt,qt)&&rt.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 pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(bt,10),d.Y36(Pt,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formGroup",""]],hostBindings:function(qt,rt){1&qt&&d.NdJ("submit",function(jo){return rt.onSubmit(jo)})("reset",function(){return rt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[d._Bn([yl]),d.qOj,d.TTD]}),pe})();const Rl={provide:Ue,useExisting:(0,d.Gpc)(()=>Js)};let Js=(()=>{class pe extends Br{constructor(qt,rt,ki){super(),this._parent=qt,this._setValidators(rt),this._setAsyncValidators(ki)}_checkParentType(){jc(this._parent)}}return pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(Ue,13),d.Y36(bt,10),d.Y36(Pt,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[d._Bn([Rl]),d.qOj]}),pe})();const Tl={provide:Ue,useExisting:(0,d.Gpc)(()=>Gs)};let Gs=(()=>{class pe extends Ue{constructor(qt,rt,ki){super(),this._parent=qt,this._setValidators(rt),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 pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(Ue,13),d.Y36(bt,10),d.Y36(Pt,10))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[d._Bn([Tl]),d.qOj]}),pe})();function jc(pe){return!(pe instanceof Js||pe instanceof md||pe instanceof Gs)}const ks={provide:un,useExisting:(0,d.Gpc)(()=>Hl)};let Hl=(()=>{class pe extends un{constructor(qt,rt,ki,jo,La){super(),this._ngModelWarningConfig=La,this._added=!1,this.update=new d.vpe,this._ngModelWarningSent=!1,this._parent=qt,this._setValidators(rt),this._setAsyncValidators(ki),this.valueAccessor=Be(0,jo)}set isDisabled(qt){}ngOnChanges(qt){this._added||this._setUpControl(),Rt(qt,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(qt){this.viewModel=qt,this.update.emit(qt)}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 pe._ngModelWarningSentOnce=!1,pe.\u0275fac=function(qt){return new(qt||pe)(d.Y36(Ue,13),d.Y36(bt,10),d.Y36(Pt,10),d.Y36(U,10),d.Y36(Bc,8))},pe.\u0275dir=d.lG2({type:pe,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[d._Bn([ks]),d.qOj,d.TTD]}),pe})();function Dr(pe){return"number"==typeof pe?pe:parseFloat(pe)}let Cc=(()=>{class pe{constructor(){this._validator=se}ngOnChanges(qt){if(this.inputName in qt){const rt=this.normalizeInput(qt[this.inputName].currentValue);this._enabled=this.enabled(rt),this._validator=this._enabled?this.createValidator(rt):se,this._onChange&&this._onChange()}}validate(qt){return this._validator(qt)}registerOnValidatorChange(qt){this._onChange=qt}enabled(qt){return null!=qt}}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275dir=d.lG2({type:pe,features:[d.TTD]}),pe})();const Wa={provide:bt,useExisting:(0,d.Gpc)(()=>pr),multi:!0};let pr=(()=>{class pe extends Cc{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=qt=>Dr(qt),this.createValidator=qt=>nt(qt)}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("max",rt._enabled?rt.max:null)},inputs:{max:"max"},features:[d._Bn([Wa]),d.qOj]}),pe})();const Gc={provide:bt,useExisting:(0,d.Gpc)(()=>xs),multi:!0};let xs=(()=>{class pe extends Cc{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=qt=>Dr(qt),this.createValidator=qt=>Vt(qt)}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("min",rt._enabled?rt.min:null)},inputs:{min:"min"},features:[d._Bn([Gc]),d.qOj]}),pe})();const Ac={provide:bt,useExisting:(0,d.Gpc)(()=>Bl),multi:!0},sr={provide:bt,useExisting:(0,d.Gpc)(()=>Ps),multi:!0};let Bl=(()=>{class pe extends Cc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=d.D6c,this.createValidator=qt=>Tt}enabled(qt){return qt}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("required",rt._enabled?"":null)},inputs:{required:"required"},features:[d._Bn([Ac]),d.qOj]}),pe})(),Ps=(()=>{class pe extends Bl{constructor(){super(...arguments),this.createValidator=qt=>At}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("required",rt._enabled?"":null)},features:[d._Bn([sr]),d.qOj]}),pe})();const Qs={provide:bt,useExisting:(0,d.Gpc)(()=>lc),multi:!0};let lc=(()=>{class pe extends Cc{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=qt=>function bu(pe){return"number"==typeof pe?pe:parseInt(pe,10)}(qt),this.createValidator=qt=>Bt(qt)}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275dir=d.lG2({type:pe,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(qt,rt){2&qt&&d.uIk("maxlength",rt._enabled?rt.maxlength:null)},inputs:{maxlength:"maxlength"},features:[d._Bn([Qs]),d.qOj]}),pe})(),Vr=(()=>{class pe{}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({imports:[vc]}),pe})(),Qc=(()=>{class pe{}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({imports:[Vr]}),pe})(),rl=(()=>{class pe{static withConfig(qt){return{ngModule:pe,providers:[{provide:Bc,useValue:qt.warnOnNgModelWithFormControl}]}}}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275mod=d.oAB({type:pe}),pe.\u0275inj=d.cJS({imports:[Vr]}),pe})();class yc extends Tn{constructor(ee,qt,rt){super(Je(qt),wt(rt,qt)),this.controls=ee,this._initObservables(),this._setUpdateStrategy(qt),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(ee){return this.controls[this._adjustIndex(ee)]}push(ee,qt={}){this.controls.push(ee),this._registerControl(ee),this.updateValueAndValidity({emitEvent:qt.emitEvent}),this._onCollectionChange()}insert(ee,qt,rt={}){this.controls.splice(ee,0,qt),this._registerControl(qt),this.updateValueAndValidity({emitEvent:rt.emitEvent})}removeAt(ee,qt={}){let rt=this._adjustIndex(ee);rt<0&&(rt=0),this.controls[rt]&&this.controls[rt]._registerOnCollectionChange(()=>{}),this.controls.splice(rt,1),this.updateValueAndValidity({emitEvent:qt.emitEvent})}setControl(ee,qt,rt={}){let ki=this._adjustIndex(ee);ki<0&&(ki=0),this.controls[ki]&&this.controls[ki]._registerOnCollectionChange(()=>{}),this.controls.splice(ki,1),qt&&(this.controls.splice(ki,0,qt),this._registerControl(qt)),this.updateValueAndValidity({emitEvent:rt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ee,qt={}){Fe(this,0,ee),ee.forEach((rt,ki)=>{Xe(this,!1,ki),this.at(ki).setValue(rt,{onlySelf:!0,emitEvent:qt.emitEvent})}),this.updateValueAndValidity(qt)}patchValue(ee,qt={}){null!=ee&&(ee.forEach((rt,ki)=>{this.at(ki)&&this.at(ki).patchValue(rt,{onlySelf:!0,emitEvent:qt.emitEvent})}),this.updateValueAndValidity(qt))}reset(ee=[],qt={}){this._forEachChild((rt,ki)=>{rt.reset(ee[ki],{onlySelf:!0,emitEvent:qt.emitEvent})}),this._updatePristine(qt),this._updateTouched(qt),this.updateValueAndValidity(qt)}getRawValue(){return this.controls.map(ee=>ee.getRawValue())}clear(ee={}){this.controls.length<1||(this._forEachChild(qt=>qt._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:ee.emitEvent}))}_adjustIndex(ee){return ee<0?ee+this.length:ee}_syncPendingControls(){let ee=this.controls.reduce((qt,rt)=>!!rt._syncPendingControls()||qt,!1);return ee&&this.updateValueAndValidity({onlySelf:!0}),ee}_forEachChild(ee){this.controls.forEach((qt,rt)=>{ee(qt,rt)})}_updateValue(){this.value=this.controls.filter(ee=>ee.enabled||this.disabled).map(ee=>ee.value)}_anyControls(ee){return this.controls.some(qt=>qt.enabled&&ee(qt))}_setUpControls(){this._forEachChild(ee=>this._registerControl(ee))}_allControlsDisabled(){for(const ee of this.controls)if(ee.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(ee){ee.setParent(this),ee._registerOnCollectionChange(this._onCollectionChange)}_find(ee){return this.at(ee)??null}}function Bi(pe){return!!pe&&(void 0!==pe.asyncValidators||void 0!==pe.validators||void 0!==pe.updateOn)}let Pa=(()=>{class pe{constructor(){this.useNonNullable=!1}get nonNullable(){const qt=new pe;return qt.useNonNullable=!0,qt}group(qt,rt=null){const ki=this._reduceControls(qt);let jo={};return Bi(rt)?jo=rt:null!==rt&&(jo.validators=rt.validator,jo.asyncValidators=rt.asyncValidator),new he(ki,jo)}record(qt,rt=null){const ki=this._reduceControls(qt);return new gi(ki,rt)}control(qt,rt,ki){let jo={};return this.useNonNullable?(Bi(rt)?jo=rt:(jo.validators=rt,jo.asyncValidators=ki),new Er(qt,{...jo,nonNullable:!0})):new Er(qt,rt,ki)}array(qt,rt,ki){const jo=qt.map(La=>this._createControl(La));return new yc(jo,rt,ki)}_reduceControls(qt){const rt={};return Object.keys(qt).forEach(ki=>{rt[ki]=this._createControl(qt[ki])}),rt}_createControl(qt){return qt instanceof Er||qt instanceof Tn?qt:Array.isArray(qt)?this.control(qt[0],qt.length>1?qt[1]:null,qt.length>2?qt[2]:null):this.control(qt)}}return pe.\u0275fac=function(qt){return new(qt||pe)},pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:rl}),pe})(),$s=(()=>{class pe extends Pa{group(qt,rt=null){return super.group(qt,rt)}control(qt,rt,ki){return super.control(qt,rt,ki)}array(qt,rt,ki){return super.array(qt,rt,ki)}}return pe.\u0275fac=function(){let ee;return function(rt){return(ee||(ee=d.n5z(pe)))(rt||pe)}}(),pe.\u0275prov=d.Yz7({token:pe,factory:pe.\u0275fac,providedIn:rl}),pe})()},47957:(ot,et,b)=>{"use strict";b.d(et,{Bb:()=>_n,XC:()=>$e,ZL:()=>on});var d=b(12687),p=b(21281),v=b(83353),T=b(94650),t=b(3238),A=b(42654),C=b(8929),U=b(88514),k=b(36787),D=b(21086),P=b(23753),I=b(36895),z=b(98184),G=b(67376),K=b(40445),at=b(29521),lt=b(84080),bt=b(24006),Pt=b(59549),Dt=b(1059),zt=b(87545),Vt=b(72986),nt=b(92198),Tt=b(24850),At=b(22868),ft=b(18583);const Et=["panel"];function Bt(ye,gn){if(1&ye&&(T.TgZ(0,"div",0,1),T.Hsn(2),T.qZA()),2&ye){const Ue=gn.id,un=T.oxw();T.Q6J("id",un.id)("ngClass",un._classList),T.uIk("aria-label",un.ariaLabel||null)("aria-labelledby",un._getPanelAriaLabelledby(Ue))}}const It=["*"];let se=0;class Jt{constructor(gn,Ue){this.source=gn,this.option=Ue}}const ve=(0,t.Kr)(class{}),xe=new T.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Oe(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let qe=(()=>{class ye extends ve{constructor(Ue,un,Mn,oi){super(),this._changeDetectorRef=Ue,this._elementRef=un,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-"+se++,this.inertGroups=oi?.SAFARI||!1,this._autoActiveFirstOption=!!Mn.autoActiveFirstOption,this._autoSelectActiveOption=!!Mn.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(Ue){this._autoActiveFirstOption=(0,p.Ig)(Ue)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(Ue){this._autoSelectActiveOption=(0,p.Ig)(Ue)}set classList(Ue){this._classList=Ue&&Ue.length?(0,p.du)(Ue).reduce((un,Mn)=>(un[Mn]=!0,un),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new d.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(Ue=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[Ue]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(Ue){this.panel&&(this.panel.nativeElement.scrollTop=Ue)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(Ue){const un=new Jt(this,Ue);this.optionSelected.emit(un)}_getPanelAriaLabelledby(Ue){return this.ariaLabel?null:this.ariaLabelledby?(Ue?Ue+" ":"")+this.ariaLabelledby:Ue}_setVisibilityClasses(Ue){Ue[this._visibleClass]=this.showPanel,Ue[this._hiddenClass]=!this.showPanel}}return ye.\u0275fac=function(Ue){return new(Ue||ye)(T.Y36(T.sBO),T.Y36(T.SBq),T.Y36(xe),T.Y36(v.t4))},ye.\u0275dir=T.lG2({type:ye,viewQuery:function(Ue,un){if(1&Ue&&(T.Gf(T.Rgc,7),T.Gf(Et,5)),2&Ue){let Mn;T.iGM(Mn=T.CRH())&&(un.template=Mn.first),T.iGM(Mn=T.CRH())&&(un.panel=Mn.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]}),ye})(),$e=(()=>{class ye extends qe{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return ye.\u0275fac=function(){let gn;return function(un){return(gn||(gn=T.n5z(ye)))(un||ye)}}(),ye.\u0275cmp=T.Xpm({type:ye,selectors:[["mat-autocomplete"]],contentQueries:function(Ue,un,Mn){if(1&Ue&&(T.Suo(Mn,t.K7,5),T.Suo(Mn,t.ey,5)),2&Ue){let oi;T.iGM(oi=T.CRH())&&(un.optionGroups=oi),T.iGM(oi=T.CRH())&&(un.options=oi)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[T._Bn([{provide:t.HF,useExisting:ye}]),T.qOj],ngContentSelectors:It,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(Ue,un){1&Ue&&(T.F$t(),T.YNc(0,Bt,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}),ye})();const ae=new T.OlP("mat-autocomplete-scroll-strategy"),de={provide:ae,deps:[z.aV],useFactory:function Kt(ye){return()=>ye.scrollStrategies.reposition()}},Wt={provide:bt.JU,useExisting:(0,T.Gpc)(()=>on),multi:!0};let Pe=(()=>{class ye{constructor(Ue,un,Mn,oi,bi,ri,Ke,ne,ct,it,kt){this._element=Ue,this._overlay=un,this._viewContainerRef=Mn,this._zone=oi,this._changeDetectorRef=bi,this._dir=Ke,this._formField=ne,this._document=ct,this._viewportRuler=it,this._defaults=kt,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=A.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new C.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,U.P)(()=>{const Gt=this.autocomplete?this.autocomplete.options:null;return Gt?Gt.changes.pipe((0,Dt.O)(Gt),(0,zt.w)(()=>(0,k.T)(...Gt.map(oe=>oe.onSelectionChange)))):this._zone.onStable.pipe((0,Vt.q)(1),(0,zt.w)(()=>this.optionSelections))}),this._scrollStrategy=ri}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(Ue){this._autocompleteDisabled=(0,p.Ig)(Ue)}ngAfterViewInit(){const Ue=this._getWindow();typeof Ue<"u"&&this._zone.runOutsideAngular(()=>Ue.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(Ue){Ue.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const Ue=this._getWindow();typeof Ue<"u"&&Ue.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,nt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,nt.h)(()=>this._overlayAttached)):(0,D.of)()).pipe((0,Tt.U)(Ue=>Ue instanceof t.rN?Ue: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,nt.h)(Ue=>{const un=(0,v.sA)(Ue),Mn=this._formField?this._formField._elementRef.nativeElement:null,oi=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&un!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Mn||!Mn.contains(un))&&(!oi||!oi.contains(un))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(un)}))}writeValue(Ue){Promise.resolve(null).then(()=>this._assignOptionValue(Ue))}registerOnChange(Ue){this._onChange=Ue}registerOnTouched(Ue){this._onTouched=Ue}setDisabledState(Ue){this._element.nativeElement.disabled=Ue}_handleKeydown(Ue){const un=Ue.keyCode,Mn=(0,at.Vb)(Ue);if(un===at.hY&&!Mn&&Ue.preventDefault(),this.activeOption&&un===at.K5&&this.panelOpen&&!Mn)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Ue.preventDefault();else if(this.autocomplete){const oi=this.autocomplete._keyManager.activeItem,bi=un===at.LH||un===at.JH;un===at.Mf||bi&&!Mn&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Ue):bi&&this._canOpen()&&this.openPanel(),(bi||this.autocomplete._keyManager.activeItem!==oi)&&(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(Ue){let un=Ue.target,Mn=un.value;"number"===un.type&&(Mn=""==Mn?null:parseFloat(Mn)),this._previousValue!==Mn&&(this._previousValue=Mn,this._pendingAutoselectedOption=null,this._onChange(Mn),this._canOpen()&&this._document.activeElement===Ue.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(Ue=!1){this._formField&&"auto"===this._formField.floatLabel&&(Ue?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const Ue=this._zone.onStable.pipe((0,Vt.q)(1)),un=this.autocomplete.options.changes.pipe((0,At.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,ft.g)(0));return(0,k.T)(Ue,un).pipe((0,zt.w)(()=>(this._zone.run(()=>{const Mn=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Mn!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,Vt.q)(1)).subscribe(Mn=>this._setValueAndClose(Mn))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(Ue){const un=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(Ue):Ue;this._updateNativeInputValue(un??"")}_updateNativeInputValue(Ue){this._formField?this._formField._control.value=Ue:this._element.nativeElement.value=Ue,this._previousValue=Ue}_setValueAndClose(Ue){const un=Ue?Ue.source:this._pendingAutoselectedOption;un&&(this._clearPreviousSelectedOption(un),this._assignOptionValue(un.value),this._onChange(un.value),this.autocomplete._emitSelectEvent(un),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(Ue){this.autocomplete.options.forEach(un=>{un!==Ue&&un.selected&&un.deselect()})}_attachOverlay(){let Ue=this._overlayRef;Ue?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ue.updateSize({width:this._getPanelWidth()})):(this._portal=new lt.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Ue=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ue,this._handleOverlayEvents(Ue),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ue&&Ue.updateSize({width:this._getPanelWidth()})})),Ue&&!Ue.hasAttached()&&(Ue.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const un=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&un!==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 Ue=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(Ue),this._positionStrategy=Ue,Ue}_setStrategyPositions(Ue){const un=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Mn=this._aboveClass,oi=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Mn},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Mn}];let bi;bi="above"===this.position?oi:"below"===this.position?un:[...un,...oi],Ue.withPositions(bi)}_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 Ue=this.autocomplete;Ue.autoActiveFirstOption?Ue._keyManager.setFirstItemActive():Ue._keyManager.setActiveItem(-1)}_canOpen(){const Ue=this._element.nativeElement;return!Ue.readOnly&&!Ue.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(Ue){const un=this.autocomplete,Mn=(0,t.CB)(Ue,un.options,un.optionGroups);if(0===Ue&&1===Mn)un._setScrollTop(0);else if(un.panel){const oi=un.options.toArray()[Ue];if(oi){const bi=oi._getHostElement(),ri=(0,t.jH)(bi.offsetTop,bi.offsetHeight,un._getScrollTop(),un.panel.nativeElement.offsetHeight);un._setScrollTop(ri)}}}_handleOverlayEvents(Ue){Ue.keydownEvents().subscribe(un=>{(un.keyCode===at.hY&&!(0,at.Vb)(un)||un.keyCode===at.LH&&(0,at.Vb)(un,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),un.stopPropagation(),un.preventDefault())}),Ue.outsidePointerEvents().subscribe()}}return ye.\u0275fac=function(Ue){return new(Ue||ye)(T.Y36(T.SBq),T.Y36(z.aV),T.Y36(T.s_b),T.Y36(T.R0b),T.Y36(T.sBO),T.Y36(ae),T.Y36(K.Is,8),T.Y36(Pt.G_,9),T.Y36(I.K0,8),T.Y36(G.rL),T.Y36(xe,8))},ye.\u0275dir=T.lG2({type:ye,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[T.TTD]}),ye})(),on=(()=>{class ye extends Pe{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return ye.\u0275fac=function(){let gn;return function(un){return(gn||(gn=T.n5z(ye)))(un||ye)}}(),ye.\u0275dir=T.lG2({type:ye,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(Ue,un){1&Ue&&T.NdJ("focusin",function(){return un._handleFocus()})("blur",function(){return un._onTouched()})("input",function(oi){return un._handleInput(oi)})("keydown",function(oi){return un._handleKeydown(oi)})("click",function(){return un._handleClick()}),2&Ue&&T.uIk("autocomplete",un.autocompleteAttribute)("role",un.autocompleteDisabled?null:"combobox")("aria-autocomplete",un.autocompleteDisabled?null:"list")("aria-activedescendant",un.panelOpen&&un.activeOption?un.activeOption.id:null)("aria-expanded",un.autocompleteDisabled?null:un.panelOpen.toString())("aria-owns",un.autocompleteDisabled||!un.panelOpen||null==un.autocomplete?null:un.autocomplete.id)("aria-haspopup",un.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[T._Bn([Wt]),T.qOj]}),ye})(),_n=(()=>{class ye{}return ye.\u0275fac=function(Ue){return new(Ue||ye)},ye.\u0275mod=T.oAB({type:ye}),ye.\u0275inj=T.cJS({providers:[de],imports:[z.U8,t.Ng,t.BQ,I.ez,G.ZD,t.Ng,t.BQ]}),ye})()},42673:(ot,et,b)=>{"use strict";b.d(et,{g:()=>k,k:()=>U});var d=b(94650),p=b(3238),v=b(12687),T=b(21281);let t=0;const A=(0,p.Id)(class{}),C="mat-badge-content";let U=(()=>{class D extends A{constructor(I,z,G,K,at){super(),this._ngZone=I,this._elementRef=z,this._ariaDescriber=G,this._renderer=K,this._animationMode=at,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(C),"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 > .${C}`);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:(ot,et,b)=>{"use strict";b.d(et,{A9:()=>G,Yi:()=>at,vV:()=>lt});var d=b(12687),p=b(21281),v=b(95017),T=b(94650),t=b(24006),A=b(3238);const C=["button"],U=["*"],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,Dt){this.source=Pt,this.value=Dt}}let G=(()=>{class bt{constructor(Dt,zt){this._changeDetector=Dt,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=zt&&zt.appearance?zt.appearance:"standard"}get name(){return this._name}set name(Dt){this._name=Dt,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(Dt){this._vertical=(0,p.Ig)(Dt)}get value(){const Dt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?Dt.map(zt=>zt.value):Dt[0]?Dt[0].value:void 0}set value(Dt){this._setSelectionByValue(Dt),this.valueChange.emit(this.value)}get selected(){const Dt=this._selectionModel?this._selectionModel.selected:[];return this.multiple?Dt:Dt[0]||null}get multiple(){return this._multiple}set multiple(Dt){this._multiple=(0,p.Ig)(Dt),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(Dt){this._disabled=(0,p.Ig)(Dt),this._markButtonsForCheck()}ngOnInit(){this._selectionModel=new v.Ov(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(Dt=>Dt.checked))}writeValue(Dt){this.value=Dt,this._changeDetector.markForCheck()}registerOnChange(Dt){this._controlValueAccessorChangeFn=Dt}registerOnTouched(Dt){this._onTouched=Dt}setDisabledState(Dt){this.disabled=Dt}_emitChangeEvent(Dt){const zt=new z(Dt,this.value);this._controlValueAccessorChangeFn(zt.value),this.change.emit(zt)}_syncButtonToggle(Dt,zt,Vt=!1,nt=!1){!this.multiple&&this.selected&&!Dt.checked&&(this.selected.checked=!1),this._selectionModel?zt?this._selectionModel.select(Dt):this._selectionModel.deselect(Dt):nt=!0,nt?Promise.resolve().then(()=>this._updateModelValue(Dt,Vt)):this._updateModelValue(Dt,Vt)}_isSelected(Dt){return this._selectionModel&&this._selectionModel.isSelected(Dt)}_isPrechecked(Dt){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(zt=>null!=Dt.value&&zt===Dt.value):Dt.value===this._rawValue)}_setSelectionByValue(Dt){this._rawValue=Dt,this._buttonToggles&&(this.multiple&&Dt?(Array.isArray(Dt),this._clearSelection(),Dt.forEach(zt=>this._selectValue(zt))):(this._clearSelection(),this._selectValue(Dt)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(Dt=>Dt.checked=!1)}_selectValue(Dt){const zt=this._buttonToggles.find(Vt=>null!=Vt.value&&Vt.value===Dt);zt&&(zt.checked=!0,this._selectionModel.select(zt))}_updateModelValue(Dt,zt){zt&&this._emitChangeEvent(Dt),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(Dt=>Dt._markForCheck())}}return bt.\u0275fac=function(Dt){return new(Dt||bt)(T.Y36(T.sBO),T.Y36(k,8))},bt.\u0275dir=T.lG2({type:bt,selectors:[["mat-button-toggle-group"]],contentQueries:function(Dt,zt,Vt){if(1&Dt&&T.Suo(Vt,at,5),2&Dt){let nt;T.iGM(nt=T.CRH())&&(zt._buttonToggles=nt)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(Dt,zt){2&Dt&&(T.uIk("aria-disabled",zt.disabled),T.ekj("mat-button-toggle-vertical",zt.vertical)("mat-button-toggle-group-appearance-standard","standard"===zt.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:bt}])]}),bt})();const K=(0,A.Kr)(class{});let at=(()=>{class bt extends K{constructor(Dt,zt,Vt,nt,Tt,At){super(),this._changeDetectorRef=zt,this._elementRef=Vt,this._focusMonitor=nt,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new T.vpe;const ft=Number(Tt);this.tabIndex=ft||0===ft?ft:null,this.buttonToggleGroup=Dt,this.appearance=At&&At.appearance?At.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(Dt){this._appearance=Dt}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(Dt){const zt=(0,p.Ig)(Dt);zt!==this._checked&&(this._checked=zt,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(Dt){this._disabled=(0,p.Ig)(Dt)}ngOnInit(){const Dt=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+I++,Dt&&(Dt._isPrechecked(this)?this.checked=!0:Dt._isSelected(this)!==this._checked&&Dt._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const Dt=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),Dt&&Dt._isSelected(this)&&Dt._syncButtonToggle(this,!1,!1,!0)}focus(Dt){this._buttonElement.nativeElement.focus(Dt)}_onButtonClick(){const Dt=!!this._isSingleSelector()||!this._checked;Dt!==this._checked&&(this._checked=Dt,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 bt.\u0275fac=function(Dt){return new(Dt||bt)(T.Y36(D,8),T.Y36(T.sBO),T.Y36(T.SBq),T.Y36(d.tE),T.$8M("tabindex"),T.Y36(k,8))},bt.\u0275cmp=T.Xpm({type:bt,selectors:[["mat-button-toggle"]],viewQuery:function(Dt,zt){if(1&Dt&&T.Gf(C,5),2&Dt){let Vt;T.iGM(Vt=T.CRH())&&(zt._buttonElement=Vt.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(Dt,zt){1&Dt&&T.NdJ("focus",function(){return zt.focus()}),2&Dt&&(T.uIk("aria-label",null)("aria-labelledby",null)("id",zt.id)("name",null),T.ekj("mat-button-toggle-standalone",!zt.buttonToggleGroup)("mat-button-toggle-checked",zt.checked)("mat-button-toggle-disabled",zt.disabled)("mat-button-toggle-appearance-standard","standard"===zt.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:U,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(Dt,zt){if(1&Dt&&(T.F$t(),T.TgZ(0,"button",0,1),T.NdJ("click",function(){return zt._onButtonClick()}),T.TgZ(2,"span",2),T.Hsn(3),T.qZA()(),T._UZ(4,"span",3)(5,"span",4)),2&Dt){const Vt=T.MAs(1);T.Q6J("id",zt.buttonId)("disabled",zt.disabled||null),T.uIk("tabindex",zt.disabled?-1:zt.tabIndex)("aria-pressed",zt.checked)("name",zt._getButtonName())("aria-label",zt.ariaLabel)("aria-labelledby",zt.ariaLabelledby),T.xp6(5),T.Q6J("matRippleTrigger",Vt)("matRippleDisabled",zt.disableRipple||zt.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}),bt})(),lt=(()=>{class bt{}return bt.\u0275fac=function(Dt){return new(Dt||bt)},bt.\u0275mod=T.oAB({type:bt}),bt.\u0275inj=T.cJS({imports:[A.BQ,A.si,A.BQ]}),bt})()},4859:(ot,et,b)=>{"use strict";b.d(et,{lW:()=>D,ot:()=>I});var d=b(94650),p=b(3238),v=b(12687);const T=["mat-button",""],t=["*"],U=["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(K,at,lt){super(K),this._focusMonitor=at,this._animationMode=lt,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const bt of U)this._hasHostAttributes(bt)&&this._getHostElement().classList.add(bt);K.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(K,at){K?this._focusMonitor.focusVia(this._getHostElement(),K,at):this._getHostElement().focus(at)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...K){return K.some(at=>this._getHostElement().hasAttribute(at))}}return z.\u0275fac=function(K){return new(K||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(K,at){if(1&K&&d.Gf(p.wG,5),2&K){let lt;d.iGM(lt=d.CRH())&&(at.ripple=lt.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(K,at){2&K&&(d.uIk("disabled",at.disabled||null),d.ekj("_mat-animation-noopable","NoopAnimations"===at._animationMode)("mat-button-disabled",at.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(K,at){1&K&&(d.F$t(),d.TgZ(0,"span",0),d.Hsn(1),d.qZA(),d._UZ(2,"span",1)(3,"span",2)),2&K&&(d.xp6(2),d.ekj("mat-button-ripple-round",at.isRoundButton||at.isIconButton),d.Q6J("matRippleDisabled",at._isRippleDisabled())("matRippleCentered",at.isIconButton)("matRippleTrigger",at._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(K){return new(K||z)},z.\u0275mod=d.oAB({type:z}),z.\u0275inj=d.cJS({imports:[p.si,p.BQ,p.BQ]}),z})()},73546:(ot,et,b)=>{"use strict";b.d(et,{$j:()=>P,C1:()=>Vt,G2:()=>G,QW:()=>nt,a8:()=>Dt,dk:()=>zt,dn:()=>k,hq:()=>I,n5:()=>D,nc:()=>at});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]","*"],C=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],U=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","img","*"];let k=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),Tt})(),D=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),Tt})(),P=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),Tt})(),I=(()=>{class Tt{constructor(){this.align="start"}}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(ft,Et){2&ft&&d.ekj("mat-card-actions-align-end","end"===Et.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),Tt})(),G=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),Tt})(),at=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275dir=d.lG2({type:Tt,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),Tt})(),Dt=(()=>{class Tt{constructor(ft){this._animationMode=ft}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(d.Y36(d.QbO,8))},Tt.\u0275cmp=d.Xpm({type:Tt,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(ft,Et){2&ft&&d.ekj("_mat-animation-noopable","NoopAnimations"===Et._animationMode)},exportAs:["matCard"],ngContentSelectors:T,decls:2,vars:0,template:function(ft,Et){1&ft&&(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}),Tt})(),zt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275cmp=d.Xpm({type:Tt,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:A,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(ft,Et){1&ft&&(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}),Tt})(),Vt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275cmp=d.Xpm({type:Tt,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:U,decls:4,vars:0,template:function(ft,Et){1&ft&&(d.F$t(C),d.TgZ(0,"div"),d.Hsn(1),d.qZA(),d.Hsn(2,1),d.Hsn(3,2))},encapsulation:2,changeDetection:0}),Tt})(),nt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275mod=d.oAB({type:Tt}),Tt.\u0275inj=d.cJS({imports:[p.BQ,p.BQ]}),Tt})()},56709:(ot,et,b)=>{"use strict";b.d(et,{e_:()=>zt,oG:()=>Pt,p9:()=>nt});var d=b(12687),p=b(21281),v=b(94650),T=b(24006),t=b(3238),A=b(49643);const C=["input"],U=["label"],k=function(Tt){return{enterDuration:Tt}},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(),K={provide:T.JU,useExisting:(0,v.Gpc)(()=>Pt),multi:!0};class at{}const lt=(0,t.sb)((0,t.pj)((0,t.Kr)((0,t.Id)(class{constructor(Tt){this._elementRef=Tt}}))));let bt=(()=>{class Tt extends lt{constructor(ft,Et,Bt,It,se,Jt,ve){super(Et),this._changeDetectorRef=Bt,this._ngZone=It,this._animationMode=Jt,this._options=ve,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(se)||0,this.id=this._uniqueId=`${ft}${++z}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ft){this._required=(0,p.Ig)(ft)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(ft){const Et=(0,p.Ig)(ft);Et!=this.checked&&(this._checked=Et,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ft){const Et=(0,p.Ig)(ft);Et!==this.disabled&&(this._disabled=Et,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ft){const Et=ft!=this._indeterminate;this._indeterminate=(0,p.Ig)(ft),Et&&(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(ft){this.checked=!!ft}registerOnChange(ft){this._controlValueAccessorChangeFn=ft}registerOnTouched(ft){this._onTouched=ft}setDisabledState(ft){this.disabled=ft}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(ft){let Et=this._currentCheckState,Bt=this._getAnimationTargetElement();if(Et!==ft&&Bt&&(this._currentAnimationClass&&Bt.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(Et,ft),this._currentCheckState=ft,this._currentAnimationClass.length>0)){Bt.classList.add(this._currentAnimationClass);const It=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Bt.classList.remove(It)},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 ft=this._options?.clickAction;this.disabled||"noop"===ft?!this.disabled&&"noop"===ft&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==ft&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(ft){ft.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(ft,Et){if("NoopAnimations"===this._animationMode)return"";switch(ft){case 0:if(1===Et)return this._animationClasses.uncheckedToChecked;if(3==Et)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===Et?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===Et?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===Et?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(ft){const Et=this._inputElement;Et&&(Et.nativeElement.indeterminate=ft)}}return Tt.\u0275fac=function(ft){v.$Z()},Tt.\u0275dir=v.lG2({type:Tt,viewQuery:function(ft,Et){if(1&ft&&(v.Gf(C,5),v.Gf(U,5),v.Gf(t.wG,5)),2&ft){let Bt;v.iGM(Bt=v.CRH())&&(Et._inputElement=Bt.first),v.iGM(Bt=v.CRH())&&(Et._labelElement=Bt.first),v.iGM(Bt=v.CRH())&&(Et.ripple=Bt.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]}),Tt})(),Pt=(()=>{class Tt extends bt{constructor(ft,Et,Bt,It,se,Jt,ve){super("mat-checkbox-",ft,Et,It,se,Jt,ve),this._focusMonitor=Bt,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(ft){const Et=new at;return Et.source=this,Et.checked=ft,Et}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ft=>{ft||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(ft){ft.stopPropagation(),super._handleInputClick()}focus(ft,Et){ft?this._focusMonitor.focusVia(this._inputElement,ft,Et):this._inputElement.nativeElement.focus(Et)}}return Tt.\u0275fac=function(ft){return new(ft||Tt)(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))},Tt.\u0275cmp=v.Xpm({type:Tt,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(ft,Et){2&ft&&(v.Ikx("id",Et.id),v.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),v.ekj("mat-checkbox-indeterminate",Et.indeterminate)("mat-checkbox-checked",Et.checked)("mat-checkbox-disabled",Et.disabled)("mat-checkbox-label-before","before"==Et.labelPosition)("_mat-animation-noopable","NoopAnimations"===Et._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[v._Bn([K]),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(ft,Et){if(1&ft&&(v.F$t(),v.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),v.NdJ("change",function(It){return Et._onInteractionEvent(It)})("click",function(It){return Et._onInputClick(It)}),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 Et._onLabelTextChange()}),v.TgZ(14,"span",14),v._uU(15,"\xa0"),v.qZA(),v.Hsn(16),v.qZA()()),2&ft){const Bt=v.MAs(1),It=v.MAs(13);v.uIk("for",Et.inputId),v.xp6(2),v.ekj("mat-checkbox-inner-container-no-side-margin",!It.textContent||!It.textContent.trim()),v.xp6(1),v.Q6J("id",Et.inputId)("required",Et.required)("checked",Et.checked)("disabled",Et.disabled)("tabIndex",Et.tabIndex),v.uIk("value",Et.value)("name",Et.name)("aria-label",Et.ariaLabel||null)("aria-labelledby",Et.ariaLabelledby)("aria-checked",Et._getAriaChecked())("aria-describedby",Et.ariaDescribedby),v.xp6(2),v.Q6J("matRippleTrigger",Bt)("matRippleDisabled",Et._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",v.VKq(19,k,"NoopAnimations"===Et._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}),Tt})();const Dt={provide:T.Cf,useExisting:(0,v.Gpc)(()=>zt),multi:!0};let zt=(()=>{class Tt extends T.Zs{}return Tt.\u0275fac=function(){let At;return function(Et){return(At||(At=v.n5z(Tt)))(Et||Tt)}}(),Tt.\u0275dir=v.lG2({type:Tt,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[v._Bn([Dt]),v.qOj]}),Tt})(),Vt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275mod=v.oAB({type:Tt}),Tt.\u0275inj=v.cJS({}),Tt})(),nt=(()=>{class Tt{}return Tt.\u0275fac=function(ft){return new(ft||Tt)},Tt.\u0275mod=v.oAB({type:Tt}),Tt.\u0275inj=v.cJS({imports:[t.si,t.BQ,A.Q8,Vt,t.BQ,Vt]}),Tt})()},3238:(ot,et,b)=>{"use strict";b.d(et,{yN:()=>bt,mZ:()=>Pt,_A:()=>Oe,rD:()=>re,sG:()=>qe,Ad:()=>ve,K7:()=>Ln,HF:()=>oe,Y2:()=>ne,BQ:()=>Vt,X2:()=>Pe,uc:()=>ye,XK:()=>de,ey:()=>Yn,Ng:()=>fn,rN:()=>ho,nP:()=>kt,us:()=>Gt,wG:()=>ct,si:()=>it,IR:()=>ri,CB:()=>jn,jH:()=>Ye,pj:()=>Et,Kr:()=>Bt,Id:()=>ft,FD:()=>se,dB:()=>Jt,sb:()=>It,E0:()=>on});var d=b(94650),p=b(12687),v=b(40445),t=b(36895),A=b(83353),C=b(21281),U=b(56498),k=b(8929),D=b(1059),P=b(29521);function G(ze,We){if(1&ze&&d._UZ(0,"mat-pseudo-checkbox",4),2&ze){const en=d.oxw();d.Q6J("state",en.selected?"checked":"unchecked")("disabled",en.disabled)}}function K(ze,We){if(1&ze&&(d.TgZ(0,"span",5),d._uU(1),d.qZA()),2&ze){const en=d.oxw();d.xp6(1),d.hij("(",en.group.label,")")}}const at=["*"];let bt=(()=>{class ze{}return ze.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",ze.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",ze.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",ze.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",ze})(),Pt=(()=>{class ze{}return ze.COMPLEX="375ms",ze.ENTERING="225ms",ze.EXITING="195ms",ze})();const zt=new d.OlP("mat-sanity-checks",{providedIn:"root",factory:function Dt(){return!0}});let Vt=(()=>{class ze{constructor(en,le,Je){this._sanityChecks=le,this._document=Je,this._hasDoneGlobalChecks=!1,en._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(en){return!(0,A.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[en])}}return ze.\u0275fac=function(en){return new(en||ze)(d.LFG(p.qm),d.LFG(zt,8),d.LFG(t.K0))},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[v.vT,v.vT]}),ze})();function ft(ze){return class extends ze{constructor(...We){super(...We),this._disabled=!1}get disabled(){return this._disabled}set disabled(We){this._disabled=(0,C.Ig)(We)}}}function Et(ze,We){return class extends ze{constructor(...en){super(...en),this.defaultColor=We,this.color=We}get color(){return this._color}set color(en){const le=en||this.defaultColor;le!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),le&&this._elementRef.nativeElement.classList.add(`mat-${le}`),this._color=le)}}}function Bt(ze){return class extends ze{constructor(...We){super(...We),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(We){this._disableRipple=(0,C.Ig)(We)}}}function It(ze,We=0){return class extends ze{constructor(...en){super(...en),this._tabIndex=We,this.defaultTabIndex=We}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(en){this._tabIndex=null!=en?(0,C.su)(en):this.defaultTabIndex}}}function se(ze){return class extends ze{constructor(...We){super(...We),this.errorState=!1}updateErrorState(){const We=this.errorState,Lt=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Lt!==We&&(this.errorState=Lt,this.stateChanges.next())}}}function Jt(ze){return class extends ze{constructor(...We){super(...We),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new U.y(en=>{this._isInitialized?this._notifySubscriber(en):this._pendingSubscribers.push(en)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(We){We.next(),We.complete()}}}const ve=new d.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function xe(){return(0,d.f3M)(d.soG)}});class Oe{constructor(){this._localeChanges=new k.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(We){return this.isDateInstance(We)&&this.isValid(We)?We:null}deserialize(We){return null==We||this.isDateInstance(We)&&this.isValid(We)?We:this.invalid()}setLocale(We){this.locale=We,this._localeChanges.next()}compareDate(We,en){return this.getYear(We)-this.getYear(en)||this.getMonth(We)-this.getMonth(en)||this.getDate(We)-this.getDate(en)}sameDate(We,en){if(We&&en){let le=this.isValid(We),Je=this.isValid(en);return le&&Je?!this.compareDate(We,en):le==Je}return We==en}clampDate(We,en,le){return en&&this.compareDate(We,en)<0?en:le&&this.compareDate(We,le)>0?le:We}}const qe=new d.OlP("mat-date-formats"),$e=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Xt(ze,We){const en=Array(ze);for(let le=0;le{class ze extends Oe{constructor(en,le){super(),this.useUtcForDisplay=!1,super.setLocale(en)}getYear(en){return en.getFullYear()}getMonth(en){return en.getMonth()}getDate(en){return en.getDate()}getDayOfWeek(en){return en.getDay()}getMonthNames(en){const le=new Intl.DateTimeFormat(this.locale,{month:en,timeZone:"utc"});return Xt(12,Je=>this._format(le,new Date(2017,Je,1)))}getDateNames(){const en=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Xt(31,le=>this._format(en,new Date(2017,0,le+1)))}getDayOfWeekNames(en){const le=new Intl.DateTimeFormat(this.locale,{weekday:en,timeZone:"utc"});return Xt(7,Je=>this._format(le,new Date(2017,0,Je+1)))}getYearName(en){const le=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(le,en)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(en){return this.getDate(this._createDateWithOverflow(this.getYear(en),this.getMonth(en)+1,0))}clone(en){return new Date(en.getTime())}createDate(en,le,Je){let Lt=this._createDateWithOverflow(en,le,Je);return Lt.getMonth(),Lt}today(){return new Date}parse(en,le){return"number"==typeof en?new Date(en):en?new Date(Date.parse(en)):null}format(en,le){if(!this.isValid(en))throw Error("NativeDateAdapter: Cannot format invalid date.");const Je=new Intl.DateTimeFormat(this.locale,{...le,timeZone:"utc"});return this._format(Je,en)}addCalendarYears(en,le){return this.addCalendarMonths(en,12*le)}addCalendarMonths(en,le){let Je=this._createDateWithOverflow(this.getYear(en),this.getMonth(en)+le,this.getDate(en));return this.getMonth(Je)!=((this.getMonth(en)+le)%12+12)%12&&(Je=this._createDateWithOverflow(this.getYear(Je),this.getMonth(Je),0)),Je}addCalendarDays(en,le){return this._createDateWithOverflow(this.getYear(en),this.getMonth(en),this.getDate(en)+le)}toIso8601(en){return[en.getUTCFullYear(),this._2digit(en.getUTCMonth()+1),this._2digit(en.getUTCDate())].join("-")}deserialize(en){if("string"==typeof en){if(!en)return null;if($e.test(en)){let le=new Date(en);if(this.isValid(le))return le}}return super.deserialize(en)}isDateInstance(en){return en instanceof Date}isValid(en){return!isNaN(en.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(en,le,Je){const Lt=new Date;return Lt.setFullYear(en,le,Je),Lt.setHours(0,0,0,0),Lt}_2digit(en){return("00"+en).slice(-2)}_format(en,le){const Je=new Date;return Je.setUTCFullYear(le.getFullYear(),le.getMonth(),le.getDate()),Je.setUTCHours(le.getHours(),le.getMinutes(),le.getSeconds(),le.getMilliseconds()),en.format(Je)}}return ze.\u0275fac=function(en){return new(en||ze)(d.LFG(ve,8),d.LFG(A.t4))},ze.\u0275prov=d.Yz7({token:ze,factory:ze.\u0275fac}),ze})();const ae={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 Kt=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({providers:[{provide:Oe,useClass:we}]}),ze})(),de=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({providers:[{provide:qe,useValue:ae}],imports:[Kt]}),ze})(),re=(()=>{class ze{isErrorState(en,le){return!!(en&&en.invalid&&(en.touched||le&&le.submitted))}}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275prov=d.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"}),ze})(),Pe=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275dir=d.lG2({type:ze,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),ze})();function on(ze,We,en="mat"){ze.changes.pipe((0,D.O)(ze)).subscribe(({length:le})=>{_n(We,`${en}-2-line`,!1),_n(We,`${en}-3-line`,!1),_n(We,`${en}-multi-line`,!1),2===le||3===le?_n(We,`${en}-${le}-line`,!0):le>3&&_n(We,`${en}-multi-line`,!0)})}function _n(ze,We,en){ze.nativeElement.classList.toggle(We,en)}let ye=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[Vt,Vt]}),ze})();class gn{constructor(We,en,le,Je=!1){this._renderer=We,this.element=en,this.config=le,this._animationForciblyDisabledThroughCss=Je,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ue={enterDuration:225,exitDuration:150},Mn=(0,A.i$)({passive:!0}),oi=["mousedown","touchstart"],bi=["mouseup","mouseleave","touchend","touchcancel"];class ri{constructor(We,en,le,Je){this._target=We,this._ngZone=en,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Je.isBrowser&&(this._containerElement=(0,C.fI)(le))}fadeInRipple(We,en,le={}){const Je=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Lt={...Ue,...le.animation};le.centered&&(We=Je.left+Je.width/2,en=Je.top+Je.height/2);const wt=le.radius||function Ke(ze,We,en){const le=Math.max(Math.abs(ze-en.left),Math.abs(ze-en.right)),Je=Math.max(Math.abs(We-en.top),Math.abs(We-en.bottom));return Math.sqrt(le*le+Je*Je)}(We,en,Je),Ot=We-Je.left,Te=en-Je.top,Xe=Lt.enterDuration,Fe=document.createElement("div");Fe.classList.add("mat-ripple-element"),Fe.style.left=Ot-wt+"px",Fe.style.top=Te-wt+"px",Fe.style.height=2*wt+"px",Fe.style.width=2*wt+"px",null!=le.color&&(Fe.style.backgroundColor=le.color),Fe.style.transitionDuration=`${Xe}ms`,this._containerElement.appendChild(Fe);const Tn=window.getComputedStyle(Fe),Re=Tn.transitionDuration,En="none"===Tn.transitionProperty||"0s"===Re||"0s, 0s"===Re,gi=new gn(this,Fe,le,En);Fe.style.transform="scale3d(1, 1, 1)",gi.state=0,le.persistent||(this._mostRecentTransientRipple=gi);let go=null;return!En&&(Xe||Lt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const _o=()=>this._finishRippleTransition(gi),mn=()=>this._destroyRipple(gi);Fe.addEventListener("transitionend",_o),Fe.addEventListener("transitioncancel",mn),go={onTransitionEnd:_o,onTransitionCancel:mn}}),this._activeRipples.set(gi,go),(En||!Xe)&&this._finishRippleTransition(gi),gi}fadeOutRipple(We){if(2===We.state||3===We.state)return;const en=We.element,le={...Ue,...We.config.animation};en.style.transitionDuration=`${le.exitDuration}ms`,en.style.opacity="0",We.state=2,(We._animationForciblyDisabledThroughCss||!le.exitDuration)&&this._finishRippleTransition(We)}fadeOutAll(){this._getActiveRipples().forEach(We=>We.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(We=>{We.config.persistent||We.fadeOut()})}setupTriggerEvents(We){const en=(0,C.fI)(We);!en||en===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=en,this._registerEvents(oi))}handleEvent(We){"mousedown"===We.type?this._onMousedown(We):"touchstart"===We.type?this._onTouchStart(We):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(bi),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(We){0===We.state?this._startFadeOutTransition(We):2===We.state&&this._destroyRipple(We)}_startFadeOutTransition(We){const en=We===this._mostRecentTransientRipple,{persistent:le}=We.config;We.state=1,!le&&(!en||!this._isPointerDown)&&We.fadeOut()}_destroyRipple(We){const en=this._activeRipples.get(We)??null;this._activeRipples.delete(We),this._activeRipples.size||(this._containerRect=null),We===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),We.state=3,null!==en&&(We.element.removeEventListener("transitionend",en.onTransitionEnd),We.element.removeEventListener("transitioncancel",en.onTransitionCancel)),We.element.remove()}_onMousedown(We){const en=(0,p.X6)(We),le=this._lastTouchStartEvent&&Date.now(){!We.config.persistent&&(1===We.state||We.config.terminateOnPointerUp&&0===We.state)&&We.fadeOut()}))}_registerEvents(We){this._ngZone.runOutsideAngular(()=>{We.forEach(en=>{this._triggerElement.addEventListener(en,this,Mn)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(oi.forEach(We=>{this._triggerElement.removeEventListener(We,this,Mn)}),this._pointerUpEventsRegistered&&bi.forEach(We=>{this._triggerElement.removeEventListener(We,this,Mn)}))}}const ne=new d.OlP("mat-ripple-global-options");let ct=(()=>{class ze{constructor(en,le,Je,Lt,wt){this._elementRef=en,this._animationMode=wt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Lt||{},this._rippleRenderer=new ri(this,le,en,Je)}get disabled(){return this._disabled}set disabled(en){en&&this.fadeOutAllNonPersistent(),this._disabled=en,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(en){this._trigger=en,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(en,le=0,Je){return"number"==typeof en?this._rippleRenderer.fadeInRipple(en,le,{...this.rippleConfig,...Je}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...en})}}return ze.\u0275fac=function(en){return new(en||ze)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(A.t4),d.Y36(ne,8),d.Y36(d.QbO,8))},ze.\u0275dir=d.lG2({type:ze,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(en,le){2&en&&d.ekj("mat-ripple-unbounded",le.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"]}),ze})(),it=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[Vt,Vt]}),ze})(),kt=(()=>{class ze{constructor(en){this._animationMode=en,this.state="unchecked",this.disabled=!1}}return ze.\u0275fac=function(en){return new(en||ze)(d.Y36(d.QbO,8))},ze.\u0275cmp=d.Xpm({type:ze,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(en,le){2&en&&d.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===le.state)("mat-pseudo-checkbox-checked","checked"===le.state)("mat-pseudo-checkbox-disabled",le.disabled)("_mat-animation-noopable","NoopAnimations"===le._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(en,le){},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}),ze})(),Gt=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[Vt]}),ze})();const oe=new d.OlP("MAT_OPTION_PARENT_COMPONENT"),Ln=new d.OlP("MatOptgroup");let Oi=0;class ho{constructor(We,en=!1){this.source=We,this.isUserInput=en}}let fi=(()=>{class ze{constructor(en,le,Je,Lt){this._element=en,this._changeDetectorRef=le,this._parent=Je,this.group=Lt,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Oi++,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(en){this._disabled=(0,C.Ig)(en)}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(en,le){const Je=this._getHostElement();"function"==typeof Je.focus&&Je.focus(le)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(en){(en.keyCode===P.K5||en.keyCode===P.L_)&&!(0,P.Vb)(en)&&(this._selectViaInteraction(),en.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 en=this.viewValue;en!==this._mostRecentViewValue&&(this._mostRecentViewValue=en,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(en=!1){this.onSelectionChange.emit(new ho(this,en))}}return ze.\u0275fac=function(en){d.$Z()},ze.\u0275dir=d.lG2({type:ze,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),ze})(),Yn=(()=>{class ze extends fi{constructor(en,le,Je,Lt){super(en,le,Je,Lt)}}return ze.\u0275fac=function(en){return new(en||ze)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(oe,8),d.Y36(Ln,8))},ze.\u0275cmp=d.Xpm({type:ze,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(en,le){1&en&&d.NdJ("click",function(){return le._selectViaInteraction()})("keydown",function(Lt){return le._handleKeydown(Lt)}),2&en&&(d.Ikx("id",le.id),d.uIk("tabindex",le._getTabIndex())("aria-selected",le._getAriaSelected())("aria-disabled",le.disabled.toString()),d.ekj("mat-selected",le.selected)("mat-option-multiple",le.multiple)("mat-active",le.active)("mat-option-disabled",le.disabled))},exportAs:["matOption"],features:[d.qOj],ngContentSelectors:at,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(en,le){1&en&&(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,K,2,1,"span",2),d._UZ(4,"div",3)),2&en&&(d.Q6J("ngIf",le.multiple),d.xp6(3),d.Q6J("ngIf",le.group&&le.group._inert),d.xp6(1),d.Q6J("matRippleTrigger",le._getHostElement())("matRippleDisabled",le.disabled||le.disableRipple))},dependencies:[ct,t.O5,kt],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}),ze})();function jn(ze,We,en){if(en.length){let le=We.toArray(),Je=en.toArray(),Lt=0;for(let wt=0;wten+le?Math.max(0,ze-le+We):en}let fn=(()=>{class ze{}return ze.\u0275fac=function(en){return new(en||ze)},ze.\u0275mod=d.oAB({type:ze}),ze.\u0275inj=d.cJS({imports:[it,t.ez,Vt,Gt]}),ze})()},99602:(ot,et,b)=>{"use strict";b.d(et,{C0:()=>Mn,E2:()=>en,FA:()=>He,Lv:()=>wt,Mq:()=>Fe,S8:()=>Pe,Uu:()=>Je,hl:()=>go,nW:()=>mn});var d=b(12687),p=b(98184),v=b(84080),T=b(36895),t=b(94650),A=b(4859),C=b(67376),U=b(3238),k=b(8929),D=b(42654),P=b(36787),I=b(21086),z=b(29521),G=b(40445),K=b(72986),at=b(1059),lt=b(92198),bt=b(21281),Pt=b(83353),Dt=b(37340),zt=b(24006),Vt=b(59549),nt=b(284);const Tt=["mat-calendar-body",""];function At(ke,dn){if(1&ke&&(t.TgZ(0,"tr",2)(1,"td",3),t._uU(2),t.qZA()()),2&ke){const tt=t.oxw();t.xp6(1),t.Udp("padding-top",tt._cellPadding)("padding-bottom",tt._cellPadding),t.uIk("colspan",tt.numCols),t.xp6(1),t.hij(" ",tt.label," ")}}function ft(ke,dn){if(1&ke&&(t.TgZ(0,"td",3),t._uU(1),t.qZA()),2&ke){const tt=t.oxw(2);t.Udp("padding-top",tt._cellPadding)("padding-bottom",tt._cellPadding),t.uIk("colspan",tt._firstRowOffset),t.xp6(1),t.hij(" ",tt._firstRowOffset>=tt.labelMinRequiredCells?tt.label:""," ")}}function Et(ke,dn){if(1&ke){const tt=t.EpF();t.TgZ(0,"td",7)(1,"button",8),t.NdJ("click",function(Q){const Be=t.CHM(tt).$implicit,Rn=t.oxw(2);return t.KtG(Rn._cellClicked(Be,Q))})("focus",function(Q){const Be=t.CHM(tt).$implicit,Rn=t.oxw(2);return t.KtG(Rn._emitActiveDateChange(Be,Q))}),t.TgZ(2,"div",9),t._uU(3),t.qZA(),t._UZ(4,"div",10),t.qZA()()}if(2&ke){const tt=dn.$implicit,Rt=dn.index,Q=t.oxw().index,Ft=t.oxw();t.Udp("width",Ft._cellWidth)("padding-top",Ft._cellPadding)("padding-bottom",Ft._cellPadding),t.uIk("data-mat-row",Q)("data-mat-col",Rt),t.xp6(1),t.ekj("mat-calendar-body-disabled",!tt.enabled)("mat-calendar-body-active",Ft._isActiveCell(Q,Rt))("mat-calendar-body-range-start",Ft._isRangeStart(tt.compareValue))("mat-calendar-body-range-end",Ft._isRangeEnd(tt.compareValue))("mat-calendar-body-in-range",Ft._isInRange(tt.compareValue))("mat-calendar-body-comparison-bridge-start",Ft._isComparisonBridgeStart(tt.compareValue,Q,Rt))("mat-calendar-body-comparison-bridge-end",Ft._isComparisonBridgeEnd(tt.compareValue,Q,Rt))("mat-calendar-body-comparison-start",Ft._isComparisonStart(tt.compareValue))("mat-calendar-body-comparison-end",Ft._isComparisonEnd(tt.compareValue))("mat-calendar-body-in-comparison-range",Ft._isInComparisonRange(tt.compareValue))("mat-calendar-body-preview-start",Ft._isPreviewStart(tt.compareValue))("mat-calendar-body-preview-end",Ft._isPreviewEnd(tt.compareValue))("mat-calendar-body-in-preview",Ft._isInPreview(tt.compareValue)),t.Q6J("ngClass",tt.cssClasses)("tabindex",Ft._isActiveCell(Q,Rt)?0:-1),t.uIk("aria-label",tt.ariaLabel)("aria-disabled",!tt.enabled||null)("aria-pressed",Ft._isSelected(tt.compareValue))("aria-current",Ft.todayValue===tt.compareValue?"date":null),t.xp6(1),t.ekj("mat-calendar-body-selected",Ft._isSelected(tt.compareValue))("mat-calendar-body-comparison-identical",Ft._isComparisonIdentical(tt.compareValue))("mat-calendar-body-today",Ft.todayValue===tt.compareValue),t.xp6(1),t.hij(" ",tt.displayValue," ")}}function Bt(ke,dn){if(1&ke&&(t.TgZ(0,"tr",4),t.YNc(1,ft,2,6,"td",5),t.YNc(2,Et,5,47,"td",6),t.qZA()),2&ke){const tt=dn.$implicit,Rt=dn.index,Q=t.oxw();t.xp6(1),t.Q6J("ngIf",0===Rt&&Q._firstRowOffset),t.xp6(1),t.Q6J("ngForOf",tt)}}function It(ke,dn){if(1&ke&&(t.TgZ(0,"th",5)(1,"span",6),t._uU(2),t.qZA(),t.TgZ(3,"span",7),t._uU(4),t.qZA()()),2&ke){const tt=dn.$implicit;t.xp6(2),t.Oqu(tt.long),t.xp6(2),t.Oqu(tt.narrow)}}const se=["*"];function Jt(ke,dn){}function ve(ke,dn){if(1&ke){const tt=t.EpF();t.TgZ(0,"mat-month-view",5),t.NdJ("activeDateChange",function(Q){t.CHM(tt);const Ft=t.oxw();return t.KtG(Ft.activeDate=Q)})("_userSelection",function(Q){t.CHM(tt);const Ft=t.oxw();return t.KtG(Ft._dateSelected(Q))}),t.qZA()}if(2&ke){const tt=t.oxw();t.Q6J("activeDate",tt.activeDate)("selected",tt.selected)("dateFilter",tt.dateFilter)("maxDate",tt.maxDate)("minDate",tt.minDate)("dateClass",tt.dateClass)("comparisonStart",tt.comparisonStart)("comparisonEnd",tt.comparisonEnd)}}function xe(ke,dn){if(1&ke){const tt=t.EpF();t.TgZ(0,"mat-year-view",6),t.NdJ("activeDateChange",function(Q){t.CHM(tt);const Ft=t.oxw();return t.KtG(Ft.activeDate=Q)})("monthSelected",function(Q){t.CHM(tt);const Ft=t.oxw();return t.KtG(Ft._monthSelectedInYearView(Q))})("selectedChange",function(Q){t.CHM(tt);const Ft=t.oxw();return t.KtG(Ft._goToDateInView(Q,"month"))}),t.qZA()}if(2&ke){const tt=t.oxw();t.Q6J("activeDate",tt.activeDate)("selected",tt.selected)("dateFilter",tt.dateFilter)("maxDate",tt.maxDate)("minDate",tt.minDate)("dateClass",tt.dateClass)}}function Oe(ke,dn){if(1&ke){const tt=t.EpF();t.TgZ(0,"mat-multi-year-view",7),t.NdJ("activeDateChange",function(Q){t.CHM(tt);const Ft=t.oxw();return t.KtG(Ft.activeDate=Q)})("yearSelected",function(Q){t.CHM(tt);const Ft=t.oxw();return t.KtG(Ft._yearSelectedInMultiYearView(Q))})("selectedChange",function(Q){t.CHM(tt);const Ft=t.oxw();return t.KtG(Ft._goToDateInView(Q,"year"))}),t.qZA()}if(2&ke){const tt=t.oxw();t.Q6J("activeDate",tt.activeDate)("selected",tt.selected)("dateFilter",tt.dateFilter)("maxDate",tt.maxDate)("minDate",tt.minDate)("dateClass",tt.dateClass)}}function qe(ke,dn){}const $e=["button"];function Xt(ke,dn){1&ke&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"path",4),t.qZA())}const we=[[["","matDatepickerToggleIcon",""]]],ae=["[matDatepickerToggleIcon]"];let Pe=(()=>{class ke{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(tt,Rt){return`${tt} \u2013 ${Rt}`}formatYearRangeLabel(tt,Rt){return`${tt} to ${Rt}`}}return ke.\u0275fac=function(tt){return new(tt||ke)},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();class on{constructor(dn,tt,Rt,Q,Ft={},Be=dn,Rn){this.value=dn,this.displayValue=tt,this.ariaLabel=Rt,this.enabled=Q,this.cssClasses=Ft,this.compareValue=Be,this.rawValue=Rn}}let _n=(()=>{class ke{constructor(tt,Rt){this._elementRef=tt,this._ngZone=Rt,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 Ft=this._getCellFromElement(Q.target);Ft&&this._ngZone.run(()=>this.previewChange.emit({value:Ft.enabled?Ft: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}))},Rt.runOutsideAngular(()=>{const Q=tt.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(tt,Rt){tt.enabled&&this.selectedValueChange.emit({value:tt.value,event:Rt})}_emitActiveDateChange(tt,Rt){tt.enabled&&this.activeDateChange.emit({value:tt.value,event:Rt})}_isSelected(tt){return this.startValue===tt||this.endValue===tt}ngOnChanges(tt){const Rt=tt.numCols,{rows:Q,numCols:Ft}=this;(tt.rows||Rt)&&(this._firstRowOffset=Q&&Q.length&&Q[0].length?Ft-Q[0].length:0),(tt.cellAspectRatio||Rt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Ft+"%"),(Rt||!this._cellWidth)&&(this._cellWidth=100/Ft+"%")}ngOnDestroy(){const tt=this._elementRef.nativeElement;tt.removeEventListener("mouseenter",this._enterHandler,!0),tt.removeEventListener("focus",this._enterHandler,!0),tt.removeEventListener("mouseleave",this._leaveHandler,!0),tt.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(tt,Rt){let Q=tt*this.numCols+Rt;return tt&&(Q-=this._firstRowOffset),Q==this.activeCell}_focusActiveCell(tt=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,K.q)(1)).subscribe(()=>{setTimeout(()=>{const Rt=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Rt&&(tt||(this._skipNextFocus=!0),Rt.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(tt){return gn(tt,this.startValue,this.endValue)}_isRangeEnd(tt){return Ue(tt,this.startValue,this.endValue)}_isInRange(tt){return un(tt,this.startValue,this.endValue,this.isRange)}_isComparisonStart(tt){return gn(tt,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(tt,Rt,Q){if(!this._isComparisonStart(tt)||this._isRangeStart(tt)||!this._isInRange(tt))return!1;let Ft=this.rows[Rt][Q-1];if(!Ft){const Be=this.rows[Rt-1];Ft=Be&&Be[Be.length-1]}return Ft&&!this._isRangeEnd(Ft.compareValue)}_isComparisonBridgeEnd(tt,Rt,Q){if(!this._isComparisonEnd(tt)||this._isRangeEnd(tt)||!this._isInRange(tt))return!1;let Ft=this.rows[Rt][Q+1];if(!Ft){const Be=this.rows[Rt+1];Ft=Be&&Be[0]}return Ft&&!this._isRangeStart(Ft.compareValue)}_isComparisonEnd(tt){return Ue(tt,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(tt){return un(tt,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(tt){return this.comparisonStart===this.comparisonEnd&&tt===this.comparisonStart}_isPreviewStart(tt){return gn(tt,this.previewStart,this.previewEnd)}_isPreviewEnd(tt){return Ue(tt,this.previewStart,this.previewEnd)}_isInPreview(tt){return un(tt,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(tt){let Rt;if(ye(tt)?Rt=tt:ye(tt.parentNode)&&(Rt=tt.parentNode),Rt){const Q=Rt.getAttribute("data-mat-row"),Ft=Rt.getAttribute("data-mat-col");if(Q&&Ft)return this.rows[parseInt(Q)][parseInt(Ft)]}return null}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(t.SBq),t.Y36(t.R0b))},ke.\u0275cmp=t.Xpm({type:ke,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:Tt,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(tt,Rt){1&tt&&(t.YNc(0,At,3,6,"tr",0),t.YNc(1,Bt,3,2,"tr",1)),2&tt&&(t.Q6J("ngIf",Rt._firstRowOffset=dn&&ke===tt}function un(ke,dn,tt,Rt){return Rt&&null!==dn&&null!==tt&&dn!==tt&&ke>=dn&&ke<=tt}class Mn{constructor(dn,tt){this.start=dn,this.end=tt}}let oi=(()=>{class ke{constructor(tt,Rt){this.selection=tt,this._adapter=Rt,this._selectionChanged=new k.xQ,this.selectionChanged=this._selectionChanged,this.selection=tt}updateSelection(tt,Rt){const Q=this.selection;this.selection=tt,this._selectionChanged.next({selection:tt,source:Rt,oldValue:Q})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(tt){return this._adapter.isDateInstance(tt)&&this._adapter.isValid(tt)}}return ke.\u0275fac=function(tt){t.$Z()},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})(),bi=(()=>{class ke extends oi{constructor(tt){super(null,tt)}add(tt){super.updateSelection(tt,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const tt=new ke(this._adapter);return tt.updateSelection(this.selection,this),tt}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.LFG(U._A))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac}),ke})();const ne={provide:oi,deps:[[new t.FiY,new t.tp0,oi],U._A],useFactory:function Ke(ke,dn){return ke||new bi(dn)}},kt=new t.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let Pn=(()=>{class ke{constructor(tt,Rt,Q,Ft,Be){this._changeDetectorRef=tt,this._dateFormats=Rt,this._dateAdapter=Q,this._dir=Ft,this._rangeStrategy=Be,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(tt){const Rt=this._activeDate,Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this._hasSameMonthAndYear(Rt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(tt){this._selected=tt instanceof Mn?tt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(tt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get maxDate(){return this._maxDate}set maxDate(tt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,at.O)(null)).subscribe(()=>this._init())}ngOnChanges(tt){const Rt=tt.comparisonStart||tt.comparisonEnd;Rt&&!Rt.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(tt){const Rt=tt.value,Q=this._getDateFromDayOfMonth(Rt);let Ft,Be;this._selected instanceof Mn?(Ft=this._getDateInCurrentMonth(this._selected.start),Be=this._getDateInCurrentMonth(this._selected.end)):Ft=Be=this._getDateInCurrentMonth(this._selected),(Ft!==Rt||Be!==Rt)&&this.selectedChange.emit(Q),this._userSelection.emit({value:Q,event:tt.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(tt){const Q=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(tt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(tt){const Rt=this._activeDate,Q=this._isRtl();switch(tt.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=tt.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case z.VM:this.activeDate=tt.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)&&tt.preventDefault());case z.hY:return void(null!=this._previewEnd&&!(0,z.Vb)(tt)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:tt}),tt.preventDefault(),tt.stopPropagation()));default:return}this._dateAdapter.compareDate(Rt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),tt.preventDefault()}_handleCalendarBodyKeyup(tt){(tt.keyCode===z.L_||tt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:tt}),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 tt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(tt)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(tt){this._matCalendarBody._focusActiveCell(tt)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:tt,value:Rt}){if(this._rangeStrategy){const Ft=this._rangeStrategy.createPreview(Rt?Rt.rawValue:null,this.selected,tt);this._previewStart=this._getCellCompareValue(Ft.start),this._previewEnd=this._getCellCompareValue(Ft.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(tt){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),tt)}_initWeekdays(){const tt=this._dateAdapter.getFirstDayOfWeek(),Rt=this._dateAdapter.getDayOfWeekNames("narrow");let Ft=this._dateAdapter.getDayOfWeekNames("long").map((Be,Rn)=>({long:Be,narrow:Rt[Rn]}));this._weekdays=Ft.slice(tt).concat(Ft.slice(0,tt))}_createWeekCells(){const tt=this._dateAdapter.getNumDaysInMonth(this.activeDate),Rt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let Q=0,Ft=this._firstWeekOffset;Q=0)&&(!this.maxDate||this._dateAdapter.compareDate(tt,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(tt))}_getDateInCurrentMonth(tt){return tt&&this._hasSameMonthAndYear(tt,this.activeDate)?this._dateAdapter.getDate(tt):null}_hasSameMonthAndYear(tt,Rt){return!(!tt||!Rt||this._dateAdapter.getMonth(tt)!=this._dateAdapter.getMonth(Rt)||this._dateAdapter.getYear(tt)!=this._dateAdapter.getYear(Rt))}_getCellCompareValue(tt){if(tt){const Rt=this._dateAdapter.getYear(tt),Q=this._dateAdapter.getMonth(tt),Ft=this._dateAdapter.getDate(tt);return new Date(Rt,Q,Ft).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(tt){tt instanceof Mn?(this._rangeStart=this._getCellCompareValue(tt.start),this._rangeEnd=this._getCellCompareValue(tt.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(tt),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(tt){return!this.dateFilter||this.dateFilter(tt)}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(t.sBO),t.Y36(U.sG,8),t.Y36(U._A,8),t.Y36(G.Is,8),t.Y36(kt,8))},ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-month-view"]],viewQuery:function(tt,Rt){if(1&tt&&t.Gf(_n,5),2&tt){let Q;t.iGM(Q=t.CRH())&&(Rt._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(tt,Rt){1&tt&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t.YNc(3,It,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(Ft){return Rt._dateSelected(Ft)})("activeDateChange",function(Ft){return Rt._updateActiveDate(Ft)})("previewChange",function(Ft){return Rt._previewChanged(Ft)})("keyup",function(Ft){return Rt._handleCalendarBodyKeyup(Ft)})("keydown",function(Ft){return Rt._handleCalendarBodyKeydown(Ft)}),t.qZA()()),2&tt&&(t.xp6(3),t.Q6J("ngForOf",Rt._weekdays),t.xp6(3),t.Q6J("label",Rt._monthLabel)("rows",Rt._weeks)("todayValue",Rt._todayDate)("startValue",Rt._rangeStart)("endValue",Rt._rangeEnd)("comparisonStart",Rt._comparisonRangeStart)("comparisonEnd",Rt._comparisonRangeEnd)("previewStart",Rt._previewStart)("previewEnd",Rt._previewEnd)("isRange",Rt._isRange)("labelMinRequiredCells",3)("activeCell",Rt._dateAdapter.getDate(Rt.activeDate)-1))},dependencies:[T.sg,_n],encapsulation:2,changeDetection:0}),ke})(),Oi=(()=>{class ke{constructor(tt,Rt,Q){this._changeDetectorRef=tt,this._dateAdapter=Rt,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(tt){let Rt=this._activeDate;const Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),ho(this._dateAdapter,Rt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(tt){this._selected=tt instanceof Mn?tt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt)),this._setSelectedYear(tt)}get minDate(){return this._minDate}set minDate(tt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get maxDate(){return this._maxDate}set maxDate(tt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,at.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Rt=this._dateAdapter.getYear(this._activeDate)-fi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let Q=0,Ft=[];Q<24;Q++)Ft.push(Rt+Q),4==Ft.length&&(this._years.push(Ft.map(Be=>this._createCellForYear(Be))),Ft=[]);this._changeDetectorRef.markForCheck()}_yearSelected(tt){const Rt=tt.value,Q=this._dateAdapter.createDate(Rt,0,1),Ft=this._getDateFromYear(Rt);this.yearSelected.emit(Q),this.selectedChange.emit(Ft)}_updateActiveDate(tt){const Q=this._activeDate;this.activeDate=this._getDateFromYear(tt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(tt){const Rt=this._activeDate,Q=this._isRtl();switch(tt.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,-fi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-fi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt.altKey?-240:-24);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt.altKey?240:24);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Rt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),tt.preventDefault()}_handleCalendarBodyKeyup(tt){(tt.keyCode===z.L_||tt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:tt}),this._selectionKeyPressed=!1)}_getActiveCell(){return fi(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(tt){const Rt=this._dateAdapter.getMonth(this.activeDate),Q=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(tt,Rt,1));return this._dateAdapter.createDate(tt,Rt,Math.min(this._dateAdapter.getDate(this.activeDate),Q))}_createCellForYear(tt){const Rt=this._dateAdapter.createDate(tt,0,1),Q=this._dateAdapter.getYearName(Rt),Ft=this.dateClass?this.dateClass(Rt,"multi-year"):void 0;return new on(tt,Q,Q,this._shouldEnableYear(tt),Ft)}_shouldEnableYear(tt){if(null==tt||this.maxDate&&tt>this._dateAdapter.getYear(this.maxDate)||this.minDate&&tt{class ke{constructor(tt,Rt,Q,Ft){this._changeDetectorRef=tt,this._dateFormats=Rt,this._dateAdapter=Q,this._dir=Ft,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(tt){let Rt=this._activeDate;const Q=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Q,this.minDate,this.maxDate),this._dateAdapter.getYear(Rt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(tt){this._selected=tt instanceof Mn?tt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt)),this._setSelectedMonth(tt)}get minDate(){return this._minDate}set minDate(tt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get maxDate(){return this._maxDate}set maxDate(tt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,at.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(tt){const Rt=tt.value,Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Rt,1);this.monthSelected.emit(Q);const Ft=this._getDateFromMonth(Rt);this.selectedChange.emit(Ft)}_updateActiveDate(tt){const Q=this._activeDate;this.activeDate=this._getDateFromMonth(tt.value),this._dateAdapter.compareDate(Q,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(tt){const Rt=this._activeDate,Q=this._isRtl();switch(tt.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,tt.altKey?-10:-1);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt.altKey?10:1);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Rt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),tt.preventDefault()}_handleCalendarBodyKeyup(tt){(tt.keyCode===z.L_||tt.keyCode===z.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:tt}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let tt=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Rt=>Rt.map(Q=>this._createCellForMonth(Q,tt[Q]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(tt){return tt&&this._dateAdapter.getYear(tt)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(tt):null}_getDateFromMonth(tt){const Rt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),tt,1),Q=this._dateAdapter.getNumDaysInMonth(Rt);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),tt,Math.min(this._dateAdapter.getDate(this.activeDate),Q))}_createCellForMonth(tt,Rt){const Q=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),tt,1),Ft=this._dateAdapter.format(Q,this._dateFormats.display.monthYearA11yLabel),Be=this.dateClass?this.dateClass(Q,"year"):void 0;return new on(tt,Rt.toLocaleUpperCase(),Ft,this._shouldEnableMonth(tt),Be)}_shouldEnableMonth(tt){const Rt=this._dateAdapter.getYear(this.activeDate);if(null==tt||this._isYearAndMonthAfterMaxDate(Rt,tt)||this._isYearAndMonthBeforeMinDate(Rt,tt))return!1;if(!this.dateFilter)return!0;for(let Ft=this._dateAdapter.createDate(Rt,tt,1);this._dateAdapter.getMonth(Ft)==tt;Ft=this._dateAdapter.addCalendarDays(Ft,1))if(this.dateFilter(Ft))return!0;return!1}_isYearAndMonthAfterMaxDate(tt,Rt){if(this.maxDate){const Q=this._dateAdapter.getYear(this.maxDate),Ft=this._dateAdapter.getMonth(this.maxDate);return tt>Q||tt===Q&&Rt>Ft}return!1}_isYearAndMonthBeforeMinDate(tt,Rt){if(this.minDate){const Q=this._dateAdapter.getYear(this.minDate),Ft=this._dateAdapter.getMonth(this.minDate);return tt{class ke{constructor(tt,Rt,Q,Ft,Be){this._intl=tt,this.calendar=Rt,this._dateAdapter=Q,this._dateFormats=Ft,this._buttonDescriptionId="mat-calendar-button-"+fn++,this.calendar.stateChanges.subscribe(()=>Be.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 Rt=this._dateAdapter.getYear(this.calendar.activeDate)-fi(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Q=Rt+24-1,Ft=this._dateAdapter.getYearName(this._dateAdapter.createDate(Rt,0,1)),Be=this._dateAdapter.getYearName(this._dateAdapter.createDate(Q,0,1));return this._intl.formatYearRange(Ft,Be)}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(tt,Rt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(tt)==this._dateAdapter.getYear(Rt)&&this._dateAdapter.getMonth(tt)==this._dateAdapter.getMonth(Rt):"year"==this.calendar.currentView?this._dateAdapter.getYear(tt)==this._dateAdapter.getYear(Rt):ho(this._dateAdapter,tt,Rt,this.calendar.minDate,this.calendar.maxDate)}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(Pe),t.Y36((0,t.Gpc)(()=>We)),t.Y36(U._A,8),t.Y36(U.sG,8),t.Y36(t.sBO))},ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:se,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(tt,Rt){1&tt&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return Rt.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 Rt.previousClicked()}),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return Rt.nextClicked()}),t.qZA()()()),2&tt&&(t.xp6(2),t.uIk("aria-label",Rt.periodButtonLabel)("aria-describedby",Rt._buttonDescriptionId),t.xp6(1),t.uIk("id",Rt._buttonDescriptionId),t.xp6(1),t.Oqu(Rt.periodButtonText),t.xp6(1),t.ekj("mat-calendar-invert","month"!==Rt.calendar.currentView),t.xp6(4),t.Q6J("disabled",!Rt.previousEnabled()),t.uIk("aria-label",Rt.prevButtonLabel),t.xp6(1),t.Q6J("disabled",!Rt.nextEnabled()),t.uIk("aria-label",Rt.nextButtonLabel))},dependencies:[A.lW],encapsulation:2,changeDetection:0}),ke})(),We=(()=>{class ke{constructor(tt,Rt,Q,Ft){this._dateAdapter=Rt,this._dateFormats=Q,this._changeDetectorRef=Ft,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=tt.changes.subscribe(()=>{Ft.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(tt){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get selected(){return this._selected}set selected(tt){this._selected=tt instanceof Mn?tt:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get minDate(){return this._minDate}set minDate(tt){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get maxDate(){return this._maxDate}set maxDate(tt){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get activeDate(){return this._clampedActiveDate}set activeDate(tt){this._clampedActiveDate=this._dateAdapter.clampDate(tt,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(tt){const Rt=this._currentView!==tt?tt:null;this._currentView=tt,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Rt&&this.viewChanged.emit(Rt)}ngAfterContentInit(){this._calendarHeaderPortal=new v.C5(this.headerComponent||ze),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(tt){const Rt=tt.minDate&&!this._dateAdapter.sameDate(tt.minDate.previousValue,tt.minDate.currentValue)?tt.minDate:void 0,Q=tt.maxDate&&!this._dateAdapter.sameDate(tt.maxDate.previousValue,tt.maxDate.currentValue)?tt.maxDate:void 0,Ft=Rt||Q||tt.dateFilter;if(Ft&&!Ft.firstChange){const Be=this._getCurrentViewComponent();Be&&(this._changeDetectorRef.detectChanges(),Be._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(tt){const Rt=tt.value;(this.selected instanceof Mn||Rt&&!this._dateAdapter.sameDate(Rt,this.selected))&&this.selectedChange.emit(Rt),this._userSelection.emit(tt)}_yearSelectedInMultiYearView(tt){this.yearSelected.emit(tt)}_monthSelectedInYearView(tt){this.monthSelected.emit(tt)}_goToDateInView(tt,Rt){this.activeDate=tt,this.currentView=Rt}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(Pe),t.Y36(U._A,8),t.Y36(U.sG,8),t.Y36(t.sBO))},ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-calendar"]],viewQuery:function(tt,Rt){if(1&tt&&(t.Gf(Pn,5),t.Gf(Ye,5),t.Gf(Oi,5)),2&tt){let Q;t.iGM(Q=t.CRH())&&(Rt.monthView=Q.first),t.iGM(Q=t.CRH())&&(Rt.yearView=Q.first),t.iGM(Q=t.CRH())&&(Rt.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([ne]),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(tt,Rt){1&tt&&(t.YNc(0,Jt,0,0,"ng-template",0),t.TgZ(1,"div",1),t.YNc(2,ve,1,8,"mat-month-view",2),t.YNc(3,xe,1,6,"mat-year-view",3),t.YNc(4,Oe,1,6,"mat-multi-year-view",4),t.qZA()),2&tt&&(t.Q6J("cdkPortalOutlet",Rt._calendarHeaderPortal),t.xp6(1),t.Q6J("ngSwitch",Rt.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,Pn,Ye,Oi],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}),ke})();const en={transformPanel:(0,Dt.X$)("transformPanel",[(0,Dt.eR)("void => enter-dropdown",(0,Dt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Dt.F4)([(0,Dt.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Dt.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Dt.eR)("void => enter-dialog",(0,Dt.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Dt.F4)([(0,Dt.oB)({opacity:0,transform:"scale(0.7)"}),(0,Dt.oB)({transform:"none",opacity:1})]))),(0,Dt.eR)("* => void",(0,Dt.jt)("100ms linear",(0,Dt.oB)({opacity:0})))]),fadeInCalendar:(0,Dt.X$)("fadeInCalendar",[(0,Dt.SB)("void",(0,Dt.oB)({opacity:0})),(0,Dt.SB)("enter",(0,Dt.oB)({opacity:1})),(0,Dt.eR)("void => *",(0,Dt.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let le=0;const Je=new t.OlP("mat-datepicker-scroll-strategy"),wt={provide:Je,deps:[p.aV],useFactory:function Lt(ke){return()=>ke.scrollStrategies.reposition()}},Ot=(0,U.pj)(class{constructor(ke){this._elementRef=ke}});let Te=(()=>{class ke extends Ot{constructor(tt,Rt,Q,Ft,Be,Rn){super(tt),this._changeDetectorRef=Rt,this._globalModel=Q,this._dateAdapter=Ft,this._rangeSelectionStrategy=Be,this._subscriptions=new D.w,this._animationDone=new k.xQ,this._actionsPortal=null,this._closeButtonText=Rn.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(tt){const Rt=this._model.selection,Q=tt.value,Ft=Rt instanceof Mn;if(Ft&&this._rangeSelectionStrategy){const Be=this._rangeSelectionStrategy.selectionFinished(Q,Rt,tt.event);this._model.updateSelection(Be,this)}else Q&&(Ft||!this._dateAdapter.sameDate(Q,Rt))&&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(tt,Rt){this._model=tt?this._globalModel.clone():this._globalModel,this._actionsPortal=tt,Rt&&this._changeDetectorRef.detectChanges()}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(oi),t.Y36(U._A),t.Y36(kt,8),t.Y36(Pe))},ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-datepicker-content"]],viewQuery:function(tt,Rt){if(1&tt&&t.Gf(We,5),2&tt){let Q;t.iGM(Q=t.CRH())&&(Rt._calendar=Q.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(tt,Rt){1&tt&&t.WFA("@transformPanel.done",function(){return Rt._animationDone.next()}),2&tt&&(t.d8E("@transformPanel",Rt._animationState),t.ekj("mat-datepicker-content-touch",Rt.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(tt,Rt){if(1&tt&&(t.TgZ(0,"div",0)(1,"mat-calendar",1),t.NdJ("yearSelected",function(Ft){return Rt.datepicker._selectYear(Ft)})("monthSelected",function(Ft){return Rt.datepicker._selectMonth(Ft)})("viewChanged",function(Ft){return Rt.datepicker._viewChanged(Ft)})("_userSelection",function(Ft){return Rt._handleUserSelection(Ft)}),t.qZA(),t.YNc(2,qe,0,0,"ng-template",2),t.TgZ(3,"button",3),t.NdJ("focus",function(){return Rt._closeButtonFocused=!0})("blur",function(){return Rt._closeButtonFocused=!1})("click",function(){return Rt.datepicker.close()}),t._uU(4),t.qZA()()),2&tt){let Q;t.ekj("mat-datepicker-content-container-with-custom-header",Rt.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Rt._actionsPortal),t.uIk("aria-modal",!0)("aria-labelledby",null!==(Q=Rt._dialogLabelId)&&void 0!==Q?Q:void 0),t.xp6(1),t.Q6J("id",Rt.datepicker.id)("ngClass",Rt.datepicker.panelClass)("startAt",Rt.datepicker.startAt)("startView",Rt.datepicker.startView)("minDate",Rt.datepicker._getMinDate())("maxDate",Rt.datepicker._getMaxDate())("dateFilter",Rt.datepicker._getDateFilter())("headerComponent",Rt.datepicker.calendarHeaderComponent)("selected",Rt._getSelected())("dateClass",Rt.datepicker.dateClass)("comparisonStart",Rt.comparisonStart)("comparisonEnd",Rt.comparisonEnd)("@fadeInCalendar","enter"),t.xp6(1),t.Q6J("cdkPortalOutlet",Rt._actionsPortal),t.xp6(1),t.ekj("cdk-visually-hidden",!Rt._closeButtonFocused),t.Q6J("color",Rt.color||"primary"),t.xp6(1),t.Oqu(Rt._closeButtonText)}},dependencies:[T.mk,A.lW,d.mK,v.Pl,We],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:[en.transformPanel,en.fadeInCalendar]},changeDetection:0}),ke})(),Xe=(()=>{class ke{constructor(tt,Rt,Q,Ft,Be,Rn,Gi){this._overlay=tt,this._ngZone=Rt,this._viewContainerRef=Q,this._dateAdapter=Be,this._dir=Rn,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-"+le++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new k.xQ,this._scrollStrategy=Ft}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(tt){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(tt){this._color=tt}get touchUi(){return this._touchUi}set touchUi(tt){this._touchUi=(0,bt.Ig)(tt)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(tt){const Rt=(0,bt.Ig)(tt);Rt!==this._disabled&&(this._disabled=Rt,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(tt){this._restoreFocus=(0,bt.Ig)(tt)}get panelClass(){return this._panelClass}set panelClass(tt){this._panelClass=(0,bt.du)(tt)}get opened(){return this._opened}set opened(tt){(0,bt.Ig)(tt)?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(tt){const Rt=tt.xPosition||tt.yPosition;if(Rt&&!Rt.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(tt){this._model.add(tt)}_selectYear(tt){this.yearSelected.emit(tt)}_selectMonth(tt){this.monthSelected.emit(tt)}_viewChanged(tt){this.viewChanged.emit(tt)}registerInput(tt){return this._inputStateChanges.unsubscribe(),this.datepickerInput=tt,this._inputStateChanges=tt.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(tt){this._actionsPortal=tt,this._componentRef?.instance._assignActions(tt,!0)}removeActions(tt){tt===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 tt=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Rt=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:Q,location:Ft}=this._componentRef;Q._startExitAnimation(),Q._animationDone.pipe((0,K.q)(1)).subscribe(()=>{const Be=this._document.activeElement;tt&&(!Be||Be===this._document.activeElement||Ft.nativeElement.contains(Be))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}tt?setTimeout(Rt):Rt()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(tt){tt.datepicker=this,tt.color=this.color,tt._dialogLabelId=this.datepickerInput.getOverlayLabelId(),tt._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const tt=this.touchUi,Rt=new v.C5(Te,this._viewContainerRef),Q=this._overlayRef=this._overlay.create(new p.X_({positionStrategy:tt?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[tt?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:tt?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(tt?"dialog":"popup")}));this._getCloseStream(Q).subscribe(Ft=>{Ft&&Ft.preventDefault(),this.close()}),Q.keydownEvents().subscribe(Ft=>{const Be=Ft.keyCode;(Be===z.LH||Be===z.JH||Be===z.oh||Be===z.SV||Be===z.Ku||Be===z.VM)&&Ft.preventDefault()}),this._componentRef=Q.attach(Rt),this._forwardContentValues(this._componentRef.instance),tt||this._ngZone.onStable.pipe((0,K.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 tt=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(tt)}_setConnectedPositions(tt){const Rt="end"===this.xPosition?"end":"start",Q="start"===Rt?"end":"start",Ft="above"===this.yPosition?"bottom":"top",Be="top"===Ft?"bottom":"top";return tt.withPositions([{originX:Rt,originY:Be,overlayX:Rt,overlayY:Ft},{originX:Rt,originY:Ft,overlayX:Rt,overlayY:Be},{originX:Q,originY:Be,overlayX:Q,overlayY:Ft},{originX:Q,originY:Ft,overlayX:Q,overlayY:Be}])}_getCloseStream(tt){return(0,P.T)(tt.backdropClick(),tt.detachments(),tt.keydownEvents().pipe((0,lt.h)(Rt=>Rt.keyCode===z.hY&&!(0,z.Vb)(Rt)||this.datepickerInput&&(0,z.Vb)(Rt,"altKey")&&Rt.keyCode===z.LH)))}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(p.aV),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(Je),t.Y36(U._A,8),t.Y36(G.Is,8),t.Y36(oi))},ke.\u0275dir=t.lG2({type:ke,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]}),ke})(),Fe=(()=>{class ke extends Xe{}return ke.\u0275fac=function(){let dn;return function(Rt){return(dn||(dn=t.n5z(ke)))(Rt||ke)}}(),ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[t._Bn([ne,{provide:Xe,useExisting:ke}]),t.qOj],decls:0,vars:0,template:function(tt,Rt){},encapsulation:2,changeDetection:0}),ke})();class Tn{constructor(dn,tt){this.target=dn,this.targetElement=tt,this.value=this.target.value}}let he=(()=>{class ke{constructor(tt,Rt,Q){this._elementRef=tt,this._dateAdapter=Rt,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=Ft=>{const Be=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ft.value));return!Be||this._matchesFilter(Be)?null:{matDatepickerFilter:!0}},this._minValidator=Ft=>{const Be=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ft.value)),Rn=this._getMinDate();return!Rn||!Be||this._dateAdapter.compareDate(Rn,Be)<=0?null:{matDatepickerMin:{min:Rn,actual:Be}}},this._maxValidator=Ft=>{const Be=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ft.value)),Rn=this._getMaxDate();return!Rn||!Be||this._dateAdapter.compareDate(Rn,Be)>=0?null:{matDatepickerMax:{max:Rn,actual:Be}}},this._lastValueValid=!1,this._localeSubscription=Rt.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(tt){this._assignValueProgrammatically(tt)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(tt){const Rt=(0,bt.Ig)(tt),Q=this._elementRef.nativeElement;this._disabled!==Rt&&(this._disabled=Rt,this.stateChanges.next(void 0)),Rt&&this._isInitialized&&Q.blur&&Q.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(tt){this._model=tt,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Rt=>{if(this._shouldHandleChangeEvent(Rt)){const Q=this._getValueFromModel(Rt.selection);this._lastValueValid=this._isValidValue(Q),this._cvaOnChange(Q),this._onTouched(),this._formatValue(Q),this.dateInput.emit(new Tn(this,this._elementRef.nativeElement)),this.dateChange.emit(new Tn(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(tt){(function Re(ke,dn){const tt=Object.keys(ke);for(let Rt of tt){const{previousValue:Q,currentValue:Ft}=ke[Rt];if(!dn.isDateInstance(Q)||!dn.isDateInstance(Ft))return!0;if(!dn.sameDate(Q,Ft))return!0}return!1})(tt,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(tt){this._validatorOnChange=tt}validate(tt){return this._validator?this._validator(tt):null}writeValue(tt){this._assignValueProgrammatically(tt)}registerOnChange(tt){this._cvaOnChange=tt}registerOnTouched(tt){this._onTouched=tt}setDisabledState(tt){this.disabled=tt}_onKeydown(tt){tt.altKey&&tt.keyCode===z.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),tt.preventDefault())}_onInput(tt){const Rt=this._lastValueValid;let Q=this._dateAdapter.parse(tt,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Q),Q=this._dateAdapter.getValidDateOrNull(Q);const Ft=!this._dateAdapter.sameDate(Q,this.value);!Q||Ft?this._cvaOnChange(Q):(tt&&!this.value&&this._cvaOnChange(Q),Rt!==this._lastValueValid&&this._validatorOnChange()),Ft&&(this._assignValue(Q),this.dateInput.emit(new Tn(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Tn(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(tt){this._elementRef.nativeElement.value=null!=tt?this._dateAdapter.format(tt,this._dateFormats.display.dateInput):""}_assignValue(tt){this._model?(this._assignValueToModel(tt),this._pendingValue=null):this._pendingValue=tt}_isValidValue(tt){return!tt||this._dateAdapter.isValid(tt)}_parentDisabled(){return!1}_assignValueProgrammatically(tt){tt=this._dateAdapter.deserialize(tt),this._lastValueValid=this._isValidValue(tt),tt=this._dateAdapter.getValidDateOrNull(tt),this._assignValue(tt),this._formatValue(tt)}_matchesFilter(tt){const Rt=this._getDateFilter();return!Rt||Rt(tt)}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(t.SBq),t.Y36(U._A,8),t.Y36(U.sG,8))},ke.\u0275dir=t.lG2({type:ke,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t.TTD]}),ke})();const En={provide:zt.JU,useExisting:(0,t.Gpc)(()=>go),multi:!0},gi={provide:zt.Cf,useExisting:(0,t.Gpc)(()=>go),multi:!0};let go=(()=>{class ke extends he{constructor(tt,Rt,Q,Ft){super(tt,Rt,Q),this._formField=Ft,this._closedSubscription=D.w.EMPTY,this._validator=zt.kI.compose(super._getValidators())}set matDatepicker(tt){tt&&(this._datepicker=tt,this._closedSubscription=tt.closedStream.subscribe(()=>this._onTouched()),this._registerModel(tt.registerInput(this)))}get min(){return this._min}set min(tt){const Rt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt));this._dateAdapter.sameDate(Rt,this._min)||(this._min=Rt,this._validatorOnChange())}get max(){return this._max}set max(tt){const Rt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(tt));this._dateAdapter.sameDate(Rt,this._max)||(this._max=Rt,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(tt){const Rt=this._matchesFilter(this.value);this._dateFilter=tt,this._matchesFilter(this.value)!==Rt&&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(tt){return tt}_assignValueToModel(tt){this._model&&this._model.updateSelection(tt,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(tt){return tt.source!==this}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(t.SBq),t.Y36(U._A,8),t.Y36(U.sG,8),t.Y36(Vt.G_,8))},ke.\u0275dir=t.lG2({type:ke,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(tt,Rt){1&tt&&t.NdJ("input",function(Ft){return Rt._onInput(Ft.target.value)})("change",function(){return Rt._onChange()})("blur",function(){return Rt._onBlur()})("keydown",function(Ft){return Rt._onKeydown(Ft)}),2&tt&&(t.Ikx("disabled",Rt.disabled),t.uIk("aria-haspopup",Rt._datepicker?"dialog":null)("aria-owns",(null==Rt._datepicker?null:Rt._datepicker.opened)&&Rt._datepicker.id||null)("min",Rt.min?Rt._dateAdapter.toIso8601(Rt.min):null)("max",Rt.max?Rt._dateAdapter.toIso8601(Rt.max):null)("data-mat-calendar",Rt._datepicker?Rt._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[t._Bn([En,gi,{provide:nt.Jk,useExisting:ke}]),t.qOj]}),ke})(),_o=(()=>{class ke{}return ke.\u0275fac=function(tt){return new(tt||ke)},ke.\u0275dir=t.lG2({type:ke,selectors:[["","matDatepickerToggleIcon",""]]}),ke})(),mn=(()=>{class ke{constructor(tt,Rt,Q){this._intl=tt,this._changeDetectorRef=Rt,this._stateChanges=D.w.EMPTY;const Ft=Number(Q);this.tabIndex=Ft||0===Ft?Ft:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(tt){this._disabled=(0,bt.Ig)(tt)}ngOnChanges(tt){tt.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(tt){this.datepicker&&!this.disabled&&(this.datepicker.open(),tt.stopPropagation())}_watchStateChanges(){const tt=this.datepicker?this.datepicker.stateChanges:(0,I.of)(),Rt=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,tt,Rt,Q).subscribe(()=>this._changeDetectorRef.markForCheck())}}return ke.\u0275fac=function(tt){return new(tt||ke)(t.Y36(Pe),t.Y36(t.sBO),t.$8M("tabindex"))},ke.\u0275cmp=t.Xpm({type:ke,selectors:[["mat-datepicker-toggle"]],contentQueries:function(tt,Rt,Q){if(1&tt&&t.Suo(Q,_o,5),2&tt){let Ft;t.iGM(Ft=t.CRH())&&(Rt._customIcon=Ft.first)}},viewQuery:function(tt,Rt){if(1&tt&&t.Gf($e,5),2&tt){let Q;t.iGM(Q=t.CRH())&&(Rt._button=Q.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(tt,Rt){1&tt&&t.NdJ("click",function(Ft){return Rt._open(Ft)}),2&tt&&(t.uIk("tabindex",null)("data-mat-calendar",Rt.datepicker?Rt.datepicker.id:null),t.ekj("mat-datepicker-toggle-active",Rt.datepicker&&Rt.datepicker.opened)("mat-accent",Rt.datepicker&&"accent"===Rt.datepicker.color)("mat-warn",Rt.datepicker&&"warn"===Rt.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[t.TTD],ngContentSelectors:ae,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(tt,Rt){1&tt&&(t.F$t(we),t.TgZ(0,"button",0,1),t.YNc(2,Xt,2,0,"svg",2),t.Hsn(3),t.qZA()),2&tt&&(t.Q6J("disabled",Rt.disabled)("disableRipple",Rt.disableRipple),t.uIk("aria-haspopup",Rt.datepicker?"dialog":null)("aria-label",Rt.ariaLabel||Rt._intl.openCalendarLabel)("tabindex",Rt.disabled?-1:Rt.tabIndex),t.xp6(2),t.Q6J("ngIf",!Rt._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}),ke})(),He=(()=>{class ke{}return ke.\u0275fac=function(tt){return new(tt||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({providers:[Pe,wt],imports:[T.ez,A.ot,p.U8,d.rt,v.eL,U.BQ,C.ZD]}),ke})()},65412:(ot,et,b)=>{"use strict";b.d(et,{WI:()=>Kt,uw:()=>gn,H8:()=>bi,ZT:()=>un,xY:()=>oi,Is:()=>Ke,so:()=>we,uh:()=>Mn});var d=b(12687),p=b(98184),v=b(83353),T=b(84080),t=b(36895),A=b(94650),C=b(29521),U=b(8929),k=b(88514),D=b(21086),P=b(40445),I=b(1059);function z(ne,ct){}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 at=(()=>{class ne extends T.en{constructor(it,kt,Gt,oe,Ce,Ee,Pn,Ln){super(),this._elementRef=it,this._focusTrapFactory=kt,this._config=oe,this._interactivityChecker=Ce,this._ngZone=Ee,this._overlayRef=Pn,this._focusMonitor=Ln,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=mi=>{this._portalOutlet.hasAttached();const Oi=this._portalOutlet.attachDomPortal(mi);return this._contentAttached(),Oi},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=Gt}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(it){this._portalOutlet.hasAttached();const kt=this._portalOutlet.attachComponentPortal(it);return this._contentAttached(),kt}attachTemplatePortal(it){this._portalOutlet.hasAttached();const kt=this._portalOutlet.attachTemplatePortal(it);return this._contentAttached(),kt}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(it,kt){this._interactivityChecker.isFocusable(it)||(it.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Gt=()=>{it.removeEventListener("blur",Gt),it.removeEventListener("mousedown",Gt),it.removeAttribute("tabindex")};it.addEventListener("blur",Gt),it.addEventListener("mousedown",Gt)})),it.focus(kt)}_focusByCssSelector(it,kt){let Gt=this._elementRef.nativeElement.querySelector(it);Gt&&this._forceFocus(Gt,kt)}_trapFocus(){const it=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||it.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(kt=>{kt||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 it=this._config.restoreFocus;let kt=null;if("string"==typeof it?kt=this._document.querySelector(it):"boolean"==typeof it?kt=it?this._elementFocusedBeforeDialogWasOpened:null:it&&(kt=it),this._config.restoreFocus&&kt&&"function"==typeof kt.focus){const Gt=(0,v.ht)(),oe=this._elementRef.nativeElement;(!Gt||Gt===this._document.body||Gt===oe||oe.contains(Gt))&&(this._focusMonitor?(this._focusMonitor.focusVia(kt,this._closeInteractionType),this._closeInteractionType=null):kt.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const it=this._elementRef.nativeElement,kt=(0,v.ht)();return it===kt||it.contains(kt)}_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 ne.\u0275fac=function(it){return new(it||ne)(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))},ne.\u0275cmp=A.Xpm({type:ne,selectors:[["cdk-dialog-container"]],viewQuery:function(it,kt){if(1&it&&A.Gf(T.Pl,7),2&it){let Gt;A.iGM(Gt=A.CRH())&&(kt._portalOutlet=Gt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(it,kt){2&it&&A.uIk("id",kt._config.id||null)("role",kt._config.role)("aria-modal",kt._config.ariaModal)("aria-labelledby",kt._config.ariaLabel?null:kt._ariaLabelledBy)("aria-label",kt._config.ariaLabel)("aria-describedby",kt._config.ariaDescribedBy||null)},features:[A.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(it,kt){1&it&&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}),ne})();class lt{constructor(ct,it){this.overlayRef=ct,this.config=it,this.closed=new U.xQ,this.disableClose=it.disableClose,this.backdropClick=ct.backdropClick(),this.keydownEvents=ct.keydownEvents(),this.outsidePointerEvents=ct.outsidePointerEvents(),this.id=it.id,this.keydownEvents.subscribe(kt=>{kt.keyCode===C.hY&&!this.disableClose&&!(0,C.Vb)(kt)&&(kt.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(ct,it){if(this.containerInstance){const kt=this.closed;this.containerInstance._closeInteractionType=it?.focusOrigin||"program",this.overlayRef.dispose(),kt.next(ct),kt.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(ct="",it=""){return this.overlayRef.updateSize({width:ct,height:it}),this}addPanelClass(ct){return this.overlayRef.addPanelClass(ct),this}removePanelClass(ct){return this.overlayRef.removePanelClass(ct),this}}const bt=new A.OlP("DialogScrollStrategy"),Pt=new A.OlP("DialogData"),Dt=new A.OlP("DefaultDialogConfig"),Vt={provide:bt,deps:[p.aV],useFactory:function zt(ne){return()=>ne.scrollStrategies.block()}};let nt=0,Tt=(()=>{class ne{constructor(it,kt,Gt,oe,Ce,Ee){this._overlay=it,this._injector=kt,this._defaultOptions=Gt,this._parentDialog=oe,this._overlayContainer=Ce,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U.xQ,this._afterOpenedAtThisLevel=new U.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=Ee}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(it,kt){(kt={...this._defaultOptions||new G,...kt}).id=kt.id||"cdk-dialog-"+nt++,kt.id&&this.getDialogById(kt.id);const oe=this._getOverlayConfig(kt),Ce=this._overlay.create(oe),Ee=new lt(Ce,kt),Pn=this._attachContainer(Ce,Ee,kt);return Ee.containerInstance=Pn,this._attachDialogContent(it,Ee,Pn,kt),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Ee),Ee.closed.subscribe(()=>this._removeOpenDialog(Ee,!0)),this.afterOpened.next(Ee),Ee}closeAll(){At(this.openDialogs,it=>it.close())}getDialogById(it){return this.openDialogs.find(kt=>kt.id===it)}ngOnDestroy(){At(this._openDialogsAtThisLevel,it=>{!1===it.config.closeOnDestroy&&this._removeOpenDialog(it,!1)}),At(this._openDialogsAtThisLevel,it=>it.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(it){const kt=new p.X_({positionStrategy:it.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:it.scrollStrategy||this._scrollStrategy(),panelClass:it.panelClass,hasBackdrop:it.hasBackdrop,direction:it.direction,minWidth:it.minWidth,minHeight:it.minHeight,maxWidth:it.maxWidth,maxHeight:it.maxHeight,width:it.width,height:it.height,disposeOnNavigation:it.closeOnNavigation});return it.backdropClass&&(kt.backdropClass=it.backdropClass),kt}_attachContainer(it,kt,Gt){const oe=Gt.injector||Gt.viewContainerRef?.injector,Ce=[{provide:G,useValue:Gt},{provide:lt,useValue:kt},{provide:p.Iu,useValue:it}];let Ee;Gt.container?"function"==typeof Gt.container?Ee=Gt.container:(Ee=Gt.container.type,Ce.push(...Gt.container.providers(Gt))):Ee=at;const Pn=new T.C5(Ee,Gt.viewContainerRef,A.zs3.create({parent:oe||this._injector,providers:Ce}),Gt.componentFactoryResolver);return it.attach(Pn).instance}_attachDialogContent(it,kt,Gt,oe){if(it instanceof A.Rgc){const Ce=this._createInjector(oe,kt,Gt,void 0);let Ee={$implicit:oe.data,dialogRef:kt};oe.templateContext&&(Ee={...Ee,..."function"==typeof oe.templateContext?oe.templateContext():oe.templateContext}),Gt.attachTemplatePortal(new T.UE(it,null,Ee,Ce))}else{const Ce=this._createInjector(oe,kt,Gt,this._injector),Ee=Gt.attachComponentPortal(new T.C5(it,oe.viewContainerRef,Ce,oe.componentFactoryResolver));kt.componentInstance=Ee.instance}}_createInjector(it,kt,Gt,oe){const Ce=it.injector||it.viewContainerRef?.injector,Ee=[{provide:Pt,useValue:it.data},{provide:lt,useValue:kt}];return it.providers&&("function"==typeof it.providers?Ee.push(...it.providers(kt,it,Gt)):Ee.push(...it.providers)),it.direction&&(!Ce||!Ce.get(P.Is,null,A.XFs.Optional))&&Ee.push({provide:P.Is,useValue:{value:it.direction,change:(0,D.of)()}}),A.zs3.create({parent:Ce||oe,providers:Ee})}_removeOpenDialog(it,kt){const Gt=this.openDialogs.indexOf(it);Gt>-1&&(this.openDialogs.splice(Gt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((oe,Ce)=>{oe?Ce.setAttribute("aria-hidden",oe):Ce.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),kt&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const it=this._overlayContainer.getContainerElement();if(it.parentElement){const kt=it.parentElement.children;for(let Gt=kt.length-1;Gt>-1;Gt--){const oe=kt[Gt];oe!==it&&"SCRIPT"!==oe.nodeName&&"STYLE"!==oe.nodeName&&!oe.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(oe,oe.getAttribute("aria-hidden")),oe.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const it=this._parentDialog;return it?it._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return ne.\u0275fac=function(it){return new(it||ne)(A.LFG(p.aV),A.LFG(A.zs3),A.LFG(Dt,8),A.LFG(ne,12),A.LFG(p.Xj),A.LFG(bt))},ne.\u0275prov=A.Yz7({token:ne,factory:ne.\u0275fac}),ne})();function At(ne,ct){let it=ne.length;for(;it--;)ct(ne[it])}let ft=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275mod=A.oAB({type:ne}),ne.\u0275inj=A.cJS({providers:[Tt,Vt],imports:[p.U8,T.eL,d.rt,T.eL]}),ne})();var Et=b(3238),Bt=b(36787),It=b(92198),se=b(72986),Jt=b(37340);function ve(ne,ct){}const xe={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Oe={dialogContainer:(0,Jt.X$)("dialogContainer",[(0,Jt.SB)("void, exit",(0,Jt.oB)({opacity:0,transform:"scale(0.7)"})),(0,Jt.SB)("enter",(0,Jt.oB)({transform:"none"})),(0,Jt.eR)("* => enter",(0,Jt.ru)([(0,Jt.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,Jt.oB)({transform:"none",opacity:1})),(0,Jt.IO)("@*",(0,Jt.pV)(),{optional:!0})]),xe),(0,Jt.eR)("* => void, * => exit",(0,Jt.ru)([(0,Jt.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,Jt.oB)({opacity:0})),(0,Jt.IO)("@*",(0,Jt.pV)(),{optional:!0})]),xe)])};class qe{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=xe.params.enterAnimationDuration,this.exitAnimationDuration=xe.params.exitAnimationDuration}}let $e=(()=>{class ne extends at{constructor(it,kt,Gt,oe,Ce,Ee,Pn,Ln){super(it,kt,Gt,oe,Ce,Ee,Pn,Ln),this._animationStateChanged=new A.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(it){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:it})}}return ne.\u0275fac=function(it){return new(it||ne)(A.Y36(A.SBq),A.Y36(d.qV),A.Y36(t.K0,8),A.Y36(qe),A.Y36(d.ic),A.Y36(A.R0b),A.Y36(p.Iu),A.Y36(d.tE))},ne.\u0275cmp=A.Xpm({type:ne,selectors:[["ng-component"]],features:[A.qOj],decls:0,vars:0,template:function(it,kt){},encapsulation:2}),ne})(),Xt=(()=>{class ne extends $e{constructor(it,kt,Gt,oe,Ce,Ee,Pn,Ln,mi){super(it,kt,Gt,oe,Ce,Ee,Pn,mi),this._changeDetectorRef=Ln,this._state="enter"}_onAnimationDone({toState:it,totalTime:kt}){"enter"===it?this._openAnimationDone(kt):"exit"===it&&this._animationStateChanged.next({state:"closed",totalTime:kt})}_onAnimationStart({toState:it,totalTime:kt}){"enter"===it?this._animationStateChanged.next({state:"opening",totalTime:kt}):("exit"===it||"void"===it)&&this._animationStateChanged.next({state:"closing",totalTime:kt})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||xe.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||xe.params.exitAnimationDuration}}}}return ne.\u0275fac=function(it){return new(it||ne)(A.Y36(A.SBq),A.Y36(d.qV),A.Y36(t.K0,8),A.Y36(qe),A.Y36(d.ic),A.Y36(A.R0b),A.Y36(p.Iu),A.Y36(A.sBO),A.Y36(d.tE))},ne.\u0275cmp=A.Xpm({type:ne,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(it,kt){1&it&&A.WFA("@dialogContainer.start",function(oe){return kt._onAnimationStart(oe)})("@dialogContainer.done",function(oe){return kt._onAnimationDone(oe)}),2&it&&(A.Ikx("id",kt._config.id),A.uIk("aria-modal",kt._config.ariaModal)("role",kt._config.role)("aria-labelledby",kt._config.ariaLabel?null:kt._ariaLabelledBy)("aria-label",kt._config.ariaLabel)("aria-describedby",kt._config.ariaDescribedBy||null),A.d8E("@dialogContainer",kt._getAnimationState()))},features:[A.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(it,kt){1&it&&A.YNc(0,ve,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:[Oe.dialogContainer]}}),ne})();class we{constructor(ct,it,kt){this._ref=ct,this._containerInstance=kt,this._afterOpened=new U.xQ,this._beforeClosed=new U.xQ,this._state=0,this.disableClose=it.disableClose,this.id=ct.id,kt._animationStateChanged.pipe((0,It.h)(Gt=>"opened"===Gt.state),(0,se.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),kt._animationStateChanged.pipe((0,It.h)(Gt=>"closed"===Gt.state),(0,se.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ct.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Bt.T)(this.backdropClick(),this.keydownEvents().pipe((0,It.h)(Gt=>Gt.keyCode===C.hY&&!this.disableClose&&!(0,C.Vb)(Gt)))).subscribe(Gt=>{this.disableClose||(Gt.preventDefault(),ae(this,"keydown"===Gt.type?"keyboard":"mouse"))})}close(ct){this._result=ct,this._containerInstance._animationStateChanged.pipe((0,It.h)(it=>"closing"===it.state),(0,se.q)(1)).subscribe(it=>{this._beforeClosed.next(ct),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),it.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(ct){let it=this._ref.config.positionStrategy;return ct&&(ct.left||ct.right)?ct.left?it.left(ct.left):it.right(ct.right):it.centerHorizontally(),ct&&(ct.top||ct.bottom)?ct.top?it.top(ct.top):it.bottom(ct.bottom):it.centerVertically(),this._ref.updatePosition(),this}updateSize(ct="",it=""){return this._ref.updateSize(ct,it),this}addPanelClass(ct){return this._ref.addPanelClass(ct),this}removePanelClass(ct){return this._ref.removePanelClass(ct),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function ae(ne,ct,it){return ne._closeInteractionType=ct,ne.close(it)}const Kt=new A.OlP("MatDialogData"),de=new A.OlP("mat-dialog-default-options"),Wt=new A.OlP("mat-dialog-scroll-strategy"),on={provide:Wt,deps:[p.aV],useFactory:function Pe(ne){return()=>ne.scrollStrategies.block()}};let _n=0,ye=(()=>{class ne{constructor(it,kt,Gt,oe,Ce,Ee,Pn,Ln,mi,Oi){this._overlay=it,this._defaultOptions=Gt,this._parentDialog=oe,this._dialogRefConstructor=Pn,this._dialogContainerType=Ln,this._dialogDataToken=mi,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U.xQ,this._afterOpenedAtThisLevel=new U.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=Ee,this._dialog=kt.get(Tt)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const it=this._parentDialog;return it?it._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(it,kt){let Gt;(kt={...this._defaultOptions||new qe,...kt}).id=kt.id||`${this._idPrefix}${_n++}`,kt.scrollStrategy=kt.scrollStrategy||this._scrollStrategy();const oe=this._dialog.open(it,{...kt,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:qe,useValue:kt},{provide:G,useValue:kt}]},templateContext:()=>({dialogRef:Gt}),providers:(Ce,Ee,Pn)=>(Gt=new this._dialogRefConstructor(Ce,kt,Pn),Gt.updatePosition(kt?.position),[{provide:this._dialogContainerType,useValue:Pn},{provide:this._dialogDataToken,useValue:Ee.data},{provide:this._dialogRefConstructor,useValue:Gt}])});return Gt.componentInstance=oe.componentInstance,this.openDialogs.push(Gt),this.afterOpened.next(Gt),Gt.afterClosed().subscribe(()=>{const Ce=this.openDialogs.indexOf(Gt);Ce>-1&&(this.openDialogs.splice(Ce,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Gt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(it){return this.openDialogs.find(kt=>kt.id===it)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(it){let kt=it.length;for(;kt--;)it[kt].close()}}return ne.\u0275fac=function(it){A.$Z()},ne.\u0275prov=A.Yz7({token:ne,factory:ne.\u0275fac}),ne})(),gn=(()=>{class ne extends ye{constructor(it,kt,Gt,oe,Ce,Ee,Pn,Ln){super(it,kt,oe,Ee,Pn,Ce,we,Xt,Kt,Ln)}}return ne.\u0275fac=function(it){return new(it||ne)(A.LFG(p.aV),A.LFG(A.zs3),A.LFG(t.Ye,8),A.LFG(de,8),A.LFG(Wt),A.LFG(ne,12),A.LFG(p.Xj),A.LFG(A.QbO,8))},ne.\u0275prov=A.Yz7({token:ne,factory:ne.\u0275fac}),ne})(),Ue=0,un=(()=>{class ne{constructor(it,kt,Gt){this.dialogRef=it,this._elementRef=kt,this._dialog=Gt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=ri(this._elementRef,this._dialog.openDialogs))}ngOnChanges(it){const kt=it._matDialogClose||it._matDialogCloseResult;kt&&(this.dialogResult=kt.currentValue)}_onButtonClick(it){ae(this.dialogRef,0===it.screenX&&0===it.screenY?"keyboard":"mouse",this.dialogResult)}}return ne.\u0275fac=function(it){return new(it||ne)(A.Y36(we,8),A.Y36(A.SBq),A.Y36(gn))},ne.\u0275dir=A.lG2({type:ne,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(it,kt){1&it&&A.NdJ("click",function(oe){return kt._onButtonClick(oe)}),2&it&&A.uIk("aria-label",kt.ariaLabel||null)("type",kt.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[A.TTD]}),ne})(),Mn=(()=>{class ne{constructor(it,kt,Gt){this._dialogRef=it,this._elementRef=kt,this._dialog=Gt,this.id="mat-dialog-title-"+Ue++}ngOnInit(){this._dialogRef||(this._dialogRef=ri(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const it=this._dialogRef._containerInstance;it&&!it._ariaLabelledBy&&(it._ariaLabelledBy=this.id)})}}return ne.\u0275fac=function(it){return new(it||ne)(A.Y36(we,8),A.Y36(A.SBq),A.Y36(gn))},ne.\u0275dir=A.lG2({type:ne,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(it,kt){2&it&&A.Ikx("id",kt.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),ne})(),oi=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275dir=A.lG2({type:ne,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),ne})(),bi=(()=>{class ne{constructor(){this.align="start"}}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275dir=A.lG2({type:ne,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(it,kt){2&it&&A.ekj("mat-dialog-actions-align-center","center"===kt.align)("mat-dialog-actions-align-end","end"===kt.align)},inputs:{align:"align"}}),ne})();function ri(ne,ct){let it=ne.nativeElement.parentElement;for(;it&&!it.classList.contains("mat-dialog-container");)it=it.parentElement;return it?ct.find(kt=>kt.id===it.id):null}let Ke=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275mod=A.oAB({type:ne}),ne.\u0275inj=A.cJS({providers:[gn,on],imports:[ft,p.U8,T.eL,Et.BQ,Et.BQ]}),ne})()},44850:(ot,et,b)=>{"use strict";b.d(et,{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(U){this._vertical=(0,p.Ig)(U)}get inset(){return this._inset}set inset(U){this._inset=(0,p.Ig)(U)}}return A.\u0275fac=function(U){return new(U||A)},A.\u0275cmp=d.Xpm({type:A,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(U,k){2&U&&(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(U,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(U){return new(U||A)},A.\u0275mod=d.oAB({type:A}),A.\u0275inj=d.cJS({imports:[v.BQ,v.BQ]}),A})()},37084:(ot,et,b)=>{"use strict";b.d(et,{pp:()=>on,To:()=>_n,ib:()=>we,u4:()=>re,yz:()=>Wt,yK:()=>Pe});var d=b(94650),p=b(95017),v=b(21281),T=b(8929),t=b(42654);let A=0;const C=new d.OlP("CdkAccordion");let U=(()=>{class ye{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(Ue){this._multi=(0,v.Ig)(Ue)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(Ue){this._stateChanges.next(Ue)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return ye.\u0275fac=function(Ue){return new(Ue||ye)},ye.\u0275dir=d.lG2({type:ye,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[d._Bn([{provide:C,useExisting:ye}]),d.TTD]}),ye})(),k=0,D=(()=>{class ye{constructor(Ue,un,Mn){this.accordion=Ue,this._changeDetectorRef=un,this._expansionDispatcher=Mn,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=Mn.listen((oi,bi)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===bi&&this.id!==oi&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(Ue){Ue=(0,v.Ig)(Ue),this._expanded!==Ue&&(this._expanded=Ue,this.expandedChange.emit(Ue),Ue?(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(Ue){this._disabled=(0,v.Ig)(Ue)}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(Ue=>{this.disabled||(this.expanded=Ue)})}}return ye.\u0275fac=function(Ue){return new(Ue||ye)(d.Y36(C,12),d.Y36(d.sBO),d.Y36(p.A8))},ye.\u0275dir=d.lG2({type:ye,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:C,useValue:void 0}])]}),ye})(),P=(()=>{class ye{}return ye.\u0275fac=function(Ue){return new(Ue||ye)},ye.\u0275mod=d.oAB({type:ye}),ye.\u0275inj=d.cJS({}),ye})();var I=b(84080),z=b(36895),G=b(3238),K=b(12687),at=b(75778),lt=b(1059),bt=b(92198),Pt=b(72986),Dt=b(29521),zt=b(68896),Vt=b(36787),nt=b(37340);const Tt=["body"];function At(ye,gn){}const ft=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Et=["mat-expansion-panel-header","*","mat-action-row"];function Bt(ye,gn){if(1&ye&&d._UZ(0,"span",2),2&ye){const Ue=d.oxw();d.Q6J("@indicatorRotate",Ue._getExpandedState())}}const It=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],se=["mat-panel-title","mat-panel-description","*"],Jt=new d.OlP("MAT_ACCORDION"),ve="225ms cubic-bezier(0.4,0.0,0.2,1)",xe={indicatorRotate:(0,nt.X$)("indicatorRotate",[(0,nt.SB)("collapsed, void",(0,nt.oB)({transform:"rotate(0deg)"})),(0,nt.SB)("expanded",(0,nt.oB)({transform:"rotate(180deg)"})),(0,nt.eR)("expanded <=> collapsed, void => collapsed",(0,nt.jt)(ve))]),bodyExpansion:(0,nt.X$)("bodyExpansion",[(0,nt.SB)("collapsed, void",(0,nt.oB)({height:"0px",visibility:"hidden"})),(0,nt.SB)("expanded",(0,nt.oB)({height:"*",visibility:"visible"})),(0,nt.eR)("expanded <=> collapsed, void => collapsed",(0,nt.jt)(ve))])},Oe=new d.OlP("MAT_EXPANSION_PANEL");let qe=(()=>{class ye{constructor(Ue,un){this._template=Ue,this._expansionPanel=un}}return ye.\u0275fac=function(Ue){return new(Ue||ye)(d.Y36(d.Rgc),d.Y36(Oe,8))},ye.\u0275dir=d.lG2({type:ye,selectors:[["ng-template","matExpansionPanelContent",""]]}),ye})(),$e=0;const Xt=new d.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let we=(()=>{class ye extends D{constructor(Ue,un,Mn,oi,bi,ri,Ke){super(Ue,un,Mn),this._viewContainerRef=oi,this._animationMode=ri,this._hideToggle=!1,this.afterExpand=new d.vpe,this.afterCollapse=new d.vpe,this._inputChanges=new T.xQ,this._headerId="mat-expansion-panel-header-"+$e++,this._bodyAnimationDone=new T.xQ,this.accordion=Ue,this._document=bi,this._bodyAnimationDone.pipe((0,at.x)((ne,ct)=>ne.fromState===ct.fromState&&ne.toState===ct.toState)).subscribe(ne=>{"void"!==ne.fromState&&("expanded"===ne.toState?this.afterExpand.emit():"collapsed"===ne.toState&&this.afterCollapse.emit())}),Ke&&(this.hideToggle=Ke.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(Ue){this._hideToggle=(0,v.Ig)(Ue)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(Ue){this._togglePosition=Ue}_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,lt.O)(null),(0,bt.h)(()=>this.expanded&&!this._portal),(0,Pt.q)(1)).subscribe(()=>{this._portal=new I.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(Ue){this._inputChanges.next(Ue)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const Ue=this._document.activeElement,un=this._body.nativeElement;return Ue===un||un.contains(Ue)}return!1}}return ye.\u0275fac=function(Ue){return new(Ue||ye)(d.Y36(Jt,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(Xt,8))},ye.\u0275cmp=d.Xpm({type:ye,selectors:[["mat-expansion-panel"]],contentQueries:function(Ue,un,Mn){if(1&Ue&&d.Suo(Mn,qe,5),2&Ue){let oi;d.iGM(oi=d.CRH())&&(un._lazyContent=oi.first)}},viewQuery:function(Ue,un){if(1&Ue&&d.Gf(Tt,5),2&Ue){let Mn;d.iGM(Mn=d.CRH())&&(un._body=Mn.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(Ue,un){2&Ue&&d.ekj("mat-expanded",un.expanded)("_mat-animation-noopable","NoopAnimations"===un._animationMode)("mat-expansion-panel-spacing",un._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:Jt,useValue:void 0},{provide:Oe,useExisting:ye}]),d.qOj,d.TTD],ngContentSelectors:Et,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Ue,un){1&Ue&&(d.F$t(ft),d.Hsn(0),d.TgZ(1,"div",0,1),d.NdJ("@bodyExpansion.done",function(oi){return un._bodyAnimationDone.next(oi)}),d.TgZ(3,"div",2),d.Hsn(4,1),d.YNc(5,At,0,0,"ng-template",3),d.qZA(),d.Hsn(6,2),d.qZA()),2&Ue&&(d.xp6(1),d.Q6J("@bodyExpansion",un._getExpandedState())("id",un.id),d.uIk("aria-labelledby",un._headerId),d.xp6(4),d.Q6J("cdkPortalOutlet",un._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:[xe.bodyExpansion]},changeDetection:0}),ye})();class Kt{}const de=(0,G.sb)(Kt);let Wt=(()=>{class ye extends de{constructor(Ue,un,Mn,oi,bi,ri,Ke){super(),this.panel=Ue,this._element=un,this._focusMonitor=Mn,this._changeDetectorRef=oi,this._animationMode=ri,this._parentChangeSubscription=t.w.EMPTY;const ne=Ue.accordion?Ue.accordion._stateChanges.pipe((0,bt.h)(ct=>!(!ct.hideToggle&&!ct.togglePosition))):zt.E;this.tabIndex=parseInt(Ke||"")||0,this._parentChangeSubscription=(0,Vt.T)(Ue.opened,Ue.closed,ne,Ue._inputChanges.pipe((0,bt.h)(ct=>!!(ct.hideToggle||ct.disabled||ct.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),Ue.closed.pipe((0,bt.h)(()=>Ue._containsFocus())).subscribe(()=>Mn.focusVia(un,"program")),bi&&(this.expandedHeight=bi.expandedHeight,this.collapsedHeight=bi.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 Ue=this._isExpanded();return Ue&&this.expandedHeight?this.expandedHeight:!Ue&&this.collapsedHeight?this.collapsedHeight:null}_keydown(Ue){switch(Ue.keyCode){case Dt.L_:case Dt.K5:(0,Dt.Vb)(Ue)||(Ue.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(Ue))}}focus(Ue,un){Ue?this._focusMonitor.focusVia(this._element,Ue,un):this._element.nativeElement.focus(un)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(Ue=>{Ue&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return ye.\u0275fac=function(Ue){return new(Ue||ye)(d.Y36(we,1),d.Y36(d.SBq),d.Y36(K.tE),d.Y36(d.sBO),d.Y36(Xt,8),d.Y36(d.QbO,8),d.$8M("tabindex"))},ye.\u0275cmp=d.Xpm({type:ye,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(Ue,un){1&Ue&&d.NdJ("click",function(){return un._toggle()})("keydown",function(oi){return un._keydown(oi)}),2&Ue&&(d.uIk("id",un.panel._headerId)("tabindex",un.tabIndex)("aria-controls",un._getPanelId())("aria-expanded",un._isExpanded())("aria-disabled",un.panel.disabled),d.Udp("height",un._getHeaderHeight()),d.ekj("mat-expanded",un._isExpanded())("mat-expansion-toggle-indicator-after","after"===un._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===un._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===un._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[d.qOj],ngContentSelectors:se,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(Ue,un){1&Ue&&(d.F$t(It),d.TgZ(0,"span",0),d.Hsn(1),d.Hsn(2,1),d.Hsn(3,2),d.qZA(),d.YNc(4,Bt,1,1,"span",1)),2&Ue&&(d.ekj("mat-content-hide-toggle",!un._showToggle()),d.xp6(4),d.Q6J("ngIf",un._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:[xe.indicatorRotate]},changeDetection:0}),ye})(),re=(()=>{class ye{}return ye.\u0275fac=function(Ue){return new(Ue||ye)},ye.\u0275dir=d.lG2({type:ye,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),ye})(),Pe=(()=>{class ye{}return ye.\u0275fac=function(Ue){return new(Ue||ye)},ye.\u0275dir=d.lG2({type:ye,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),ye})(),on=(()=>{class ye extends U{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(Ue){this._hideToggle=(0,v.Ig)(Ue)}ngAfterContentInit(){this._headers.changes.pipe((0,lt.O)(this._headers)).subscribe(Ue=>{this._ownHeaders.reset(Ue.filter(un=>un.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new K.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(Ue){this._keyManager.onKeydown(Ue)}_handleHeaderFocus(Ue){this._keyManager.updateActiveItem(Ue)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return ye.\u0275fac=function(){let gn;return function(un){return(gn||(gn=d.n5z(ye)))(un||ye)}}(),ye.\u0275dir=d.lG2({type:ye,selectors:[["mat-accordion"]],contentQueries:function(Ue,un,Mn){if(1&Ue&&d.Suo(Mn,Wt,5),2&Ue){let oi;d.iGM(oi=d.CRH())&&(un._headers=oi)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Ue,un){2&Ue&&d.ekj("mat-accordion-multi",un.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[d._Bn([{provide:Jt,useExisting:ye}]),d.qOj]}),ye})(),_n=(()=>{class ye{}return ye.\u0275fac=function(Ue){return new(Ue||ye)},ye.\u0275mod=d.oAB({type:ye}),ye.\u0275inj=d.cJS({imports:[z.ez,G.BQ,P,I.eL]}),ye})()},59549:(ot,et,b)=>{"use strict";b.d(et,{Eo:()=>qe,G_:()=>bi,KE:()=>ri,R9:()=>ye,TO:()=>xe,bx:()=>de,hX:()=>Wt,lN:()=>Ke,o2:()=>oi,qo:()=>on});var d=b(49643),p=b(36895),v=b(94650),T=b(3238),t=b(40445),A=b(21281),C=b(8929),U=b(36787),k=b(23753),D=b(1059),P=b(7625),I=b(72986),z=b(37340),G=b(83353);const K=["connectionContainer"],at=["inputContainer"],lt=["label"];function bt(ne,ct){1&ne&&(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(ne,ct){if(1&ne){const it=v.EpF();v.TgZ(0,"div",19),v.NdJ("cdkObserveContent",function(){v.CHM(it);const Gt=v.oxw();return v.KtG(Gt.updateOutlineGap())}),v.Hsn(1,1),v.qZA()}if(2&ne){const it=v.oxw();v.Q6J("cdkObserveContentDisabled","outline"!=it.appearance)}}function Dt(ne,ct){if(1&ne&&(v.ynx(0),v.Hsn(1,2),v.TgZ(2,"span"),v._uU(3),v.qZA(),v.BQk()),2&ne){const it=v.oxw(2);v.xp6(3),v.Oqu(it._control.placeholder)}}function zt(ne,ct){1&ne&&v.Hsn(0,3,["*ngSwitchCase","true"])}function Vt(ne,ct){1&ne&&(v.TgZ(0,"span",23),v._uU(1," *"),v.qZA())}function nt(ne,ct){if(1&ne){const it=v.EpF();v.TgZ(0,"label",20,21),v.NdJ("cdkObserveContent",function(){v.CHM(it);const Gt=v.oxw();return v.KtG(Gt.updateOutlineGap())}),v.YNc(2,Dt,4,1,"ng-container",12),v.YNc(3,zt,1,0,"ng-content",12),v.YNc(4,Vt,2,0,"span",22),v.qZA()}if(2&ne){const it=v.oxw();v.ekj("mat-empty",it._control.empty&&!it._shouldAlwaysFloat())("mat-form-field-empty",it._control.empty&&!it._shouldAlwaysFloat())("mat-accent","accent"==it.color)("mat-warn","warn"==it.color),v.Q6J("cdkObserveContentDisabled","outline"!=it.appearance)("id",it._labelId)("ngSwitch",it._hasLabel()),v.uIk("for",it._control.id)("aria-owns",it._control.id),v.xp6(2),v.Q6J("ngSwitchCase",!1),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngIf",!it.hideRequiredMarker&&it._control.required&&!it._control.disabled)}}function Tt(ne,ct){1&ne&&(v.TgZ(0,"div",24),v.Hsn(1,4),v.qZA())}function At(ne,ct){if(1&ne&&(v.TgZ(0,"div",25),v._UZ(1,"span",26),v.qZA()),2&ne){const it=v.oxw();v.xp6(1),v.ekj("mat-accent","accent"==it.color)("mat-warn","warn"==it.color)}}function ft(ne,ct){if(1&ne&&(v.TgZ(0,"div"),v.Hsn(1,5),v.qZA()),2&ne){const it=v.oxw();v.Q6J("@transitionMessages",it._subscriptAnimationState)}}function Et(ne,ct){if(1&ne&&(v.TgZ(0,"div",30),v._uU(1),v.qZA()),2&ne){const it=v.oxw(2);v.Q6J("id",it._hintLabelId),v.xp6(1),v.Oqu(it.hintLabel)}}function Bt(ne,ct){if(1&ne&&(v.TgZ(0,"div",27),v.YNc(1,Et,2,2,"div",28),v.Hsn(2,6),v._UZ(3,"div",29),v.Hsn(4,7),v.qZA()),2&ne){const it=v.oxw();v.Q6J("@transitionMessages",it._subscriptAnimationState),v.xp6(1),v.Q6J("ngIf",it.hintLabel)}}const It=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],se=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Jt=0;const ve=new v.OlP("MatError");let xe=(()=>{class ne{constructor(it,kt){this.id="mat-error-"+Jt++,it||kt.nativeElement.setAttribute("aria-live","polite")}}return ne.\u0275fac=function(it){return new(it||ne)(v.$8M("aria-live"),v.Y36(v.SBq))},ne.\u0275dir=v.lG2({type:ne,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(it,kt){2&it&&v.uIk("id",kt.id)},inputs:{id:"id"},features:[v._Bn([{provide:ve,useExisting:ne}])]}),ne})();const Oe={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 qe=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275dir=v.lG2({type:ne}),ne})(),ae=0;const Kt=new v.OlP("MatHint");let de=(()=>{class ne{constructor(){this.align="start",this.id="mat-hint-"+ae++}}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275dir=v.lG2({type:ne,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(it,kt){2&it&&(v.uIk("id",kt.id)("align",null),v.ekj("mat-form-field-hint-end","end"===kt.align))},inputs:{align:"align",id:"id"},features:[v._Bn([{provide:Kt,useExisting:ne}])]}),ne})(),Wt=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275dir=v.lG2({type:ne,selectors:[["mat-label"]]}),ne})(),re=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275dir=v.lG2({type:ne,selectors:[["mat-placeholder"]]}),ne})();const Pe=new v.OlP("MatPrefix");let on=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275dir=v.lG2({type:ne,selectors:[["","matPrefix",""]],features:[v._Bn([{provide:Pe,useExisting:ne}])]}),ne})();const _n=new v.OlP("MatSuffix");let ye=(()=>{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275dir=v.lG2({type:ne,selectors:[["","matSuffix",""]],features:[v._Bn([{provide:_n,useExisting:ne}])]}),ne})(),gn=0;const Mn=(0,T.pj)(class{constructor(ne){this._elementRef=ne}},"primary"),oi=new v.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),bi=new v.OlP("MatFormField");let ri=(()=>{class ne extends Mn{constructor(it,kt,Gt,oe,Ce,Ee,Pn){super(it),this._changeDetectorRef=kt,this._dir=Gt,this._defaults=oe,this._platform=Ce,this._ngZone=Ee,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new C.xQ,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+gn++,this._labelId="mat-form-field-label-"+gn++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==Pn,this.appearance=oe?.appearance||"legacy",oe&&(this._hideRequiredMarker=Boolean(oe.hideRequiredMarker),oe.color&&(this.color=this.defaultColor=oe.color))}get appearance(){return this._appearance}set appearance(it){const kt=this._appearance;this._appearance=it||this._defaults?.appearance||"legacy","outline"===this._appearance&&kt!==it&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(it){this._hideRequiredMarker=(0,A.Ig)(it)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(it){this._hintLabel=it,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(it){it!==this._floatLabel&&(this._floatLabel=it||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(it){this._explicitFormFieldControl=it}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const it=this._control;it.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${it.controlType}`),it.stateChanges.pipe((0,D.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),it.ngControl&&it.ngControl.valueChanges&&it.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,U.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(it){const kt=this._control?this._control.ngControl:null;return kt&&kt[it]}_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 it=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&it.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const kt=this._hintChildren?this._hintChildren.find(oe=>"start"===oe.align):null,Gt=this._hintChildren?this._hintChildren.find(oe=>"end"===oe.align):null;kt?it.push(kt.id):this._hintLabel&&it.push(this._hintLabelId),Gt&&it.push(Gt.id)}else this._errorChildren&&it.push(...this._errorChildren.map(kt=>kt.id));this._control.setDescribedByIds(it)}}_validateControlChild(){}updateOutlineGap(){const it=this._label?this._label.nativeElement:null,kt=this._connectionContainerRef.nativeElement,Gt=".mat-form-field-outline-start",oe=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!it||!it.children.length||!it.textContent.trim()){const mi=kt.querySelectorAll(`${Gt}, ${oe}`);for(let Oi=0;Oi0?.75*Yn+10:0}for(let mi=0;mi{class ne{}return ne.\u0275fac=function(it){return new(it||ne)},ne.\u0275mod=v.oAB({type:ne}),ne.\u0275inj=v.cJS({imports:[p.ez,T.BQ,d.Q8,T.BQ]}),ne})()},90782:(ot,et,b)=>{"use strict";b.d(et,{DX:()=>I,Il:()=>At,N6:()=>ft});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 It=Math.max(...this.tracker);return It>1?this.rowCount+It-1:this.rowCount}update(It,se){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(It),this.tracker.fill(0,0,this.tracker.length),this.positions=se.map(Jt=>this._trackTile(Jt))}_trackTile(It){const se=this._findMatchingGap(It.colspan);return this._markTilePosition(se,It),this.columnIndex=se+It.colspan,new D(this.rowIndex,se)}_findMatchingGap(It){let se=-1,Jt=-1;do{this.columnIndex+It>this.tracker.length?(this._nextRow(),se=this.tracker.indexOf(0,this.columnIndex),Jt=this._findGapEndIndex(se)):(se=this.tracker.indexOf(0,this.columnIndex),-1!=se?(Jt=this._findGapEndIndex(se),this.columnIndex=se+1):(this._nextRow(),se=this.tracker.indexOf(0,this.columnIndex),Jt=this._findGapEndIndex(se)))}while(Jt-se{class Bt{constructor(se,Jt){this._element=se,this._gridList=Jt,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(se){this._rowspan=Math.round((0,v.su)(se))}get colspan(){return this._colspan}set colspan(se){this._colspan=Math.round((0,v.su)(se))}_setStyle(se,Jt){this._element.nativeElement.style[se]=Jt}}return Bt.\u0275fac=function(se){return new(se||Bt)(d.Y36(d.SBq),d.Y36(P,8))},Bt.\u0275cmp=d.Xpm({type:Bt,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(se,Jt){2&se&&d.uIk("rowspan",Jt.rowspan)("colspan",Jt.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:t,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(se,Jt){1&se&&(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}),Bt})();const lt=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class bt{constructor(){this._rows=0,this._rowspan=0}init(It,se,Jt,ve){this._gutterSize=nt(It),this._rows=se.rowCount,this._rowspan=se.rowspan,this._cols=Jt,this._direction=ve}getBaseTileSize(It,se){return`(${It}% - (${this._gutterSize} * ${se}))`}getTilePosition(It,se){return 0===se?"0":Vt(`(${It} + ${this._gutterSize}) * ${se}`)}getTileSize(It,se){return`(${It} * ${se}) + (${se-1} * ${this._gutterSize})`}setStyle(It,se,Jt){let ve=100/this._cols,xe=(this._cols-1)/this._cols;this.setColStyles(It,Jt,ve,xe),this.setRowStyles(It,se,ve,xe)}setColStyles(It,se,Jt,ve){let xe=this.getBaseTileSize(Jt,ve);It._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(xe,se)),It._setStyle("width",Vt(this.getTileSize(xe,It.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(It){return`${this._rowspan} * ${this.getTileSize(It,1)}`}getComputedHeight(){return null}}class Pt extends bt{constructor(It){super(),this.fixedRowHeight=It}init(It,se,Jt,ve){super.init(It,se,Jt,ve),this.fixedRowHeight=nt(this.fixedRowHeight),lt.test(this.fixedRowHeight)}setRowStyles(It,se){It._setStyle("top",this.getTilePosition(this.fixedRowHeight,se)),It._setStyle("height",Vt(this.getTileSize(this.fixedRowHeight,It.rowspan)))}getComputedHeight(){return["height",Vt(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(It){It._setListStyle(["height",null]),It._tiles&&It._tiles.forEach(se=>{se._setStyle("top",null),se._setStyle("height",null)})}}class Dt extends bt{constructor(It){super(),this._parseRatio(It)}setRowStyles(It,se,Jt,ve){this.baseTileHeight=this.getBaseTileSize(Jt/this.rowHeightRatio,ve),It._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,se)),It._setStyle("paddingTop",Vt(this.getTileSize(this.baseTileHeight,It.rowspan)))}getComputedHeight(){return["paddingBottom",Vt(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(It){It._setListStyle(["paddingBottom",null]),It._tiles.forEach(se=>{se._setStyle("marginTop",null),se._setStyle("paddingTop",null)})}_parseRatio(It){const se=It.split(":");this.rowHeightRatio=parseFloat(se[0])/parseFloat(se[1])}}class zt extends bt{setRowStyles(It,se){let xe=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);It._setStyle("top",this.getTilePosition(xe,se)),It._setStyle("height",Vt(this.getTileSize(xe,It.rowspan)))}reset(It){It._tiles&&It._tiles.forEach(se=>{se._setStyle("top",null),se._setStyle("height",null)})}}function Vt(Bt){return`calc(${Bt})`}function nt(Bt){return Bt.match(/([A-Za-z%]+)$/)?Bt:`${Bt}px`}let At=(()=>{class Bt{constructor(se,Jt){this._element=se,this._dir=Jt,this._gutter="1px"}get cols(){return this._cols}set cols(se){this._cols=Math.max(1,Math.round((0,v.su)(se)))}get gutterSize(){return this._gutter}set gutterSize(se){this._gutter=`${se??""}`}get rowHeight(){return this._rowHeight}set rowHeight(se){const Jt=`${se??""}`;Jt!==this._rowHeight&&(this._rowHeight=Jt,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(se){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===se?new zt:se&&se.indexOf(":")>-1?new Dt(se):new Pt(se)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new k);const se=this._tileCoordinator,Jt=this._tiles.filter(xe=>!xe._gridList||xe._gridList===this),ve=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,Jt),this._tileStyler.init(this.gutterSize,se,this.cols,ve),Jt.forEach((xe,Oe)=>{const qe=se.positions[Oe];this._tileStyler.setStyle(xe,qe.row,qe.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(se){se&&(this._element.nativeElement.style[se[0]]=se[1])}}return Bt.\u0275fac=function(se){return new(se||Bt)(d.Y36(d.SBq),d.Y36(T.Is,8))},Bt.\u0275cmp=d.Xpm({type:Bt,selectors:[["mat-grid-list"]],contentQueries:function(se,Jt,ve){if(1&se&&d.Suo(ve,I,5),2&se){let xe;d.iGM(xe=d.CRH())&&(Jt._tiles=xe)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(se,Jt){2&se&&d.uIk("cols",Jt.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[d._Bn([{provide:P,useExisting:Bt}])],ngContentSelectors:t,decls:2,vars:0,template:function(se,Jt){1&se&&(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}),Bt})(),ft=(()=>{class Bt{}return Bt.\u0275fac=function(se){return new(se||Bt)},Bt.\u0275mod=d.oAB({type:Bt}),Bt.\u0275inj=d.cJS({imports:[p.uc,p.BQ,p.uc,p.BQ]}),Bt})()},97392:(ot,et,b)=>{"use strict";b.d(et,{Hw:()=>ae,Ps:()=>Kt});var d=b(94650),p=b(3238),v=b(21281),T=b(36895),t=b(21086),A=b(61737),C=b(30567),U=b(42654),k=b(22868),D=b(24850),P=b(27221),I=b(40537),z=b(12474),G=b(72986),K=b(80529),at=b(11481);const lt=["*"];let bt;function Dt(de){return function Pt(){if(void 0===bt&&(bt=null,typeof window<"u")){const de=window;void 0!==de.trustedTypes&&(bt=de.trustedTypes.createPolicy("angular#components",{createHTML:Wt=>Wt}))}return bt}()?.createHTML(de)||de}function zt(de){return Error(`Unable to find icon with the name "${de}"`)}function nt(de){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${de}".`)}function Tt(de){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${de}".`)}class At{constructor(Wt,re,Pe){this.url=Wt,this.svgText=re,this.options=Pe}}let ft=(()=>{class de{constructor(re,Pe,on,_n){this._httpClient=re,this._sanitizer=Pe,this._errorHandler=_n,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(re,Pe,on){return this.addSvgIconInNamespace("",re,Pe,on)}addSvgIconLiteral(re,Pe,on){return this.addSvgIconLiteralInNamespace("",re,Pe,on)}addSvgIconInNamespace(re,Pe,on,_n){return this._addSvgIconConfig(re,Pe,new At(on,null,_n))}addSvgIconResolver(re){return this._resolvers.push(re),this}addSvgIconLiteralInNamespace(re,Pe,on,_n){const ye=this._sanitizer.sanitize(d.q3G.HTML,on);if(!ye)throw Tt(on);const gn=Dt(ye);return this._addSvgIconConfig(re,Pe,new At("",gn,_n))}addSvgIconSet(re,Pe){return this.addSvgIconSetInNamespace("",re,Pe)}addSvgIconSetLiteral(re,Pe){return this.addSvgIconSetLiteralInNamespace("",re,Pe)}addSvgIconSetInNamespace(re,Pe,on){return this._addSvgIconSetConfig(re,new At(Pe,null,on))}addSvgIconSetLiteralInNamespace(re,Pe,on){const _n=this._sanitizer.sanitize(d.q3G.HTML,Pe);if(!_n)throw Tt(Pe);const ye=Dt(_n);return this._addSvgIconSetConfig(re,new At("",ye,on))}registerFontClassAlias(re,Pe=re){return this._fontCssClassesByAlias.set(re,Pe),this}classNameForFontAlias(re){return this._fontCssClassesByAlias.get(re)||re}setDefaultFontSetClass(...re){return this._defaultFontSetClass=re,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(re){const Pe=this._sanitizer.sanitize(d.q3G.RESOURCE_URL,re);if(!Pe)throw nt(re);const on=this._cachedIconsByUrl.get(Pe);return on?(0,t.of)(It(on)):this._loadSvgIconFromConfig(new At(re,null)).pipe((0,k.b)(_n=>this._cachedIconsByUrl.set(Pe,_n)),(0,D.U)(_n=>It(_n)))}getNamedSvgIcon(re,Pe=""){const on=se(Pe,re);let _n=this._svgIconConfigs.get(on);if(_n)return this._getSvgFromConfig(_n);if(_n=this._getIconConfigFromResolvers(Pe,re),_n)return this._svgIconConfigs.set(on,_n),this._getSvgFromConfig(_n);const ye=this._iconSetConfigs.get(Pe);return ye?this._getSvgFromIconSetConfigs(re,ye):(0,A._)(zt(on))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(re){return re.svgText?(0,t.of)(It(this._svgElementFromConfig(re))):this._loadSvgIconFromConfig(re).pipe((0,D.U)(Pe=>It(Pe)))}_getSvgFromIconSetConfigs(re,Pe){const on=this._extractIconWithNameFromAnySet(re,Pe);if(on)return(0,t.of)(on);const _n=Pe.filter(ye=>!ye.svgText).map(ye=>this._loadSvgIconSetFromConfig(ye).pipe((0,P.K)(gn=>{const un=`Loading icon set URL: ${this._sanitizer.sanitize(d.q3G.RESOURCE_URL,ye.url)} failed: ${gn.message}`;return this._errorHandler.handleError(new Error(un)),(0,t.of)(null)})));return(0,C.D)(_n).pipe((0,D.U)(()=>{const ye=this._extractIconWithNameFromAnySet(re,Pe);if(!ye)throw zt(re);return ye}))}_extractIconWithNameFromAnySet(re,Pe){for(let on=Pe.length-1;on>=0;on--){const _n=Pe[on];if(_n.svgText&&_n.svgText.toString().indexOf(re)>-1){const ye=this._svgElementFromConfig(_n),gn=this._extractSvgIconFromSet(ye,re,_n.options);if(gn)return gn}}return null}_loadSvgIconFromConfig(re){return this._fetchIcon(re).pipe((0,k.b)(Pe=>re.svgText=Pe),(0,D.U)(()=>this._svgElementFromConfig(re)))}_loadSvgIconSetFromConfig(re){return re.svgText?(0,t.of)(null):this._fetchIcon(re).pipe((0,k.b)(Pe=>re.svgText=Pe))}_extractSvgIconFromSet(re,Pe,on){const _n=re.querySelector(`[id="${Pe}"]`);if(!_n)return null;const ye=_n.cloneNode(!0);if(ye.removeAttribute("id"),"svg"===ye.nodeName.toLowerCase())return this._setSvgAttributes(ye,on);if("symbol"===ye.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ye),on);const gn=this._svgElementFromString(Dt(""));return gn.appendChild(ye),this._setSvgAttributes(gn,on)}_svgElementFromString(re){const Pe=this._document.createElement("DIV");Pe.innerHTML=re;const on=Pe.querySelector("svg");if(!on)throw Error(" tag not found");return on}_toSvgElement(re){const Pe=this._svgElementFromString(Dt("")),on=re.attributes;for(let _n=0;_nDt(un)),(0,I.x)(()=>this._inProgressUrlFetches.delete(ye)),(0,z.B)());return this._inProgressUrlFetches.set(ye,Ue),Ue}_addSvgIconConfig(re,Pe,on){return this._svgIconConfigs.set(se(re,Pe),on),this}_addSvgIconSetConfig(re,Pe){const on=this._iconSetConfigs.get(re);return on?on.push(Pe):this._iconSetConfigs.set(re,[Pe]),this}_svgElementFromConfig(re){if(!re.svgElement){const Pe=this._svgElementFromString(re.svgText);this._setSvgAttributes(Pe,re.options),re.svgElement=Pe}return re.svgElement}_getIconConfigFromResolvers(re,Pe){for(let on=0;onWt?Wt.pathname+Wt.search:""}}}),$e=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Xt=$e.map(de=>`[${de}]`).join(", "),we=/^url\(['"]?#(.*?)['"]?\)$/;let ae=(()=>{class de extends ve{constructor(re,Pe,on,_n,ye,gn){super(re),this._iconRegistry=Pe,this._location=_n,this._errorHandler=ye,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=U.w.EMPTY,gn&&(gn.color&&(this.color=this.defaultColor=gn.color),gn.fontSet&&(this.fontSet=gn.fontSet)),on||re.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(re){this._inline=(0,v.Ig)(re)}get svgIcon(){return this._svgIcon}set svgIcon(re){re!==this._svgIcon&&(re?this._updateSvgIcon(re):this._svgIcon&&this._clearSvgElement(),this._svgIcon=re)}get fontSet(){return this._fontSet}set fontSet(re){const Pe=this._cleanupFontValue(re);Pe!==this._fontSet&&(this._fontSet=Pe,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(re){const Pe=this._cleanupFontValue(re);Pe!==this._fontIcon&&(this._fontIcon=Pe,this._updateFontIconClasses())}_splitIconName(re){if(!re)return["",""];const Pe=re.split(":");switch(Pe.length){case 1:return["",Pe[0]];case 2:return Pe;default:throw Error(`Invalid icon name: "${re}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const re=this._elementsWithExternalReferences;if(re&&re.size){const Pe=this._location.getPathname();Pe!==this._previousPath&&(this._previousPath=Pe,this._prependPathToReferences(Pe))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(re){this._clearSvgElement();const Pe=this._location.getPathname();this._previousPath=Pe,this._cacheChildrenWithExternalReferences(re),this._prependPathToReferences(Pe),this._elementRef.nativeElement.appendChild(re)}_clearSvgElement(){const re=this._elementRef.nativeElement;let Pe=re.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Pe--;){const on=re.childNodes[Pe];(1!==on.nodeType||"svg"===on.nodeName.toLowerCase())&&on.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const re=this._elementRef.nativeElement,Pe=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(on=>on.length>0);this._previousFontSetClass.forEach(on=>re.classList.remove(on)),Pe.forEach(on=>re.classList.add(on)),this._previousFontSetClass=Pe,this.fontIcon!==this._previousFontIconClass&&!Pe.includes("mat-ligature-font")&&(this._previousFontIconClass&&re.classList.remove(this._previousFontIconClass),this.fontIcon&&re.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(re){return"string"==typeof re?re.trim().split(" ")[0]:re}_prependPathToReferences(re){const Pe=this._elementsWithExternalReferences;Pe&&Pe.forEach((on,_n)=>{on.forEach(ye=>{_n.setAttribute(ye.name,`url('${re}#${ye.value}')`)})})}_cacheChildrenWithExternalReferences(re){const Pe=re.querySelectorAll(Xt),on=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let _n=0;_n{const gn=Pe[_n],Ue=gn.getAttribute(ye),un=Ue?Ue.match(we):null;if(un){let Mn=on.get(gn);Mn||(Mn=[],on.set(gn,Mn)),Mn.push({name:ye,value:un[1]})}})}_updateSvgIcon(re){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),re){const[Pe,on]=this._splitIconName(re);Pe&&(this._svgNamespace=Pe),on&&(this._svgName=on),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(on,Pe).pipe((0,G.q)(1)).subscribe(_n=>this._setSvgElement(_n),_n=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Pe}:${on}! ${_n.message}`))})}}}return de.\u0275fac=function(re){return new(re||de)(d.Y36(d.SBq),d.Y36(ft),d.$8M("aria-hidden"),d.Y36(Oe),d.Y36(d.qLn),d.Y36(xe,8))},de.\u0275cmp=d.Xpm({type:de,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(re,Pe){2&re&&(d.uIk("data-mat-icon-type",Pe._usingFontIcon()?"font":"svg")("data-mat-icon-name",Pe._svgName||Pe.fontIcon)("data-mat-icon-namespace",Pe._svgNamespace||Pe.fontSet)("fontIcon",Pe._usingFontIcon()?Pe.fontIcon:null),d.ekj("mat-icon-inline",Pe.inline)("mat-icon-no-color","primary"!==Pe.color&&"accent"!==Pe.color&&"warn"!==Pe.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[d.qOj],ngContentSelectors:lt,decls:1,vars:0,template:function(re,Pe){1&re&&(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}),de})(),Kt=(()=>{class de{}return de.\u0275fac=function(re){return new(re||de)},de.\u0275mod=d.oAB({type:de}),de.\u0275inj=d.cJS({imports:[p.BQ,p.BQ]}),de})()},284:(ot,et,b)=>{"use strict";b.d(et,{Jk:()=>D,Nt:()=>G,c:()=>K});var d=b(21281),p=b(83353),v=b(39349),T=b(94650),t=b(24006),A=b(3238),C=b(59549),U=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(at,lt,bt,Pt){this._defaultErrorStateMatcher=at,this._parentForm=lt,this._parentFormGroup=bt,this.ngControl=Pt,this.stateChanges=new U.xQ}});let G=(()=>{class at extends z{constructor(bt,Pt,Dt,zt,Vt,nt,Tt,At,ft,Et){super(nt,zt,Vt,Dt),this._elementRef=bt,this._platform=Pt,this._autofillMonitor=At,this._formField=Et,this._uid="mat-input-"+I++,this.focused=!1,this.stateChanges=new U.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(se=>(0,p.qK)().has(se)),this._iOSKeyupListener=se=>{const Jt=se.target;!Jt.value&&0===Jt.selectionStart&&0===Jt.selectionEnd&&(Jt.setSelectionRange(1,1),Jt.setSelectionRange(0,0))};const Bt=this._elementRef.nativeElement,It=Bt.nodeName.toLowerCase();this._inputValueAccessor=Tt||Bt,this._previousNativeValue=this.value,this.id=this.id,Pt.IOS&&ft.runOutsideAngular(()=>{bt.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===It,this._isTextarea="textarea"===It,this._isInFormField=!!Et,this._isNativeSelect&&(this.controlType=Bt.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(bt){this._disabled=(0,d.Ig)(bt),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(bt){this._id=bt||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(t.kI.required)??!1}set required(bt){this._required=(0,d.Ig)(bt)}get type(){return this._type}set type(bt){this._type=bt||"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(bt){bt!==this.value&&(this._inputValueAccessor.value=bt,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(bt){this._readonly=(0,d.Ig)(bt)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(bt=>{this.autofilled=bt.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(bt){this._elementRef.nativeElement.focus(bt)}_focusChanged(bt){bt!==this.focused&&(this.focused=bt,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const bt=this._formField,Pt=bt&&"legacy"===bt.appearance&&!bt._hasLabel?.()?null:this.placeholder;if(Pt!==this._previousPlaceholder){const Dt=this._elementRef.nativeElement;this._previousPlaceholder=Pt,Pt?Dt.setAttribute("placeholder",Pt):Dt.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const bt=this._elementRef.nativeElement.value;this._previousNativeValue!==bt&&(this._previousNativeValue=bt,this.stateChanges.next())}_validateType(){P.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let bt=this._elementRef.nativeElement.validity;return bt&&bt.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const bt=this._elementRef.nativeElement,Pt=bt.options[0];return this.focused||bt.multiple||!this.empty||!!(bt.selectedIndex>-1&&Pt&&Pt.label)}return this.focused||!this.empty}setDescribedByIds(bt){bt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",bt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const bt=this._elementRef.nativeElement;return this._isNativeSelect&&(bt.multiple||bt.size>1)}}return at.\u0275fac=function(bt){return new(bt||at)(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(C.G_,8))},at.\u0275dir=T.lG2({type:at,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(bt,Pt){1&bt&&T.NdJ("focus",function(){return Pt._focusChanged(!0)})("blur",function(){return Pt._focusChanged(!1)})("input",function(){return Pt._onInput()}),2&bt&&(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:C.Eo,useExisting:at}]),T.qOj,T.TTD]}),at})(),K=(()=>{class at{}return at.\u0275fac=function(bt){return new(bt||at)},at.\u0275mod=T.oAB({type:at}),at.\u0275inj=T.cJS({providers:[A.rD],imports:[v.Ky,C.lN,A.BQ,v.Ky,C.lN]}),at})()},96338:(ot,et,b)=>{"use strict";b.d(et,{Hk:()=>At,Nh:()=>Bt,Tg:()=>se,gs:()=>It,i$:()=>ft,ie:()=>Xt});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=["*"],K=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],at=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],zt=(0,v.Id)((0,v.Kr)(class{})),Vt=(0,v.Kr)(class{}),nt=new p.OlP("MatList"),Tt=new p.OlP("MatNavList");let At=(()=>{class we extends zt{constructor(){super(...arguments),this._stateChanges=new t.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return we.\u0275fac=function(){let ae;return function(de){return(ae||(ae=p.n5z(we)))(de||we)}}(),we.\u0275cmp=p.Xpm({type:we,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:Tt,useExisting:we}]),p.qOj,p.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(Kt,de){1&Kt&&(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}),we})(),ft=(()=>{class we extends zt{constructor(Kt){super(),this._elementRef=Kt,this._stateChanges=new t.xQ,"action-list"===this._getListType()&&(Kt.nativeElement.classList.add("mat-action-list"),Kt.nativeElement.setAttribute("role","group"))}_getListType(){const Kt=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===Kt?"list":"mat-action-list"===Kt?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return we.\u0275fac=function(Kt){return new(Kt||we)(p.Y36(p.SBq))},we.\u0275cmp=p.Xpm({type:we,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[p._Bn([{provide:nt,useExisting:we}]),p.qOj,p.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(Kt,de){1&Kt&&(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}),we})(),Et=(()=>{class we{}return we.\u0275fac=function(Kt){return new(Kt||we)},we.\u0275dir=p.lG2({type:we,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),we})(),Bt=(()=>{class we{}return we.\u0275fac=function(Kt){return new(Kt||we)},we.\u0275dir=p.lG2({type:we,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),we})(),It=(()=>{class we{}return we.\u0275fac=function(Kt){return new(Kt||we)},we.\u0275dir=p.lG2({type:we,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),we})(),se=(()=>{class we extends Vt{constructor(Kt,de,Wt,re){super(),this._element=Kt,this._isInteractiveList=!1,this._destroyed=new t.xQ,this._disabled=!1,this._isInteractiveList=!!(Wt||re&&"action-list"===re._getListType()),this._list=Wt||re;const Pe=this._getHostElement();"button"===Pe.nodeName.toLowerCase()&&!Pe.hasAttribute("type")&&Pe.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,A.R)(this._destroyed)).subscribe(()=>{de.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(Kt){this._disabled=(0,T.Ig)(Kt)}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 we.\u0275fac=function(Kt){return new(Kt||we)(p.Y36(p.SBq),p.Y36(p.sBO),p.Y36(Tt,8),p.Y36(nt,8))},we.\u0275cmp=p.Xpm({type:we,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(Kt,de,Wt){if(1&Kt&&(p.Suo(Wt,Et,5),p.Suo(Wt,Bt,5),p.Suo(Wt,v.X2,5)),2&Kt){let re;p.iGM(re=p.CRH())&&(de._avatar=re.first),p.iGM(re=p.CRH())&&(de._icon=re.first),p.iGM(re=p.CRH())&&(de._lines=re)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(Kt,de){2&Kt&&p.ekj("mat-list-item-disabled",de.disabled)("mat-list-item-with-avatar",de._avatar||de._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[p.qOj],ngContentSelectors:at,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(Kt,de){1&Kt&&(p.F$t(K),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&Kt&&(p.xp6(1),p.Q6J("matRippleTrigger",de._getHostElement())("matRippleDisabled",de._isRippleDisabled()))},dependencies:[v.wG],encapsulation:2,changeDetection:0}),we})(),Xt=(()=>{class we{}return we.\u0275fac=function(Kt){return new(Kt||we)},we.\u0275mod=p.oAB({type:we}),we.\u0275inj=p.cJS({imports:[v.uc,v.si,v.BQ,v.us,d.ez,v.uc,v.BQ,v.us,I.t]}),we})()},28255:(ot,et,b)=>{"use strict";b.d(et,{OP:()=>ae,Tx:()=>oi,VK:()=>Pe,p6:()=>Mn});var d=b(12687),p=b(21281),v=b(29521),T=b(94650),t=b(8929),A=b(42654),C=b(36787),U=b(21086),k=b(8139),D=b(1059),P=b(87545),I=b(72986),z=b(7625),G=b(92198),K=b(18583),at=b(37340),lt=b(84080),bt=b(36895),Pt=b(3238),Dt=b(40445),zt=b(98184),Vt=b(83353),nt=b(67376);const Tt=["mat-menu-item",""];function At(bi,ri){1&bi&&(T.O4$(),T.TgZ(0,"svg",2),T._UZ(1,"polygon",3),T.qZA())}const ft=["*"];function Et(bi,ri){if(1&bi){const Ke=T.EpF();T.TgZ(0,"div",0),T.NdJ("keydown",function(ct){T.CHM(Ke);const it=T.oxw();return T.KtG(it._handleKeydown(ct))})("click",function(){T.CHM(Ke);const ct=T.oxw();return T.KtG(ct.closed.emit("click"))})("@transformMenu.start",function(ct){T.CHM(Ke);const it=T.oxw();return T.KtG(it._onAnimationStart(ct))})("@transformMenu.done",function(ct){T.CHM(Ke);const it=T.oxw();return T.KtG(it._onAnimationDone(ct))}),T.TgZ(1,"div",1),T.Hsn(2),T.qZA()()}if(2&bi){const Ke=T.oxw();T.Q6J("id",Ke.panelId)("ngClass",Ke._classList)("@transformMenu",Ke._panelAnimationState),T.uIk("aria-label",Ke.ariaLabel||null)("aria-labelledby",Ke.ariaLabelledby||null)("aria-describedby",Ke.ariaDescribedby||null)}}const Bt={transformMenu:(0,at.X$)("transformMenu",[(0,at.SB)("void",(0,at.oB)({opacity:0,transform:"scale(0.8)"})),(0,at.eR)("void => enter",(0,at.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,at.oB)({opacity:1,transform:"scale(1)"}))),(0,at.eR)("* => void",(0,at.jt)("100ms 25ms linear",(0,at.oB)({opacity:0})))]),fadeInItems:(0,at.X$)("fadeInItems",[(0,at.SB)("showing",(0,at.oB)({opacity:1})),(0,at.eR)("void => *",[(0,at.oB)({opacity:0}),(0,at.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Jt=new T.OlP("MatMenuContent"),Xt=new T.OlP("MAT_MENU_PANEL"),we=(0,Pt.Kr)((0,Pt.Id)(class{}));let ae=(()=>{class bi extends we{constructor(Ke,ne,ct,it,kt){super(),this._elementRef=Ke,this._document=ne,this._focusMonitor=ct,this._parentMenu=it,this._changeDetectorRef=kt,this.role="menuitem",this._hovered=new t.xQ,this._focused=new t.xQ,this._highlighted=!1,this._triggersSubmenu=!1,it?.addItem?.(this)}focus(Ke,ne){this._focusMonitor&&Ke?this._focusMonitor.focusVia(this._getHostElement(),Ke,ne):this._getHostElement().focus(ne),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(Ke){this.disabled&&(Ke.preventDefault(),Ke.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const Ke=this._elementRef.nativeElement.cloneNode(!0),ne=Ke.querySelectorAll("mat-icon, .material-icons");for(let ct=0;ct{class bi{constructor(Ke,ne,ct,it){this._elementRef=Ke,this._ngZone=ne,this._defaultOptions=ct,this._changeDetectorRef=it,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-"+Wt++}get xPosition(){return this._xPosition}set xPosition(Ke){this._xPosition=Ke,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(Ke){this._yPosition=Ke,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(Ke){this._overlapTrigger=(0,p.Ig)(Ke)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(Ke){this._hasBackdrop=(0,p.Ig)(Ke)}set panelClass(Ke){const ne=this._previousPanelClass;ne&&ne.length&&ne.split(" ").forEach(ct=>{this._classList[ct]=!1}),this._previousPanelClass=Ke,Ke&&Ke.length&&(Ke.split(" ").forEach(ct=>{this._classList[ct]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(Ke){this.panelClass=Ke}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)(Ke=>(0,C.T)(...Ke.map(ne=>ne._focused)))).subscribe(Ke=>this._keyManager.updateActiveItem(Ke)),this._directDescendantItems.changes.subscribe(Ke=>{const ne=this._keyManager;if("enter"===this._panelAnimationState&&ne.activeItem?._hasFocus()){const ct=Ke.toArray(),it=Math.max(0,Math.min(ct.length-1,ne.activeItemIndex||0));ct[it]&&!ct[it].disabled?ne.setActiveItem(it):ne.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)(ne=>(0,C.T)(...ne.map(ct=>ct._hovered))))}addItem(Ke){}removeItem(Ke){}_handleKeydown(Ke){const ne=Ke.keyCode,ct=this._keyManager;switch(ne){case v.hY:(0,v.Vb)(Ke)||(Ke.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(ne===v.LH||ne===v.JH)&&ct.setFocusOrigin("keyboard"),void ct.onKeydown(Ke)}Ke.stopPropagation()}focusFirstItem(Ke="program"){this._ngZone.onStable.pipe((0,I.q)(1)).subscribe(()=>{let ne=null;if(this._directDescendantItems.length&&(ne=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!ne||!ne.contains(document.activeElement)){const ct=this._keyManager;ct.setFocusOrigin(Ke).setFirstItemActive(),!ct.activeItem&&ne&&ne.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(Ke){const ne=Math.min(this._baseElevation+Ke,24),ct=`${this._elevationPrefix}${ne}`,it=Object.keys(this._classList).find(kt=>kt.startsWith(this._elevationPrefix));(!it||it===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[ct]=!0,this._previousElevation=ct)}setPositionClasses(Ke=this.xPosition,ne=this.yPosition){const ct=this._classList;ct["mat-menu-before"]="before"===Ke,ct["mat-menu-after"]="after"===Ke,ct["mat-menu-above"]="above"===ne,ct["mat-menu-below"]="below"===ne,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(Ke){this._animationDone.next(Ke),this._isAnimating=!1}_onAnimationStart(Ke){this._isAnimating=!0,"enter"===Ke.toState&&0===this._keyManager.activeItemIndex&&(Ke.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,D.O)(this._allItems)).subscribe(Ke=>{this._directDescendantItems.reset(Ke.filter(ne=>ne._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return bi.\u0275fac=function(Ke){return new(Ke||bi)(T.Y36(T.SBq),T.Y36(T.R0b),T.Y36(Kt),T.Y36(T.sBO))},bi.\u0275dir=T.lG2({type:bi,contentQueries:function(Ke,ne,ct){if(1&Ke&&(T.Suo(ct,Jt,5),T.Suo(ct,ae,5),T.Suo(ct,ae,4)),2&Ke){let it;T.iGM(it=T.CRH())&&(ne.lazyContent=it.first),T.iGM(it=T.CRH())&&(ne._allItems=it),T.iGM(it=T.CRH())&&(ne.items=it)}},viewQuery:function(Ke,ne){if(1&Ke&&T.Gf(T.Rgc,5),2&Ke){let ct;T.iGM(ct=T.CRH())&&(ne.templateRef=ct.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"}}),bi})(),Pe=(()=>{class bi extends re{constructor(Ke,ne,ct,it){super(Ke,ne,ct,it),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return bi.\u0275fac=function(Ke){return new(Ke||bi)(T.Y36(T.SBq),T.Y36(T.R0b),T.Y36(Kt),T.Y36(T.sBO))},bi.\u0275cmp=T.Xpm({type:bi,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(Ke,ne){2&Ke&&T.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[T._Bn([{provide:Xt,useExisting:bi}]),T.qOj],ngContentSelectors:ft,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(Ke,ne){1&Ke&&(T.F$t(),T.YNc(0,Et,3,6,"ng-template"))},dependencies:[bt.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:[Bt.transformMenu,Bt.fadeInItems]},changeDetection:0}),bi})();const on=new T.OlP("mat-menu-scroll-strategy"),ye={provide:on,deps:[zt.aV],useFactory:function _n(bi){return()=>bi.scrollStrategies.reposition()}},Ue=(0,Vt.i$)({passive:!0});let un=(()=>{class bi{constructor(Ke,ne,ct,it,kt,Gt,oe,Ce,Ee){this._overlay=Ke,this._element=ne,this._viewContainerRef=ct,this._menuItemInstance=Gt,this._dir=oe,this._focusMonitor=Ce,this._ngZone=Ee,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=A.w.EMPTY,this._hoverSubscription=A.w.EMPTY,this._menuCloseSubscription=A.w.EMPTY,this._handleTouchStart=Pn=>{(0,d.yG)(Pn)||(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=it,this._parentMaterialMenu=kt instanceof re?kt:void 0,ne.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ue),Gt&&(Gt._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(Ke){this.menu=Ke}get menu(){return this._menu}set menu(Ke){Ke!==this._menu&&(this._menu=Ke,this._menuCloseSubscription.unsubscribe(),Ke&&(this._menuCloseSubscription=Ke.close.subscribe(ne=>{this._destroyMenu(ne),("click"===ne||"tab"===ne)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(ne)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ue),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 Ke=this.menu;if(this._menuOpen||!Ke)return;const ne=this._createOverlay(Ke),ct=ne.getConfig(),it=ct.positionStrategy;this._setPosition(Ke,it),ct.hasBackdrop=Ke.hasBackdrop??!this.triggersSubmenu(),ne.attach(this._getPortal(Ke)),Ke.lazyContent&&Ke.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(Ke),Ke instanceof re&&(Ke._startAnimation(),Ke._directDescendantItems.changes.pipe((0,z.R)(Ke.close)).subscribe(()=>{it.withLockedPosition(!1).reapplyLastPosition(),it.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(Ke,ne){this._focusMonitor&&Ke?this._focusMonitor.focusVia(this._element,Ke,ne):this._element.nativeElement.focus(ne)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(Ke){if(!this._overlayRef||!this.menuOpen)return;const ne=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===Ke||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,ne instanceof re?(ne._resetAnimation(),ne.lazyContent?ne._animationDone.pipe((0,G.h)(ct=>"void"===ct.toState),(0,I.q)(1),(0,z.R)(ne.lazyContent._attached)).subscribe({next:()=>ne.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),ne?.lazyContent?.detach())}_initMenu(Ke){Ke.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,Ke.direction=this.dir,this._setMenuElevation(Ke),Ke.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(Ke){if(Ke.setElevation){let ne=0,ct=Ke.parentMenu;for(;ct;)ne++,ct=ct.parentMenu;Ke.setElevation(ne)}}_setIsMenuOpen(Ke){this._menuOpen=Ke,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(Ke)}_createOverlay(Ke){if(!this._overlayRef){const ne=this._getOverlayConfig(Ke);this._subscribeToPositions(Ke,ne.positionStrategy),this._overlayRef=this._overlay.create(ne),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(Ke){return new zt.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:Ke.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:Ke.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(Ke,ne){Ke.setPositionClasses&&ne.positionChanges.subscribe(ct=>{const it="start"===ct.connectionPair.overlayX?"after":"before",kt="top"===ct.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>Ke.setPositionClasses(it,kt)):Ke.setPositionClasses(it,kt)})}_setPosition(Ke,ne){let[ct,it]="before"===Ke.xPosition?["end","start"]:["start","end"],[kt,Gt]="above"===Ke.yPosition?["bottom","top"]:["top","bottom"],[oe,Ce]=[kt,Gt],[Ee,Pn]=[ct,it],Ln=0;if(this.triggersSubmenu()){if(Pn=ct="before"===Ke.xPosition?"start":"end",it=Ee="end"===ct?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const mi=this._parentMaterialMenu.items.first;this._parentInnerPadding=mi?mi._getHostElement().offsetTop:0}Ln="bottom"===kt?this._parentInnerPadding:-this._parentInnerPadding}}else Ke.overlapTrigger||(oe="top"===kt?"bottom":"top",Ce="top"===Gt?"bottom":"top");ne.withPositions([{originX:ct,originY:oe,overlayX:Ee,overlayY:kt,offsetY:Ln},{originX:it,originY:oe,overlayX:Pn,overlayY:kt,offsetY:Ln},{originX:ct,originY:Ce,overlayX:Ee,overlayY:Gt,offsetY:-Ln},{originX:it,originY:Ce,overlayX:Pn,overlayY:Gt,offsetY:-Ln}])}_menuClosingActions(){const Ke=this._overlayRef.backdropClick(),ne=this._overlayRef.detachments(),ct=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,U.of)(),it=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,G.h)(kt=>kt!==this._menuItemInstance),(0,G.h)(()=>this._menuOpen)):(0,U.of)();return(0,C.T)(Ke,ct,it,ne)}_handleMousedown(Ke){(0,d.X6)(Ke)||(this._openedBy=0===Ke.button?"mouse":void 0,this.triggersSubmenu()&&Ke.preventDefault())}_handleKeydown(Ke){const ne=Ke.keyCode;(ne===v.K5||ne===v.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(ne===v.SV&&"ltr"===this.dir||ne===v.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(Ke){this.triggersSubmenu()?(Ke.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,G.h)(Ke=>Ke===this._menuItemInstance&&!Ke.disabled),(0,K.g)(0,k.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof re&&this.menu._isAnimating?this.menu._animationDone.pipe((0,I.q)(1),(0,K.g)(0,k.E),(0,z.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(Ke){return(!this._portal||this._portal.templateRef!==Ke.templateRef)&&(this._portal=new lt.UE(Ke.templateRef,this._viewContainerRef)),this._portal}}return bi.\u0275fac=function(Ke){return new(Ke||bi)(T.Y36(zt.aV),T.Y36(T.SBq),T.Y36(T.s_b),T.Y36(on),T.Y36(Xt,8),T.Y36(ae,10),T.Y36(Dt.Is,8),T.Y36(d.tE),T.Y36(T.R0b))},bi.\u0275dir=T.lG2({type:bi,hostVars:3,hostBindings:function(Ke,ne){1&Ke&&T.NdJ("click",function(it){return ne._handleClick(it)})("mousedown",function(it){return ne._handleMousedown(it)})("keydown",function(it){return ne._handleKeydown(it)}),2&Ke&&T.uIk("aria-haspopup",ne.menu?"menu":null)("aria-expanded",ne.menuOpen||null)("aria-controls",ne.menuOpen?ne.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"}}),bi})(),Mn=(()=>{class bi extends un{}return bi.\u0275fac=function(){let ri;return function(ne){return(ri||(ri=T.n5z(bi)))(ne||bi)}}(),bi.\u0275dir=T.lG2({type:bi,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[T.qOj]}),bi})(),oi=(()=>{class bi{}return bi.\u0275fac=function(Ke){return new(Ke||bi)},bi.\u0275mod=T.oAB({type:bi}),bi.\u0275inj=T.cJS({providers:[ye],imports:[bt.ez,Pt.BQ,Pt.si,zt.U8,nt.ZD,Pt.BQ]}),bi})()},98739:(ot,et,b)=>{"use strict";b.d(et,{NW:()=>Tt,TU:()=>At});var d=b(36895),p=b(94650),v=b(3238),T=b(4859),t=b(84385),A=b(10266),C=b(21281),U=b(8929),k=b(59549);function D(ft,Et){if(1&ft&&(p.TgZ(0,"mat-option",19),p._uU(1),p.qZA()),2&ft){const Bt=Et.$implicit;p.Q6J("value",Bt),p.xp6(1),p.hij(" ",Bt," ")}}function P(ft,Et){if(1&ft){const Bt=p.EpF();p.TgZ(0,"mat-form-field",16)(1,"mat-select",17),p.NdJ("selectionChange",function(se){p.CHM(Bt);const Jt=p.oxw(2);return p.KtG(Jt._changePageSize(se.value))}),p.YNc(2,D,2,2,"mat-option",18),p.qZA()()}if(2&ft){const Bt=p.oxw(2);p.Q6J("appearance",Bt._formFieldAppearance)("color",Bt.color),p.xp6(1),p.Q6J("value",Bt.pageSize)("disabled",Bt.disabled)("panelClass",Bt.selectConfig.panelClass||"")("disableOptionCentering",Bt.selectConfig.disableOptionCentering)("aria-label",Bt._intl.itemsPerPageLabel),p.xp6(1),p.Q6J("ngForOf",Bt._displayedPageSizeOptions)}}function I(ft,Et){if(1&ft&&(p.TgZ(0,"div",20),p._uU(1),p.qZA()),2&ft){const Bt=p.oxw(2);p.xp6(1),p.Oqu(Bt.pageSize)}}function z(ft,Et){if(1&ft&&(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&ft){const Bt=p.oxw();p.xp6(2),p.hij(" ",Bt._intl.itemsPerPageLabel," "),p.xp6(1),p.Q6J("ngIf",Bt._displayedPageSizeOptions.length>1),p.xp6(1),p.Q6J("ngIf",Bt._displayedPageSizeOptions.length<=1)}}function G(ft,Et){if(1&ft){const Bt=p.EpF();p.TgZ(0,"button",21),p.NdJ("click",function(){p.CHM(Bt);const se=p.oxw();return p.KtG(se.firstPage())}),p.O4$(),p.TgZ(1,"svg",7),p._UZ(2,"path",22),p.qZA()()}if(2&ft){const Bt=p.oxw();p.Q6J("matTooltip",Bt._intl.firstPageLabel)("matTooltipDisabled",Bt._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Bt._previousButtonsDisabled()),p.uIk("aria-label",Bt._intl.firstPageLabel)}}function K(ft,Et){if(1&ft){const Bt=p.EpF();p.O4$(),p.kcU(),p.TgZ(0,"button",23),p.NdJ("click",function(){p.CHM(Bt);const se=p.oxw();return p.KtG(se.lastPage())}),p.O4$(),p.TgZ(1,"svg",7),p._UZ(2,"path",24),p.qZA()()}if(2&ft){const Bt=p.oxw();p.Q6J("matTooltip",Bt._intl.lastPageLabel)("matTooltipDisabled",Bt._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Bt._nextButtonsDisabled()),p.uIk("aria-label",Bt._intl.lastPageLabel)}}let at=(()=>{class ft{constructor(){this.changes=new U.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Bt,It,se)=>{if(0==se||0==It)return`0 of ${se}`;const Jt=Bt*It;return`${Jt+1} \u2013 ${Jt<(se=Math.max(se,0))?Math.min(Jt+It,se):Jt+It} of ${se}`}}}return ft.\u0275fac=function(Bt){return new(Bt||ft)},ft.\u0275prov=p.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})();const bt={provide:at,deps:[[new p.FiY,new p.tp0,at]],useFactory:function lt(ft){return ft||new at}},zt=new p.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),Vt=(0,v.Id)((0,v.dB)(class{}));let nt=(()=>{class ft extends Vt{constructor(Bt,It,se){if(super(),this._intl=Bt,this._changeDetectorRef=It,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new p.vpe,this._intlChanges=Bt.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),se){const{pageSize:Jt,pageSizeOptions:ve,hidePageSize:xe,showFirstLastButtons:Oe}=se;null!=Jt&&(this._pageSize=Jt),null!=ve&&(this._pageSizeOptions=ve),null!=xe&&(this._hidePageSize=xe),null!=Oe&&(this._showFirstLastButtons=Oe)}}get pageIndex(){return this._pageIndex}set pageIndex(Bt){this._pageIndex=Math.max((0,C.su)(Bt),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Bt){this._length=(0,C.su)(Bt),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Bt){this._pageSize=Math.max((0,C.su)(Bt),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Bt){this._pageSizeOptions=(Bt||[]).map(It=>(0,C.su)(It)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Bt){this._hidePageSize=(0,C.Ig)(Bt)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Bt){this._showFirstLastButtons=(0,C.Ig)(Bt)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const Bt=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(Bt)}previousPage(){if(!this.hasPreviousPage())return;const Bt=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(Bt)}firstPage(){if(!this.hasPreviousPage())return;const Bt=this.pageIndex;this.pageIndex=0,this._emitPageEvent(Bt)}lastPage(){if(!this.hasNextPage())return;const Bt=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(Bt)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Bt=this.getNumberOfPages()-1;return this.pageIndexBt-It),this._changeDetectorRef.markForCheck())}_emitPageEvent(Bt){this.page.emit({previousPageIndex:Bt,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ft.\u0275fac=function(Bt){p.$Z()},ft.\u0275dir=p.lG2({type:ft,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[p.qOj]}),ft})(),Tt=(()=>{class ft extends nt{constructor(Bt,It,se){super(Bt,It,se),se&&null!=se.formFieldAppearance&&(this._formFieldAppearance=se.formFieldAppearance)}}return ft.\u0275fac=function(Bt){return new(Bt||ft)(p.Y36(at),p.Y36(p.sBO),p.Y36(zt,8))},ft.\u0275cmp=p.Xpm({type:ft,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(Bt,It){1&Bt&&(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 It.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 It.nextPage()}),p.O4$(),p.TgZ(11,"svg",7),p._UZ(12,"path",10),p.qZA()(),p.YNc(13,K,3,5,"button",11),p.qZA()()()),2&Bt&&(p.xp6(2),p.Q6J("ngIf",!It.hidePageSize),p.xp6(3),p.hij(" ",It._intl.getRangeLabel(It.pageIndex,It.pageSize,It.length)," "),p.xp6(1),p.Q6J("ngIf",It.showFirstLastButtons),p.xp6(1),p.Q6J("matTooltip",It._intl.previousPageLabel)("matTooltipDisabled",It._previousButtonsDisabled())("matTooltipPosition","above")("disabled",It._previousButtonsDisabled()),p.uIk("aria-label",It._intl.previousPageLabel),p.xp6(3),p.Q6J("matTooltip",It._intl.nextPageLabel)("matTooltipDisabled",It._nextButtonsDisabled())("matTooltipPosition","above")("disabled",It._nextButtonsDisabled()),p.uIk("aria-label",It._intl.nextPageLabel),p.xp6(3),p.Q6J("ngIf",It.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}),ft})(),At=(()=>{class ft{}return ft.\u0275fac=function(Bt){return new(Bt||ft)},ft.\u0275mod=p.oAB({type:ft}),ft.\u0275inj=p.cJS({providers:[bt],imports:[d.ez,T.ot,t.LD,A.AV,v.BQ]}),ft})()},73162:(ot,et,b)=>{"use strict";b.d(et,{Cv:()=>at,pW:()=>G});var d=b(94650),p=b(36895),v=b(3238),T=b(21281),t=b(42654),A=b(23753),C=b(92198);const U=["primaryValueBar"],k=(0,v.pj)(class{constructor(lt){this._elementRef=lt}},"primary"),D=new d.OlP("mat-progress-bar-location",{providedIn:"root",factory:function P(){const lt=(0,d.f3M)(p.K0),bt=lt?lt.location:null;return{getPathname:()=>bt?bt.pathname+bt.search:""}}}),I=new d.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let z=0,G=(()=>{class lt extends k{constructor(Pt,Dt,zt,Vt,nt,Tt){super(Pt),this._ngZone=Dt,this._animationMode=zt,this._changeDetectorRef=Tt,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 At=Vt?Vt.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${At}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===zt,nt&&(nt.color&&(this.color=this.defaultColor=nt.color),this.mode=nt.mode||this.mode)}get value(){return this._value}set value(Pt){this._value=K((0,T.su)(Pt)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(Pt){this._bufferValue=K(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,C.h)(Dt=>Dt.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 lt.\u0275fac=function(Pt){return new(Pt||lt)(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))},lt.\u0275cmp=d.Xpm({type:lt,selectors:[["mat-progress-bar"]],viewQuery:function(Pt,Dt){if(1&Pt&&d.Gf(U,5),2&Pt){let zt;d.iGM(zt=d.CRH())&&(Dt._primaryValueBar=zt.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(Pt,Dt){2&Pt&&(d.uIk("aria-valuenow","indeterminate"===Dt.mode||"query"===Dt.mode?null:Dt.value)("mode",Dt.mode),d.ekj("_mat-animation-noopable",Dt._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,Dt){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",Dt.progressbarId),d.xp6(2),d.uIk("fill",Dt._rectangleFillValue),d.xp6(1),d.Q6J("ngStyle",Dt._bufferTransform()),d.xp6(1),d.Q6J("ngStyle",Dt._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}),lt})();function K(lt,bt=0,Pt=100){return Math.max(bt,Math.min(Pt,lt))}let at=(()=>{class lt{}return lt.\u0275fac=function(Pt){return new(Pt||lt)},lt.\u0275mod=d.oAB({type:lt}),lt.\u0275inj=d.cJS({imports:[p.ez,v.BQ,v.BQ]}),lt})()},51572:(ot,et,b)=>{"use strict";b.d(et,{Cq:()=>lt,Ou:()=>at});var d=b(21281),p=b(83353),v=b(67376),T=b(36895),t=b(94650),A=b(3238),C=b(42654);function U(Pt,Dt){if(1&Pt&&(t.O4$(),t._UZ(0,"circle",4)),2&Pt){const zt=t.oxw(),Vt=t.MAs(1);t.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+zt._spinnerAnimationLabel)("stroke-dashoffset",zt._getStrokeDashOffset(),"px")("stroke-dasharray",zt._getStrokeCircumference(),"px")("stroke-width",zt._getCircleStrokeWidth(),"%")("transform-origin",zt._getCircleTransformOrigin(Vt)),t.uIk("r",zt._getCircleRadius())}}function k(Pt,Dt){if(1&Pt&&(t.O4$(),t._UZ(0,"circle",4)),2&Pt){const zt=t.oxw(),Vt=t.MAs(1);t.Udp("stroke-dashoffset",zt._getStrokeDashOffset(),"px")("stroke-dasharray",zt._getStrokeCircumference(),"px")("stroke-width",zt._getCircleStrokeWidth(),"%")("transform-origin",zt._getCircleTransformOrigin(Vt)),t.uIk("r",zt._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 at extends I{constructor(Dt,zt,Vt,nt,Tt,At,ft,Et){super(Dt),this._document=Vt,this._diameter=100,this._value=0,this._resizeSubscription=C.w.EMPTY,this.mode="determinate";const Bt=at._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Bt.has(Vt.head)||Bt.set(Vt.head,new Set([100])),this._noopAnimations="NoopAnimations"===nt&&!!Tt&&!Tt._forceAnimations,"mat-spinner"===Dt.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Tt&&(Tt.color&&(this.color=this.defaultColor=Tt.color),Tt.diameter&&(this.diameter=Tt.diameter),Tt.strokeWidth&&(this.strokeWidth=Tt.strokeWidth)),zt.isBrowser&&zt.SAFARI&&ft&&At&&Et&&(this._resizeSubscription=ft.change(150).subscribe(()=>{"indeterminate"===this.mode&&Et.run(()=>At.markForCheck())}))}get diameter(){return this._diameter}set diameter(Dt){this._diameter=(0,d.su)(Dt),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(Dt){this._strokeWidth=(0,d.su)(Dt)}get value(){return"determinate"===this.mode?this._value:0}set value(Dt){this._value=Math.max(0,Math.min(100,(0,d.su)(Dt)))}ngOnInit(){const Dt=this._elementRef.nativeElement;this._styleRoot=(0,p.kV)(Dt)||this._document.head,this._attachStyleNode(),Dt.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const Dt=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${Dt} ${Dt}`}_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(Dt){const zt=50*(Dt.currentScale??1);return`${zt}% ${zt}%`}_attachStyleNode(){const Dt=this._styleRoot,zt=this._diameter,Vt=at._diameters;let nt=Vt.get(Dt);if(!nt||!nt.has(zt)){const Tt=this._document.createElement("style");Tt.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Tt.textContent=this._getAnimationText(),Dt.appendChild(Tt),nt||(nt=new Set,Vt.set(Dt,nt)),nt.add(zt)}}_getAnimationText(){const Dt=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*Dt).replace(/END_VALUE/g,""+.2*Dt).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}at._diameters=new WeakMap,at.\u0275fac=function(Dt){return new(Dt||at)(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))},at.\u0275cmp=t.Xpm({type:at,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(Dt,zt){2&Dt&&(t.uIk("aria-valuemin","determinate"===zt.mode?0:null)("aria-valuemax","determinate"===zt.mode?100:null)("aria-valuenow","determinate"===zt.mode?zt.value:null)("mode",zt.mode),t.Udp("width",zt.diameter,"px")("height",zt.diameter,"px"),t.ekj("_mat-animation-noopable",zt._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(Dt,zt){1&Dt&&(t.O4$(),t.TgZ(0,"svg",0,1),t.YNc(2,U,1,11,"circle",2),t.YNc(3,k,1,9,"circle",3),t.qZA()),2&Dt&&(t.Udp("width",zt.diameter,"px")("height",zt.diameter,"px"),t.Q6J("ngSwitch","indeterminate"===zt.mode),t.uIk("viewBox",zt._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 lt=(()=>{class Pt{}return Pt.\u0275fac=function(zt){return new(zt||Pt)},Pt.\u0275mod=t.oAB({type:Pt}),Pt.\u0275inj=t.cJS({imports:[A.BQ,T.ez,A.BQ]}),Pt})()},71948:(ot,et,b)=>{"use strict";b.d(et,{Fk:()=>Vt,U0:()=>zt,VQ:()=>lt});var d=b(94650),p=b(3238),v=b(12687),T=b(21281),t=b(95017),A=b(24006);const C=["input"],U=function(nt){return{enterDuration:nt}},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)(()=>lt),multi:!0};class G{constructor(Tt,At){this.source=Tt,this.value=At}}const K=new d.OlP("MatRadioGroup");let at=(()=>{class nt{constructor(At){this._changeDetector=At,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(At){this._name=At,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(At){this._labelPosition="before"===At?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(At){this._value!==At&&(this._value=At,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(At){this._selected=At,this.value=At?At.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(At){this._disabled=(0,T.Ig)(At),this._markRadiosForCheck()}get required(){return this._required}set required(At){this._required=(0,T.Ig)(At),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(At=>{At.name=this.name,At._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(ft=>{ft.checked=this.value===ft.value,ft.checked&&(this._selected=ft)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new G(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(At=>At._markForCheck())}writeValue(At){this.value=At,this._changeDetector.markForCheck()}registerOnChange(At){this._controlValueAccessorChangeFn=At}registerOnTouched(At){this.onTouched=At}setDisabledState(At){this.disabled=At,this._changeDetector.markForCheck()}}return nt.\u0275fac=function(At){return new(At||nt)(d.Y36(d.sBO))},nt.\u0275dir=d.lG2({type:nt,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),nt})(),lt=(()=>{class nt extends at{}return nt.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=d.n5z(nt)))(ft||nt)}}(),nt.\u0275dir=d.lG2({type:nt,selectors:[["mat-radio-group"]],contentQueries:function(At,ft,Et){if(1&At&&d.Suo(Et,zt,5),2&At){let Bt;d.iGM(Bt=d.CRH())&&(ft._radios=Bt)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[d._Bn([z,{provide:K,useExisting:nt}]),d.qOj]}),nt})();class bt{constructor(Tt){this._elementRef=Tt}}const Pt=(0,p.Kr)((0,p.sb)(bt));let Dt=(()=>{class nt extends Pt{constructor(At,ft,Et,Bt,It,se,Jt,ve){super(ft),this._changeDetector=Et,this._focusMonitor=Bt,this._radioDispatcher=It,this._providerOverride=Jt,this._uniqueId="mat-radio-"+ ++I,this.id=this._uniqueId,this.change=new d.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=At,this._noopAnimations="NoopAnimations"===se,ve&&(this.tabIndex=(0,T.su)(ve,0)),this._removeUniqueSelectionListener=It.listen((xe,Oe)=>{xe!==this.id&&Oe===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(At){const ft=(0,T.Ig)(At);this._checked!==ft&&(this._checked=ft,ft&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!ft&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),ft&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(At){this._value!==At&&(this._value=At,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===At),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(At){this._labelPosition=At}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(At){this._setDisabled((0,T.Ig)(At))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(At){this._required=(0,T.Ig)(At)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(At){this._color=At}get inputId(){return`${this.id||this._uniqueId}-input`}focus(At,ft){ft?this._focusMonitor.focusVia(this._inputElement,ft,At):this._inputElement.nativeElement.focus(At)}_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(At=>{!At&&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(At){At.stopPropagation()}_onInputInteraction(At){if(At.stopPropagation(),!this.checked&&!this.disabled){const ft=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),ft&&this.radioGroup._emitChangeEvent())}}_setDisabled(At){this._disabled!==At&&(this._disabled=At,this._changeDetector.markForCheck())}_updateTabIndex(){const At=this.radioGroup;let ft;if(ft=At&&At.selected&&!this.disabled?At.selected===this?this.tabIndex:-1:this.tabIndex,ft!==this._previousTabIndex){const Et=this._inputElement?.nativeElement;Et&&(Et.setAttribute("tabindex",ft+""),this._previousTabIndex=ft)}}}return nt.\u0275fac=function(At){d.$Z()},nt.\u0275dir=d.lG2({type:nt,viewQuery:function(At,ft){if(1&At&&d.Gf(C,5),2&At){let Et;d.iGM(Et=d.CRH())&&(ft._inputElement=Et.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]}),nt})(),zt=(()=>{class nt extends Dt{constructor(At,ft,Et,Bt,It,se,Jt,ve){super(At,ft,Et,Bt,It,se,Jt,ve)}}return nt.\u0275fac=function(At){return new(At||nt)(d.Y36(K,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"))},nt.\u0275cmp=d.Xpm({type:nt,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(At,ft){1&At&&d.NdJ("focus",function(){return ft._inputElement.nativeElement.focus()}),2&At&&(d.uIk("tabindex",null)("id",ft.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),d.ekj("mat-radio-checked",ft.checked)("mat-radio-disabled",ft.disabled)("_mat-animation-noopable",ft._noopAnimations)("mat-primary","primary"===ft.color)("mat-accent","accent"===ft.color)("mat-warn","warn"===ft.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(At,ft){if(1&At&&(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(Bt){return ft._onInputInteraction(Bt)})("click",function(Bt){return ft._onInputClick(Bt)}),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&At){const Et=d.MAs(1);d.uIk("for",ft.inputId),d.xp6(5),d.Q6J("id",ft.inputId)("checked",ft.checked)("disabled",ft.disabled)("required",ft.required),d.uIk("name",ft.name)("value",ft.value)("aria-label",ft.ariaLabel)("aria-labelledby",ft.ariaLabelledby)("aria-describedby",ft.ariaDescribedby),d.xp6(2),d.Q6J("matRippleTrigger",Et)("matRippleDisabled",ft._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",d.VKq(17,U,ft._noopAnimations?0:150)),d.xp6(2),d.ekj("mat-radio-label-before","before"==ft.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}),nt})(),Vt=(()=>{class nt{}return nt.\u0275fac=function(At){return new(At||nt)},nt.\u0275mod=d.oAB({type:nt}),nt.\u0275inj=d.cJS({imports:[p.si,p.BQ,p.BQ]}),nt})()},84385:(ot,et,b)=>{"use strict";b.d(et,{LD:()=>ri,gD:()=>bi});var d=b(98184),p=b(36895),v=b(94650),T=b(3238),t=b(59549),A=b(67376),C=b(12687),U=b(40445),k=b(21281),D=b(95017),P=b(29521),I=b(24006),z=b(8929),G=b(88514),K=b(36787),at=b(1059),lt=b(87545),bt=b(72986),Pt=b(92198),Dt=b(24850),zt=b(75778),Vt=b(7625),nt=b(37340);const Tt=["trigger"],At=["panel"];function ft(Ke,ne){if(1&Ke&&(v.TgZ(0,"span",8),v._uU(1),v.qZA()),2&Ke){const ct=v.oxw();v.xp6(1),v.Oqu(ct.placeholder)}}function Et(Ke,ne){if(1&Ke&&(v.TgZ(0,"span",12),v._uU(1),v.qZA()),2&Ke){const ct=v.oxw(2);v.xp6(1),v.Oqu(ct.triggerValue)}}function Bt(Ke,ne){1&Ke&&v.Hsn(0,0,["*ngSwitchCase","true"])}function It(Ke,ne){if(1&Ke&&(v.TgZ(0,"span",9),v.YNc(1,Et,2,1,"span",10),v.YNc(2,Bt,1,0,"ng-content",11),v.qZA()),2&Ke){const ct=v.oxw();v.Q6J("ngSwitch",!!ct.customTrigger),v.xp6(2),v.Q6J("ngSwitchCase",!0)}}function se(Ke,ne){if(1&Ke){const ct=v.EpF();v.TgZ(0,"div",13)(1,"div",14,15),v.NdJ("@transformPanel.done",function(kt){v.CHM(ct);const Gt=v.oxw();return v.KtG(Gt._panelDoneAnimatingStream.next(kt.toState))})("keydown",function(kt){v.CHM(ct);const Gt=v.oxw();return v.KtG(Gt._handleKeydown(kt))}),v.Hsn(3,1),v.qZA()()}if(2&Ke){const ct=v.oxw();v.Q6J("@transformPanelWrap",void 0),v.xp6(1),v.Gre("mat-select-panel ",ct._getPanelTheme(),""),v.Udp("transform-origin",ct._transformOrigin)("font-size",ct._triggerFontSize,"px"),v.Q6J("ngClass",ct.panelClass)("@transformPanel",ct.multiple?"showing-multiple":"showing"),v.uIk("id",ct.id+"-panel")("aria-multiselectable",ct.multiple)("aria-label",ct.ariaLabel||null)("aria-labelledby",ct._getPanelAriaLabelledby())}}const Jt=[[["mat-select-trigger"]],"*"],ve=["mat-select-trigger","*"],xe={transformPanelWrap:(0,nt.X$)("transformPanelWrap",[(0,nt.eR)("* => void",(0,nt.IO)("@transformPanel",[(0,nt.pV)()],{optional:!0}))]),transformPanel:(0,nt.X$)("transformPanel",[(0,nt.SB)("void",(0,nt.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,nt.SB)("showing",(0,nt.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,nt.SB)("showing-multiple",(0,nt.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,nt.eR)("void => *",(0,nt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,nt.eR)("* => void",(0,nt.jt)("100ms 25ms linear",(0,nt.oB)({opacity:0})))])};let Xt=0;const Pe=new v.OlP("mat-select-scroll-strategy"),_n=new v.OlP("MAT_SELECT_CONFIG"),ye={provide:Pe,deps:[d.aV],useFactory:function on(Ke){return()=>Ke.scrollStrategies.reposition()}};class gn{constructor(ne,ct){this.source=ne,this.value=ct}}const Ue=(0,T.Kr)((0,T.sb)((0,T.Id)((0,T.FD)(class{constructor(Ke,ne,ct,it,kt){this._elementRef=Ke,this._defaultErrorStateMatcher=ne,this._parentForm=ct,this._parentFormGroup=it,this.ngControl=kt,this.stateChanges=new z.xQ}})))),un=new v.OlP("MatSelectTrigger");let oi=(()=>{class Ke extends Ue{constructor(ct,it,kt,Gt,oe,Ce,Ee,Pn,Ln,mi,Oi,ho,fi,Yn){super(oe,Gt,Ee,Pn,mi),this._viewportRuler=ct,this._changeDetectorRef=it,this._ngZone=kt,this._dir=Ce,this._parentFormField=Ln,this._liveAnnouncer=fi,this._defaultOptions=Yn,this._panelOpen=!1,this._compareWith=(jn,Ye)=>jn===Ye,this._uid="mat-select-"+Xt++,this._triggerAriaLabelledBy=null,this._destroy=new z.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+Xt++,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 jn=this.options;return jn?jn.changes.pipe((0,at.O)(jn),(0,lt.w)(()=>(0,K.T)(...jn.map(Ye=>Ye.onSelectionChange)))):this._ngZone.onStable.pipe((0,bt.q)(1),(0,lt.w)(()=>this.optionSelectionChanges))}),this.openedChange=new v.vpe,this._openedStream=this.openedChange.pipe((0,Pt.h)(jn=>jn),(0,Dt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Pt.h)(jn=>!jn),(0,Dt.U)(()=>{})),this.selectionChange=new v.vpe,this.valueChange=new v.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Yn?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Yn.typeaheadDebounceInterval),this._scrollStrategyFactory=ho,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Oi)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(ct){this._placeholder=ct,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(I.kI.required)??!1}set required(ct){this._required=(0,k.Ig)(ct),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(ct){this._multiple=(0,k.Ig)(ct)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(ct){this._disableOptionCentering=(0,k.Ig)(ct)}get compareWith(){return this._compareWith}set compareWith(ct){this._compareWith=ct,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(ct){this._assignValue(ct)&&this._onChange(ct)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(ct){this._typeaheadDebounceInterval=(0,k.su)(ct)}get id(){return this._id}set id(ct){this._id=ct||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new D.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,zt.x)(),(0,Vt.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Vt.R)(this._destroy)).subscribe(ct=>{ct.added.forEach(it=>it.select()),ct.removed.forEach(it=>it.deselect())}),this.options.changes.pipe((0,at.O)(null),(0,Vt.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const ct=this._getTriggerAriaLabelledby(),it=this.ngControl;if(ct!==this._triggerAriaLabelledBy){const kt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=ct,ct?kt.setAttribute("aria-labelledby",ct):kt.removeAttribute("aria-labelledby")}it&&(this._previousControl!==it.control&&(void 0!==this._previousControl&&null!==it.disabled&&it.disabled!==this.disabled&&(this.disabled=it.disabled),this._previousControl=it.control),this.updateErrorState())}ngOnChanges(ct){(ct.disabled||ct.userAriaDescribedBy)&&this.stateChanges.next(),ct.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(ct){this._assignValue(ct)}registerOnChange(ct){this._onChange=ct}registerOnTouched(ct){this._onTouched=ct}setDisabledState(ct){this.disabled=ct,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 ct=this._selectionModel.selected.map(it=>it.viewValue);return this._isRtl()&&ct.reverse(),ct.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(ct){this.disabled||(this.panelOpen?this._handleOpenKeydown(ct):this._handleClosedKeydown(ct))}_handleClosedKeydown(ct){const it=ct.keyCode,kt=it===P.JH||it===P.LH||it===P.oh||it===P.SV,Gt=it===P.K5||it===P.L_,oe=this._keyManager;if(!oe.isTyping()&&Gt&&!(0,P.Vb)(ct)||(this.multiple||ct.altKey)&&kt)ct.preventDefault(),this.open();else if(!this.multiple){const Ce=this.selected;oe.onKeydown(ct);const Ee=this.selected;Ee&&Ce!==Ee&&this._liveAnnouncer.announce(Ee.viewValue,1e4)}}_handleOpenKeydown(ct){const it=this._keyManager,kt=ct.keyCode,Gt=kt===P.JH||kt===P.LH,oe=it.isTyping();if(Gt&&ct.altKey)ct.preventDefault(),this.close();else if(oe||kt!==P.K5&&kt!==P.L_||!it.activeItem||(0,P.Vb)(ct))if(!oe&&this._multiple&&kt===P.A&&ct.ctrlKey){ct.preventDefault();const Ce=this.options.some(Ee=>!Ee.disabled&&!Ee.selected);this.options.forEach(Ee=>{Ee.disabled||(Ce?Ee.select():Ee.deselect())})}else{const Ce=it.activeItemIndex;it.onKeydown(ct),this._multiple&&Gt&&ct.shiftKey&&it.activeItem&&it.activeItemIndex!==Ce&&it.activeItem._selectViaInteraction()}else ct.preventDefault(),it.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,bt.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(ct){if(this._selectionModel.selected.forEach(it=>it.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&ct)Array.isArray(ct),ct.forEach(it=>this._selectOptionByValue(it)),this._sortValues();else{const it=this._selectOptionByValue(ct);it?this._keyManager.updateActiveItem(it):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(ct){const it=this.options.find(kt=>{if(this._selectionModel.isSelected(kt))return!1;try{return null!=kt.value&&this._compareWith(kt.value,ct)}catch{return!1}});return it&&this._selectionModel.select(it),it}_assignValue(ct){return!!(ct!==this._value||this._multiple&&Array.isArray(ct))&&(this.options&&this._setSelectionByValue(ct),this._value=ct,!0)}_initKeyManager(){this._keyManager=new C.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,Vt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,Vt.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 ct=(0,K.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Vt.R)(ct)).subscribe(it=>{this._onSelect(it.source,it.isUserInput),it.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,K.T)(...this.options.map(it=>it._stateChanges)).pipe((0,Vt.R)(ct)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(ct,it){const kt=this._selectionModel.isSelected(ct);null!=ct.value||this._multiple?(kt!==ct.selected&&(ct.selected?this._selectionModel.select(ct):this._selectionModel.deselect(ct)),it&&this._keyManager.setActiveItem(ct),this.multiple&&(this._sortValues(),it&&this.focus())):(ct.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(ct.value)),kt!==this._selectionModel.isSelected(ct)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const ct=this.options.toArray();this._selectionModel.sort((it,kt)=>this.sortComparator?this.sortComparator(it,kt,ct):ct.indexOf(it)-ct.indexOf(kt)),this.stateChanges.next()}}_propagateChanges(ct){let it=null;it=this.multiple?this.selected.map(kt=>kt.value):this.selected?this.selected.value:ct,this._value=it,this.valueChange.emit(it),this._onChange(it),this.selectionChange.emit(this._getChangeEvent(it)),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(ct){this._elementRef.nativeElement.focus(ct)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const ct=this._parentFormField?.getLabelId();return this.ariaLabelledby?(ct?ct+" ":"")+this.ariaLabelledby:ct}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const ct=this._parentFormField?.getLabelId();let it=(ct?ct+" ":"")+this._valueId;return this.ariaLabelledby&&(it+=" "+this.ariaLabelledby),it}_panelDoneAnimating(ct){this.openedChange.emit(ct)}setDescribedByIds(ct){ct.length?this._elementRef.nativeElement.setAttribute("aria-describedby",ct.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Ke.\u0275fac=function(ct){return new(ct||Ke)(v.Y36(A.rL),v.Y36(v.sBO),v.Y36(v.R0b),v.Y36(T.rD),v.Y36(v.SBq),v.Y36(U.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(Pe),v.Y36(C.Kd),v.Y36(_n,8))},Ke.\u0275dir=v.lG2({type:Ke,viewQuery:function(ct,it){if(1&ct&&(v.Gf(Tt,5),v.Gf(At,5),v.Gf(d.pI,5)),2&ct){let kt;v.iGM(kt=v.CRH())&&(it.trigger=kt.first),v.iGM(kt=v.CRH())&&(it.panel=kt.first),v.iGM(kt=v.CRH())&&(it._overlayDir=kt.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]}),Ke})(),bi=(()=>{class Ke extends oi{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(ct,it,kt){const Gt=this._getItemHeight();return Math.min(Math.max(0,Gt*ct-it+Gt/2),kt)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Vt.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,bt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(ct){const it=(0,T.CB)(ct,this.options,this.optionGroups),kt=this._getItemHeight();this.panel.nativeElement.scrollTop=0===ct&&1===it?0:(0,T.jH)((ct+it)*kt,kt,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(ct){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(ct)}_getChangeEvent(ct){return new gn(this,ct)}_calculateOverlayOffsetX(){const ct=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),it=this._viewportRuler.getViewportSize(),kt=this._isRtl(),Gt=this.multiple?56:32;let oe;if(this.multiple)oe=40;else if(this.disableOptionCentering)oe=16;else{let Pn=this._selectionModel.selected[0]||this.options.first;oe=Pn&&Pn.group?32:16}kt||(oe*=-1);const Ce=0-(ct.left+oe-(kt?Gt:0)),Ee=ct.right+oe-it.width+(kt?0:Gt);Ce>0?oe+=Ce+8:Ee>0&&(oe-=Ee+8),this._overlayDir.offsetX=Math.round(oe),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(ct,it,kt){const Gt=this._getItemHeight(),oe=(Gt-this._triggerRect.height)/2,Ce=Math.floor(256/Gt);let Ee;return this.disableOptionCentering?0:(Ee=0===this._scrollTop?ct*Gt:this._scrollTop===kt?(ct-(this._getItemCount()-Ce))*Gt+(Gt-(this._getItemCount()*Gt-256)%Gt):it-Gt/2,Math.round(-1*Ee-oe))}_checkOverlayWithinViewport(ct){const it=this._getItemHeight(),kt=this._viewportRuler.getViewportSize(),Gt=this._triggerRect.top-8,oe=kt.height-this._triggerRect.bottom-8,Ce=Math.abs(this._offsetY),Pn=Math.min(this._getItemCount()*it,256)-Ce-this._triggerRect.height;Pn>oe?this._adjustPanelUp(Pn,oe):Ce>Gt?this._adjustPanelDown(Ce,Gt,ct):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(ct,it){const kt=Math.round(ct-it);this._scrollTop-=kt,this._offsetY-=kt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(ct,it,kt){const Gt=Math.round(ct-it);if(this._scrollTop+=Gt,this._offsetY+=Gt,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=kt)return this._scrollTop=kt,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const ct=this._getItemHeight(),it=this._getItemCount(),kt=Math.min(it*ct,256),oe=it*ct-kt;let Ce;Ce=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),Ce+=(0,T.CB)(Ce,this.options,this.optionGroups);const Ee=kt/2;this._scrollTop=this._calculateOverlayScroll(Ce,Ee,oe),this._offsetY=this._calculateOverlayOffsetY(Ce,Ee,oe),this._checkOverlayWithinViewport(oe)}_getOriginBasedOnOption(){const ct=this._getItemHeight(),it=(ct-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-it+ct/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Ke.\u0275fac=function(){let ne;return function(it){return(ne||(ne=v.n5z(Ke)))(it||Ke)}}(),Ke.\u0275cmp=v.Xpm({type:Ke,selectors:[["mat-select"]],contentQueries:function(ct,it,kt){if(1&ct&&(v.Suo(kt,un,5),v.Suo(kt,T.ey,5),v.Suo(kt,T.K7,5)),2&ct){let Gt;v.iGM(Gt=v.CRH())&&(it.customTrigger=Gt.first),v.iGM(Gt=v.CRH())&&(it.options=Gt),v.iGM(Gt=v.CRH())&&(it.optionGroups=Gt)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(ct,it){1&ct&&v.NdJ("keydown",function(Gt){return it._handleKeydown(Gt)})("focus",function(){return it._onFocus()})("blur",function(){return it._onBlur()}),2&ct&&(v.uIk("id",it.id)("tabindex",it.tabIndex)("aria-controls",it.panelOpen?it.id+"-panel":null)("aria-expanded",it.panelOpen)("aria-label",it.ariaLabel||null)("aria-required",it.required.toString())("aria-disabled",it.disabled.toString())("aria-invalid",it.errorState)("aria-activedescendant",it._getAriaActiveDescendant()),v.ekj("mat-select-disabled",it.disabled)("mat-select-invalid",it.errorState)("mat-select-required",it.required)("mat-select-empty",it.empty)("mat-select-multiple",it.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[v._Bn([{provide:t.Eo,useExisting:Ke},{provide:T.HF,useExisting:Ke}]),v.qOj],ngContentSelectors:ve,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(ct,it){if(1&ct&&(v.F$t(Jt),v.TgZ(0,"div",0,1),v.NdJ("click",function(){return it.toggle()}),v.TgZ(3,"div",2),v.YNc(4,ft,2,1,"span",3),v.YNc(5,It,3,2,"span",4),v.qZA(),v.TgZ(6,"div",5),v._UZ(7,"div",6),v.qZA()(),v.YNc(8,se,4,14,"ng-template",7),v.NdJ("backdropClick",function(){return it.close()})("attach",function(){return it._onAttached()})("detach",function(){return it.close()})),2&ct){const kt=v.MAs(1);v.uIk("aria-owns",it.panelOpen?it.id+"-panel":null),v.xp6(3),v.Q6J("ngSwitch",it.empty),v.uIk("id",it._valueId),v.xp6(1),v.Q6J("ngSwitchCase",!0),v.xp6(1),v.Q6J("ngSwitchCase",!1),v.xp6(3),v.Q6J("cdkConnectedOverlayPanelClass",it._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",it._scrollStrategy)("cdkConnectedOverlayOrigin",kt)("cdkConnectedOverlayOpen",it.panelOpen)("cdkConnectedOverlayPositions",it._positions)("cdkConnectedOverlayMinWidth",null==it._triggerRect?null:it._triggerRect.width)("cdkConnectedOverlayOffsetY",it._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:[xe.transformPanelWrap,xe.transformPanel]},changeDetection:0}),Ke})(),ri=(()=>{class Ke{}return Ke.\u0275fac=function(ct){return new(ct||Ke)},Ke.\u0275mod=v.oAB({type:Ke}),Ke.\u0275inj=v.cJS({providers:[ye],imports:[p.ez,d.U8,T.Ng,T.BQ,A.ZD,t.lN,T.Ng,T.BQ]}),Ke})()},23267:(ot,et,b)=>{"use strict";b.d(et,{JX:()=>Wt,Rh:()=>de,SJ:()=>Pe,TM:()=>re});var d=b(67376),p=b(36895),v=b(94650),T=b(3238),t=b(12687),A=b(40445),C=b(21281),U=b(29521),k=b(83353),D=b(8929),P=b(23753),I=b(36787),z=b(92198),G=b(24850),K=b(77604),at=b(7625),lt=b(75778),bt=b(72986),Pt=b(1059),Dt=b(80013),zt=b(37340);const Vt=["*"],nt=["content"];function Tt(on,_n){if(1&on){const ye=v.EpF();v.TgZ(0,"div",2),v.NdJ("click",function(){v.CHM(ye);const Ue=v.oxw();return v.KtG(Ue._onBackdropClicked())}),v.qZA()}if(2&on){const ye=v.oxw();v.ekj("mat-drawer-shown",ye._isShowingBackdrop())}}function At(on,_n){1&on&&(v.TgZ(0,"mat-drawer-content"),v.Hsn(1,2),v.qZA())}const ft=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Et=["mat-drawer","mat-drawer-content","*"];function Bt(on,_n){if(1&on){const ye=v.EpF();v.TgZ(0,"div",2),v.NdJ("click",function(){v.CHM(ye);const Ue=v.oxw();return v.KtG(Ue._onBackdropClicked())}),v.qZA()}if(2&on){const ye=v.oxw();v.ekj("mat-drawer-shown",ye._isShowingBackdrop())}}function It(on,_n){1&on&&(v.TgZ(0,"mat-sidenav-content"),v.Hsn(1,2),v.qZA())}const se=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Jt=["mat-sidenav","mat-sidenav-content","*"],xe={transformDrawer:(0,zt.X$)("transform",[(0,zt.SB)("open, open-instant",(0,zt.oB)({transform:"none",visibility:"visible"})),(0,zt.SB)("void",(0,zt.oB)({"box-shadow":"none",visibility:"hidden"})),(0,zt.eR)("void => open-instant",(0,zt.jt)("0ms")),(0,zt.eR)("void <=> open, open-instant => void",(0,zt.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},qe=new v.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Xt(){return!1}}),$e=new v.OlP("MAT_DRAWER_CONTAINER");let we=(()=>{class on extends d.PQ{constructor(ye,gn,Ue,un,Mn){super(Ue,un,Mn),this._changeDetectorRef=ye,this._container=gn}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return on.\u0275fac=function(ye){return new(ye||on)(v.Y36(v.sBO),v.Y36((0,v.Gpc)(()=>Kt)),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(ye,gn){2&ye&&v.Udp("margin-left",gn._container._contentMargins.left,"px")("margin-right",gn._container._contentMargins.right,"px")},features:[v._Bn([{provide:d.PQ,useExisting:on}]),v.qOj],ngContentSelectors:Vt,decls:1,vars:0,template:function(ye,gn){1&ye&&(v.F$t(),v.Hsn(0))},encapsulation:2,changeDetection:0}),on})(),ae=(()=>{class on{constructor(ye,gn,Ue,un,Mn,oi,bi,ri){this._elementRef=ye,this._focusTrapFactory=gn,this._focusMonitor=Ue,this._platform=un,this._ngZone=Mn,this._interactivityChecker=oi,this._doc=bi,this._container=ri,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)(Ke=>Ke),(0,G.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,z.h)(Ke=>Ke.fromState!==Ke.toState&&0===Ke.toState.indexOf("open")),(0,K.h)(void 0)),this._closedStream=this.openedChange.pipe((0,z.h)(Ke=>!Ke),(0,G.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,z.h)(Ke=>Ke.fromState!==Ke.toState&&"void"===Ke.toState),(0,K.h)(void 0)),this._destroyed=new D.xQ,this.onPositionChanged=new v.vpe,this._modeChanged=new D.xQ,this.openedChange.subscribe(Ke=>{Ke?(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)(Ke=>Ke.keyCode===U.hY&&!this.disableClose&&!(0,U.Vb)(Ke)),(0,at.R)(this._destroyed)).subscribe(Ke=>this._ngZone.run(()=>{this.close(),Ke.stopPropagation(),Ke.preventDefault()}))}),this._animationEnd.pipe((0,lt.x)((Ke,ne)=>Ke.fromState===ne.fromState&&Ke.toState===ne.toState)).subscribe(Ke=>{const{fromState:ne,toState:ct}=Ke;(0===ct.indexOf("open")&&"void"===ne||"void"===ct&&0===ne.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(ye){(ye="end"===ye?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(ye),this._position=ye,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(ye){this._mode=ye,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(ye){this._disableClose=(0,C.Ig)(ye)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(ye){("true"===ye||"false"===ye||null==ye)&&(ye=(0,C.Ig)(ye)),this._autoFocus=ye}get opened(){return this._opened}set opened(ye){this.toggle((0,C.Ig)(ye))}_forceFocus(ye,gn){this._interactivityChecker.isFocusable(ye)||(ye.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ue=()=>{ye.removeEventListener("blur",Ue),ye.removeEventListener("mousedown",Ue),ye.removeAttribute("tabindex")};ye.addEventListener("blur",Ue),ye.addEventListener("mousedown",Ue)})),ye.focus(gn)}_focusByCssSelector(ye,gn){let Ue=this._elementRef.nativeElement.querySelector(ye);Ue&&this._forceFocus(Ue,gn)}_takeFocus(){if(!this._focusTrap)return;const ye=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(gn=>{!gn&&"function"==typeof this._elementRef.nativeElement.focus&&ye.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(ye){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,ye):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const ye=this._doc.activeElement;return!!ye&&this._elementRef.nativeElement.contains(ye)}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(ye){return this.toggle(!0,ye)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(ye=!this.opened,gn){ye&&gn&&(this._openedVia=gn);const Ue=this._setOpen(ye,!ye&&this._isFocusWithinDrawer(),this._openedVia||"program");return ye||(this._openedVia=null),Ue}_setOpen(ye,gn,Ue){return this._opened=ye,ye?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",gn&&this._restoreFocus(Ue)),this._updateFocusTrapState(),new Promise(un=>{this.openedChange.pipe((0,bt.q)(1)).subscribe(Mn=>un(Mn?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(ye){const gn=this._elementRef.nativeElement,Ue=gn.parentNode;"end"===ye?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Ue.insertBefore(this._anchor,gn)),Ue.appendChild(gn)):this._anchor&&this._anchor.parentNode.insertBefore(gn,this._anchor)}}return on.\u0275fac=function(ye){return new(ye||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($e,8))},on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-drawer"]],viewQuery:function(ye,gn){if(1&ye&&v.Gf(nt,5),2&ye){let Ue;v.iGM(Ue=v.CRH())&&(gn._content=Ue.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(ye,gn){1&ye&&v.WFA("@transform.start",function(un){return gn._animationStarted.next(un)})("@transform.done",function(un){return gn._animationEnd.next(un)}),2&ye&&(v.uIk("align",null),v.d8E("@transform",gn._animationState),v.ekj("mat-drawer-end","end"===gn.position)("mat-drawer-over","over"===gn.mode)("mat-drawer-push","push"===gn.mode)("mat-drawer-side","side"===gn.mode)("mat-drawer-opened",gn.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:Vt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(ye,gn){1&ye&&(v.F$t(),v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA())},dependencies:[d.PQ],encapsulation:2,data:{animation:[xe.transformDrawer]},changeDetection:0}),on})(),Kt=(()=>{class on{constructor(ye,gn,Ue,un,Mn,oi=!1,bi){this._dir=ye,this._element=gn,this._ngZone=Ue,this._changeDetectorRef=un,this._animationMode=bi,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,ye&&ye.change.pipe((0,at.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Mn.change().pipe((0,at.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=oi}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(ye){this._autosize=(0,C.Ig)(ye)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(ye){this._backdropOverride=null==ye?null:(0,C.Ig)(ye)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,Pt.O)(this._allDrawers),(0,at.R)(this._destroyed)).subscribe(ye=>{this._drawers.reset(ye.filter(gn=>!gn._container||gn._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,Pt.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(ye=>{this._watchDrawerToggle(ye),this._watchDrawerPosition(ye),this._watchDrawerMode(ye)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Dt.b)(10),(0,at.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(ye=>ye.open())}close(){this._drawers.forEach(ye=>ye.close())}updateContentMargins(){let ye=0,gn=0;if(this._left&&this._left.opened)if("side"==this._left.mode)ye+=this._left._getWidth();else if("push"==this._left.mode){const Ue=this._left._getWidth();ye+=Ue,gn-=Ue}if(this._right&&this._right.opened)if("side"==this._right.mode)gn+=this._right._getWidth();else if("push"==this._right.mode){const Ue=this._right._getWidth();gn+=Ue,ye-=Ue}ye=ye||null,gn=gn||null,(ye!==this._contentMargins.left||gn!==this._contentMargins.right)&&(this._contentMargins={left:ye,right:gn},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(ye){ye._animationStarted.pipe((0,z.h)(gn=>gn.fromState!==gn.toState),(0,at.R)(this._drawers.changes)).subscribe(gn=>{"open-instant"!==gn.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==ye.mode&&ye.openedChange.pipe((0,at.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(ye.opened))}_watchDrawerPosition(ye){!ye||ye.onPositionChanged.pipe((0,at.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,bt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(ye){ye&&ye._modeChanged.pipe((0,at.R)((0,I.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(ye){const gn=this._element.nativeElement.classList,Ue="mat-drawer-container-has-open";ye?gn.add(Ue):gn.remove(Ue)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(ye=>{"end"==ye.position?this._end=ye:this._start=ye}),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(ye=>ye&&!ye.disableClose&&this._canHaveBackdrop(ye)).forEach(ye=>ye._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(ye){return"side"!==ye.mode||!!this._backdropOverride}_isDrawerOpen(ye){return null!=ye&&ye.opened}}return on.\u0275fac=function(ye){return new(ye||on)(v.Y36(A.Is,8),v.Y36(v.SBq),v.Y36(v.R0b),v.Y36(v.sBO),v.Y36(d.rL),v.Y36(qe),v.Y36(v.QbO,8))},on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-drawer-container"]],contentQueries:function(ye,gn,Ue){if(1&ye&&(v.Suo(Ue,we,5),v.Suo(Ue,ae,5)),2&ye){let un;v.iGM(un=v.CRH())&&(gn._content=un.first),v.iGM(un=v.CRH())&&(gn._allDrawers=un)}},viewQuery:function(ye,gn){if(1&ye&&v.Gf(we,5),2&ye){let Ue;v.iGM(Ue=v.CRH())&&(gn._userContent=Ue.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(ye,gn){2&ye&&v.ekj("mat-drawer-container-explicit-backdrop",gn._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[v._Bn([{provide:$e,useExisting:on}])],ngContentSelectors:Et,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(ye,gn){1&ye&&(v.F$t(ft),v.YNc(0,Tt,1,2,"div",0),v.Hsn(1),v.Hsn(2,1),v.YNc(3,At,2,0,"mat-drawer-content",1)),2&ye&&(v.Q6J("ngIf",gn.hasBackdrop),v.xp6(3),v.Q6J("ngIf",!gn._content))},dependencies:[p.O5,we],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})(),de=(()=>{class on extends we{constructor(ye,gn,Ue,un,Mn){super(ye,gn,Ue,un,Mn)}}return on.\u0275fac=function(ye){return new(ye||on)(v.Y36(v.sBO),v.Y36((0,v.Gpc)(()=>re)),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(ye,gn){2&ye&&v.Udp("margin-left",gn._container._contentMargins.left,"px")("margin-right",gn._container._contentMargins.right,"px")},features:[v._Bn([{provide:d.PQ,useExisting:on}]),v.qOj],ngContentSelectors:Vt,decls:1,vars:0,template:function(ye,gn){1&ye&&(v.F$t(),v.Hsn(0))},encapsulation:2,changeDetection:0}),on})(),Wt=(()=>{class on extends ae{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(ye){this._fixedInViewport=(0,C.Ig)(ye)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(ye){this._fixedTopGap=(0,C.su)(ye)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(ye){this._fixedBottomGap=(0,C.su)(ye)}}return on.\u0275fac=function(){let _n;return function(gn){return(_n||(_n=v.n5z(on)))(gn||on)}}(),on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(ye,gn){2&ye&&(v.uIk("align",null),v.Udp("top",gn.fixedInViewport?gn.fixedTopGap:null,"px")("bottom",gn.fixedInViewport?gn.fixedBottomGap:null,"px"),v.ekj("mat-drawer-end","end"===gn.position)("mat-drawer-over","over"===gn.mode)("mat-drawer-push","push"===gn.mode)("mat-drawer-side","side"===gn.mode)("mat-drawer-opened",gn.opened)("mat-sidenav-fixed",gn.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[v.qOj],ngContentSelectors:Vt,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(ye,gn){1&ye&&(v.F$t(),v.TgZ(0,"div",0,1),v.Hsn(2),v.qZA())},dependencies:[d.PQ],encapsulation:2,data:{animation:[xe.transformDrawer]},changeDetection:0}),on})(),re=(()=>{class on extends Kt{}return on.\u0275fac=function(){let _n;return function(gn){return(_n||(_n=v.n5z(on)))(gn||on)}}(),on.\u0275cmp=v.Xpm({type:on,selectors:[["mat-sidenav-container"]],contentQueries:function(ye,gn,Ue){if(1&ye&&(v.Suo(Ue,de,5),v.Suo(Ue,Wt,5)),2&ye){let un;v.iGM(un=v.CRH())&&(gn._content=un.first),v.iGM(un=v.CRH())&&(gn._allDrawers=un)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(ye,gn){2&ye&&v.ekj("mat-drawer-container-explicit-backdrop",gn._backdropOverride)},exportAs:["matSidenavContainer"],features:[v._Bn([{provide:$e,useExisting:on}]),v.qOj],ngContentSelectors:Jt,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(ye,gn){1&ye&&(v.F$t(se),v.YNc(0,Bt,1,2,"div",0),v.Hsn(1),v.Hsn(2,1),v.YNc(3,It,2,0,"mat-sidenav-content",1)),2&ye&&(v.Q6J("ngIf",gn.hasBackdrop),v.xp6(3),v.Q6J("ngIf",!gn._content))},dependencies:[p.O5,de],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})(),Pe=(()=>{class on{}return on.\u0275fac=function(ye){return new(ye||on)},on.\u0275mod=v.oAB({type:on}),on.\u0275inj=v.cJS({imports:[p.ez,T.BQ,d.ZD,d.ZD,T.BQ]}),on})()},90455:(ot,et,b)=>{"use strict";b.d(et,{Rr:()=>at,rP:()=>Dt});var d=b(49643),p=b(94650),v=b(3238),T=b(12687),t=b(21281),A=b(24006);const C=["input"],U=function(zt){return{enterDuration:zt}},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)(()=>at),multi:!0};class z{constructor(Vt,nt){this.source=Vt,this.checked=nt}}const G=(0,v.sb)((0,v.pj)((0,v.Kr)((0,v.Id)(class{constructor(zt){this._elementRef=zt}}))));let K=(()=>{class zt extends G{constructor(nt,Tt,At,ft,Et,Bt,It){super(nt),this._focusMonitor=Tt,this._changeDetectorRef=At,this.defaults=Et,this._onChange=se=>{},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(ft)||0,this.color=this.defaultColor=Et.color||"accent",this._noopAnimations="NoopAnimations"===Bt,this.id=this._uniqueId=`${It}${++P}`}get required(){return this._required}set required(nt){this._required=(0,t.Ig)(nt)}get checked(){return this._checked}set checked(nt){this._checked=(0,t.Ig)(nt),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(nt=>{"keyboard"===nt||"program"===nt?this._focused=!0:nt||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(nt){this.checked=!!nt}registerOnChange(nt){this._onChange=nt}registerOnTouched(nt){this._onTouched=nt}setDisabledState(nt){this.disabled=nt,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 zt.\u0275fac=function(nt){p.$Z()},zt.\u0275dir=p.lG2({type:zt,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]}),zt})(),at=(()=>{class zt extends K{constructor(nt,Tt,At,ft,Et,Bt){super(nt,Tt,At,ft,Et,Bt,"mat-slide-toggle-")}_createChangeEvent(nt){return new z(this,nt)}_onChangeEvent(nt){nt.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(nt){nt.stopPropagation()}focus(nt,Tt){Tt?this._focusMonitor.focusVia(this._inputElement,Tt,nt):this._inputElement.nativeElement.focus(nt)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return zt.\u0275fac=function(nt){return new(nt||zt)(p.Y36(p.SBq),p.Y36(T.tE),p.Y36(p.sBO),p.$8M("tabindex"),p.Y36(D),p.Y36(p.QbO,8))},zt.\u0275cmp=p.Xpm({type:zt,selectors:[["mat-slide-toggle"]],viewQuery:function(nt,Tt){if(1&nt&&p.Gf(C,5),2&nt){let At;p.iGM(At=p.CRH())&&(Tt._inputElement=At.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(nt,Tt){2&nt&&(p.Ikx("id",Tt.id),p.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),p.ekj("mat-checked",Tt.checked)("mat-disabled",Tt.disabled)("mat-slide-toggle-label-before","before"==Tt.labelPosition)("_mat-animation-noopable",Tt._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(nt,Tt){if(1&nt&&(p.F$t(),p.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),p.NdJ("change",function(ft){return Tt._onChangeEvent(ft)})("click",function(ft){return Tt._onInputClick(ft)}),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 Tt._onLabelTextChange()}),p.TgZ(11,"span",11),p._uU(12,"\xa0"),p.qZA(),p.Hsn(13),p.qZA()()),2&nt){const At=p.MAs(1),ft=p.MAs(10);p.uIk("for",Tt.inputId),p.xp6(2),p.ekj("mat-slide-toggle-bar-no-side-margin",!ft.textContent||!ft.textContent.trim()),p.xp6(1),p.Q6J("id",Tt.inputId)("required",Tt.required)("tabIndex",Tt.tabIndex)("checked",Tt.checked)("disabled",Tt.disabled),p.uIk("name",Tt.name)("aria-checked",Tt.checked)("aria-label",Tt.ariaLabel)("aria-labelledby",Tt.ariaLabelledby)("aria-describedby",Tt.ariaDescribedby),p.xp6(4),p.Q6J("matRippleTrigger",At)("matRippleDisabled",Tt.disableRipple||Tt.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",p.VKq(18,U,Tt._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}),zt})(),Pt=(()=>{class zt{}return zt.\u0275fac=function(nt){return new(nt||zt)},zt.\u0275mod=p.oAB({type:zt}),zt.\u0275inj=p.cJS({}),zt})(),Dt=(()=>{class zt{}return zt.\u0275fac=function(nt){return new(nt||zt)},zt.\u0275mod=p.oAB({type:zt}),zt.\u0275inj=p.cJS({imports:[Pt,v.si,v.BQ,d.Q8,Pt,v.BQ]}),zt})()},17009:(ot,et,b)=>{"use strict";b.d(et,{ZX:()=>Tt,ux:()=>Bt});var d=b(98184),p=b(84080),v=b(36895),T=b(94650),t=b(3238),A=b(4859),C=b(8929),U=b(83353),k=b(72986),D=b(7625),P=b(37340),I=b(12687),z=b(62289);function G(It,se){if(1&It){const Jt=T.EpF();T.TgZ(0,"div",2)(1,"button",3),T.NdJ("click",function(){T.CHM(Jt);const xe=T.oxw();return T.KtG(xe.action())}),T._uU(2),T.qZA()()}if(2&It){const Jt=T.oxw();T.xp6(2),T.Oqu(Jt.data.action)}}function K(It,se){}const at=new T.OlP("MatSnackBarData");class lt{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const bt=Math.pow(2,31)-1;class Pt{constructor(se,Jt){this._overlayRef=Jt,this._afterDismissed=new C.xQ,this._afterOpened=new C.xQ,this._onAction=new C.xQ,this._dismissedByAction=!1,this.containerInstance=se,se._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(se){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(se,bt))}_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 Dt=(()=>{class It{constructor(Jt,ve){this.snackBarRef=Jt,this.data=ve}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return It.\u0275fac=function(Jt){return new(Jt||It)(T.Y36(Pt),T.Y36(at))},It.\u0275cmp=T.Xpm({type:It,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(Jt,ve){1&Jt&&(T.TgZ(0,"span",0),T._uU(1),T.qZA(),T.YNc(2,G,3,1,"div",1)),2&Jt&&(T.xp6(1),T.Oqu(ve.data.message),T.xp6(1),T.Q6J("ngIf",ve.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}),It})();const zt={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 Vt=(()=>{class It extends p.en{constructor(Jt,ve,xe,Oe,qe){super(),this._ngZone=Jt,this._elementRef=ve,this._changeDetectorRef=xe,this._platform=Oe,this.snackBarConfig=qe,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new C.xQ,this._onExit=new C.xQ,this._onEnter=new C.xQ,this._animationState="void",this.attachDomPortal=$e=>{this._assertNotAttached();const Xt=this._portalOutlet.attachDomPortal($e);return this._afterPortalAttached(),Xt},this._live="assertive"!==qe.politeness||qe.announcementMessage?"off"===qe.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(Jt){this._assertNotAttached();const ve=this._portalOutlet.attachComponentPortal(Jt);return this._afterPortalAttached(),ve}attachTemplatePortal(Jt){this._assertNotAttached();const ve=this._portalOutlet.attachTemplatePortal(Jt);return this._afterPortalAttached(),ve}onAnimationEnd(Jt){const{fromState:ve,toState:xe}=Jt;if(("void"===xe&&"void"!==ve||"hidden"===xe)&&this._completeExit(),"visible"===xe){const Oe=this._onEnter;this._ngZone.run(()=>{Oe.next(),Oe.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 Jt=this._elementRef.nativeElement,ve=this.snackBarConfig.panelClass;ve&&(Array.isArray(ve)?ve.forEach(xe=>Jt.classList.add(xe)):Jt.classList.add(ve))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const Jt=this._elementRef.nativeElement.querySelector("[aria-hidden]"),ve=this._elementRef.nativeElement.querySelector("[aria-live]");if(Jt&&ve){let xe=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&Jt.contains(document.activeElement)&&(xe=document.activeElement),Jt.removeAttribute("aria-hidden"),ve.appendChild(Jt),xe?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return It.\u0275fac=function(Jt){return new(Jt||It)(T.Y36(T.R0b),T.Y36(T.SBq),T.Y36(T.sBO),T.Y36(U.t4),T.Y36(lt))},It.\u0275dir=T.lG2({type:It,viewQuery:function(Jt,ve){if(1&Jt&&T.Gf(p.Pl,7),2&Jt){let xe;T.iGM(xe=T.CRH())&&(ve._portalOutlet=xe.first)}},features:[T.qOj]}),It})(),nt=(()=>{class It extends Vt{_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 It.\u0275fac=function(){let se;return function(ve){return(se||(se=T.n5z(It)))(ve||It)}}(),It.\u0275cmp=T.Xpm({type:It,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(Jt,ve){1&Jt&&T.WFA("@state.done",function(Oe){return ve.onAnimationEnd(Oe)}),2&Jt&&T.d8E("@state",ve._animationState)},features:[T.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Jt,ve){1&Jt&&(T.TgZ(0,"div",0),T.YNc(1,K,0,0,"ng-template",1),T.qZA(),T._UZ(2,"div")),2&Jt&&(T.xp6(2),T.uIk("aria-live",ve._live)("role",ve._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:[zt.snackBarState]}}),It})(),Tt=(()=>{class It{}return It.\u0275fac=function(Jt){return new(Jt||It)},It.\u0275mod=T.oAB({type:It}),It.\u0275inj=T.cJS({imports:[d.U8,p.eL,v.ez,A.ot,t.BQ,t.BQ]}),It})();const At=new T.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function ft(){return new lt}});let Et=(()=>{class It{constructor(Jt,ve,xe,Oe,qe,$e){this._overlay=Jt,this._live=ve,this._injector=xe,this._breakpointObserver=Oe,this._parentSnackBar=qe,this._defaultConfig=$e,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const Jt=this._parentSnackBar;return Jt?Jt._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(Jt){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=Jt:this._snackBarRefAtThisLevel=Jt}openFromComponent(Jt,ve){return this._attach(Jt,ve)}openFromTemplate(Jt,ve){return this._attach(Jt,ve)}open(Jt,ve="",xe){const Oe={...this._defaultConfig,...xe};return Oe.data={message:Jt,action:ve},Oe.announcementMessage===Jt&&(Oe.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Oe)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(Jt,ve){const Oe=T.zs3.create({parent:ve&&ve.viewContainerRef&&ve.viewContainerRef.injector||this._injector,providers:[{provide:lt,useValue:ve}]}),qe=new p.C5(this.snackBarContainerComponent,ve.viewContainerRef,Oe),$e=Jt.attach(qe);return $e.instance.snackBarConfig=ve,$e.instance}_attach(Jt,ve){const xe={...new lt,...this._defaultConfig,...ve},Oe=this._createOverlay(xe),qe=this._attachSnackBarContainer(Oe,xe),$e=new Pt(qe,Oe);if(Jt instanceof T.Rgc){const Xt=new p.UE(Jt,null,{$implicit:xe.data,snackBarRef:$e});$e.instance=qe.attachTemplatePortal(Xt)}else{const Xt=this._createInjector(xe,$e),we=new p.C5(Jt,void 0,Xt),ae=qe.attachComponentPortal(we);$e.instance=ae.instance}return this._breakpointObserver.observe(z.u3.HandsetPortrait).pipe((0,D.R)(Oe.detachments())).subscribe(Xt=>{Oe.overlayElement.classList.toggle(this.handsetCssClass,Xt.matches)}),xe.announcementMessage&&qe._onAnnounce.subscribe(()=>{this._live.announce(xe.announcementMessage,xe.politeness)}),this._animateSnackBar($e,xe),this._openedSnackBarRef=$e,this._openedSnackBarRef}_animateSnackBar(Jt,ve){Jt.afterDismissed().subscribe(()=>{this._openedSnackBarRef==Jt&&(this._openedSnackBarRef=null),ve.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{Jt.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):Jt.containerInstance.enter(),ve.duration&&ve.duration>0&&Jt.afterOpened().subscribe(()=>Jt._dismissAfter(ve.duration))}_createOverlay(Jt){const ve=new d.X_;ve.direction=Jt.direction;let xe=this._overlay.position().global();const Oe="rtl"===Jt.direction,qe="left"===Jt.horizontalPosition||"start"===Jt.horizontalPosition&&!Oe||"end"===Jt.horizontalPosition&&Oe,$e=!qe&&"center"!==Jt.horizontalPosition;return qe?xe.left("0"):$e?xe.right("0"):xe.centerHorizontally(),"top"===Jt.verticalPosition?xe.top("0"):xe.bottom("0"),ve.positionStrategy=xe,this._overlay.create(ve)}_createInjector(Jt,ve){return T.zs3.create({parent:Jt&&Jt.viewContainerRef&&Jt.viewContainerRef.injector||this._injector,providers:[{provide:Pt,useValue:ve},{provide:at,useValue:Jt.data}]})}}return It.\u0275fac=function(Jt){return new(Jt||It)(T.LFG(d.aV),T.LFG(I.Kd),T.LFG(T.zs3),T.LFG(z.Yg),T.LFG(It,12),T.LFG(At))},It.\u0275prov=T.Yz7({token:It,factory:It.\u0275fac}),It})(),Bt=(()=>{class It extends Et{constructor(Jt,ve,xe,Oe,qe,$e){super(Jt,ve,xe,Oe,qe,$e),this.simpleSnackBarComponent=Dt,this.snackBarContainerComponent=nt,this.handsetCssClass="mat-snack-bar-handset"}}return It.\u0275fac=function(Jt){return new(Jt||It)(T.LFG(d.aV),T.LFG(I.Kd),T.LFG(T.zs3),T.LFG(z.Yg),T.LFG(It,12),T.LFG(At))},It.\u0275prov=T.Yz7({token:It,factory:It.\u0275fac,providedIn:Tt}),It})()},96308:(ot,et,b)=>{"use strict";b.d(et,{JX:()=>Bt,YE:()=>Pt,nU:()=>Et});var d=b(94650),p=b(12687),v=b(21281),T=b(29521),t=b(3238),A=b(8929),C=b(36787),U=b(37340),k=b(36895);const D=["mat-sort-header",""];function P(It,se){if(1&It){const Jt=d.EpF();d.TgZ(0,"div",3),d.NdJ("@arrowPosition.start",function(){d.CHM(Jt);const xe=d.oxw();return d.KtG(xe._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){d.CHM(Jt);const xe=d.oxw();return d.KtG(xe._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&It){const Jt=d.oxw();d.Q6J("@arrowOpacity",Jt._getArrowViewState())("@arrowPosition",Jt._getArrowViewState())("@allowChildren",Jt._getArrowDirectionState()),d.xp6(2),d.Q6J("@indicator",Jt._getArrowDirectionState()),d.xp6(1),d.Q6J("@leftPointer",Jt._getArrowDirectionState()),d.xp6(1),d.Q6J("@rightPointer",Jt._getArrowDirectionState())}}const I=["*"],lt=new d.OlP("MAT_SORT_DEFAULT_OPTIONS"),bt=(0,t.dB)((0,t.Id)(class{}));let Pt=(()=>{class It extends bt{constructor(Jt){super(),this._defaultOptions=Jt,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(Jt){this._direction=Jt}get disableClear(){return this._disableClear}set disableClear(Jt){this._disableClear=(0,v.Ig)(Jt)}register(Jt){this.sortables.set(Jt.id,Jt)}deregister(Jt){this.sortables.delete(Jt.id)}sort(Jt){this.active!=Jt.id?(this.active=Jt.id,this.direction=Jt.start?Jt.start:this.start):this.direction=this.getNextSortDirection(Jt),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(Jt){if(!Jt)return"";let xe=function Dt(It,se){let Jt=["asc","desc"];return"desc"==It&&Jt.reverse(),se||Jt.push(""),Jt}(Jt.start||this.start,Jt?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),Oe=xe.indexOf(this.direction)+1;return Oe>=xe.length&&(Oe=0),xe[Oe]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return It.\u0275fac=function(Jt){return new(Jt||It)(d.Y36(lt,8))},It.\u0275dir=d.lG2({type:It,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]}),It})();const zt=t.mZ.ENTERING+" "+t.yN.STANDARD_CURVE,Vt={indicator:(0,U.X$)("indicator",[(0,U.SB)("active-asc, asc",(0,U.oB)({transform:"translateY(0px)"})),(0,U.SB)("active-desc, desc",(0,U.oB)({transform:"translateY(10px)"})),(0,U.eR)("active-asc <=> active-desc",(0,U.jt)(zt))]),leftPointer:(0,U.X$)("leftPointer",[(0,U.SB)("active-asc, asc",(0,U.oB)({transform:"rotate(-45deg)"})),(0,U.SB)("active-desc, desc",(0,U.oB)({transform:"rotate(45deg)"})),(0,U.eR)("active-asc <=> active-desc",(0,U.jt)(zt))]),rightPointer:(0,U.X$)("rightPointer",[(0,U.SB)("active-asc, asc",(0,U.oB)({transform:"rotate(45deg)"})),(0,U.SB)("active-desc, desc",(0,U.oB)({transform:"rotate(-45deg)"})),(0,U.eR)("active-asc <=> active-desc",(0,U.jt)(zt))]),arrowOpacity:(0,U.X$)("arrowOpacity",[(0,U.SB)("desc-to-active, asc-to-active, active",(0,U.oB)({opacity:1})),(0,U.SB)("desc-to-hint, asc-to-hint, hint",(0,U.oB)({opacity:.54})),(0,U.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,U.oB)({opacity:0})),(0,U.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,U.jt)("0ms")),(0,U.eR)("* <=> *",(0,U.jt)(zt))]),arrowPosition:(0,U.X$)("arrowPosition",[(0,U.eR)("* => desc-to-hint, * => desc-to-active",(0,U.jt)(zt,(0,U.F4)([(0,U.oB)({transform:"translateY(-25%)"}),(0,U.oB)({transform:"translateY(0)"})]))),(0,U.eR)("* => hint-to-desc, * => active-to-desc",(0,U.jt)(zt,(0,U.F4)([(0,U.oB)({transform:"translateY(0)"}),(0,U.oB)({transform:"translateY(25%)"})]))),(0,U.eR)("* => asc-to-hint, * => asc-to-active",(0,U.jt)(zt,(0,U.F4)([(0,U.oB)({transform:"translateY(25%)"}),(0,U.oB)({transform:"translateY(0)"})]))),(0,U.eR)("* => hint-to-asc, * => active-to-asc",(0,U.jt)(zt,(0,U.F4)([(0,U.oB)({transform:"translateY(0)"}),(0,U.oB)({transform:"translateY(-25%)"})]))),(0,U.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,U.oB)({transform:"translateY(0)"})),(0,U.SB)("hint-to-desc, active-to-desc, desc",(0,U.oB)({transform:"translateY(-25%)"})),(0,U.SB)("hint-to-asc, active-to-asc, asc",(0,U.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,U.X$)("allowChildren",[(0,U.eR)("* <=> *",[(0,U.IO)("@*",(0,U.pV)(),{optional:!0})])])};let nt=(()=>{class It{constructor(){this.changes=new A.xQ}}return It.\u0275fac=function(Jt){return new(Jt||It)},It.\u0275prov=d.Yz7({token:It,factory:It.\u0275fac,providedIn:"root"}),It})();const At={provide:nt,deps:[[new d.FiY,new d.tp0,nt]],useFactory:function Tt(It){return It||new nt}},ft=(0,t.Id)(class{});let Et=(()=>{class It extends ft{constructor(Jt,ve,xe,Oe,qe,$e,Xt,we){super(),this._intl=Jt,this._changeDetectorRef=ve,this._sort=xe,this._columnDef=Oe,this._focusMonitor=qe,this._elementRef=$e,this._ariaDescriber=Xt,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",we?.arrowPosition&&(this.arrowPosition=we?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(Jt){this._updateSortActionDescription(Jt)}get disableClear(){return this._disableClear}set disableClear(Jt){this._disableClear=(0,v.Ig)(Jt)}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(Jt=>{const ve=!!Jt;ve!==this._showIndicatorHint&&(this._setIndicatorHintVisible(ve),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(Jt){this._isDisabled()&&Jt||(this._showIndicatorHint=Jt,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(Jt){this._viewState=Jt||{},this._disableViewStateAnimation&&(this._viewState={toState:Jt.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(Jt){!this._isDisabled()&&(Jt.keyCode===T.L_||Jt.keyCode===T.K5)&&(Jt.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 Jt=this._viewState.fromState;return(Jt?`${Jt}-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(Jt){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,Jt)),this._sortActionDescription=Jt}_handleStateChanges(){this._rerenderSubscription=(0,C.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 It.\u0275fac=function(Jt){return new(Jt||It)(d.Y36(nt),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(lt,8))},It.\u0275cmp=d.Xpm({type:It,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(Jt,ve){1&Jt&&d.NdJ("click",function(){return ve._handleClick()})("keydown",function(Oe){return ve._handleKeydown(Oe)})("mouseenter",function(){return ve._setIndicatorHintVisible(!0)})("mouseleave",function(){return ve._setIndicatorHintVisible(!1)}),2&Jt&&(d.uIk("aria-sort",ve._getAriaSortAttribute()),d.ekj("mat-sort-header-disabled",ve._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(Jt,ve){1&Jt&&(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&Jt&&(d.ekj("mat-sort-header-sorted",ve._isSorted())("mat-sort-header-position-before","before"===ve.arrowPosition),d.uIk("tabindex",ve._isDisabled()?null:0)("role",ve._isDisabled()?null:"button"),d.xp6(3),d.Q6J("ngIf",ve._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:[Vt.indicator,Vt.leftPointer,Vt.rightPointer,Vt.arrowOpacity,Vt.arrowPosition,Vt.allowChildren]},changeDetection:0}),It})(),Bt=(()=>{class It{}return It.\u0275fac=function(Jt){return new(Jt||It)},It.\u0275mod=d.oAB({type:It}),It.\u0275inj=d.cJS({providers:[At],imports:[k.ez,t.BQ]}),It})()},58425:(ot,et,b)=>{"use strict";b.d(et,{C0:()=>oi,Ic:()=>ri,T5:()=>ne,VY:()=>de,Vq:()=>bi,fd:()=>Ke,z9:()=>un});var d=b(84080),p=b(12138),v=b(36895),T=b(94650),t=b(4859),A=b(3238),C=b(97392),U=b(12687),k=b(8929),D=b(42654),P=b(40445),I=b(87545),z=b(24850),G=b(1059),K=b(7625),at=b(75778),lt=b(37340);function bt(ct,it){if(1&ct&&T.GkF(0,8),2&ct){const kt=T.oxw();T.Q6J("ngTemplateOutlet",kt.iconOverrides[kt.state])("ngTemplateOutletContext",kt._getIconContext())}}function Pt(ct,it){if(1&ct&&(T.TgZ(0,"span",13),T._uU(1),T.qZA()),2&ct){const kt=T.oxw(2);T.xp6(1),T.Oqu(kt._getDefaultTextForState(kt.state))}}function Dt(ct,it){if(1&ct&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2&ct){const kt=T.oxw(2);T.xp6(1),T.Oqu(kt._intl.completedLabel)}}function zt(ct,it){if(1&ct&&(T.TgZ(0,"span",14),T._uU(1),T.qZA()),2&ct){const kt=T.oxw(2);T.xp6(1),T.Oqu(kt._intl.editableLabel)}}function Vt(ct,it){if(1&ct&&(T.TgZ(0,"mat-icon",13),T._uU(1),T.qZA()),2&ct){const kt=T.oxw(2);T.xp6(1),T.Oqu(kt._getDefaultTextForState(kt.state))}}function nt(ct,it){if(1&ct&&(T.ynx(0,9),T.YNc(1,Pt,2,1,"span",10),T.YNc(2,Dt,2,1,"span",11),T.YNc(3,zt,2,1,"span",11),T.YNc(4,Vt,2,1,"mat-icon",12),T.BQk()),2&ct){const kt=T.oxw();T.Q6J("ngSwitch",kt.state),T.xp6(1),T.Q6J("ngSwitchCase","number"),T.xp6(1),T.Q6J("ngIf","done"===kt.state),T.xp6(1),T.Q6J("ngIf","edit"===kt.state)}}function Tt(ct,it){if(1&ct&&(T.TgZ(0,"div",15),T.GkF(1,16),T.qZA()),2&ct){const kt=T.oxw();T.xp6(1),T.Q6J("ngTemplateOutlet",kt._templateLabel().template)}}function At(ct,it){if(1&ct&&(T.TgZ(0,"div",15),T._uU(1),T.qZA()),2&ct){const kt=T.oxw();T.xp6(1),T.Oqu(kt.label)}}function ft(ct,it){if(1&ct&&(T.TgZ(0,"div",17),T._uU(1),T.qZA()),2&ct){const kt=T.oxw();T.xp6(1),T.Oqu(kt._intl.optionalLabel)}}function Et(ct,it){if(1&ct&&(T.TgZ(0,"div",18),T._uU(1),T.qZA()),2&ct){const kt=T.oxw();T.xp6(1),T.Oqu(kt.errorMessage)}}function Bt(ct,it){}function It(ct,it){if(1&ct&&(T.Hsn(0),T.YNc(1,Bt,0,0,"ng-template",0)),2&ct){const kt=T.oxw();T.xp6(1),T.Q6J("cdkPortalOutlet",kt._portal)}}const se=["*"];function Jt(ct,it){1&ct&&T._UZ(0,"div",11)}const ve=function(ct,it){return{step:ct,i:it}};function xe(ct,it){if(1&ct&&(T.ynx(0),T.GkF(1,9),T.YNc(2,Jt,1,0,"div",10),T.BQk()),2&ct){const kt=it.$implicit,Gt=it.index,oe=it.last;T.oxw(2);const Ce=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",Ce)("ngTemplateOutletContext",T.WLB(3,ve,kt,Gt)),T.xp6(1),T.Q6J("ngIf",!oe)}}const Oe=function(ct){return{animationDuration:ct}},qe=function(ct,it){return{value:ct,params:it}};function $e(ct,it){if(1&ct){const kt=T.EpF();T.TgZ(0,"div",12),T.NdJ("@horizontalStepTransition.done",function(oe){T.CHM(kt);const Ce=T.oxw(2);return T.KtG(Ce._animationDone.next(oe))}),T.GkF(1,13),T.qZA()}if(2&ct){const kt=it.$implicit,Gt=it.index,oe=T.oxw(2);T.ekj("mat-horizontal-stepper-content-inactive",oe.selectedIndex!==Gt),T.Q6J("@horizontalStepTransition",T.WLB(8,qe,oe._getAnimationDirection(Gt),T.VKq(6,Oe,oe._getAnimationDuration())))("id",oe._getStepContentId(Gt)),T.uIk("aria-labelledby",oe._getStepLabelId(Gt)),T.xp6(1),T.Q6J("ngTemplateOutlet",kt.content)}}function Xt(ct,it){if(1&ct&&(T.TgZ(0,"div",4)(1,"div",5),T.YNc(2,xe,3,6,"ng-container",6),T.qZA(),T.TgZ(3,"div",7),T.YNc(4,$e,2,11,"div",8),T.qZA()()),2&ct){const kt=T.oxw();T.xp6(2),T.Q6J("ngForOf",kt.steps),T.xp6(2),T.Q6J("ngForOf",kt.steps)}}function we(ct,it){if(1&ct){const kt=T.EpF();T.TgZ(0,"div",15),T.GkF(1,9),T.TgZ(2,"div",16)(3,"div",17),T.NdJ("@verticalStepTransition.done",function(oe){T.CHM(kt);const Ce=T.oxw(2);return T.KtG(Ce._animationDone.next(oe))}),T.TgZ(4,"div",18),T.GkF(5,13),T.qZA()()()()}if(2&ct){const kt=it.$implicit,Gt=it.index,oe=it.last,Ce=T.oxw(2),Ee=T.MAs(4);T.xp6(1),T.Q6J("ngTemplateOutlet",Ee)("ngTemplateOutletContext",T.WLB(10,ve,kt,Gt)),T.xp6(1),T.ekj("mat-stepper-vertical-line",!oe),T.xp6(1),T.ekj("mat-vertical-stepper-content-inactive",Ce.selectedIndex!==Gt),T.Q6J("@verticalStepTransition",T.WLB(15,qe,Ce._getAnimationDirection(Gt),T.VKq(13,Oe,Ce._getAnimationDuration())))("id",Ce._getStepContentId(Gt)),T.uIk("aria-labelledby",Ce._getStepLabelId(Gt)),T.xp6(2),T.Q6J("ngTemplateOutlet",kt.content)}}function ae(ct,it){if(1&ct&&(T.ynx(0),T.YNc(1,we,6,18,"div",14),T.BQk()),2&ct){const kt=T.oxw();T.xp6(1),T.Q6J("ngForOf",kt.steps)}}function Kt(ct,it){if(1&ct){const kt=T.EpF();T.TgZ(0,"mat-step-header",19),T.NdJ("click",function(){const Ce=T.CHM(kt).step;return T.KtG(Ce.select())})("keydown",function(oe){T.CHM(kt);const Ce=T.oxw();return T.KtG(Ce._onKeydown(oe))}),T.qZA()}if(2&ct){const kt=it.step,Gt=it.i,oe=T.oxw();T.ekj("mat-horizontal-stepper-header","horizontal"===oe.orientation)("mat-vertical-stepper-header","vertical"===oe.orientation),T.Q6J("tabIndex",oe._getFocusIndex()===Gt?0:-1)("id",oe._getStepLabelId(Gt))("index",Gt)("state",oe._getIndicatorType(Gt,kt.state))("label",kt.stepLabel||kt.label)("selected",oe.selectedIndex===Gt)("active",oe._stepIsNavigable(Gt,kt))("optional",kt.optional)("errorMessage",kt.errorMessage)("iconOverrides",oe._iconOverrides)("disableRipple",oe.disableRipple||!oe._stepIsNavigable(Gt,kt))("color",kt.color||oe.color),T.uIk("aria-posinset",Gt+1)("aria-setsize",oe.steps.length)("aria-controls",oe._getStepContentId(Gt))("aria-selected",oe.selectedIndex==Gt)("aria-label",kt.ariaLabel||null)("aria-labelledby",!kt.ariaLabel&&kt.ariaLabelledby?kt.ariaLabelledby:null)("aria-disabled",!oe._stepIsNavigable(Gt,kt)||null)}}let de=(()=>{class ct extends p.u6{}return ct.\u0275fac=function(){let it;return function(Gt){return(it||(it=T.n5z(ct)))(Gt||ct)}}(),ct.\u0275dir=T.lG2({type:ct,selectors:[["","matStepLabel",""]],features:[T.qOj]}),ct})(),Wt=(()=>{class ct{constructor(){this.changes=new k.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return ct.\u0275fac=function(kt){return new(kt||ct)},ct.\u0275prov=T.Yz7({token:ct,factory:ct.\u0275fac,providedIn:"root"}),ct})();const Pe={provide:Wt,deps:[[new T.FiY,new T.tp0,Wt]],useFactory:function re(ct){return ct||new Wt}},on=(0,A.pj)(class extends p.KL{constructor(it){super(it)}},"primary");let _n=(()=>{class ct extends on{constructor(kt,Gt,oe,Ce){super(oe),this._intl=kt,this._focusMonitor=Gt,this._intlSubscription=kt.changes.subscribe(()=>Ce.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(kt,Gt){kt?this._focusMonitor.focusVia(this._elementRef,kt,Gt):this._elementRef.nativeElement.focus(Gt)}_stringLabel(){return this.label instanceof de?null:this.label}_templateLabel(){return this.label instanceof de?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(kt){return"number"==kt?`${this.index+1}`:"edit"==kt?"create":"error"==kt?"warning":kt}}return ct.\u0275fac=function(kt){return new(kt||ct)(T.Y36(Wt),T.Y36(U.tE),T.Y36(T.SBq),T.Y36(T.sBO))},ct.\u0275cmp=T.Xpm({type:ct,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(kt,Gt){1&kt&&(T._UZ(0,"div",0),T.TgZ(1,"div")(2,"div",1),T.YNc(3,bt,1,2,"ng-container",2),T.YNc(4,nt,5,4,"ng-container",3),T.qZA()(),T.TgZ(5,"div",4),T.YNc(6,Tt,2,1,"div",5),T.YNc(7,At,2,1,"div",5),T.YNc(8,ft,2,1,"div",6),T.YNc(9,Et,2,1,"div",7),T.qZA()),2&kt&&(T.Q6J("matRippleTrigger",Gt._getHostElement())("matRippleDisabled",Gt.disableRipple),T.xp6(1),T.Gre("mat-step-icon-state-",Gt.state," mat-step-icon"),T.ekj("mat-step-icon-selected",Gt.selected),T.xp6(1),T.Q6J("ngSwitch",!(!Gt.iconOverrides||!Gt.iconOverrides[Gt.state])),T.xp6(1),T.Q6J("ngSwitchCase",!0),T.xp6(2),T.ekj("mat-step-label-active",Gt.active)("mat-step-label-selected",Gt.selected)("mat-step-label-error","error"==Gt.state),T.xp6(1),T.Q6J("ngIf",Gt._templateLabel()),T.xp6(1),T.Q6J("ngIf",Gt._stringLabel()),T.xp6(1),T.Q6J("ngIf",Gt.optional&&"error"!=Gt.state),T.xp6(1),T.Q6J("ngIf","error"==Gt.state))},dependencies:[v.O5,v.tP,v.RF,v.n9,v.ED,C.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}),ct})();const Ue={horizontalStepTransition:(0,lt.X$)("horizontalStepTransition",[(0,lt.SB)("previous",(0,lt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,lt.SB)("current",(0,lt.oB)({transform:"none",visibility:"inherit"})),(0,lt.SB)("next",(0,lt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,lt.eR)("* => *",(0,lt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,lt.X$)("verticalStepTransition",[(0,lt.SB)("previous",(0,lt.oB)({height:"0px",visibility:"hidden"})),(0,lt.SB)("next",(0,lt.oB)({height:"0px",visibility:"hidden"})),(0,lt.SB)("current",(0,lt.oB)({height:"*",visibility:"inherit"})),(0,lt.eR)("* <=> current",(0,lt.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let un=(()=>{class ct{constructor(kt){this.templateRef=kt}}return ct.\u0275fac=function(kt){return new(kt||ct)(T.Y36(T.Rgc))},ct.\u0275dir=T.lG2({type:ct,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),ct})(),Mn=(()=>{class ct{constructor(kt){this._template=kt}}return ct.\u0275fac=function(kt){return new(kt||ct)(T.Y36(T.Rgc))},ct.\u0275dir=T.lG2({type:ct,selectors:[["ng-template","matStepContent",""]]}),ct})(),oi=(()=>{class ct extends p.be{constructor(kt,Gt,oe,Ce){super(kt,Ce),this._errorStateMatcher=Gt,this._viewContainerRef=oe,this._isSelected=D.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,I.w)(()=>this._stepper.selectionChange.pipe((0,z.U)(kt=>kt.selectedStep===this),(0,G.O)(this._stepper.selected===this)))).subscribe(kt=>{kt&&this._lazyContent&&!this._portal&&(this._portal=new d.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(kt,Gt){return this._errorStateMatcher.isErrorState(kt,Gt)||!!(kt&&kt.invalid&&this.interacted)}}return ct.\u0275fac=function(kt){return new(kt||ct)(T.Y36((0,T.Gpc)(()=>bi)),T.Y36(A.rD,4),T.Y36(T.s_b),T.Y36(p.gx,8))},ct.\u0275cmp=T.Xpm({type:ct,selectors:[["mat-step"]],contentQueries:function(kt,Gt,oe){if(1&kt&&(T.Suo(oe,de,5),T.Suo(oe,Mn,5)),2&kt){let Ce;T.iGM(Ce=T.CRH())&&(Gt.stepLabel=Ce.first),T.iGM(Ce=T.CRH())&&(Gt._lazyContent=Ce.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[T._Bn([{provide:A.rD,useExisting:ct},{provide:p.be,useExisting:ct}]),T.qOj],ngContentSelectors:se,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(kt,Gt){1&kt&&(T.F$t(),T.YNc(0,It,2,1,"ng-template"))},dependencies:[d.Pl],encapsulation:2,changeDetection:0}),ct})(),bi=(()=>{class ct extends p.B8{constructor(kt,Gt,oe){super(kt,Gt,oe),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 Ce=oe.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===Ce?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(kt){this._animationDuration=/^\d+$/.test(kt)?kt+"ms":kt}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:kt,templateRef:Gt})=>this._iconOverrides[kt]=Gt),this.steps.changes.pipe((0,K.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,at.x)((kt,Gt)=>kt.fromState===Gt.fromState&&kt.toState===Gt.toState),(0,K.R)(this._destroyed)).subscribe(kt=>{"current"===kt.toState&&this.animationDone.emit()})}_stepIsNavigable(kt,Gt){return Gt.completed||this.selectedIndex===kt||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return ct.\u0275fac=function(kt){return new(kt||ct)(T.Y36(P.Is,8),T.Y36(T.sBO),T.Y36(T.SBq))},ct.\u0275cmp=T.Xpm({type:ct,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(kt,Gt,oe){if(1&kt&&(T.Suo(oe,oi,5),T.Suo(oe,un,5)),2&kt){let Ce;T.iGM(Ce=T.CRH())&&(Gt._steps=Ce),T.iGM(Ce=T.CRH())&&(Gt._icons=Ce)}},viewQuery:function(kt,Gt){if(1&kt&&T.Gf(_n,5),2&kt){let oe;T.iGM(oe=T.CRH())&&(Gt._stepHeader=oe)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(kt,Gt){2&kt&&(T.uIk("aria-orientation",Gt.orientation),T.ekj("mat-stepper-horizontal","horizontal"===Gt.orientation)("mat-stepper-vertical","vertical"===Gt.orientation)("mat-stepper-label-position-end","horizontal"===Gt.orientation&&"end"==Gt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Gt.orientation&&"bottom"==Gt.labelPosition)("mat-stepper-header-position-bottom","bottom"===Gt.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:ct}]),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(kt,Gt){1&kt&&(T.ynx(0,0),T.YNc(1,Xt,5,2,"div",1),T.YNc(2,ae,2,1,"ng-container",2),T.BQk(),T.YNc(3,Kt,1,23,"ng-template",null,3,T.W1O)),2&kt&&(T.Q6J("ngSwitch",Gt.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,_n],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:[Ue.horizontalStepTransition,Ue.verticalStepTransition]},changeDetection:0}),ct})(),ri=(()=>{class ct extends p.st{}return ct.\u0275fac=function(){let it;return function(Gt){return(it||(it=T.n5z(ct)))(Gt||ct)}}(),ct.\u0275dir=T.lG2({type:ct,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(kt,Gt){2&kt&&T.Ikx("type",Gt.type)},inputs:{type:"type"},features:[T.qOj]}),ct})(),Ke=(()=>{class ct extends p.po{}return ct.\u0275fac=function(){let it;return function(Gt){return(it||(it=T.n5z(ct)))(Gt||ct)}}(),ct.\u0275dir=T.lG2({type:ct,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(kt,Gt){2&kt&&T.Ikx("type",Gt.type)},inputs:{type:"type"},features:[T.qOj]}),ct})(),ne=(()=>{class ct{}return ct.\u0275fac=function(kt){return new(kt||ct)},ct.\u0275mod=T.oAB({type:ct}),ct.\u0275inj=T.cJS({providers:[Pe,A.rD],imports:[A.BQ,v.ez,d.eL,t.ot,p.U5,C.Ps,A.si,A.BQ]}),ct})()},30671:(ot,et,b)=>{"use strict";b.d(et,{ev:()=>En,Dz:()=>Te,w1:()=>Tn,yh:()=>Re,mD:()=>Fe,Q2:()=>An,Ke:()=>go,ge:()=>he,fO:()=>Xe,XQ:()=>mn,as:()=>gi,Gk:()=>sn,nj:()=>_o,BZ:()=>Ot,by:()=>fr,p0:()=>Fo});var d=b(94650),p=b(40445),v=b(21281),T=b(95017),t=b(83353),A=b(67376),C=b(36895),U=b(8929),k=b(5254),D=b(591),P=b(54715),I=b(21086),z=b(7625),G=b(72986);const K=[[["caption"]],[["colgroup"],["col"]]],at=["caption","colgroup, col"];function Pt(Ge){return class extends Ge{constructor(...In){super(...In),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(In){const He=this._sticky;this._sticky=(0,v.Ig)(In),this._hasStickyChanged=He!==this._sticky}hasStickyChanged(){const In=this._hasStickyChanged;return this._hasStickyChanged=!1,In}resetStickyChanged(){this._hasStickyChanged=!1}}}const Dt=new d.OlP("CDK_TABLE");let Vt=(()=>{class Ge{constructor(He){this.template=He}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.Rgc))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","cdkCellDef",""]]}),Ge})(),nt=(()=>{class Ge{constructor(He){this.template=He}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.Rgc))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","cdkHeaderCellDef",""]]}),Ge})(),Tt=(()=>{class Ge{constructor(He){this.template=He}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.Rgc))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","cdkFooterCellDef",""]]}),Ge})();class At{}const ft=Pt(At);let Et=(()=>{class Ge extends ft{constructor(He){super(),this._table=He,this._stickyEnd=!1}get name(){return this._name}set name(He){this._setNameInput(He)}get stickyEnd(){return this._stickyEnd}set stickyEnd(He){const ke=this._stickyEnd;this._stickyEnd=(0,v.Ig)(He),this._hasStickyChanged=ke!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(He){He&&(this._name=He,this.cssClassFriendlyName=He.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(Dt,8))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","cdkColumnDef",""]],contentQueries:function(He,ke,dn){if(1&He&&(d.Suo(dn,Vt,5),d.Suo(dn,nt,5),d.Suo(dn,Tt,5)),2&He){let tt;d.iGM(tt=d.CRH())&&(ke.cell=tt.first),d.iGM(tt=d.CRH())&&(ke.headerCell=tt.first),d.iGM(tt=d.CRH())&&(ke.footerCell=tt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[d._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ge}]),d.qOj]}),Ge})();class Bt{constructor(In,He){He.nativeElement.classList.add(...In._columnCssClassName)}}let It=(()=>{class Ge extends Bt{constructor(He,ke){super(He,ke)}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(Et),d.Y36(d.SBq))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[d.qOj]}),Ge})(),se=(()=>{class Ge extends Bt{constructor(He,ke){if(super(He,ke),1===He._table?._elementRef.nativeElement.nodeType){const dn=He._table._elementRef.nativeElement.getAttribute("role");ke.nativeElement.setAttribute("role","grid"===dn||"treegrid"===dn?"gridcell":"cell")}}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(Et),d.Y36(d.SBq))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[d.qOj]}),Ge})(),Jt=(()=>{class Ge extends Bt{constructor(He,ke){if(super(He,ke),1===He._table?._elementRef.nativeElement.nodeType){const dn=He._table._elementRef.nativeElement.getAttribute("role");ke.nativeElement.setAttribute("role","grid"===dn||"treegrid"===dn?"gridcell":"cell")}}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(Et),d.Y36(d.SBq))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[d.qOj]}),Ge})();class ve{constructor(){this.tasks=[],this.endTasks=[]}}const xe=new d.OlP("_COALESCED_STYLE_SCHEDULER");let Oe=(()=>{class Ge{constructor(He){this._ngZone=He,this._currentSchedule=null,this._destroyed=new U.xQ}schedule(He){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(He)}scheduleEnd(He){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(He)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ve,this._getScheduleObservable().pipe((0,z.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const He=this._currentSchedule;this._currentSchedule=new ve;for(const ke of He.tasks)ke();for(const ke of He.endTasks)ke()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,k.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,G.q)(1))}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.LFG(d.R0b))},Ge.\u0275prov=d.Yz7({token:Ge,factory:Ge.\u0275fac}),Ge})(),$e=(()=>{class Ge{constructor(He,ke){this.template=He,this._differs=ke}ngOnChanges(He){if(!this._columnsDiffer){const ke=He.columns&&He.columns.currentValue||[];this._columnsDiffer=this._differs.find(ke).create(),this._columnsDiffer.diff(ke)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(He){return this instanceof ae?He.headerCell.template:this instanceof Wt?He.footerCell.template:He.cell.template}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.Rgc),d.Y36(d.ZZ4))},Ge.\u0275dir=d.lG2({type:Ge,features:[d.TTD]}),Ge})();class Xt extends $e{}const we=Pt(Xt);let ae=(()=>{class Ge extends we{constructor(He,ke,dn){super(He,ke),this._table=dn}ngOnChanges(He){super.ngOnChanges(He)}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(Dt,8))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[d.qOj,d.TTD]}),Ge})();class Kt extends $e{}const de=Pt(Kt);let Wt=(()=>{class Ge extends de{constructor(He,ke,dn){super(He,ke),this._table=dn}ngOnChanges(He){super.ngOnChanges(He)}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(Dt,8))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[d.qOj,d.TTD]}),Ge})(),re=(()=>{class Ge extends $e{constructor(He,ke,dn){super(He,ke),this._table=dn}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(Dt,8))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[d.qOj]}),Ge})(),Pe=(()=>{class Ge{constructor(He){this._viewContainer=He,Ge.mostRecentCellOutlet=this}ngOnDestroy(){Ge.mostRecentCellOutlet===this&&(Ge.mostRecentCellOutlet=null)}}return Ge.mostRecentCellOutlet=null,Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.s_b))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","cdkCellOutlet",""]]}),Ge})(),on=(()=>{class Ge{}return Ge.\u0275fac=function(He){return new(He||Ge)},Ge.\u0275cmp=d.Xpm({type:Ge,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,ke){1&He&&d.GkF(0,0)},dependencies:[Pe],encapsulation:2}),Ge})(),_n=(()=>{class Ge{}return Ge.\u0275fac=function(He){return new(He||Ge)},Ge.\u0275cmp=d.Xpm({type:Ge,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,ke){1&He&&d.GkF(0,0)},dependencies:[Pe],encapsulation:2}),Ge})(),ye=(()=>{class Ge{}return Ge.\u0275fac=function(He){return new(He||Ge)},Ge.\u0275cmp=d.Xpm({type:Ge,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,ke){1&He&&d.GkF(0,0)},dependencies:[Pe],encapsulation:2}),Ge})(),gn=(()=>{class Ge{constructor(He){this.templateRef=He,this._contentClassName="cdk-no-data-row"}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.Rgc))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["ng-template","cdkNoDataRow",""]]}),Ge})();const Ue=["top","bottom","left","right"];class un{constructor(In,He,ke,dn,tt=!0,Rt=!0,Q){this._isNativeHtmlTable=In,this._stickCellCss=He,this.direction=ke,this._coalescedStyleScheduler=dn,this._isBrowser=tt,this._needsPositionStickyOnElement=Rt,this._positionListener=Q,this._cachedCellWidths=[],this._borderCellCss={top:`${He}-border-elem-top`,bottom:`${He}-border-elem-bottom`,left:`${He}-border-elem-left`,right:`${He}-border-elem-right`}}clearStickyPositioning(In,He){const ke=[];for(const dn of In)if(dn.nodeType===dn.ELEMENT_NODE){ke.push(dn);for(let tt=0;tt{for(const dn of ke)this._removeStickyStyle(dn,He)})}updateStickyColumns(In,He,ke,dn=!0){if(!In.length||!this._isBrowser||!He.some(Co=>Co)&&!ke.some(Co=>Co))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const tt=In[0],Rt=tt.children.length,Q=this._getCellWidths(tt,dn),Ft=this._getStickyStartColumnPositions(Q,He),Be=this._getStickyEndColumnPositions(Q,ke),Rn=He.lastIndexOf(!0),Gi=ke.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Co="rtl"===this.direction,gr=Co?"right":"left",br=Co?"left":"right";for(const ls of In)for(let ar=0;arHe[ar]?ls:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Gi?[]:Q.slice(Gi).map((ls,ar)=>ke[ar+Gi]?ls:null).reverse()}))})}stickRows(In,He,ke){if(!this._isBrowser)return;const dn="bottom"===ke?In.slice().reverse():In,tt="bottom"===ke?He.slice().reverse():He,Rt=[],Q=[],Ft=[];for(let Rn=0,Gi=0;Rn{for(let Rn=0;Rn{He.some(dn=>!dn)?this._removeStickyStyle(ke,["bottom"]):this._addStickyStyle(ke,"bottom",0,!1)})}_removeStickyStyle(In,He){for(const dn of He)In.style[dn]="",In.classList.remove(this._borderCellCss[dn]);Ue.some(dn=>-1===He.indexOf(dn)&&In.style[dn])?In.style.zIndex=this._getCalculatedZIndex(In):(In.style.zIndex="",this._needsPositionStickyOnElement&&(In.style.position=""),In.classList.remove(this._stickCellCss))}_addStickyStyle(In,He,ke,dn){In.classList.add(this._stickCellCss),dn&&In.classList.add(this._borderCellCss[He]),In.style[He]=`${ke}px`,In.style.zIndex=this._getCalculatedZIndex(In),this._needsPositionStickyOnElement&&(In.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(In){const He={top:100,bottom:10,left:1,right:1};let ke=0;for(const dn of Ue)In.style[dn]&&(ke+=He[dn]);return ke?`${ke}`:""}_getCellWidths(In,He=!0){if(!He&&this._cachedCellWidths.length)return this._cachedCellWidths;const ke=[],dn=In.children;for(let tt=0;tt0;tt--)He[tt]&&(ke[tt]=dn,dn+=In[tt]);return ke}}const kt=new d.OlP("CDK_SPL");let oe=(()=>{class Ge{constructor(He,ke){this.viewContainer=He,this.elementRef=ke}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.s_b),d.Y36(d.SBq))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","rowOutlet",""]]}),Ge})(),Ce=(()=>{class Ge{constructor(He,ke){this.viewContainer=He,this.elementRef=ke}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.s_b),d.Y36(d.SBq))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","headerRowOutlet",""]]}),Ge})(),Ee=(()=>{class Ge{constructor(He,ke){this.viewContainer=He,this.elementRef=ke}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.s_b),d.Y36(d.SBq))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","footerRowOutlet",""]]}),Ge})(),Pn=(()=>{class Ge{constructor(He,ke){this.viewContainer=He,this.elementRef=ke}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.s_b),d.Y36(d.SBq))},Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","noDataRowOutlet",""]]}),Ge})(),Oi=(()=>{class Ge{constructor(He,ke,dn,tt,Rt,Q,Ft,Be,Rn,Gi,Co,gr){this._differs=He,this._changeDetectorRef=ke,this._elementRef=dn,this._dir=Rt,this._platform=Ft,this._viewRepeater=Be,this._coalescedStyleScheduler=Rn,this._viewportRuler=Gi,this._stickyPositioningListener=Co,this._ngZone=gr,this._onDestroy=new U.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}),tt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Q,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(He){this._trackByFn=He}get dataSource(){return this._dataSource}set dataSource(He){this._dataSource!==He&&this._switchDataSource(He)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(He){this._multiTemplateDataRows=(0,v.Ig)(He),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(He){this._fixedLayout=(0,v.Ig)(He),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((He,ke)=>this.trackBy?this.trackBy(ke.dataIndex,ke.data):ke),this._viewportRuler.change().pipe((0,z.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const ke=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||ke,this._forceRecalculateCellWidths=ke,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(He=>{He.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 He=this._dataDiffer.diff(this._renderRows);if(!He)return this._updateNoDataRow(),void this.contentChanged.next();const ke=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(He,ke,(dn,tt,Rt)=>this._getEmbeddedViewArgs(dn.item,Rt),dn=>dn.item.data,dn=>{1===dn.operation&&dn.context&&this._renderCellTemplateForItem(dn.record.item.rowDef,dn.context)}),this._updateRowIndexContext(),He.forEachIdentityChange(dn=>{ke.get(dn.currentIndex).context.$implicit=dn.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(He){this._customColumnDefs.add(He)}removeColumnDef(He){this._customColumnDefs.delete(He)}addRowDef(He){this._customRowDefs.add(He)}removeRowDef(He){this._customRowDefs.delete(He)}addHeaderRowDef(He){this._customHeaderRowDefs.add(He),this._headerRowDefChanged=!0}removeHeaderRowDef(He){this._customHeaderRowDefs.delete(He),this._headerRowDefChanged=!0}addFooterRowDef(He){this._customFooterRowDefs.add(He),this._footerRowDefChanged=!0}removeFooterRowDef(He){this._customFooterRowDefs.delete(He),this._footerRowDefChanged=!0}setNoDataRow(He){this._customNoDataRow=He}updateStickyHeaderRowStyles(){const He=this._getRenderedRows(this._headerRowOutlet),dn=this._elementRef.nativeElement.querySelector("thead");dn&&(dn.style.display=He.length?"":"none");const tt=this._headerRowDefs.map(Rt=>Rt.sticky);this._stickyStyler.clearStickyPositioning(He,["top"]),this._stickyStyler.stickRows(He,tt,"top"),this._headerRowDefs.forEach(Rt=>Rt.resetStickyChanged())}updateStickyFooterRowStyles(){const He=this._getRenderedRows(this._footerRowOutlet),dn=this._elementRef.nativeElement.querySelector("tfoot");dn&&(dn.style.display=He.length?"":"none");const tt=this._footerRowDefs.map(Rt=>Rt.sticky);this._stickyStyler.clearStickyPositioning(He,["bottom"]),this._stickyStyler.stickRows(He,tt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,tt),this._footerRowDefs.forEach(Rt=>Rt.resetStickyChanged())}updateStickyColumnStyles(){const He=this._getRenderedRows(this._headerRowOutlet),ke=this._getRenderedRows(this._rowOutlet),dn=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...He,...ke,...dn],["left","right"]),this._stickyColumnStylesNeedReset=!1),He.forEach((tt,Rt)=>{this._addStickyColumnStyles([tt],this._headerRowDefs[Rt])}),this._rowDefs.forEach(tt=>{const Rt=[];for(let Q=0;Q{this._addStickyColumnStyles([tt],this._footerRowDefs[Rt])}),Array.from(this._columnDefsByName.values()).forEach(tt=>tt.resetStickyChanged())}_getAllRenderRows(){const He=[],ke=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let dn=0;dn{const Q=dn&&dn.has(Rt)?dn.get(Rt):[];if(Q.length){const Ft=Q.shift();return Ft.dataIndex=ke,Ft}return{data:He,rowDef:Rt,dataIndex:ke}})}_cacheColumnDefs(){this._columnDefsByName.clear(),ho(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(ke=>{this._columnDefsByName.has(ke.name),this._columnDefsByName.set(ke.name,ke)})}_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 He=this._rowDefs.filter(ke=>!ke.when);this._defaultRowDef=He[0]}_renderUpdatedColumns(){const He=(Rt,Q)=>Rt||!!Q.getColumnsDiff(),ke=this._rowDefs.reduce(He,!1);ke&&this._forceRenderDataRows();const dn=this._headerRowDefs.reduce(He,!1);dn&&this._forceRenderHeaderRows();const tt=this._footerRowDefs.reduce(He,!1);return tt&&this._forceRenderFooterRows(),ke||dn||tt}_switchDataSource(He){this._data=[],(0,T.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),He||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=He}_observeRenderChanges(){if(!this.dataSource)return;let He;(0,T.Z9)(this.dataSource)?He=this.dataSource.connect(this):(0,P.b)(this.dataSource)?He=this.dataSource:Array.isArray(this.dataSource)&&(He=(0,I.of)(this.dataSource)),this._renderChangeSubscription=He.pipe((0,z.R)(this._onDestroy)).subscribe(ke=>{this._data=ke||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((He,ke)=>this._renderRow(this._headerRowOutlet,He,ke)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((He,ke)=>this._renderRow(this._footerRowOutlet,He,ke)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(He,ke){const dn=Array.from(ke.columns||[]).map(Q=>this._columnDefsByName.get(Q)),tt=dn.map(Q=>Q.sticky),Rt=dn.map(Q=>Q.stickyEnd);this._stickyStyler.updateStickyColumns(He,tt,Rt,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(He){const ke=[];for(let dn=0;dn!tt.when||tt.when(ke,He));else{let tt=this._rowDefs.find(Rt=>Rt.when&&Rt.when(ke,He))||this._defaultRowDef;tt&&dn.push(tt)}return dn}_getEmbeddedViewArgs(He,ke){return{templateRef:He.rowDef.template,context:{$implicit:He.data},index:ke}}_renderRow(He,ke,dn,tt={}){const Rt=He.viewContainer.createEmbeddedView(ke.template,tt,dn);return this._renderCellTemplateForItem(ke,tt),Rt}_renderCellTemplateForItem(He,ke){for(let dn of this._getCellTemplates(He))Pe.mostRecentCellOutlet&&Pe.mostRecentCellOutlet._viewContainer.createEmbeddedView(dn,ke);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const He=this._rowOutlet.viewContainer;for(let ke=0,dn=He.length;ke{const dn=this._columnDefsByName.get(ke);return He.extractCellTemplate(dn)}):[]}_applyNativeTableSections(){const He=this._document.createDocumentFragment(),ke=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const dn of ke){const tt=this._document.createElement(dn.tag);tt.setAttribute("role","rowgroup");for(const Rt of dn.outlets)tt.appendChild(Rt.elementRef.nativeElement);He.appendChild(tt)}this._elementRef.nativeElement.appendChild(He)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const He=(ke,dn)=>ke||dn.hasStickyChanged();this._headerRowDefs.reduce(He,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(He,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(He,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new un(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(ke=>{this._stickyStyler.direction=ke,this.updateStickyColumnStyles()})}_getOwnDefs(He){return He.filter(ke=>!ke._table||ke._table===this)}_updateNoDataRow(){const He=this._customNoDataRow||this._noDataRow;if(!He)return;const ke=0===this._rowOutlet.viewContainer.length;if(ke===this._isShowingNoDataRow)return;const dn=this._noDataRowOutlet.viewContainer;if(ke){const tt=dn.createEmbeddedView(He.templateRef),Rt=tt.rootNodes[0];1===tt.rootNodes.length&&Rt?.nodeType===this._document.ELEMENT_NODE&&(Rt.setAttribute("role","row"),Rt.classList.add(He._contentClassName))}else dn.clear();this._isShowingNoDataRow=ke}}return Ge.\u0275fac=function(He){return new(He||Ge)(d.Y36(d.ZZ4),d.Y36(d.sBO),d.Y36(d.SBq),d.$8M("role"),d.Y36(p.Is,8),d.Y36(C.K0),d.Y36(t.t4),d.Y36(T.k),d.Y36(xe),d.Y36(A.rL),d.Y36(kt,12),d.Y36(d.R0b,8))},Ge.\u0275cmp=d.Xpm({type:Ge,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(He,ke,dn){if(1&He&&(d.Suo(dn,gn,5),d.Suo(dn,Et,5),d.Suo(dn,re,5),d.Suo(dn,ae,5),d.Suo(dn,Wt,5)),2&He){let tt;d.iGM(tt=d.CRH())&&(ke._noDataRow=tt.first),d.iGM(tt=d.CRH())&&(ke._contentColumnDefs=tt),d.iGM(tt=d.CRH())&&(ke._contentRowDefs=tt),d.iGM(tt=d.CRH())&&(ke._contentHeaderRowDefs=tt),d.iGM(tt=d.CRH())&&(ke._contentFooterRowDefs=tt)}},viewQuery:function(He,ke){if(1&He&&(d.Gf(oe,7),d.Gf(Ce,7),d.Gf(Ee,7),d.Gf(Pn,7)),2&He){let dn;d.iGM(dn=d.CRH())&&(ke._rowOutlet=dn.first),d.iGM(dn=d.CRH())&&(ke._headerRowOutlet=dn.first),d.iGM(dn=d.CRH())&&(ke._footerRowOutlet=dn.first),d.iGM(dn=d.CRH())&&(ke._noDataRowOutlet=dn.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(He,ke){2&He&&d.ekj("cdk-table-fixed-layout",ke.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[d._Bn([{provide:Dt,useExisting:Ge},{provide:T.k,useClass:T.yy},{provide:xe,useClass:Oe},{provide:kt,useValue:null}])],ngContentSelectors:at,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(He,ke){1&He&&(d.F$t(K),d.Hsn(0),d.Hsn(1,1),d.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[oe,Ce,Ee,Pn],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),Ge})();function ho(Ge,In){return Ge.concat(Array.from(In))}let jn=(()=>{class Ge{}return Ge.\u0275fac=function(He){return new(He||Ge)},Ge.\u0275mod=d.oAB({type:Ge}),Ge.\u0275inj=d.cJS({imports:[A.Cl]}),Ge})();var Ye=b(3238),fn=b(36787),ze=b(23426),We=b(24850);const en=[[["caption"]],[["colgroup"],["col"]]],le=["caption","colgroup, col"];let Ot=(()=>{class Ge extends Oi{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275cmp=d.Xpm({type:Ge,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(He,ke){2&He&&d.ekj("mat-table-fixed-layout",ke.fixedLayout)},exportAs:["matTable"],features:[d._Bn([{provide:T.k,useClass:T.yy},{provide:Oi,useExisting:Ge},{provide:Dt,useExisting:Ge},{provide:xe,useClass:Oe},{provide:kt,useValue:null}]),d.qOj],ngContentSelectors:le,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(He,ke){1&He&&(d.F$t(en),d.Hsn(0),d.Hsn(1,1),d.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[oe,Ce,Ee,Pn],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}),Ge})(),Te=(()=>{class Ge extends Vt{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","matCellDef",""]],features:[d._Bn([{provide:Vt,useExisting:Ge}]),d.qOj]}),Ge})(),Xe=(()=>{class Ge extends nt{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","matHeaderCellDef",""]],features:[d._Bn([{provide:nt,useExisting:Ge}]),d.qOj]}),Ge})(),Fe=(()=>{class Ge extends Tt{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","matFooterCellDef",""]],features:[d._Bn([{provide:Tt,useExisting:Ge}]),d.qOj]}),Ge})(),Tn=(()=>{class Ge extends Et{get name(){return this._name}set name(He){this._setNameInput(He)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[d._Bn([{provide:Et,useExisting:Ge},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ge}]),d.qOj]}),Ge})(),he=(()=>{class Ge extends It{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[d.qOj]}),Ge})(),Re=(()=>{class Ge extends se{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[d.qOj]}),Ge})(),En=(()=>{class Ge extends Jt{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[d.qOj]}),Ge})(),gi=(()=>{class Ge extends ae{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[d._Bn([{provide:ae,useExisting:Ge}]),d.qOj]}),Ge})(),go=(()=>{class Ge extends Wt{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[d._Bn([{provide:Wt,useExisting:Ge}]),d.qOj]}),Ge})(),_o=(()=>{class Ge extends re{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275dir=d.lG2({type:Ge,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[d._Bn([{provide:re,useExisting:Ge}]),d.qOj]}),Ge})(),mn=(()=>{class Ge extends on{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275cmp=d.Xpm({type:Ge,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[d._Bn([{provide:on,useExisting:Ge}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,ke){1&He&&d.GkF(0,0)},dependencies:[Pe],encapsulation:2}),Ge})(),An=(()=>{class Ge extends _n{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275cmp=d.Xpm({type:Ge,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[d._Bn([{provide:_n,useExisting:Ge}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,ke){1&He&&d.GkF(0,0)},dependencies:[Pe],encapsulation:2}),Ge})(),sn=(()=>{class Ge extends ye{}return Ge.\u0275fac=function(){let In;return function(ke){return(In||(In=d.n5z(Ge)))(ke||Ge)}}(),Ge.\u0275cmp=d.Xpm({type:Ge,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[d._Bn([{provide:ye,useExisting:Ge}]),d.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(He,ke){1&He&&d.GkF(0,0)},dependencies:[Pe],encapsulation:2}),Ge})(),Fo=(()=>{class Ge{}return Ge.\u0275fac=function(He){return new(He||Ge)},Ge.\u0275mod=d.oAB({type:Ge}),Ge.\u0275inj=d.cJS({imports:[jn,Ye.BQ,Ye.BQ]}),Ge})();class Ia extends T.o2{constructor(In=[]){super(),this._renderData=new D.X([]),this._filter=new D.X(""),this._internalPageChanges=new U.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(He,ke)=>{const dn=He[ke];if((0,v.t6)(dn)){const tt=Number(dn);return tt<9007199254740991?tt:dn}return dn},this.sortData=(He,ke)=>{const dn=ke.active,tt=ke.direction;return dn&&""!=tt?He.sort((Rt,Q)=>{let Ft=this.sortingDataAccessor(Rt,dn),Be=this.sortingDataAccessor(Q,dn);const Rn=typeof Ft,Gi=typeof Be;Rn!==Gi&&("number"===Rn&&(Ft+=""),"number"===Gi&&(Be+=""));let Co=0;return null!=Ft&&null!=Be?Ft>Be?Co=1:Ft{const dn=Object.keys(He).reduce((Rt,Q)=>Rt+He[Q]+"\u25ec","").toLowerCase(),tt=ke.trim().toLowerCase();return-1!=dn.indexOf(tt)},this._data=new D.X(In),this._updateChangeSubscription()}get data(){return this._data.value}set data(In){In=Array.isArray(In)?In:[],this._data.next(In),this._renderChangesSubscription||this._filterData(In)}get filter(){return this._filter.value}set filter(In){this._filter.next(In),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(In){this._sort=In,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(In){this._paginator=In,this._updateChangeSubscription()}_updateChangeSubscription(){const In=this._sort?(0,fn.T)(this._sort.sortChange,this._sort.initialized):(0,I.of)(null),He=this._paginator?(0,fn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,I.of)(null),dn=(0,ze.aj)([this._data,this._filter]).pipe((0,We.U)(([Q])=>this._filterData(Q))),tt=(0,ze.aj)([dn,In]).pipe((0,We.U)(([Q])=>this._orderData(Q))),Rt=(0,ze.aj)([tt,He]).pipe((0,We.U)(([Q])=>this._pageData(Q)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Rt.subscribe(Q=>this._renderData.next(Q))}_filterData(In){return this.filteredData=null==this.filter||""===this.filter?In:In.filter(He=>this.filterPredicate(He,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(In){return this.sort?this.sortData(In.slice(),this.sort):In}_pageData(In){if(!this.paginator)return In;const He=this.paginator.pageIndex*this.paginator.pageSize;return In.slice(He,He+this.paginator.pageSize)}_updatePaginator(In){Promise.resolve().then(()=>{const He=this.paginator;if(He&&(He.length=In,He.pageIndex>0)){const ke=Math.ceil(He.length/He.pageSize)-1||0,dn=Math.min(He.pageIndex,ke);dn!==He.pageIndex&&(He.pageIndex=dn,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class fr extends Ia{}},3848:(ot,et,b)=>{"use strict";b.d(et,{BU:()=>Je,Nh:()=>Xe,Nj:()=>Ot,SP:()=>We,uD:()=>bi,uX:()=>ne});var d=b(12687),p=b(49643),v=b(84080),T=b(36895),t=b(94650),A=b(3238),C=b(72986),U=b(1059),k=b(75778),D=b(7625),P=b(87545),I=b(31307),z=b(92198),G=b(8929),K=b(42654),at=b(23753),lt=b(21086),bt=b(36787),Pt=b(68896),Dt=b(56498),zt=b(98723),Vt=b(40445),nt=b(37340),Tt=b(21281),At=b(67376),ft=b(83353),Et=b(29521);function Bt(Fe,Tn){1&Fe&&t.Hsn(0)}const It=["*"];function se(Fe,Tn){}const Jt=function(Fe){return{animationDuration:Fe}},ve=function(Fe,Tn){return{value:Fe,params:Tn}},xe=["tabListContainer"],Oe=["tabList"],qe=["tabListInner"],$e=["nextPaginator"],Xt=["previousPaginator"],we=["tabBodyWrapper"],ae=["tabHeader"];function Kt(Fe,Tn){}function de(Fe,Tn){if(1&Fe&&t.YNc(0,Kt,0,0,"ng-template",10),2&Fe){const he=t.oxw().$implicit;t.Q6J("cdkPortalOutlet",he.templateLabel)}}function Wt(Fe,Tn){if(1&Fe&&t._uU(0),2&Fe){const he=t.oxw().$implicit;t.Oqu(he.textLabel)}}function re(Fe,Tn){if(1&Fe){const he=t.EpF();t.TgZ(0,"div",6),t.NdJ("click",function(){const En=t.CHM(he),gi=En.$implicit,go=En.index,_o=t.oxw(),mn=t.MAs(1);return t.KtG(_o._handleClick(gi,mn,go))})("cdkFocusChange",function(En){const go=t.CHM(he).index,_o=t.oxw();return t.KtG(_o._tabFocusChanged(En,go))}),t.TgZ(1,"div",7),t.YNc(2,de,1,1,"ng-template",8),t.YNc(3,Wt,1,1,"ng-template",null,9,t.W1O),t.qZA()()}if(2&Fe){const he=Tn.$implicit,Re=Tn.index,En=t.MAs(4),gi=t.oxw();t.ekj("mat-tab-label-active",gi.selectedIndex===Re),t.Q6J("id",gi._getTabLabelId(Re))("ngClass",he.labelClass)("disabled",he.disabled)("matRippleDisabled",he.disabled||gi.disableRipple),t.uIk("tabIndex",gi._getTabIndex(he,Re))("aria-posinset",Re+1)("aria-setsize",gi._tabs.length)("aria-controls",gi._getTabContentId(Re))("aria-selected",gi.selectedIndex===Re)("aria-label",he.ariaLabel||null)("aria-labelledby",!he.ariaLabel&&he.ariaLabelledby?he.ariaLabelledby:null),t.xp6(2),t.Q6J("ngIf",he.templateLabel)("ngIfElse",En)}}function Pe(Fe,Tn){if(1&Fe){const he=t.EpF();t.TgZ(0,"mat-tab-body",11),t.NdJ("_onCentered",function(){t.CHM(he);const En=t.oxw();return t.KtG(En._removeTabBodyWrapperHeight())})("_onCentering",function(En){t.CHM(he);const gi=t.oxw();return t.KtG(gi._setTabBodyWrapperHeight(En))}),t.qZA()}if(2&Fe){const he=Tn.$implicit,Re=Tn.index,En=t.oxw();t.ekj("mat-tab-body-active",En.selectedIndex===Re),t.Q6J("id",En._getTabContentId(Re))("ngClass",he.bodyClass)("content",he.content)("position",he.position)("origin",he.origin)("animationDuration",En.animationDuration)("preserveContent",En.preserveContent),t.uIk("tabindex",null!=En.contentTabIndex&&En.selectedIndex===Re?En.contentTabIndex:null)("aria-labelledby",En._getTabLabelId(Re))}}const on=["mat-tab-nav-bar",""],_n=new t.OlP("MatInkBarPositioner",{providedIn:"root",factory:function ye(){return Tn=>({left:Tn?(Tn.offsetLeft||0)+"px":"0",width:Tn?(Tn.offsetWidth||0)+"px":"0"})}});let gn=(()=>{class Fe{constructor(he,Re,En,gi){this._elementRef=he,this._ngZone=Re,this._inkBarPositioner=En,this._animationMode=gi}alignToElement(he){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,C.q)(1)).subscribe(()=>{const Re=this._inkBarPositioner(he),En=this._elementRef.nativeElement;En.style.left=Re.left,En.style.width=Re.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(_n),t.Y36(t.QbO,8))},Fe.\u0275dir=t.lG2({type:Fe,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(he,Re){2&he&&t.ekj("_mat-animation-noopable","NoopAnimations"===Re._animationMode)}}),Fe})();const Ue=new t.OlP("MatTabContent"),Mn=new t.OlP("MatTabLabel"),oi=new t.OlP("MAT_TAB");let bi=(()=>{class Fe extends v.ig{constructor(he,Re,En){super(he,Re),this._closestTab=En}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.Rgc),t.Y36(t.s_b),t.Y36(oi,8))},Fe.\u0275dir=t.lG2({type:Fe,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[t._Bn([{provide:Mn,useExisting:Fe}]),t.qOj]}),Fe})();const ri=(0,A.Id)(class{}),Ke=new t.OlP("MAT_TAB_GROUP");let ne=(()=>{class Fe extends ri{constructor(he,Re){super(),this._viewContainerRef=he,this._closestTabGroup=Re,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(he){this._setTemplateLabelInput(he)}get content(){return this._contentPortal}ngOnChanges(he){(he.hasOwnProperty("textLabel")||he.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new v.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(he){he&&he._closestTab===this&&(this._templateLabel=he)}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.s_b),t.Y36(Ke,8))},Fe.\u0275cmp=t.Xpm({type:Fe,selectors:[["mat-tab"]],contentQueries:function(he,Re,En){if(1&he&&(t.Suo(En,Mn,5),t.Suo(En,Ue,7,t.Rgc)),2&he){let gi;t.iGM(gi=t.CRH())&&(Re.templateLabel=gi.first),t.iGM(gi=t.CRH())&&(Re._explicitContent=gi.first)}},viewQuery:function(he,Re){if(1&he&&t.Gf(t.Rgc,7),2&he){let En;t.iGM(En=t.CRH())&&(Re._implicitContent=En.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:oi,useExisting:Fe}]),t.qOj,t.TTD],ngContentSelectors:It,decls:1,vars:0,template:function(he,Re){1&he&&(t.F$t(),t.YNc(0,Bt,1,0,"ng-template"))},encapsulation:2}),Fe})();const ct={translateTab:(0,nt.X$)("translateTab",[(0,nt.SB)("center, void, left-origin-center, right-origin-center",(0,nt.oB)({transform:"none"})),(0,nt.SB)("left",(0,nt.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,nt.SB)("right",(0,nt.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,nt.eR)("* => left, * => right, left => center, right => center",(0,nt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,nt.eR)("void => left-origin-center",[(0,nt.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,nt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,nt.eR)("void => right-origin-center",[(0,nt.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,nt.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let it=(()=>{class Fe extends v.Pl{constructor(he,Re,En,gi){super(he,Re,gi),this._host=En,this._centeringSub=K.w.EMPTY,this._leavingSub=K.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,U.O)(this._host._isCenterPosition(this._host._position))).subscribe(he=>{he&&!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 Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36((0,t.Gpc)(()=>Gt)),t.Y36(T.K0))},Fe.\u0275dir=t.lG2({type:Fe,selectors:[["","matTabBodyHost",""]],features:[t.qOj]}),Fe})(),kt=(()=>{class Fe{constructor(he,Re,En){this._elementRef=he,this._dir=Re,this._dirChangeSubscription=K.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,Re&&(this._dirChangeSubscription=Re.change.subscribe(gi=>{this._computePositionAnimationState(gi),En.markForCheck()})),this._translateTabComplete.pipe((0,k.x)((gi,go)=>gi.fromState===go.fromState&&gi.toState===go.toState)).subscribe(gi=>{this._isCenterPosition(gi.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(gi.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(he){this._positionIndex=he,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(he){const Re=this._isCenterPosition(he.toState);this._beforeCentering.emit(Re),Re&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(he){return"center"==he||"left-origin-center"==he||"right-origin-center"==he}_computePositionAnimationState(he=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==he?"left":"right":this._positionIndex>0?"ltr"==he?"right":"left":"center"}_computePositionFromOrigin(he){const Re=this._getLayoutDirection();return"ltr"==Re&&he<=0||"rtl"==Re&&he>0?"left-origin-center":"right-origin-center"}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(Vt.Is,8),t.Y36(t.sBO))},Fe.\u0275dir=t.lG2({type:Fe,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Fe})(),Gt=(()=>{class Fe extends kt{constructor(he,Re,En){super(he,Re,En)}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(Vt.Is,8),t.Y36(t.sBO))},Fe.\u0275cmp=t.Xpm({type:Fe,selectors:[["mat-tab-body"]],viewQuery:function(he,Re){if(1&he&&t.Gf(v.Pl,5),2&he){let En;t.iGM(En=t.CRH())&&(Re._portalHost=En.first)}},hostAttrs:[1,"mat-tab-body"],features:[t.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(he,Re){1&he&&(t.TgZ(0,"div",0,1),t.NdJ("@translateTab.start",function(gi){return Re._onTranslateTabStarted(gi)})("@translateTab.done",function(gi){return Re._translateTabComplete.next(gi)}),t.YNc(2,se,0,0,"ng-template",2),t.qZA()),2&he&&t.Q6J("@translateTab",t.WLB(3,ve,Re._position,t.VKq(1,Jt,Re.animationDuration)))},dependencies:[it],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:[ct.translateTab]}}),Fe})();const oe=new t.OlP("MAT_TABS_CONFIG"),Ce=(0,A.Id)(class{});let Ee=(()=>{class Fe extends Ce{constructor(he){super(),this.elementRef=he}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq))},Fe.\u0275dir=t.lG2({type:Fe,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(he,Re){2&he&&(t.uIk("aria-disabled",!!Re.disabled),t.ekj("mat-tab-disabled",Re.disabled))},inputs:{disabled:"disabled"},features:[t.qOj]}),Fe})();const Pn=(0,ft.i$)({passive:!0});let ho=(()=>{class Fe{constructor(he,Re,En,gi,go,_o,mn){this._elementRef=he,this._changeDetectorRef=Re,this._viewportRuler=En,this._dir=gi,this._ngZone=go,this._platform=_o,this._animationMode=mn,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,at.R)(he.nativeElement,"mouseleave").pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(he){this._disablePagination=(0,Tt.Ig)(he)}get selectedIndex(){return this._selectedIndex}set selectedIndex(he){he=(0,Tt.su)(he),this._selectedIndex!=he&&(this._selectedIndexChanged=!0,this._selectedIndex=he,this._keyManager&&this._keyManager.updateActiveItem(he))}ngAfterViewInit(){(0,at.R)(this._previousPaginator.nativeElement,"touchstart",Pn).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,at.R)(this._nextPaginator.nativeElement,"touchstart",Pn).pipe((0,D.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const he=this._dir?this._dir.change:(0,lt.of)("ltr"),Re=this._viewportRuler.change(150),En=()=>{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,C.q)(1)).subscribe(En),(0,bt.T)(he,Re,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)),En()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,D.R)(this._destroyed)).subscribe(gi=>{this.indexFocused.emit(gi),this._setTabFocus(gi)})}_itemsResized(){return"function"!=typeof ResizeObserver?Pt.E:this._items.changes.pipe((0,U.O)(this._items),(0,P.w)(he=>new Dt.y(Re=>this._ngZone.runOutsideAngular(()=>{const En=new ResizeObserver(gi=>Re.next(gi));return he.forEach(gi=>En.observe(gi.elementRef.nativeElement)),()=>{En.disconnect()}}))),(0,I.T)(1),(0,z.h)(he=>he.some(Re=>Re.contentRect.width>0&&Re.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(he){if(!(0,Et.Vb)(he))switch(he.keyCode){case Et.K5:case Et.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(he));break;default:this._keyManager.onKeydown(he)}}_onContentChanges(){const he=this._elementRef.nativeElement.textContent;he!==this._currentTextContent&&(this._currentTextContent=he||"",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(he){!this._isValidIndex(he)||this.focusIndex===he||!this._keyManager||this._keyManager.setActiveItem(he)}_isValidIndex(he){if(!this._items)return!0;const Re=this._items?this._items.toArray()[he]:null;return!!Re&&!Re.disabled}_setTabFocus(he){if(this._showPaginationControls&&this._scrollToLabel(he),this._items&&this._items.length){this._items.toArray()[he].focus();const Re=this._tabListContainer.nativeElement;Re.scrollLeft="ltr"==this._getLayoutDirection()?0:Re.scrollWidth-Re.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const he=this.scrollDistance,Re="ltr"===this._getLayoutDirection()?-he:he;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Re)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(he){this._scrollTo(he)}_scrollHeader(he){return this._scrollTo(this._scrollDistance+("before"==he?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(he){this._stopInterval(),this._scrollHeader(he)}_scrollToLabel(he){if(this.disablePagination)return;const Re=this._items?this._items.toArray()[he]:null;if(!Re)return;const En=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:gi,offsetWidth:go}=Re.elementRef.nativeElement;let _o,mn;"ltr"==this._getLayoutDirection()?(_o=gi,mn=_o+go):(mn=this._tabListInner.nativeElement.offsetWidth-gi,_o=mn-go);const An=this.scrollDistance,sn=this.scrollDistance+En;_osn&&(this.scrollDistance+=mn-sn+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const he=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;he||(this.scrollDistance=0),he!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=he}}_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 he=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Re=he?he.elementRef.nativeElement:null;Re?this._inkBar.alignToElement(Re):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(he,Re){Re&&null!=Re.button&&0!==Re.button||(this._stopInterval(),(0,zt.H)(650,100).pipe((0,D.R)((0,bt.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:En,distance:gi}=this._scrollHeader(he);(0===gi||gi>=En)&&this._stopInterval()}))}_scrollTo(he){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Re=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Re,he)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Re,distance:this._scrollDistance}}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(At.rL),t.Y36(Vt.Is,8),t.Y36(t.R0b),t.Y36(ft.t4),t.Y36(t.QbO,8))},Fe.\u0275dir=t.lG2({type:Fe,inputs:{disablePagination:"disablePagination"}}),Fe})(),fi=(()=>{class Fe extends ho{constructor(he,Re,En,gi,go,_o,mn){super(he,Re,En,gi,go,_o,mn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(he){this._disableRipple=(0,Tt.Ig)(he)}_itemSelected(he){he.preventDefault()}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(At.rL),t.Y36(Vt.Is,8),t.Y36(t.R0b),t.Y36(ft.t4),t.Y36(t.QbO,8))},Fe.\u0275dir=t.lG2({type:Fe,inputs:{disableRipple:"disableRipple"},features:[t.qOj]}),Fe})(),Yn=(()=>{class Fe extends fi{constructor(he,Re,En,gi,go,_o,mn){super(he,Re,En,gi,go,_o,mn)}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(At.rL),t.Y36(Vt.Is,8),t.Y36(t.R0b),t.Y36(ft.t4),t.Y36(t.QbO,8))},Fe.\u0275cmp=t.Xpm({type:Fe,selectors:[["mat-tab-header"]],contentQueries:function(he,Re,En){if(1&he&&t.Suo(En,Ee,4),2&he){let gi;t.iGM(gi=t.CRH())&&(Re._items=gi)}},viewQuery:function(he,Re){if(1&he&&(t.Gf(gn,7),t.Gf(xe,7),t.Gf(Oe,7),t.Gf(qe,7),t.Gf($e,5),t.Gf(Xt,5)),2&he){let En;t.iGM(En=t.CRH())&&(Re._inkBar=En.first),t.iGM(En=t.CRH())&&(Re._tabListContainer=En.first),t.iGM(En=t.CRH())&&(Re._tabList=En.first),t.iGM(En=t.CRH())&&(Re._tabListInner=En.first),t.iGM(En=t.CRH())&&(Re._nextPaginator=En.first),t.iGM(En=t.CRH())&&(Re._previousPaginator=En.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(he,Re){2&he&&t.ekj("mat-tab-header-pagination-controls-enabled",Re._showPaginationControls)("mat-tab-header-rtl","rtl"==Re._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[t.qOj],ngContentSelectors:It,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(he,Re){1&he&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return Re._handlePaginatorClick("before")})("mousedown",function(gi){return Re._handlePaginatorPress("before",gi)})("touchend",function(){return Re._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(gi){return Re._handleKeydown(gi)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return Re._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(gi){return Re._handlePaginatorPress("after",gi)})("click",function(){return Re._handlePaginatorClick("after")})("touchend",function(){return Re._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&he&&(t.ekj("mat-tab-header-pagination-disabled",Re._disableScrollBefore),t.Q6J("matRippleDisabled",Re._disableScrollBefore||Re.disableRipple)("disabled",Re._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===Re._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",Re._disableScrollAfter),t.Q6J("matRippleDisabled",Re._disableScrollAfter||Re.disableRipple)("disabled",Re._disableScrollAfter||null))},dependencies:[A.wG,p.wD,gn],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}),Fe})(),jn=0;class Ye{}const fn=(0,A.pj)((0,A.Kr)(class{constructor(Fe){this._elementRef=Fe}}),"primary");let ze=(()=>{class Fe extends fn{constructor(he,Re,En,gi){super(he),this._changeDetectorRef=Re,this._animationMode=gi,this._tabs=new t.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=K.w.EMPTY,this._tabLabelSubscription=K.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=jn++,this.animationDuration=En&&En.animationDuration?En.animationDuration:"500ms",this.disablePagination=!(!En||null==En.disablePagination)&&En.disablePagination,this.dynamicHeight=!(!En||null==En.dynamicHeight)&&En.dynamicHeight,this.contentTabIndex=En?.contentTabIndex??null,this.preserveContent=!!En?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(he){this._dynamicHeight=(0,Tt.Ig)(he)}get selectedIndex(){return this._selectedIndex}set selectedIndex(he){this._indexToSelect=(0,Tt.su)(he,null)}get animationDuration(){return this._animationDuration}set animationDuration(he){this._animationDuration=/^\d+$/.test(he+"")?he+"ms":he}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(he){this._contentTabIndex=(0,Tt.su)(he,null)}get disablePagination(){return this._disablePagination}set disablePagination(he){this._disablePagination=(0,Tt.Ig)(he)}get preserveContent(){return this._preserveContent}set preserveContent(he){this._preserveContent=(0,Tt.Ig)(he)}get backgroundColor(){return this._backgroundColor}set backgroundColor(he){const Re=this._elementRef.nativeElement;Re.classList.remove(`mat-background-${this.backgroundColor}`),he&&Re.classList.add(`mat-background-${he}`),this._backgroundColor=he}ngAfterContentChecked(){const he=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=he){const Re=null==this._selectedIndex;if(!Re){this.selectedTabChange.emit(this._createChangeEvent(he));const En=this._tabBodyWrapper.nativeElement;En.style.minHeight=En.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((En,gi)=>En.isActive=gi===he),Re||(this.selectedIndexChange.emit(he),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Re,En)=>{Re.position=En-he,null!=this._selectedIndex&&0==Re.position&&!Re.origin&&(Re.origin=he-this._selectedIndex)}),this._selectedIndex!==he&&(this._selectedIndex=he,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const he=this._clampTabIndex(this._indexToSelect);if(he===this._selectedIndex){const Re=this._tabs.toArray();let En;for(let gi=0;gi{Re[he].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(he))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,U.O)(this._allTabs)).subscribe(he=>{this._tabs.reset(he.filter(Re=>Re._closestTabGroup===this||!Re._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(he){const Re=this._tabHeader;Re&&(Re.focusIndex=he)}_focusChanged(he){this._lastFocusedTabIndex=he,this.focusChange.emit(this._createChangeEvent(he))}_createChangeEvent(he){const Re=new Ye;return Re.index=he,this._tabs&&this._tabs.length&&(Re.tab=this._tabs.toArray()[he]),Re}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,bt.T)(...this._tabs.map(he=>he._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(he){return Math.min(this._tabs.length-1,Math.max(he||0,0))}_getTabLabelId(he){return`mat-tab-label-${this._groupId}-${he}`}_getTabContentId(he){return`mat-tab-content-${this._groupId}-${he}`}_setTabBodyWrapperHeight(he){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Re=this._tabBodyWrapper.nativeElement;Re.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Re.style.height=he+"px")}_removeTabBodyWrapperHeight(){const he=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=he.clientHeight,he.style.height="",this.animationDone.emit()}_handleClick(he,Re,En){he.disabled||(this.selectedIndex=Re.focusIndex=En)}_getTabIndex(he,Re){return he.disabled?null:Re===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(he,Re){he&&"mouse"!==he&&"touch"!==he&&(this._tabHeader.focusIndex=Re)}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(oe,8),t.Y36(t.QbO,8))},Fe.\u0275dir=t.lG2({type:Fe,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]}),Fe})(),We=(()=>{class Fe extends ze{constructor(he,Re,En,gi){super(he,Re,En,gi)}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(oe,8),t.Y36(t.QbO,8))},Fe.\u0275cmp=t.Xpm({type:Fe,selectors:[["mat-tab-group"]],contentQueries:function(he,Re,En){if(1&he&&t.Suo(En,ne,5),2&he){let gi;t.iGM(gi=t.CRH())&&(Re._allTabs=gi)}},viewQuery:function(he,Re){if(1&he&&(t.Gf(we,5),t.Gf(ae,5)),2&he){let En;t.iGM(En=t.CRH())&&(Re._tabBodyWrapper=En.first),t.iGM(En=t.CRH())&&(Re._tabHeader=En.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(he,Re){2&he&&t.ekj("mat-tab-group-dynamic-height",Re.dynamicHeight)("mat-tab-group-inverted-header","below"===Re.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[t._Bn([{provide:Ke,useExisting:Fe}]),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(he,Re){1&he&&(t.TgZ(0,"mat-tab-header",0,1),t.NdJ("indexFocused",function(gi){return Re._focusChanged(gi)})("selectFocusedIndex",function(gi){return Re.selectedIndex=gi}),t.YNc(2,re,5,15,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.YNc(5,Pe,1,11,"mat-tab-body",5),t.qZA()),2&he&&(t.Q6J("selectedIndex",Re.selectedIndex||0)("disableRipple",Re.disableRipple)("disablePagination",Re.disablePagination),t.xp6(2),t.Q6J("ngForOf",Re._tabs),t.xp6(1),t.ekj("_mat-animation-noopable","NoopAnimations"===Re._animationMode),t.xp6(2),t.Q6J("ngForOf",Re._tabs))},dependencies:[T.mk,T.sg,T.O5,v.Pl,A.wG,d.kH,Ee,Gt,Yn],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}),Fe})(),en=0,le=(()=>{class Fe extends ho{constructor(he,Re,En,gi,go,_o,mn){super(he,gi,go,Re,En,_o,mn),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(he){const Re=this._elementRef.nativeElement.classList;Re.remove(`mat-background-${this.backgroundColor}`),he&&Re.add(`mat-background-${he}`),this._backgroundColor=he}get disableRipple(){return this._disableRipple}set disableRipple(he){this._disableRipple=(0,Tt.Ig)(he)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,U.O)(null),(0,D.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const he=this._items.toArray();for(let Re=0;Re{class Fe extends le{constructor(he,Re,En,gi,go,_o,mn){super(he,Re,En,gi,go,_o,mn)}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(t.SBq),t.Y36(Vt.Is,8),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(At.rL),t.Y36(ft.t4),t.Y36(t.QbO,8))},Fe.\u0275cmp=t.Xpm({type:Fe,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(he,Re,En){if(1&he&&t.Suo(En,Ot,5),2&he){let gi;t.iGM(gi=t.CRH())&&(Re._items=gi)}},viewQuery:function(he,Re){if(1&he&&(t.Gf(gn,7),t.Gf(xe,7),t.Gf(Oe,7),t.Gf(qe,7),t.Gf($e,5),t.Gf(Xt,5)),2&he){let En;t.iGM(En=t.CRH())&&(Re._inkBar=En.first),t.iGM(En=t.CRH())&&(Re._tabListContainer=En.first),t.iGM(En=t.CRH())&&(Re._tabList=En.first),t.iGM(En=t.CRH())&&(Re._tabListInner=En.first),t.iGM(En=t.CRH())&&(Re._nextPaginator=En.first),t.iGM(En=t.CRH())&&(Re._previousPaginator=En.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(he,Re){2&he&&(t.uIk("role",Re._getRole()),t.ekj("mat-tab-header-pagination-controls-enabled",Re._showPaginationControls)("mat-tab-header-rtl","rtl"==Re._getLayoutDirection())("mat-primary","warn"!==Re.color&&"accent"!==Re.color)("mat-accent","accent"===Re.color)("mat-warn","warn"===Re.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[t.qOj],attrs:on,ngContentSelectors:It,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(he,Re){1&he&&(t.F$t(),t.TgZ(0,"button",0,1),t.NdJ("click",function(){return Re._handlePaginatorClick("before")})("mousedown",function(gi){return Re._handlePaginatorPress("before",gi)})("touchend",function(){return Re._stopInterval()}),t._UZ(2,"div",2),t.qZA(),t.TgZ(3,"div",3,4),t.NdJ("keydown",function(gi){return Re._handleKeydown(gi)}),t.TgZ(5,"div",5,6),t.NdJ("cdkObserveContent",function(){return Re._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(gi){return Re._handlePaginatorPress("after",gi)})("click",function(){return Re._handlePaginatorClick("after")})("touchend",function(){return Re._stopInterval()}),t._UZ(13,"div",2),t.qZA()),2&he&&(t.ekj("mat-tab-header-pagination-disabled",Re._disableScrollBefore),t.Q6J("matRippleDisabled",Re._disableScrollBefore||Re.disableRipple)("disabled",Re._disableScrollBefore||null),t.xp6(5),t.ekj("_mat-animation-noopable","NoopAnimations"===Re._animationMode),t.xp6(6),t.ekj("mat-tab-header-pagination-disabled",Re._disableScrollAfter),t.Q6J("matRippleDisabled",Re._disableScrollAfter||Re.disableRipple)("disabled",Re._disableScrollAfter||null))},dependencies:[A.wG,p.wD,gn],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}),Fe})();const Lt=(0,A.sb)((0,A.Kr)((0,A.Id)(class{})));let wt=(()=>{class Fe extends Lt{constructor(he,Re,En,gi,go,_o){super(),this._tabNavBar=he,this.elementRef=Re,this._focusMonitor=go,this._isActive=!1,this.id="mat-tab-link-"+en++,this.rippleConfig=En||{},this.tabIndex=parseInt(gi)||0,"NoopAnimations"===_o&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(he){const Re=(0,Tt.Ig)(he);Re!==this._isActive&&(this._isActive=Re,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(he){this._tabNavBar.tabPanel&&he.keyCode===Et.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 Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(le),t.Y36(t.SBq),t.Y36(A.Y2,8),t.$8M("tabindex"),t.Y36(d.tE),t.Y36(t.QbO,8))},Fe.\u0275dir=t.lG2({type:Fe,inputs:{active:"active",id:"id"},features:[t.qOj]}),Fe})(),Ot=(()=>{class Fe extends wt{constructor(he,Re,En,gi,go,_o,mn,An){super(he,Re,go,_o,mn,An),this._tabLinkRipple=new A.IR(this,En,Re,gi),this._tabLinkRipple.setupTriggerEvents(Re.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Fe.\u0275fac=function(he){return new(he||Fe)(t.Y36(Je),t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(ft.t4),t.Y36(A.Y2,8),t.$8M("tabindex"),t.Y36(d.tE),t.Y36(t.QbO,8))},Fe.\u0275dir=t.lG2({type:Fe,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(he,Re){1&he&&t.NdJ("focus",function(){return Re._handleFocus()})("keydown",function(gi){return Re._handleKeydown(gi)}),2&he&&(t.uIk("aria-controls",Re._getAriaControls())("aria-current",Re._getAriaCurrent())("aria-disabled",Re.disabled)("aria-selected",Re._getAriaSelected())("id",Re.id)("tabIndex",Re._getTabIndex())("role",Re._getRole()),t.ekj("mat-tab-disabled",Re.disabled)("mat-tab-label-active",Re.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[t.qOj]}),Fe})(),Xe=(()=>{class Fe{}return Fe.\u0275fac=function(he){return new(he||Fe)},Fe.\u0275mod=t.oAB({type:Fe}),Fe.\u0275inj=t.cJS({imports:[T.ez,A.BQ,v.eL,A.si,p.Q8,d.rt,A.BQ]}),Fe})()},83683:(ot,et,b)=>{"use strict";b.d(et,{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"],C=(0,p.pj)(class{constructor(I){this._elementRef=I}});let U=(()=>{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 C{constructor(G,K,at){super(G),this._platform=K,this._document=at}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,K,at){if(1&G&&d.Suo(at,U,5),2&G){let lt;d.iGM(lt=d.CRH())&&(K._toolbarRows=lt)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(G,K){2&G&&d.ekj("mat-toolbar-multiple-rows",K._toolbarRows.length>0)("mat-toolbar-single-row",0===K._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[d.qOj],ngContentSelectors:A,decls:2,vars:0,template:function(G,K){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:(ot,et,b)=>{"use strict";b.d(et,{AV:()=>xe,gM:()=>se});var d=b(98184),p=b(12687),v=b(36895),T=b(94650),t=b(3238),A=b(67376),C=b(40445),U=b(21281),k=b(29521),D=b(62289),P=b(83353),I=b(84080),z=b(8929),G=b(7625),K=b(72986);b(37340);const lt=["tooltip"],Dt="tooltip-panel",zt=(0,P.i$)({passive:!0}),Tt=new T.OlP("mat-tooltip-scroll-strategy"),ft={provide:Tt,deps:[d.aV],useFactory:function At(qe){return()=>qe.scrollStrategies.reposition({scrollThrottle:20})}},Et=new T.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Bt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let It=(()=>{class qe{constructor(Xt,we,ae,Kt,de,Wt,re,Pe,on,_n,ye,gn){this._overlay=Xt,this._elementRef=we,this._scrollDispatcher=ae,this._viewContainerRef=Kt,this._ngZone=de,this._platform=Wt,this._ariaDescriber=re,this._focusMonitor=Pe,this._dir=_n,this._defaultOptions=ye,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=gn,ye&&(ye.position&&(this.position=ye.position),ye.touchGestures&&(this.touchGestures=ye.touchGestures)),_n.change.pipe((0,G.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(Xt){Xt!==this._position&&(this._position=Xt,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Xt){this._disabled=(0,U.Ig)(Xt),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Xt){this._showDelay=(0,U.su)(Xt)}get hideDelay(){return this._hideDelay}set hideDelay(Xt){this._hideDelay=(0,U.su)(Xt),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(Xt){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Xt?String(Xt).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(Xt){this._tooltipClass=Xt,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,G.R)(this._destroyed)).subscribe(Xt=>{Xt?"keyboard"===Xt&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Xt=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([we,ae])=>{Xt.removeEventListener(we,ae,zt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Xt,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Xt)}show(Xt=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const we=this._createOverlay();this._detach(),this._portal=this._portal||new I.C5(this._tooltipComponent,this._viewContainerRef);const ae=this._tooltipInstance=we.attach(this._portal).instance;ae._triggerElement=this._elementRef.nativeElement,ae._mouseLeaveHideDelay=this._hideDelay,ae.afterHidden().pipe((0,G.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ae.show(Xt)}hide(Xt=this.hideDelay){const we=this._tooltipInstance;we&&(we.isVisible()?we.hide(Xt):(we._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 Xt=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),we=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Xt);return we.positionChanges.pipe((0,G.R)(this._destroyed)).subscribe(ae=>{this._updateCurrentPositionClass(ae.connectionPair),this._tooltipInstance&&ae.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:we,panelClass:`${this._cssClassPrefix}-${Dt}`,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(ae=>{this._isTooltipVisible()&&ae.keyCode===k.hY&&!(0,k.Vb)(ae)&&(ae.preventDefault(),ae.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(Xt){const we=Xt.getConfig().positionStrategy,ae=this._getOrigin(),Kt=this._getOverlayPosition();we.withPositions([this._addOffset({...ae.main,...Kt.main}),this._addOffset({...ae.fallback,...Kt.fallback})])}_addOffset(Xt){return Xt}_getOrigin(){const Xt=!this._dir||"ltr"==this._dir.value,we=this.position;let ae;"above"==we||"below"==we?ae={originX:"center",originY:"above"==we?"top":"bottom"}:"before"==we||"left"==we&&Xt||"right"==we&&!Xt?ae={originX:"start",originY:"center"}:("after"==we||"right"==we&&Xt||"left"==we&&!Xt)&&(ae={originX:"end",originY:"center"});const{x:Kt,y:de}=this._invertPosition(ae.originX,ae.originY);return{main:ae,fallback:{originX:Kt,originY:de}}}_getOverlayPosition(){const Xt=!this._dir||"ltr"==this._dir.value,we=this.position;let ae;"above"==we?ae={overlayX:"center",overlayY:"bottom"}:"below"==we?ae={overlayX:"center",overlayY:"top"}:"before"==we||"left"==we&&Xt||"right"==we&&!Xt?ae={overlayX:"end",overlayY:"center"}:("after"==we||"right"==we&&Xt||"left"==we&&!Xt)&&(ae={overlayX:"start",overlayY:"center"});const{x:Kt,y:de}=this._invertPosition(ae.overlayX,ae.overlayY);return{main:ae,fallback:{overlayX:Kt,overlayY:de}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,K.q)(1),(0,G.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Xt){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Xt,this._tooltipInstance._markForCheck())}_invertPosition(Xt,we){return"above"===this.position||"below"===this.position?"top"===we?we="bottom":"bottom"===we&&(we="top"):"end"===Xt?Xt="start":"start"===Xt&&(Xt="end"),{x:Xt,y:we}}_updateCurrentPositionClass(Xt){const{overlayY:we,originX:ae,originY:Kt}=Xt;let de;if(de="center"===we?this._dir&&"rtl"===this._dir.value?"end"===ae?"left":"right":"start"===ae?"left":"right":"bottom"===we&&"top"===Kt?"above":"below",de!==this._currentPosition){const Wt=this._overlayRef;if(Wt){const re=`${this._cssClassPrefix}-${Dt}-`;Wt.removePanelClass(re+this._currentPosition),Wt.addPanelClass(re+de)}this._currentPosition=de}}_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 Xt=[];if(this._platformSupportsMouseEvents())Xt.push(["mouseleave",we=>{const ae=we.relatedTarget;(!ae||!this._overlayRef?.overlayElement.contains(ae))&&this.hide()}],["wheel",we=>this._wheelListener(we)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const we=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Xt.push(["touchend",we],["touchcancel",we])}this._addListeners(Xt),this._passiveListeners.push(...Xt)}_addListeners(Xt){Xt.forEach(([we,ae])=>{this._elementRef.nativeElement.addEventListener(we,ae,zt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Xt){if(this._isTooltipVisible()){const we=this._document.elementFromPoint(Xt.clientX,Xt.clientY),ae=this._elementRef.nativeElement;we!==ae&&!ae.contains(we)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Xt=this.touchGestures;if("off"!==Xt){const we=this._elementRef.nativeElement,ae=we.style;("on"===Xt||"INPUT"!==we.nodeName&&"TEXTAREA"!==we.nodeName)&&(ae.userSelect=ae.msUserSelect=ae.webkitUserSelect=ae.MozUserSelect="none"),("on"===Xt||!we.draggable)&&(ae.webkitUserDrag="none"),ae.touchAction="none",ae.webkitTapHighlightColor="transparent"}}}return qe.\u0275fac=function(Xt){T.$Z()},qe.\u0275dir=T.lG2({type:qe,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),qe})(),se=(()=>{class qe extends It{constructor(Xt,we,ae,Kt,de,Wt,re,Pe,on,_n,ye,gn){super(Xt,we,ae,Kt,de,Wt,re,Pe,on,_n,ye,gn),this._tooltipComponent=ve}}return qe.\u0275fac=function(Xt){return new(Xt||qe)(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(Tt),T.Y36(C.Is,8),T.Y36(Et,8),T.Y36(v.K0))},qe.\u0275dir=T.lG2({type:qe,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[T.qOj]}),qe})(),Jt=(()=>{class qe{constructor(Xt,we){this._changeDetectorRef=Xt,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new z.xQ,this._animationsDisabled="NoopAnimations"===we}show(Xt){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Xt)}hide(Xt){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Xt)}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:Xt}){(!Xt||!this._triggerElement.contains(Xt))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:Xt}){(Xt===this._showAnimation||Xt===this._hideAnimation)&&this._finalizeAnimation(Xt===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Xt){Xt?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Xt){const we=this._tooltip.nativeElement,ae=this._showAnimation,Kt=this._hideAnimation;if(we.classList.remove(Xt?Kt:ae),we.classList.add(Xt?ae:Kt),this._isVisible=Xt,Xt&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const de=getComputedStyle(we);("0s"===de.getPropertyValue("animation-duration")||"none"===de.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Xt&&this._onShow(),this._animationsDisabled&&(we.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Xt))}}return qe.\u0275fac=function(Xt){return new(Xt||qe)(T.Y36(T.sBO),T.Y36(T.QbO,8))},qe.\u0275dir=T.lG2({type:qe}),qe})(),ve=(()=>{class qe extends Jt{constructor(Xt,we,ae){super(Xt,ae),this._breakpointObserver=we,this._isHandset=this._breakpointObserver.observe(D.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return qe.\u0275fac=function(Xt){return new(Xt||qe)(T.Y36(T.sBO),T.Y36(D.Yg),T.Y36(T.QbO,8))},qe.\u0275cmp=T.Xpm({type:qe,selectors:[["mat-tooltip-component"]],viewQuery:function(Xt,we){if(1&Xt&&T.Gf(lt,7),2&Xt){let ae;T.iGM(ae=T.CRH())&&(we._tooltip=ae.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Xt,we){1&Xt&&T.NdJ("mouseleave",function(Kt){return we._handleMouseLeave(Kt)}),2&Xt&&T.Udp("zoom",we.isVisible()?1:null)},features:[T.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(Xt,we){if(1&Xt&&(T.TgZ(0,"div",0,1),T.NdJ("animationend",function(Kt){return we._handleAnimationEnd(Kt)}),T.ALo(2,"async"),T._uU(3),T.qZA()),2&Xt){let ae;T.ekj("mat-tooltip-handset",null==(ae=T.lcZ(2,4,we._isHandset))?null:ae.matches),T.Q6J("ngClass",we.tooltipClass),T.xp6(3),T.Oqu(we.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}),qe})(),xe=(()=>{class qe{}return qe.\u0275fac=function(Xt){return new(Xt||qe)},qe.\u0275mod=T.oAB({type:qe}),qe.\u0275inj=T.cJS({providers:[ft],imports:[p.rt,v.ez,d.U8,t.BQ,t.BQ,A.ZD]}),qe})()},35423:(ot,et,b)=>{"use strict";b.d(et,{Ar:()=>K,GZ:()=>z,JZ:()=>Dt,WX:()=>Vt,ah:()=>G,dp:()=>Pt,eu:()=>lt,fQ:()=>I,gi:()=>at,kc:()=>zt,uo:()=>P});var d=b(57851),p=b(94650),v=b(3238),T=b(21281),t=b(95017),A=b(591),C=b(36787),U=b(72986),k=b(24850);const D=(0,v.sb)((0,v.Id)(d.Hs));let P=(()=>{class nt extends D{constructor(At,ft,Et){super(At,ft),this.tabIndex=Number(Et)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return nt.\u0275fac=function(At){return new(At||nt)(p.Y36(p.SBq),p.Y36(d._0),p.$8M("tabindex"))},nt.\u0275dir=p.lG2({type:nt,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:nt}]),p.qOj]}),nt})(),I=(()=>{class nt extends d.rO{}return nt.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=p.n5z(nt)))(ft||nt)}}(),nt.\u0275dir=p.lG2({type:nt,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[p._Bn([{provide:d.rO,useExisting:nt}]),p.qOj]}),nt})(),z=(()=>{class nt extends d.Xx{constructor(At,ft,Et,Bt){super(At,ft,Et),this._disabled=!1,this.tabIndex=Number(Bt)||0}get disabled(){return this._disabled}set disabled(At){this._disabled=(0,T.Ig)(At)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(At){this._tabIndex=At??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return nt.\u0275fac=function(At){return new(At||nt)(p.Y36(p.SBq),p.Y36(d._0),p.Y36(p.ZZ4),p.$8M("tabindex"))},nt.\u0275dir=p.lG2({type:nt,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:nt},{provide:d.Hs,useExisting:nt},{provide:d.HI,useExisting:nt}]),p.qOj]}),nt})(),G=(()=>{class nt extends d.XJ{get level(){return this._level}set level(At){this._setLevelInput(At)}get indent(){return this._indent}set indent(At){this._setIndentInput(At)}}return nt.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=p.n5z(nt)))(ft||nt)}}(),nt.\u0275dir=p.lG2({type:nt,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[p._Bn([{provide:d.XJ,useExisting:nt}]),p.qOj]}),nt})(),K=(()=>{class nt{constructor(At,ft){this.viewContainer=At,this._node=ft}}return nt.\u0275fac=function(At){return new(At||nt)(p.Y36(p.s_b),p.Y36(d.HI,8))},nt.\u0275dir=p.lG2({type:nt,selectors:[["","matTreeNodeOutlet",""]],features:[p._Bn([{provide:d.cu,useExisting:nt}])]}),nt})(),at=(()=>{class nt extends d._0{}return nt.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=p.n5z(nt)))(ft||nt)}}(),nt.\u0275cmp=p.Xpm({type:nt,selectors:[["mat-tree"]],viewQuery:function(At,ft){if(1&At&&p.Gf(K,7),2&At){let Et;p.iGM(Et=p.CRH())&&(ft._nodeOutlet=Et.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[p._Bn([{provide:d._0,useExisting:nt}]),p.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(At,ft){1&At&&p.GkF(0,0)},dependencies:[K],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}),nt})(),lt=(()=>{class nt extends d.Ud{}return nt.\u0275fac=function(){let Tt;return function(ft){return(Tt||(Tt=p.n5z(nt)))(ft||nt)}}(),nt.\u0275dir=p.lG2({type:nt,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[p._Bn([{provide:d.Ud,useExisting:nt}]),p.qOj]}),nt})(),Pt=(()=>{class nt{}return nt.\u0275fac=function(At){return new(At||nt)},nt.\u0275mod=p.oAB({type:nt}),nt.\u0275inj=p.cJS({imports:[d.nZ,v.BQ,v.BQ]}),nt})();class Dt{constructor(Tt,At,ft,Et){this.transformFunction=Tt,this.getLevel=At,this.isExpandable=ft,this.getChildren=Et}_flattenNode(Tt,At,ft,Et){const Bt=this.transformFunction(Tt,At);if(ft.push(Bt),this.isExpandable(Bt)){const It=this.getChildren(Tt);It&&(Array.isArray(It)?this._flattenChildren(It,At,ft,Et):It.pipe((0,U.q)(1)).subscribe(se=>{this._flattenChildren(se,At,ft,Et)}))}return ft}_flattenChildren(Tt,At,ft,Et){Tt.forEach((Bt,It)=>{let se=Et.slice();se.push(It!=Tt.length-1),this._flattenNode(Bt,At+1,ft,se)})}flattenNodes(Tt){let At=[];return Tt.forEach(ft=>this._flattenNode(ft,0,At,[])),At}expandFlattenedNodes(Tt,At){let ft=[],Et=[];return Et[0]=!0,Tt.forEach(Bt=>{let It=!0;for(let se=0;se<=this.getLevel(Bt);se++)It=It&&Et[se];It&&ft.push(Bt),this.isExpandable(Bt)&&(Et[this.getLevel(Bt)+1]=At.isExpanded(Bt))}),ft}}class zt extends t.o2{constructor(Tt,At,ft){super(),this._treeControl=Tt,this._treeFlattener=At,this._flattenedData=new A.X([]),this._expandedData=new A.X([]),this._data=new A.X([]),ft&&(this.data=ft)}get data(){return this._data.value}set data(Tt){this._data.next(Tt),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(Tt){return(0,C.T)(Tt.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 Vt extends t.o2{constructor(){super(...arguments),this._data=new A.X([])}get data(){return this._data.value}set data(Tt){this._data.next(Tt)}connect(Tt){return(0,C.T)(Tt.viewChange,this._data).pipe((0,k.U)(()=>this.data))}disconnect(){}}},11481:(ot,et,b)=>{"use strict";b.d(et,{Dx:()=>oe,H7:()=>En,b2:()=>ne,q6:()=>oi,se:()=>Jt});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(An,sn,ei){return An.addEventListener(sn,ei,!1),()=>{An.removeEventListener(sn,ei,!1)}}dispatchEvent(An,sn){An.dispatchEvent(sn)}remove(An){An.parentNode&&An.parentNode.removeChild(An)}createElement(An,sn){return(sn=sn||this.getDefaultDocument()).createElement(An)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(An){return An.nodeType===Node.ELEMENT_NODE}isShadowRoot(An){return An instanceof DocumentFragment}getGlobalEventTarget(An,sn){return"window"===sn?window:"document"===sn?An:"body"===sn?An.body:null}getBaseHref(An){const sn=function A(){return t=t||document.querySelector("base"),t?t.getAttribute("href"):null}();return null==sn?null:function U(mn){C=C||document.createElement("a"),C.setAttribute("href",mn);const An=C.pathname;return"/"===An.charAt(0)?An:`/${An}`}(sn)}resetBaseElement(){t=null}getUserAgent(){return window.navigator.userAgent}getCookie(An){return(0,d.Mx)(document.cookie,An)}}let C,t=null;const k=new p.OlP("TRANSITION_ID"),P=[{provide:p.ip1,useFactory:function D(mn,An,sn){return()=>{sn.get(p.CZH).donePromise.then(()=>{const ei=(0,d.q)(),Zi=An.querySelectorAll(`style[ng-transition="${mn}"]`);for(let vo=0;vo{class mn{build(){return new XMLHttpRequest}}return mn.\u0275fac=function(sn){return new(sn||mn)},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();const G=new p.OlP("EventManagerPlugins");let K=(()=>{class mn{constructor(sn,ei){this._zone=ei,this._eventNameToPlugin=new Map,sn.forEach(Zi=>Zi.manager=this),this._plugins=sn.slice().reverse()}addEventListener(sn,ei,Zi){return this._findPluginFor(ei).addEventListener(sn,ei,Zi)}addGlobalEventListener(sn,ei,Zi){return this._findPluginFor(ei).addGlobalEventListener(sn,ei,Zi)}getZone(){return this._zone}_findPluginFor(sn){const ei=this._eventNameToPlugin.get(sn);if(ei)return ei;const Zi=this._plugins;for(let vo=0;vo{class mn{constructor(){this._stylesSet=new Set}addStyles(sn){const ei=new Set;sn.forEach(Zi=>{this._stylesSet.has(Zi)||(this._stylesSet.add(Zi),ei.add(Zi))}),this.onStylesAdded(ei)}onStylesAdded(sn){}getAllStyles(){return Array.from(this._stylesSet)}}return mn.\u0275fac=function(sn){return new(sn||mn)},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})(),bt=(()=>{class mn extends lt{constructor(sn){super(),this._doc=sn,this._hostNodes=new Map,this._hostNodes.set(sn.head,[])}_addStylesToHost(sn,ei,Zi){sn.forEach(vo=>{const Fo=this._doc.createElement("style");Fo.textContent=vo,Zi.push(ei.appendChild(Fo))})}addHost(sn){const ei=[];this._addStylesToHost(this._stylesSet,sn,ei),this._hostNodes.set(sn,ei)}removeHost(sn){const ei=this._hostNodes.get(sn);ei&&ei.forEach(Pt),this._hostNodes.delete(sn)}onStylesAdded(sn){this._hostNodes.forEach((ei,Zi)=>{this._addStylesToHost(sn,Zi,ei)})}ngOnDestroy(){this._hostNodes.forEach(sn=>sn.forEach(Pt))}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();function Pt(mn){(0,d.q)().remove(mn)}const Dt={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/"},zt=/%COMP%/g;function Bt(mn,An,sn){for(let ei=0;ei{if("__ngUnwrap__"===An)return mn;!1===mn(An)&&(An.preventDefault(),An.returnValue=!1)}}let Jt=(()=>{class mn{constructor(sn,ei,Zi){this.eventManager=sn,this.sharedStylesHost=ei,this.appId=Zi,this.rendererByCompId=new Map,this.defaultRenderer=new ve(sn)}createRenderer(sn,ei){if(!sn||!ei)return this.defaultRenderer;switch(ei.encapsulation){case p.ifc.Emulated:{let Zi=this.rendererByCompId.get(ei.id);return Zi||(Zi=new $e(this.eventManager,this.sharedStylesHost,ei,this.appId),this.rendererByCompId.set(ei.id,Zi)),Zi.applyToHost(sn),Zi}case 1:case p.ifc.ShadowDom:return new Xt(this.eventManager,this.sharedStylesHost,sn,ei);default:if(!this.rendererByCompId.has(ei.id)){const Zi=Bt(ei.id,ei.styles,[]);this.sharedStylesHost.addStyles(Zi),this.rendererByCompId.set(ei.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(K),p.LFG(bt),p.LFG(p.AFp))},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();class ve{constructor(An){this.eventManager=An,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(An,sn){return sn?document.createElementNS(Dt[sn]||sn,An):document.createElement(An)}createComment(An){return document.createComment(An)}createText(An){return document.createTextNode(An)}appendChild(An,sn){(qe(An)?An.content:An).appendChild(sn)}insertBefore(An,sn,ei){An&&(qe(An)?An.content:An).insertBefore(sn,ei)}removeChild(An,sn){An&&An.removeChild(sn)}selectRootElement(An,sn){let ei="string"==typeof An?document.querySelector(An):An;if(!ei)throw new Error(`The selector "${An}" did not match any elements`);return sn||(ei.textContent=""),ei}parentNode(An){return An.parentNode}nextSibling(An){return An.nextSibling}setAttribute(An,sn,ei,Zi){if(Zi){sn=Zi+":"+sn;const vo=Dt[Zi];vo?An.setAttributeNS(vo,sn,ei):An.setAttribute(sn,ei)}else An.setAttribute(sn,ei)}removeAttribute(An,sn,ei){if(ei){const Zi=Dt[ei];Zi?An.removeAttributeNS(Zi,sn):An.removeAttribute(`${ei}:${sn}`)}else An.removeAttribute(sn)}addClass(An,sn){An.classList.add(sn)}removeClass(An,sn){An.classList.remove(sn)}setStyle(An,sn,ei,Zi){Zi&(p.JOm.DashCase|p.JOm.Important)?An.style.setProperty(sn,ei,Zi&p.JOm.Important?"important":""):An.style[sn]=ei}removeStyle(An,sn,ei){ei&p.JOm.DashCase?An.style.removeProperty(sn):An.style[sn]=""}setProperty(An,sn,ei){An[sn]=ei}setValue(An,sn){An.nodeValue=sn}listen(An,sn,ei){return"string"==typeof An?this.eventManager.addGlobalEventListener(An,sn,It(ei)):this.eventManager.addEventListener(An,sn,It(ei))}}function qe(mn){return"TEMPLATE"===mn.tagName&&void 0!==mn.content}class $e extends ve{constructor(An,sn,ei,Zi){super(An),this.component=ei;const vo=Bt(Zi+"-"+ei.id,ei.styles,[]);sn.addStyles(vo),this.contentAttr=function ft(mn){return"_ngcontent-%COMP%".replace(zt,mn)}(Zi+"-"+ei.id),this.hostAttr=function Et(mn){return"_nghost-%COMP%".replace(zt,mn)}(Zi+"-"+ei.id)}applyToHost(An){super.setAttribute(An,this.hostAttr,"")}createElement(An,sn){const ei=super.createElement(An,sn);return super.setAttribute(ei,this.contentAttr,""),ei}}class Xt extends ve{constructor(An,sn,ei,Zi){super(An),this.sharedStylesHost=sn,this.hostEl=ei,this.shadowRoot=ei.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const vo=Bt(Zi.id,Zi.styles,[]);for(let Fo=0;Fo{class mn extends at{constructor(sn){super(sn)}supports(sn){return!0}addEventListener(sn,ei,Zi){return sn.addEventListener(ei,Zi,!1),()=>this.removeEventListener(sn,ei,Zi)}removeEventListener(sn,ei,Zi){return sn.removeEventListener(ei,Zi)}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();const ae=["alt","control","meta","shift"],Kt={"\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"},de={alt:mn=>mn.altKey,control:mn=>mn.ctrlKey,meta:mn=>mn.metaKey,shift:mn=>mn.shiftKey};let Wt=(()=>{class mn extends at{constructor(sn){super(sn)}supports(sn){return null!=mn.parseEventName(sn)}addEventListener(sn,ei,Zi){const vo=mn.parseEventName(ei),Fo=mn.eventCallback(vo.fullKey,Zi,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.q)().onAndCancel(sn,vo.domEventName,Fo))}static parseEventName(sn){const ei=sn.toLowerCase().split("."),Zi=ei.shift();if(0===ei.length||"keydown"!==Zi&&"keyup"!==Zi)return null;const vo=mn._normalizeKey(ei.pop());let Fo="",ca=ei.indexOf("code");if(ca>-1&&(ei.splice(ca,1),Fo="code."),ae.forEach(fr=>{const Ge=ei.indexOf(fr);Ge>-1&&(ei.splice(Ge,1),Fo+=fr+".")}),Fo+=vo,0!=ei.length||0===vo.length)return null;const Ia={};return Ia.domEventName=Zi,Ia.fullKey=Fo,Ia}static matchEventFullKeyCode(sn,ei){let Zi=Kt[sn.key]||sn.key,vo="";return ei.indexOf("code.")>-1&&(Zi=sn.code,vo="code."),!(null==Zi||!Zi)&&(Zi=Zi.toLowerCase()," "===Zi?Zi="space":"."===Zi&&(Zi="dot"),ae.forEach(Fo=>{Fo!==Zi&&(0,de[Fo])(sn)&&(vo+=Fo+".")}),vo+=Zi,vo===ei)}static eventCallback(sn,ei,Zi){return vo=>{mn.matchEventFullKeyCode(vo,sn)&&Zi.runGuarded(()=>ei(vo))}}static _normalizeKey(sn){return"esc"===sn?"escape":sn}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:mn.\u0275fac}),mn})();const oi=(0,p.eFA)(p._c5,"browser",[{provide:p.Lbi,useValue:d.bD},{provide:p.g9A,useValue:function gn(){T.makeCurrent()},multi:!0},{provide:d.K0,useFactory:function un(){return(0,p.RDi)(document),document},deps:[]}]),bi=new p.OlP(""),ri=[{provide:p.rWj,useClass:class I{addToWindow(An){p.dqk.getAngularTestability=(ei,Zi=!0)=>{const vo=An.findTestabilityInTree(ei,Zi);if(null==vo)throw new Error("Could not find testability for element.");return vo},p.dqk.getAllAngularTestabilities=()=>An.getAllTestabilities(),p.dqk.getAllAngularRootElements=()=>An.getAllRootElements(),p.dqk.frameworkStabilizers||(p.dqk.frameworkStabilizers=[]),p.dqk.frameworkStabilizers.push(ei=>{const Zi=p.dqk.getAllAngularTestabilities();let vo=Zi.length,Fo=!1;const ca=function(Ia){Fo=Fo||Ia,vo--,0==vo&&ei(Fo)};Zi.forEach(function(Ia){Ia.whenStable(ca)})})}findTestabilityInTree(An,sn,ei){return null==sn?null:An.getTestability(sn)??(ei?(0,d.q)().isShadowRoot(sn)?this.findTestabilityInTree(An,sn.host,!0):this.findTestabilityInTree(An,sn.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]}],Ke=[{provide:p.zSh,useValue:"root"},{provide:p.qLn,useFactory:function Ue(){return new p.qLn},deps:[]},{provide:G,useClass:we,multi:!0,deps:[d.K0,p.R0b,p.Lbi]},{provide:G,useClass:Wt,multi:!0,deps:[d.K0]},{provide:Jt,useClass:Jt,deps:[K,bt,p.AFp]},{provide:p.FYo,useExisting:Jt},{provide:lt,useExisting:bt},{provide:bt,useClass:bt,deps:[d.K0]},{provide:K,useClass:K,deps:[G,p.R0b]},{provide:d.JF,useClass:z,deps:[]},[]];let ne=(()=>{class mn{constructor(sn){}static withServerTransition(sn){return{ngModule:mn,providers:[{provide:p.AFp,useValue:sn.appId},{provide:k,useExisting:p.AFp},P]}}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(bi,12))},mn.\u0275mod=p.oAB({type:mn}),mn.\u0275inj=p.cJS({providers:[...Ke,...ri],imports:[d.ez,p.hGG]}),mn})(),oe=(()=>{class mn{constructor(sn){this._doc=sn}getTitle(){return this._doc.title}setTitle(sn){this._doc.title=sn||""}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:function(sn){let ei=null;return ei=sn?new sn:function Gt(){return new oe((0,p.LFG)(d.K0))}(),ei},providedIn:"root"}),mn})();typeof window<"u"&&window;let En=(()=>{class mn{}return mn.\u0275fac=function(sn){return new(sn||mn)},mn.\u0275prov=p.Yz7({token:mn,factory:function(sn){let ei=null;return ei=sn?new(sn||mn):p.LFG(go),ei},providedIn:"root"}),mn})(),go=(()=>{class mn extends En{constructor(sn){super(),this._doc=sn}sanitize(sn,ei){if(null==ei)return null;switch(sn){case p.q3G.NONE:return ei;case p.q3G.HTML:return(0,p.qzn)(ei,"HTML")?(0,p.z3N)(ei):(0,p.EiD)(this._doc,String(ei)).toString();case p.q3G.STYLE:return(0,p.qzn)(ei,"Style")?(0,p.z3N)(ei):ei;case p.q3G.SCRIPT:if((0,p.qzn)(ei,"Script"))return(0,p.z3N)(ei);throw new Error("unsafe value used in a script context");case p.q3G.URL:return(0,p.qzn)(ei,"URL")?(0,p.z3N)(ei):(0,p.mCW)(String(ei));case p.q3G.RESOURCE_URL:if((0,p.qzn)(ei,"ResourceURL"))return(0,p.z3N)(ei);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${sn} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(sn){return(0,p.JVY)(sn)}bypassSecurityTrustStyle(sn){return(0,p.L6k)(sn)}bypassSecurityTrustScript(sn){return(0,p.eBb)(sn)}bypassSecurityTrustUrl(sn){return(0,p.LAX)(sn)}bypassSecurityTrustResourceUrl(sn){return(0,p.pB0)(sn)}}return mn.\u0275fac=function(sn){return new(sn||mn)(p.LFG(d.K0))},mn.\u0275prov=p.Yz7({token:mn,factory:function(sn){let ei=null;return ei=sn?new sn:function gi(mn){return new go(mn.get(d.K0))}(p.LFG(p.zs3)),ei},providedIn:"root"}),mn})()},83689:(ot,et,b)=>{"use strict";b.d(et,{gz:()=>Js,m2:()=>Ir,wN:()=>xo,F0:()=>As,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),C=b(61221),U=b(88514),k=b(4843),D=b(61737),P=b(56498),I=b(68896),z=b(71762),G=b(8929),K=b(36895),at=b(24850),lt=b(87545),bt=b(72986),Pt=b(1059),Dt=b(92198),zt=b(61709),Vt=b(87224),nt=b(21406),Tt=b(22868),At=b(27221),ft=b(43489);function Et(vt,yt){let pt=!1;return arguments.length>=2&&(pt=!0),function(ie){return ie.lift(new Bt(vt,yt,pt))}}class Bt{constructor(yt,pt,Yt=!1){this.accumulator=yt,this.seed=pt,this.hasSeed=Yt}call(yt,pt){return pt.subscribe(new It(yt,this.accumulator,this.seed,this.hasSeed))}}class It extends ft.L{constructor(yt,pt,Yt,ie){super(yt),this.accumulator=pt,this._seed=Yt,this.hasSeed=ie,this.index=0}get seed(){return this._seed}set seed(yt){this.hasSeed=!0,this._seed=yt}_next(yt){if(this.hasSeed)return this._tryNext(yt);this.seed=yt,this.destination.next(yt)}_tryNext(yt){const pt=this.index++;let Yt;try{Yt=this.accumulator(this.seed,yt,pt)}catch(ie){this.destination.error(ie)}this.seed=Yt,this.destination.next(Yt)}}var se=b(94231);function Jt(vt){return function(pt){return 0===vt?(0,I.c)():pt.lift(new ve(vt))}}class ve{constructor(yt){if(this.total=yt,this.total<0)throw new se.W}call(yt,pt){return pt.subscribe(new xe(yt,this.total))}}class xe extends ft.L{constructor(yt,pt){super(yt),this.total=pt,this.ring=new Array,this.count=0}_next(yt){const pt=this.ring,Yt=this.total,ie=this.count++;pt.length0){const Yt=this.count>=this.total?this.total:this.count,ie=this.ring;for(let De=0;De=2;return Yt=>Yt.pipe(vt?(0,Dt.h)((ie,De)=>vt(ie,De,Yt)):$e.y,Jt(1),pt?(0,qe.d)(yt):(0,Oe.T)(()=>new t.K))}var we=b(44290),ae=b(77604),Kt=b(40537),de=b(74327),Wt=b(89146),re=b(11481);const Pe="primary",on=Symbol("RouteTitle");class _n{constructor(yt){this.params=yt||{}}has(yt){return Object.prototype.hasOwnProperty.call(this.params,yt)}get(yt){if(this.has(yt)){const pt=this.params[yt];return Array.isArray(pt)?pt[0]:pt}return null}getAll(yt){if(this.has(yt)){const pt=this.params[yt];return Array.isArray(pt)?pt:[pt]}return[]}get keys(){return Object.keys(this.params)}}function ye(vt){return new _n(vt)}function gn(vt,yt,pt){const Yt=pt.path.split("/");if(Yt.length>vt.length||"full"===pt.pathMatch&&(yt.hasChildren()||Yt.lengthYt[De]===ie)}return vt===yt}function oi(vt){return Array.prototype.concat.apply([],vt)}function bi(vt){return vt.length>0?vt[vt.length-1]:null}function Ke(vt,yt){for(const pt in vt)vt.hasOwnProperty(pt)&&yt(vt[pt],pt)}function ne(vt){return(0,d.CqO)(vt)?vt:(0,d.QGY)(vt)?(0,p.D)(Promise.resolve(vt)):(0,v.of)(vt)}const kt={exact:function Ee(vt,yt,pt){if(!Ye(vt.segments,yt.segments)||!Oi(vt.segments,yt.segments,pt)||vt.numberOfChildren!==yt.numberOfChildren)return!1;for(const Yt in yt.children)if(!vt.children[Yt]||!Ee(vt.children[Yt],yt.children[Yt],pt))return!1;return!0},subset:Ln},Gt={exact:function Ce(vt,yt){return un(vt,yt)},subset:function Pn(vt,yt){return Object.keys(yt).length<=Object.keys(vt).length&&Object.keys(yt).every(pt=>Mn(vt[pt],yt[pt]))},ignored:()=>!0};function oe(vt,yt,pt){return kt[pt.paths](vt.root,yt.root,pt.matrixParams)&&Gt[pt.queryParams](vt.queryParams,yt.queryParams)&&!("exact"===pt.fragment&&vt.fragment!==yt.fragment)}function Ln(vt,yt,pt){return mi(vt,yt,yt.segments,pt)}function mi(vt,yt,pt,Yt){if(vt.segments.length>pt.length){const ie=vt.segments.slice(0,pt.length);return!(!Ye(ie,pt)||yt.hasChildren()||!Oi(ie,pt,Yt))}if(vt.segments.length===pt.length){if(!Ye(vt.segments,pt)||!Oi(vt.segments,pt,Yt))return!1;for(const ie in yt.children)if(!vt.children[ie]||!Ln(vt.children[ie],yt.children[ie],Yt))return!1;return!0}{const ie=pt.slice(0,vt.segments.length),De=pt.slice(vt.segments.length);return!!(Ye(vt.segments,ie)&&Oi(vt.segments,ie,Yt)&&vt.children[Pe])&&mi(vt.children[Pe],yt,De,Yt)}}function Oi(vt,yt,pt){return yt.every((Yt,ie)=>Gt[pt](vt[ie].parameters,Yt.parameters))}class ho{constructor(yt,pt,Yt){this.root=yt,this.queryParams=pt,this.fragment=Yt}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ye(this.queryParams)),this._queryParamMap}toString(){return en.serialize(this)}}class fi{constructor(yt,pt){this.segments=yt,this.children=pt,this.parent=null,Ke(pt,(Yt,ie)=>Yt.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return le(this)}}class Yn{constructor(yt,pt){this.path=yt,this.parameters=pt}get parameterMap(){return this._parameterMap||(this._parameterMap=ye(this.parameters)),this._parameterMap}toString(){return Tn(this)}}function Ye(vt,yt){return vt.length===yt.length&&vt.every((pt,Yt)=>pt.path===yt[Yt].path)}let ze=(()=>{class vt{}return vt.\u0275fac=function(pt){return new(pt||vt)},vt.\u0275prov=d.Yz7({token:vt,factory:function(){return new We},providedIn:"root"}),vt})();class We{parse(yt){const pt=new sn(yt);return new ho(pt.parseRootSegment(),pt.parseQueryParams(),pt.parseFragment())}serialize(yt){const pt=`/${Je(yt.root,!0)}`,Yt=function Re(vt){const yt=Object.keys(vt).map(pt=>{const Yt=vt[pt];return Array.isArray(Yt)?Yt.map(ie=>`${wt(pt)}=${wt(ie)}`).join("&"):`${wt(pt)}=${wt(Yt)}`}).filter(pt=>!!pt);return yt.length?`?${yt.join("&")}`:""}(yt.queryParams);return`${pt}${Yt}${"string"==typeof yt.fragment?`#${function Ot(vt){return encodeURI(vt)}(yt.fragment)}`:""}`}}const en=new We;function le(vt){return vt.segments.map(yt=>Tn(yt)).join("/")}function Je(vt,yt){if(!vt.hasChildren())return le(vt);if(yt){const pt=vt.children[Pe]?Je(vt.children[Pe],!1):"",Yt=[];return Ke(vt.children,(ie,De)=>{De!==Pe&&Yt.push(`${De}:${Je(ie,!1)}`)}),Yt.length>0?`${pt}(${Yt.join("//")})`:pt}{const pt=function fn(vt,yt){let pt=[];return Ke(vt.children,(Yt,ie)=>{ie===Pe&&(pt=pt.concat(yt(Yt,ie)))}),Ke(vt.children,(Yt,ie)=>{ie!==Pe&&(pt=pt.concat(yt(Yt,ie)))}),pt}(vt,(Yt,ie)=>ie===Pe?[Je(vt.children[Pe],!1)]:[`${ie}:${Je(Yt,!1)}`]);return 1===Object.keys(vt.children).length&&null!=vt.children[Pe]?`${le(vt)}/${pt[0]}`:`${le(vt)}/(${pt.join("//")})`}}function Lt(vt){return encodeURIComponent(vt).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wt(vt){return Lt(vt).replace(/%3B/gi,";")}function Te(vt){return Lt(vt).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xe(vt){return decodeURIComponent(vt)}function Fe(vt){return Xe(vt.replace(/\+/g,"%20"))}function Tn(vt){return`${Te(vt.path)}${function he(vt){return Object.keys(vt).map(yt=>`;${Te(yt)}=${Te(vt[yt])}`).join("")}(vt.parameters)}`}const En=/^[^\/()?;=#]+/;function gi(vt){const yt=vt.match(En);return yt?yt[0]:""}const go=/^[^=?&#]+/,mn=/^[^&#]+/;class sn{constructor(yt){this.url=yt,this.remaining=yt}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fi([],{}):new fi([],this.parseChildren())}parseQueryParams(){const yt={};if(this.consumeOptional("?"))do{this.parseQueryParam(yt)}while(this.consumeOptional("&"));return yt}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const yt=[];for(this.peekStartsWith("(")||yt.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),yt.push(this.parseSegment());let pt={};this.peekStartsWith("/(")&&(this.capture("/"),pt=this.parseParens(!0));let Yt={};return this.peekStartsWith("(")&&(Yt=this.parseParens(!1)),(yt.length>0||Object.keys(pt).length>0)&&(Yt[Pe]=new fi(yt,pt)),Yt}parseSegment(){const yt=gi(this.remaining);if(""===yt&&this.peekStartsWith(";"))throw new d.vHH(4009,!1);return this.capture(yt),new Yn(Xe(yt),this.parseMatrixParams())}parseMatrixParams(){const yt={};for(;this.consumeOptional(";");)this.parseParam(yt);return yt}parseParam(yt){const pt=gi(this.remaining);if(!pt)return;this.capture(pt);let Yt="";if(this.consumeOptional("=")){const ie=gi(this.remaining);ie&&(Yt=ie,this.capture(Yt))}yt[Xe(pt)]=Xe(Yt)}parseQueryParam(yt){const pt=function _o(vt){const yt=vt.match(go);return yt?yt[0]:""}(this.remaining);if(!pt)return;this.capture(pt);let Yt="";if(this.consumeOptional("=")){const Un=function An(vt){const yt=vt.match(mn);return yt?yt[0]:""}(this.remaining);Un&&(Yt=Un,this.capture(Yt))}const ie=Fe(pt),De=Fe(Yt);if(yt.hasOwnProperty(ie)){let Un=yt[ie];Array.isArray(Un)||(Un=[Un],yt[ie]=Un),Un.push(De)}else yt[ie]=De}parseParens(yt){const pt={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Yt=gi(this.remaining),ie=this.remaining[Yt.length];if("/"!==ie&&")"!==ie&&";"!==ie)throw new d.vHH(4010,!1);let De;Yt.indexOf(":")>-1?(De=Yt.slice(0,Yt.indexOf(":")),this.capture(De),this.capture(":")):yt&&(De=Pe);const Un=this.parseChildren();pt[De]=1===Object.keys(Un).length?Un[Pe]:new fi([],Un),this.consumeOptional("//")}return pt}peekStartsWith(yt){return this.remaining.startsWith(yt)}consumeOptional(yt){return!!this.peekStartsWith(yt)&&(this.remaining=this.remaining.substring(yt.length),!0)}capture(yt){if(!this.consumeOptional(yt))throw new d.vHH(4011,!1)}}function ei(vt){return vt.segments.length>0?new fi([],{[Pe]:vt}):vt}function Zi(vt){const yt={};for(const Yt of Object.keys(vt.children)){const De=Zi(vt.children[Yt]);(De.segments.length>0||De.hasChildren())&&(yt[Yt]=De)}return function vo(vt){if(1===vt.numberOfChildren&&vt.children[Pe]){const yt=vt.children[Pe];return new fi(vt.segments.concat(yt.segments),yt.children)}return vt}(new fi(vt.segments,yt))}function Fo(vt){return vt instanceof ho}function In(vt,yt,pt,Yt,ie){if(0===pt.length)return dn(yt.root,yt.root,yt.root,Yt,ie);const De=function Q(vt){if("string"==typeof vt[0]&&1===vt.length&&"/"===vt[0])return new Rt(!0,0,vt);let yt=0,pt=!1;const Yt=vt.reduce((ie,De,Un)=>{if("object"==typeof De&&null!=De){if(De.outlets){const Nn={};return Ke(De.outlets,(Ii,Qi)=>{Nn[Qi]="string"==typeof Ii?Ii.split("/"):Ii}),[...ie,{outlets:Nn}]}if(De.segmentPath)return[...ie,De.segmentPath]}return"string"!=typeof De?[...ie,De]:0===Un?(De.split("/").forEach((Nn,Ii)=>{0==Ii&&"."===Nn||(0==Ii&&""===Nn?pt=!0:".."===Nn?yt++:""!=Nn&&ie.push(Nn))}),ie):[...ie,De]},[]);return new Rt(pt,yt,Yt)}(pt);return De.toRoot()?dn(yt.root,yt.root,new fi([],{}),Yt,ie):function Un(Ii){const Qi=function Rn(vt,yt,pt,Yt){if(vt.isAbsolute)return new Ft(yt.root,!0,0);if(-1===Yt)return new Ft(pt,pt===yt.root,0);return function Gi(vt,yt,pt){let Yt=vt,ie=yt,De=pt;for(;De>ie;){if(De-=ie,Yt=Yt.parent,!Yt)throw new d.vHH(4005,!1);ie=Yt.segments.length}return new Ft(Yt,!1,ie-De)}(pt,Yt+(He(vt.commands[0])?0:1),vt.numberOfDoubleDots)}(De,yt,vt.snapshot?._urlSegment,Ii),Fa=Qi.processChildren?br(Qi.segmentGroup,Qi.index,De.commands):gr(Qi.segmentGroup,Qi.index,De.commands);return dn(yt.root,Qi.segmentGroup,Fa,Yt,ie)}(vt.snapshot?._lastPathIndex)}function He(vt){return"object"==typeof vt&&null!=vt&&!vt.outlets&&!vt.segmentPath}function ke(vt){return"object"==typeof vt&&null!=vt&&vt.outlets}function dn(vt,yt,pt,Yt,ie){let Un,De={};Yt&&Ke(Yt,(Ii,Qi)=>{De[Qi]=Array.isArray(Ii)?Ii.map(Fa=>`${Fa}`):`${Ii}`}),Un=vt===yt?pt:tt(vt,yt,pt);const Nn=ei(Zi(Un));return new ho(Nn,De,ie)}function tt(vt,yt,pt){const Yt={};return Ke(vt.children,(ie,De)=>{Yt[De]=ie===yt?pt:tt(ie,yt,pt)}),new fi(vt.segments,Yt)}class Rt{constructor(yt,pt,Yt){if(this.isAbsolute=yt,this.numberOfDoubleDots=pt,this.commands=Yt,yt&&Yt.length>0&&He(Yt[0]))throw new d.vHH(4003,!1);const ie=Yt.find(ke);if(ie&&ie!==bi(Yt))throw new d.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ft{constructor(yt,pt,Yt){this.segmentGroup=yt,this.processChildren=pt,this.index=Yt}}function gr(vt,yt,pt){if(vt||(vt=new fi([],{})),0===vt.segments.length&&vt.hasChildren())return br(vt,yt,pt);const Yt=function ls(vt,yt,pt){let Yt=0,ie=yt;const De={match:!1,pathIndex:0,commandIndex:0};for(;ie=pt.length)return De;const Un=vt.segments[ie],Nn=pt[Yt];if(ke(Nn))break;const Ii=`${Nn}`,Qi=Yt0&&void 0===Ii)break;if(Ii&&Qi&&"object"==typeof Qi&&void 0===Qi.outlets){if(!dr(Ii,Qi,Un))return De;Yt+=2}else{if(!dr(Ii,{},Un))return De;Yt++}ie++}return{match:!0,pathIndex:ie,commandIndex:Yt}}(vt,yt,pt),ie=pt.slice(Yt.commandIndex);if(Yt.match&&Yt.pathIndex{"string"==typeof De&&(De=[De]),null!==De&&(ie[Un]=gr(vt.children[Un],yt,De))}),Ke(vt.children,(De,Un)=>{void 0===Yt[Un]&&(ie[Un]=De)}),new fi(vt.segments,ie)}}function ar(vt,yt,pt){const Yt=vt.segments.slice(0,yt);let ie=0;for(;ie{"string"==typeof pt&&(pt=[pt]),null!==pt&&(yt[Yt]=ar(new fi([],{}),0,pt))}),yt}function bc(vt){const yt={};return Ke(vt,(pt,Yt)=>yt[Yt]=`${pt}`),yt}function dr(vt,yt,pt){return vt==pt.path&&un(yt,pt.parameters)}class Br{constructor(yt,pt){this.id=yt,this.url=pt}}class Gr extends Br{constructor(yt,pt,Yt="imperative",ie=null){super(yt,pt),this.type=0,this.navigationTrigger=Yt,this.restoredState=ie}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ir extends Br{constructor(yt,pt,Yt){super(yt,pt),this.urlAfterRedirects=Yt,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Pc extends Br{constructor(yt,pt,Yt,ie){super(yt,pt),this.reason=Yt,this.code=ie,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class al extends Br{constructor(yt,pt,Yt,ie){super(yt,pt),this.error=Yt,this.target=ie,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Sc extends Br{constructor(yt,pt,Yt,ie){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ns extends Br{constructor(yt,pt,Yt,ie){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lc extends Br{constructor(yt,pt,Yt,ie,De){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.shouldActivate=De,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class xl extends Br{constructor(yt,pt,Yt,ie){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qr extends Br{constructor(yt,pt,Yt,ie){super(yt,pt),this.urlAfterRedirects=Yt,this.state=ie,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fs{constructor(yt){this.route=yt,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class _1{constructor(yt){this.route=yt,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class hr{constructor(yt){this.snapshot=yt,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iu{constructor(yt){this.snapshot=yt,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class f1{constructor(yt){this.snapshot=yt,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vc{constructor(yt){this.snapshot=yt,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Cl{constructor(yt,pt,Yt){this.routerEvent=yt,this.position=pt,this.anchor=Yt,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Oc{constructor(yt){this._root=yt}get root(){return this._root.value}parent(yt){const pt=this.pathFromRoot(yt);return pt.length>1?pt[pt.length-2]:null}children(yt){const pt=Vs(yt,this._root);return pt?pt.children.map(Yt=>Yt.value):[]}firstChild(yt){const pt=Vs(yt,this._root);return pt&&pt.children.length>0?pt.children[0].value:null}siblings(yt){const pt=Bc(yt,this._root);return pt.length<2?[]:pt[pt.length-2].children.map(ie=>ie.value).filter(ie=>ie!==yt)}pathFromRoot(yt){return Bc(yt,this._root).map(pt=>pt.value)}}function Vs(vt,yt){if(vt===yt.value)return yt;for(const pt of yt.children){const Yt=Vs(vt,pt);if(Yt)return Yt}return null}function Bc(vt,yt){if(vt===yt.value)return[yt];for(const pt of yt.children){const Yt=Bc(vt,pt);if(Yt.length)return Yt.unshift(yt),Yt}return[]}class Vc{constructor(yt,pt){this.value=yt,this.children=pt}toString(){return`TreeNode(${this.value})`}}function js(vt){const yt={};return vt&&vt.children.forEach(pt=>yt[pt.value.outlet]=pt),yt}class yl extends Oc{constructor(yt,pt){super(yt),this.snapshot=pt,Hl(this,yt)}toString(){return this.snapshot.toString()}}function md(vt,yt){const pt=function Rl(vt,yt){const Un=new jc([],{},{},"",{},Pe,yt,null,vt.root,-1,{});return new ks("",new Vc(Un,[]))}(vt,yt),Yt=new T.X([new Yn("",{})]),ie=new T.X({}),De=new T.X({}),Un=new T.X({}),Nn=new T.X(""),Ii=new Js(Yt,ie,Un,Nn,De,Pe,yt,pt.root);return Ii.snapshot=pt.root,new yl(new Vc(Ii,[]),pt)}class Js{constructor(yt,pt,Yt,ie,De,Un,Nn,Ii){this.url=yt,this.params=pt,this.queryParams=Yt,this.fragment=ie,this.data=De,this.outlet=Un,this.component=Nn,this.title=this.data?.pipe((0,at.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,at.U)(yt=>ye(yt)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,at.U)(yt=>ye(yt)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Tl(vt,yt="emptyOnly"){const pt=vt.pathFromRoot;let Yt=0;if("always"!==yt)for(Yt=pt.length-1;Yt>=1;){const ie=pt[Yt],De=pt[Yt-1];if(ie.routeConfig&&""===ie.routeConfig.path)Yt--;else{if(De.component)break;Yt--}}return function Gs(vt){return vt.reduce((yt,pt)=>({params:{...yt.params,...pt.params},data:{...yt.data,...pt.data},resolve:{...pt.data,...yt.resolve,...pt.routeConfig?.data,...pt._resolvedData}}),{params:{},data:{},resolve:{}})}(pt.slice(Yt))}class jc{constructor(yt,pt,Yt,ie,De,Un,Nn,Ii,Qi,Fa,Ko,xr){this.url=yt,this.params=pt,this.queryParams=Yt,this.fragment=ie,this.data=De,this.outlet=Un,this.component=Nn,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=ye(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ye(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Yt=>Yt.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ks extends Oc{constructor(yt,pt){super(pt),this.url=yt,Hl(this,pt)}toString(){return ou(this._root)}}function Hl(vt,yt){yt.value._routerState=vt,yt.children.forEach(pt=>Hl(vt,pt))}function ou(vt){const yt=vt.children.length>0?` { ${vt.children.map(ou).join(", ")} } `:"";return`${vt.value}${yt}`}function zl(vt){if(vt.snapshot){const yt=vt.snapshot,pt=vt._futureSnapshot;vt.snapshot=pt,un(yt.queryParams,pt.queryParams)||vt.queryParams.next(pt.queryParams),yt.fragment!==pt.fragment&&vt.fragment.next(pt.fragment),un(yt.params,pt.params)||vt.params.next(pt.params),function Ue(vt,yt){if(vt.length!==yt.length)return!1;for(let pt=0;ptun(pt.parameters,yt[Yt].parameters))}(vt.url,yt.url);return pt&&!(!vt.parent!=!yt.parent)&&(!vt.parent||qo(vt.parent,yt.parent))}function cc(vt,yt,pt){if(pt&&vt.shouldReuseRoute(yt.value,pt.value.snapshot)){const Yt=pt.value;Yt._futureSnapshot=yt.value;const ie=function qu(vt,yt,pt){return yt.children.map(Yt=>{for(const ie of pt.children)if(vt.shouldReuseRoute(Yt.value,ie.value.snapshot))return cc(vt,Yt,ie);return cc(vt,Yt)})}(vt,yt,pt);return new Vc(Yt,ie)}{if(vt.shouldAttach(yt.value)){const De=vt.retrieve(yt.value);if(null!==De){const Un=De.route;return Un.value._futureSnapshot=yt.value,Un.children=yt.children.map(Nn=>cc(vt,Nn)),Un}}const Yt=function Yl(vt){return new Js(new T.X(vt.url),new T.X(vt.params),new T.X(vt.queryParams),new T.X(vt.fragment),new T.X(vt.data),vt.outlet,vt.component,vt)}(yt.value),ie=yt.children.map(De=>cc(vt,De));return new Vc(Yt,ie)}}const xc="ngNavigationCancelingError";function wl(vt,yt){const{redirectTo:pt,navigationBehaviorOptions:Yt}=Fo(yt)?{redirectTo:yt,navigationBehaviorOptions:void 0}:yt,ie=Ds(!1,0,yt);return ie.url=pt,ie.navigationBehaviorOptions=Yt,ie}function Ds(vt,yt,pt){const Yt=new Error("NavigationCancelingError: "+(vt||""));return Yt[xc]=!0,Yt.cancellationCode=yt,pt&&(Yt.url=pt),Yt}function Jc(vt){return bu(vt)&&Fo(vt.url)}function bu(vt){return vt&&vt[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 vt{constructor(){this.contexts=new Map}onChildOutletCreated(pt,Yt){const ie=this.getOrCreateContext(pt);ie.outlet=Yt,this.contexts.set(pt,ie)}onChildOutletDestroyed(pt){const Yt=this.getContext(pt);Yt&&(Yt.outlet=null,Yt.attachRef=null)}onOutletDeactivated(){const pt=this.contexts;return this.contexts=new Map,pt}onOutletReAttached(pt){this.contexts=pt}getOrCreateContext(pt){let Yt=this.getContext(pt);return Yt||(Yt=new Dr,this.contexts.set(pt,Yt)),Yt}getContext(pt){return this.contexts.get(pt)||null}}return vt.\u0275fac=function(pt){return new(pt||vt)},vt.\u0275prov=d.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();const Wa=!1;let pr=(()=>{class vt{constructor(pt,Yt,ie,De,Un){this.parentContexts=pt,this.location=Yt,this.changeDetector=De,this.environmentInjector=Un,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=ie||Pe,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,Yt){this.activated=pt,this._activatedRoute=Yt,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,Yt){if(this.isActivated)throw new d.vHH(4013,Wa);this._activatedRoute=pt;const ie=this.location,Un=pt._futureSnapshot.component,Nn=this.parentContexts.getOrCreateContext(this.name).children,Ii=new Gc(pt,Nn,ie.injector);if(Yt&&function xs(vt){return!!vt.resolveComponentFactory}(Yt)){const Qi=Yt.resolveComponentFactory(Un);this.activated=ie.createComponent(Qi,ie.length,Ii)}else this.activated=ie.createComponent(Un,{index:ie.length,injector:Ii,environmentInjector:Yt??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return vt.\u0275fac=function(pt){return new(pt||vt)(d.Y36(Cc),d.Y36(d.s_b),d.$8M("name"),d.Y36(d.sBO),d.Y36(d.lqb))},vt.\u0275dir=d.lG2({type:vt,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),vt})();class Gc{constructor(yt,pt,Yt){this.route=yt,this.childContexts=pt,this.parent=Yt}get(yt,pt){return yt===Js?this.route:yt===Cc?this.childContexts:this.parent.get(yt,pt)}}let Ac=(()=>{class vt{}return vt.\u0275fac=function(pt){return new(pt||vt)},vt.\u0275cmp=d.Xpm({type:vt,selectors:[["ng-component"]],standalone:!0,features:[d.jDz],decls:1,vars:0,template:function(pt,Yt){1&pt&&d._UZ(0,"router-outlet")},dependencies:[pr],encapsulation:2}),vt})();function sr(vt,yt){return vt.providers&&!vt._injector&&(vt._injector=(0,d.MMx)(vt.providers,yt,`Route: ${vt.path}`)),vt._injector??yt}function Ws(vt){const yt=vt.children&&vt.children.map(Ws),pt=yt?{...vt,children:yt}:{...vt};return!pt.component&&!pt.loadComponent&&(yt||pt.loadChildren)&&pt.outlet&&pt.outlet!==Pe&&(pt.component=Ac),pt}function Nr(vt){return vt.outlet||Pe}function aa(vt,yt){const pt=vt.filter(Yt=>Nr(Yt)===yt);return pt.push(...vt.filter(Yt=>Nr(Yt)!==yt)),pt}function uc(vt){if(!vt)return null;if(vt.routeConfig?._injector)return vt.routeConfig._injector;for(let yt=vt.parent;yt;yt=yt.parent){const pt=yt.routeConfig;if(pt?._loadedInjector)return pt._loadedInjector;if(pt?._injector)return pt._injector}return null}class Vr{constructor(yt,pt,Yt,ie){this.routeReuseStrategy=yt,this.futureState=pt,this.currState=Yt,this.forwardEvent=ie}activate(yt){const pt=this.futureState._root,Yt=this.currState?this.currState._root:null;this.deactivateChildRoutes(pt,Yt,yt),zl(this.futureState.root),this.activateChildRoutes(pt,Yt,yt)}deactivateChildRoutes(yt,pt,Yt){const ie=js(pt);yt.children.forEach(De=>{const Un=De.value.outlet;this.deactivateRoutes(De,ie[Un],Yt),delete ie[Un]}),Ke(ie,(De,Un)=>{this.deactivateRouteAndItsChildren(De,Yt)})}deactivateRoutes(yt,pt,Yt){const ie=yt.value,De=pt?pt.value:null;if(ie===De)if(ie.component){const Un=Yt.getContext(ie.outlet);Un&&this.deactivateChildRoutes(yt,pt,Un.children)}else this.deactivateChildRoutes(yt,pt,Yt);else De&&this.deactivateRouteAndItsChildren(pt,Yt)}deactivateRouteAndItsChildren(yt,pt){yt.value.component&&this.routeReuseStrategy.shouldDetach(yt.value.snapshot)?this.detachAndStoreRouteSubtree(yt,pt):this.deactivateRouteAndOutlet(yt,pt)}detachAndStoreRouteSubtree(yt,pt){const Yt=pt.getContext(yt.value.outlet),ie=Yt&&yt.value.component?Yt.children:pt,De=js(yt);for(const Un of Object.keys(De))this.deactivateRouteAndItsChildren(De[Un],ie);if(Yt&&Yt.outlet){const Un=Yt.outlet.detach(),Nn=Yt.children.onOutletDeactivated();this.routeReuseStrategy.store(yt.value.snapshot,{componentRef:Un,route:yt,contexts:Nn})}}deactivateRouteAndOutlet(yt,pt){const Yt=pt.getContext(yt.value.outlet),ie=Yt&&yt.value.component?Yt.children:pt,De=js(yt);for(const Un of Object.keys(De))this.deactivateRouteAndItsChildren(De[Un],ie);Yt&&Yt.outlet&&(Yt.outlet.deactivate(),Yt.children.onOutletDeactivated(),Yt.attachRef=null,Yt.resolver=null,Yt.route=null)}activateChildRoutes(yt,pt,Yt){const ie=js(pt);yt.children.forEach(De=>{this.activateRoutes(De,ie[De.value.outlet],Yt),this.forwardEvent(new vc(De.value.snapshot))}),yt.children.length&&this.forwardEvent(new iu(yt.value.snapshot))}activateRoutes(yt,pt,Yt){const ie=yt.value,De=pt?pt.value:null;if(zl(ie),ie===De)if(ie.component){const Un=Yt.getOrCreateContext(ie.outlet);this.activateChildRoutes(yt,pt,Un.children)}else this.activateChildRoutes(yt,pt,Yt);else if(ie.component){const Un=Yt.getOrCreateContext(ie.outlet);if(this.routeReuseStrategy.shouldAttach(ie.snapshot)){const Nn=this.routeReuseStrategy.retrieve(ie.snapshot);this.routeReuseStrategy.store(ie.snapshot,null),Un.children.onOutletReAttached(Nn.contexts),Un.attachRef=Nn.componentRef,Un.route=Nn.route.value,Un.outlet&&Un.outlet.attach(Nn.componentRef,Nn.route.value),zl(Nn.route.value),this.activateChildRoutes(yt,null,Un.children)}else{const Nn=uc(ie.snapshot),Ii=Nn?.get(d._Vd)??null;Un.attachRef=null,Un.route=ie,Un.resolver=Ii,Un.injector=Nn,Un.outlet&&Un.outlet.activateWith(ie,Un.injector),this.activateChildRoutes(yt,null,Un.children)}}else this.activateChildRoutes(yt,null,Yt)}}class Qc{constructor(yt){this.path=yt,this.route=this.path[this.path.length-1]}}class rl{constructor(yt,pt){this.component=yt,this.route=pt}}function yc(vt,yt,pt){const Yt=vt._root;return Bi(Yt,yt?yt._root:null,pt,[Yt.value])}function vu(vt,yt){const pt=Symbol(),Yt=yt.get(vt,pt);return Yt===pt?"function"!=typeof vt||(0,d.Z0I)(vt)?yt.get(vt):vt:Yt}function Bi(vt,yt,pt,Yt,ie={canDeactivateChecks:[],canActivateChecks:[]}){const De=js(yt);return vt.children.forEach(Un=>{(function Pa(vt,yt,pt,Yt,ie={canDeactivateChecks:[],canActivateChecks:[]}){const De=vt.value,Un=yt?yt.value:null,Nn=pt?pt.getContext(vt.value.outlet):null;if(Un&&De.routeConfig===Un.routeConfig){const Ii=function xu(vt,yt,pt){if("function"==typeof pt)return pt(vt,yt);switch(pt){case"pathParamsChange":return!Ye(vt.url,yt.url);case"pathParamsOrQueryParamsChange":return!Ye(vt.url,yt.url)||!un(vt.queryParams,yt.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qo(vt,yt)||!un(vt.queryParams,yt.queryParams);default:return!qo(vt,yt)}}(Un,De,De.routeConfig.runGuardsAndResolvers);Ii?ie.canActivateChecks.push(new Qc(Yt)):(De.data=Un.data,De._resolvedData=Un._resolvedData),Bi(vt,yt,De.component?Nn?Nn.children:null:pt,Yt,ie),Ii&&Nn&&Nn.outlet&&Nn.outlet.isActivated&&ie.canDeactivateChecks.push(new rl(Nn.outlet.component,Un))}else Un&&$s(yt,Nn,ie),ie.canActivateChecks.push(new Qc(Yt)),Bi(vt,null,De.component?Nn?Nn.children:null:pt,Yt,ie)})(Un,De[Un.value.outlet],pt,Yt.concat([Un.value]),ie),delete De[Un.value.outlet]}),Ke(De,(Un,Nn)=>$s(Un,pt.getContext(Nn),ie)),ie}function $s(vt,yt,pt){const Yt=js(vt),ie=vt.value;Ke(Yt,(De,Un)=>{$s(De,ie.component?yt?yt.children.getContext(Un):null:yt,pt)}),pt.canDeactivateChecks.push(new rl(ie.component&&yt&&yt.outlet&&yt.outlet.isActivated?yt.outlet.component:null,ie))}function Pr(vt){return"function"==typeof vt}function Ec(vt){return vt instanceof t.K||"EmptyError"===vt?.name}const Fr=Symbol("INITIAL_VALUE");function qr(){return(0,lt.w)(vt=>(0,A.aj)(vt.map(yt=>yt.pipe((0,bt.q)(1),(0,Pt.O)(Fr)))).pipe((0,at.U)(yt=>{for(const pt of yt)if(!0!==pt){if(pt===Fr)return Fr;if(!1===pt||pt instanceof ho)return pt}return!0}),(0,Dt.h)(yt=>yt!==Fr),(0,bt.q)(1)))}function sl(vt){return(0,k.z)((0,Tt.b)(yt=>{if(Fo(yt))throw wl(0,yt)}),(0,at.U)(yt=>!0===yt))}const dp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ml(vt,yt,pt,Yt,ie){const De=cl(vt,yt,pt);return De.matched?function Zl(vt,yt,pt,Yt){const ie=yt.canMatch;if(!ie||0===ie.length)return(0,v.of)(!0);const De=ie.map(Un=>{const Nn=vu(Un,vt);return ne(function jo(vt){return vt&&Pr(vt.canMatch)}(Nn)?Nn.canMatch(yt,pt):vt.runInContext(()=>Nn(yt,pt)))});return(0,v.of)(De).pipe(qr(),sl())}(Yt=sr(yt,Yt),yt,pt).pipe((0,at.U)(Un=>!0===Un?De:{...dp})):(0,v.of)(De)}function cl(vt,yt,pt){if(""===yt.path)return"full"===yt.pathMatch&&(vt.hasChildren()||pt.length>0)?{...dp}:{matched:!0,consumedSegments:[],remainingSegments:pt,parameters:{},positionalParamSegments:{}};const ie=(yt.matcher||gn)(pt,vt,yt);if(!ie)return{...dp};const De={};Ke(ie.posParams,(Nn,Ii)=>{De[Ii]=Nn.path});const Un=ie.consumed.length>0?{...De,...ie.consumed[ie.consumed.length-1].parameters}:De;return{matched:!0,consumedSegments:ie.consumed,remainingSegments:pt.slice(ie.consumed.length),parameters:Un,positionalParamSegments:ie.posParams??{}}}function Yi(vt,yt,pt,Yt,ie="corrected"){if(pt.length>0&&function Cu(vt,yt,pt){return pt.some(Yt=>ll(vt,yt,Yt)&&Nr(Yt)!==Pe)}(vt,pt,Yt)){const Un=new fi(yt,function su(vt,yt,pt,Yt){const ie={};ie[Pe]=Yt,Yt._sourceSegment=vt,Yt._segmentIndexShift=yt.length;for(const De of pt)if(""===De.path&&Nr(De)!==Pe){const Un=new fi([],{});Un._sourceSegment=vt,Un._segmentIndexShift=yt.length,ie[Nr(De)]=Un}return ie}(vt,yt,Yt,new fi(pt,vt.children)));return Un._sourceSegment=vt,Un._segmentIndexShift=yt.length,{segmentGroup:Un,slicedSegments:[]}}if(0===pt.length&&function wa(vt,yt,pt){return pt.some(Yt=>ll(vt,yt,Yt))}(vt,pt,Yt)){const Un=new fi(vt.segments,function _t(vt,yt,pt,Yt,ie,De){const Un={};for(const Nn of Yt)if(ll(vt,pt,Nn)&&!ie[Nr(Nn)]){const Ii=new fi([],{});Ii._sourceSegment=vt,Ii._segmentIndexShift="legacy"===De?vt.segments.length:yt.length,Un[Nr(Nn)]=Ii}return{...ie,...Un}}(vt,yt,pt,Yt,vt.children,ie));return Un._sourceSegment=vt,Un._segmentIndexShift=yt.length,{segmentGroup:Un,slicedSegments:pt}}const De=new fi(vt.segments,vt.children);return De._sourceSegment=vt,De._segmentIndexShift=yt.length,{segmentGroup:De,slicedSegments:pt}}function ll(vt,yt,pt){return(!(vt.hasChildren()||yt.length>0)||"full"!==pt.pathMatch)&&""===pt.path}function Ja(vt,yt,pt,Yt){return!!(Nr(vt)===Yt||Yt!==Pe&&ll(yt,pt,vt))&&("**"===vt.path||cl(yt,vt,pt).matched)}function Rr(vt,yt,pt){return 0===yt.length&&!vt.children[pt]}const Us=!1;class Ra{constructor(yt){this.segmentGroup=yt||null}}class Ei{constructor(yt){this.urlTree=yt}}function _d(vt){return(0,D._)(new Ra(vt))}function g1(vt){return(0,D._)(new Ei(vt))}class Pi{constructor(yt,pt,Yt,ie,De){this.injector=yt,this.configLoader=pt,this.urlSerializer=Yt,this.urlTree=ie,this.config=De,this.allowRedirects=!0}apply(){const yt=Yi(this.urlTree.root,[],[],this.config).segmentGroup,pt=new fi(yt.segments,yt.children);return this.expandSegmentGroup(this.injector,this.config,pt,Pe).pipe((0,at.U)(De=>this.createUrlTree(Zi(De),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,At.K)(De=>{if(De instanceof Ei)return this.allowRedirects=!1,this.match(De.urlTree);throw De instanceof Ra?this.noMatchError(De):De}))}match(yt){return this.expandSegmentGroup(this.injector,this.config,yt.root,Pe).pipe((0,at.U)(ie=>this.createUrlTree(Zi(ie),yt.queryParams,yt.fragment))).pipe((0,At.K)(ie=>{throw ie instanceof Ra?this.noMatchError(ie):ie}))}noMatchError(yt){return new d.vHH(4002,Us)}createUrlTree(yt,pt,Yt){const ie=ei(yt);return new ho(ie,pt,Yt)}expandSegmentGroup(yt,pt,Yt,ie){return 0===Yt.segments.length&&Yt.hasChildren()?this.expandChildren(yt,pt,Yt).pipe((0,at.U)(De=>new fi([],De))):this.expandSegment(yt,Yt,pt,Yt.segments,ie,!0)}expandChildren(yt,pt,Yt){const ie=[];for(const De of Object.keys(Yt.children))"primary"===De?ie.unshift(De):ie.push(De);return(0,p.D)(ie).pipe((0,nt.b)(De=>{const Un=Yt.children[De],Nn=aa(pt,De);return this.expandSegmentGroup(yt,Nn,Un,De).pipe((0,at.U)(Ii=>({segment:Ii,outlet:De})))}),Et((De,Un)=>(De[Un.outlet]=Un.segment,De),{}),Xt())}expandSegment(yt,pt,Yt,ie,De,Un){return(0,p.D)(Yt).pipe((0,nt.b)(Nn=>this.expandSegmentAgainstRoute(yt,pt,Yt,Nn,ie,De,Un).pipe((0,At.K)(Qi=>{if(Qi instanceof Ra)return(0,v.of)(null);throw Qi}))),(0,Vt.P)(Nn=>!!Nn),(0,At.K)((Nn,Ii)=>{if(Ec(Nn))return Rr(pt,ie,De)?(0,v.of)(new fi([],{})):_d(pt);throw Nn}))}expandSegmentAgainstRoute(yt,pt,Yt,ie,De,Un,Nn){return Ja(ie,pt,De,Un)?void 0===ie.redirectTo?this.matchSegmentAgainstRoute(yt,pt,ie,De,Un):Nn&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(yt,pt,Yt,ie,De,Un):_d(pt):_d(pt)}expandSegmentAgainstRouteUsingRedirect(yt,pt,Yt,ie,De,Un){return"**"===ie.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(yt,Yt,ie,Un):this.expandRegularSegmentAgainstRouteUsingRedirect(yt,pt,Yt,ie,De,Un)}expandWildCardWithParamsAgainstRouteUsingRedirect(yt,pt,Yt,ie){const De=this.applyRedirectCommands([],Yt.redirectTo,{});return Yt.redirectTo.startsWith("/")?g1(De):this.lineralizeSegments(Yt,De).pipe((0,zt.zg)(Un=>{const Nn=new fi(Un,{});return this.expandSegment(yt,Nn,pt,Un,ie,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(yt,pt,Yt,ie,De,Un){const{matched:Nn,consumedSegments:Ii,remainingSegments:Qi,positionalParamSegments:Fa}=cl(pt,ie,De);if(!Nn)return _d(pt);const Ko=this.applyRedirectCommands(Ii,ie.redirectTo,Fa);return ie.redirectTo.startsWith("/")?g1(Ko):this.lineralizeSegments(ie,Ko).pipe((0,zt.zg)(xr=>this.expandSegment(yt,pt,Yt,xr.concat(Qi),Un,!1)))}matchSegmentAgainstRoute(yt,pt,Yt,ie,De){return"**"===Yt.path?(yt=sr(Yt,yt),Yt.loadChildren?(Yt._loadedRoutes?(0,v.of)({routes:Yt._loadedRoutes,injector:Yt._loadedInjector}):this.configLoader.loadChildren(yt,Yt)).pipe((0,at.U)(Nn=>(Yt._loadedRoutes=Nn.routes,Yt._loadedInjector=Nn.injector,new fi(ie,{})))):(0,v.of)(new fi(ie,{}))):Ml(pt,Yt,ie,yt).pipe((0,lt.w)(({matched:Un,consumedSegments:Nn,remainingSegments:Ii})=>Un?this.getChildConfig(yt=Yt._injector??yt,Yt,ie).pipe((0,zt.zg)(Fa=>{const Ko=Fa.injector??yt,xr=Fa.routes,{segmentGroup:zs,slicedSegments:Vu}=Yi(pt,Nn,Ii,xr),va=new fi(zs.segments,zs.children);if(0===Vu.length&&va.hasChildren())return this.expandChildren(Ko,xr,va).pipe((0,at.U)(Ci=>new fi(Nn,Ci)));if(0===xr.length&&0===Vu.length)return(0,v.of)(new fi(Nn,{}));const Dl=Nr(Yt)===De;return this.expandSegment(Ko,va,xr,Vu,Dl?Pe:De,!0).pipe((0,at.U)(Zn=>new fi(Nn.concat(Zn.segments),Zn.children)))})):_d(pt)))}getChildConfig(yt,pt,Yt){return pt.children?(0,v.of)({routes:pt.children,injector:yt}):pt.loadChildren?void 0!==pt._loadedRoutes?(0,v.of)({routes:pt._loadedRoutes,injector:pt._loadedInjector}):function Ic(vt,yt,pt,Yt){const ie=yt.canLoad;if(void 0===ie||0===ie.length)return(0,v.of)(!0);const De=ie.map(Un=>{const Nn=vu(Un,vt);return ne(function ee(vt){return vt&&Pr(vt.canLoad)}(Nn)?Nn.canLoad(yt,pt):vt.runInContext(()=>Nn(yt,pt)))});return(0,v.of)(De).pipe(qr(),sl())}(yt,pt,Yt).pipe((0,zt.zg)(ie=>ie?this.configLoader.loadChildren(yt,pt).pipe((0,Tt.b)(De=>{pt._loadedRoutes=De.routes,pt._loadedInjector=De.injector})):function pi(vt){return(0,D._)(Ds(Us,3))}())):(0,v.of)({routes:[],injector:yt})}lineralizeSegments(yt,pt){let Yt=[],ie=pt.root;for(;;){if(Yt=Yt.concat(ie.segments),0===ie.numberOfChildren)return(0,v.of)(Yt);if(ie.numberOfChildren>1||!ie.children[Pe])return(0,D._)(new d.vHH(4e3,Us));ie=ie.children[Pe]}}applyRedirectCommands(yt,pt,Yt){return this.applyRedirectCreateUrlTree(pt,this.urlSerializer.parse(pt),yt,Yt)}applyRedirectCreateUrlTree(yt,pt,Yt,ie){const De=this.createSegmentGroup(yt,pt.root,Yt,ie);return new ho(De,this.createQueryParams(pt.queryParams,this.urlTree.queryParams),pt.fragment)}createQueryParams(yt,pt){const Yt={};return Ke(yt,(ie,De)=>{if("string"==typeof ie&&ie.startsWith(":")){const Nn=ie.substring(1);Yt[De]=pt[Nn]}else Yt[De]=ie}),Yt}createSegmentGroup(yt,pt,Yt,ie){const De=this.createSegments(yt,pt.segments,Yt,ie);let Un={};return Ke(pt.children,(Nn,Ii)=>{Un[Ii]=this.createSegmentGroup(yt,Nn,Yt,ie)}),new fi(De,Un)}createSegments(yt,pt,Yt,ie){return pt.map(De=>De.path.startsWith(":")?this.findPosParam(yt,De,ie):this.findOrReturn(De,Yt))}findPosParam(yt,pt,Yt){const ie=Yt[pt.path.substring(1)];if(!ie)throw new d.vHH(4001,Us);return ie}findOrReturn(yt,pt){let Yt=0;for(const ie of pt){if(ie.path===yt.path)return pt.splice(Yt),ie;Yt++}return yt}}class nr{}class ge{constructor(yt,pt,Yt,ie,De,Un,Nn,Ii){this.injector=yt,this.rootComponentType=pt,this.config=Yt,this.urlTree=ie,this.url=De,this.paramsInheritanceStrategy=Un,this.relativeLinkResolution=Nn,this.urlSerializer=Ii}recognize(){const yt=Yi(this.urlTree.root,[],[],this.config.filter(pt=>void 0===pt.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,yt,Pe).pipe((0,at.U)(pt=>{if(null===pt)return null;const Yt=new jc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Pe,this.rootComponentType,null,this.urlTree.root,-1,{}),ie=new Vc(Yt,pt),De=new ks(this.url,ie);return this.inheritParamsAndData(De._root),De}))}inheritParamsAndData(yt){const pt=yt.value,Yt=Tl(pt,this.paramsInheritanceStrategy);pt.params=Object.freeze(Yt.params),pt.data=Object.freeze(Yt.data),yt.children.forEach(ie=>this.inheritParamsAndData(ie))}processSegmentGroup(yt,pt,Yt,ie){return 0===Yt.segments.length&&Yt.hasChildren()?this.processChildren(yt,pt,Yt):this.processSegment(yt,pt,Yt,Yt.segments,ie)}processChildren(yt,pt,Yt){return(0,p.D)(Object.keys(Yt.children)).pipe((0,nt.b)(ie=>{const De=Yt.children[ie],Un=aa(pt,ie);return this.processSegmentGroup(yt,Un,De,ie)}),Et((ie,De)=>ie&&De?(ie.push(...De),ie):null),(0,we.o)(ie=>null!==ie),(0,qe.d)(null),Xt(),(0,at.U)(ie=>{if(null===ie)return null;const De=fd(ie);return function Au(vt){vt.sort((yt,pt)=>yt.value.outlet===Pe?-1:pt.value.outlet===Pe?1:yt.value.outlet.localeCompare(pt.value.outlet))}(De),De}))}processSegment(yt,pt,Yt,ie,De){return(0,p.D)(pt).pipe((0,nt.b)(Un=>this.processSegmentAgainstRoute(Un._injector??yt,Un,Yt,ie,De)),(0,Vt.P)(Un=>!!Un),(0,At.K)(Un=>{if(Ec(Un))return Rr(Yt,ie,De)?(0,v.of)([]):(0,v.of)(null);throw Un}))}processSegmentAgainstRoute(yt,pt,Yt,ie,De){if(pt.redirectTo||!Ja(pt,Yt,ie,De))return(0,v.of)(null);let Un;if("**"===pt.path){const Nn=ie.length>0?bi(ie).parameters:{},Ii=Mt(Yt)+ie.length,Qi=new jc(ie,Nn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,jt(pt),Nr(pt),pt.component??pt._loadedComponent??null,pt,zu(Yt),Ii,Qe(pt),Ii);Un=(0,v.of)({snapshot:Qi,consumedSegments:[],remainingSegments:[]})}else Un=Ml(Yt,pt,ie,yt).pipe((0,at.U)(({matched:Nn,consumedSegments:Ii,remainingSegments:Qi,parameters:Fa})=>{if(!Nn)return null;const Ko=Mt(Yt)+Ii.length;return{snapshot:new jc(Ii,Fa,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,jt(pt),Nr(pt),pt.component??pt._loadedComponent??null,pt,zu(Yt),Ko,Qe(pt),Ko),consumedSegments:Ii,remainingSegments:Qi}}));return Un.pipe((0,lt.w)(Nn=>{if(null===Nn)return(0,v.of)(null);const{snapshot:Ii,consumedSegments:Qi,remainingSegments:Fa}=Nn;yt=pt._injector??yt;const Ko=pt._loadedInjector??yt,xr=function Ks(vt){return vt.children?vt.children:vt.loadChildren?vt._loadedRoutes:[]}(pt),{segmentGroup:zs,slicedSegments:Vu}=Yi(Yt,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,at.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=Nr(pt)===De;return this.processSegment(Ko,xr,zs,Vu,va?Pe:De).pipe((0,at.U)(Dl=>null===Dl?null:[new Vc(Ii,Dl)]))}))}}function Xi(vt){const yt=vt.value.routeConfig;return yt&&""===yt.path&&void 0===yt.redirectTo}function fd(vt){const yt=[],pt=new Set;for(const Yt of vt){if(!Xi(Yt)){yt.push(Yt);continue}const ie=yt.find(De=>Yt.value.routeConfig===De.value.routeConfig);void 0!==ie?(ie.children.push(...Yt.children),pt.add(ie)):yt.push(Yt)}for(const Yt of pt){const ie=fd(Yt.children);yt.push(new Vc(Yt.value,ie))}return yt.filter(Yt=>!pt.has(Yt))}function zu(vt){let yt=vt;for(;yt._sourceSegment;)yt=yt._sourceSegment;return yt}function Mt(vt){let yt=vt,pt=yt._segmentIndexShift??0;for(;yt._sourceSegment;)yt=yt._sourceSegment,pt+=yt._segmentIndexShift??0;return pt-1}function jt(vt){return vt.data||{}}function Qe(vt){return vt.resolve||{}}function Gn(vt){return"string"==typeof vt.title||null===vt.title}function Qn(vt){return(0,lt.w)(yt=>{const pt=vt(yt);return pt?(0,p.D)(pt).pipe((0,at.U)(()=>yt)):(0,v.of)(yt)})}let yi=(()=>{class vt{buildTitle(pt){let Yt,ie=pt.root;for(;void 0!==ie;)Yt=this.getResolvedTitleForRoute(ie)??Yt,ie=ie.children.find(De=>De.outlet===Pe);return Yt}getResolvedTitleForRoute(pt){return pt.data[on]}}return vt.\u0275fac=function(pt){return new(pt||vt)},vt.\u0275prov=d.Yz7({token:vt,factory:function(){return(0,d.f3M)(Ti)},providedIn:"root"}),vt})(),Ti=(()=>{class vt extends yi{constructor(pt){super(),this.title=pt}updateTitle(pt){const Yt=this.buildTitle(pt);void 0!==Yt&&this.title.setTitle(Yt)}}return vt.\u0275fac=function(pt){return new(pt||vt)(d.LFG(re.Dx))},vt.\u0275prov=d.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();class xo{}class ga extends class yo{shouldDetach(yt){return!1}store(yt,pt){}shouldAttach(yt){return!1}retrieve(yt){return null}shouldReuseRoute(yt,pt){return yt.routeConfig===pt.routeConfig}}{}const fa=new d.OlP("",{providedIn:"root",factory:()=>({})}),Hs=new d.OlP("ROUTES");let ns=(()=>{class vt{constructor(pt,Yt){this.injector=pt,this.compiler=Yt,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 Yt=ne(pt.loadComponent()).pipe((0,Tt.b)(De=>{this.onLoadEndListener&&this.onLoadEndListener(pt),pt._loadedComponent=De}),(0,Kt.x)(()=>{this.componentLoaders.delete(pt)})),ie=new z.c(Yt,()=>new G.xQ).pipe((0,de.x)());return this.componentLoaders.set(pt,ie),ie}loadChildren(pt,Yt){if(this.childrenLoaders.get(Yt))return this.childrenLoaders.get(Yt);if(Yt._loadedRoutes)return(0,v.of)({routes:Yt._loadedRoutes,injector:Yt._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Yt);const De=this.loadModuleFactoryOrRoutes(Yt.loadChildren).pipe((0,at.U)(Nn=>{this.onLoadEndListener&&this.onLoadEndListener(Yt);let Ii,Qi,Fa=!1;Array.isArray(Nn)?Qi=Nn:(Ii=Nn.create(pt).injector,Qi=oi(Ii.get(Hs,[],d.XFs.Self|d.XFs.Optional)));return{routes:Qi.map(Ws),injector:Ii}}),(0,Kt.x)(()=>{this.childrenLoaders.delete(Yt)})),Un=new z.c(De,()=>new G.xQ).pipe((0,de.x)());return this.childrenLoaders.set(Yt,Un),Un}loadModuleFactoryOrRoutes(pt){return ne(pt()).pipe((0,zt.zg)(Yt=>Yt instanceof d.YKP||Array.isArray(Yt)?(0,v.of)(Yt):(0,p.D)(this.compiler.compileModuleAsync(Yt))))}}return vt.\u0275fac=function(pt){return new(pt||vt)(d.LFG(d.zs3),d.LFG(d.Sil))},vt.\u0275prov=d.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();class is{}class ds{shouldProcessUrl(yt){return!0}extract(yt){return yt}merge(yt,pt){return yt}}function Xs(vt){throw vt}function Nc(vt,yt,pt){return yt.parse("/")}const os={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Rd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function lr(){const vt=(0,d.f3M)(ze),yt=(0,d.f3M)(Cc),pt=(0,d.f3M)(K.Ye),Yt=(0,d.f3M)(d.zs3),ie=(0,d.f3M)(d.Sil),De=(0,d.f3M)(Hs,{optional:!0})??[],Un=(0,d.f3M)(fa,{optional:!0})??{},Nn=(0,d.f3M)(Ti),Ii=(0,d.f3M)(yi,{optional:!0}),Qi=(0,d.f3M)(is,{optional:!0}),Fa=(0,d.f3M)(xo,{optional:!0}),Ko=new As(null,vt,yt,pt,Yt,ie,oi(De));return Qi&&(Ko.urlHandlingStrategy=Qi),Fa&&(Ko.routeReuseStrategy=Fa),Ko.titleStrategy=Ii??Nn,function cr(vt,yt){vt.errorHandler&&(yt.errorHandler=vt.errorHandler),vt.malformedUriErrorHandler&&(yt.malformedUriErrorHandler=vt.malformedUriErrorHandler),vt.onSameUrlNavigation&&(yt.onSameUrlNavigation=vt.onSameUrlNavigation),vt.paramsInheritanceStrategy&&(yt.paramsInheritanceStrategy=vt.paramsInheritanceStrategy),vt.relativeLinkResolution&&(yt.relativeLinkResolution=vt.relativeLinkResolution),vt.urlUpdateStrategy&&(yt.urlUpdateStrategy=vt.urlUpdateStrategy),vt.canceledNavigationResolution&&(yt.canceledNavigationResolution=vt.canceledNavigationResolution)}(Un,Ko),Ko}let As=(()=>{class vt{constructor(pt,Yt,ie,De,Un,Nn,Ii){this.rootComponentType=pt,this.urlSerializer=Yt,this.rootContexts=ie,this.location=De,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=Nc,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,v.of)(void 0),this.urlHandlingStrategy=new ds,this.routeReuseStrategy=new ga,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=Un.get(ns),this.configLoader.onLoadEndListener=xr=>this.triggerEvent(new _1(xr)),this.configLoader.onLoadStartListener=xr=>this.triggerEvent(new Fs(xr)),this.ngModule=Un.get(d.h0i),this.console=Un.get(d.c2e);const Ko=Un.get(d.R0b);this.isNgZoneEnabled=Ko instanceof d.R0b&&d.R0b.isInAngularZone(),this.resetConfig(Ii),this.currentUrlTree=function it(){return new ho(new fi([],{}),{},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 Yt=this.events;return pt.pipe((0,Dt.h)(ie=>0!==ie.id),(0,at.U)(ie=>({...ie,extractedUrl:this.urlHandlingStrategy.extract(ie.rawUrl)})),(0,lt.w)(ie=>{let De=!1,Un=!1;return(0,v.of)(ie).pipe((0,Tt.b)(Nn=>{this.currentNavigation={id:Nn.id,initialUrl:Nn.rawUrl,extractedUrl:Nn.extractedUrl,trigger:Nn.source,extras:Nn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,lt.w)(Nn=>{const Ii=this.browserUrlTree.toString(),Qi=!this.navigated||Nn.extractedUrl.toString()!==Ii||Ii!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Qi)&&this.urlHandlingStrategy.shouldProcessUrl(Nn.rawUrl))return jp(Nn.source)&&(this.browserUrlTree=Nn.extractedUrl),(0,v.of)(Nn).pipe((0,lt.w)(Ko=>{const xr=this.transitions.getValue();return Yt.next(new Gr(Ko.id,this.serializeUrl(Ko.extractedUrl),Ko.source,Ko.restoredState)),xr!==this.transitions.getValue()?I.E:Promise.resolve(Ko)}),function So(vt,yt,pt,Yt){return(0,lt.w)(ie=>function Di(vt,yt,pt,Yt,ie){return new Pi(vt,yt,pt,Yt,ie).apply()}(vt,yt,pt,ie.extractedUrl,Yt).pipe((0,at.U)(De=>({...ie,urlAfterRedirects:De}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Tt.b)(Ko=>{this.currentNavigation={...this.currentNavigation,finalUrl:Ko.urlAfterRedirects},ie.urlAfterRedirects=Ko.urlAfterRedirects}),function On(vt,yt,pt,Yt,ie,De){return(0,zt.zg)(Un=>function Ve(vt,yt,pt,Yt,ie,De,Un="emptyOnly",Nn="legacy"){return new ge(vt,yt,pt,Yt,ie,Un,Nn,De).recognize().pipe((0,lt.w)(Ii=>null===Ii?function hn(vt){return new P.y(yt=>yt.error(vt))}(new nr):(0,v.of)(Ii)))}(vt,yt,pt,Un.urlAfterRedirects,Yt.serialize(Un.urlAfterRedirects),Yt,ie,De).pipe((0,at.U)(Nn=>({...Un,targetSnapshot:Nn}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Tt.b)(Ko=>{if(ie.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);Yt.next(xr)}));if(Qi&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:xr,extractedUrl:zs,source:Vu,restoredState:va,extras:Dl}=Nn,$o=new Gr(xr,this.serializeUrl(zs),Vu,va);Yt.next($o);const Zn=md(zs,this.rootComponentType).snapshot;return ie={...Nn,targetSnapshot:Zn,urlAfterRedirects:zs,extras:{...Dl,skipLocationChange:!1,replaceUrl:!1}},(0,v.of)(ie)}return this.rawUrlTree=Nn.rawUrl,Nn.resolve(null),I.E}),(0,Tt.b)(Nn=>{const Ii=new Ns(Nn.id,this.serializeUrl(Nn.extractedUrl),this.serializeUrl(Nn.urlAfterRedirects),Nn.targetSnapshot);this.triggerEvent(Ii)}),(0,at.U)(Nn=>ie={...Nn,guards:yc(Nn.targetSnapshot,Nn.currentSnapshot,this.rootContexts)}),function Ru(vt,yt){return(0,zt.zg)(pt=>{const{targetSnapshot:Yt,currentSnapshot:ie,guards:{canActivateChecks:De,canDeactivateChecks:Un}}=pt;return 0===Un.length&&0===De.length?(0,v.of)({...pt,guardsResult:!0}):function er(vt,yt,pt,Yt){return(0,p.D)(vt).pipe((0,zt.zg)(ie=>function ru(vt,yt,pt,Yt,ie){const De=yt&&yt.routeConfig?yt.routeConfig.canDeactivate:null;if(!De||0===De.length)return(0,v.of)(!0);const Un=De.map(Nn=>{const Ii=uc(yt)??ie,Qi=vu(Nn,Ii);return ne(function ki(vt){return vt&&Pr(vt.canDeactivate)}(Qi)?Qi.canDeactivate(vt,yt,pt,Yt):Ii.runInContext(()=>Qi(vt,yt,pt,Yt))).pipe((0,Vt.P)())});return(0,v.of)(Un).pipe(qr())}(ie.component,ie.route,pt,yt,Yt)),(0,Vt.P)(ie=>!0!==ie,!0))}(Un,Yt,ie,vt).pipe((0,zt.zg)(Nn=>Nn&&function pe(vt){return"boolean"==typeof vt}(Nn)?function Ul(vt,yt,pt,Yt){return(0,p.D)(yt).pipe((0,nt.b)(ie=>(0,C.z)(function Hu(vt,yt){return null!==vt&&yt&&yt(new hr(vt)),(0,v.of)(!0)}(ie.route.parent,Yt),function au(vt,yt){return null!==vt&&yt&&yt(new f1(vt)),(0,v.of)(!0)}(ie.route,Yt),function h1(vt,yt,pt){const Yt=yt[yt.length-1],De=yt.slice(0,yt.length-1).reverse().map(Un=>function qd(vt){const yt=vt.routeConfig?vt.routeConfig.canActivateChild:null;return yt&&0!==yt.length?{node:vt,guards:yt}:null}(Un)).filter(Un=>null!==Un).map(Un=>(0,U.P)(()=>{const Nn=Un.guards.map(Ii=>{const Qi=uc(Un.node)??pt,Fa=vu(Ii,Qi);return ne(function rt(vt){return vt&&Pr(vt.canActivateChild)}(Fa)?Fa.canActivateChild(Yt,vt):Qi.runInContext(()=>Fa(Yt,vt))).pipe((0,Vt.P)())});return(0,v.of)(Nn).pipe(qr())}));return(0,v.of)(De).pipe(qr())}(vt,ie.path,pt),function Vp(vt,yt,pt){const Yt=yt.routeConfig?yt.routeConfig.canActivate:null;if(!Yt||0===Yt.length)return(0,v.of)(!0);const ie=Yt.map(De=>(0,U.P)(()=>{const Un=uc(yt)??pt,Nn=vu(De,Un);return ne(function qt(vt){return vt&&Pr(vt.canActivate)}(Nn)?Nn.canActivate(yt,vt):Un.runInContext(()=>Nn(yt,vt))).pipe((0,Vt.P)())}));return(0,v.of)(ie).pipe(qr())}(vt,ie.route,pt))),(0,Vt.P)(ie=>!0!==ie,!0))}(Yt,De,vt,yt):(0,v.of)(Nn)),(0,at.U)(Nn=>({...pt,guardsResult:Nn})))})}(this.ngModule.injector,Nn=>this.triggerEvent(Nn)),(0,Tt.b)(Nn=>{if(ie.guardsResult=Nn.guardsResult,Fo(Nn.guardsResult))throw wl(0,Nn.guardsResult);const Ii=new Lc(Nn.id,this.serializeUrl(Nn.extractedUrl),this.serializeUrl(Nn.urlAfterRedirects),Nn.targetSnapshot,!!Nn.guardsResult);this.triggerEvent(Ii)}),(0,Dt.h)(Nn=>!!Nn.guardsResult||(this.restoreHistory(Nn),this.cancelNavigationTransition(Nn,"",3),!1)),Qn(Nn=>{if(Nn.guards.canActivateChecks.length)return(0,v.of)(Nn).pipe((0,Tt.b)(Ii=>{const Qi=new xl(Ii.id,this.serializeUrl(Ii.extractedUrl),this.serializeUrl(Ii.urlAfterRedirects),Ii.targetSnapshot);this.triggerEvent(Qi)}),(0,lt.w)(Ii=>{let Qi=!1;return(0,v.of)(Ii).pipe(function Nt(vt,yt){return(0,zt.zg)(pt=>{const{targetSnapshot:Yt,guards:{canActivateChecks:ie}}=pt;if(!ie.length)return(0,v.of)(pt);let De=0;return(0,p.D)(ie).pipe((0,nt.b)(Un=>function ce(vt,yt,pt,Yt){const ie=vt.routeConfig,De=vt._resolve;return void 0!==ie?.title&&!Gn(ie)&&(De[on]=ie.title),function Me(vt,yt,pt,Yt){const ie=function tn(vt){return[...Object.keys(vt),...Object.getOwnPropertySymbols(vt)]}(vt);if(0===ie.length)return(0,v.of)({});const De={};return(0,p.D)(ie).pipe((0,zt.zg)(Un=>function vn(vt,yt,pt,Yt){const ie=uc(yt)??Yt,De=vu(vt,ie);return ne(De.resolve?De.resolve(yt,pt):ie.runInContext(()=>De(yt,pt)))}(vt[Un],yt,pt,Yt).pipe((0,Vt.P)(),(0,Tt.b)(Nn=>{De[Un]=Nn}))),Jt(1),(0,ae.h)(De),(0,At.K)(Un=>Ec(Un)?I.E:(0,D._)(Un)))}(De,vt,yt,Yt).pipe((0,at.U)(Un=>(vt._resolvedData=Un,vt.data=Tl(vt,pt).resolve,ie&&Gn(ie)&&(vt.data[on]=ie.title),null)))}(Un.route,Yt,vt,yt)),(0,Tt.b)(()=>De++),Jt(1),(0,zt.zg)(Un=>De===ie.length?(0,v.of)(pt):I.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Tt.b)({next:()=>Qi=!0,complete:()=>{Qi||(this.restoreHistory(Ii),this.cancelNavigationTransition(Ii,"",2))}}))}),(0,Tt.b)(Ii=>{const Qi=new Qr(Ii.id,this.serializeUrl(Ii.extractedUrl),this.serializeUrl(Ii.urlAfterRedirects),Ii.targetSnapshot);this.triggerEvent(Qi)}))}),Qn(Nn=>{const Ii=Qi=>{const Fa=[];Qi.routeConfig?.loadComponent&&!Qi.routeConfig._loadedComponent&&Fa.push(this.configLoader.loadComponent(Qi.routeConfig).pipe((0,Tt.b)(Ko=>{Qi.component=Ko}),(0,at.U)(()=>{})));for(const Ko of Qi.children)Fa.push(...Ii(Ko));return Fa};return(0,A.aj)(Ii(Nn.targetSnapshot.root)).pipe((0,qe.d)(),(0,bt.q)(1))}),Qn(()=>this.afterPreactivation()),(0,at.U)(Nn=>{const Ii=function rr(vt,yt,pt){const Yt=cc(vt,yt._root,pt?pt._root:void 0);return new yl(Yt,yt)}(this.routeReuseStrategy,Nn.targetSnapshot,Nn.currentRouterState);return ie={...Nn,targetRouterState:Ii}}),(0,Tt.b)(Nn=>{this.currentUrlTree=Nn.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Nn.urlAfterRedirects,Nn.rawUrl),this.routerState=Nn.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Nn.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Nn),this.browserUrlTree=Nn.urlAfterRedirects)}),((vt,yt,pt)=>(0,at.U)(Yt=>(new Vr(yt,Yt.targetRouterState,Yt.currentRouterState,pt).activate(vt),Yt)))(this.rootContexts,this.routeReuseStrategy,Nn=>this.triggerEvent(Nn)),(0,Tt.b)({next(){De=!0},complete(){De=!0}}),(0,Kt.x)(()=>{De||Un||this.cancelNavigationTransition(ie,"",1),this.currentNavigation?.id===ie.id&&(this.currentNavigation=null)}),(0,At.K)(Nn=>{if(Un=!0,bu(Nn)){Jc(Nn)||(this.navigated=!0,this.restoreHistory(ie,!0));const Ii=new Pc(ie.id,this.serializeUrl(ie.extractedUrl),Nn.message,Nn.cancellationCode);if(Yt.next(Ii),Jc(Nn)){const Qi=this.urlHandlingStrategy.merge(Nn.url,this.rawUrlTree),Fa={skipLocationChange:ie.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jp(ie.source)};this.scheduleNavigation(Qi,"imperative",null,Fa,{resolve:ie.resolve,reject:ie.reject,promise:ie.promise})}else ie.resolve(!1)}else{this.restoreHistory(ie,!0);const Ii=new al(ie.id,this.serializeUrl(ie.extractedUrl),Nn,ie.targetSnapshot??void 0);Yt.next(Ii);try{ie.resolve(this.errorHandler(Nn))}catch(Qi){ie.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 Yt="popstate"===pt.type?"popstate":"hashchange";"popstate"===Yt&&setTimeout(()=>{const ie={replaceUrl:!0},De=pt.state?.navigationId?pt.state:null;if(De){const Nn={...De};delete Nn.navigationId,delete Nn.\u0275routerPageId,0!==Object.keys(Nn).length&&(ie.state=Nn)}const Un=this.parseUrl(pt.url);this.scheduleNavigation(Un,Yt,De,ie)},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,Yt={}){const{relativeTo:ie,queryParams:De,fragment:Un,queryParamsHandling:Nn,preserveFragment:Ii}=Yt,Qi=ie||this.routerState.root,Fa=Ii?this.currentUrlTree.fragment:Un;let Ko=null;switch(Nn){case"merge":Ko={...this.currentUrlTree.queryParams,...De};break;case"preserve":Ko=this.currentUrlTree.queryParams;break;default:Ko=De||null}return null!==Ko&&(Ko=this.removeEmptyProps(Ko)),In(Qi,this.currentUrlTree,pt,Ko,Fa??null)}navigateByUrl(pt,Yt={skipLocationChange:!1}){const ie=Fo(pt)?pt:this.parseUrl(pt),De=this.urlHandlingStrategy.merge(ie,this.rawUrlTree);return this.scheduleNavigation(De,"imperative",null,Yt)}navigate(pt,Yt={skipLocationChange:!1}){return function b_(vt){for(let yt=0;yt{const De=pt[ie];return null!=De&&(Yt[ie]=De),Yt},{})}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,Yt,ie,De,Un){if(this.disposed)return Promise.resolve(!1);let Nn,Ii,Qi;Un?(Nn=Un.resolve,Ii=Un.reject,Qi=Un.promise):Qi=new Promise((xr,zs)=>{Nn=xr,Ii=zs});const Fa=++this.navigationId;let Ko;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ie=this.location.getState()),Ko=ie&&ie.\u0275routerPageId?ie.\u0275routerPageId:De.replaceUrl||De.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):Ko=0,this.setTransition({id:Fa,targetPageId:Ko,source:Yt,restoredState:ie,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:pt,extras:De,resolve:Nn,reject:Ii,promise:Qi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Qi.catch(xr=>Promise.reject(xr))}setBrowserUrl(pt,Yt){const ie=this.urlSerializer.serialize(pt),De={...Yt.extras.state,...this.generateNgRouterState(Yt.id,Yt.targetPageId)};this.location.isCurrentPathEqualTo(ie)||Yt.extras.replaceUrl?this.location.replaceState(ie,"",De):this.location.go(ie,"",De)}restoreHistory(pt,Yt=!1){if("computed"===this.canceledNavigationResolution){const ie=this.currentPageId-pt.targetPageId;"popstate"!==pt.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===ie?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===ie&&(this.resetState(pt),this.browserUrlTree=pt.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(ie)}else"replace"===this.canceledNavigationResolution&&(Yt&&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,Yt,ie){const De=new Pc(pt.id,this.serializeUrl(pt.extractedUrl),Yt,ie);this.triggerEvent(De),pt.resolve(!1)}generateNgRouterState(pt,Yt){return"computed"===this.canceledNavigationResolution?{navigationId:pt,\u0275routerPageId:Yt}:{navigationId:pt}}}return vt.\u0275fac=function(pt){d.$Z()},vt.\u0275prov=d.Yz7({token:vt,factory:function(){return lr()},providedIn:"root"}),vt})();function jp(vt){return"imperative"!==vt}let Ka=(()=>{class vt{constructor(pt,Yt,ie,De,Un){this.router=pt,this.route=Yt,this.tabIndexAttribute=ie,this.renderer=De,this.el=Un,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 Yt=this.renderer,ie=this.el.nativeElement;null!==pt?Yt.setAttribute(ie,"tabindex",pt):Yt.removeAttribute(ie,"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 vt.\u0275fac=function(pt){return new(pt||vt)(d.Y36(As),d.Y36(Js),d.$8M("tabindex"),d.Y36(d.Qsj),d.Y36(d.SBq))},vt.\u0275dir=d.lG2({type:vt,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(pt,Yt){1&pt&&d.NdJ("click",function(){return Yt.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]}),vt})(),cu=(()=>{class vt{constructor(pt,Yt,ie){this.router=pt,this.route=Yt,this.locationStrategy=ie,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(De=>{De 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,Yt,ie,De,Un){return!!(0!==pt||Yt||ie||De||Un||"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 vt.\u0275fac=function(pt){return new(pt||vt)(d.Y36(As),d.Y36(Js),d.Y36(K.S$))},vt.\u0275dir=d.lG2({type:vt,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(pt,Yt){1&pt&&d.NdJ("click",function(De){return Yt.onClick(De.button,De.ctrlKey,De.shiftKey,De.altKey,De.metaKey)}),2&pt&&d.uIk("target",Yt.target)("href",Yt.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]}),vt})(),Tc=(()=>{class vt{constructor(pt,Yt,ie,De,Un,Nn){this.router=pt,this.element=Yt,this.renderer=ie,this.cdr=De,this.link=Un,this.linkWithHref=Nn,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,Wt.J)()).subscribe(pt=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const pt=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(Yt=>!!Yt).map(Yt=>Yt.onChanges);this.linkInputChangesSubscription=(0,p.D)(pt).pipe((0,Wt.J)()).subscribe(Yt=>{this.isActive!==this.isLinkActive(this.router)(Yt)&&this.update()})}set routerLinkActive(pt){const Yt=Array.isArray(pt)?pt:pt.split(" ");this.classes=Yt.filter(ie=>!!ie)}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(Yt=>{pt?this.renderer.addClass(this.element.nativeElement,Yt):this.renderer.removeClass(this.element.nativeElement,Yt)}),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 Yt=function tc(vt){return!!vt.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ie=>!!ie.urlTree&&pt.isActive(ie.urlTree,Yt)}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 vt.\u0275fac=function(pt){return new(pt||vt)(d.Y36(As),d.Y36(d.SBq),d.Y36(d.Qsj),d.Y36(d.sBO),d.Y36(Ka,8),d.Y36(cu,8))},vt.\u0275dir=d.lG2({type:vt,selectors:[["","routerLinkActive",""]],contentQueries:function(pt,Yt,ie){if(1&pt&&(d.Suo(ie,Ka,5),d.Suo(ie,cu,5)),2&pt){let De;d.iGM(De=d.CRH())&&(Yt.links=De),d.iGM(De=d.CRH())&&(Yt.linksWithHrefs=De)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[d.TTD]}),vt})();class yu{}let Hd=(()=>{class vt{constructor(pt,Yt,ie,De,Un){this.router=pt,this.injector=ie,this.preloadingStrategy=De,this.loader=Un}setUpPreloading(){this.subscription=this.router.events.pipe((0,Dt.h)(pt=>pt instanceof Ir),(0,nt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(pt,Yt){const ie=[];for(const De of Yt){De.providers&&!De._injector&&(De._injector=(0,d.MMx)(De.providers,pt,`Route: ${De.path}`));const Un=De._injector??pt,Nn=De._loadedInjector??Un;De.loadChildren&&!De._loadedRoutes&&void 0===De.canLoad||De.loadComponent&&!De._loadedComponent?ie.push(this.preloadConfig(Un,De)):(De.children||De._loadedRoutes)&&ie.push(this.processRoutes(Nn,De.children??De._loadedRoutes))}return(0,p.D)(ie).pipe((0,Wt.J)())}preloadConfig(pt,Yt){return this.preloadingStrategy.preload(Yt,()=>{let ie;ie=Yt.loadChildren&&void 0===Yt.canLoad?this.loader.loadChildren(pt,Yt):(0,v.of)(null);const De=ie.pipe((0,zt.zg)(Un=>null===Un?(0,v.of)(void 0):(Yt._loadedRoutes=Un.routes,Yt._loadedInjector=Un.injector,this.processRoutes(Un.injector??pt,Un.routes))));if(Yt.loadComponent&&!Yt._loadedComponent){const Un=this.loader.loadComponent(Yt);return(0,p.D)([De,Un]).pipe((0,Wt.J)())}return De})}}return vt.\u0275fac=function(pt){return new(pt||vt)(d.LFG(As),d.LFG(d.Sil),d.LFG(d.lqb),d.LFG(yu),d.LFG(ns))},vt.\u0275prov=d.Yz7({token:vt,factory:vt.\u0275fac,providedIn:"root"}),vt})();const jl=new d.OlP("");let Yu=(()=>{class vt{constructor(pt,Yt,ie={}){this.router=pt,this.viewportScroller=Yt,this.options=ie,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ie.scrollPositionRestoration=ie.scrollPositionRestoration||"disabled",ie.anchorScrolling=ie.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,Yt){this.router.triggerEvent(new Cl(pt,"popstate"===this.lastSource?this.store[this.restoredId]:null,Yt))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return vt.\u0275fac=function(pt){d.$Z()},vt.\u0275prov=d.Yz7({token:vt,factory:vt.\u0275fac}),vt})();function rs(vt,yt){return{\u0275kind:vt,\u0275providers:yt}}function $c(vt){return[{provide:Hs,multi:!0,useValue:vt}]}function wr(){const vt=(0,d.f3M)(d.zs3);return yt=>{const pt=vt.get(d.z2F);if(yt!==pt.components[0])return;const Yt=vt.get(As),ie=vt.get(cn);1===vt.get(hd)&&Yt.initialNavigation(),vt.get(E1,null,d.XFs.Optional)?.setUpPreloading(),vt.get(jl,null,d.XFs.Optional)?.init(),Yt.resetRootComponentType(pt.componentTypes[0]),ie.closed||(ie.next(),ie.unsubscribe())}}const cn=new d.OlP("",{factory:()=>new G.xQ}),hd=new d.OlP("",{providedIn:"root",factory:()=>1});const E1=new d.OlP("");function No(vt){return rs(0,[{provide:E1,useExisting:Hd},{provide:yu,useExisting:vt}])}const Ur=new d.OlP("ROUTER_FORROOT_GUARD"),Bu=[K.Ye,{provide:ze,useClass:We},{provide:As,useFactory:lr},Cc,{provide:Js,useFactory:function as(vt){return vt.routerState.root},deps:[As]},ns];function To(){return new d.PXZ("Router",As)}let v_=(()=>{class vt{constructor(pt){}static forRoot(pt,Yt){return{ngModule:vt,providers:[Bu,[],$c(pt),{provide:Ur,useFactory:x_,deps:[[As,new d.FiY,new d.tp0]]},{provide:fa,useValue:Yt||{}},Yt?.useHash?{provide:K.S$,useClass:K.Do}:{provide:K.S$,useClass:K.b0},{provide:jl,useFactory:()=>{const vt=(0,d.f3M)(As),yt=(0,d.f3M)(K.EM),pt=(0,d.f3M)(fa);return pt.scrollOffset&&yt.setOffset(pt.scrollOffset),new Yu(vt,yt,pt)}},Yt?.preloadingStrategy?No(Yt.preloadingStrategy).\u0275providers:[],{provide:d.PXZ,multi:!0,useFactory:To},Yt?.initialNavigation?pp(Yt):[],[{provide:zd,useFactory:wr},{provide:d.tb,multi:!0,useExisting:zd}]]}}static forChild(pt){return{ngModule:vt,providers:[$c(pt)]}}}return vt.\u0275fac=function(pt){return new(pt||vt)(d.LFG(Ur,8))},vt.\u0275mod=d.oAB({type:vt}),vt.\u0275inj=d.cJS({imports:[Ac]}),vt})();function x_(vt){return"guarded"}function pp(vt){return["disabled"===vt.initialNavigation?rs(3,[{provide:d.ip1,multi:!0,useFactory:()=>{const yt=(0,d.f3M)(As);return()=>{yt.setUpLocationChangeListener()}}},{provide:hd,useValue:2}]).\u0275providers:[],"enabledBlocking"===vt.initialNavigation?rs(2,[{provide:hd,useValue:0},{provide:d.ip1,multi:!0,deps:[d.zs3],useFactory:yt=>{const pt=yt.get(K.V_,Promise.resolve());let Yt=!1;return()=>pt.then(()=>new Promise(De=>{const Un=yt.get(As),Nn=yt.get(cn);(function ie(De){yt.get(As).events.pipe((0,Dt.h)(Nn=>Nn instanceof Ir||Nn instanceof Pc||Nn instanceof al),(0,at.U)(Nn=>Nn instanceof Ir||Nn instanceof Pc&&(0===Nn.code||1===Nn.code)&&null),(0,Dt.h)(Nn=>null!==Nn),(0,bt.q)(1)).subscribe(()=>{De()})})(()=>{De(!0),Yt=!0}),Un.afterPreactivation=()=>(De(!0),Yt||Nn.closed?(0,v.of)(void 0):Nn),Un.initialNavigation()}))}}]).\u0275providers:[]]}const zd=new d.OlP("")},92216:(ot,et,b)=>{"use strict";b.d(et,{BN:()=>ts,by:()=>Ks,uH:()=>On});var d=b(94650);function p(Nt,ce){var Me=Object.keys(Nt);if(Object.getOwnPropertySymbols){var tn=Object.getOwnPropertySymbols(Nt);ce&&(tn=tn.filter(function(vn){return Object.getOwnPropertyDescriptor(Nt,vn).enumerable})),Me.push.apply(Me,tn)}return Me}function v(Nt){for(var ce=1;ceNt.length)&&(ce=Nt.length);for(var Me=0,tn=new Array(ce);Me0;)ce+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return ce}function Re(Nt){for(var ce=[],Me=(Nt||[]).length>>>0;Me--;)ce[Me]=Nt[Me];return ce}function En(Nt){return Nt.classList?Re(Nt.classList):(Nt.getAttribute("class")||"").split(" ").filter(function(ce){return ce})}function gi(Nt){return"".concat(Nt).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function _o(Nt){return Object.keys(Nt||{}).reduce(function(ce,Me){return ce+"".concat(Me,": ").concat(Nt[Me].trim(),";")},"")}function mn(Nt){return Nt.size!==Xe.size||Nt.x!==Xe.x||Nt.y!==Xe.y||Nt.rotate!==Xe.rotate||Nt.flipX||Nt.flipY}function Zi(){var ce=on,Me=Lt.cssPrefix,tn=Lt.replacementClass,vn=':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"!==Me||tn!==ce){var Gn=new RegExp("\\.".concat("fa","\\-"),"g"),Qn=new RegExp("\\--".concat("fa","\\-"),"g"),yi=new RegExp("\\.".concat(ce),"g");vn=vn.replace(Gn,".".concat(Me,"-")).replace(Qn,"--".concat(Me,"-")).replace(yi,".".concat(tn))}return vn}var vo=!1;function Fo(){Lt.autoAddCss&&!vo&&(function Fe(Nt){if(Nt&&qe){var ce=Jt.createElement("style");ce.setAttribute("type","text/css"),ce.innerHTML=Nt;for(var Me=Jt.head.childNodes,tn=null,vn=Me.length-1;vn>-1;vn--){var Gn=Me[vn],Qn=(Gn.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(Qn)>-1&&(tn=Gn)}Jt.head.insertBefore(ce,tn)}}(Zi()),vo=!0)}var ca={mixout:function(){return{dom:{css:Zi,insertCss:Fo}}},hooks:function(){return{beforeDOMElementCreation:function(){Fo()},beforeI2svg:function(){Fo()}}}},Ia=se||{};Ia[Wt]||(Ia[Wt]={}),Ia[Wt].styles||(Ia[Wt].styles={}),Ia[Wt].hooks||(Ia[Wt].hooks={}),Ia[Wt].shims||(Ia[Wt].shims=[]);var fr=Ia[Wt],Ge=[],He=!1;function ke(Nt){!qe||(He?setTimeout(Nt,0):Ge.push(Nt))}function dn(Nt){var ce=Nt.tag,Me=Nt.attributes,tn=void 0===Me?{}:Me,vn=Nt.children,Gn=void 0===vn?[]:vn;return"string"==typeof Nt?gi(Nt):"<".concat(ce," ").concat(function go(Nt){return Object.keys(Nt||{}).reduce(function(ce,Me){return ce+"".concat(Me,'="').concat(gi(Nt[Me]),'" ')},"").trim()}(tn),">").concat(Gn.map(dn).join(""),"")}function tt(Nt,ce,Me){if(Nt&&Nt[ce]&&Nt[ce][Me])return{prefix:ce,iconName:Me,icon:Nt[ce][Me]}}qe&&((He=(Jt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Jt.readyState))||Jt.addEventListener("DOMContentLoaded",function Nt(){Jt.removeEventListener("DOMContentLoaded",Nt),He=1,Ge.map(function(ce){return ce()})}));var Q=function(ce,Me,tn,vn){var Ti,bo,xo,Gn=Object.keys(ce),Qn=Gn.length,yi=void 0!==vn?function(ce,Me){return function(tn,vn,Gn,Qn){return ce.call(Me,tn,vn,Gn,Qn)}}(Me,vn):Me;for(void 0===tn?(Ti=1,xo=ce[Gn[0]]):(Ti=0,xo=tn);Ti=55296&&vn<=56319&&Me2&&void 0!==arguments[2]?arguments[2]:{},tn=Me.skipHooks,vn=void 0!==tn&&tn,Gn=Gi(ce);"function"!=typeof fr.hooks.addPack||vn?fr.styles[Nt]=v(v({},fr.styles[Nt]||{}),Gn):fr.hooks.addPack(Nt,Gi(ce)),"fas"===Nt&&Co("fa",ce)}var br,ls,ar,Er=fr.styles,bc=fr.shims,dr=(k(br={},Ke,Object.values(oe[Ke])),k(br,ne,Object.values(oe[ne])),br),Br=null,Gr={},Ir={},Pc={},al={},Sc={},Ns=(k(ls={},Ke,Object.keys(kt[Ke])),k(ls,ne,Object.keys(kt[ne])),ls);function xl(Nt,ce){var Me=ce.split("-"),tn=Me[0],vn=Me.slice(1).join("-");return tn!==Nt||""===vn||function Lc(Nt){return~Ye.indexOf(Nt)}(vn)?null:vn}var Qr=function(){var ce=function(Gn){return Q(Er,function(Qn,yi,Ti){return Qn[Ti]=Q(yi,Gn,{}),Qn},{})};Gr=ce(function(vn,Gn,Qn){return Gn[3]&&(vn[Gn[3]]=Qn),Gn[2]&&Gn[2].filter(function(Ti){return"number"==typeof Ti}).forEach(function(Ti){vn[Ti.toString(16)]=Qn}),vn}),Ir=ce(function(vn,Gn,Qn){return vn[Qn]=Qn,Gn[2]&&Gn[2].filter(function(Ti){return"string"==typeof Ti}).forEach(function(Ti){vn[Ti]=Qn}),vn}),Sc=ce(function(vn,Gn,Qn){var yi=Gn[2];return vn[Qn]=Qn,yi.forEach(function(Ti){vn[Ti]=Qn}),vn});var Me="far"in Er||Lt.autoFetchSvg,tn=Q(bc,function(vn,Gn){var Qn=Gn[0],yi=Gn[1],Ti=Gn[2];return"far"===yi&&!Me&&(yi="fas"),"string"==typeof Qn&&(vn.names[Qn]={prefix:yi,iconName:Ti}),"number"==typeof Qn&&(vn.unicodes[Qn.toString(16)]={prefix:yi,iconName:Ti}),vn},{names:{},unicodes:{}});Pc=tn.names,al=tn.unicodes,Br=Al(Lt.styleDefault,{family:Lt.familyDefault})};function Fs(Nt,ce){return(Gr[Nt]||{})[ce]}function hr(Nt,ce){return(Sc[Nt]||{})[ce]}function iu(Nt){return Pc[Nt]||{prefix:null,iconName:null}}function vc(){return Br}function Al(Nt){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Me=ce.family,tn=void 0===Me?Ke:Me,vn=kt[tn][Nt],Gn=Gt[tn][Nt]||Gt[tn][vn],Qn=Nt in fr.styles?Nt:null;return Gn||Qn||null}(function Ot(Nt){wt.push(Nt)})(function(Nt){Br=Al(Nt.styleDefault,{family:Lt.familyDefault})}),Qr();var Oc=(k(ar={},Ke,Object.keys(oe[Ke])),k(ar,ne,Object.keys(oe[ne])),ar);function Vs(Nt){var ce,Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},tn=Me.skipLookups,vn=void 0!==tn&&tn,Gn=(k(ce={},Ke,"".concat(Lt.cssPrefix,"-").concat(Ke)),k(ce,ne,"".concat(Lt.cssPrefix,"-").concat(ne)),ce),Qn=null,yi=Ke;(Nt.includes(Gn[Ke])||Nt.some(function(bo){return Oc[Ke].includes(bo)}))&&(yi=Ke),(Nt.includes(Gn[ne])||Nt.some(function(bo){return Oc[ne].includes(bo)}))&&(yi=ne);var Ti=Nt.reduce(function(bo,xo){var yo=xl(Lt.cssPrefix,xo);if(Er[xo]?(xo=dr[yi].includes(xo)?Ce[yi][xo]:xo,Qn=xo,bo.prefix=xo):Ns[yi].indexOf(xo)>-1?(Qn=xo,bo.prefix=Al(xo,{family:yi})):yo?bo.iconName=yo:xo!==Lt.replacementClass&&xo!==Gn[Ke]&&xo!==Gn[ne]&&bo.rest.push(xo),!vn&&bo.prefix&&bo.iconName){var ga="fa"===Qn?iu(bo.iconName):{},ra=hr(bo.prefix,bo.iconName);ga.prefix&&(Qn=null),bo.iconName=ga.iconName||ra||bo.iconName,bo.prefix=ga.prefix||bo.prefix,"far"===bo.prefix&&!Er.far&&Er.fas&&!Lt.autoFetchSvg&&(bo.prefix="fas")}return bo},{prefix:null,iconName:null,rest:[]});return(Nt.includes("fa-brands")||Nt.includes("fab"))&&(Ti.prefix="fab"),(Nt.includes("fa-duotone")||Nt.includes("fad"))&&(Ti.prefix="fad"),!Ti.prefix&&yi===ne&&(Er.fass||Lt.autoFetchSvg)&&(Ti.prefix="fass",Ti.iconName=hr(Ti.prefix,Ti.iconName)||Ti.iconName),("fa"===Ti.prefix||"fa"===Qn)&&(Ti.prefix=vc()||"fas"),Ti}var Bc=function(){function Nt(){(function A(Nt,ce){if(!(Nt instanceof ce))throw new TypeError("Cannot call a class as a function")})(this,Nt),this.definitions={}}return function U(Nt,ce,Me){ce&&C(Nt.prototype,ce),Me&&C(Nt,Me),Object.defineProperty(Nt,"prototype",{writable:!1})}(Nt,[{key:"add",value:function(){for(var Me=this,tn=arguments.length,vn=new Array(tn),Gn=0;Gn0&&xo.forEach(function(yo){"string"==typeof yo&&(Me[yi][yo]=bo)}),Me[yi][Ti]=bo}),Me}}]),Nt}(),Vc=[],js={},yl={},md=Object.keys(yl);function Js(Nt,ce){for(var Me=arguments.length,tn=new Array(Me>2?Me-2:0),vn=2;vn1?ce-1:0),tn=1;tn0&&void 0!==arguments[0]?arguments[0]:{};return qe?(Tl("beforeI2svg",ce),Gs("pseudoElements2svg",ce),Gs("i2svg",ce)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=ce.autoReplaceSvgRoot;!1===Lt.autoReplaceSvg&&(Lt.autoReplaceSvg=!0),Lt.observeMutations=!0,ke(function(){rr({autoReplaceSvgRoot:Me}),Tl("watch",ce)})}},qo={noAuto:function(){Lt.autoReplaceSvg=!1,Lt.observeMutations=!1,Tl("noAuto")},config:Lt,dom:ou,parse:{icon:function(ce){if(null===ce)return null;if("object"===T(ce)&&ce.prefix&&ce.iconName)return{prefix:ce.prefix,iconName:hr(ce.prefix,ce.iconName)||ce.iconName};if(Array.isArray(ce)&&2===ce.length){var Me=0===ce[1].indexOf("fa-")?ce[1].slice(3):ce[1],tn=Al(ce[0]);return{prefix:tn,iconName:hr(tn,Me)||Me}}if("string"==typeof ce&&(ce.indexOf("".concat(Lt.cssPrefix,"-"))>-1||ce.match(Ee))){var vn=Vs(ce.split(" "),{skipLookups:!0});return{prefix:vn.prefix||vc(),iconName:hr(vn.prefix,vn.iconName)||vn.iconName}}if("string"==typeof ce){var Gn=vc();return{prefix:Gn,iconName:hr(Gn,ce)||ce}}}},library:ks,findIconDefinition:jc,toHtml:dn},rr=function(){var ce=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},Me=ce.autoReplaceSvgRoot,tn=void 0===Me?Jt:Me;(Object.keys(fr.styles).length>0||Lt.autoFetchSvg)&&qe&&Lt.autoReplaceSvg&&qo.dom.i2svg({node:tn})};function cc(Nt,ce){return Object.defineProperty(Nt,"abstract",{get:ce}),Object.defineProperty(Nt,"html",{get:function(){return Nt.abstract.map(function(tn){return dn(tn)})}}),Object.defineProperty(Nt,"node",{get:function(){if(qe){var tn=Jt.createElement("div");return tn.innerHTML=Nt.html,tn.children}}}),Nt}function xc(Nt){var ce=Nt.icons,Me=ce.main,tn=ce.mask,vn=Nt.prefix,Gn=Nt.iconName,Qn=Nt.transform,yi=Nt.symbol,Ti=Nt.title,bo=Nt.maskId,xo=Nt.titleId,yo=Nt.extra,ga=Nt.watchable,ra=void 0!==ga&&ga,fa=tn.found?tn:Me,es=fa.width,Hs=fa.height,ns="fak"===vn,is=[Lt.replacementClass,Gn?"".concat(Lt.cssPrefix,"-").concat(Gn):""].filter(function(cr){return-1===yo.classes.indexOf(cr)}).filter(function(cr){return""!==cr||!!cr}).concat(yo.classes).join(" "),ds={children:[],attributes:v(v({},yo.attributes),{},{"data-prefix":vn,"data-icon":Gn,class:is,role:yo.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(es," ").concat(Hs)})},Hr=ns&&!~yo.classes.indexOf("fa-fw")?{width:"".concat(es/Hs*16*.0625,"em")}:{};ra&&(ds.attributes[_n]=""),Ti&&(ds.children.push({tag:"title",attributes:{id:ds.attributes["aria-labelledby"]||"title-".concat(xo||he())},children:[Ti]}),delete ds.attributes.title);var Xs=v(v({},ds),{},{prefix:vn,iconName:Gn,main:Me,mask:tn,maskId:bo,transform:Qn,symbol:yi,styles:v(v({},Hr),yo.styles)}),Nc=tn.found&&Me.found?Gs("generateAbstractMask",Xs)||{children:[],attributes:{}}:Gs("generateAbstractIcon",Xs)||{children:[],attributes:{}},Rd=Nc.attributes;return Xs.children=Nc.children,Xs.attributes=Rd,yi?function Yl(Nt){var Me=Nt.iconName,tn=Nt.children,vn=Nt.attributes,Gn=Nt.symbol,Qn=!0===Gn?"".concat(Nt.prefix,"-").concat(Lt.cssPrefix,"-").concat(Me):Gn;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:v(v({},vn),{},{id:Qn}),children:tn}]}]}(Xs):function qu(Nt){var ce=Nt.children,Me=Nt.main,tn=Nt.mask,vn=Nt.attributes,Gn=Nt.styles,Qn=Nt.transform;if(mn(Qn)&&Me.found&&!tn.found){var bo={x:Me.width/Me.height/2,y:.5};vn.style=_o(v(v({},Gn),{},{"transform-origin":"".concat(bo.x+Qn.x/16,"em ").concat(bo.y+Qn.y/16,"em")}))}return[{tag:"svg",attributes:vn,children:ce}]}(Xs)}function wl(Nt){var ce=Nt.content,Me=Nt.width,tn=Nt.height,vn=Nt.transform,Gn=Nt.title,Qn=Nt.extra,yi=Nt.watchable,Ti=void 0!==yi&&yi,bo=v(v(v({},Qn.attributes),Gn?{title:Gn}:{}),{},{class:Qn.classes.join(" ")});Ti&&(bo[_n]="");var xo=v({},Qn.styles);mn(vn)&&(xo.transform=function sn(Nt){var ce=Nt.transform,Me=Nt.width,vn=Nt.height,Gn=void 0===vn?16:vn,Qn=Nt.startCentered,yi=void 0!==Qn&&Qn,Ti="";return Ti+=yi&&$e?"translate(".concat(ce.x/16-(void 0===Me?16:Me)/2,"em, ").concat(ce.y/16-Gn/2,"em) "):yi?"translate(calc(-50% + ".concat(ce.x/16,"em), calc(-50% + ").concat(ce.y/16,"em)) "):"translate(".concat(ce.x/16,"em, ").concat(ce.y/16,"em) "),(Ti+="scale(".concat(ce.size/16*(ce.flipX?-1:1),", ").concat(ce.size/16*(ce.flipY?-1:1),") "))+"rotate(".concat(ce.rotate,"deg) ")}({transform:vn,startCentered:!0,width:Me,height:tn}),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:[ce]}),Gn&&ga.push({tag:"span",attributes:{class:"sr-only"},children:[Gn]}),ga}function Ds(Nt){var ce=Nt.content,Me=Nt.title,tn=Nt.extra,vn=v(v(v({},tn.attributes),Me?{title:Me}:{}),{},{class:tn.classes.join(" ")}),Gn=_o(tn.styles);Gn.length>0&&(vn.style=Gn);var Qn=[];return Qn.push({tag:"span",attributes:vn,children:[ce]}),Me&&Qn.push({tag:"span",attributes:{class:"sr-only"},children:[Me]}),Qn}var Jc=fr.styles;function bu(Nt){var ce=Nt[0],Me=Nt[1],Gn=I(Nt.slice(4),1)[0];return{found:!0,width:ce,height:Me,icon:Array.isArray(Gn)?{tag:"g",attributes:{class:"".concat(Lt.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(Lt.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:Gn[0]}},{tag:"path",attributes:{class:"".concat(Lt.cssPrefix,"-").concat("primary"),fill:"currentColor",d:Gn[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:Gn}}}}var Dr={found:!1,width:512,height:512};function Wa(Nt,ce){var Me=ce;return"fa"===ce&&null!==Lt.styleDefault&&(ce=vc()),new Promise(function(tn,vn){if(Gs("missingIconAbstract"),"fa"===Me){var Qn=iu(Nt)||{};Nt=Qn.iconName||Nt,ce=Qn.prefix||ce}if(Nt&&ce&&Jc[ce]&&Jc[ce][Nt])return tn(bu(Jc[ce][Nt]));(function Cc(Nt,ce){!ri&&!Lt.showMissingIcons&&Nt&&console.error('Icon with name "'.concat(Nt,'" and prefix "').concat(ce,'" is missing.'))})(Nt,ce),tn(v(v({},Dr),{},{icon:Lt.showMissingIcons&&Nt&&Gs("missingIconAbstract")||{}}))})}var pr=function(){},Gc=Lt.measurePerformance&&xe&&xe.mark&&xe.measure?xe:{mark:pr,measure:pr},xs='FA "6.2.1"',Bl_begin=function(ce){return Gc.mark("".concat(xs," ").concat(ce," begins")),function(){return function(ce){Gc.mark("".concat(xs," ").concat(ce," ends")),Gc.measure("".concat(xs," ").concat(ce),"".concat(xs," ").concat(ce," begins"),"".concat(xs," ").concat(ce," ends"))}(ce)}},Ps=function(){};function qs(Nt){return"string"==typeof(Nt.getAttribute?Nt.getAttribute(_n):null)}function Qs(Nt){return Jt.createElementNS("http://www.w3.org/2000/svg",Nt)}function lc(Nt){return Jt.createElement(Nt)}function Ws(Nt){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Me=ce.ceFn,tn=void 0===Me?"svg"===Nt.tag?Qs:lc:Me;if("string"==typeof Nt)return Jt.createTextNode(Nt);var vn=tn(Nt.tag);Object.keys(Nt.attributes||[]).forEach(function(Qn){vn.setAttribute(Qn,Nt.attributes[Qn])});var Gn=Nt.children||[];return Gn.forEach(function(Qn){vn.appendChild(Ws(Qn,{ceFn:tn}))}),vn}var aa={replace:function(ce){var Me=ce[0];if(Me.parentNode)if(ce[1].forEach(function(vn){Me.parentNode.insertBefore(Ws(vn),Me)}),null===Me.getAttribute(_n)&&Lt.keepOriginalSource){var tn=Jt.createComment(function Nr(Nt){var ce=" ".concat(Nt.outerHTML," ");return"".concat(ce,"Font Awesome fontawesome.com ")}(Me));Me.parentNode.replaceChild(tn,Me)}else Me.remove()},nest:function(ce){var Me=ce[0],tn=ce[1];if(~En(Me).indexOf(Lt.replacementClass))return aa.replace(ce);var vn=new RegExp("".concat(Lt.cssPrefix,"-.*"));if(delete tn[0].attributes.id,tn[0].attributes.class){var Gn=tn[0].attributes.class.split(" ").reduce(function(yi,Ti){return Ti===Lt.replacementClass||Ti.match(vn)?yi.toSvg.push(Ti):yi.toNode.push(Ti),yi},{toNode:[],toSvg:[]});tn[0].attributes.class=Gn.toSvg.join(" "),0===Gn.toNode.length?Me.removeAttribute("class"):Me.setAttribute("class",Gn.toNode.join(" "))}var Qn=tn.map(function(yi){return dn(yi)}).join("\n");Me.setAttribute(_n,""),Me.innerHTML=Qn}};function uc(Nt){Nt()}function vr(Nt,ce){var Me="function"==typeof ce?ce:Ps;if(0===Nt.length)Me();else{var tn=uc;"async"===Lt.mutateApproach&&(tn=se.requestAnimationFrame||uc),tn(function(){var vn=function Rs(){return!0===Lt.autoReplaceSvg?aa.replace:aa[Lt.autoReplaceSvg]||aa.replace}(),Gn=Bl_begin("mutate");Nt.map(vn),Gn(),Me()})}}var Vr=!1;function Qc(){Vr=!0}function rl(){Vr=!1}var yc=null;function qd(Nt){if(ve&&Lt.observeMutations){var ce=Nt.treeCallback,Me=void 0===ce?Ps:ce,tn=Nt.nodeCallback,vn=void 0===tn?Ps:tn,Gn=Nt.pseudoElementsCallback,Qn=void 0===Gn?Ps:Gn,yi=Nt.observeMutationsRoot,Ti=void 0===yi?Jt:yi;yc=new ve(function(bo){if(!Vr){var xo=vc();Re(bo).forEach(function(yo){if("childList"===yo.type&&yo.addedNodes.length>0&&!qs(yo.addedNodes[0])&&(Lt.searchPseudoElements&&Qn(yo.target),Me(yo.target)),"attributes"===yo.type&&yo.target.parentNode&&Lt.searchPseudoElements&&Qn(yo.target.parentNode),"attributes"===yo.type&&qs(yo.target)&&~fi.indexOf(yo.attributeName))if("class"===yo.attributeName&&function Cs(Nt){var ce=Nt.getAttribute?Nt.getAttribute(Ue):null,Me=Nt.getAttribute?Nt.getAttribute(un):null;return ce&&Me}(yo.target)){var ga=Vs(En(yo.target)),fa=ga.iconName;yo.target.setAttribute(Ue,ga.prefix||xo),fa&&yo.target.setAttribute(un,fa)}else(function us(Nt){return Nt&&Nt.classList&&Nt.classList.contains&&Nt.classList.contains(Lt.replacementClass)})(yo.target)&&vn(yo.target)})}}),qe&&yc.observe(Ti,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Bi(Nt){var ce=Nt.getAttribute("style"),Me=[];return ce&&(Me=ce.split(";").reduce(function(tn,vn){var Gn=vn.split(":"),Qn=Gn[0],yi=Gn.slice(1);return Qn&&yi.length>0&&(tn[Qn]=yi.join(":").trim()),tn},{})),Me}function Pa(Nt){var ce=Nt.getAttribute("data-prefix"),Me=Nt.getAttribute("data-icon"),tn=void 0!==Nt.innerText?Nt.innerText.trim():"",vn=Vs(En(Nt));return vn.prefix||(vn.prefix=vc()),ce&&Me&&(vn.prefix=ce,vn.iconName=Me),vn.iconName&&vn.prefix||(vn.prefix&&tn.length>0&&(vn.iconName=function _1(Nt,ce){return(Ir[Nt]||{})[ce]}(vn.prefix,Nt.innerText)||Fs(vn.prefix,Be(Nt.innerText))),!vn.iconName&&Lt.autoFetchSvg&&Nt.firstChild&&Nt.firstChild.nodeType===Node.TEXT_NODE&&(vn.iconName=Nt.firstChild.data)),vn}function xu(Nt){var ce=Re(Nt.attributes).reduce(function(vn,Gn){return"class"!==vn.name&&"style"!==vn.name&&(vn[Gn.name]=Gn.value),vn},{}),Me=Nt.getAttribute("title"),tn=Nt.getAttribute("data-fa-title-id");return Lt.autoA11y&&(Me?ce["aria-labelledby"]="".concat(Lt.replacementClass,"-title-").concat(tn||he()):(ce["aria-hidden"]="true",ce.focusable="false")),ce}function Pr(Nt){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},Me=Pa(Nt),tn=Me.iconName,vn=Me.prefix,Gn=Me.rest,Qn=xu(Nt),yi=Js("parseNodeAttributes",{},Nt),Ti=ce.styleParser?Bi(Nt):[];return v({iconName:tn,title:Nt.getAttribute("title"),titleId:Nt.getAttribute("data-fa-title-id"),prefix:vn,transform:Xe,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:Gn,styles:Ti,attributes:Qn}},yi)}var pe=fr.styles;function ee(Nt){var ce="nest"===Lt.autoReplaceSvg?Pr(Nt,{styleParser:!1}):Pr(Nt);return~ce.extra.classes.indexOf(Pn)?Gs("generateLayersText",Nt,ce):Gs("generateSvgReplacementMutation",Nt,ce)}var qt=new Set;function rt(Nt){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!qe)return Promise.resolve();var Me=Jt.documentElement.classList,tn=function(yo){return Me.add("".concat(Mn,"-").concat(yo))},vn=function(yo){return Me.remove("".concat(Mn,"-").concat(yo))},Gn=Lt.autoFetchSvg?qt:ct.map(function(xo){return"fa-".concat(xo)}).concat(Object.keys(pe));Gn.includes("fa")||Gn.push("fa");var Qn=[".".concat(Pn,":not([").concat(_n,"])")].concat(Gn.map(function(xo){return".".concat(xo,":not([").concat(_n,"])")})).join(", ");if(0===Qn.length)return Promise.resolve();var yi=[];try{yi=Re(Nt.querySelectorAll(Qn))}catch{}if(!(yi.length>0))return Promise.resolve();tn("pending"),vn("complete");var Ti=Bl_begin("onTree"),bo=yi.reduce(function(xo,yo){try{var ga=ee(yo);ga&&xo.push(ga)}catch(ra){ri||"MissingIcon"===ra.name&&console.error(ra)}return xo},[]);return new Promise(function(xo,yo){Promise.all(bo).then(function(ga){vr(ga,function(){tn("active"),tn("complete"),vn("pending"),"function"==typeof ce&&ce(),Ti(),xo()})}).catch(function(ga){Ti(),yo(ga)})})}function ki(Nt){var ce=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ee(Nt).then(function(Me){Me&&vr([Me],ce)})}ct.map(function(Nt){qt.add("fa-".concat(Nt))}),Object.keys(kt[Ke]).map(qt.add.bind(qt)),Object.keys(kt[ne]).map(qt.add.bind(qt)),qt=z(qt);var La=function(ce){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},tn=Me.transform,vn=void 0===tn?Xe:tn,Gn=Me.symbol,Qn=void 0!==Gn&&Gn,yi=Me.mask,Ti=void 0===yi?null:yi,bo=Me.maskId,xo=void 0===bo?null:bo,yo=Me.title,ga=void 0===yo?null:yo,ra=Me.titleId,fa=void 0===ra?null:ra,es=Me.classes,Hs=void 0===es?[]:es,ns=Me.attributes,is=void 0===ns?{}:ns,ds=Me.styles,Hr=void 0===ds?{}:ds;if(ce){var Xs=ce.prefix,Nc=ce.iconName,os=ce.icon;return cc(v({type:"icon"},ce),function(){return Tl("beforeDOMElementCreation",{iconDefinition:ce,params:Me}),Lt.autoA11y&&(ga?is["aria-labelledby"]="".concat(Lt.replacementClass,"-title-").concat(fa||he()):(is["aria-hidden"]="true",is.focusable="false")),xc({icons:{main:bu(os),mask:Ti?bu(Ti.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Xs,iconName:Nc,transform:v(v({},Xe),vn),symbol:Qn,title:ga,maskId:xo,titleId:fa,extra:{attributes:is,styles:Hr,classes:Hs}})})}},Wc={mixout:function(){return{icon:(Nt=La,function(ce){var Me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},tn=(ce||{}).icon?ce:jc(ce||{}),vn=Me.mask;return vn&&(vn=(vn||{}).icon?vn:jc(vn||{})),Nt(tn,v(v({},Me),{},{mask:vn}))})};var Nt},hooks:function(){return{mutationObserverCallbacks:function(Me){return Me.treeCallback=rt,Me.nodeCallback=ki,Me}}},provides:function(ce){ce.i2svg=function(Me){var tn=Me.node,Gn=Me.callback;return rt(void 0===tn?Jt:tn,void 0===Gn?function(){}:Gn)},ce.generateSvgReplacementMutation=function(Me,tn){var vn=tn.iconName,Gn=tn.title,Qn=tn.titleId,yi=tn.prefix,Ti=tn.transform,bo=tn.symbol,xo=tn.mask,yo=tn.maskId,ga=tn.extra;return new Promise(function(ra,fa){Promise.all([Wa(vn,yi),xo.iconName?Wa(xo.iconName,xo.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(es){var Hs=I(es,2);ra([Me,xc({icons:{main:Hs[0],mask:Hs[1]},prefix:yi,iconName:vn,transform:Ti,symbol:bo,maskId:yo,title:Gn,titleId:Qn,extra:ga,watchable:!0})])}).catch(fa)})},ce.generateAbstractIcon=function(Me){var bo,tn=Me.children,vn=Me.attributes,Gn=Me.main,Qn=Me.transform,Ti=_o(Me.styles);return Ti.length>0&&(vn.style=Ti),mn(Qn)&&(bo=Gs("generateAbstractTransformGrouping",{main:Gn,transform:Qn,containerWidth:Gn.width,iconWidth:Gn.width})),tn.push(bo||Gn.icon),{children:tn,attributes:vn}}}},Ec={mixout:function(){return{layer:function(Me){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},vn=tn.classes,Gn=void 0===vn?[]:vn;return cc({type:"layer"},function(){Tl("beforeDOMElementCreation",{assembler:Me,params:tn});var Qn=[];return Me(function(yi){Array.isArray(yi)?yi.map(function(Ti){Qn=Qn.concat(Ti.abstract)}):Qn=Qn.concat(yi.abstract)}),[{tag:"span",attributes:{class:["".concat(Lt.cssPrefix,"-layers")].concat(z(Gn)).join(" ")},children:Qn}]})}}}},Fr={mixout:function(){return{counter:function(Me){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},vn=tn.title,Gn=void 0===vn?null:vn,Qn=tn.classes,yi=void 0===Qn?[]:Qn,Ti=tn.attributes,bo=void 0===Ti?{}:Ti,xo=tn.styles,yo=void 0===xo?{}:xo;return cc({type:"counter",content:Me},function(){return Tl("beforeDOMElementCreation",{content:Me,params:tn}),Ds({content:Me.toString(),title:Gn,extra:{attributes:bo,styles:yo,classes:["".concat(Lt.cssPrefix,"-layers-counter")].concat(z(yi))}})})}}}},qr={mixout:function(){return{text:function(Me){var tn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},vn=tn.transform,Gn=void 0===vn?Xe:vn,Qn=tn.title,yi=void 0===Qn?null:Qn,Ti=tn.classes,bo=void 0===Ti?[]:Ti,xo=tn.attributes,yo=void 0===xo?{}:xo,ga=tn.styles,ra=void 0===ga?{}:ga;return cc({type:"text",content:Me},function(){return Tl("beforeDOMElementCreation",{content:Me,params:tn}),wl({content:Me,transform:v(v({},Xe),Gn),title:yi,extra:{attributes:yo,styles:ra,classes:["".concat(Lt.cssPrefix,"-layers-text")].concat(z(bo))}})})}}},provides:function(ce){ce.generateLayersText=function(Me,tn){var vn=tn.title,Gn=tn.transform,Qn=tn.extra,yi=null,Ti=null;if($e){var bo=parseInt(getComputedStyle(Me).fontSize,10),xo=Me.getBoundingClientRect();yi=xo.width/bo,Ti=xo.height/bo}return Lt.autoA11y&&!vn&&(Qn.attributes["aria-hidden"]="true"),Promise.resolve([Me,wl({content:Me.innerHTML,width:yi,height:Ti,transform:Gn,title:vn,extra:Qn,watchable:!0})])}}},Ru=new RegExp('"',"ug"),er=[1105920,1112319];function au(Nt,ce){var Me="".concat("data-fa-pseudo-element-pending").concat(ce.replace(":","-"));return new Promise(function(tn,vn){if(null!==Nt.getAttribute(Me))return tn();var Qn=Re(Nt.children).filter(function(os){return os.getAttribute(ye)===ce})[0],yi=se.getComputedStyle(Nt,ce),Ti=yi.getPropertyValue("font-family").match(Ln),bo=yi.getPropertyValue("font-weight"),xo=yi.getPropertyValue("content");if(Qn&&!Ti)return Nt.removeChild(Qn),tn();if(Ti&&"none"!==xo&&""!==xo){var yo=yi.getPropertyValue("content"),ga=~["Sharp"].indexOf(Ti[2])?ne:Ke,ra=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(Ti[2])?Gt[ga][Ti[2].toLowerCase()]:mi[ga][bo],fa=function Ul(Nt){var ce=Nt.replace(Ru,""),Me=function Rn(Nt,ce){var vn,Me=Nt.length,tn=Nt.charCodeAt(ce);return tn>=55296&&tn<=56319&&Me>ce+1&&(vn=Nt.charCodeAt(ce+1))>=56320&&vn<=57343?1024*(tn-55296)+vn-56320+65536:tn}(ce,0),tn=Me>=er[0]&&Me<=er[1],vn=2===ce.length&&ce[0]===ce[1];return{value:Be(vn?ce[0]:ce),isSecondary:tn||vn}}(yo),es=fa.value,Hs=fa.isSecondary,ns=Ti[0].startsWith("FontAwesome"),is=Fs(ra,es),ds=is;if(ns){var Hr=function f1(Nt){var ce=al[Nt],Me=Fs("fas",Nt);return ce||(Me?{prefix:"fas",iconName:Me}:null)||{prefix:null,iconName:null}}(es);Hr.iconName&&Hr.prefix&&(is=Hr.iconName,ra=Hr.prefix)}if(!is||Hs||Qn&&Qn.getAttribute(Ue)===ra&&Qn.getAttribute(un)===ds)tn();else{Nt.setAttribute(Me,ds),Qn&&Nt.removeChild(Qn);var Xs=function $s(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Xe,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),Nc=Xs.extra;Nc.attributes[ye]=ce,Wa(is,ra).then(function(os){var Rd=xc(v(v({},Xs),{},{icons:{main:os,mask:{prefix:null,iconName:null,rest:[]}},prefix:ra,iconName:ds,extra:Nc,watchable:!0})),cr=Jt.createElement("svg");"::before"===ce?Nt.insertBefore(cr,Nt.firstChild):Nt.appendChild(cr),cr.outerHTML=Rd.map(function(lr){return dn(lr)}).join("\n"),Nt.removeAttribute(Me),tn()}).catch(vn)}}else tn()})}function Hu(Nt){return Promise.all([au(Nt,"::before"),au(Nt,"::after")])}function Vp(Nt){return!(Nt.parentNode===document.head||~bi.indexOf(Nt.tagName.toUpperCase())||Nt.getAttribute(ye)||Nt.parentNode&&"svg"===Nt.parentNode.tagName)}function h1(Nt){if(qe)return new Promise(function(ce,Me){var tn=Re(Nt.querySelectorAll("*")).filter(Vp).map(Hu),vn=Bl_begin("searchPseudoElements");Qc(),Promise.all(tn).then(function(){vn(),rl(),ce()}).catch(function(){vn(),rl(),Me()})})}var Ic=!1,Zl=function(ce){return ce.toLowerCase().split(" ").reduce(function(tn,vn){var Gn=vn.toLowerCase().split("-"),Qn=Gn[0],yi=Gn.slice(1).join("-");if(Qn&&"h"===yi)return tn.flipX=!0,tn;if(Qn&&"v"===yi)return tn.flipY=!0,tn;if(yi=parseFloat(yi),isNaN(yi))return tn;switch(Qn){case"grow":tn.size=tn.size+yi;break;case"shrink":tn.size=tn.size-yi;break;case"left":tn.x=tn.x-yi;break;case"right":tn.x=tn.x+yi;break;case"up":tn.y=tn.y-yi;break;case"down":tn.y=tn.y+yi;break;case"rotate":tn.rotate=tn.rotate+yi}return tn},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Ml={x:0,y:0,width:"100%",height:"100%"};function cl(Nt){var ce=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Nt.attributes&&(Nt.attributes.fill||ce)&&(Nt.attributes.fill="black"),Nt}!function Rl(Nt,ce){var Me=ce.mixoutsTo;Vc=Nt,js={},Object.keys(yl).forEach(function(tn){-1===md.indexOf(tn)&&delete yl[tn]}),Vc.forEach(function(tn){var vn=tn.mixout?tn.mixout():{};if(Object.keys(vn).forEach(function(Qn){"function"==typeof vn[Qn]&&(Me[Qn]=vn[Qn]),"object"===T(vn[Qn])&&Object.keys(vn[Qn]).forEach(function(yi){Me[Qn]||(Me[Qn]={}),Me[Qn][yi]=vn[Qn][yi]})}),tn.hooks){var Gn=tn.hooks();Object.keys(Gn).forEach(function(Qn){js[Qn]||(js[Qn]=[]),js[Qn].push(Gn[Qn])})}tn.provides&&tn.provides(yl)})}([ca,Wc,Ec,Fr,qr,{hooks:function(){return{mutationObserverCallbacks:function(Me){return Me.pseudoElementsCallback=h1,Me}}},provides:function(ce){ce.pseudoElements2svg=function(Me){var tn=Me.node;Lt.searchPseudoElements&&h1(void 0===tn?Jt:tn)}}},{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(Me){var tn=Me.observeMutationsRoot;Ic?rl():qd(Js("mutationObserverCallbacks",{observeMutationsRoot:tn}))}}}},{mixout:function(){return{parse:{transform:function(Me){return Zl(Me)}}}},hooks:function(){return{parseNodeAttributes:function(Me,tn){var vn=tn.getAttribute("data-fa-transform");return vn&&(Me.transform=Zl(vn)),Me}}},provides:function(ce){ce.generateAbstractTransformGrouping=function(Me){var tn=Me.main,vn=Me.transform,Qn=Me.iconWidth,yi={transform:"translate(".concat(Me.containerWidth/2," 256)")},Ti="translate(".concat(32*vn.x,", ").concat(32*vn.y,") "),bo="scale(".concat(vn.size/16*(vn.flipX?-1:1),", ").concat(vn.size/16*(vn.flipY?-1:1),") "),xo="rotate(".concat(vn.rotate," 0 0)"),ra={outer:yi,inner:{transform:"".concat(Ti," ").concat(bo," ").concat(xo)},path:{transform:"translate(".concat(Qn/2*-1," -256)")}};return{tag:"g",attributes:v({},ra.outer),children:[{tag:"g",attributes:v({},ra.inner),children:[{tag:tn.icon.tag,children:tn.icon.children,attributes:v(v({},tn.icon.attributes),ra.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(Me,tn){var vn=tn.getAttribute("data-fa-mask"),Gn=vn?Vs(vn.split(" ").map(function(Qn){return Qn.trim()})):{prefix:null,iconName:null,rest:[]};return Gn.prefix||(Gn.prefix=vc()),Me.mask=Gn,Me.maskId=tn.getAttribute("data-fa-mask-id"),Me}}},provides:function(ce){ce.generateAbstractMask=function(Me){var Nt,tn=Me.children,vn=Me.attributes,Gn=Me.main,Qn=Me.mask,yi=Me.maskId,xo=Gn.icon,ga=Qn.icon,ra=function An(Nt){var ce=Nt.transform,tn=Nt.iconWidth,vn={transform:"translate(".concat(Nt.containerWidth/2," 256)")},Gn="translate(".concat(32*ce.x,", ").concat(32*ce.y,") "),Qn="scale(".concat(ce.size/16*(ce.flipX?-1:1),", ").concat(ce.size/16*(ce.flipY?-1:1),") "),yi="rotate(".concat(ce.rotate," 0 0)");return{outer:vn,inner:{transform:"".concat(Gn," ").concat(Qn," ").concat(yi)},path:{transform:"translate(".concat(tn/2*-1," -256)")}}}({transform:Me.transform,containerWidth:Qn.width,iconWidth:Gn.width}),fa={tag:"rect",attributes:v(v({},Ml),{},{fill:"white"})},es=xo.children?{children:xo.children.map(cl)}:{},Hs={tag:"g",attributes:v({},ra.inner),children:[cl(v({tag:xo.tag,attributes:v(v({},xo.attributes),ra.path)},es))]},ns={tag:"g",attributes:v({},ra.outer),children:[Hs]},is="mask-".concat(yi||he()),ds="clip-".concat(yi||he()),Hr={tag:"mask",attributes:v(v({},Ml),{},{id:is,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[fa,ns]},Xs={tag:"defs",children:[{tag:"clipPath",attributes:{id:ds},children:(Nt=ga,"g"===Nt.tag?Nt.children:[Nt])},Hr]};return tn.push(Xs,{tag:"rect",attributes:v({fill:"currentColor","clip-path":"url(#".concat(ds,")"),mask:"url(#".concat(is,")")},Ml)}),{children:tn,attributes:vn}}}},{provides:function(ce){var Me=!1;se.matchMedia&&(Me=se.matchMedia("(prefers-reduced-motion: reduce)").matches),ce.missingIconAbstract=function(){var tn=[],vn={fill:"currentColor"},Gn={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};tn.push({tag:"path",attributes:v(v({},vn),{},{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 Qn=v(v({},Gn),{},{attributeName:"opacity"}),yi={tag:"circle",attributes:v(v({},vn),{},{cx:"256",cy:"364",r:"28"}),children:[]};return Me||yi.children.push({tag:"animate",attributes:v(v({},Gn),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:v(v({},Qn),{},{values:"1;0;1;1;0;1;"})}),tn.push(yi),tn.push({tag:"path",attributes:v(v({},vn),{},{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:Me?[]:[{tag:"animate",attributes:v(v({},Qn),{},{values:"1;0;0;0;0;1;"})}]}),Me||tn.push({tag:"path",attributes:v(v({},vn),{},{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({},Qn),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:tn}}}},{hooks:function(){return{parseNodeAttributes:function(Me,tn){var vn=tn.getAttribute("data-fa-symbol");return Me.symbol=null!==vn&&(""===vn||vn),Me}}}}],{mixoutsTo:qo});var Ra=qo.parse,g1=qo.icon,Pi=b(11481);const So=["*"],hn=Nt=>{const ce={"fa-spin":Nt.spin,"fa-pulse":Nt.pulse,"fa-fw":Nt.fixedWidth,"fa-border":Nt.border,"fa-inverse":Nt.inverse,"fa-layers-counter":Nt.counter,"fa-flip-horizontal":"horizontal"===Nt.flip||"both"===Nt.flip,"fa-flip-vertical":"vertical"===Nt.flip||"both"===Nt.flip,[`fa-${Nt.size}`]:null!==Nt.size,[`fa-rotate-${Nt.rotate}`]:null!==Nt.rotate,[`fa-pull-${Nt.pull}`]:null!==Nt.pull,[`fa-stack-${Nt.stackItemSize}`]:null!=Nt.stackItemSize};return Object.keys(ce).map(Me=>ce[Me]?Me:null).filter(Me=>Me)};let Au=(()=>{class Nt{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return Nt.\u0275fac=function(Me){return new(Me||Nt)},Nt.\u0275prov=d.Yz7({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Nt})(),Ks=(()=>{class Nt{constructor(){this.definitions={}}addIcons(...Me){for(const tn of Me){tn.prefix in this.definitions||(this.definitions[tn.prefix]={}),this.definitions[tn.prefix][tn.iconName]=tn;for(const vn of tn.icon[2])"string"==typeof vn&&(this.definitions[tn.prefix][vn]=tn)}}addIconPacks(...Me){for(const tn of Me){const vn=Object.keys(tn).map(Gn=>tn[Gn]);this.addIcons(...vn)}}getIconDefinition(Me,tn){return Me in this.definitions&&tn in this.definitions[Me]?this.definitions[Me][tn]:null}}return Nt.\u0275fac=function(Me){return new(Me||Nt)},Nt.\u0275prov=d.Yz7({token:Nt,factory:Nt.\u0275fac,providedIn:"root"}),Nt})(),Xi=(()=>{class Nt{constructor(){this.stackItemSize="1x"}ngOnChanges(Me){if("size"in Me)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 Nt.\u0275fac=function(Me){return new(Me||Nt)},Nt.\u0275dir=d.lG2({type:Nt,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[d.TTD]}),Nt})(),fd=(()=>{class Nt{constructor(Me,tn){this.renderer=Me,this.elementRef=tn}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(Me){"size"in Me&&(null!=Me.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${Me.size.currentValue}`),null!=Me.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${Me.size.previousValue}`))}}return Nt.\u0275fac=function(Me){return new(Me||Nt)(d.Y36(d.Qsj),d.Y36(d.SBq))},Nt.\u0275cmp=d.Xpm({type:Nt,selectors:[["fa-stack"]],inputs:{size:"size"},features:[d.TTD],ngContentSelectors:So,decls:1,vars:0,template:function(Me,tn){1&Me&&(d.F$t(),d.Hsn(0))},encapsulation:2}),Nt})(),ts=(()=>{class Nt{constructor(Me,tn,vn,Gn,Qn){this.sanitizer=Me,this.config=tn,this.iconLibrary=vn,this.stackItem=Gn,this.classes=[],null!=Qn&&null==Gn&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(Me){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let tn=null;if(tn=this.icon??this.config.fallbackIcon,Me){const vn=this.findIconDefinition(tn);if(null!=vn){const Gn=this.buildParams();this.renderIcon(vn,Gn)}}}render(){this.ngOnChanges({})}findIconDefinition(Me){const tn=((Nt,ce)=>(Nt=>void 0!==Nt.prefix&&void 0!==Nt.iconName)(Nt)?Nt:Array.isArray(Nt)&&2===Nt.length?{prefix:Nt[0],iconName:Nt[1]}:"string"==typeof Nt?{prefix:ce,iconName:Nt}:void 0)(Me,this.config.defaultPrefix);return"icon"in tn?tn:this.iconLibrary.getIconDefinition(tn.prefix,tn.iconName)??((Nt=>{throw new Error(`Could not find icon with iconName=${Nt.iconName} and prefix=${Nt.prefix} in the icon library.`)})(tn),null)}buildParams(){const Me={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},tn="string"==typeof this.transform?Ra.transform(this.transform):this.transform;return{title:this.title,transform:tn,classes:[...hn(Me),...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(Me,tn){const vn=g1(Me,tn);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(vn.html.join("\n"))}}return Nt.\u0275fac=function(Me){return new(Me||Nt)(d.Y36(Pi.H7),d.Y36(Au),d.Y36(Ks),d.Y36(Xi,8),d.Y36(fd,8))},Nt.\u0275cmp=d.Xpm({type:Nt,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Me,tn){2&Me&&(d.Ikx("innerHTML",tn.renderedIconHTML,d.oJD),d.uIk("title",tn.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(Me,tn){},encapsulation:2}),Nt})(),On=(()=>{class Nt{}return Nt.\u0275fac=function(Me){return new(Me||Nt)},Nt.\u0275mod=d.oAB({type:Nt}),Nt.\u0275inj=d.cJS({}),Nt})()},33231:(ot,et,b)=>{"use strict";b.d(et,{Co:()=>gn,nu:()=>_n});var d=b(29521),p=b(94650),v=b(24006),T=b(3238),t=b(59549),A=b(84385),C=b(591),U=b(21086),k=b(23426),D=b(8929),P=b(87545),I=b(24850),z=b(1059),G=b(18583),K=b(7625),at=b(72986),lt=b(92198),bt=b(22868),Pt=b(67376),Dt=b(56709),zt=b(51572),Vt=b(4859),nt=b(97392),Tt=b(36895),At=b(10266);const ft=["searchSelectInput"],Et=["innerSelectSearch"];function Bt(Ue,un){if(1&Ue){const Mn=p.EpF();p.TgZ(0,"mat-checkbox",9),p.NdJ("change",function(bi){p.CHM(Mn);const ri=p.oxw();return p.KtG(ri._emitSelectAllBooleanToParent(bi.checked))}),p.qZA()}if(2&Ue){const Mn=p.oxw();p.Q6J("color",null==Mn.matFormField?null:Mn.matFormField.color)("checked",Mn.toggleAllCheckboxChecked)("indeterminate",Mn.toggleAllCheckboxIndeterminate)("matTooltip",Mn.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Mn.toggleAllCheckboxTooltipPosition)}}function It(Ue,un){1&Ue&&p._UZ(0,"mat-spinner",10)}function se(Ue,un){1&Ue&&p.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Jt(Ue,un){if(1&Ue&&(p.TgZ(0,"mat-icon",14),p._uU(1),p.qZA()),2&Ue){const Mn=p.oxw(2);p.Q6J("svgIcon",Mn.closeSvgIcon),p.xp6(1),p.hij(" ",Mn.closeSvgIcon?null:Mn.closeIcon," ")}}function ve(Ue,un){if(1&Ue){const Mn=p.EpF();p.TgZ(0,"button",11),p.NdJ("click",function(){p.CHM(Mn);const bi=p.oxw();return p.KtG(bi._reset(!0))}),p.YNc(1,se,1,0,"ng-content",12),p.YNc(2,Jt,2,2,"ng-template",null,13,p.W1O),p.qZA()}if(2&Ue){const Mn=p.MAs(3),oi=p.oxw();p.xp6(1),p.Q6J("ngIf",oi.clearIcon)("ngIfElse",Mn)}}function xe(Ue,un){1&Ue&&p.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function Oe(Ue,un){if(1&Ue&&p._uU(0),2&Ue){const Mn=p.oxw(2);p.Oqu(Mn.noEntriesFoundLabel)}}function qe(Ue,un){if(1&Ue&&(p.TgZ(0,"div",15),p.YNc(1,xe,1,0,"ng-content",12),p.YNc(2,Oe,1,1,"ng-template",null,16,p.W1O),p.qZA()),2&Ue){const Mn=p.MAs(3),oi=p.oxw();p.xp6(1),p.Q6J("ngIf",oi.noEntriesFound)("ngIfElse",Mn)}}const $e=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Xt=function(Ue,un){return{"mat-select-search-inner-multiple":Ue,"mat-select-search-inner-toggle-all":un}},we=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let ae=(()=>{class Ue{}return Ue.\u0275fac=function(Mn){return new(Mn||Ue)},Ue.\u0275dir=p.lG2({type:Ue,selectors:[["","ngxMatSelectSearchClear",""]]}),Ue})();const Kt=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],de=new p.OlP("mat-selectsearch-default-options");let Pe=(()=>{class Ue{}return Ue.\u0275fac=function(Mn){return new(Mn||Ue)},Ue.\u0275dir=p.lG2({type:Ue,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),Ue})(),_n=(()=>{class Ue{constructor(Mn,oi,bi,ri=null,Ke=null,ne){this.matSelect=Mn,this.changeDetectorRef=oi,this._viewportRuler=bi,this.matOption=ri,this.matFormField=Ke,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=ct=>{},this._options$=new C.X(null),this.optionsList$=this._options$.pipe((0,P.w)(ct=>ct?ct.changes.pipe((0,I.U)(it=>it.toArray()),(0,z.O)(ct.toArray())):(0,U.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,I.U)(ct=>ct?ct.length:0)),this._formControl=new v.NI(""),this._showNoEntriesFound$=(0,k.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,I.U)(([ct,it])=>this.noEntriesFoundLabel&&ct&&it===this.getOptionsLengthOffset())),this._onDestroy=new D.xQ,this.applyDefaultOptions(ne)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Mn){this._options$.next(Mn)}get _options(){return this._options$.getValue()}applyDefaultOptions(Mn){if(Mn)for(const oi of Kt)Mn.hasOwnProperty(oi)&&(this[oi]=Mn[oi])}ngOnInit(){const Mn="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Mn):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Mn]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Mn]=!0):this.matSelect.panelClass=Mn,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,K.R)(this._onDestroy)).subscribe(oi=>{oi?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,at.q)(1)).pipe((0,K.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,K.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let oi=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,K.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const bi=this._options.toArray(),ri=bi[this.getOptionsLengthOffset()],Ke=this.matSelect._keyManager;Ke&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(oi,ri)||!Ke.activeItem||!bi.find(ct=>this.matSelect.compareWith(ct,Ke.activeItem)))&&Ke.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),oi=ri})})}),this._showNoEntriesFound$.pipe((0,K.R)(this._onDestroy)).subscribe(oi=>{this.matOption&&(oi?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,K.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,K.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(Mn){this.toggleAll.emit(Mn)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Mn){(Mn.key&&1===Mn.key.length||Mn.keyCode>=d.A&&Mn.keyCode<=d.Z||Mn.keyCode>=d.xE&&Mn.keyCode<=d.aO||Mn.keyCode===d.L_||this.preventHomeEndKeyPropagation&&(Mn.keyCode===d.Sd||Mn.keyCode===d.uR))&&Mn.stopPropagation(),this.matSelect.multiple&&Mn.key&&Mn.keyCode===d.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Mn.keyCode===d.hY&&this.value&&(this._reset(!0),Mn.stopPropagation())}_handleKeyup(Mn){if(Mn.keyCode===d.LH||Mn.keyCode===d.JH){const oi=this.matSelect._getAriaActiveDescendant(),bi=this._options.toArray().findIndex(ri=>ri.id===oi);-1!==bi&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[bi]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",oi))}}writeValue(Mn){this._lastExternalInputValue=Mn,this._formControl.setValue(Mn),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(Mn){this._formControl.valueChanges.pipe((0,lt.h)(oi=>oi!==this._lastExternalInputValue),(0,bt.b)(()=>this._lastExternalInputValue=void 0),(0,K.R)(this._onDestroy)).subscribe(Mn)}registerOnTouched(Mn){this.onTouched=Mn}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Mn=this.matSelect.panel.nativeElement,oi=Mn.scrollTop;this.searchSelectInput.nativeElement.focus(),Mn.scrollTop=oi}_reset(Mn){this._formControl.setValue(""),Mn&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,K.R)(this._onDestroy)).subscribe(Mn=>{let oi=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Mn||!Array.isArray(Mn))&&(Mn=[]);const bi=this.matSelect.options.map(ri=>ri.value);this.previousSelectedValues.forEach(ri=>{!Mn.some(Ke=>this.matSelect.compareWith(Ke,ri))&&!bi.some(Ke=>this.matSelect.compareWith(Ke,ri))&&(Mn.push(ri),oi=!0)})}this.previousSelectedValues=Mn,oi&&this.matSelect._onChange(Mn)})):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 Mn=this.getMatOptionHeight(),oi=this.matSelect._keyManager.activeItemIndex||0,bi=(0,T.CB)(oi,this.matSelect.options,this.matSelect.optionGroups),ri=(this.matOption?-1:0)+bi+oi,Ke=this.matSelect.panel.nativeElement.scrollTop,ne=this.innerSelectSearch.nativeElement.offsetHeight,ct=Math.floor((256-ne)/Mn),it=Math.round((Ke+ne)/Mn)-1;it>=ri?this.matSelect.panel.nativeElement.scrollTop=ri*Mn:it+ct<=ri&&(this.matSelect.panel.nativeElement.scrollTop=(ri+1)*Mn-(256-ne))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let oi,Mn=this.innerSelectSearch.nativeElement;for(;Mn=Mn.parentElement;)if(Mn.classList.contains("mat-select-panel")){oi=Mn;break}oi&&(this.innerSelectSearch.nativeElement.style.width=oi.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 Ue.\u0275fac=function(Mn){return new(Mn||Ue)(p.Y36(A.gD),p.Y36(p.sBO),p.Y36(Pt.rL),p.Y36(T.ey,8),p.Y36(t.KE,8),p.Y36(de,8))},Ue.\u0275cmp=p.Xpm({type:Ue,selectors:[["ngx-mat-select-search"]],contentQueries:function(Mn,oi,bi){if(1&Mn&&(p.Suo(bi,ae,5),p.Suo(bi,Pe,5)),2&Mn){let ri;p.iGM(ri=p.CRH())&&(oi.clearIcon=ri.first),p.iGM(ri=p.CRH())&&(oi.noEntriesFound=ri.first)}},viewQuery:function(Mn,oi){if(1&Mn&&(p.Gf(ft,7,p.SBq),p.Gf(Et,7,p.SBq)),2&Mn){let bi;p.iGM(bi=p.CRH())&&(oi.searchSelectInput=bi.first),p.iGM(bi=p.CRH())&&(oi.innerSelectSearch=bi.first)}},hostVars:2,hostBindings:function(Mn,oi){2&Mn&&p.ekj("mat-select-search-inside-mat-option",oi.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)(()=>Ue),multi:!0}])],ngContentSelectors:we,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(Mn,oi){1&Mn&&(p.F$t($e),p._UZ(0,"input",0),p.TgZ(1,"div",1,2),p.YNc(3,Bt,1,5,"mat-checkbox",3),p.TgZ(4,"input",4,5),p.NdJ("keydown",function(ri){return oi._handleKeydown(ri)})("keyup",function(ri){return oi._handleKeyup(ri)})("blur",function(){return oi.onBlur()}),p.qZA(),p.YNc(6,It,1,0,"mat-spinner",6),p.YNc(7,ve,4,2,"button",7),p.Hsn(8),p.qZA(),p.YNc(9,qe,4,2,"div",8),p.ALo(10,"async")),2&Mn&&(p.xp6(1),p.Q6J("ngClass",p.WLB(11,Xt,oi.matSelect.multiple,oi._isToggleAllCheckboxVisible())),p.xp6(2),p.Q6J("ngIf",oi._isToggleAllCheckboxVisible()),p.xp6(1),p.Q6J("type",oi.type)("formControl",oi._formControl)("placeholder",oi.placeholderLabel),p.uIk("aria-label",oi.ariaLabel),p.xp6(2),p.Q6J("ngIf",oi.searching),p.xp6(1),p.Q6J("ngIf",!oi.hideClearSearchButton&&oi.value&&!oi.searching),p.xp6(2),p.Q6J("ngIf",p.lcZ(10,9,oi._showNoEntriesFound$)))},dependencies:[Dt.oG,zt.Ou,Vt.lW,nt.Hw,Tt.mk,Tt.O5,At.gM,v.Fj,v.JJ,v.oH,Tt.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}),Ue})(),gn=(()=>{class Ue{}return Ue.\u0275fac=function(Mn){return new(Mn||Ue)},Ue.\u0275mod=p.oAB({type:Ue}),Ue.\u0275inj=p.cJS({imports:[[Tt.ez,v.UX,Vt.ot,Dt.p9,nt.Ps,zt.Cq,At.AV]]}),Ue})()},15861:(ot,et,b)=>{"use strict";function d(v,T,t,A,C,U,k){try{var D=v[U](k),P=D.value}catch(I){return void t(I)}D.done?T(P):Promise.resolve(P).then(A,C)}function p(v){return function(){var T=this,t=arguments;return new Promise(function(A,C){var U=v.apply(T,t);function k(P){d(U,A,C,k,D,"next",P)}function D(P){d(U,A,C,k,D,"throw",P)}k(void 0)})}}b.d(et,{Z:()=>p})}},ot=>{ot(ot.s=19202)}]); \ No newline at end of file