var wZn=Object.defineProperty,PZn=Object.defineProperties,SZn=Object.getOwnPropertyDescriptors,QZe=Object.getOwnPropertySymbols,TZn=Object.prototype.hasOwnProperty,DZn=Object.prototype.propertyIsEnumerable,XZe=(St,q,O)=>q in St?wZn(St,q,{enumerable:!0,configurable:!0,writable:!0,value:O}):St[q]=O,ed=(St,q)=>{for(var O in q||(q={}))TZn.call(q,O)&&XZe(St,O,q[O]);if(QZe)for(var O of QZe(q))DZn.call(q,O)&&XZe(St,O,q[O]);return St},jE=(St,q)=>PZn(St,SZn(q));(self.webpackChunkxpress_frontend=self.webpackChunkxpress_frontend||[]).push([[179],{1223:(St,q)=>{"use strict";q.DF={prefix:"fab",iconName:"facebook-f",icon:[320,512,[],"f39e","M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"]},q.AY=q.DF},5511:(St,q)=>{"use strict";q.DF={prefix:"fab",iconName:"facebook-messenger",icon:[512,512,[],"f39f","M256.55 8C116.52 8 8 110.34 8 248.57c0 72.3 29.71 134.78 78.07 177.94 8.35 7.51 6.63 11.86 8.05 58.23A19.92 19.92 0 0 0 122 502.31c52.91-23.3 53.59-25.14 62.56-22.7C337.85 521.8 504 423.7 504 248.57 504 110.34 396.59 8 256.55 8zm149.24 185.13l-73 115.57a37.37 37.37 0 0 1-53.91 9.93l-58.08-43.47a15 15 0 0 0-18 0l-78.37 59.44c-10.46 7.93-24.16-4.6-17.11-15.67l73-115.57a37.36 37.36 0 0 1 53.91-9.93l58.06 43.46a15 15 0 0 0 18 0l78.41-59.38c10.44-7.98 24.14 4.54 17.09 15.62z"]},q.oJ=q.DF},3165:(St,q)=>{"use strict";q.DF={prefix:"fab",iconName:"google-plus-g",icon:[640,512,[],"f0d5","M386.061 228.496c1.834 9.692 3.143 19.384 3.143 31.956C389.204 370.205 315.599 448 204.8 448c-106.084 0-192-85.915-192-192s85.916-192 192-192c51.864 0 95.083 18.859 128.611 50.292l-52.126 50.03c-14.145-13.621-39.028-29.599-76.485-29.599-65.484 0-118.92 54.221-118.92 121.277 0 67.056 53.436 121.277 118.92 121.277 75.961 0 104.513-54.745 108.965-82.773H204.8v-66.009h181.261zm185.406 6.437V179.2h-56.001v55.733h-55.733v56.001h55.733v55.733h56.001v-55.733H627.2v-56.001h-55.733z"]},q.cu=q.DF},6986:(St,q)=>{"use strict";q.DF={prefix:"fab",iconName:"line",icon:[448,512,[],"f3c0","M272.1 204.2v71.1c0 1.8-1.4 3.2-3.2 3.2h-11.4c-1.1 0-2.1-.6-2.6-1.3l-32.6-44v42.2c0 1.8-1.4 3.2-3.2 3.2h-11.4c-1.8 0-3.2-1.4-3.2-3.2v-71.1c0-1.8 1.4-3.2 3.2-3.2H219c1 0 2.1.5 2.6 1.4l32.6 44v-42.2c0-1.8 1.4-3.2 3.2-3.2h11.4c1.8-.1 3.3 1.4 3.3 3.1zm-82-3.2h-11.4c-1.8 0-3.2 1.4-3.2 3.2v71.1c0 1.8 1.4 3.2 3.2 3.2h11.4c1.8 0 3.2-1.4 3.2-3.2v-71.1c0-1.7-1.4-3.2-3.2-3.2zm-27.5 59.6h-31.1v-56.4c0-1.8-1.4-3.2-3.2-3.2h-11.4c-1.8 0-3.2 1.4-3.2 3.2v71.1c0 .9.3 1.6.9 2.2.6.5 1.3.9 2.2.9h45.7c1.8 0 3.2-1.4 3.2-3.2v-11.4c0-1.7-1.4-3.2-3.1-3.2zM332.1 201h-45.7c-1.7 0-3.2 1.4-3.2 3.2v71.1c0 1.7 1.4 3.2 3.2 3.2h45.7c1.8 0 3.2-1.4 3.2-3.2v-11.4c0-1.8-1.4-3.2-3.2-3.2H301v-12h31.1c1.8 0 3.2-1.4 3.2-3.2V234c0-1.8-1.4-3.2-3.2-3.2H301v-12h31.1c1.8 0 3.2-1.4 3.2-3.2v-11.4c-.1-1.7-1.5-3.2-3.2-3.2zM448 113.7V399c-.1 44.8-36.8 81.1-81.7 81H81c-44.8-.1-81.1-36.9-81-81.7V113c.1-44.8 36.9-81.1 81.7-81H367c44.8.1 81.1 36.8 81 81.7zm-61.6 122.6c0-73-73.2-132.4-163.1-132.4-89.9 0-163.1 59.4-163.1 132.4 0 65.4 58 120.2 136.4 130.6 19.1 4.1 16.9 11.1 12.6 36.8-.7 4.1-3.3 16.1 14.1 8.8 17.4-7.3 93.9-55.3 128.2-94.7 23.6-26 34.9-52.3 34.9-81.5z"]},q.OP=q.DF},2803:(St,q)=>{"use strict";q.DF={prefix:"fab",iconName:"linkedin-in",icon:[448,512,[],"f0e1","M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"]},q.hw=q.DF},5635:(St,q)=>{"use strict";q.DF={prefix:"fab",iconName:"mix",icon:[448,512,[],"f3cb","M0 64v348.9c0 56.2 88 58.1 88 0V174.3c7.9-52.9 88-50.4 88 6.5v175.3c0 57.9 96 58 96 0V240c5.3-54.7 88-52.5 88 4.3v23.8c0 59.9 88 56.6 88 0V64H0z"]},q.hO=q.DF},4486:(St,q)=>{"use strict";q.DF={prefix:"fab",iconName:"pinterest-p",icon:[384,512,[],"f231","M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z"]},q.eG=q.DF},5839:(St,q)=>{"use strict";q.DF={prefix:"fab",iconName:"reddit-alien",icon:[512,512,[],"f281","M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"]},q.hH=q.DF},2898:(St,q)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var y="telegram",C=[62462,"telegram-plane"],m="f2c6",i="M248,8C111.033,8,0,119.033,0,256S111.033,504,248,504,496,392.967,496,256,384.967,8,248,8ZM362.952,176.66c-3.732,39.215-19.881,134.378-28.1,178.3-3.476,18.584-10.322,24.816-16.948,25.425-14.4,1.326-25.338-9.517-39.287-18.661-21.827-14.308-34.158-23.215-55.346-37.177-24.485-16.135-8.612-25,5.342-39.5,3.652-3.793,67.107-61.51,68.335-66.746.153-.655.3-3.1-1.154-4.384s-3.59-.849-5.135-.5q-3.283.746-104.608,69.142-14.845,10.194-26.894,9.934c-8.855-.191-25.888-5.006-38.551-9.123-15.531-5.048-27.875-7.717-26.8-16.291q.84-6.7,18.45-13.7,108.446-47.248,144.628-62.3c68.872-28.647,83.183-33.623,92.511-33.789,2.052-.034,6.639.474,9.61,2.885a10.452,10.452,0,0,1,3.53,6.716A43.765,43.765,0,0,1,362.952,176.66Z";q.definition={prefix:"fab",iconName:y,icon:[496,512,C,m,i]},q.faTelegram=q.definition,q.prefix="fab",q.iconName=y,q.width=496,q.height=512,q.ligatures=C,q.unicode=m,q.svgPathData=i,q.aliases=C},7413:(St,q,O)=>{"use strict";var M=O(2898);q.DF={prefix:M.prefix,iconName:M.iconName,icon:[M.width,M.height,M.aliases,M.unicode,M.svgPathData]},q.IK=q.DF},7765:(St,q)=>{"use strict";q.DF={prefix:"fab",iconName:"tumblr",icon:[320,512,[],"f173","M309.8 480.3c-13.6 14.5-50 31.7-97.4 31.7-120.8 0-147-88.8-147-140.6v-144H17.9c-5.5 0-10-4.5-10-10v-68c0-7.2 4.5-13.6 11.3-16 62-21.8 81.5-76 84.3-117.1.8-11 6.5-16.3 16.1-16.3h70.9c5.5 0 10 4.5 10 10v115.2h83c5.5 0 10 4.4 10 9.9v81.7c0 5.5-4.5 10-10 10h-83.4V360c0 34.2 23.7 53.6 68 35.8 4.8-1.9 9-3.2 12.7-2.2 3.5.9 5.8 3.4 7.4 7.9l22 64.3c1.8 5 3.3 10.6-.4 14.5z"]},q.yY=q.DF},665:(St,q)=>{"use strict";q.DF={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]},q.md=q.DF},7939:(St,q)=>{"use strict";q.DF={prefix:"fab",iconName:"vk",icon:[448,512,[],"f189","M31.4907 63.4907C0 94.9813 0 145.671 0 247.04V264.96C0 366.329 0 417.019 31.4907 448.509C62.9813 480 113.671 480 215.04 480H232.96C334.329 480 385.019 480 416.509 448.509C448 417.019 448 366.329 448 264.96V247.04C448 145.671 448 94.9813 416.509 63.4907C385.019 32 334.329 32 232.96 32H215.04C113.671 32 62.9813 32 31.4907 63.4907ZM75.6 168.267H126.747C128.427 253.76 166.133 289.973 196 297.44V168.267H244.16V242C273.653 238.827 304.64 205.227 315.093 168.267H363.253C359.313 187.435 351.46 205.583 340.186 221.579C328.913 237.574 314.461 251.071 297.733 261.227C316.41 270.499 332.907 283.63 346.132 299.751C359.357 315.873 369.01 334.618 374.453 354.747H321.44C316.555 337.262 306.614 321.61 292.865 309.754C279.117 297.899 262.173 290.368 244.16 288.107V354.747H238.373C136.267 354.747 78.0267 284.747 75.6 168.267Z"]},q.iD=q.DF},2459:(St,q)=>{"use strict";q.DF={prefix:"fab",iconName:"whatsapp",icon:[448,512,[],"f232","M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"]},q.VH=q.DF},5842:(St,q)=>{"use strict";q.DF={prefix:"fab",iconName:"xing",icon:[384,512,[],"f168","M162.7 210c-1.8 3.3-25.2 44.4-70.1 123.5-4.9 8.3-10.8 12.5-17.7 12.5H9.8c-7.7 0-12.1-7.5-8.5-14.4l69-121.3c.2 0 .2-.1 0-.3l-43.9-75.6c-4.3-7.8.3-14.1 8.5-14.1H100c7.3 0 13.3 4.1 18 12.2l44.7 77.5zM382.6 46.1l-144 253v.3L330.2 466c3.9 7.1.2 14.1-8.5 14.1h-65.2c-7.6 0-13.6-4-18-12.2l-92.4-168.5c3.3-5.8 51.5-90.8 144.8-255.2 4.6-8.1 10.4-12.2 17.5-12.2h65.7c8 0 12.3 6.7 8.5 14.1z"]},q.Sc=q.DF},2816:(St,q)=>{"use strict";q.DF={prefix:"fas",iconName:"check",icon:[512,512,[10003,10004],"f00c","M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},q.LE=q.DF},8951:(St,q,O)=>{"use strict";var M=O(5804);q.DF={prefix:M.prefix,iconName:M.iconName,icon:[M.width,M.height,M.aliases,M.unicode,M.svgPathData]},q.Eg=q.DF},6773:(St,q)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var y="ellipsis",C=["ellipsis-h"],m="f141",i="M120 256c0 30.9-25.1 56-56 56s-56-25.1-56-56s25.1-56 56-56s56 25.1 56 56zm160 0c0 30.9-25.1 56-56 56s-56-25.1-56-56s25.1-56 56-56s56 25.1 56 56zm104 56c-30.9 0-56-25.1-56-56s25.1-56 56-56s56 25.1 56 56s-25.1 56-56 56z";q.definition={prefix:"fas",iconName:y,icon:[448,512,C,m,i]},q.faEllipsis=q.definition,q.prefix="fas",q.iconName=y,q.width=448,q.height=512,q.ligatures=C,q.unicode=m,q.svgPathData=i,q.aliases=C},2330:(St,q,O)=>{"use strict";var M=O(6773);q.DF={prefix:M.prefix,iconName:M.iconName,icon:[M.width,M.height,M.aliases,M.unicode,M.svgPathData]},q.cN=q.DF},6673:(St,q)=>{"use strict";q.DF={prefix:"fas",iconName:"envelope",icon:[512,512,[128386,9993,61443],"f0e0","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"]},q.FU=q.DF},3067:(St,q)=>{"use strict";q.DF={prefix:"fas",iconName:"exclamation",icon:[128,512,[10069,10071,61738],"21","M96 64c0-17.7-14.3-32-32-32S32 46.3 32 64V320c0 17.7 14.3 32 32 32s32-14.3 32-32V64zM64 480c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40s17.9 40 40 40z"]},q.WV=q.DF},2077:(St,q)=>{"use strict";q.DF={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},q.nN=q.DF},5804:(St,q)=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});var y="message",C=["comment-alt"],m="f27a",i="M64 0C28.7 0 0 28.7 0 64V352c0 35.3 28.7 64 64 64h96v80c0 6.1 3.4 11.6 8.8 14.3s11.9 2.1 16.8-1.5L309.3 416H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64z";q.definition={prefix:"fas",iconName:y,icon:[512,512,C,m,i]},q.faMessage=q.definition,q.prefix="fas",q.iconName=y,q.width=512,q.height=512,q.ligatures=C,q.unicode=m,q.svgPathData=i,q.aliases=C},2331:(St,q)=>{"use strict";q.DF={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},q.Kl=q.DF},5490:(St,q)=>{"use strict";q.DF={prefix:"fas",iconName:"print",icon:[512,512,[128424,128438,9113],"f02f","M128 0C92.7 0 64 28.7 64 64v96h64V64H354.7L384 93.3V160h64V93.3c0-17-6.7-33.3-18.7-45.3L400 18.7C388 6.7 371.7 0 354.7 0H128zM384 352v32 64H128V384 368 352H384zm64 32h32c17.7 0 32-14.3 32-32V256c0-35.3-28.7-64-64-64H64c-35.3 0-64 28.7-64 64v96c0 17.7 14.3 32 32 32H64v64c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V384zm-16-88c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24z"]},q.wf=q.DF},2315:(St,q,O)=>{"use strict";var y={};O.r(y),O.d(y,{animation:()=>tL,inputType:()=>BC,nativeScrolling:()=>sp,pointerEvents:()=>d5,styleProp:()=>bh,stylePropPrefix:()=>F8,supportProp:()=>I9,touch:()=>Df,touchEvents:()=>E9,transition:()=>u5,transitionEndEventName:()=>eL});var M={};O.r(M),O.d(M,{circular:()=>Ogn,circularSpider:()=>MLe,linear:()=>wLe,linearSpider:()=>Mgn});var w={};O.r(w),O.d(w,{donut:()=>Gfn,doughnut:()=>jfn,pie:()=>wre});var C={};O.r(C),O.d(C,{candlestick:()=>Wfn,stock:()=>Pre});var m={};O.r(m),O.d(m,{ChartTracker:()=>Ize,PieTracker:()=>Eze});var i=O(5e3);let g=null;function u(){return g}const x=new i.OlP("DocumentToken");let S=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Yz7({token:e,factory:function(){return function P(){return(0,i.LFG)(A)}()},providedIn:"platform"}),e})();const D=new i.OlP("Location Initialized");let A=(()=>{class e extends S{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return u().getBaseHref(this._doc)}onPopState(t){const o=u().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",t,!1),()=>o.removeEventListener("popstate",t)}onHashChange(t){const o=u().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",t,!1),()=>o.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,o,r){E()?this._history.pushState(t,o,r):this.location.hash=r}replaceState(t,o,r){E()?this._history.replaceState(t,o,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(x))},e.\u0275prov=i.Yz7({token:e,factory:function(){return function R(){return new A((0,i.LFG)(x))}()},providedIn:"platform"}),e})();function E(){return!!window.history.pushState}function B(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function H(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function U(e){return e&&"?"!==e[0]?"?"+e:e}let F=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Yz7({token:e,factory:function(){return(0,i.f3M)(W)},providedIn:"root"}),e})();const V=new i.OlP("appBaseHref");let W=(()=>{class e extends F{constructor(t,o){var r,a,l;super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=null!==(l=null!==(r=null!=o?o:this._platformLocation.getBaseHrefFromDOM())&&void 0!==r?r:null===(a=(0,i.f3M)(x).location)||void 0===a?void 0:a.origin)&&void 0!==l?l:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return B(this._baseHref,t)}path(t=!1){const o=this._platformLocation.pathname+U(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${o}${r}`:o}pushState(t,o,r,a){const l=this.prepareExternalUrl(r+U(a));this._platformLocation.pushState(t,o,l)}replaceState(t,o,r,a){const l=this.prepareExternalUrl(r+U(a));this._platformLocation.replaceState(t,o,l)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){var o,r;null===(r=(o=this._platformLocation).historyGo)||void 0===r||r.call(o,t)}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(S),i.LFG(V,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),J=(()=>{class e extends F{constructor(t,o){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=o&&(this._baseHref=o)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let o=this._platformLocation.hash;return null==o&&(o="#"),o.length>0?o.substring(1):o}prepareExternalUrl(t){const o=B(this._baseHref,t);return o.length>0?"#"+o:o}pushState(t,o,r,a){let l=this.prepareExternalUrl(r+U(a));0==l.length&&(l=this._platformLocation.pathname),this._platformLocation.pushState(t,o,l)}replaceState(t,o,r,a){let l=this.prepareExternalUrl(r+U(a));0==l.length&&(l=this._platformLocation.pathname),this._platformLocation.replaceState(t,o,l)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){var o,r;null===(r=(o=this._platformLocation).historyGo)||void 0===r||r.call(o,t)}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(S),i.LFG(V,8))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})(),ae=(()=>{class e{constructor(t){this._subject=new i.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const o=this._locationStrategy.getBaseHref();this._baseHref=H(le(o)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){var t;null===(t=this._urlChangeSubscription)||void 0===t||t.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,o=""){return this.path()==this.normalize(t+U(o))}normalize(t){return e.stripTrailingSlash(function ne(e,n){return e&&n.startsWith(e)?n.substring(e.length):n}(this._baseHref,le(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,o="",r=null){this._locationStrategy.pushState(r,"",t,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+U(o)),r)}replaceState(t,o="",r=null){this._locationStrategy.replaceState(r,"",t,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+U(o)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){var o,r;null===(r=(o=this._locationStrategy).historyGo)||void 0===r||r.call(o,t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)})),()=>{var o;const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(null===(o=this._urlChangeSubscription)||void 0===o||o.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",o){this._urlChangeListeners.forEach(r=>r(t,o))}subscribe(t,o,r){return this._subject.subscribe({next:t,error:o,complete:r})}}return e.normalizeQueryParams=U,e.joinWithSlash=B,e.stripTrailingSlash=H,e.\u0275fac=function(t){return new(t||e)(i.LFG(F))},e.\u0275prov=i.Yz7({token:e,factory:function(){return function X(){return new ae((0,i.LFG)(F))}()},providedIn:"root"}),e})();function le(e){return e.replace(/\/index.html$/,"")}const de={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 _e=(()=>((_e=_e||{})[_e.Decimal=0]="Decimal",_e[_e.Percent=1]="Percent",_e[_e.Currency=2]="Currency",_e[_e.Scientific=3]="Scientific",_e))(),he=(()=>((he=he||{})[he.Format=0]="Format",he[he.Standalone=1]="Standalone",he))(),me=(()=>((me=me||{})[me.Narrow=0]="Narrow",me[me.Abbreviated=1]="Abbreviated",me[me.Wide=2]="Wide",me[me.Short=3]="Short",me))(),pe=(()=>((pe=pe||{})[pe.Short=0]="Short",pe[pe.Medium=1]="Medium",pe[pe.Long=2]="Long",pe[pe.Full=3]="Full",pe))(),ee=(()=>((ee=ee||{})[ee.Decimal=0]="Decimal",ee[ee.Group=1]="Group",ee[ee.List=2]="List",ee[ee.PercentSign=3]="PercentSign",ee[ee.PlusSign=4]="PlusSign",ee[ee.MinusSign=5]="MinusSign",ee[ee.Exponential=6]="Exponential",ee[ee.SuperscriptingExponent=7]="SuperscriptingExponent",ee[ee.PerMille=8]="PerMille",ee[ee.Infinity=9]="Infinity",ee[ee.NaN=10]="NaN",ee[ee.TimeSeparator=11]="TimeSeparator",ee[ee.CurrencyDecimal=12]="CurrencyDecimal",ee[ee.CurrencyGroup=13]="CurrencyGroup",ee))();function Ge(e,n){return sn((0,i.cg1)(e)[i.wAp.DateFormat],n)}function Be(e,n){return sn((0,i.cg1)(e)[i.wAp.TimeFormat],n)}function ge(e,n){return sn((0,i.cg1)(e)[i.wAp.DateTimeFormat],n)}function Ne(e,n){const t=(0,i.cg1)(e),o=t[i.wAp.NumberSymbols][n];if(void 0===o){if(n===ee.CurrencyDecimal)return t[i.wAp.NumberSymbols][ee.Decimal];if(n===ee.CurrencyGroup)return t[i.wAp.NumberSymbols][ee.Group]}return o}function Ke(e,n){return(0,i.cg1)(e)[i.wAp.NumberFormats][n]}function ke(e){if(!e[i.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[i.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function sn(e,n){for(let t=n;t>-1;t--)if(void 0!==e[t])return e[t];throw new Error("Locale data API: locale data undefined")}function Nn(e){const[n,t]=e.split(":");return{hours:+n,minutes:+t}}const yt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Vt={},An=/((?:[^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 Gn=(()=>((Gn=Gn||{})[Gn.Short=0]="Short",Gn[Gn.ShortGMT=1]="ShortGMT",Gn[Gn.Long=2]="Long",Gn[Gn.Extended=3]="Extended",Gn))(),Sn=(()=>((Sn=Sn||{})[Sn.FullYear=0]="FullYear",Sn[Sn.Month=1]="Month",Sn[Sn.Date=2]="Date",Sn[Sn.Hours=3]="Hours",Sn[Sn.Minutes=4]="Minutes",Sn[Sn.Seconds=5]="Seconds",Sn[Sn.FractionalSeconds=6]="FractionalSeconds",Sn[Sn.Day=7]="Day",Sn))(),zn=(()=>((zn=zn||{})[zn.DayPeriods=0]="DayPeriods",zn[zn.Days=1]="Days",zn[zn.Months=2]="Months",zn[zn.Eras=3]="Eras",zn))();function ai(e,n,t,o){let r=function Gr(e){if(xr(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[r,a=1,l=1]=e.split("-").map(c=>+c);return Si(r,a-1,l)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let o;if(o=e.match(yt))return function Fo(e){const n=new Date(0);let t=0,o=0;const r=e[8]?n.setUTCFullYear:n.setFullYear,a=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),o=Number(e[9]+e[11])),r.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));const l=Number(e[4]||0)-t,c=Number(e[5]||0)-o,p=Number(e[6]||0),b=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return a.call(n,l,c,p,b),n}(o)}const n=new Date(e);if(!xr(n))throw new Error(`Unable to convert "${e}" into a date`);return n}(e);n=Zi(t,n)||n;let c,l=[];for(;n;){if(c=An.exec(n),!c){l.push(n);break}{l=l.concat(c.slice(1));const T=l.pop();if(!T)break;n=T}}let p=r.getTimezoneOffset();o&&(p=Qi(o,p),r=function No(e,n,t){const o=t?-1:1,r=e.getTimezoneOffset();return function Mo(e,n){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+n),e}(e,o*(Qi(n,r)-r))}(r,o,!0));let b="";return l.forEach(T=>{const L=function Tn(e){if(Ln[e])return Ln[e];let n;switch(e){case"G":case"GG":case"GGG":n=bn(zn.Eras,me.Abbreviated);break;case"GGGG":n=bn(zn.Eras,me.Wide);break;case"GGGGG":n=bn(zn.Eras,me.Narrow);break;case"y":n=ir(Sn.FullYear,1,0,!1,!0);break;case"yy":n=ir(Sn.FullYear,2,0,!0,!0);break;case"yyy":n=ir(Sn.FullYear,3,0,!1,!0);break;case"yyyy":n=ir(Sn.FullYear,4,0,!1,!0);break;case"Y":n=yn(1);break;case"YY":n=yn(2,!0);break;case"YYY":n=yn(3);break;case"YYYY":n=yn(4);break;case"M":case"L":n=ir(Sn.Month,1,1);break;case"MM":case"LL":n=ir(Sn.Month,2,1);break;case"MMM":n=bn(zn.Months,me.Abbreviated);break;case"MMMM":n=bn(zn.Months,me.Wide);break;case"MMMMM":n=bn(zn.Months,me.Narrow);break;case"LLL":n=bn(zn.Months,me.Abbreviated,he.Standalone);break;case"LLLL":n=bn(zn.Months,me.Wide,he.Standalone);break;case"LLLLL":n=bn(zn.Months,me.Narrow,he.Standalone);break;case"w":n=hn(1);break;case"ww":n=hn(2);break;case"W":n=hn(1,!0);break;case"d":n=ir(Sn.Date,1);break;case"dd":n=ir(Sn.Date,2);break;case"c":case"cc":n=ir(Sn.Day,1);break;case"ccc":n=bn(zn.Days,me.Abbreviated,he.Standalone);break;case"cccc":n=bn(zn.Days,me.Wide,he.Standalone);break;case"ccccc":n=bn(zn.Days,me.Narrow,he.Standalone);break;case"cccccc":n=bn(zn.Days,me.Short,he.Standalone);break;case"E":case"EE":case"EEE":n=bn(zn.Days,me.Abbreviated);break;case"EEEE":n=bn(zn.Days,me.Wide);break;case"EEEEE":n=bn(zn.Days,me.Narrow);break;case"EEEEEE":n=bn(zn.Days,me.Short);break;case"a":case"aa":case"aaa":n=bn(zn.DayPeriods,me.Abbreviated);break;case"aaaa":n=bn(zn.DayPeriods,me.Wide);break;case"aaaaa":n=bn(zn.DayPeriods,me.Narrow);break;case"b":case"bb":case"bbb":n=bn(zn.DayPeriods,me.Abbreviated,he.Standalone,!0);break;case"bbbb":n=bn(zn.DayPeriods,me.Wide,he.Standalone,!0);break;case"bbbbb":n=bn(zn.DayPeriods,me.Narrow,he.Standalone,!0);break;case"B":case"BB":case"BBB":n=bn(zn.DayPeriods,me.Abbreviated,he.Format,!0);break;case"BBBB":n=bn(zn.DayPeriods,me.Wide,he.Format,!0);break;case"BBBBB":n=bn(zn.DayPeriods,me.Narrow,he.Format,!0);break;case"h":n=ir(Sn.Hours,1,-12);break;case"hh":n=ir(Sn.Hours,2,-12);break;case"H":n=ir(Sn.Hours,1);break;case"HH":n=ir(Sn.Hours,2);break;case"m":n=ir(Sn.Minutes,1);break;case"mm":n=ir(Sn.Minutes,2);break;case"s":n=ir(Sn.Seconds,1);break;case"ss":n=ir(Sn.Seconds,2);break;case"S":n=ir(Sn.FractionalSeconds,1);break;case"SS":n=ir(Sn.FractionalSeconds,2);break;case"SSS":n=ir(Sn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Ft(Gn.Short);break;case"ZZZZZ":n=Ft(Gn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Ft(Gn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Ft(Gn.Long);break;default:return null}return Ln[e]=n,n}(T);b+=L?L(r,t,p):"''"===T?"'":T.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),b}function Si(e,n,t){const o=new Date(0);return o.setFullYear(e,n,t),o.setHours(0,0,0),o}function Zi(e,n){const t=function be(e){return(0,i.cg1)(e)[i.wAp.LocaleId]}(e);if(Vt[t]=Vt[t]||{},Vt[t][n])return Vt[t][n];let o="";switch(n){case"shortDate":o=Ge(e,pe.Short);break;case"mediumDate":o=Ge(e,pe.Medium);break;case"longDate":o=Ge(e,pe.Long);break;case"fullDate":o=Ge(e,pe.Full);break;case"shortTime":o=Be(e,pe.Short);break;case"mediumTime":o=Be(e,pe.Medium);break;case"longTime":o=Be(e,pe.Long);break;case"fullTime":o=Be(e,pe.Full);break;case"short":const r=Zi(e,"shortTime"),a=Zi(e,"shortDate");o=Oo(ge(e,pe.Short),[r,a]);break;case"medium":const l=Zi(e,"mediumTime"),c=Zi(e,"mediumDate");o=Oo(ge(e,pe.Medium),[l,c]);break;case"long":const p=Zi(e,"longTime"),b=Zi(e,"longDate");o=Oo(ge(e,pe.Long),[p,b]);break;case"full":const T=Zi(e,"fullTime"),L=Zi(e,"fullDate");o=Oo(ge(e,pe.Full),[T,L])}return o&&(Vt[t][n]=o),o}function Oo(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,o){return null!=n&&o in n?n[o]:t})),e}function fo(e,n,t="-",o,r){let a="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,a=t));let l=String(e);for(;l.length0||c>-t)&&(c+=t),e===Sn.Hours)0===c&&-12===t&&(c=12);else if(e===Sn.FractionalSeconds)return function yo(e,n){return fo(e,3).substring(0,n)}(c,n);const p=Ne(l,ee.MinusSign);return fo(c,n,p,o,r)}}function bn(e,n,t=he.Format,o=!1){return function(r,a){return function On(e,n,t,o,r,a){switch(t){case zn.Months:return function at(e,n,t){const o=(0,i.cg1)(e),a=sn([o[i.wAp.MonthsFormat],o[i.wAp.MonthsStandalone]],n);return sn(a,t)}(n,r,o)[e.getMonth()];case zn.Days:return function Ye(e,n,t){const o=(0,i.cg1)(e),a=sn([o[i.wAp.DaysFormat],o[i.wAp.DaysStandalone]],n);return sn(a,t)}(n,r,o)[e.getDay()];case zn.DayPeriods:const l=e.getHours(),c=e.getMinutes();if(a){const b=function tt(e){const n=(0,i.cg1)(e);return ke(n),(n[i.wAp.ExtraData][2]||[]).map(o=>"string"==typeof o?Nn(o):[Nn(o[0]),Nn(o[1])])}(n),T=function dt(e,n,t){const o=(0,i.cg1)(e);ke(o);const a=sn([o[i.wAp.ExtraData][0],o[i.wAp.ExtraData][1]],n)||[];return sn(a,t)||[]}(n,r,o),L=b.findIndex(N=>{if(Array.isArray(N)){const[G,Y]=N,ie=l>=G.hours&&c>=G.minutes,ue=l0?Math.floor(r/60):Math.ceil(r/60);switch(e){case Gn.Short:return(r>=0?"+":"")+fo(l,2,a)+fo(Math.abs(r%60),2,a);case Gn.ShortGMT:return"GMT"+(r>=0?"+":"")+fo(l,1,a);case Gn.Long:return"GMT"+(r>=0?"+":"")+fo(l,2,a)+":"+fo(Math.abs(r%60),2,a);case Gn.Extended:return 0===o?"Z":(r>=0?"+":"")+fo(l,2,a)+":"+fo(Math.abs(r%60),2,a);default:throw new Error(`Unknown zone width "${e}"`)}}}function Gt(e){return Si(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function hn(e,n=!1){return function(t,o){let r;if(n){const a=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,l=t.getDate();r=1+Math.floor((l+a)/7)}else{const a=Gt(t),l=function ln(e){const n=Si(e,0,1).getDay();return Si(e,0,1+(n<=4?4:11)-n)}(a.getFullYear()),c=a.getTime()-l.getTime();r=1+Math.round(c/6048e5)}return fo(r,e,Ne(o,ee.MinusSign))}}function yn(e,n=!1){return function(t,o){return fo(Gt(t).getFullYear(),e,Ne(o,ee.MinusSign),n)}}const Ln={};function Qi(e,n){e=e.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function xr(e){return e instanceof Date&&!isNaN(e.valueOf())}const qa=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ca(e,n,t,o,r,a,l=!1){let c="",p=!1;if(isFinite(e)){let b=function Ut(e){let o,r,a,l,c,n=Math.abs(e)+"",t=0;for((r=n.indexOf("."))>-1&&(n=n.replace(".","")),(a=n.search(/e/i))>0?(r<0&&(r=a),r+=+n.slice(a+1),n=n.substring(0,a)):r<0&&(r=n.length),a=0;"0"===n.charAt(a);a++);if(a===(c=n.length))o=[0],r=1;else{for(c--;"0"===n.charAt(c);)c--;for(r-=a,o=[],l=0;a<=c;a++,l++)o[l]=Number(n.charAt(a))}return r>22&&(o=o.splice(0,21),t=r-1,r=1),{digits:o,exponent:t,integerLen:r}}(e);l&&(b=function mt(e){if(0===e.digits[0])return e;const n=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===n?e.digits.push(0,0):1===n&&e.digits.push(0),e.integerLen+=2),e}(b));let T=n.minInt,L=n.minFrac,N=n.maxFrac;if(a){const Se=a.match(qa);if(null===Se)throw new Error(`${a} is not a valid digit info`);const Te=Se[1],Me=Se[3],Le=Se[5];null!=Te&&(T=fn(Te)),null!=Me&&(L=fn(Me)),null!=Le?N=fn(Le):null!=Me&&L>N&&(N=L)}!function En(e,n,t){if(n>t)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${t}).`);let o=e.digits,r=o.length-e.integerLen;const a=Math.min(Math.max(n,r),t);let l=a+e.integerLen,c=o[l];if(l>0){o.splice(Math.max(e.integerLen,l));for(let L=l;L=5)if(l-1<0){for(let L=0;L>l;L--)o.unshift(0),e.integerLen++;o.unshift(1),e.integerLen++}else o[l-1]++;for(;r=b?Y.pop():p=!1),N>=10?1:0},0);T&&(o.unshift(T),e.integerLen++)}(b,L,N);let G=b.digits,Y=b.integerLen;const ie=b.exponent;let ue=[];for(p=G.every(Se=>!Se);Y0?ue=G.splice(Y,G.length):(ue=G,G=[0]);const xe=[];for(G.length>=n.lgSize&&xe.unshift(G.splice(-n.lgSize,G.length).join(""));G.length>n.gSize;)xe.unshift(G.splice(-n.gSize,G.length).join(""));G.length&&xe.unshift(G.join("")),c=xe.join(Ne(t,o)),ue.length&&(c+=Ne(t,r)+ue.join("")),ie&&(c+=Ne(t,ee.Exponential)+"+"+ie)}else c=Ne(t,ee.Infinity);return c=e<0&&!p?n.negPre+c+n.negSuf:n.posPre+c+n.posSuf,c}function ot(e,n="-"){const t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},o=e.split(";"),r=o[0],a=o[1],l=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],c=l[0],p=l[1]||"";t.posPre=c.substring(0,c.indexOf("#"));for(let T=0;T{class e{constructor(t,o,r,a){this._iterableDiffers=t,this._keyValueDiffers=o,this._ngEl=r,this._renderer=a,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,i.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(o=>this._toggleClass(o.key,o.currentValue)),t.forEachChangedItem(o=>this._toggleClass(o.key,o.currentValue)),t.forEachRemovedItem(o=>{o.previousValue&&this._toggleClass(o.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(o=>{if("string"!=typeof o.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.AaK)(o.item)}`);this._toggleClass(o.item,!0)}),t.forEachRemovedItem(o=>this._toggleClass(o.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(o=>this._toggleClass(o,!0)):Object.keys(t).forEach(o=>this._toggleClass(o,!!t[o])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(o=>this._toggleClass(o,!1)):Object.keys(t).forEach(o=>this._toggleClass(o,!1)))}_toggleClass(t,o){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{o?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.ZZ4),i.Y36(i.aQg),i.Y36(i.SBq),i.Y36(i.Qsj))},e.\u0275dir=i.lG2({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class Vr{constructor(n,t,o,r){this.$implicit=n,this.ngForOf=t,this.index=o,this.count=r}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 Yi=(()=>{class e{constructor(t,o,r){this._viewContainer=t,this._template=o,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const o=this._viewContainer;t.forEachOperation((r,a,l)=>{if(null==r.previousIndex)o.createEmbeddedView(this._template,new Vr(r.item,this._ngForOf,-1,-1),null===l?void 0:l);else if(null==l)o.remove(null===a?void 0:a);else if(null!==a){const c=o.get(a);o.move(c,l),Or(c,r)}});for(let r=0,a=o.length;r{Or(o.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,o){return!0}}return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},e.\u0275dir=i.lG2({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function Or(e,n){e.context.$implicit=n.item}let _i=(()=>{class e{constructor(t,o){this._viewContainer=t,this._context=new Cs,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Jr("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Jr("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,o){return!0}}return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.s_b),i.Y36(i.Rgc))},e.\u0275dir=i.lG2({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class Cs{constructor(){this.$implicit=null,this.ngIf=null}}function Jr(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${(0,i.AaK)(n)}'.`)}function Yo(e,n){return new i.vHH(2100,!1)}class ra{createSubscription(n,t){return n.subscribe({next:t,error:o=>{throw o}})}dispose(n){n.unsubscribe()}}class Mr{createSubscription(n,t){return n.then(t,o=>{throw o})}dispose(n){}}const as=new Mr,Qr=new ra;let fi=(()=>{class e{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,o=>this._updateLatestValue(t,o))}_selectStrategy(t){if((0,i.QGY)(t))return as;if((0,i.F4k)(t))return Qr;throw Yo()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,o){t===this._obj&&(this._latestValue=o,this._ref.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.sBO,16))},e.\u0275pipe=i.Yjl({name:"async",type:e,pure:!1,standalone:!0}),e})();const td=new i.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let ks=(()=>{class e{constructor(t,o){this.locale=t,this.defaultTimezone=o}transform(t,o="mediumDate",r,a){var l;if(null==t||""===t||t!=t)return null;try{return ai(t,o,a||this.locale,null!==(l=null!=r?r:this.defaultTimezone)&&void 0!==l?l:void 0)}catch(c){throw Yo()}}}return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.soG,16),i.Y36(td,24))},e.\u0275pipe=i.Yjl({name:"date",type:e,pure:!0,standalone:!0}),e})(),Xs=(()=>{class e{constructor(t){this._locale=t}transform(t,o,r){if(!At(t))return null;r=r||this._locale;try{return function Ct(e,n,t){return ca(e,ot(Ke(n,_e.Decimal),Ne(n,ee.MinusSign)),n,ee.Group,ee.Decimal,t)}(st(t),r,o)}catch(a){throw Yo()}}}return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.soG,16))},e.\u0275pipe=i.Yjl({name:"number",type:e,pure:!0,standalone:!0}),e})(),qe=(()=>{class e{constructor(t,o="USD"){this._locale=t,this._defaultCurrencyCode=o}transform(t,o=this._defaultCurrencyCode,r="symbol",a,l){if(!At(t))return null;l=l||this._locale,"boolean"==typeof r&&(r=r?"symbol":"code");let c=o||this._defaultCurrencyCode;"code"!==r&&(c="symbol"===r||"symbol-narrow"===r?function ri(e,n,t="en"){const o=function Qe(e){return(0,i.cg1)(e)[i.wAp.Currencies]}(t)[e]||de[e]||[],r=o[1];return"narrow"===n&&"string"==typeof r?r:o[0]||e}(c,"symbol"===r?"wide":"narrow",l):r);try{return function dl(e,n,t,o,r){const l=ot(Ke(n,_e.Currency),Ne(n,ee.MinusSign));return l.minFrac=function ao(e){let n;const t=de[e];return t&&(n=t[2]),"number"==typeof n?n:2}(o),l.maxFrac=l.minFrac,ca(e,l,n,ee.CurrencyGroup,ee.CurrencyDecimal,r).replace("\xa4",t).replace("\xa4","").trim()}(st(t),l,c,o,a)}catch(p){throw Yo()}}}return e.\u0275fac=function(t){return new(t||e)(i.Y36(i.soG,16),i.Y36(i.EJc,16))},e.\u0275pipe=i.Yjl({name:"currency",type:e,pure:!0,standalone:!0}),e})();function At(e){return!(null==e||""===e||e!=e)}function st(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(`${e} is not a number`);return e}let hi=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({}),e})();let cn=(()=>{class e{}return e.\u0275prov=(0,i.Yz7)({token:e,providedIn:"root",factory:()=>new en((0,i.LFG)(x),window)}),e})();class en{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function ii(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const o=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=o.currentNode;for(;r;){const a=r.shadowRoot;if(a){const l=a.getElementById(n)||a.querySelector(`[name="${n}"]`);if(l)return l}r=o.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=n)}}scrollToElement(n){const t=n.getBoundingClientRect(),o=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(o-a[0],r-a[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=Dn(this.window.history)||Dn(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function Dn(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class Zn{}class ha extends class Fl extends class v{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function f(e){g||(g=e)}(new ha)}onAndCancel(n,t,o){return n.addEventListener(t,o,!1),()=>{n.removeEventListener(t,o,!1)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function ef(){return Ap=Ap||document.querySelector("base"),Ap?Ap.getAttribute("href"):null}();return null==t?null:function Wm(e){jg=jg||document.createElement("a"),jg.setAttribute("href",e);const n=jg.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){Ap=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return qi(document.cookie,n)}}let jg,Ap=null;const Z0=new i.OlP("TRANSITION_ID"),uh=[{provide:i.ip1,useFactory:function Lu(e,n,t){return()=>{t.get(i.CZH).donePromise.then(()=>{const o=u(),r=n.querySelectorAll(`style[ng-transition="${e}"]`);for(let a=0;a{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})();const iu=new i.OlP("EventManagerPlugins");let tc=(()=>{class e{constructor(t,o){this._zone=o,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,o,r){return this._findPluginFor(o).addEventListener(t,o,r)}addGlobalEventListener(t,o,r){return this._findPluginFor(o).addGlobalEventListener(t,o,r)}getZone(){return this._zone}_findPluginFor(t){const o=this._eventNameToPlugin.get(t);if(o)return o;const r=this._plugins;for(let a=0;a{class e{constructor(){this._stylesSet=new Set}addStyles(t){const o=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),o.add(r))}),this.onStylesAdded(o)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})(),el=(()=>{class e extends Fc{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,o,r){t.forEach(a=>{const l=this._doc.createElement("style");l.textContent=a,r.push(o.appendChild(l))})}addHost(t){const o=[];this._addStylesToHost(this._stylesSet,t,o),this._hostNodes.set(t,o)}removeHost(t){const o=this._hostNodes.get(t);o&&o.forEach(hh),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((o,r)=>{this._addStylesToHost(t,r,o)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(hh))}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(x))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})();function hh(e){u().remove(e)}const eg={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 uo(e,n,t){for(let o=0;o{if("__ngUnwrap__"===n)return e;!1===e(n)&&(n.preventDefault(),n.returnValue=!1)}}let Xo=(()=>{class e{constructor(t,o,r){this.eventManager=t,this.sharedStylesHost=o,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new lr(t)}createRenderer(t,o){if(!t||!o)return this.defaultRenderer;switch(o.encapsulation){case i.ifc.Emulated:{let r=this.rendererByCompId.get(o.id);return r||(r=new tl(this.eventManager,this.sharedStylesHost,o,this.appId),this.rendererByCompId.set(o.id,r)),r.applyToHost(t),r}case 1:case i.ifc.ShadowDom:return new nl(this.eventManager,this.sharedStylesHost,t,o);default:if(!this.rendererByCompId.has(o.id)){const r=uo(o.id,o.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(o.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(tc),i.LFG(el),i.LFG(i.AFp))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})();class lr{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?document.createElementNS(eg[t]||t,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,t){(or(n)?n.content:n).appendChild(t)}insertBefore(n,t,o){n&&(or(n)?n.content:n).insertBefore(t,o)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let o="string"==typeof n?document.querySelector(n):n;if(!o)throw new Error(`The selector "${n}" did not match any elements`);return t||(o.textContent=""),o}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,o,r){if(r){t=r+":"+t;const a=eg[r];a?n.setAttributeNS(a,t,o):n.setAttribute(t,o)}else n.setAttribute(t,o)}removeAttribute(n,t,o){if(o){const r=eg[o];r?n.removeAttributeNS(r,t):n.removeAttribute(`${o}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,o,r){r&(i.JOm.DashCase|i.JOm.Important)?n.style.setProperty(t,o,r&i.JOm.Important?"important":""):n.style[t]=o}removeStyle(n,t,o){o&i.JOm.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,o){n[t]=o}setValue(n,t){n.nodeValue=t}listen(n,t,o){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,t,So(o)):this.eventManager.addEventListener(n,t,So(o))}}function or(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class tl extends lr{constructor(n,t,o,r){super(n),this.component=o;const a=uo(r+"-"+o.id,o.styles,[]);t.addStyles(a),this.contentAttr=function wi(e){return"_ngcontent-%COMP%".replace(zt,e)}(r+"-"+o.id),this.hostAttr=function Ui(e){return"_nghost-%COMP%".replace(zt,e)}(r+"-"+o.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,t){const o=super.createElement(n,t);return super.setAttribute(o,this.contentAttr,""),o}}class nl extends lr{constructor(n,t,o,r){super(n),this.sharedStylesHost=t,this.hostEl=o,this.shadowRoot=o.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const a=uo(r.id,r.styles,[]);for(let l=0;l{class e extends Ru{constructor(t){super(t)}supports(t){return!0}addEventListener(t,o,r){return t.addEventListener(o,r,!1),()=>this.removeEventListener(t,o,r)}removeEventListener(t,o,r){return t.removeEventListener(o,r)}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(x))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})();const Fa=["alt","control","meta","shift"],Ld={"\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"},gh={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let qs=(()=>{class e extends Ru{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,o,r){const a=e.parseEventName(o),l=e.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>u().onAndCancel(t,a.domEventName,l))}static parseEventName(t){const o=t.toLowerCase().split("."),r=o.shift();if(0===o.length||"keydown"!==r&&"keyup"!==r)return null;const a=e._normalizeKey(o.pop());let l="",c=o.indexOf("code");if(c>-1&&(o.splice(c,1),l="code."),Fa.forEach(b=>{const T=o.indexOf(b);T>-1&&(o.splice(T,1),l+=b+".")}),l+=a,0!=o.length||0===a.length)return null;const p={};return p.domEventName=r,p.fullKey=l,p}static matchEventFullKeyCode(t,o){let r=Ld[t.key]||t.key,a="";return o.indexOf("code.")>-1&&(r=t.code,a="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Fa.forEach(l=>{l!==r&&(0,gh[l])(t)&&(a+=l+".")}),a+=r,a===o)}static eventCallback(t,o,r){return a=>{e.matchEventFullKeyCode(a,t)&&r.runGuarded(()=>o(a))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(x))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})();const Rp=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:"browser"},{provide:i.g9A,useValue:function Gg(){ha.makeCurrent()},multi:!0},{provide:x,useFactory:function Wg(){return(0,i.RDi)(document),document},deps:[]}]),af=new i.OlP(""),De=[{provide:i.rWj,useClass:class ph{addToWindow(n){i.dqk.getAngularTestability=(o,r=!0)=>{const a=n.findTestabilityInTree(o,r);if(null==a)throw new Error("Could not find testability for element.");return a},i.dqk.getAllAngularTestabilities=()=>n.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>n.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(o=>{const r=i.dqk.getAllAngularTestabilities();let a=r.length,l=!1;const c=function(p){l=l||p,a--,0==a&&o(l)};r.forEach(function(p){p.whenStable(c)})})}findTestabilityInTree(n,t,o){if(null==t)return null;const r=n.getTestability(t);return null!=r?r:o?u().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null}},deps:[]},{provide:i.lri,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]}],Je=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function qm(){return new i.qLn},deps:[]},{provide:iu,useClass:rc,multi:!0,deps:[x,i.R0b,i.Lbi]},{provide:iu,useClass:qs,multi:!0,deps:[x]},{provide:Xo,useClass:Xo,deps:[tc,el,i.AFp]},{provide:i.FYo,useExisting:Xo},{provide:Fc,useExisting:el},{provide:el,useClass:el,deps:[x]},{provide:tc,useClass:tc,deps:[iu,i.R0b]},{provide:Zn,useClass:Lp,deps:[]},[]];let Ve=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:i.AFp,useValue:t.appId},{provide:Z0,useExisting:i.AFp},uh]}}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(af,12))},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({providers:[...Je,...De],imports:[hi,i.hGG]}),e})(),Zt=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(x))},e.\u0275prov=i.Yz7({token:e,factory:function(t){let o=null;return o=t?new t:function jt(){return new Zt((0,i.LFG)(x))}(),o},providedIn:"root"}),e})();"undefined"!=typeof window&&window;let Wn=(()=>{class e{constructor(){this.store={},this.onSerializeCallbacks={}}get(t,o){return void 0!==this.store[t]?this.store[t]:o}set(t,o){this.store[t]=o}remove(t){delete this.store[t]}hasKey(t){return this.store.hasOwnProperty(t)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(t,o){this.onSerializeCallbacks[t]=o}toJson(){for(const t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(o){console.warn("Exception in onSerialize callback: ",o)}return JSON.stringify(this.store)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Yz7({token:e,factory:function(){return(()=>{const n=(0,i.f3M)(x),t=(0,i.f3M)(i.AFp),o=new e;return o.store=function Q_(e,n){const t=e.getElementById(n+"-state");let o={};if(t&&t.textContent)try{o=JSON.parse(function Qa(e){const n={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return e.replace(/&[^;]+;/g,t=>n[t])}(t.textContent))}catch(r){console.warn("Exception while restoring TransferState for app "+n,r)}return o}(n,t),o})()},providedIn:"root"}),e})(),_o=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({}),e})(),sf=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Yz7({token:e,factory:function(t){let o=null;return o=t?new(t||e):i.LFG(Fb),o},providedIn:"root"}),e})(),Fb=(()=>{class e extends sf{constructor(t){super(),this._doc=t}sanitize(t,o){if(null==o)return null;switch(t){case i.q3G.NONE:return o;case i.q3G.HTML:return(0,i.qzn)(o,"HTML")?(0,i.z3N)(o):(0,i.EiD)(this._doc,String(o)).toString();case i.q3G.STYLE:return(0,i.qzn)(o,"Style")?(0,i.z3N)(o):o;case i.q3G.SCRIPT:if((0,i.qzn)(o,"Script"))return(0,i.z3N)(o);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.qzn)(o,"URL")?(0,i.z3N)(o):(0,i.mCW)(String(o));case i.q3G.RESOURCE_URL:if((0,i.qzn)(o,"ResourceURL"))return(0,i.z3N)(o);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,i.JVY)(t)}bypassSecurityTrustStyle(t){return(0,i.L6k)(t)}bypassSecurityTrustScript(t){return(0,i.eBb)(t)}bypassSecurityTrustUrl(t){return(0,i.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,i.pB0)(t)}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(x))},e.\u0275prov=i.Yz7({token:e,factory:function(t){let o=null;return o=t?new t:function GE(e){return new Fb(e.get(x))}(i.LFG(i.zs3)),o},providedIn:"root"}),e})();class mh{}const zu="*";function Zm(e,n){return{type:7,name:e,definitions:n,options:{}}}function q4(e,n=null){return{type:4,styles:n,timings:e}}function tg(e,n=null){return{type:2,steps:e,options:n}}function Jm(e){return{type:6,styles:e,offset:null}}function jb(e,n,t){return{type:0,name:e,styles:n,options:t}}function ou(e,n,t=null){return{type:1,expr:e,animation:n,options:t}}function Xm(e){Promise.resolve().then(e)}class lf{constructor(n=0,t=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=n+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Xm(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(o=>o()),t.length=0}}class X_{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let t=0,o=0,r=0;const a=this.players.length;0==a?Xm(()=>this._onFinish()):this.players.forEach(l=>{l.onDone(()=>{++t==a&&this._onFinish()}),l.onDestroy(()=>{++o==a&&this._onDestroy()}),l.onStart(()=>{++r==a&&this._onStart()})}),this.totalTime=this.players.reduce((l,c)=>Math.max(l,c.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const t=n*this.totalTime;this.players.forEach(o=>{const r=o.totalTime?Math.min(1,t/o.totalTime):1;o.setPosition(r)})}getPosition(){const n=this.players.reduce((t,o)=>null===t||o.totalTime>t.totalTime?o:t,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(o=>o()),t.length=0}}function ev(e){return new i.vHH(3e3,!1)}function AM(){return"undefined"!=typeof window&&void 0!==window.document}function Zb(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function qg(e){switch(e.length){case 0:return new lf;case 1:return e[0];default:return new X_(e)}}function Jb(e,n,t,o,r=new Map,a=new Map){const l=[],c=[];let p=-1,b=null;if(o.forEach(T=>{const L=T.get("offset"),N=L==p,G=N&&b||new Map;T.forEach((Y,ie)=>{let ue=ie,xe=Y;if("offset"!==ie)switch(ue=n.normalizePropertyName(ue,l),xe){case"!":xe=r.get(ie);break;case zu:xe=a.get(ie);break;default:xe=n.normalizeStyleValue(ie,ue,xe,l)}G.set(ue,xe)}),N||c.push(G),b=G,p=L}),l.length)throw function o2(e){return new i.vHH(3502,!1)}();return c}function X4(e,n,t,o){switch(n){case"start":e.onStart(()=>o(t&&$g(t,"start",e)));break;case"done":e.onDone(()=>o(t&&$g(t,"done",e)));break;case"destroy":e.onDestroy(()=>o(t&&$g(t,"destroy",e)))}}function $g(e,n,t){const o=t.totalTime,a=ng(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,null==o?e.totalTime:o,!!t.disabled),l=e._data;return null!=l&&(a._data=l),a}function ng(e,n,t,o,r="",a=0,l){return{element:e,triggerName:n,fromState:t,toState:o,phaseName:r,totalTime:a,disabled:!!l}}function md(e,n,t){let o=e.get(n);return o||e.set(n,o=t),o}function Da(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}let re=(e,n)=>!1,Oe=(e,n,t)=>[],Xe=null;function pt(e){const n=e.parentNode||e.host;return n===Xe?null:n}(Zb()||"undefined"!=typeof Element)&&(AM()?(Xe=(()=>document.documentElement)(),re=(e,n)=>{for(;n;){if(n===e)return!0;n=pt(n)}return!1}):re=(e,n)=>e.contains(n),Oe=(e,n,t)=>{if(t)return Array.from(e.querySelectorAll(n));const o=e.querySelector(n);return o?[o]:[]});let pi=null,mr=!1;const ig=re,Zg=Oe;let $E=(()=>{class e{validateStyleProperty(t){return function sa(e){pi||(pi=function ru(){return"undefined"!=typeof document?document.body:null}()||{},mr=!!pi.style&&"WebkitAppearance"in pi.style);let n=!0;return pi.style&&!function Mn(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in pi.style,!n&&mr&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in pi.style)),n}(t)}matchesElement(t,o){return!1}containsElement(t,o){return ig(t,o)}getParentElement(t){return pt(t)}query(t,o,r){return Zg(t,o,r)}computeStyle(t,o,r){return r||""}animate(t,o,r,a,l,c=[],p){return new lf(r,a)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})(),Qb=(()=>{class e{}return e.NOOP=new $E,e})();const Xb="ng-enter",Bp="ng-leave",e8="ng-trigger",t8=".ng-trigger",JE="ng-animating",n8=".ng-animating";function og(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:BM(parseFloat(n[1]),n[2])}function BM(e,n){return"s"===n?1e3*e:e}function i8(e,n,t){return e.hasOwnProperty("duration")?e:function GW(e,n,t){let r,a=0,l="";if("string"==typeof e){const c=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===c)return n.push(ev()),{duration:0,delay:0,easing:""};r=BM(parseFloat(c[1]),c[2]);const p=c[3];null!=p&&(a=BM(parseFloat(p),c[4]));const b=c[5];b&&(l=b)}else r=e;if(!t){let c=!1,p=n.length;r<0&&(n.push(function tv(){return new i.vHH(3100,!1)}()),c=!0),a<0&&(n.push(function YE(){return new i.vHH(3101,!1)}()),c=!0),c&&n.splice(p,0,ev())}return{duration:r,delay:a,easing:l}}(e,n,t)}function ov(e,n={}){return Object.keys(e).forEach(t=>{n[t]=e[t]}),n}function QE(e){const n=new Map;return Object.keys(e).forEach(t=>{n.set(t,e[t])}),n}function Jg(e,n=new Map,t){if(t)for(let[o,r]of t)n.set(o,r);for(let[o,r]of e)n.set(o,r);return n}function zM(e,n,t){return t?n+":"+t+";":""}function o8(e){let n="";for(let t=0;t{const a=r8(r);t&&!t.has(r)&&t.set(r,e.style[a]),e.style[a]=o}),Zb()&&o8(e))}function rg(e,n){e.style&&(n.forEach((t,o)=>{const r=r8(o);e.style[r]=""}),Zb()&&o8(e))}function rv(e){return Array.isArray(e)?1==e.length?e[0]:tg(e):e}const HM=new RegExp("{{\\s*(.+?)\\s*}}","g");function VM(e){let n=[];if("string"==typeof e){let t;for(;t=HM.exec(e);)n.push(t[1]);HM.lastIndex=0}return n}function eC(e,n,t){const o=e.toString(),r=o.replace(HM,(a,l)=>{let c=n[l];return null==c&&(t.push(function Z4(e){return new i.vHH(3003,!1)}()),c=""),c.toString()});return r==o?e:r}function tC(e){const n=[];let t=e.next();for(;!t.done;)n.push(t.value),t=e.next();return n}const YW=/-+([a-z0-9])/g;function r8(e){return e.replace(YW,(...n)=>n[1].toUpperCase())}function qW(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Vu(e,n,t){switch(n.type){case 7:return e.visitTrigger(n,t);case 0:return e.visitState(n,t);case 1:return e.visitTransition(n,t);case 2:return e.visitSequence(n,t);case 3:return e.visitGroup(n,t);case 4:return e.visitAnimate(n,t);case 5:return e.visitKeyframes(n,t);case 6:return e.visitStyle(n,t);case 8:return e.visitReference(n,t);case 9:return e.visitAnimateChild(n,t);case 10:return e.visitAnimateRef(n,t);case 11:return e.visitQuery(n,t);case 12:return e.visitStagger(n,t);default:throw function e2(e){return new i.vHH(3004,!1)}()}}function XE(e,n){return window.getComputedStyle(e)[n]}function Ide(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(o=>function av(e,n,t){if(":"==e[0]){const p=function FM(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,o)=>parseFloat(o)>parseFloat(t);case":decrement":return(t,o)=>parseFloat(o) *"}}(e,t);if("function"==typeof p)return void n.push(p);e=p}const o=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return t.push(function DM(e){return new i.vHH(3015,!1)}()),n;const r=o[1],a=o[2],l=o[3];n.push(l8(r,l));"<"==a[0]&&!("*"==r&&"*"==l)&&n.push(l8(l,r))}(o,t,n)):t.push(e),t}const rC=new Set(["true","1"]),s8=new Set(["false","0"]);function l8(e,n){const t=rC.has(e)||s8.has(e),o=rC.has(n)||s8.has(n);return(r,a)=>{let l="*"==e||e==r,c="*"==n||n==a;return!l&&t&&"boolean"==typeof r&&(l=r?rC.has(e):s8.has(e)),!c&&o&&"boolean"==typeof a&&(c=a?rC.has(n):s8.has(n)),l&&c}}const QW=new RegExp("s*:selfs*,?","g");function UM(e,n,t,o){return new XW(e).build(n,t,o)}class XW{constructor(n){this._driver=n}build(n,t,o){const r=new jM(t);return this._resetContextStyleTimingState(r),Vu(this,rv(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let o=t.queryCount=0,r=t.depCount=0;const a=[],l=[];return"@"==n.name.charAt(0)&&t.errors.push(function PM(){return new i.vHH(3006,!1)}()),n.definitions.forEach(c=>{if(this._resetContextStyleTimingState(t),0==c.type){const p=c,b=p.name;b.toString().split(/\s*,\s*/).forEach(T=>{p.name=T,a.push(this.visitState(p,t))}),p.name=b}else if(1==c.type){const p=this.visitTransition(c,t);o+=p.queryCount,r+=p.depCount,l.push(p)}else t.errors.push(function Wb(){return new i.vHH(3007,!1)}())}),{type:7,name:n.name,states:a,transitions:l,queryCount:o,depCount:r,options:null}}visitState(n,t){const o=this.visitStyle(n.styles,t),r=n.options&&n.options.params||null;if(o.containsDynamicStyles){const a=new Set,l=r||{};o.styles.forEach(c=>{c instanceof Map&&c.forEach(p=>{VM(p).forEach(b=>{l.hasOwnProperty(b)||a.add(b)})})}),a.size&&(tC(a.values()),t.errors.push(function Kb(e,n){return new i.vHH(3008,!1)}()))}return{type:0,name:n.name,style:o,options:r?{params:r}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const o=Vu(this,rv(n.animation),t);return{type:1,matchers:Ide(n.expr,t.errors),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:s2(n.options)}}visitSequence(n,t){return{type:2,steps:n.steps.map(o=>Vu(this,o,t)),options:s2(n.options)}}visitGroup(n,t){const o=t.currentTime;let r=0;const a=n.steps.map(l=>{t.currentTime=o;const c=Vu(this,l,t);return r=Math.max(r,t.currentTime),c});return t.currentTime=r,{type:3,steps:a,options:s2(n.options)}}visitAnimate(n,t){const o=function GM(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return WM(i8(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(a=>"{"==a.charAt(0)&&"{"==a.charAt(1))){const a=WM(0,0,"");return a.dynamic=!0,a.strValue=t,a}const r=i8(t,n);return WM(r.duration,r.delay,r.easing)}(n.timings,t.errors);t.currentAnimateTimings=o;let r,a=n.styles?n.styles:Jm({});if(5==a.type)r=this.visitKeyframes(a,t);else{let l=n.styles,c=!1;if(!l){c=!0;const b={};o.easing&&(b.easing=o.easing),l=Jm(b)}t.currentTime+=o.duration+o.delay;const p=this.visitStyle(l,t);p.isEmptyStep=c,r=p}return t.currentAnimateTimings=null,{type:4,timings:o,style:r,options:null}}visitStyle(n,t){const o=this._makeStyleAst(n,t);return this._validateStyleAst(o,t),o}_makeStyleAst(n,t){const o=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let c of r)"string"==typeof c?c===zu?o.push(c):t.errors.push(new i.vHH(3002,!1)):o.push(QE(c));let a=!1,l=null;return o.forEach(c=>{if(c instanceof Map&&(c.has("easing")&&(l=c.get("easing"),c.delete("easing")),!a))for(let p of c.values())if(p.toString().indexOf("{{")>=0){a=!0;break}}),{type:6,styles:o,easing:l,offset:n.offset,containsDynamicStyles:a,options:null}}_validateStyleAst(n,t){const o=t.currentAnimateTimings;let r=t.currentTime,a=t.currentTime;o&&a>0&&(a-=o.duration+o.delay),n.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,p)=>{const b=t.collectedStyles.get(t.currentQuerySelector),T=b.get(p);let L=!0;T&&(a!=r&&a>=T.startTime&&r<=T.endTime&&(t.errors.push(function SM(e,n,t,o,r){return new i.vHH(3010,!1)}()),L=!1),a=T.startTime),L&&b.set(p,{startTime:a,endTime:r}),t.options&&function KW(e,n,t){const o=n.params||{},r=VM(e);r.length&&r.forEach(a=>{o.hasOwnProperty(a)||t.push(function Hu(e){return new i.vHH(3001,!1)}())})}(c,t.options,t.errors)})})}visitKeyframes(n,t){const o={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function sc(){return new i.vHH(3011,!1)}()),o;let a=0;const l=[];let c=!1,p=!1,b=0;const T=n.steps.map(xe=>{const Se=this._makeStyleAst(xe,t);let Te=null!=Se.offset?Se.offset:function rk(e){if("string"==typeof e)return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){const o=t;n=parseFloat(o.get("offset")),o.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(Se.styles),Me=0;return null!=Te&&(a++,Me=Se.offset=Te),p=p||Me<0||Me>1,c=c||Me0&&a{const Te=N>0?Se==G?1:N*Se:l[Se],Me=Te*ue;t.currentTime=Y+ie.delay+Me,ie.duration=Me,this._validateStyleAst(xe,t),xe.offset=Te,o.styles.push(xe)}),o}visitReference(n,t){return{type:8,animation:Vu(this,rv(n.animation),t),options:s2(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:9,options:s2(n.options)}}visitAnimateRef(n,t){return{type:10,animation:this.visitReference(n.animation,t),options:s2(n.options)}}visitQuery(n,t){const o=t.currentQuerySelector,r=n.options||{};t.queryCount++,t.currentQuery=n;const[a,l]=function eK(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(QW,"")),e=e.replace(/@\*/g,t8).replace(/@\w+/g,t=>t8+"-"+t.slice(1)).replace(/:animating/g,n8),[e,n]}(n.selector);t.currentQuerySelector=o.length?o+" "+a:a,md(t.collectedStyles,t.currentQuerySelector,new Map);const c=Vu(this,rv(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=o,{type:11,selector:a,limit:r.limit||0,optional:!!r.optional,includeSelf:l,animation:c,originalSelector:n.selector,options:s2(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function t2(){return new i.vHH(3013,!1)}());const o="full"===n.timings?{duration:0,delay:0,easing:"full"}:i8(n.timings,t.errors,!0);return{type:12,animation:Vu(this,rv(n.animation),t),timings:o,options:null}}}class jM{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function s2(e){return e?(e=ov(e)).params&&(e.params=function ok(e){return e?ov(e):null}(e.params)):e={},e}function WM(e,n,t){return{duration:e,delay:n,easing:t}}function c8(e,n,t,o,r,a,l=null,c=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:o,duration:r,delay:a,totalTime:r+a,easing:l,subTimeline:c}}class aC{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let o=this._map.get(n);o||this._map.set(n,o=[]),o.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const sk=new RegExp(":enter","g"),Ede=new RegExp(":leave","g");function sv(e,n,t,o,r,a=new Map,l=new Map,c,p,b=[]){return(new nK).buildKeyframes(e,n,t,o,r,a,l,c,p,b)}class nK{buildKeyframes(n,t,o,r,a,l,c,p,b,T=[]){b=b||new aC;const L=new d8(n,t,b,r,a,T,[]);L.options=p;const N=p.delay?og(p.delay):0;L.currentTimeline.delayNextStep(N),L.currentTimeline.setStyles([l],null,L.errors,p),Vu(this,o,L);const G=L.timelines.filter(Y=>Y.containsAnimation());if(G.length&&c.size){let Y;for(let ie=G.length-1;ie>=0;ie--){const ue=G[ie];if(ue.element===t){Y=ue;break}}Y&&!Y.allowOnlyTimelineStyles()&&Y.setStyles([c],null,L.errors,p)}return G.length?G.map(Y=>Y.buildKeyframes()):[c8(t,[],[],[],0,N,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const o=t.subInstructions.get(t.element);if(o){const r=t.createSubContext(n.options),a=t.currentTimeline.currentTime,l=this._visitSubInstructions(o,r,r.options);a!=l&&t.transformIntoNewTimeline(l)}t.previousNode=n}visitAnimateRef(n,t){const o=t.createSubContext(n.options);o.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,o),this.visitReference(n.animation,o),t.transformIntoNewTimeline(o.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,o){var r;for(const a of n){const l=null==a?void 0:a.delay;if(l){const c="number"==typeof l?l:og(eC(l,null!==(r=null==a?void 0:a.params)&&void 0!==r?r:{},t.errors));o.delayNextStep(c)}}}_visitSubInstructions(n,t,o){let a=t.currentTimeline.currentTime;const l=null!=o.duration?og(o.duration):null,c=null!=o.delay?og(o.delay):null;return 0!==l&&n.forEach(p=>{const b=t.appendInstructionToTimeline(p,l,c);a=Math.max(a,b.duration+b.delay)}),a}visitReference(n,t){t.updateOptions(n.options,!0),Vu(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const o=t.subContextCount;let r=t;const a=n.options;if(a&&(a.params||a.delay)&&(r=t.createSubContext(a),r.transformIntoNewTimeline(),null!=a.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=sC);const l=og(a.delay);r.delayNextStep(l)}n.steps.length&&(n.steps.forEach(l=>Vu(this,l,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>o&&r.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const o=[];let r=t.currentTimeline.currentTime;const a=n.options&&n.options.delay?og(n.options.delay):0;n.steps.forEach(l=>{const c=t.createSubContext(n.options);a&&c.delayNextStep(a),Vu(this,l,c),r=Math.max(r,c.currentTimeline.currentTime),o.push(c.currentTimeline)}),o.forEach(l=>t.currentTimeline.mergeTimelineCollectedStyles(l)),t.transformIntoNewTimeline(r),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const o=n.strValue;return i8(t.params?eC(o,t.params,t.errors):o,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const o=t.currentAnimateTimings=this._visitTiming(n.timings,t),r=t.currentTimeline;o.delay&&(t.incrementTime(o.delay),r.snapshotCurrentStyles());const a=n.style;5==a.type?this.visitKeyframes(a,t):(t.incrementTime(o.duration),this.visitStyle(a,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const o=t.currentTimeline,r=t.currentAnimateTimings;!r&&o.hasCurrentStyleProperties()&&o.forwardFrame();const a=r&&r.easing||n.easing;n.isEmptyStep?o.applyEmptyStep(a):o.setStyles(n.styles,a,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const o=t.currentAnimateTimings,r=t.currentTimeline.duration,a=o.duration,c=t.createSubContext().currentTimeline;c.easing=o.easing,n.styles.forEach(p=>{c.forwardTime((p.offset||0)*a),c.setStyles(p.styles,p.easing,t.errors,t.options),c.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(c),t.transformIntoNewTimeline(r+a),t.previousNode=n}visitQuery(n,t){const o=t.currentTimeline.currentTime,r=n.options||{},a=r.delay?og(r.delay):0;a&&(6===t.previousNode.type||0==o&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=sC);let l=o;const c=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=c.length;let p=null;c.forEach((b,T)=>{t.currentQueryIndex=T;const L=t.createSubContext(n.options,b);a&&L.delayNextStep(a),b===t.element&&(p=L.currentTimeline),Vu(this,n.animation,L),L.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,L.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(l),p&&(t.currentTimeline.mergeTimelineCollectedStyles(p),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const o=t.parentContext,r=t.currentTimeline,a=n.timings,l=Math.abs(a.duration),c=l*(t.currentQueryTotal-1);let p=l*t.currentQueryIndex;switch(a.duration<0?"reverse":a.easing){case"reverse":p=c-p;break;case"full":p=o.currentStaggerTime}const T=t.currentTimeline;p&&T.delayNextStep(p);const L=T.currentTime;Vu(this,n.animation,t),t.previousNode=n,o.currentStaggerTime=r.currentTime-L+(r.startTime-o.currentTimeline.startTime)}}const sC={};class d8{constructor(n,t,o,r,a,l,c,p){this._driver=n,this.element=t,this.subInstructions=o,this._enterClassName=r,this._leaveClassName=a,this.errors=l,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=sC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=p||new lC(this._driver,t,0),c.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const o=n;let r=this.options;null!=o.duration&&(r.duration=og(o.duration)),null!=o.delay&&(r.delay=og(o.delay));const a=o.params;if(a){let l=r.params;l||(l=this.options.params={}),Object.keys(a).forEach(c=>{(!t||!l.hasOwnProperty(c))&&(l[c]=eC(a[c],l,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const o=n.params={};Object.keys(t).forEach(r=>{o[r]=t[r]})}}return n}createSubContext(n=null,t,o){const r=t||this.element,a=new d8(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,o||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(n),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}transformIntoNewTimeline(n){return this.previousNode=sC,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,o){const r={duration:null!=t?t:n.duration,delay:this.currentTimeline.currentTime+(null!=o?o:0)+n.delay,easing:""},a=new KM(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(a),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,o,r,a,l){let c=[];if(r&&c.push(this.element),n.length>0){n=(n=n.replace(sk,"."+this._enterClassName)).replace(Ede,"."+this._leaveClassName);let b=this._driver.query(this.element,n,1!=o);0!==o&&(b=o<0?b.slice(b.length+o,b.length):b.slice(0,o)),c.push(...b)}return!a&&0==c.length&&l.push(function TM(e){return new i.vHH(3014,!1)}()),c}}class lC{constructor(n,t,o,r){this._driver=n,this.element=t,this.startTime=o,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new lC(this._driver,n,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,o]of this._globalTimelineStyles)this._backFill.set(t,o||zu),this._currentKeyframe.set(t,zu);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,o,r){var a;t&&this._previousKeyframe.set("easing",t);const l=r&&r.params||{},c=function u8(e,n){const t=new Map;let o;return e.forEach(r=>{if("*"===r){o=o||n.keys();for(let a of o)t.set(a,zu)}else Jg(r,t)}),t}(n,this._globalTimelineStyles);for(let[p,b]of c){const T=eC(b,l,o);this._pendingStyles.set(p,T),this._localTimelineStyles.has(p)||this._backFill.set(p,null!==(a=this._globalTimelineStyles.get(p))&&void 0!==a?a:zu),this._updateStyle(p,T)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let t in this._currentKeyframe)n.push(t);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,o)=>{const r=this._styleSummary.get(o);(!r||t.time>r.time)&&this._updateStyle(o,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,o=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((c,p)=>{const b=Jg(c,new Map,this._backFill);b.forEach((T,L)=>{"!"===T?n.add(L):T===zu&&t.add(L)}),o||b.set("offset",p/this.duration),r.push(b)});const a=n.size?tC(n.values()):[],l=t.size?tC(t.values()):[];if(o){const c=r[0],p=new Map(c);c.set("offset",0),p.set("offset",1),r=[c,p]}return c8(this.element,r,a,l,this.duration,this.startTime,this.easing,!1)}}class KM extends lC{constructor(n,t,o,r,a,l,c=!1){super(n,t,l.delay),this.keyframes=o,this.preStyleProps=r,this.postStyleProps=a,this._stretchStartingKeyframe=c,this.timings={duration:l.duration,delay:l.delay,easing:l.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:t,duration:o,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const a=[],l=o+t,c=t/l,p=Jg(n[0]);p.set("offset",0),a.push(p);const b=Jg(n[0]);b.set("offset",YM(c)),a.push(b);const T=n.length-1;for(let L=1;L<=T;L++){let N=Jg(n[L]);const G=N.get("offset");N.set("offset",YM((t+G*o)/l)),a.push(N)}o=l,t=0,r="",n=a}return c8(this.element,n,this.preStyleProps,this.postStyleProps,o,t,r,!0)}}function YM(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}class p8{}const $M=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class ZM extends p8{normalizePropertyName(n,t){return r8(n)}normalizeStyleValue(n,t,o,r){let a="";const l=o.toString().trim();if($M.has(t)&&0!==o&&"0"!==o)if("number"==typeof o)a="px";else{const c=o.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&r.push(function wM(e,n){return new i.vHH(3005,!1)}())}return l+a}}function lv(e,n,t,o,r,a,l,c,p,b,T,L,N){return{type:0,element:e,triggerName:n,isRemovalTransition:r,fromState:t,fromStyles:a,toState:o,toStyles:l,timelines:c,queriedElements:p,preStyleProps:b,postStyleProps:T,totalTime:L,errors:N}}const JM={};class QM{constructor(n,t,o){this._triggerName=n,this.ast=t,this._stateStyles=o}match(n,t,o,r){return function iK(e,n,t,o,r){return e.some(a=>a(n,t,o,r))}(this.ast.matchers,n,t,o,r)}buildStyles(n,t,o){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(null==n?void 0:n.toString())||r),r?r.buildStyles(t,o):new Map}build(n,t,o,r,a,l,c,p,b,T){var L;const N=[],G=this.ast.options&&this.ast.options.params||JM,ie=this.buildStyles(o,c&&c.params||JM,N),ue=p&&p.params||JM,xe=this.buildStyles(r,ue,N),Se=new Set,Te=new Map,Me=new Map,Le="void"===r,He={params:ck(ue,G),delay:null===(L=this.ast.options)||void 0===L?void 0:L.delay},nt=T?[]:sv(n,t,this.ast.animation,a,l,ie,xe,He,b,N);let ut=0;if(nt.forEach(Lt=>{ut=Math.max(Lt.duration+Lt.delay,ut)}),N.length)return lv(t,this._triggerName,o,r,Le,ie,xe,[],[],Te,Me,ut,N);nt.forEach(Lt=>{const Kt=Lt.element,tn=md(Te,Kt,new Set);Lt.preStyleProps.forEach(Cn=>tn.add(Cn));const Pn=md(Me,Kt,new Set);Lt.postStyleProps.forEach(Cn=>Pn.add(Cn)),Kt!==t&&Se.add(Kt)});const wt=tC(Se.values());return lv(t,this._triggerName,o,r,Le,ie,xe,nt,wt,Te,Me,ut)}}function ck(e,n){const t=ov(n);for(const o in e)e.hasOwnProperty(o)&&null!=e[o]&&(t[o]=e[o]);return t}class XM{constructor(n,t,o){this.styles=n,this.defaultParams=t,this.normalizer=o}buildStyles(n,t){const o=new Map,r=ov(this.defaultParams);return Object.keys(n).forEach(a=>{const l=n[a];null!==l&&(r[a]=l)}),this.styles.styles.forEach(a=>{"string"!=typeof a&&a.forEach((l,c)=>{l&&(l=eC(l,r,t));const p=this.normalizer.normalizePropertyName(c,t);l=this.normalizer.normalizeStyleValue(c,p,l,t),o.set(p,l)})}),o}}class ew{constructor(n,t,o){this.name=n,this.ast=t,this._normalizer=o,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{this.states.set(r.name,new XM(r.style,r.options&&r.options.params||{},o))}),dk(this.states,"true","1"),dk(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new QM(n,r,this.states))}),this.fallbackTransition=function c2(e,n,t){return new QM(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(l,c)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,o,r){return this.transitionFactories.find(l=>l.match(n,t,o,r))||null}matchStyles(n,t,o){return this.fallbackTransition.buildStyles(n,t,o)}}function dk(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}const oK=new aC;class Ade{constructor(n,t,o){this.bodyNode=n,this._driver=t,this._normalizer=o,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){const o=[],a=UM(this._driver,t,o,[]);if(o.length)throw function qb(e){return new i.vHH(3503,!1)}();this._animations.set(n,a)}_buildPlayer(n,t,o){const r=n.element,a=Jb(0,this._normalizer,0,n.keyframes,t,o);return this._driver.animate(r,a,n.duration,n.delay,n.easing,[],!0)}create(n,t,o={}){const r=[],a=this._animations.get(n);let l;const c=new Map;if(a?(l=sv(this._driver,t,a,Xb,Bp,new Map,new Map,o,oK,r),l.forEach(T=>{const L=md(c,T.element,new Map);T.postStyleProps.forEach(N=>L.set(N,null))})):(r.push(function Kg(){return new i.vHH(3300,!1)}()),l=[]),r.length)throw function r2(e){return new i.vHH(3504,!1)}();c.forEach((T,L)=>{T.forEach((N,G)=>{T.set(G,this._driver.computeStyle(L,G,zu))})});const b=qg(l.map(T=>{const L=c.get(T.element);return this._buildPlayer(T,new Map,L)}));return this._playersById.set(n,b),b.onDestroy(()=>this.destroy(n)),this.players.push(b),b}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const o=this.players.indexOf(t);o>=0&&this.players.splice(o,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function iv(e){return new i.vHH(3301,!1)}();return t}listen(n,t,o,r){const a=ng(t,"","","");return X4(this._getPlayer(n),o,a,r),()=>{}}command(n,t,o,r){if("register"==o)return void this.register(n,r[0]);if("create"==o)return void this.create(n,t,r[0]||{});const a=this._getPlayer(n);switch(o){case"play":a.play();break;case"pause":a.pause();break;case"reset":a.reset();break;case"restart":a.restart();break;case"finish":a.finish();break;case"init":a.init();break;case"setPosition":a.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const uk="ng-animate-queued",nw="ng-animate-disabled",hk=[],ow={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},gk={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_d="__ng_removed";class rw{constructor(n,t=""){this.namespaceId=t;const o=n&&n.hasOwnProperty("value");if(this.value=function sK(e){return null!=e?e:null}(o?n.value:n),o){const a=ov(n);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const t=n.params;if(t){const o=this.options.params;Object.keys(t).forEach(r=>{null==o[r]&&(o[r]=t[r])})}}}const cC="void",aw=new rw(cC);class rK{constructor(n,t,o){this.id=n,this.hostElement=t,this._engine=o,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,zp(t,this._hostClassName)}listen(n,t,o,r){if(!this._triggers.has(t))throw function $b(e,n){return new i.vHH(3302,!1)}();if(null==o||0==o.length)throw function EM(e){return new i.vHH(3303,!1)}();if(!function lK(e){return"start"==e||"done"==e}(o))throw function kM(e,n){return new i.vHH(3400,!1)}();const a=md(this._elementListeners,n,[]),l={name:t,phase:o,callback:r};a.push(l);const c=md(this._engine.statesByElement,n,new Map);return c.has(t)||(zp(n,e8),zp(n,e8+"-"+t),c.set(t,aw)),()=>{this._engine.afterFlush(()=>{const p=a.indexOf(l);p>=0&&a.splice(p,1),this._triggers.has(t)||c.delete(t)})}}register(n,t){return!this._triggers.has(n)&&(this._triggers.set(n,t),!0)}_getTrigger(n){const t=this._triggers.get(n);if(!t)throw function df(e){return new i.vHH(3401,!1)}();return t}trigger(n,t,o,r=!0){const a=this._getTrigger(t),l=new ag(this.id,t,n);let c=this._engine.statesByElement.get(n);c||(zp(n,e8),zp(n,e8+"-"+t),this._engine.statesByElement.set(n,c=new Map));let p=c.get(t);const b=new rw(o,this.id);if(!(o&&o.hasOwnProperty("value"))&&p&&b.absorbOptions(p.options),c.set(t,b),p||(p=aw),b.value!==cC&&p.value===b.value){if(!function m8(e,n){const t=Object.keys(e),o=Object.keys(n);if(t.length!=o.length)return!1;for(let r=0;r{rg(n,ue),Sl(n,xe)})}return}const N=md(this._engine.playersByElement,n,[]);N.forEach(ie=>{ie.namespaceId==this.id&&ie.triggerName==t&&ie.queued&&ie.destroy()});let G=a.matchTransition(p.value,b.value,n,b.params),Y=!1;if(!G){if(!r)return;G=a.fallbackTransition,Y=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:G,fromState:p,toState:b,player:l,isFallbackTransition:Y}),Y||(zp(n,uk),l.onStart(()=>{dv(n,uk)})),l.onDone(()=>{let ie=this.players.indexOf(l);ie>=0&&this.players.splice(ie,1);const ue=this._engine.playersByElement.get(n);if(ue){let xe=ue.indexOf(l);xe>=0&&ue.splice(xe,1)}}),this.players.push(l),N.push(l),l}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,o)=>{this._elementListeners.set(o,t.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(o=>o.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const o=this._engine.driver.query(n,t8,!0);o.forEach(r=>{if(r[_d])return;const a=this._engine.fetchNamespacesByElement(r);a.size?a.forEach(l=>l.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>o.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,t,o,r){const a=this._engine.statesByElement.get(n),l=new Map;if(a){const c=[];if(a.forEach((p,b)=>{if(l.set(b,p.value),this._triggers.has(b)){const T=this.trigger(n,b,cC,r);T&&c.push(T)}}),c.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,l),o&&qg(c).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),o=this._engine.statesByElement.get(n);if(t&&o){const r=new Set;t.forEach(a=>{const l=a.name;if(r.has(l))return;r.add(l);const p=this._triggers.get(l).fallbackTransition,b=o.get(l)||aw,T=new rw(cC),L=new ag(this.id,l,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:l,transition:p,fromState:b,toState:T,player:L,isFallbackTransition:!0})})}}removeNode(n,t){const o=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let r=!1;if(o.totalAnimations){const a=o.players.length?o.playersByQueriedElement.get(n):[];if(a&&a.length)r=!0;else{let l=n;for(;l=l.parentNode;)if(o.statesByElement.get(l)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)o.markElementAsRemoved(this.id,n,!1,t);else{const a=n[_d];(!a||a===ow)&&(o.afterFlush(()=>this.clearElementCache(n)),o.destroyInnerAnimations(n),o._onRemovalComplete(n,t))}}insertNode(n,t){zp(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(o=>{const r=o.player;if(r.destroyed)return;const a=o.element,l=this._elementListeners.get(a);l&&l.forEach(c=>{if(c.name==o.triggerName){const p=ng(a,o.triggerName,o.fromState.value,o.toState.value);p._data=n,X4(o.player,c.phase,p,c.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(o)}),this._queue=[],t.sort((o,r)=>{const a=o.transition.ast.depCount,l=r.transition.ast.depCount;return 0==a||0==l?a-l:this._engine.driver.containsElement(o.element,r.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let t=!1;return this._elementListeners.has(n)&&(t=!0),t=!!this._queue.find(o=>o.element===n)||t,t}}class aK{constructor(n,t,o){this.bodyNode=n,this.driver=t,this._normalizer=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,a)=>{}}_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(o=>{o.queued&&n.push(o)})}),n}createNamespace(n,t){const o=new rK(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(o,t):(this.newHostElements.set(t,o),this.collectEnterElement(t)),this._namespaceLookup[n]=o}_balanceNamespaceList(n,t){const o=this._namespaceList,r=this.namespacesByHostElement;if(o.length-1>=0){let l=!1,c=this.driver.getParentElement(t);for(;c;){const p=r.get(c);if(p){const b=o.indexOf(p);o.splice(b+1,0,n),l=!0;break}c=this.driver.getParentElement(c)}l||o.unshift(n)}else o.push(n);return r.set(t,n),n}register(n,t){let o=this._namespaceLookup[n];return o||(o=this.createNamespace(n,t)),o}registerTrigger(n,t,o){let r=this._namespaceLookup[n];r&&r.register(t,o)&&this.totalAnimations++}destroy(n,t){if(!n)return;const o=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(o.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(o);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>o.destroy(t))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,o=this.statesByElement.get(n);if(o)for(let r of o.values())if(r.namespaceId){const a=this._fetchNamespace(r.namespaceId);a&&t.add(a)}return t}trigger(n,t,o,r){if(f8(t)){const a=this._fetchNamespace(n);if(a)return a.trigger(t,o,r),!0}return!1}insertNode(n,t,o,r){if(!f8(t))return;const a=t[_d];if(a&&a.setForRemoval){a.setForRemoval=!1,a.setForMove=!0;const l=this.collectedLeaveElements.indexOf(t);l>=0&&this.collectedLeaveElements.splice(l,1)}if(n){const l=this._fetchNamespace(n);l&&l.insertNode(t,o)}r&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),zp(n,nw)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),dv(n,nw))}removeNode(n,t,o,r){if(f8(t)){const a=n?this._fetchNamespace(n):null;if(a?a.removeNode(t,r):this.markElementAsRemoved(n,t,!1,r),o){const l=this.namespacesByHostElement.get(t);l&&l.id!==n&&l.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(n,t,o,r,a){this.collectedLeaveElements.push(t),t[_d]={namespaceId:n,setForRemoval:r,hasAnimation:o,removedBeforeQueried:!1,previousTriggersValues:a}}listen(n,t,o,r,a){return f8(t)?this._fetchNamespace(n).listen(t,o,r,a):()=>{}}_buildInstruction(n,t,o,r,a){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,o,r,n.fromState.options,n.toState.options,t,a)}destroyInnerAnimations(n){let t=this.driver.query(n,t8,!0);t.forEach(o=>this.destroyActiveAnimationsForElement(o)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,n8,!0),t.forEach(o=>this.finishActiveQueriedAnimationOnElement(o)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(o=>{o.queued?o.markedForDestroy=!0:o.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(o=>o.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return qg(this.players).onDone(()=>n());n()})}processLeaveNode(n){var t;const o=n[_d];if(o&&o.setForRemoval){if(n[_d]=ow,o.namespaceId){this.destroyInnerAnimations(n);const r=this._fetchNamespace(o.namespaceId);r&&r.clearElementCache(n)}this._onRemovalComplete(n,o.setForRemoval)}!(null===(t=n.classList)||void 0===t)&&t.contains(nw)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((o,r)=>this._balanceNamespaceList(o,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let o=0;oo()),this._flushFns=[],this._whenQuietFns.length){const o=this._whenQuietFns;this._whenQuietFns=[],t.length?qg(t).onDone(()=>{o.forEach(r=>r())}):o.forEach(r=>r())}}reportError(n){throw function a2(e){return new i.vHH(3402,!1)}()}_flushAnimations(n,t){const o=new aC,r=[],a=new Map,l=[],c=new Map,p=new Map,b=new Map,T=new Set;this.disabledNodes.forEach(nn=>{T.add(nn);const mn=this.driver.query(nn,".ng-animate-queued",!0);for(let Bn=0;Bn{const Bn=Xb+ie++;Y.set(mn,Bn),nn.forEach(ni=>zp(ni,Bn))});const ue=[],xe=new Set,Se=new Set;for(let nn=0;nnxe.add(ni)):Se.add(mn))}const Te=new Map,Me=_k(N,Array.from(xe));Me.forEach((nn,mn)=>{const Bn=Bp+ie++;Te.set(mn,Bn),nn.forEach(ni=>zp(ni,Bn))}),n.push(()=>{G.forEach((nn,mn)=>{const Bn=Y.get(mn);nn.forEach(ni=>dv(ni,Bn))}),Me.forEach((nn,mn)=>{const Bn=Te.get(mn);nn.forEach(ni=>dv(ni,Bn))}),ue.forEach(nn=>{this.processLeaveNode(nn)})});const Le=[],He=[];for(let nn=this._namespaceList.length-1;nn>=0;nn--)this._namespaceList[nn].drainQueuedTransitions(t).forEach(Bn=>{const ni=Bn.player,ui=Bn.element;if(Le.push(ni),this.collectedEnterElements.length){const on=ui[_d];if(on&&on.setForMove){if(on.previousTriggersValues&&on.previousTriggersValues.has(Bn.triggerName)){const un=on.previousTriggersValues.get(Bn.triggerName),Yn=this.statesByElement.get(Bn.element);if(Yn&&Yn.has(Bn.triggerName)){const oi=Yn.get(Bn.triggerName);oi.value=un,Yn.set(Bn.triggerName,oi)}}return void ni.destroy()}}const po=!L||!this.driver.containsElement(L,ui),it=Te.get(ui),vt=Y.get(ui),xt=this._buildInstruction(Bn,o,vt,it,po);if(xt.errors&&xt.errors.length)return void He.push(xt);if(po)return ni.onStart(()=>rg(ui,xt.fromStyles)),ni.onDestroy(()=>Sl(ui,xt.toStyles)),void r.push(ni);if(Bn.isFallbackTransition)return ni.onStart(()=>rg(ui,xt.fromStyles)),ni.onDestroy(()=>Sl(ui,xt.toStyles)),void r.push(ni);const $t=[];xt.timelines.forEach(on=>{on.stretchStartingKeyframe=!0,this.disabledNodes.has(on.element)||$t.push(on)}),xt.timelines=$t,o.append(ui,xt.timelines),l.push({instruction:xt,player:ni,element:ui}),xt.queriedElements.forEach(on=>md(c,on,[]).push(ni)),xt.preStyleProps.forEach((on,un)=>{if(on.size){let Yn=p.get(un);Yn||p.set(un,Yn=new Set),on.forEach((oi,Bi)=>Yn.add(Bi))}}),xt.postStyleProps.forEach((on,un)=>{let Yn=b.get(un);Yn||b.set(un,Yn=new Set),on.forEach((oi,Bi)=>Yn.add(Bi))})});if(He.length){const nn=[];He.forEach(mn=>{nn.push(function Yg(e,n){return new i.vHH(3505,!1)}())}),Le.forEach(mn=>mn.destroy()),this.reportError(nn)}const nt=new Map,ut=new Map;l.forEach(nn=>{const mn=nn.element;o.has(mn)&&(ut.set(mn,mn),this._beforeAnimationBuild(nn.player.namespaceId,nn.instruction,nt))}),r.forEach(nn=>{const mn=nn.element;this._getPreviousPlayers(mn,!1,nn.namespaceId,nn.triggerName,null).forEach(ni=>{md(nt,mn,[]).push(ni),ni.destroy()})});const wt=ue.filter(nn=>Qg(nn,p,b)),Lt=new Map;mk(Lt,this.driver,Se,b,zu).forEach(nn=>{Qg(nn,p,b)&&wt.push(nn)});const tn=new Map;G.forEach((nn,mn)=>{mk(tn,this.driver,new Set(nn),p,"!")}),wt.forEach(nn=>{var mn,Bn;const ni=Lt.get(nn),ui=tn.get(nn);Lt.set(nn,new Map([...Array.from(null!==(mn=null==ni?void 0:ni.entries())&&void 0!==mn?mn:[]),...Array.from(null!==(Bn=null==ui?void 0:ui.entries())&&void 0!==Bn?Bn:[])]))});const Pn=[],Cn=[],Yt={};l.forEach(nn=>{const{element:mn,player:Bn,instruction:ni}=nn;if(o.has(mn)){if(T.has(mn))return Bn.onDestroy(()=>Sl(mn,ni.toStyles)),Bn.disabled=!0,Bn.overrideTotalTime(ni.totalTime),void r.push(Bn);let ui=Yt;if(ut.size>1){let it=mn;const vt=[];for(;it=it.parentNode;){const xt=ut.get(it);if(xt){ui=xt;break}vt.push(it)}vt.forEach(xt=>ut.set(xt,ui))}const po=this._buildAnimation(Bn.namespaceId,ni,nt,a,tn,Lt);if(Bn.setRealPlayer(po),ui===Yt)Pn.push(Bn);else{const it=this.playersByElement.get(ui);it&&it.length&&(Bn.parentPlayer=qg(it)),r.push(Bn)}}else rg(mn,ni.fromStyles),Bn.onDestroy(()=>Sl(mn,ni.toStyles)),Cn.push(Bn),T.has(mn)&&r.push(Bn)}),Cn.forEach(nn=>{const mn=a.get(nn.element);if(mn&&mn.length){const Bn=qg(mn);nn.setRealPlayer(Bn)}}),r.forEach(nn=>{nn.parentPlayer?nn.syncPlayerEvents(nn.parentPlayer):nn.destroy()});for(let nn=0;nn!po.destroyed);ui.length?cK(this,mn,ui):this.processLeaveNode(mn)}return ue.length=0,Pn.forEach(nn=>{this.players.push(nn),nn.onDone(()=>{nn.destroy();const mn=this.players.indexOf(nn);this.players.splice(mn,1)}),nn.play()}),Pn}elementContainsData(n,t){let o=!1;const r=t[_d];return r&&r.setForRemoval&&(o=!0),this.playersByElement.has(t)&&(o=!0),this.playersByQueriedElement.has(t)&&(o=!0),this.statesByElement.has(t)&&(o=!0),this._fetchNamespace(n).elementContainsData(t)||o}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,o,r,a){let l=[];if(t){const c=this.playersByQueriedElement.get(n);c&&(l=c)}else{const c=this.playersByElement.get(n);if(c){const p=!a||a==cC;c.forEach(b=>{b.queued||!p&&b.triggerName!=r||l.push(b)})}}return(o||r)&&(l=l.filter(c=>!(o&&o!=c.namespaceId||r&&r!=c.triggerName))),l}_beforeAnimationBuild(n,t,o){const a=t.element,l=t.isRemovalTransition?void 0:n,c=t.isRemovalTransition?void 0:t.triggerName;for(const p of t.timelines){const b=p.element,T=b!==a,L=md(o,b,[]);this._getPreviousPlayers(b,T,l,c,t.toState).forEach(G=>{const Y=G.getRealPlayer();Y.beforeDestroy&&Y.beforeDestroy(),G.destroy(),L.push(G)})}rg(a,t.fromStyles)}_buildAnimation(n,t,o,r,a,l){const c=t.triggerName,p=t.element,b=[],T=new Set,L=new Set,N=t.timelines.map(Y=>{const ie=Y.element;T.add(ie);const ue=ie[_d];if(ue&&ue.removedBeforeQueried)return new lf(Y.duration,Y.delay);const xe=ie!==p,Se=function dK(e){const n=[];return vk(e,n),n}((o.get(ie)||hk).map(nt=>nt.getRealPlayer())).filter(nt=>!!nt.element&&nt.element===ie),Te=a.get(ie),Me=l.get(ie),Le=Jb(0,this._normalizer,0,Y.keyframes,Te,Me),He=this._buildPlayer(Y,Le,Se);if(Y.subTimeline&&r&&L.add(ie),xe){const nt=new ag(n,c,ie);nt.setRealPlayer(He),b.push(nt)}return He});b.forEach(Y=>{md(this.playersByQueriedElement,Y.element,[]).push(Y),Y.onDone(()=>function cv(e,n,t){let o=e.get(n);if(o){if(o.length){const r=o.indexOf(t);o.splice(r,1)}0==o.length&&e.delete(n)}return o}(this.playersByQueriedElement,Y.element,Y))}),T.forEach(Y=>zp(Y,JE));const G=qg(N);return G.onDestroy(()=>{T.forEach(Y=>dv(Y,JE)),Sl(p,t.toStyles)}),L.forEach(Y=>{md(r,Y,[]).push(G)}),G}_buildPlayer(n,t,o){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,o):new lf(n.duration,n.delay)}}class ag{constructor(n,t,o){this.namespaceId=n,this.triggerName=t,this.element=o,this._player=new lf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,o)=>{t.forEach(r=>X4(n,o,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){md(this._queuedCallbacks,n,[]).push(t)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const t=this._player;t.triggerCallback&&t.triggerCallback(n)}}function f8(e){return e&&1===e.nodeType}function fk(e,n){const t=e.style.display;return e.style.display=null!=n?n:"none",t}function mk(e,n,t,o,r){const a=[];t.forEach(p=>a.push(fk(p)));const l=[];o.forEach((p,b)=>{const T=new Map;p.forEach(L=>{const N=n.computeStyle(b,L,r);T.set(L,N),(!N||0==N.length)&&(b[_d]=gk,l.push(b))}),e.set(b,T)});let c=0;return t.forEach(p=>fk(p,a[c++])),l}function _k(e,n){const t=new Map;if(e.forEach(c=>t.set(c,[])),0==n.length)return t;const r=new Set(n),a=new Map;function l(c){if(!c)return 1;let p=a.get(c);if(p)return p;const b=c.parentNode;return p=t.has(b)?b:r.has(b)?1:l(b),a.set(c,p),p}return n.forEach(c=>{const p=l(c);1!==p&&t.get(p).push(c)}),t}function zp(e,n){var t;null===(t=e.classList)||void 0===t||t.add(n)}function dv(e,n){var t;null===(t=e.classList)||void 0===t||t.remove(n)}function cK(e,n,t){qg(t).onDone(()=>e.processLeaveNode(n))}function vk(e,n){for(let t=0;tr.add(a)):n.set(e,o),t.delete(e),!0}class uf{constructor(n,t,o){this.bodyNode=n,this._driver=t,this._normalizer=o,this._triggerCache={},this.onRemovalComplete=(r,a)=>{},this._transitionEngine=new aK(n,t,o),this._timelineEngine=new Ade(n,t,o),this._transitionEngine.onRemovalComplete=(r,a)=>this.onRemovalComplete(r,a)}registerTrigger(n,t,o,r,a){const l=n+"-"+r;let c=this._triggerCache[l];if(!c){const p=[],T=UM(this._driver,a,p,[]);if(p.length)throw function Q4(e,n){return new i.vHH(3404,!1)}();c=function h8(e,n,t){return new ew(e,n,t)}(r,T,this._normalizer),this._triggerCache[l]=c}this._transitionEngine.registerTrigger(t,r,c)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,o,r){this._transitionEngine.insertNode(n,t,o,r)}onRemove(n,t,o,r){this._transitionEngine.removeNode(n,t,r||!1,o)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,o,r){if("@"==o.charAt(0)){const[a,l]=Da(o);this._timelineEngine.command(a,t,l,r)}else this._transitionEngine.trigger(n,t,o,r)}listen(n,t,o,r,a){if("@"==o.charAt(0)){const[l,c]=Da(o);return this._timelineEngine.listen(l,t,c,a)}return this._transitionEngine.listen(n,t,o,r,a)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let yk=(()=>{class e{constructor(t,o,r){this._element=t,this._startStyles=o,this._endStyles=r,this._state=0;let a=e.initialStylesByElement.get(t);a||e.initialStylesByElement.set(t,a=new Map),this._initialStyles=a}start(){this._state<1&&(this._startStyles&&Sl(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Sl(this._element,this._initialStyles),this._endStyles&&(Sl(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(rg(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(rg(this._element,this._endStyles),this._endStyles=null),Sl(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function _8(e){let n=null;return e.forEach((t,o)=>{(function Lde(e){return"display"===e||"position"===e})(o)&&(n=n||new Map,n.set(o,t))}),n}class uK{constructor(n,t,o,r){this.element=n,this.keyframes=t,this.options=o,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=o.duration,this._delay=o.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const t=[];return n.forEach(o=>{t.push(Object.fromEntries(o))}),t}_triggerWebAnimation(n,t,o){return n.animate(this._convertKeyframesToObject(t),o)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((o,r)=>{"offset"!==r&&n.set(r,this._finished?o:XE(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(o=>o()),t.length=0}}class Rde{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,t){return!1}containsElement(n,t){return ig(n,t)}getParentElement(n){return pt(n)}query(n,t,o){return Zg(n,t,o)}computeStyle(n,t,o){return window.getComputedStyle(n)[t]}animate(n,t,o,r,a,l=[]){const p={duration:o,delay:r,fill:0==r?"both":"forwards"};a&&(p.easing=a);const b=new Map,T=l.filter(G=>G instanceof uK);(function $W(e,n){return 0===e||0===n})(o,r)&&T.forEach(G=>{G.currentSnapshot.forEach((Y,ie)=>b.set(ie,Y))});let L=function WW(e){return e.length?e[0]instanceof Map?e:e.map(n=>QE(n)):[]}(t).map(G=>Jg(G));L=function NM(e,n,t){if(t.size&&n.length){let o=n[0],r=[];if(t.forEach((a,l)=>{o.has(l)||r.push(l),o.set(l,a)}),r.length)for(let a=1;al.set(c,XE(e,c)))}}return n}(n,L,b);const N=function Ck(e,n){let t=null,o=null;return Array.isArray(n)&&n.length?(t=_8(n[0]),n.length>1&&(o=_8(n[n.length-1]))):n instanceof Map&&(t=_8(n)),t||o?new yk(e,t,o):null}(n,L);return new uK(n,L,p,N)}}let sw=(()=>{class e extends mh{constructor(t,o){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(o.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(t){const o=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?tg(t):t;return pK(this._renderer,null,o,"register",[r]),new lw(o,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.FYo),i.LFG(x))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})();class lw extends class Ub{}{constructor(n,t){super(),this._id=n,this._renderer=t}create(n,t){return new Bde(this._id,n,t||{},this._renderer)}}class Bde{constructor(n,t,o,r){this.id=n,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",o)}_listen(n,t){return this._renderer.listen(this.element,`@@${this.id}:${n}`,t)}_command(n,...t){return pK(this._renderer,this.element,this.id,n,t)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,t;return null!==(t=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==t?t:0}}function pK(e,n,t,o,r){return e.setProperty(n,`@@${t}:${o}`,r)}const bk="@.disabled";let hK=(()=>{class e{constructor(t,o,r){this.delegate=t,this.engine=o,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),o.onRemovalComplete=(a,l)=>{const c=null==l?void 0:l.parentNode(a);c&&l.removeChild(c,a)}}createRenderer(t,o){const a=this.delegate.createRenderer(t,o);if(!(t&&o&&o.data&&o.data.animation)){let T=this._rendererCache.get(a);return T||(T=new xk("",a,this.engine,()=>this._rendererCache.delete(a)),this._rendererCache.set(a,T)),T}const l=o.id,c=o.id+"-"+this._currentId;this._currentId++,this.engine.register(c,t);const p=T=>{Array.isArray(T)?T.forEach(p):this.engine.registerTrigger(l,c,t,T.name,T)};return o.data.animation.forEach(p),new gK(this,c,a,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,o,r){t>=0&&to(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(a=>{const[l,c]=a;l(c)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([o,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(i.FYo),i.LFG(uf),i.LFG(i.R0b))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})();class xk{constructor(n,t,o,r){this.namespaceId=n,this.delegate=t,this.engine=o,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?a=>t.destroyNode(a):null}get data(){return this.delegate.data}destroy(){var n;this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),null===(n=this._onDestroy)||void 0===n||n.call(this)}createElement(n,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,o,r=!0){this.delegate.insertBefore(n,t,o),this.engine.onInsert(this.namespaceId,t,n,r)}removeChild(n,t,o){this.engine.onRemove(this.namespaceId,t,this.delegate,o)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,o,r){this.delegate.setAttribute(n,t,o,r)}removeAttribute(n,t,o){this.delegate.removeAttribute(n,t,o)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,o,r){this.delegate.setStyle(n,t,o,r)}removeStyle(n,t,o){this.delegate.removeStyle(n,t,o)}setProperty(n,t,o){"@"==t.charAt(0)&&t==bk?this.disableAnimations(n,!!o):this.delegate.setProperty(n,t,o)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,o){return this.delegate.listen(n,t,o)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class gK extends xk{constructor(n,t,o,r,a){super(t,o,r,a),this.factory=n,this.namespaceId=t}setProperty(n,t,o){"@"==t.charAt(0)?"."==t.charAt(1)&&t==bk?this.disableAnimations(n,o=void 0===o||!!o):this.engine.process(this.namespaceId,n,t.slice(1),o):this.delegate.setProperty(n,t,o)}listen(n,t,o){if("@"==t.charAt(0)){const r=function Ok(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let a=t.slice(1),l="";return"@"!=a.charAt(0)&&([a,l]=function v8(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(a)),this.engine.listen(this.namespaceId,r,a,l,c=>{this.factory.scheduleListenerCallback(c._data||-1,o,c)})}return this.delegate.listen(n,t,o)}}let Mk=(()=>{class e extends uf{constructor(t,o,r,a){super(t.body,o,r)}ngOnDestroy(){this.flush()}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(x),i.LFG(Qb),i.LFG(p8),i.LFG(i.z2F))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})();const lc=[{provide:mh,useClass:sw},{provide:p8,useFactory:function cw(){return new ZM}},{provide:uf,useClass:Mk},{provide:i.FYo,useFactory:function fK(e,n,t){return new hK(e,n,t)},deps:[Xo,uf,i.R0b]}],C8=[{provide:Qb,useFactory:()=>new Rde},{provide:i.QbO,useValue:"BrowserAnimations"},...lc],wk=[{provide:Qb,useClass:$E},{provide:i.QbO,useValue:"NoopAnimations"},...lc];let dw=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?wk:C8}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({providers:C8,imports:[Ve]}),e})();var To=O(9646),ws=O(9751),pf=O(4351),Hp=O(9300),zi=O(4004);class uv{}class y8{}class sg{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(t=>{const o=t.indexOf(":");if(o>0){const r=t.slice(0,o),a=r.toLowerCase(),l=t.slice(o+1).trim();this.maybeSetNormalizedName(r,a),this.headers.has(a)?this.headers.get(a).push(l):this.headers.set(a,[l])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(t=>{let o=n[t];const r=t.toLowerCase();"string"==typeof o&&(o=[o]),o.length>0&&(this.headers.set(r,o),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof sg?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new sg;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof sg?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let o=n.value;if("string"==typeof o&&(o=[o]),0===o.length)return;this.maybeSetNormalizedName(n.name,t);const r=("a"===n.op?this.headers.get(t):void 0)||[];r.push(...o),this.headers.set(t,r);break;case"d":const a=n.value;if(a){let l=this.headers.get(t);if(!l)return;l=l.filter(c=>-1===a.indexOf(c)),0===l.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,l)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class Pk{encodeKey(n){return b8(n)}encodeValue(n){return b8(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const Sk=/%(\d[a-f0-9])/gi,Tk={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function b8(e){return encodeURIComponent(e).replace(Sk,(n,t)=>{var o;return null!==(o=Tk[t])&&void 0!==o?o:n})}function uw(e){return`${e}`}class ep{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Pk,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function vK(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{const a=r.indexOf("="),[l,c]=-1==a?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,a)),n.decodeValue(r.slice(a+1))],p=t.get(l)||[];p.push(c),t.set(l,p)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const o=n.fromObject[t],r=Array.isArray(o)?o.map(uw):[uw(o)];this.map.set(t,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(o=>{const r=n[o];Array.isArray(r)?r.forEach(a=>{t.push({param:o,value:a,op:"a"})}):t.push({param:o,value:r,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(o=>t+"="+this.encoder.encodeValue(o)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new ep({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(uw(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let o=this.map.get(n.param)||[];const r=o.indexOf(uw(n.value));-1!==r&&o.splice(r,1),o.length>0?this.map.set(n.param,o):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class Ik{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function hf(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function kk(e){return"undefined"!=typeof Blob&&e instanceof Blob}function x8(e){return"undefined"!=typeof FormData&&e instanceof FormData}class uC{constructor(n,t,o,r){let a;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function Ek(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==o?o:null,a=r):a=o,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params)),this.headers||(this.headers=new sg),this.context||(this.context=new Ik),this.params){const l=this.params.toString();if(0===l.length)this.urlWithParams=t;else{const c=t.indexOf("?");this.urlWithParams=t+(-1===c?"?":cN.set(G,n.setHeaders[G]),b)),n.setParams&&(T=Object.keys(n.setParams).reduce((N,G)=>N.set(G,n.setParams[G]),T)),new uC(o,r,l,{params:T,headers:b,context:L,reportProgress:p,responseType:a,withCredentials:c})}}var cc=(()=>((cc=cc||{})[cc.Sent=0]="Sent",cc[cc.UploadProgress=1]="UploadProgress",cc[cc.ResponseHeader=2]="ResponseHeader",cc[cc.DownloadProgress=3]="DownloadProgress",cc[cc.Response=4]="Response",cc[cc.User=5]="User",cc))();class pv{constructor(n,t=200,o="OK"){this.headers=n.headers||new sg,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||o,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class e1 extends pv{constructor(n={}){super(n),this.type=cc.ResponseHeader}clone(n={}){return new e1({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class pC extends pv{constructor(n={}){super(n),this.type=cc.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new pC({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class hC extends pv{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function pw(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let $r=(()=>{class e{constructor(t){this.handler=t}request(t,o,r={}){let a;if(t instanceof uC)a=t;else{let p,b;p=r.headers instanceof sg?r.headers:new sg(r.headers),r.params&&(b=r.params instanceof ep?r.params:new ep({fromObject:r.params})),a=new uC(t,o,void 0!==r.body?r.body:null,{headers:p,context:r.context,params:b,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const l=(0,To.of)(a).pipe((0,pf.b)(p=>this.handler.handle(p)));if(t instanceof uC||"events"===r.observe)return l;const c=l.pipe((0,Hp.h)(p=>p instanceof pC));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return c.pipe((0,zi.U)(p=>{if(null!==p.body&&!(p.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return p.body}));case"blob":return c.pipe((0,zi.U)(p=>{if(null!==p.body&&!(p.body instanceof Blob))throw new Error("Response is not a Blob.");return p.body}));case"text":return c.pipe((0,zi.U)(p=>{if(null!==p.body&&"string"!=typeof p.body)throw new Error("Response is not a string.");return p.body}));default:return c.pipe((0,zi.U)(p=>p.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,o={}){return this.request("DELETE",t,o)}get(t,o={}){return this.request("GET",t,o)}head(t,o={}){return this.request("HEAD",t,o)}jsonp(t,o){return this.request("JSONP",t,{params:(new ep).append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,o={}){return this.request("OPTIONS",t,o)}patch(t,o,r={}){return this.request("PATCH",t,pw(r,o))}post(t,o,r={}){return this.request("POST",t,pw(r,o))}put(t,o,r={}){return this.request("PUT",t,pw(r,o))}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(uv))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})();class hw{constructor(n,t){this.next=n,this.interceptor=t}handle(n){return this.interceptor.intercept(n,this.next)}}const t1=new i.OlP("HTTP_INTERCEPTORS");let CK=(()=>{class e{intercept(t,o){return o.handle(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})();const xK=/^\)\]\}',?\n/;let Lk=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ws.y(o=>{const r=this.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach((G,Y)=>r.setRequestHeader(G,Y.join(","))),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const G=t.detectContentTypeHeader();null!==G&&r.setRequestHeader("Content-Type",G)}if(t.responseType){const G=t.responseType.toLowerCase();r.responseType="json"!==G?G:"text"}const a=t.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const G=r.statusText||"OK",Y=new sg(r.getAllResponseHeaders()),ie=function gC(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(r)||t.url;return l=new e1({headers:Y,status:r.status,statusText:G,url:ie}),l},p=()=>{let{headers:G,status:Y,statusText:ie,url:ue}=c(),xe=null;204!==Y&&(xe=void 0===r.response?r.responseText:r.response),0===Y&&(Y=xe?200:0);let Se=Y>=200&&Y<300;if("json"===t.responseType&&"string"==typeof xe){const Te=xe;xe=xe.replace(xK,"");try{xe=""!==xe?JSON.parse(xe):null}catch(Me){xe=Te,Se&&(Se=!1,xe={error:Me,text:xe})}}Se?(o.next(new pC({body:xe,headers:G,status:Y,statusText:ie,url:ue||void 0})),o.complete()):o.error(new hC({error:xe,headers:G,status:Y,statusText:ie,url:ue||void 0}))},b=G=>{const{url:Y}=c(),ie=new hC({error:G,status:r.status||0,statusText:r.statusText||"Unknown Error",url:Y||void 0});o.error(ie)};let T=!1;const L=G=>{T||(o.next(c()),T=!0);let Y={type:cc.DownloadProgress,loaded:G.loaded};G.lengthComputable&&(Y.total=G.total),"text"===t.responseType&&!!r.responseText&&(Y.partialText=r.responseText),o.next(Y)},N=G=>{let Y={type:cc.UploadProgress,loaded:G.loaded};G.lengthComputable&&(Y.total=G.total),o.next(Y)};return r.addEventListener("load",p),r.addEventListener("error",b),r.addEventListener("timeout",b),r.addEventListener("abort",b),t.reportProgress&&(r.addEventListener("progress",L),null!==a&&r.upload&&r.upload.addEventListener("progress",N)),r.send(a),o.next({type:cc.Sent}),()=>{r.removeEventListener("error",b),r.removeEventListener("abort",b),r.removeEventListener("load",p),r.removeEventListener("timeout",b),t.reportProgress&&(r.removeEventListener("progress",L),null!==a&&r.upload&&r.upload.removeEventListener("progress",N)),r.readyState!==r.DONE&&r.abort()}})}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(Zn))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})();const gf=new i.OlP("XSRF_COOKIE_NAME"),d2=new i.OlP("XSRF_HEADER_NAME");class Rk{}let Gde=(()=>{class e{constructor(t,o,r){this.doc=t,this.platform=o,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=qi(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(x),i.LFG(i.Lbi),i.LFG(gf))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})(),M8=(()=>{class e{constructor(t,o){this.tokenService=t,this.headerName=o}intercept(t,o){const r=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||r.startsWith("http://")||r.startsWith("https://"))return o.handle(t);const a=this.tokenService.getToken();return null!==a&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,a)})),o.handle(t)}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(Rk),i.LFG(d2))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})(),OK=(()=>{class e{constructor(t,o){this.backend=t,this.injector=o,this.chain=null}handle(t){if(null===this.chain){const o=this.injector.get(t1,[]);this.chain=o.reduceRight((r,a)=>new hw(r,a),this.backend)}return this.chain.handle(t)}}return e.\u0275fac=function(t){return new(t||e)(i.LFG(y8),i.LFG(i.zs3))},e.\u0275prov=i.Yz7({token:e,factory:e.\u0275fac}),e})(),Bk=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:M8,useClass:CK}]}}static withOptions(t={}){return{ngModule:e,providers:[t.cookieName?{provide:gf,useValue:t.cookieName}:[],t.headerName?{provide:d2,useValue:t.headerName}:[]]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({providers:[M8,{provide:t1,useExisting:M8,multi:!0},{provide:Rk,useClass:Gde},{provide:gf,useValue:"XSRF-TOKEN"},{provide:d2,useValue:"X-XSRF-TOKEN"}]}),e})(),zk=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.oAB({type:e}),e.\u0275inj=i.cJS({providers:[$r,{provide:uv,useClass:OK},Lk,{provide:y8,useExisting:Lk}],imports:[Bk.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),e})();const w8=Zn;function Xt(){return Xt=Object.assign?Object.assign.bind():function(e){for(var n=1;n{if(Array.isArray(e))return e.map(n);var t=[];for(var o in e)t.push(n(e[o],o));return t},je=(e,n)=>{if(e){if("length"in e)for(var t=0;t{if(e&&"length"in e&&0!==e.length)for(var t=e.length-1;t>=0&&!1!==n.call(e[t],t,e[t]);t--);},Fk=function(){},fw=function(e){return"undefined"!=typeof console&&qn(console[e])?console[e].bind(console):Fk},u2={info:fw("info"),warn:fw("warn"),error:fw("error")},S8=function(e,n,t){for(var o in e=e||{},n)Object.prototype.hasOwnProperty.call(n,o)&&(!(o in e)||t)&&(e[o]=n[o]);return e},ye=function e(n){var t=1,o=!1;for("boolean"==typeof(n=n||{})&&(o=n,n=arguments[1]||{},t++);t","g")],function(n){return String(n).replace(e[0],"&").replace(e[1],""").replace(e[2],"'").replace(e[3],"<").replace(e[4],">")});function ga(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),o=1;o{Wi(r)&&(r=r.replace(/\$/g,"$$$$"));var l=new RegExp("\\{"+a+"\\}","gm");e=e.replace(l,r)}),e)}var mC=function(){var e=/\s/g;return function(n){return!n||!n.replace(e,"")}}(),_w="21.2.12",SK="http://js.devexpress.com/error/"+_w.split(".").slice(0,2).join("_")+"/";function Wr(e,n){var t={ERROR_MESSAGES:ye(n,e),Error:function(){return l([].slice.call(arguments))},log:function(p){var b="log";/^E\d+$/.test(p)?b="error":/^W\d+$/.test(p)&&(b="warn"),u2[b]("log"===b?p:o([].slice.call(arguments)))}};function o(p){var b=p[0];return a(b,r(b,p=p.slice(1)))}function r(p,b){return b=[t.ERROR_MESSAGES[p]].concat(b),ga.apply(this,b).replace(/\.*\s*?$/,"")}function a(p,b){return ga.apply(this,["{0} - {1}. See:\n{2}",p,b,c(p)])}function l(p){var b=p[0],T=r(b,p=p.slice(1)),L=c(b),N=a(b,T);return ye(new Error(N),{__id:b,__details:T,url:L})}function c(p){return SK+p}return t}const ua=Wr({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0025:"Unexpected argument type",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0103:"validationCallback of an asynchronous rule should return a jQuery or a native promise",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' parameter of the 'onCustomItemCreating' function is empty or contains invalid data. Assign a custom object or a Promise that is resolved after the item is created.",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v{2}. {3}.',W0017:'Setting the "{0}" property with a function is deprecated since v21.2',W0018:'Setting the "position" property with a function is deprecated since v21.2'});var Uk=function(e,n,t){return function(){var o=this.callBase;this.callBase=e[n];try{return t.apply(this,arguments)}finally{this.callBase=o}}},TK=function(e){var t,o;if(!e)return this;for(t in e)o=e[t],this.prototype[t]="function"==typeof this.prototype[t]&&"function"==typeof o?Uk(this.parent.prototype,t,o):o;return this},DK=function(){var n,t,o,e=this,r=Object.prototype.hasOwnProperty.bind(e),a=!r("_includedCtors")&&!r("_includedPostCtors");for(a&&(e._includedCtors=e._includedCtors.slice(0),e._includedPostCtors=e._includedPostCtors.slice(0)),o=0;ol?1:0}),r=0;r{"{"!==e.trim().charAt(0)&&(e="{"+e+"}");try{return new Function("return "+e)()}catch(n){throw ua.Error("E3018",n,e)}}},EK=["decimalSeparator","thousandsSeparator"],kK=function(){if(!arguments.length)return T8;var e=arguments.length<=0?void 0:arguments[0];EK.forEach(n=>{if(e[n]){var t="Now, the ".concat(n," is selected based on the specified locale.");ua.log("W0003","config",n,"19.2",t)}}),ye(T8,e)};"undefined"!=typeof DevExpress&&DevExpress.config&&kK(DevExpress.config);const Ua=kK;function AK(e){return e.reduce((n,t)=>{var o;return n[t]=(null!==(o=n[t])&&void 0!==o?o:0)+1,n},{})}var D8=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=AK(n);return e.filter(o=>!t[o]--)},dg=function(e){return Array.isArray(e)?e:[e]},Ki=function(e,n){return n?(Array.isArray(n)?n:n.toArray()).indexOf(e):-1},p2=function(e,n,t,o){var r={},a=0,l=Ua().useLegacyVisibleIndex;return je(e,function(c,p){(c=p[n])>=0?(r[c]=r[c]||[],p===t?r[c].unshift(p):r[c].push(p)):p[n]=void 0}),l||je(e,function(){if(!ce(this[n])&&(!o||o(this))){for(;r[a];)a++;r[a]=[this],a++}}),a=0,n1(r,function(c,p){je(p,function(){c>=0&&(this[n]=a++)})}),l&&je(e,function(){!ce(this[n])&&(!o||o(this))&&(this[n]=a++)}),a},ff=function(e,n){for(var t=0;t-1&&(n.splice(o,1),this._firing&&t.length))for(var r=0;r-1:!!n.length},r1.prototype.empty=function(e){return this._list=[],this},r1.prototype.fireWith=function(e,n){var t=this._queue;if(n=(n=n||[]).slice?n.slice():n,this._options.syncStrategy)this._firing=!0,this._fireCore(e,n);else{if(t.push([e,n]),this._firing)return;for(this._firing=!0;t.length;){var o=t.shift();this._fireCore(o[0],o[1])}}return this._firing=!1,this._fired=!0,this},r1.prototype.fire=function(){this.fireWith(this,arguments)},r1.prototype.fired=function(){return this._fired};const _r=function(e){return new r1(e)};var Cw=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],h2=function(){var e=this;this._state="pending",this._promise={},Cw.forEach(function(n){var t=n.method;this[t+"Callbacks"]=new _r,this[t]=function(){return this[t+"With"](this._promise,arguments)}.bind(this),this._promise[n.handler]=function(o){if(!o)return this;var r=e[t+"Callbacks"];return r.fired()?o.apply(e[t+"Context"],e[t+"Args"]):r.add(function(a,l){o.apply(a,l)}.bind(this)),this}}.bind(this)),this._promise.always=function(n){return this.done(n).fail(n)},this._promise.catch=function(n){return this.then(null,n)},this._promise.then=function(n,t){var o=new h2;return["done","fail"].forEach(function(r){var a="done"===r?n:t;this[r](function(){if(a){var l=a&&a.apply(this,arguments);P8(l)?l.done(o.resolve).fail(o.reject):Ch(l)?l.then(o.resolve,o.reject):o.resolve.apply(this,ce(l)?[l]:arguments)}else o["done"===r?"resolve":"reject"].apply(this,arguments)})}.bind(this)),o.promise()},this._promise.state=function(){return e._state},this._promise.promise=function(n){return n?ye(n,e._promise):e._promise},this._promise.promise(this)};function $s(e,n){if(P8(e))return e;if(Ch(e)){var t=new h2;return e.then(function(){t.resolveWith.apply(t,[n].concat([[].slice.call(arguments)]))},function(){t.rejectWith.apply(t,[n].concat([[].slice.call(arguments)]))}),t}return(new h2).resolveWith(n,[e])}Cw.forEach(function(e){var n=e.method,t=e.state;h2.prototype[n+"With"]=function(o,r){var a=this[n+"Callbacks"];return"pending"===this.state()&&(this[n+"Args"]=r,this[n+"Context"]=o,t&&(this._state=t),a.fire(o,r)),this}});var yw=function(){if(1===arguments.length)return $s(arguments[0]);for(var e=[].slice.call(arguments),n=[],t=0,o=new h2,r=function(l){return function(c){n[l]=this,e[l]=arguments.length>1?[].slice.call(arguments):c,++t===e.length&&o.resolveWith(n,e)}},a=0;a1&&(e=[].slice.call(arguments)),!e||"this"===e)return function(t){return t};if("string"==typeof e){var n=mf(e);return function(t,o){for(var r=(o=xw(o)).functionsAsIs,a=("defaultValue"in o),l=_C(t,o),c=0;cr?a=Xn.apply(this,vf.slice(r)):t&&t.resolve()),Cf=o,t&&a&&a.done&&a.done(t.resolve).fail(t.reject),!Cf&&$k.length&&("render"===vC.shift()?zs:id)($k.shift(),vf.shift()),a||Xn()},zs=function(e,n){return mv("render",e,n)},id=function(e,n){return mv("update",e,n)},_v=function(e){return function(){var n=this;return mv("render",function(){return e.call(n)})}},Zk=function(e){return function(){var n=this;return mv("update",function(){return e.call(n)})}},Jk=function(e,n,t){var o=[],r=0;return je(n,(a,l)=>{var c=0,p=t?t(l):l;je(e,(b,T)=>{var L=p[b];if(void 0!==L)return NK(L,T)?void c++:(c=-1,!1)}),!(cr&&(o.length=0,r=c),o.push(l))}),o},NK=function(e,n){if(Array.isArray(e)&&Array.isArray(n)){var t=!1;return je(e,(o,r)=>{if(r!==n[o])return t=!0,!1}),!t}return e===n},g2=function(e){var n,t;switch(ol(e)){case"string":return e.split(/\s+/,2);case"object":return[null!==(n=e.x)&&void 0!==n?n:e.h,null!==(t=e.y)&&void 0!==t?t:e.v];case"number":return[e];case"array":return e;default:return null}},FK=function(e){var n=Wi(e)?e:e.toString(),t=n.match(/[^a-zA-Z0-9_]/g);return t&&je(t,(o,r)=>{n=n.replace(r,"__"+r.charCodeAt()+"__")}),n},Qk=function(e,n){var t=g2(e),o=n?parseFloat(t&&t[0]):parseInt(t&&t[0],10),r=n?parseFloat(t&&t[1]):parseInt(t&&t[1],10);return isFinite(o)||(o=0),isFinite(r)||(r=o),{h:o,v:r}},ug=function(e){if(e instanceof ss)return e.toString();if(to(e)||Array.isArray(e))try{var n=JSON.stringify(e);return"{}"===n?e:n}catch(t){return e}return e},s1=function(e){return e.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},k8=function(e){var n=Ua().serverDecimalSeparator;return ce(e)&&(e=e.toString().replace(".",n)),e},gt=function(){},UK=function(){return(new Rt).resolve().promise()},Bd=function(e,n,t){for(var o=[],a=!t,l=0;l2&&void 0!==arguments[2]?arguments[2]:0,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=Tl(e,!0),n=Tl(n,!0);var r=o?e===n:e==n;return!!(r||t>=3)||(to(e)&&to(n)?Zde(e,n,t,o):!(!Array.isArray(e)||!Array.isArray(n))&&$de(e,n,t))},tue={querySelectorAll:(e,n)=>e.querySelectorAll(n),elementMatches(e,n){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||(o=>{var r=e.document||e.ownerDocument;if(!r)return!1;for(var a=this.querySelectorAll(r,o),l=0;le&&"object"==typeof e&&"nodeType"in e&&"nodeName"in e,isElementNode:e=>e&&1===e.nodeType,isTextNode:e=>e&&3===e.nodeType,isDocument:e=>e&&9===e.nodeType,removeElement(e){var n=e&&e.parentNode;n&&n.removeChild(e)},insertElement(e,n,t){e&&n&&e!==n&&(t?e.insertBefore(n,t):e.appendChild(n))},getAttribute:(e,n)=>e.getAttribute(n),setAttribute(e,n,t){e.setAttribute(n,t)},removeAttribute(e,n){e.removeAttribute(n)},setProperty(e,n,t){e[n]=t},setText(e,n){e&&(e.textContent=n)},setClass(e,n,t){1===e.nodeType&&n&&(t?e.classList.add(n):e.classList.remove(n))},setStyle(e,n,t){e.style[n]=t||""},_document:"undefined"==typeof document?void 0:document,getDocument(){return this._document},getActiveElement(){return this._document.activeElement},getBody(){return this._document.body},createDocumentFragment(){return this._document.createDocumentFragment()},getDocumentElement(){return this._document.documentElement},getLocation(){return this._document.location},getSelection(){return this._document.selection},getReadyState(){return this._document.readyState},getHead(){return this._document.head},hasDocumentProperty(e){return e in this._document},listen:(e,n,t,o)=>e&&"addEventListener"in e?(e.addEventListener(n,t,o),()=>{e.removeEventListener(n,t)}):gt,elementsFromPoint(e,n){return this._document.elementsFromPoint(e,n)}};const gn=lg(tue);var CC="undefined"!=typeof window,Ii=()=>CC,l1=Ii()?window:void 0;l1||((l1={}).window=l1);var Mi=()=>l1,vv=e=>Ii()&&e in l1,Ow=e=>e<768?"xs":e<992?"sm":e<1200?"md":"lg",e0=e=>(e||Ow)(gn.getDocumentElement().clientWidth),f2=()=>Ii()?l1.navigator:{userAgent:""},Mw=Ii()?Mi().WeakMap:WeakMap;Mw||(Mw=function(){var e=[],n=[];this.set=function(t,o){var r=Ki(t,e);-1===r?(e.push(t),n.push(o)):n[r]=o},this.get=function(t){var o=Ki(t,e);if(-1!==o)return n[o]},this.has=function(t){return-1!==Ki(t,e)},this.delete=function(t){var o=Ki(t,e);-1!==o&&(e.splice(o,1),n.splice(o,1))}});const ww=Mw;class A8{constructor(){this.memory=[],this.callbacks=_r()}add(n){je(this.memory,(t,o)=>n.apply(n,o)),this.callbacks.add(n)}remove(n){this.callbacks.remove(n)}fire(){for(var n=arguments.length,t=new Array(n),o=0;odc(e)?Ew(e.document,n):e.contains?e.contains(n):!!(n.compareDocumentPosition(e)&n.DOCUMENT_POSITION_CONTAINS);function yv(e,n){var t=Iw.get(e),o=(n=n||"").split("."),r=o.slice(1),a=!!o[0];n=o[0]||m2,t||Iw.set(e,t={}),t[n]||(t[n]={handleObjects:[],nativeHandler:null});var l=t[n];return{addHandler:function(c,p,b){var T=function(ie,ue){var Me,Le,xe=[ie],Se=ie.currentTarget,Te=ie.relatedTarget;n in Sw&&(Me=Te&&Se&&(Te===Se||Ew(Se,Te))),void 0!==ue&&xe.push(ue),c1.callMethod(n,"handle",e,[ie,b]),Me||(Le=c.apply(Se,xe)),!1===Le&&(ie.preventDefault(),ie.stopPropagation())},L={handler:c,wrappedHandler:function(ie,ue){if(!z8||ie.type!==z8)if(ie.data=b,ie.delegateTarget=e,p)for(var xe=ie.target;xe&&xe!==e;)Dw(xe,p)&&(ie.currentTarget=xe,T(ie,ue)),xe=xe.parentNode;else ie.currentTarget=ie.delegateTarget||ie.target,T(ie,ue)},selector:p,type:n,data:b,namespace:r.join("."),namespaces:r,guid:++WK};l.handleObjects.push(L);var Y,G=1===l.handleObjects.length&&a;G&&(G=!c1.callMethod(n,"setup",e,[b,r,c])),G&&(l.nativeHandler=function nue(e){return function(n,t){var o=yv(this,e);n=Ul.Event(n),o.callHandlers(n,t)}}(n),np()&&B8.indexOf(n)>-1&&(Y={passive:!1}),l.removeListener=gn.listen(e,Sw[n]||n,l.nativeHandler,Y)),c1.callMethod(n,"add",e,[L])},removeHandler:function(c,p){var b=function(N){var Y,G=t[N];G.handleObjects.length?(G.handleObjects=G.handleObjects.filter(function(xe){var Se=r.length&&!tA(xe.namespaces,r)||c&&xe.handler!==c||p&&xe.selector!==p;return Se||(Y=xe.handler,c1.callMethod(N,"remove",e,[xe])),Se}),!G.handleObjects.length&&N!==m2&&(c1.callMethod(N,"teardown",e,[r,Y]),G.nativeHandler&&G.removeListener(),delete t[N])):delete t[N]};if(a)b(n);else for(var T in t)b(T);0===Object.keys(t).length&&Iw.delete(e)},callHandlers:function(c,p){var b=!1,T=function(L){b||(!r.length||tA(L.namespaces,r))&&(L.wrappedHandler(c,p),b=c.isImmediatePropagationStopped())};l.handleObjects.forEach(T),r.length&&t[m2]&&t[m2].handleObjects.forEach(T)}}}function tA(e,n){for(var t=0;t-1){var r=Array.prototype.slice.call(arguments,0);o.split(" ").forEach(function(a){r[1]=a,e.apply(this,r)})}else e.apply(this,arguments)};return function(t,o){if("object"==typeof o){var r=Array.prototype.slice.call(arguments,0);for(var a in o)r[1]=a,r[r.length-1]=o[a],n.apply(this,r)}else n.apply(this,arguments)}}function qK(e){return null==(n=e).which&&0===n.type.indexOf("key")?null!=e.charCode?e.charCode:e.keyCode:function(n){return!n.which&&void 0!==n.button&&/^(?:mouse|pointer|contextmenu|drag|drop)|click/.test(n.type)}(e)?{1:1,2:3,3:1,4:2}[e.button]:e.which;var n}function kw(e){e&&(Ul.Event=e,Ul.Event.prototype=e.prototype)}function Aw(e,n,t){Object.defineProperty(t||Ul.Event.prototype,e,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&n(this.originalEvent)},set:function(o){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:o})}})}kw(function YK(e){return Ul.Event=function(n,t){if(!(this instanceof Ul.Event))return new Ul.Event(n,t);n||(n={}),"string"==typeof n&&(n={type:n}),t||(t={}),e.call(this,n,t)},Xt(Ul.Event.prototype,{_propagationStopped:!1,_immediatePropagationStopped:!1,_defaultPrevented:!1,isPropagationStopped:function(){return!!(this._propagationStopped||this.originalEvent&&this.originalEvent.propagationStopped)},stopPropagation:function(){this._propagationStopped=!0,this.originalEvent&&this.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return this._immediatePropagationStopped},stopImmediatePropagation:function(){this.stopPropagation(),this._immediatePropagationStopped=!0,this.originalEvent&&this.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(this._defaultPrevented||this.originalEvent&&this.originalEvent.defaultPrevented)},preventDefault:function(){this._defaultPrevented=!0,this.originalEvent&&this.originalEvent.preventDefault()}}),Ul.Event}(function(e,n){var t;e instanceof Ul.Event||Ii()&&e instanceof yC.Event||(null===(t=e.view)||void 0===t?void 0:t.Event)&&e instanceof e.view.Event?(this.originalEvent=e,this.type=e.type,this.currentTarget=void 0,Object.prototype.hasOwnProperty.call(e,"isTrusted")&&(this.isTrusted=e.isTrusted),this.timeStamp=e.timeStamp||Date.now()):Xt(this,e),Aw("which",qK,this),0===e.type.indexOf("touch")&&(delete n.pageX,delete n.pageY),Xt(this,n),this.guid=++WK})),["target","relatedTarget","delegateTarget","altKey","bubbles","cancelable","changedTouches","ctrlKey","detail","eventPhase","metaKey","shiftKey","view","char","code","charCode","key","keyCode","button","buttons","offsetX","offsetY","pointerId","pointerType","targetTouches","toElement","touches"].forEach(e=>Aw(e,n=>n[e])),yf(Aw);var aA=_r(),Lw=_r();Ul.set=function(e){aA.fire(),Ul.inject(e),kw(e.Event),Lw.fire()},Ul.subscribeGlobal=function(){H8(arguments,bC(function(){var e=arguments;Ul.on.apply(this,e),aA.add(function(){var n=Array.prototype.slice.call(e,0);n.splice(3,1),Ul.off.apply(this,n)}),Lw.add(function(){Ul.on.apply(this,e)})}))},Ul.forcePassiveFalseEventNames=B8,Ul.passiveEventHandlersSupported=np;const We=Ul;var vd,xC=new ww,Rw=new A8,sA=function(){},$K=function(e){Rw.fire(e);var n=(vd=e).cleanData;vd.cleanData=function(t){return sA(t),n.call(this,t)}};function Hs(){return vd.data.apply(this,arguments)}function V8(e,n){return vd.removeData.call(this,e,n)}function OC(e,n){if(gn.isElementNode(e)){var t=e.getElementsByTagName("*");vd.cleanData(t),n&&vd.cleanData([e])}}$K({data:function(){var e=arguments[0],n=arguments[1],t=arguments[2];if(e){var o=xC.get(e);return o||xC.set(e,o={}),void 0===n?o:2===arguments.length?o[n]:(o[n]=t,t)}},removeData:function(e,n){if(e)if(void 0===n)xC.delete(e);else{var t=xC.get(e);t&&delete t[n]}},cleanData:function(e){for(var n=0;n0)&&(t=wC(t)),t}).join("")},Vp=function(e){return Ca(bv(e),function(n){return wC(n.toLowerCase())}).join(" ")},pA=["0","1","2","3","4","5","6","7","8","9"],bf=function(e){var t,o,n=[],r=!1,a=!1;for(t=0;t0&&n.push(" "),n.push(o),r=a;return n.join("")},xv=["","Webkit","Moz","O","Ms"],d1={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},Ov=su(function(){return gn.createElement("dx").style}),bh=function(e){if(e in Ov())return e;var n=e;e=e.charAt(0).toUpperCase()+e.substr(1);for(var t=1;tparseFloat(Vw(l,c,p,"0"))||0,a="border"===t?"-width":"";return r(e,o,"".concat(t,"-").concat(j8[n][0]).concat(a))+r(e,o,"".concat(t,"-").concat(j8[n][1]).concat(a))}var Nw=function(e,n,t){var o="width"===n?"offsetWidth":"offsetHeight",r=mA(e),a=Vw(e,r,n);(""===a||"auto"===a)&&(a=e[o]),a=parseFloat(a)||0;var l=Vw(e,r,"boxSizing","content-box"),p=_2[t||l],b=_2[l];if(void 0===p||void 0===b)throw new Error;if(b===p)return a;var T=Math.sign(p-b),L=!1,N=!1,G=!1,Y=!1;1===T&&(p+=1,b+=1);for(var ie=b;ie!==p;ie+=T)switch(ie){case _2.content:break;case _2.padding:L=T*PC(e,n,"padding",r);break;case _2.border:N=T*PC(e,n,"border",r);break;case _2.margin:G=T*PC(e,n,"margin",r)}if(L||N){var ue=(!1===L?T*PC(e,n,"padding",r):L)+(!1===N?T*PC(e,n,"border",r):N);Y=T*Math.max(0,Math.floor(e[o]-a-T*ue))||0}return a+G+L+N+Y},_A=function(e,n){return e.indexOf("px")>0?e=parseInt(e.replace("px","")):e.indexOf("%")>0?e=parseInt(e.replace("%",""))*function(e){return dc(e)?e.innerHeight:e.offsetHeight}(n)/100:isNaN(e)?e.indexOf("vh")>0&&(e=gA.innerHeight/100*parseInt(e.replace("vh",""))):e=parseInt(e),e},vA=function(e,n,t){return e?XK.indexOf(e)>-1?n?null:e:(Wi(e)&&(e=_A(e,t)),vo(e)?Math.max(0,e+n):"calc("+e+(n<0?" - ":" ")+Math.abs(n)+"px)"):null},wv=function(e,n){if(!e)return 0;var t=Hw("height",gA.getComputedStyle(e));return t.padding+t.border+(n?t.margin:0)},SC=function(e){if(e){var n=e.getBoundingClientRect();if(n.height)return n.height}return 0};function pg(e,n,t){return 2===arguments.length?v2(n,e):v2(n,e,t)}var vi=e=>function(){for(var e=arguments.length,n=new Array(e),t=0;tfunction(){for(var e=arguments.length,n=new Array(e),t=0;tfunction(){for(var e=arguments.length,n=new Array(e),t=0;tfunction(){for(var e=arguments.length,n=new Array(e),t=0;tfunction(){for(var e=arguments.length,n=new Array(e),t=0;tfunction(){for(var e=arguments.length,n=new Array(e),t=0;tfunction(){for(var e=arguments.length,n=new Array(e),t=0;tfunction(){for(var e=arguments.length,n=new Array(e),t=0;tfunction(){for(var e=arguments.length,n=new Array(e),t=0;tfunction(){for(var e=arguments.length,n=new Array(e),t=0;t=0?"Width":"Height",a=r.toLowerCase(),l=0===t.indexOf("outer"),c=0===t.indexOf("inner"),p=2===arguments.length||"boolean"==typeof o;if(vh(n)){if(n.length>1&&!p){for(var b=0;bdc(e)?e:e.defaultView,n0=e=>{if(!e.getClientRects().length)return{top:0,left:0};var n=e.getBoundingClientRect(),t=C2(e.ownerDocument),o=e.ownerDocument.documentElement;return{top:n.top+t.pageYOffset-o.clientTop,left:n.left+t.pageXOffset-o.clientLeft}},y2=/<([a-z][^/\0>\x20\t\r\n\f]+)/i,Fu={default:{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"",endTags:"
"},td:{tagsCount:3,startTags:"",endTags:"
"},col:{tagsCount:2,startTags:"",endTags:"
"},tr:{tagsCount:2,startTags:"",endTags:"
"}};Fu.tbody=Fu.colgroup=Fu.caption=Fu.tfoot=Fu.thead,Fu.th=Fu.td;var Fr,Of=function(e){if("string"!=typeof e)return null;var t=gn.createDocumentFragment().appendChild(gn.createElement("div")),o=y2.exec(e),r=o&&o[1].toLowerCase(),a=Fu[r]||Fu.default;t.innerHTML=a.startTags+e+a.endTags;for(var l=0;l1&&arguments.length>1)return b2.call(this,"attr",arguments);if(!this[0])return to(e)||void 0!==n?this:void 0;if(!this[0].getAttribute)return this.prop(e,n);if("string"==typeof e&&1===arguments.length){var t=this[0].getAttribute(e);return null==t?void 0:t}if(jo(e))for(var o in e)this.attr(o,e[o]);else G8(this[0],e,n);return this},ur.prototype.removeAttr=function(e){return this[0]&&gn.removeAttribute(this[0],e),this},ur.prototype.prop=function(e,n){if(!this[0])return this;if("string"==typeof e&&1===arguments.length)return this[0][e];if(jo(e))for(var t in e)this.prop(t,e[t]);else gn.setProperty(this[0],e,n);return this},ur.prototype.addClass=function(e){return this.toggleClass(e,!0)},ur.prototype.removeClass=function(e){return this.toggleClass(e,!1)},ur.prototype.hasClass=function(e){if(!this[0]||void 0===this[0].className)return!1;for(var n=e.split(" "),t=0;t=0)return!0;return!1},ur.prototype.toggleClass=function(e,n){if(this.length>1)return b2.call(this,"toggleClass",arguments);if(!this[0]||!e)return this;n=void 0===n?!this.hasClass(e):n;for(var t=e.split(" "),o=0;o1){for(var n=0;n1){for(var n=0;n1){for(var n=this.length-1;n>=0;n--)Fr(this[n]).prependTo(e);return this}return(e=Fr(e))[0]&&gn.insertElement(e[0],this[0],e[0].firstChild),this},ur.prototype.appendTo=function(e){return this.length>1?b2.call(this,"appendTo",arguments):(gn.insertElement(Fr(e)[0],this[0]),this)},ur.prototype.insertBefore=function(e){return e&&e[0]&&gn.insertElement(e[0].parentNode,this[0],e[0]),this},ur.prototype.insertAfter=function(e){return e&&e[0]&&gn.insertElement(e[0].parentNode,this[0],e[0].nextSibling),this},ur.prototype.before=function(e){return this[0]&&gn.insertElement(this[0].parentNode,e[0],this[0]),this},ur.prototype.after=function(e){return this[0]&&gn.insertElement(this[0].parentNode,e[0],this[0].nextSibling),this},ur.prototype.wrap=function(e){if(this[0]){var n=Fr(e);n.insertBefore(this),n.append(this)}return this},ur.prototype.wrapInner=function(e){var n=this.contents();return n.length?n.wrap(e):this.append(e),this},ur.prototype.replaceWith=function(e){if(e&&e[0])return e.is(this)?this:(e.insertBefore(this),this.remove(),e)},ur.prototype.remove=function(){return this.length>1?b2.call(this,"remove",arguments):(OC(this[0],!0),gn.removeElement(this[0]),this)},ur.prototype.detach=function(){return this.length>1?b2.call(this,"detach",arguments):(gn.removeElement(this[0]),this)},ur.prototype.empty=function(){return this.length>1?b2.call(this,"empty",arguments):(OC(this[0]),gn.setText(this[0],""),this)},ur.prototype.clone=function(){for(var e=[],n=0;n{e=e.toLowerCase();var n={},t=bA.exec(e)||e.indexOf("compatible")<0&&xA.exec(e)||[],o=t[1],r=t[2];return"webkit"===o&&(n.webkit=!0,e.indexOf("chrome")>=0||e.indexOf("crios")>=0?(o="chrome",r=(r=/(?:chrome|crios)\/(\d+\.\d+)/.exec(e))&&r[1]):e.indexOf("fxios")>=0?(o="mozilla",r=(r=/fxios\/(\d+\.\d+)/.exec(e))&&r[1]):e.indexOf("safari")>=0&&/version|phantomjs/.test(e)?(o="safari",r=(r=/(?:version|phantomjs)\/([0-9.]+)/.exec(e))&&r[1]):(o="unknown",r=(r=/applewebkit\/([0-9.]+)/.exec(e))&&r[1])),o&&(n[o]=!0,n.version=r),n};const Ha=ye({_fromUA:q8},q8(Zw.userAgent));let Mf=(()=>{class e{constructor(t,o){o=o||{},this._action=t,this._context=o.context||Mi(),this._beforeExecute=o.beforeExecute,this._afterExecute=o.afterExecute,this._component=o.component,this._validatingTargetName=o.validatingTargetName;var r=this._excludeValidators={};if(o.excludeValidators)for(var a=0;an=>{if(n.args.length){var t=n.args[0],o=t[n.validatingTargetName]||t.element;o&&e(K(o))&&(n.cancel=!0)}};Mf.registerExecutor({disabled:{validate:Jw(e=>e.is(".dx-state-disabled, .dx-state-disabled *"))},readOnly:{validate:Jw(e=>e.is(".dx-state-readonly, .dx-state-readonly *:not(.dx-state-independent)"))},undefined:{execute:e=>{e.action||(e.result=void 0,e.handled=!0)}},func:{execute:e=>{qn(e.action)&&(e.result=e.action.call(e.context,e.args[0]),e.handled=!0)}}});var $8=[],OA=su(()=>{var e=gn.listen(gn.getDocument(),"DOMContentLoaded",()=>{Qw.fire(),e()})}),Qw={add:e=>{var n=Ii();n&&"loading"!==gn.getReadyState()?e():($8.push(e),n&&OA())},fire:()=>{$8.forEach(e=>e()),$8=[]}};const lu=lg(Qw);var MA=function(){var e,n=_r(),t=n.add,o=n.remove;if(!Ii())return n;var c,r=function(){var p=Mi();return{width:p.innerWidth,height:p.innerHeight}},a=function(){var b,p=r();p.width===e.width&&p.height===e.height||(p.width===e.width&&(b="height"),p.height===e.height&&(b="width"),e=p,n.fire(b))},l=su(function(){e=r()});return n.add=function(){var p=t.apply(n,arguments);return l(),lu.add(function(){!c&&n.has()&&(c=gn.listen(Mi(),"resize",a))}),p},n.remove=function(){var p=o.apply(n,arguments);return!n.has()&&c&&(c(),c=void 0),p},n}();const Oh=MA;var EC=function(e,n){return e=Tl(e,!0),n=Tl(n,!0),e&&n&&vh(e)&&vh(n)?n.is(e):!(e==e||n==n)||(0===e&&0===n?function(e,n){return 1/e==1/n}(e,n):!(null!==e&&"object"==typeof e&&!gn.isElementNode(e))&&e===n)};class u1{constructor(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._events={},this._owner=n,this._options=t}static create(n,t){return t?qn(t)?t(n):t:new u1(n)}hasEvent(n){var t=this._events[n];return!!t&&t.has()}fireEvent(n,t){var o=this._events[n];return o&&o.fireWith(this._owner,t),this._owner}on(n,t){if(jo(n))je(n,(a,l)=>{this.on(a,l)});else{var o=this._events[n];o||(o=_r({syncStrategy:this._options.syncStrategy}),this._events[n]=o),(o.originalAdd||o.add).call(o,t)}}off(n,t){var o=this._events[n];o&&(qn(t)?o.remove(t):o.empty())}dispose(){je(this._events,(n,t)=>{t.empty()})}}var wA=Mi(),e9=function(){var e;try{e=wA.sessionStorage}catch(n){}return e},PA=lu.add,kC=_r(),t9=K(),Fp=function(){var e;return function(n){if(!arguments.length)return e;var t=K(n);t9=t;var o=!!t.length,r=Fp();e=o?t:K("body"),kC.fire(o?Fp():K(),r)}}();function n9(){return t9}PA(function(){Fp(".dx-viewport")});var oue=f2(),SA=Mi(),oY={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",msSurface:"Windows ARM Tablet PC",desktop:"desktop"},i9={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,generic:!0,grade:"A",mac:!1},rY={generic(e){var n=/windows phone/i.test(e)||e.match(/WPDesktop/),t=!n&&/Windows(.*)arm(.*)Tablet PC/i.test(e),o=!n&&!t&&/msapphost/i.test(e),r=/((intel|ppc) mac os x)/.test(e.toLowerCase());if(n||t||o||r)return{deviceType:n?"phone":t?"tablet":"desktop",platform:"generic",version:[],grade:"A",mac:r}},ios(e){if(/ip(hone|od|ad)/i.test(e)){var n=/ip(hone|od)/i.test(e),t=e.match(/os (\d+)_(\d+)_?(\d+)?/i);return{deviceType:n?"phone":"tablet",platform:"ios",version:t?[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3]||0,10)]:[],grade:480===SA.screen.height?"B":"A"}}},android(e){if(/android|htc_|silk/i.test(e)){var n=/mobile/i.test(e),t=e.match(/android (\d+)\.?(\d+)?\.?(\d+)?/i),o=t?[parseInt(t[1],10),parseInt(t[2]||0,10),parseInt(t[3]||0,10)]:[];return{deviceType:n?"phone":"tablet",platform:"android",version:o,grade:o.length>1&&(o[0]<4||4===o[0]&&o[1]<4)?"B":"A"}}}},AC=new class od{constructor(n){this._window=(null==n?void 0:n.window)||SA,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this._eventsStrategy=new u1(this),this.changed=_r(),Ii()&&(lu.add(this._recalculateOrientation.bind(this)),Oh.add(this._recalculateOrientation.bind(this)))}current(n){if(n)return this._currentDevice=this._getDevice(n),this._forced=!0,void this.changed.fire();if(!this._currentDevice){n=void 0;try{n=this._getDeviceOrNameFromWindowScope()}catch(t){n=this._getDeviceNameFromSessionStorage()}finally{n||(n=this._getDeviceNameFromSessionStorage()),n&&(this._forced=!0)}this._currentDevice=this._getDevice(n)}return this._currentDevice}real(n){return ye({},this._realDevice)}orientation(){return this._currentOrientation}isForced(){return this._forced}isRippleEmulator(){return!!this._window.tinyHippos}_getCssClasses(n){var t=[],o=this._realDevice;return(n=n||this.current()).deviceType&&(t.push("dx-device-".concat(n.deviceType)),"desktop"!==n.deviceType&&t.push("dx-device-mobile")),t.push("dx-device-".concat(o.platform)),o.version&&o.version.length&&t.push("dx-device-".concat(o.platform,"-").concat(o.version[0])),this.isSimulator()&&t.push("dx-simulator"),Ua().rtlEnabled&&t.push("dx-rtl"),t}attachCssClasses(n,t){this._deviceClasses=this._getCssClasses(t).join(" "),K(n).addClass(this._deviceClasses)}detachCssClasses(n){K(n).removeClass(this._deviceClasses)}isSimulator(){try{return this._isSimulator||Ii()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch(n){return!1}}forceSimulator(){this._isSimulator=!0}_getDevice(n){if("genericPhone"===n&&(n={deviceType:"phone",platform:"generic",generic:!0}),jo(n))return this._fromConfig(n);var t;if(n){if(!(t=oY[n]))throw ua.Error("E0005")}else t=oue.userAgent;return this._fromUA(t)}_getDeviceOrNameFromWindowScope(){var n;return Ii()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(n=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),n}_getDeviceNameFromSessionStorage(){var n=e9();if(n){var t=n.getItem("dx-force-device");try{return JSON.parse(t)}catch(o){return t}}}_fromConfig(n){var t=ye({},i9,this._currentDevice,n);return ye(t,{phone:"phone"===t.deviceType,tablet:"tablet"===t.deviceType,android:"android"===t.platform,ios:"ios"===t.platform,generic:"generic"===t.platform})}_fromUA(n){var t;return je(rY,(o,r)=>!(t=r(n))),t?this._fromConfig(t):i9}_changeOrientation(){var n=K(this._window),t=Ti(n)>vi(n)?"portrait":"landscape";this._currentOrientation!==t&&(this._currentOrientation=t,this._eventsStrategy.fireEvent("orientationChanged",[{orientation:t}]))}_recalculateOrientation(){var n=vi(this._window);this._currentWidth!==n&&(this._currentWidth=n,this._changeOrientation())}on(n,t){return this._eventsStrategy.on(n,t),this}off(n,t){return this._eventsStrategy.off(n,t),this}},TA=Fp();TA&&AC.attachCssClasses(TA),kC.add((e,n)=>{AC.detachCssClasses(n),AC.attachCssClasses(e)});const ci=AC;var Z8={},wf=e=>{var n=ci.current();return e.reduce((t,o)=>{var{device:r,options:a}=o,l=r||{};return(qn(l)?l(n):DA(n,l))&&ye(!0,t,a),t},{})},o9=(e,n)=>"string"!=typeof e?e:{[e]:n},DA=(e,n)=>Xa(n)||Jk(e,[n]).length>0,Pf=e=>e.substr(e.lastIndexOf(".")+1),IA=e=>e.substr(0,e.lastIndexOf(".")),r9=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e},a9={},J8={};class rue{constructor(n,t){this._options=n,this._optionsByReference=t}_setByReference(n,t){for(var o in ye(!0,n,t),this._optionsByReference)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}_setPreparedValue(n,t,o,r){var a=this.get(this._options,n,!1);if(!EC(a,t)){var l=mf(n);!r&&this._changingCallback(n,a,t),J8[n]=J8[n]||tp(n),J8[n](this._options,t,{functionsAsIs:!0,merge:ce(o)?o:!this._optionsByReference[n],unwrapObservables:l.length>1&&!!this._optionsByReference[l[0]]}),!r&&this._changedCallback(n,t,a)}}_prepareRelevantNames(n,t,o,r){if(jo(o))for(var a in o)this._prepareRelevantNames(n,"".concat(t,".").concat(a),o[a]);this._namePreparedCallbacks(n,t,o,r)}get(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._options,t=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return a9[t]=a9[t]||Wo(t),a9[t](n,{functionsAsIs:!0,unwrapObservables:o})}set(n,t,o,r){for(var a in n=o9(n,t))this._prepareRelevantNames(n,a,n[a],r);for(var l in n)this._setPreparedValue(l,n[l],o,r)}onRelevantNamesPrepared(n){this._namePreparedCallbacks=n}onChanging(n){this._changingCallback=n}onChanged(n){this._changedCallback=n}dispose(){this._changingCallback=gt,this._changedCallback=gt}}class s9{constructor(n,t,o,r){this._default=t,this._deprecated=r,this._deprecatedNames=[],this._initDeprecatedNames(),this._optionManager=new rue(n,o),this._optionManager.onRelevantNamesPrepared((a,l,c,p)=>this._setRelevantNames(a,l,c,p)),this._cachedOptions={},this._rules=[]}set _initial(n){this._initialOptions=n}get _initial(){if(!this._initialOptions){var n=this._getByRules(this.silent("defaultOptionsRules"));this._initialOptions=this._default,this._optionManager._setByReference(this._initialOptions,n)}return this._initialOptions}_initDeprecatedNames(){for(var n in this._deprecated)this._deprecatedNames.push(n)}_getByRules(n){return n=Array.isArray(n)?this._rules.concat(n):this._rules,wf(n)}_notifyDeprecated(n){var t=this._deprecated[n];t&&this._deprecatedCallback(n,t)}_setRelevantNames(n,t,o,r){if(t){var a=this._normalizeName(t,r);a&&a!==t&&(this._setField(n,a,o),this._clearField(n,t))}}_setField(n,t,o){var r="",a=null;do{r=r?".".concat(r):"",r=Pf(t)+r,a=(t=IA(t))?this._optionManager.get(n,t,!1):n}while(!a);a[r]=o}_clearField(n,t){delete n[t];var o=IA(t),r=o?this._optionManager.get(n,o,!1):n;r&&delete r[Pf(t)]}_normalizeName(n,t){if(this._deprecatedNames.length&&n)for(var o=0;oa?a[l]:this.initial(l),null),r=to(o)?Xt({},o):o;this._optionManager.set(n,r,!1)}}getAliasesByName(n){return Object.keys(this._deprecated).filter(t=>n===this._deprecated[t].alias)}isDeprecated(n){return Object.prototype.hasOwnProperty.call(this._deprecated,n)}cache(n,t){if(arguments.length<2)return this._cachedOptions[n];this._cachedOptions[n]=ye(this._cachedOptions[n],t)}}class l9{constructor(){this._postponedOperations={}}add(n,t,o){if(n in this._postponedOperations)o&&this._postponedOperations[n].promises.push(o);else{var r=new Rt;this._postponedOperations[n]={fn:t,completePromise:r,promises:o?[o]:[]}}return this._postponedOperations[n].completePromise.promise()}callPostponedOperations(){for(var n in this._postponedOperations){var t=this._postponedOperations[n];ce(t)&&(t.promises&&t.promises.length?Xn(...t.promises).done(t.fn).then(t.completePromise.resolve):t.fn().done(t.completePromise.resolve))}this._postponedOperations={}}}var gg=e=>e.charAt(2).toLowerCase()+e.substr(3),sY=e=>0===e.indexOf("_",0),M2=hr.inherit({_setDeprecatedOptions(){this._deprecatedOptions={}},_getDeprecatedOptions(){return this._deprecatedOptions},_getDefaultOptions:()=>({onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}),_defaultOptionsRules:()=>[],_setOptionsByDevice(e){this._options.applyRules(e)},_convertRulesToOptions:e=>wf(e),_isInitialOptionValue(e){return this._options.isInitial(e)},_setOptionsByReference(){this._optionsByReference={}},_getOptionsByReference(){return this._optionsByReference},ctor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{_optionChangedCallbacks:n,_disposingCallbacks:t}=e;this.NAME=O2(this.constructor),this._eventsStrategy=u1.create(this,e.eventsStrategy),this._updateLockCount=0,this._optionChangedCallbacks=n||_r(),this._disposingCallbacks=t||_r(),this.postponedOperations=new l9,this._createOptions(e)},_createOptions(e){this.beginUpdate();try{this._setOptionsByReference(),this._setDeprecatedOptions(),this._options=new s9(this._getDefaultOptions(),this._getDefaultOptions(),this._getOptionsByReference(),this._getDeprecatedOptions()),this._options.onChanging((n,t,o)=>this._initialized&&this._optionChanging(n,t,o)),this._options.onDeprecated((n,t)=>this._logDeprecatedOptionWarning(n,t)),this._options.onChanged((n,t,o)=>this._notifyOptionChanged(n,t,o)),this._options.onStartChange(()=>this.beginUpdate()),this._options.onEndChange(()=>this.endUpdate()),this._options.addRules(this._defaultOptionsRules()),e&&e.onInitializing&&e.onInitializing.apply(this,[e]),this._setOptionsByDevice(e.defaultOptionsRules),this._initOptions(e)}finally{this.endUpdate()}},_initOptions(e){this.option(e)},_init(){this._createOptionChangedAction(),this.on("disposing",e=>{this._disposingCallbacks.fireWith(this,[e])})},_logDeprecatedOptionWarning(e,n){var t=n.message||"Use the '".concat(n.alias,"' option instead");ua.log("W0001",this.NAME,e,n.since,t)},_logDeprecatedComponentWarning(e,n){ua.log("W0000",this.NAME,e,"Use the '".concat(n,"' widget instead"))},_createOptionChangedAction(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly"]})},_createDisposingAction(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly"]})},_optionChanged(e){switch(e.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction()}},_dispose(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._eventsStrategy.dispose(),this._options.dispose(),this._disposed=!0},_lockUpdate(){this._updateLockCount++},_unlockUpdate(){this._updateLockCount=Math.max(this._updateLockCount-1,0)},_isUpdateAllowed(){return 0===this._updateLockCount},_isInitializingRequired(){return!this._initializing&&!this._initialized},isInitialized(){return this._initialized},_commitUpdate(){this.postponedOperations.callPostponedOperations(),this._isInitializingRequired()&&this._initializeComponent()},_initializeComponent(){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._lockUpdate(),this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly"]})(),this._unlockUpdate(),this._initialized=!0}},instance(){return this},beginUpdate:function(){this._lockUpdate()},endUpdate:function(){this._unlockUpdate(),this._isUpdateAllowed()&&this._commitUpdate()},_optionChanging:gt,_notifyOptionChanged(e,n,t){if(this._initialized)for(var o=[e].concat(this._options.getAliasesByName(e)),r=0;r(ce(o)||(o={}),jo(o)||(o={actionValue:o}),(t=t||new Mf(e,ye(n,this._defaultActionConfig()))).execute.call(t,ye(o,this._defaultActionArgs())))},_createActionByOption(e,n){var o,r,a,t=this,l=function(){if(!r){if(n=n||{},"string"!=typeof e)throw ua.Error("E0008");0===e.indexOf("on")&&(r=gg(e)),a=t.option(e)}if(o||a||n.beforeExecute||n.afterExecute||t._eventsStrategy.hasEvent(r)){if(!o){var p=n.beforeExecute;n.beforeExecute=function(){for(var Y=arguments.length,ie=new Array(Y),ue=0;ue{var n,e=gn.getActiveElement();e&&e!==gn.getBody()&&(null===(n=e.blur)||void 0===n||n.call(e))},c9=(e,n)=>{var t=K(e),o=K(n);if(t[0]===o[0])return t[0];for(var r=t.parents(),a=o.parents(),c=-Math.min(r.length,a.length);c<0;c++)if(r.get(c)===a.get(c))return r.get(c)},Sf=e=>{var n=(e=K(e)).length&&e.filter(function(){var t=K(this);return t.is("script[type]")&&t.attr("type").indexOf("script")<0});return n.length?n.eq(0).html():(e=K("
").append(e)).html()},Q8=e=>{var n=ce(e)&&(e.nodeType||vh(e))?K(e):K("
").html(e).contents();return 1===n.length&&(n.is("script")?n=Q8(n.html().trim()):n.is("table")&&(n=n.children("tbody").contents())),n},d9=(e,n)=>{var t=e.originalEvent&&e.originalEvent.clipboardData||Mh.clipboardData;if(!n)return t&&t.getData("Text");t&&t.setData("Text",n)},o0=(e,n)=>!!n&&(gn.isTextNode(n)&&(n=n.parentNode),gn.isDocument(e)?e.documentElement.contains(n):dc(e)?o0(e.document,n):e.contains?e.contains(n):!!(n.compareDocumentPosition(e)&n.DOCUMENT_POSITION_CONTAINS)),EA=(e,n,t)=>{var o=Mh.getComputedStyle(K(e).get(0)),r=t&&t.includePaddings;return K("
").text(n).css({fontStyle:o.fontStyle,fontVariant:o.fontVariant,fontWeight:o.fontWeight,fontSize:o.fontSize,fontFamily:o.fontFamily,letterSpacing:o.letterSpacing,border:o.border,paddingTop:r?o.paddingTop:"",paddingRight:r?o.paddingRight:"",paddingBottom:r?o.paddingBottom:"",paddingLeft:r?o.paddingLeft:"",visibility:"hidden",whiteSpace:"pre",position:"absolute",float:"left"})},Tv=(e,n)=>{if(n&&n[0])return n.is(e)?e:(je(n,(t,o)=>{((e,n)=>{n&&gn.insertElement(e.parentNode,n,e)})(e[0],o)}),e.remove(),n)},p9=function(e){return function(n){for(var t=K(n||"body"),o=t.filter(".dx-visibility-change-handler").add(t.find(".dx-visibility-change-handler")),r=0;rSf(e),render:(e,n)=>jQuery.tmpl(e,n)}),s0("jsrender",{compile:e=>(jQuery||jsrender).templates(Sf(e)),render:(e,n)=>e.render(n)}),s0("mustache",{compile:e=>Sf(e),render:(e,n)=>Mustache.render(e,n)}),s0("hogan",{compile:e=>Hogan.compile(Sf(e)),render:(e,n)=>e.render(n)}),s0("underscore",{compile:e=>_.template(Sf(e)),render:(e,n)=>e(n)}),s0("handlebars",{compile:e=>Handlebars.compile(Sf(e)),render:(e,n)=>e(n)}),s0("doT",{compile:e=>doT.template(Sf(e)),render:(e,n)=>e(n)}),s0("default",{compile:e=>Q8(e),render:(e,n,t)=>e.clone()}),function h9(e){if(Wi(e)){if(!(w2=X8[e]))throw ua.Error("E0020",e)}else w2=e}("default");class f9 extends r0{constructor(n){super(),this._element=n}_renderCore(n){var t=n.transclude;return!t&&!this._compiledTemplate&&(this._compiledTemplate=g9().compile(this._element)),K("
").append(t?this._element:g9().render(this._compiledTemplate,n.model,n.index)).contents()}source(){return K(this._element).clone()}}var m9=(e,n)=>{var t=K(e).contents().filter("[".concat("data-options",'*="').concat(n,'"]'));return[].slice.call(t).map(o=>{var r=K(o).attr("data-options")||"";return{element:o,options:Ua().optionsParser(r)[n]}}).filter(o=>!!o.options)},_9=e=>{var n=e.render.bind(e);return ye({},e,{render(t){var o=n(t);return t&&t.onRendered&&t.onRendered(),o}})},BA=e=>vh(e)&&e[0]||e,cY=e=>new f9(e),zA=(e,n,t,o,r,a)=>null==e?new cu:e instanceof p1?a[e.name]:e instanceof r0?e:qn(e.render)&&!vh(e)?o?e:_9(e):e.nodeType||vh(e)?n(K(e)):((e,n,t,o)=>{var r=null;return(!o||-1===o.indexOf(e))&&(r=n[e])&&!(r instanceof r0)&&!t&&(r=_9(r)),r})(e,t,o,r)||a[e]||n(e),fY=new a0(e=>{var{model:n,parent:t}=e,o=n.widget;if(!o)return K();var r=K("
"),a=n.options||{};return t?t._createComponent(r,o,a):r[o](a),r});class HA{constructor(n,t){this._tempTemplates=[],this._defaultTemplates={},this._anonymousTemplateName=t||"template",this._createElement=n||cY,this._createTemplateIfNeeded=this._createTemplateIfNeeded.bind(this)}static createDefaultOptions(){return{integrationOptions:{watchMethod:function(n,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o.skipImmediate||t(n()),gt},templates:{"dx-polymorph-widget":fY},useDeferUpdateForTemplates:!0}}}get anonymousTemplateName(){return this._anonymousTemplateName}addDefaultTemplates(n){this._defaultTemplates=ye({},this._defaultTemplates,n)}dispose(){this._tempTemplates.forEach(n=>{n.template.dispose&&n.template.dispose()}),this._tempTemplates=[]}extractTemplates(n){return{templates:this._extractTemplates(n),anonymousTemplateMeta:this._extractAnonymousTemplate(n)}}_extractTemplates(n){var t=m9(n,"dxTemplate"),o=(e=>{var n=((e,n)=>e.reduce((t,o)=>Xt({},t,{[n(o)]:[...t[n(o)]||[],o]}),{}))(e,o=>o.options.name);if(n[void 0])throw ua.Error("E0023");var t={};return Object.keys(n).forEach(o=>{var r,a=null===(r=Jk(ci.current(),n[o],l=>l.options)[0])||void 0===r?void 0:r.element;a&&(t[o]=a)}),t})(t);return t.forEach(r=>{var{element:a,options:{name:l}}=r;a===o[l]?K(a).addClass("dx-template-wrapper").detach():K(a).remove()}),Object.keys(o).map(r=>({name:r,template:this._createTemplate(o[r])}))}_extractAnonymousTemplate(n){var t=n.contents().detach();return t.filter((r,a)=>{var l=3===a.nodeType,c=K(a).text().trim().length<1;return!(l&&c)}).length>0?{template:this._createTemplate(t),name:this._anonymousTemplateName}:{}}_createTemplateIfNeeded(n){var t=this._tempTemplates.filter(r=>r.source===BA(n))[0];if(t)return t.template;var o=this._createTemplate(n);return this._tempTemplates.push({template:o,source:BA(n)}),o}_createTemplate(n){return this._createElement((e=>"string"==typeof e?Q8(e):e)(n))}getTemplate(n,t,o,r){var{isAsyncTemplate:a,skipTemplates:l}=o;return qn(n)?new a0(c=>{var p=n.apply(r,(e=>{var n=[];return"model"in e&&n.push(e.model),"index"in e&&n.push(e.index),n.push(e.container),n})(c));if(!ce(p))return new cu;var b=!1,T=zA(p,N=>N.nodeType||vh(N)&&!K(N).is("script")?new a0(()=>N):(b=!0,this._createTemplate(N)),t,a,l,this._defaultTemplates),L=T.render(c);return b&&T.dispose&&T.dispose(),L}):zA(n,this._createTemplateIfNeeded,t,a,l,this._defaultTemplates)}}var VA=function(e){return e&&e.get(0)};function Di(e){return VA(e)}var v9=(e,n)=>{if(!n)throw ua.Error("E0017");return Array.isArray(e)?e.map(t=>v9(t,n)).join(" "):-1!==e.indexOf(" ")?v9(e.split(/\s+/g),n):"".concat(e,".").concat(n)},NA=function(e,n){if(!function vY(e){var n=K(e);return n.is(":visible")&&"hidden"!==n.css("visibility")&&"hidden"!==n.parents().css("visibility")}(e))return!1;var t=e.nodeName.toLowerCase(),o=!isNaN(n),r=e.disabled;return/^(input|select|textarea|button|object|iframe)$/.test(t)||e.isContentEditable?!r:"a"===t&&e.href||o},e5=function(e,n){return NA(n,K(n).attr("tabIndex"))},t5=function(e,n){var t=K(n).attr("tabIndex");return(isNaN(t)||t>=0)&&NA(n,t)},h1=function(e){var n=K(e).get(0);return gn.getActiveElement()===n},FA={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow",delete:"del"," ":"space",f:"F",a:"A","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift"},UA={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},jA={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i},C9=e=>e,n5=e=>"dx"===wh(e),i5=e=>"touch"===wh(e),wh=e=>{var{type:n}=e,t="other";return je(jA,function(o){if(this.test(n))return t=o,!1}),t},y9=e=>"pointer"===wh(e),mg=e=>(e=>"mouse"===wh(e))(e)||(y9(e)||n5(e))&&"mouse"===e.pointerType,Pc=e=>e&&"dxmousewheel"===e.type,g1=e=>i5(e)||(y9(e)||n5(e))&&"touch"===e.pointerType,es=e=>{var{pageX:n,pageY:t,timeStamp:o}=e;return{x:n,y:t,time:o}},f1=(e,n)=>({x:n.x-e.x,y:n.y-e.y,time:n.time-e.time||1}),CY=e=>{var{originalEvent:n,pointers:t}=e;return i5(e)?(n.touches||[]).length:n5(e)?(t||[]).length:0},YA=e=>{var{target:n}=e,t=K(n),o=(null==n?void 0:n.isContentEditable)||(null==n?void 0:n.hasAttribute("contenteditable")),r=t.is("input, textarea, select")||o;return Pc(e)?!(t.is("textarea")&&t.hasClass("dx-texteditor-input")||o)&&t.is("input[type='number'], textarea, select")&&t.is(":focus"):mg(e)?r||e.which>1:g1(e)?r&&h1(t):void 0},Tf=(e,n)=>{var t=(e=>C9(We.Event(e,e),e))(e);return n&&ye(t,n),t},rp=e=>{var{originalEvent:n,delegateTarget:t}=e,o=Tf(n,e);return We.trigger(t||o.target,o),o},ls=e=>{var{key:n,which:t}=e,o=FA[null==n?void 0:n.toLowerCase()]||n,r=UA[t];return r&&o===n?r:!o&&t?String.fromCharCode(t):o},Dl=e=>{var{key:n,which:t}=e;return n||String.fromCharCode(t)},_n=v9,Fs=e=>{var{ctrlKey:n,metaKey:t}=e;return n||t},b9="compositionstart",o5="KeyboardProcessor",x9=e=>({keyName:ls(e),key:e.key,code:e.code,ctrl:e.ctrlKey,location:e.location,metaKey:e.metaKey,shift:e.shiftKey,alt:e.altKey,which:e.which,originalEvent:e}),O9=hr.inherit({_keydown:_n("keydown",o5),_compositionStart:_n(b9,o5),_compositionEnd:_n("compositionend",o5),ctor:function(e){(e=e||{}).element&&(this._element=K(e.element)),e.focusTarget&&(this._focusTarget=e.focusTarget),this._handler=e.handler,this._element&&(this._processFunction=n=>{var t=this._focusTarget&&this._focusTarget!==n.target&&Ki(n.target,K(this._focusTarget))<0,o=this._isComposingJustFinished&&229===n.which||this._isComposing||t;this._isComposingJustFinished=!1,o||this.process(n)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),We.on(this._element,this._keydown,this._processFunction),We.on(this._element,this._compositionStart,this._toggleProcessingWithContext),We.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(We.off(this._element,this._keydown,this._processFunction),We.off(this._element,this._compositionStart,this._toggleProcessingWithContext),We.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),this._element=void 0,this._handler=void 0},process:function(e){this._handler(x9(e))},toggleProcessing:function(e){var{type:n}=e;this._isComposing=n===b9,this._isComposingJustFinished=!this._isComposing}});O9.createKeyDownOptions=x9;const $A=O9;function uc(e,n){return n?_n(e,n):e}function M9(e,n){return"function"==typeof e?e(n):e.execute(n)}var r5_on=function(e,n){var{namespace:t}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};We.on(e,uc("dxresize",t),n)},r5_off=function(e){var{namespace:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};We.off(e,uc("dxresize",n))},a5_on=(e,n,t,o)=>{var{namespace:r}=o;We.on(e,uc("dxhiding",r),t),We.on(e,uc("dxshown",r),n)},a5_off=(e,n)=>{var{namespace:t}=n;We.off(e,uc("dxhiding",t)),We.off(e,uc("dxshown",t))},P2_trigger=e=>We.trigger(e,"focus"),JA=0,LC={},Up_on=(e,n,t)=>{var o="keyboardProcessorId".concat(JA++);return LC[o]=new $A({element:e,focusTarget:n,handler:t}),o},Up_off=e=>{e&&LC[e]&&(LC[e].dispose(),delete LC[e])},{abstract:s5}=M2,S9=M2.inherit({_getDefaultOptions(){return ye(this.callBase(),{width:void 0,height:void 0,rtlEnabled:Ua().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}},this._useTemplates()?HA.createDefaultOptions():{})},ctor(e,n){this._customClass=null,this._createElement(e),yA(this._$element,this,this._dispose),this.callBase(n)},_createElement(e){this._$element=K(e)},_getSynchronizableOptionsForCreateComponent:()=>["rtlEnabled","disabled","templatesRenderAsynchronously"],_checkFunctionValueDeprecation:function(e){this.option("_ignoreFunctionValueDeprecation")||e.forEach(n=>{qn(this.option(n))&&ua.log("W0017",n)})},_visibilityChanged:s5,_dimensionChanged:s5,_init(){this.callBase(),this._checkFunctionValueDeprecation(["width","height","maxHeight","maxWidth","minHeight","minWidth","popupHeight","popupWidth"]),this._attachWindowResizeCallback(),this._initTemplateManager()},_setOptionsByDevice(e){this.callBase([].concat(this.constructor._classCustomRules||[],e||[]))},_isInitialOptionValue(e){return!(this.constructor._classCustomRules&&Object.prototype.hasOwnProperty.call(this._convertRulesToOptions(this.constructor._classCustomRules),e))&&this.callBase(e)},_attachWindowResizeCallback(){if(this._isDimensionChangeSupported()){var e=this._windowResizeCallBack=this._dimensionChanged.bind(this);Oh.add(e)}},_isDimensionChangeSupported(){return this._dimensionChanged!==s5},_renderComponent(){this._initMarkup(),Ii()&&this._render()},_initMarkup(){var{rtlEnabled:e}=this.option()||{};this._renderElementAttributes(),this._toggleRTLDirection(e),this._renderVisibilityChange(),this._renderDimensions()},_render(){this._attachVisibilityChangeHandlers()},_renderElementAttributes(){var{elementAttr:e}=this.option()||{},n=ye({},e),t=n.class;delete n.class,this.$element().attr(n).removeClass(this._customClass).addClass(t),this._customClass=t},_renderVisibilityChange(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&this.$element().addClass("dx-visibility-change-handler")},_renderDimensions(){var e=this.$element(),n=e.get(0),t=this._getOptionValue("width",n),o=this._getOptionValue("height",n);this._isCssUpdateRequired(n,o,t)&&e.css({width:null===t?"":t,height:null===o?"":o})},_isCssUpdateRequired:(e,n,t)=>!!(ce(t)||ce(n)||e.style.width||e.style.height),_attachDimensionChangeHandlers(){var e=this.$element(),n="".concat(this.NAME,"VisibilityChange");r5_off(e,{namespace:n}),r5_on(e,()=>this._dimensionChanged(),{namespace:n})},_attachVisibilityChangeHandlers(){if(this._isVisibilityChangeSupported()){var e=this.$element(),n="".concat(this.NAME,"VisibilityChange");this._isHidden=!this._isVisible(),a5_off(e,{namespace:n}),a5_on(e,()=>this._checkVisibilityChanged("shown"),()=>this._checkVisibilityChanged("hiding"),{namespace:n})}},_isVisible(){return this.$element().is(":visible")},_checkVisibilityChanged(e){this._isVisible()&&("hiding"!==e||this._isHidden?"shown"===e&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0)):(this._visibilityChanged(!1),this._isHidden=!0))},_isVisibilityChangeSupported(){return this._visibilityChanged!==s5&&Ii()},_clean:gt,_modelByElement(){var{modelByElement:e}=this.option(),n=this.$element();return e?e(n):void 0},_invalidate(){if(this._isUpdateAllowed())throw ua.Error("E0007");this._requireRefresh=!0},_refresh(){this._clean(),this._renderComponent()},_dispose(){this._templateManager&&this._templateManager.dispose(),this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback(){this._isDimensionChangeSupported()&&Oh.remove(this._windowResizeCallBack)},_toggleRTLDirection(e){this.$element().toggleClass("dx-rtl",e)},_createComponent(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Bd(this._getSynchronizableOptionsForCreateComponent(),T=>!(T in t)),{integrationOptions:r}=this.option(),{nestedComponentOptions:a}=this.option(),l=ye({integrationOptions:r},(a=a||gt)(this));o.forEach(T=>l[T]=this.option(T)),this._extendConfig(t,l);var c=void 0;if(Wi(n)){var p=K(e)[n](t);c=p[n]("instance")}else e&&((c=n.getInstance(e))?c.option(t):c=new n(e,t));if(c){var b=T=>{var{name:L,value:N}=T;Ki(L,o)>=0&&c.option(L,N)};this.on("optionChanged",b),c.on("disposing",()=>this.off("optionChanged",b))}return c},_extendConfig(e,n){je(n,(t,o)=>{!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=o)})},_defaultActionConfig(){var e=this.$element(),n=this._modelByElement(e);return ye(this.callBase(),{context:n})},_defaultActionArgs(){var e=this.$element(),n=this._modelByElement(e),t=this.element();return ye(this.callBase(),{element:t,model:n})},_optionChanged(e){switch(e.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(e)}},_removeAttributes(e){for(var n=e.attributes,t=n.length-1;t>=0;t--){var o=n[t];if(o){var{name:r}=o;(!r.indexOf("aria-")||-1!==r.indexOf("dx-")||"role"===r||"style"===r||"tabindex"===r)&&e.removeAttribute(r)}}},_removeClasses(e){e.className=e.className.split(" ").filter(n=>0!==n.lastIndexOf("dx-",0)).join(" ")},_updateDOMComponent(e){e?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh())},endUpdate(){var e=this._isInitializingRequired();this.callBase(),this._isUpdateAllowed()&&this._updateDOMComponent(e)},$element(){return this._$element},element(){return Di(this.$element())},dispose(){var e=this.$element().get(0);OC(e,!0),e.textContent="",this._removeAttributes(e),this._removeClasses(e)},resetOption(e){if(this.callBase(e),"width"===e||"height"===e){var n=this.initialOption(e);!ce(n)&&this.$element().css(e,"")}},_getAnonymousTemplateName(){},_initTemplateManager(){if(!this._templateManager&&this._useTemplates()){var{integrationOptions:e={}}=this.option(),{createTemplate:n}=e;this._templateManager=new HA(n,this._getAnonymousTemplateName()),this._initTemplates()}},_initTemplates(){var{templates:e,anonymousTemplateMeta:n}=this._templateManager.extractTemplates(this.$element()),t=this.option("integrationOptions.templates.".concat(n.name));e.forEach(o=>{var{name:r,template:a}=o;this._options.silent("integrationOptions.templates.".concat(r),a)}),n.name&&!t&&(this._options.silent("integrationOptions.templates.".concat(n.name),n.template),this._options.silent("_hasAnonymousTemplateContent",!0))},_getTemplateByOption(e){return this._getTemplate(this.option(e))},_getTemplate(e){var n=this.option("integrationOptions.templates"),t=this.option("templatesRenderAsynchronously"),o=this.option("integrationOptions.skipTemplates");return this._templateManager.getTemplate(e,n,{isAsyncTemplate:t,skipTemplates:o},this)},_saveTemplate(e,n){this._setOptionWithoutOptionChange("integrationOptions.templates."+e,this._templateManager._createTemplate(n))},_useTemplates:()=>!0});S9.getInstance=function(e){return IC(K(e),this)},S9.defaultOptions=function(e){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(e)};const jp=S9;function Ph(e,n,t){function o(p){return"string"==typeof p?p.split("."):"number"==typeof p?[p]:p}e=o(e),n=o(n);var r=Math.max(e.length,n.length);isFinite(t)&&(r=Math.min(r,t));for(var a=0;ac)return 1}return 0}var ap=Ii()?Mi():{},T9=function(e){return setTimeout(e,16.666666666666668)},l5=function(e){clearTimeout(e)},XA=su(function(){var e=ap.requestAnimationFrame||ap.webkitRequestAnimationFrame||ap.mozRequestAnimationFrame||ap.oRequestAnimationFrame||ap.msRequestAnimationFrame,n=ap.cancelAnimationFrame||ap.webkitCancelAnimationFrame||ap.mozCancelAnimationFrame||ap.oCancelAnimationFrame||ap.msCancelAnimationFrame;if(e&&n&&(T9=e,l5=n),e&&!n){var t={};T9=function(o){var r=e.call(ap,function(){try{if(r in t)return;o.apply(this,arguments)}finally{delete t[r]}});return r},l5=function(o){t[o]=!0}}});function kv(){return XA(),T9.apply(ap,arguments)}function l0(){XA(),l5.apply(ap,arguments)}function bY(e){return e&&[e.target,e.delegateTarget,e.relatedTarget,e.currentTarget].filter(n=>!!n)}var{maxTouchPoints:D9}=f2(),c5={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},I9=function(e){return!!bh(e)},BC=function(e){if("text"===e)return!0;var n=gn.createElement("input");try{return n.setAttribute("type",e),n.value="wrongValue",!n.value}catch(t){return!1}},E9=function(e,n){return(e("ontouchstart")||!!n)&&!e("callPhantom")}(vv,D9),d5=function(e){return e("PointerEvent")}(vv),Df=E9||d5&&!!D9,u5=su(function(){return I9("transition")}),eL=su(function(){return c5[bh("transition")]}),tL=su(function(){return I9("animation")}),sp=function(){var{platform:e,version:n,mac:t}=ci.real();return!(n&&n[0]<4&&"android"===e)&&Ki(e,["ios","android"])>-1||t}(),nL="dxPointerEvents",iL=hr.inherit({ctor:function(e,n){this._eventName=e,this._originalEvents=_n(n,nL),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var e=this._eventName;return"dxpointerenter"===e||"dxpointerleave"===e},_handler:function(e){var n=this._getDelegateTarget(e);return this._fireEvent({type:this._eventName,pointerType:e.pointerType||wh(e),originalEvent:e,delegateTarget:n,timeStamp:Ha.mozilla?(new Date).getTime():e.timeStamp})},_getDelegateTarget:function(e){var n;return this.noBubble&&(n=e.delegateTarget),n},_fireEvent:function(e){return rp(e)},_setSelector:function(e){this._selector=this.noBubble&&e?e.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(e,n){if(this._handlerCount<=0||this.noBubble){e=this.noBubble?e:gn.getDocument(),this._setSelector(n);var t=this;We.on(e,this._originalEvents,this._getSelector(),function(o){t._handler(o)})}this.noBubble||this._handlerCount++},remove:function(e){this._setSelector(e),this.noBubble||this._handlerCount--},teardown:function(e){this._handlerCount&&!this.noBubble||(e=this.noBubble?e:gn.getDocument(),this._originalEvents!=="."+nL&&We.off(e,this._originalEvents,this._getSelector()))},dispose:function(e){e=this.noBubble?e:gn.getDocument(),We.off(e,this._originalEvents)}});const k9=iL;var rL=function(e){var n=[];return je(e.touches,function(t,o){n.push(ye({pointerId:o.identifier},o))}),{pointers:n,pointerId:e.changedTouches[0].identifier}},aL=function(e){return"ios"===ci.real().platform&&("dxpointerdown"===e||"dxpointerup"===e)},A9=k9.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(e){if(aL(this._eventName)){var n=e.changedTouches[0];if(this._pointerId===n.identifier&&0!==this._pointerId)return;this._pointerId=n.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(e){return this.callBase(ye(rL(e.originalEvent),e))}});A9.map={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},A9.normalize=rL;const p5=A9;var h5=function(e,n){lu.add(function(){e.split(" ").forEach(function(t){gn.listen(gn.getDocument(),t,n,!0)})})};const lL=function(e,n,t){t=t||function(){};var o=[],r=function(l){var c=-1;return je(o,function(p,b){return!n(l,b)||(c=p,!1)}),c},a=function(l){var c=r(l);c>-1&&o.splice(c,1)};h5(e.dxpointerdown,function(l){-1===r(l)&&(t(l),o.push(l))}),h5(e.dxpointermove,function(l){o[r(l)]=l}),h5(e.dxpointerup,a),h5(e.dxpointercancel,a),this.pointers=function(){return o},this.reset=function(){o=[]}};var L9,cL={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},dL=function(e){return e.pointerId=1,{pointers:L9.pointers(),pointerId:1}},g5=!1,uL=function(){g5||(L9=new lL(cL,function(){return!0}),g5=!0)},Av=k9.inherit({ctor:function(){this.callBase.apply(this,arguments),uL()},_fireEvent:function(e){return this.callBase(ye(dL(e.originalEvent),e))}});Av.map=cL,Av.normalize=dL,Av.activate=uL,Av.resetObserver=function(){L9.reset()};const f5=Av;var pL=!1,PY=function(){pL||(f5.activate(),pL=!0)},R9=k9.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),PY()},_handler:function(e){var n=mg(e);if(n||(this._skipNextEvents=!0),!n||!this._mouseLocked){if(n&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var t=this;return void(this._unlockMouseTimer=setTimeout(function(){t._mouseLocked=!1},this.EVENT_LOCK_TIMEOUT))}return this.callBase(e)}},_fireEvent:function(e){var n=mg(e.originalEvent)?f5.normalize:p5.normalize;return this.callBase(ye(n(e.originalEvent),e))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});R9.map={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},R9.resetObserver=f5.resetObserver;const SY=R9;var hL=((e,n)=>{var{tablet:t,phone:o}=n;return!e.touch||t||o?e.touch?p5:f5:SY})(y,ci.real());je(hL.map,(e,n)=>{xh(e,new hL(e,n))});const io={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"};var DY=hr.inherit({ctor:function(e){this._$element=K(e),this._cancelCallback=_r(),this._acceptCallback=_r()},getElement:function(){return this._$element},validate:function(e){return!Pc(e)},validatePointers:function(e){return 1===CY(e)},allowInterruptionByMouseWheel:function(){return!0},configure:function(e){ye(this,e)},addCancelCallback:function(e){this._cancelCallback.add(e)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(e){this._cancelCallback.fire(this,e)},addAcceptCallback:function(e){this._acceptCallback.add(e)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(e){this._acceptCallback.fire(this,e)},_requestAccept:function(e){this._acceptRequestEvent=e},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:gt,move:gt,end:gt,cancel:gt,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(e,n,t){var o=ye({type:e,originalEvent:n,target:this._getEmitterTarget(n),delegateTarget:this.getElement().get(0)},t);return(n=rp(o)).cancel&&this._cancel(n),n},_getEmitterTarget:function(e){return(this.delegateSelector?K(e.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:gt});const HC=DY;var m1="dxmousewheel",fL="dxWheel",VC={setup:function(e){var n=K(e);We.on(n,_n("wheel",fL),VC._wheelHandler.bind(VC))},teardown:function(e){We.off(e,".".concat(fL))},_wheelHandler:function(e){var{deltaMode:n,deltaY:t,deltaX:o,deltaZ:r}=e.originalEvent;rp({type:m1,originalEvent:e,delta:this._normalizeDelta(t,n),deltaX:o,deltaY:t,deltaZ:r,deltaMode:n,pointerType:"mouse"}),e.stopPropagation()},_normalizeDelta(e){return 0===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)?-e:-30*e}};xh(m1,VC);var NC="dxEventManager",S2="dxEmitter",EY=hr.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){lu.add(function(){var e=gn.getDocument();We.subscribeGlobal(e,_n(io.down,NC),this._pointerDownHandler.bind(this)),We.subscribeGlobal(e,_n(io.move,NC),this._pointerMoveHandler.bind(this)),We.subscribeGlobal(e,_n([io.up,io.cancel].join(" "),NC),this._pointerUpHandler.bind(this)),We.subscribeGlobal(e,_n(m1,NC),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(e){for(var n=this._activeEmitters||[],t=0;n.length>t;){var o=n[t];if(!1===e(o))break;n[t]===o&&t++}},_applyToEmitters:function(e,n){this._eachEmitter(function(t){t[e].call(t,n)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(e){this._proxiedCancelHandler(e)},_pointerDownHandler:function(e){mg(e)&&e.which>1||this._updateEmitters(e)},_updateEmitters:function(e){!this._isSetChanged(e)||(this._cleanEmitters(e),this._fetchEmitters(e))},_isSetChanged:function(e){var n=this._closestEmitter(e),t=this._emittersSet||[],o=n.length!==t.length;return je(n,function(r,a){return!(o=o||t[r]!==a)}),this._emittersSet=n,o},_closestEmitter:function(e){var n=this,t=[],o=K(e.target);function r(l,c){c&&c.validatePointers(e)&&c.validate(e)&&(c.addCancelCallback(n._proxiedCancelHandler),c.addAcceptCallback(n._proxiedAcceptHandler),t.push(c))}for(;o.length;){var a=Hs(o.get(0),S2)||[];je(a,r),o=o.parent()}return t},_acceptHandler:function(e,n){var t=this;this._eachEmitter(function(o){o!==e&&t._cancelEmitter(o,n)})},_cancelHandler:function(e,n){this._cancelEmitter(e,n)},_cancelEmitter:function(e,n){var t=this._activeEmitters;n?e.cancel(n):e.reset(),e.removeCancelCallback(),e.removeAcceptCallback();var o=Ki(e,t);o>-1&&t.splice(o,1)},_cleanEmitters:function(e){this._applyToEmitters("end",e),this.reset(e)},_fetchEmitters:function(e){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",e)},_pointerMoveHandler:function(e){this._applyToEmitters("move",e)},_pointerUpHandler:function(e){this._updateEmitters(e)},_mouseWheelHandler:function(e){!this._allowInterruptionByMouseWheel()||(e.pointers=[null],this._pointerDownHandler(e),this._adjustWheelEvent(e),this._pointerMoveHandler(e),e.pointers=[],this._pointerUpHandler(e))},_allowInterruptionByMouseWheel:function(){var e=!0;return this._eachEmitter(function(n){return e=n.allowInterruptionByMouseWheel()&&e}),e},_adjustWheelEvent:function(e){var n=null;if(this._eachEmitter(function(a){if(a.gesture){var l=a.getDirection(e);if("horizontal"!==l&&!e.shiftKey||"vertical"!==l&&e.shiftKey)return n=a,!1}}),n){var t=n.getDirection(e);e["both"===t&&!e.shiftKey||"vertical"===t?"pageY":"pageX"]+=e.delta}},isActive:function(e){var n=!1;return this._eachEmitter(function(t){n=n||t.getElement().is(e)}),n}}),_L=new EY,FC="dxEmitterSubscription";const If=function(e){var n=e.emitter,t=e.events[0],o=e.events;je(o,function(r,a){xh(a,{noBubble:!e.bubble,setup:function(l){var c=Hs(l,FC)||{},p=Hs(l,S2)||{},b=p[t]||new n(l);c[a]=!0,p[t]=b,Hs(l,S2,p),Hs(l,FC,c)},add:function(l,c){Hs(l,S2)[t].configure(ye({delegateSelector:c.selector},c.data),c.type)},teardown:function(l){var c=Hs(l,FC),p=Hs(l,S2),b=p[t];delete c[a];var T=!0;je(o,function(L,N){return T=T&&!c[N]}),T&&(_L.isActive(l)&&_L.resetEmitter(b),b&&b.dispose(),delete p[t])}})})};var Go="dxclick",vL=Math.abs,AY=function(e){return K(e).is("input, textarea, select, button ,:focus, :focus *")},H9={requestAnimationFrame:kv,cancelAnimationFrame:l0},UC=HC.inherit({ctor:function(e){this.callBase(e),this._makeElementClickable(K(e))},_makeElementClickable:function(e){e.attr("onclick")||e.attr("onclick","void(0)")},start:function(e){this._blurPrevented=e.isDefaultPrevented(),this._startTarget=e.target,this._startEventData=es(e)},end:function(e){this._eventOutOfElement(e,this.getElement().get(0))||e.type===io.cancel?this._cancel(e):(!AY(e.target)&&!this._blurPrevented&&Hd(),this._accept(e),this._clickAnimationFrame=H9.requestAnimationFrame(function(){this._fireClickEvent(e)}.bind(this)))},_eventOutOfElement:function(e,n){var t=e.target,o=!o0(n,t)&&n!==t,r=f1(es(e),this._startEventData),a=vL(r.x)>10||vL(r.y)>10;return o||a},_fireClickEvent:function(e){this._fireEvent(Go,e,{target:c9(this._startTarget,e.target)})},dispose:function(){H9.cancelAnimationFrame(this._clickAnimationFrame)}}),jC=ci.real(),V9=jC.generic||jC.ios&&Ph(jC.version,[9,3])>=0||jC.android&&Ph(jC.version,[5])>=0;(function(){var e=function(a){return V9||K(a).closest(".dx-native-click").length},n=null,t=null;function o(){t=null}var r=function(a){var l=a.originalEvent,c=t===l||l&&l.DXCLICK_FIRED;(!a.which||1===a.which)&&!n&&e(a.target)&&!c&&(l&&(l.DXCLICK_FIRED=!0),((e,n)=>{We.off(bY(e),hg,n)})(t,o),((e,n)=>{We.one(bY(e),hg,n)})(t=l,o),rp({type:Go,originalEvent:a}))};UC=UC.inherit({_makeElementClickable:function(a){e(a)||this.callBase(a),We.on(a,"click",r)},configure:function(a){this.callBase(a),a.useNative&&this.getElement().addClass("dx-native-click")},start:function(a){n=null,e(a.target)||this.callBase(a)},end:function(a){e(a.target)||this.callBase(a)},cancel:function(){n=!0},dispose:function(){this.callBase(),We.off(this.getElement(),"click",r)}})})(),function(){if(!ci.real().generic){var n=null,t=!1,o=gn.getDocument();We.subscribeGlobal(o,_n(io.down,"NATIVE_CLICK_FIXER"),function(r){n=r.target,t=r.isDefaultPrevented()}),We.subscribeGlobal(o,_n("click","NATIVE_CLICK_FIXER"),function(r){var a=K(r.target);!t&&n&&!a.is(n)&&!K(n).is("label")&&AY(a)&&Hd(),n=null,t=!1})}}(),If({emitter:UC,bubble:!0,events:[Go]});var Sh,GC="dxactive",m5="dxinactive",WC=hr.inherit({ctor:function(e,n){this._timeout=e,this._fire=n},start:function(){var e=this;this._schedule(function(){e.force()})},_schedule:function(e){this.stop(),this._timer=setTimeout(e,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),_5=HC.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new WC(0,gt),this._inactive=new WC(0,gt)},configure:function(e,n){switch(n){case GC:e.activeTimeout=e.timeout;break;case m5:e.inactiveTimeout=e.timeout}this.callBase(e)},start:function(e){if(Sh){var n=o0(this.getElement().get(0),Sh.getElement().get(0)),t=!Sh._active.fired();if(n&&t)return void this._cancel();Sh._inactive.force()}Sh=this,this._initEvents(e),this._active.start()},_initEvents:function(e){var n=this,t=this._getEmitterTarget(e),o=mg(e),a=ci.isSimulator()||!o,l=Kr(this.activeTimeout,30),c=Kr(this.inactiveTimeout,400);this._active=new WC(a?l:0,function(){n._fireEvent(GC,e,{target:t})}),this._inactive=new WC(a?c:0,function(){n._fireEvent(m5,e,{target:t}),Sh=null})},cancel:function(e){this.end(e)},end:function(e){var n=e.type!==io.up;n?this._active.stop():this._active.force(),this._inactive.start(),n&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),Sh===this&&(Sh=null),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),Sh=null,this._cancel(),this._inactive.force.bind(this._inactive)}});_5.lock=function(e){var n=Sh?Sh.lockInactive():gt;e.done(n)},If({emitter:_5,events:[GC,m5]});var F9=_5.lock,yL="dxHoverStart",v5="dxhoverstart",LY=_n(io.enter,yL),U9="dxHoverEnd",C5="dxhoverend",bL=_n(io.leave,U9),xL=hr.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(e){Hs(e,this._handlerArrayKeyPath,{})},add:function(e,n){var t=this,o=function(r){t._handler(r)};We.on(e,this._originalEventName,n.selector,o),Hs(e,this._handlerArrayKeyPath)[n.guid]=o},_handler:function(e){g1(e)||ci.isSimulator()||rp({type:this._eventName,originalEvent:e,delegateTarget:e.delegateTarget})},remove:function(e,n){var t=Hs(e,this._handlerArrayKeyPath)[n.guid];We.off(e,this._originalEventName,n.selector,t)},teardown:function(e){V8(e,this._handlerArrayKeyPath)}}),RY=xL.inherit({ctor:function(){this._eventNamespace=yL,this._eventName=v5,this._originalEventName=LY,this.callBase()},_handler:function(e){(e.pointers||[]).length||this.callBase(e)}}),uue=xL.inherit({ctor:function(){this._eventNamespace=U9,this._eventName=C5,this._originalEventName=bL,this.callBase()}});function BY(e,n,t){e="role"===e||"id"===e?e:"aria-".concat(e),n=ce(n)?n.toString():null,t.attr(e,n)}xh(v5,new RY),xh(C5,new uue);var j9=jp.inherit({_feedbackHideTimeout:400,_feedbackShowTimeout:30,_supportedKeys:()=>({}),_getDefaultOptions(){return ye(this.callBase(),{hoveredElement:null,isActive:!1,disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:void 0,onFocusIn:null,onFocusOut:null,onKeyboardHandled:null,ignoreParentReadOnly:!1,useResizeObserver:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var e=ci.real(),n=e.platform,t=e.version;return"ios"===n&&Ph(t,"13.3")<=0||"android"===n&&Ph(t,"4.4.4")<=0},options:{useResizeObserver:!1}}])},_init(){this.callBase(),this._initContentReadyAction()},_innerWidgetOptionChanged:function(e,n){var t=j9.getOptionsFromContainer(n);e&&e.option(t),this._options.cache(n.name,t)},_bindInnerWidgetOptions(e,n){var t=()=>this._options.silent(n,ye({},e.option()));t(),e.on("optionChanged",t)},_getAriaTarget(){return this._focusTarget()},_initContentReadyAction(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup(){var{disabled:e,visible:n}=this.option();this.$element().addClass("dx-widget"),this._toggleDisabledState(e),this._toggleVisibility(n),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents(),this._toggleIndependentState()},_renderHint(){var{hint:e}=this.option();this.$element().attr("title",e||null)},_renderContent(){zs(()=>this._disposed?void 0:this._renderContentImpl()).done(()=>this._disposed?void 0:this._fireContentReadyAction())},_renderContentImpl:gt,_fireContentReadyAction:_v(function(){return this._contentReadyAction()}),_dispose(){this._contentReadyAction=null,this._detachKeyboardEvents(),this.callBase()},_resetActiveState(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility(e){this.$element().toggleClass("dx-state-invisible",!e),this.setAria("hidden",!e||void 0)},_renderFocusState(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey(){var e=this._focusTarget(),{accessKey:n}=this.option();e.attr("accesskey",n)},_isFocusable(){var{focusStateEnabled:e,disabled:n}=this.option();return e&&!n},_eventBindingTarget(){return this.$element()},_focusTarget(){return this._getActiveElement()},_getActiveElement(){var e=this._eventBindingTarget();return this._activeStateUnit?e.find(this._activeStateUnit).not(".dx-state-disabled"):e},_renderFocusTarget(){var{tabIndex:e}=this.option();this._focusTarget().attr("tabIndex",e)},_keyboardEventBindingTarget(){return this._eventBindingTarget()},_refreshFocusEvent(){this._detachFocusEvents(),this._attachFocusEvents()},_focusEventTarget(){return this._focusTarget()},_focusInHandler(e){e.isDefaultPrevented()||this._createActionByOption("onFocusIn",{beforeExecute:()=>this._updateFocusState(e,!0),excludeValidators:["readOnly"]})({event:e})},_focusOutHandler(e){e.isDefaultPrevented()||this._createActionByOption("onFocusOut",{beforeExecute:()=>this._updateFocusState(e,!1),excludeValidators:["readOnly","disabled"]})({event:e})},_updateFocusState(e,n){var{target:t}=e;-1!==Ki(t,this._focusTarget())&&this._toggleFocusClass(n,K(t))},_toggleFocusClass(e,n){(n&&n.length?n:this._focusTarget()).toggleClass("dx-state-focused",e)},_hasFocusClass(e){return K(e||this._focusTarget()).hasClass("dx-state-focused")},_isFocused(){return this._hasFocusClass()},_getKeyboardListeners:()=>[],_attachKeyboardEvents(){this._detachKeyboardEvents();var{focusStateEnabled:e,onKeyboardHandled:n}=this.option(),t=this._getKeyboardListeners().length;(e||t||n)&&(this._keyboardListenerId=Up_on(this._keyboardEventBindingTarget(),this._focusTarget(),a=>this._keyboardHandler(a)))},_keyboardHandler(e,n){if(!n){var{originalEvent:t,keyName:o,which:r}=e,a=this._supportedKeys(t),l=a[o]||a[r];if(void 0!==l&&!l.bind(this)(t,e))return!1}var b=this._getKeyboardListeners(),{onKeyboardHandled:T}=this.option();return b.forEach(L=>L&&L._keyboardHandler(e)),T&&T(e),!0},_refreshFocusState(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState(){this._focusTarget().removeAttr("tabIndex"),this._toggleFocusClass(!1),this._detachFocusEvents(),this._detachKeyboardEvents()},_detachKeyboardEvents(){Up_off(this._keyboardListenerId),this._keyboardListenerId=null},_attachHoverEvents(){var{hoverStateEnabled:e}=this.option(),n=this._activeStateUnit,t=this._eventBindingTarget();((e,n)=>{var{selector:t,namespace:o}=n;We.off(e,uc("dxhoverstart",o),t),We.off(e,uc("dxhoverend",o),t)})(t,{selector:n,namespace:"UIFeedback"}),e&&((e,n,t,o)=>{var{selector:r,namespace:a}=o;We.on(e,uc("dxhoverend",a),r,l=>t(l)),We.on(e,uc("dxhoverstart",a),r,l=>M9(n,{element:l.target,event:l}))})(t,new Mf(o=>{var{event:r,element:a}=o;this._hoverStartHandler(r),this.option("hoveredElement",K(a))},{excludeValidators:["readOnly"]}),o=>{this.option("hoveredElement",null),this._hoverEndHandler(o)},{selector:n,namespace:"UIFeedback"})},_attachFeedbackEvents(){var{activeStateEnabled:e}=this.option(),n=this._activeStateUnit,t=this._eventBindingTarget();((e,n)=>{var{namespace:t,selector:o}=n;We.off(e,uc("dxactive",t),o),We.off(e,uc("dxinactive",t),o)})(t,{namespace:"UIFeedback",selector:n}),e&&((e,n,t,o)=>{var{selector:r,showTimeout:a,hideTimeout:l,namespace:c}=o;We.on(e,uc("dxactive",c),r,{timeout:a},p=>M9(n,{event:p,element:p.currentTarget})),We.on(e,uc("dxinactive",c),r,{timeout:l},p=>M9(t,{event:p,element:p.currentTarget}))})(t,new Mf(o=>{var{event:r,element:a}=o;return this._toggleActiveState(K(a),!0,r)}),new Mf(o=>{var{event:r,element:a}=o;return this._toggleActiveState(K(a),!1,r)},{excludeValidators:["disabled","readOnly"]}),{showTimeout:this._feedbackShowTimeout,hideTimeout:this._feedbackHideTimeout,selector:n,namespace:"UIFeedback"})},_detachFocusEvents(){((e,n)=>{var{namespace:t}=n;We.off(e,uc("focusin",t)),We.off(e,uc("focusout",t))})(this._focusEventTarget(),{namespace:"".concat(this.NAME,"Focus")})},_attachFocusEvents(){((e,n,t,o)=>{var{namespace:r}=o;We.on(e,uc("focusin",r),n),We.on(e,uc("focusout",r),t)})(this._focusEventTarget(),n=>this._focusInHandler(n),n=>this._focusOutHandler(n),{namespace:"".concat(this.NAME,"Focus"),isFocusable:(n,t)=>K(t).is(e5)})},_hoverStartHandler:gt,_hoverEndHandler:gt,_toggleActiveState(e,n){this.option("isActive",n),e.toggleClass("dx-state-active",n)},_updatedHover(){var e=this._options.silent("hoveredElement");this._hover(e,e)},_findHoverTarget(e){return e&&e.closest(this._activeStateUnit||this._eventBindingTarget())},_hover(e,n){var{hoverStateEnabled:t,disabled:o,isActive:r}=this.option();if((n=this._findHoverTarget(n))&&n.toggleClass("dx-state-hover",!1),e&&t&&!o&&!r){var a=this._findHoverTarget(e);a&&a.toggleClass("dx-state-hover",!0)}},_toggleDisabledState(e){this.$element().toggleClass("dx-state-disabled",Boolean(e)),this.setAria("disabled",e||void 0)},_toggleIndependentState(){this.$element().toggleClass("dx-state-independent",this.option("ignoreParentReadOnly"))},_setWidgetOption(e,n){if(this[e]){if(jo(n[0]))return void je(n[0],(a,l)=>this._setWidgetOption(e,[a,l]));var t=n[0],o=n[1];1===n.length&&(o=this.option(t));var r=this["".concat(e,"OptionMap")];this[e].option(r?r(t):t,o)}},_optionChanged(e){var{name:n,value:t,previousValue:o}=e;switch(n){case"disabled":this._toggleDisabledState(t),this._updatedHover(),this._refreshFocusState();break;case"hint":this._renderHint();break;case"ignoreParentReadOnly":this._toggleIndependentState();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents(),this._updatedHover();break;case"tabIndex":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":case"useResizeObserver":break;case"accessKey":this._renderAccessKey();break;case"hoveredElement":this._hover(t,o);break;case"isActive":this._updatedHover();break;case"visible":this._toggleVisibility(t),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(t?"shown":"hiding");break;case"onKeyboardHandled":this._attachKeyboardEvents();break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(e)}},_isVisible(){var{visible:e}=this.option();return this.callBase()&&e},beginUpdate(){this._ready(!1),this.callBase()},endUpdate(){this.callBase(),this._initialized&&this._ready(!0)},_ready(e){if(0===arguments.length)return this._isReady;this._isReady=e},setAria(){if(jo(arguments.length<=0?void 0:arguments[0])){var e=(arguments.length<=1?void 0:arguments[1])||this._getAriaTarget();je(arguments.length<=0?void 0:arguments[0],(n,t)=>BY(n,t,e))}else BY(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],(arguments.length<=2?void 0:arguments[2])||this._getAriaTarget())},isReady(){return this._ready()},repaint(){this._refresh()},focus(){P2_trigger(this._focusTarget())},registerKeyHandler(e,n){var t=this._supportedKeys();this._supportedKeys=()=>ye(t,{[e]:n})}});j9.getOptionsFromContainer=e=>{var{name:n,fullName:t,value:o}=e,r={};return n===t?r=o:r[t.split(".").pop()]=o,r};const br=j9;var OL=["year","month","day"],ML=["year","month","day","hour","minute"],G9=function(e){return"date"===e||"datetime"===e},W9=function(e){var n,t=[],o=["year","month","day","hour","minute","second"],r=e.headerFilter&&e.headerFilter.groupInterval,a="quarter"===r?"month":r;return G9(e.dataType)&&null!==r?(t="datetime"===e.dataType?ML:OL,(n=Ki(a,o))>=0&&(t=o.slice(0,n)).push(r),t):ce(r)?Array.isArray(r)?r:[r]:void 0};const Lv=function(){var e=function(r,a){var l=r.dataField||r.selector;return"search"===a&&(l=r.displayField||r.calculateDisplayValue||l),l},n=function(r,a){var l,c,p,T,b=e(this,a);if(Array.isArray(r)&&ce(r[0])&&ce(r[1]))return c=[b,">=",r[0]],p=[b,"<=",r[1]],G9(this.dataType)&&(T=r[1]).getHours()+T.getMinutes()+T.getSeconds()+T.getMilliseconds()<1&&(l=new Date(r[1].getTime()),"date"===this.dataType&&l.setDate(r[1].getDate()+1),p=[b,"<",l]),[c,"and",p]},t=function(r,a,l){var c,p,b,N,T=_l(N=r)?[N.getFullYear(),N.getMonth(),N.getDate(),N.getHours(),N.getMinutes(),N.getSeconds()]:Ca((""+N).split("/"),function(G,Y){return 1===Y?Number(G)-1:Number(G)}),L=e(this,l);switch("headerFilter"===l?b=W9(this)[T.length-1]:"datetime"===this.dataType&&(b="minute"),b){case"year":c=new Date(T[0],0,1),p=new Date(T[0]+1,0,1);break;case"month":c=new Date(T[0],T[1],1),p=new Date(T[0],T[1]+1,1);break;case"quarter":c=new Date(T[0],3*T[1],1),p=new Date(T[0],3*T[1]+3,1);break;case"hour":c=new Date(T[0],T[1],T[2],T[3]),p=new Date(T[0],T[1],T[2],T[3]+1);break;case"minute":c=new Date(T[0],T[1],T[2],T[3],T[4]),p=new Date(T[0],T[1],T[2],T[3],T[4]+1);break;case"second":c=new Date(T[0],T[1],T[2],T[3],T[4],T[5]),p=new Date(T[0],T[1],T[2],T[3],T[4],T[5]+1);break;default:c=new Date(T[0],T[1],T[2]),p=new Date(T[0],T[1],T[2]+1)}switch(a){case"<":return[L,"<",c];case"<=":return[L,"<",p];case">":return[L,">=",p];case">=":return[L,">=",c];case"<>":return[[L,"<",c],"or",[L,">=",p]];default:return[[L,">=",c],"and",[L,"<",p]]}},o=function(r,a,l){var c=e(this,l),p=W9(this);if("headerFilter"===l&&p&&ce(r)){var b=(""+r).split("/"),T=Number(b[b.length-1]);return[[c,">=",T],"and",[c,"<",T+p[b.length-1]]]}return[c,a||"=",r]};return{defaultCalculateFilterExpression:function(r,a,l){var c=this,p=e(c,l),b=c.calculateDisplayValue&&"search"===l,T=b&&c.lookup&&c.lookup.dataType||c.dataType,L=null;if("headerFilter"!==l&&"filterBuilder"!==l||null!==r)if("string"!==T||c.lookup&&!b){if("between"===a)return n.apply(c,[r,l]);if(G9(T)&&ce(r))return t.apply(c,arguments);if("number"===T)return o.apply(c,arguments);L=[p,a||"=",r]}else L=[p,a||"contains",r];else L=[p,a||"=",null],"string"===T&&(L=[L,"="===a?"or":"and",[p,a||"=",""]]);return L},getGroupInterval:W9}}();var c0=e=>(null!=e?e:Ua().rtlEnabled)?"right":"left",qo=e=>dc(e)?{width:e.outerWidth,height:e.outerHeight}:e.getBoundingClientRect();const zY={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MV":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","hi-Latn":"en-IN","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419",ht:"fr-HT",nb:"no",nn:"no","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"und","az-Cyrl":"und","bal-Latn":"und","blt-Latn":"und","bm-Nkoo":"und","bs-Cyrl":"und","byn-Latn":"und","cu-Glag":"und","dje-Arab":"und","dyo-Arab":"und","en-Dsrt":"und","en-Shaw":"und","ff-Adlm":"und","ff-Arab":"und","ha-Arab":"und","iu-Latn":"und","kk-Arab":"und","ks-Deva":"und","ku-Arab":"und","ky-Arab":"und","ky-Latn":"und","ml-Arab":"und","mn-Mong":"und","mni-Mtei":"und","ms-Arab":"und","pa-Arab":"und","sat-Deva":"und","sd-Deva":"und","sd-Khoj":"und","sd-Sind":"und","shi-Latn":"und","so-Arab":"und","sr-Latn":"und","sw-Arab":"und","tg-Arab":"und","ug-Cyrl":"und","uz-Arab":"und","uz-Cyrl":"und","vai-Latn":"und","wo-Arab":"und","yo-Arab":"und","yue-Hans":"und","zh-Hant":"und","zh-Hant-MO":"zh-Hant-HK"},VY=(e,n)=>{var t=e[n];return t?"root"!==t&&t:n.substr(0,n.lastIndexOf("-"))},du=lg({locale:(()=>{var e="en";return n=>{if(!n)return e;e=n}})(),getValueByClosestLocale:function(e){for(var o,n=this.locale(),t=e(n);!t&&!o;)(n=VY(zY,n))?t=e(n):o=!0;return void 0===t&&"en"!==n?e("en"):t}});var PL=ye(!0,{},{en:{Yes:"Yes",No:"No",Cancel:"Cancel",Close:"Close",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","dxDropDownEditor-selectLabel":"Select","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-async":"Value is invalid","validation-async-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select a file","dxFileUploader-dropFile":"or Drop a file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadAbortedMessage":"Upload cancelled","dxFileUploader-uploadFailedMessage":"Upload failed","dxFileUploader-invalidFileExtension":"File type is not allowed","dxFileUploader-invalidMaxFileSize":"File is too large","dxFileUploader-invalidMinFileSize":"File is too small","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxNumberBox-noDataText":"No data","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-exporting":"Exporting...","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows","dxDataGrid-exportAll":"Export all data","dxDataGrid-headerFilterLabel":"Filter options","dxDataGrid-headerFilterIndicatorLabel":"Show filter options for column '{0}'","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaAdaptiveCollapse":"Hide additional data","dxDataGrid-ariaAdaptiveExpand":"Display additional data","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in the data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-ariaToolbar":"Data grid toolbar","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list","dxTreeList-ariaSearchInGrid":"Search in the tree list","dxTreeList-ariaToolbar":"Tree list toolbar","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPager-pageSize":"Items per page: {0}","dxPager-pageSizesAllText":"All","dxPager-page":"Page {0}","dxPager-prevPage":"Previous Page","dxPager-nextPage":"Next Page","dxPager-ariaLabel":"Page Navigation","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceMinutely":"Every minute","dxScheduler-recurrenceHourly":"Hourly","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceRepeatEvery":"Repeat Every","dxScheduler-recurrenceRepeatOn":"Repeat On","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatMinutely":"minute(s)","dxScheduler-recurrenceRepeatHourly":"hour(s)","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of","dxHtmlEditor-dialogColorCaption":"Change Font Color","dxHtmlEditor-dialogBackgroundCaption":"Change Background Color","dxHtmlEditor-dialogLinkCaption":"Add Link","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Open link in new window","dxHtmlEditor-dialogImageCaption":"Add Image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternate text","dxHtmlEditor-dialogImageWidthField":"Width (px)","dxHtmlEditor-dialogImageHeightField":"Height (px)","dxHtmlEditor-dialogInsertTableRowsField":"Rows","dxHtmlEditor-dialogInsertTableColumnsField":"Columns","dxHtmlEditor-dialogInsertTableCaption":"Insert Table","dxHtmlEditor-heading":"Heading","dxHtmlEditor-normalText":"Normal text","dxHtmlEditor-background":"Background Color","dxHtmlEditor-bold":"Bold","dxHtmlEditor-color":"Font Color","dxHtmlEditor-font":"Font","dxHtmlEditor-italic":"Italic","dxHtmlEditor-link":"Add Link","dxHtmlEditor-image":"Add Image","dxHtmlEditor-size":"Size","dxHtmlEditor-strike":"Strikethrough","dxHtmlEditor-subscript":"Subscript","dxHtmlEditor-superscript":"Superscript","dxHtmlEditor-underline":"Underline","dxHtmlEditor-blockquote":"Blockquote","dxHtmlEditor-header":"Header","dxHtmlEditor-increaseIndent":"Increase Indent","dxHtmlEditor-decreaseIndent":"Decrease Indent","dxHtmlEditor-orderedList":"Ordered List","dxHtmlEditor-bulletList":"Bullet List","dxHtmlEditor-alignLeft":"Align Left","dxHtmlEditor-alignCenter":"Align Center","dxHtmlEditor-alignRight":"Align Right","dxHtmlEditor-alignJustify":"Align Justify","dxHtmlEditor-codeBlock":"Code Block","dxHtmlEditor-variable":"Add Variable","dxHtmlEditor-undo":"Undo","dxHtmlEditor-redo":"Redo","dxHtmlEditor-clear":"Clear Formatting","dxHtmlEditor-insertTable":"Insert Table","dxHtmlEditor-insertHeaderRow":"Insert Header Row","dxHtmlEditor-insertRowAbove":"Insert Row Above","dxHtmlEditor-insertRowBelow":"Insert Row Below","dxHtmlEditor-insertColumnLeft":"Insert Column Left","dxHtmlEditor-insertColumnRight":"Insert Column Right","dxHtmlEditor-deleteColumn":"Delete Column","dxHtmlEditor-deleteRow":"Delete Row","dxHtmlEditor-deleteTable":"Delete Table","dxHtmlEditor-cellProperties":"Cell Properties","dxHtmlEditor-tableProperties":"Table Properties","dxHtmlEditor-insert":"Insert","dxHtmlEditor-delete":"Delete","dxHtmlEditor-border":"Border","dxHtmlEditor-style":"Style","dxHtmlEditor-width":"Width","dxHtmlEditor-height":"Height","dxHtmlEditor-borderColor":"Color","dxHtmlEditor-tableBackground":"Background","dxHtmlEditor-dimensions":"Dimensions","dxHtmlEditor-alignment":"Alignment","dxHtmlEditor-horizontal":"Horizontal","dxHtmlEditor-vertical":"Vertical","dxHtmlEditor-paddingVertical":"Vertical Padding","dxHtmlEditor-paddingHorizontal":"Horizontal Padding","dxHtmlEditor-pixels":"Pixels","dxHtmlEditor-list":"List","dxHtmlEditor-ordered":"Ordered","dxHtmlEditor-bullet":"Bullet","dxHtmlEditor-align":"Align","dxHtmlEditor-center":"Center","dxHtmlEditor-left":"Left","dxHtmlEditor-right":"Right","dxHtmlEditor-indent":"Indent","dxHtmlEditor-justify":"Justify","dxFileManager-newDirectoryName":"Untitled directory","dxFileManager-rootDirectoryName":"Files","dxFileManager-errorNoAccess":"Access Denied. Operation could not be completed.","dxFileManager-errorDirectoryExistsFormat":"Directory '{0}' already exists.","dxFileManager-errorFileExistsFormat":"File '{0}' already exists.","dxFileManager-errorFileNotFoundFormat":"File '{0}' not found.","dxFileManager-errorDirectoryNotFoundFormat":"Directory '{0}' not found.","dxFileManager-errorWrongFileExtension":"File extension is not allowed.","dxFileManager-errorMaxFileSizeExceeded":"File size exceeds the maximum allowed size.","dxFileManager-errorInvalidSymbols":"This name contains invalid characters.","dxFileManager-errorDefault":"Unspecified error.","dxFileManager-errorDirectoryOpenFailed":"The directory cannot be opened","dxFileManager-commandCreate":"New directory","dxFileManager-commandRename":"Rename","dxFileManager-commandMove":"Move to","dxFileManager-commandCopy":"Copy to","dxFileManager-commandDelete":"Delete","dxFileManager-commandDownload":"Download","dxFileManager-commandUpload":"Upload files","dxFileManager-commandRefresh":"Refresh","dxFileManager-commandThumbnails":"Thumbnails View","dxFileManager-commandDetails":"Details View","dxFileManager-commandClearSelection":"Clear selection","dxFileManager-commandShowNavPane":"Toggle navigation pane","dxFileManager-dialogDirectoryChooserMoveTitle":"Move to","dxFileManager-dialogDirectoryChooserMoveButtonText":"Move","dxFileManager-dialogDirectoryChooserCopyTitle":"Copy to","dxFileManager-dialogDirectoryChooserCopyButtonText":"Copy","dxFileManager-dialogRenameItemTitle":"Rename","dxFileManager-dialogRenameItemButtonText":"Save","dxFileManager-dialogCreateDirectoryTitle":"New directory","dxFileManager-dialogCreateDirectoryButtonText":"Create","dxFileManager-dialogDeleteItemTitle":"Delete","dxFileManager-dialogDeleteItemButtonText":"Delete","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Are you sure you want to delete {0}?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Are you sure you want to delete {0} items?","dxFileManager-dialogButtonCancel":"Cancel","dxFileManager-editingCreateSingleItemProcessingMessage":"Creating a directory inside {0}","dxFileManager-editingCreateSingleItemSuccessMessage":"Created a directory inside {0}","dxFileManager-editingCreateSingleItemErrorMessage":"Directory was not created","dxFileManager-editingCreateCommonErrorMessage":"Directory was not created","dxFileManager-editingRenameSingleItemProcessingMessage":"Renaming an item inside {0}","dxFileManager-editingRenameSingleItemSuccessMessage":"Renamed an item inside {0}","dxFileManager-editingRenameSingleItemErrorMessage":"Item was not renamed","dxFileManager-editingRenameCommonErrorMessage":"Item was not renamed","dxFileManager-editingDeleteSingleItemProcessingMessage":"Deleting an item from {0}","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"Deleting {0} items from {1}","dxFileManager-editingDeleteSingleItemSuccessMessage":"Deleted an item from {0}","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"Deleted {0} items from {1}","dxFileManager-editingDeleteSingleItemErrorMessage":"Item was not deleted","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} items were not deleted","dxFileManager-editingDeleteCommonErrorMessage":"Some items were not deleted","dxFileManager-editingMoveSingleItemProcessingMessage":"Moving an item to {0}","dxFileManager-editingMoveMultipleItemsProcessingMessage":"Moving {0} items to {1}","dxFileManager-editingMoveSingleItemSuccessMessage":"Moved an item to {0}","dxFileManager-editingMoveMultipleItemsSuccessMessage":"Moved {0} items to {1}","dxFileManager-editingMoveSingleItemErrorMessage":"Item was not moved","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} items were not moved","dxFileManager-editingMoveCommonErrorMessage":"Some items were not moved","dxFileManager-editingCopySingleItemProcessingMessage":"Copying an item to {0}","dxFileManager-editingCopyMultipleItemsProcessingMessage":"Copying {0} items to {1}","dxFileManager-editingCopySingleItemSuccessMessage":"Copied an item to {0}","dxFileManager-editingCopyMultipleItemsSuccessMessage":"Copied {0} items to {1}","dxFileManager-editingCopySingleItemErrorMessage":"Item was not copied","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} items were not copied","dxFileManager-editingCopyCommonErrorMessage":"Some items were not copied","dxFileManager-editingUploadSingleItemProcessingMessage":"Uploading an item to {0}","dxFileManager-editingUploadMultipleItemsProcessingMessage":"Uploading {0} items to {1}","dxFileManager-editingUploadSingleItemSuccessMessage":"Uploaded an item to {0}","dxFileManager-editingUploadMultipleItemsSuccessMessage":"Uploaded {0} items to {1}","dxFileManager-editingUploadSingleItemErrorMessage":"Item was not uploaded","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} items were not uploaded","dxFileManager-editingUploadCanceledMessage":"Canceled","dxFileManager-editingDownloadSingleItemErrorMessage":"Item was not downloaded","dxFileManager-editingDownloadMultipleItemsErrorMessage":"{0} items were not downloaded","dxFileManager-listDetailsColumnCaptionName":"Name","dxFileManager-listDetailsColumnCaptionDateModified":"Date Modified","dxFileManager-listDetailsColumnCaptionFileSize":"File Size","dxFileManager-listThumbnailsTooltipTextSize":"Size","dxFileManager-listThumbnailsTooltipTextDateModified":"Date Modified","dxFileManager-notificationProgressPanelTitle":"Progress","dxFileManager-notificationProgressPanelEmptyListText":"No operations","dxFileManager-notificationProgressPanelOperationCanceled":"Canceled","dxDiagram-categoryGeneral":"General","dxDiagram-categoryFlowchart":"Flowchart","dxDiagram-categoryOrgChart":"Org Chart","dxDiagram-categoryContainers":"Containers","dxDiagram-categoryCustom":"Custom","dxDiagram-commandExportToSvg":"Export to SVG","dxDiagram-commandExportToPng":"Export to PNG","dxDiagram-commandExportToJpg":"Export to JPEG","dxDiagram-commandUndo":"Undo","dxDiagram-commandRedo":"Redo","dxDiagram-commandFontName":"Font Name","dxDiagram-commandFontSize":"Font Size","dxDiagram-commandBold":"Bold","dxDiagram-commandItalic":"Italic","dxDiagram-commandUnderline":"Underline","dxDiagram-commandTextColor":"Font Color","dxDiagram-commandLineColor":"Line Color","dxDiagram-commandLineWidth":"Line Width","dxDiagram-commandLineStyle":"Line Style","dxDiagram-commandLineStyleSolid":"Solid","dxDiagram-commandLineStyleDotted":"Dotted","dxDiagram-commandLineStyleDashed":"Dashed","dxDiagram-commandFillColor":"Fill Color","dxDiagram-commandAlignLeft":"Align Left","dxDiagram-commandAlignCenter":"Align Center","dxDiagram-commandAlignRight":"Align Right","dxDiagram-commandConnectorLineType":"Connector Line Type","dxDiagram-commandConnectorLineStraight":"Straight","dxDiagram-commandConnectorLineOrthogonal":"Orthogonal","dxDiagram-commandConnectorLineStart":"Connector Line Start","dxDiagram-commandConnectorLineEnd":"Connector Line End","dxDiagram-commandConnectorLineNone":"None","dxDiagram-commandConnectorLineArrow":"Arrow","dxDiagram-commandFullscreen":"Full Screen","dxDiagram-commandUnits":"Units","dxDiagram-commandPageSize":"Page Size","dxDiagram-commandPageOrientation":"Page Orientation","dxDiagram-commandPageOrientationLandscape":"Landscape","dxDiagram-commandPageOrientationPortrait":"Portrait","dxDiagram-commandPageColor":"Page Color","dxDiagram-commandShowGrid":"Show Grid","dxDiagram-commandSnapToGrid":"Snap to Grid","dxDiagram-commandGridSize":"Grid Size","dxDiagram-commandZoomLevel":"Zoom Level","dxDiagram-commandAutoZoom":"Auto Zoom","dxDiagram-commandFitToContent":"Fit to Content","dxDiagram-commandFitToWidth":"Fit to Width","dxDiagram-commandAutoZoomByContent":"Auto Zoom by Content","dxDiagram-commandAutoZoomByWidth":"Auto Zoom by Width","dxDiagram-commandSimpleView":"Simple View","dxDiagram-commandCut":"Cut","dxDiagram-commandCopy":"Copy","dxDiagram-commandPaste":"Paste","dxDiagram-commandSelectAll":"Select All","dxDiagram-commandDelete":"Delete","dxDiagram-commandBringToFront":"Bring to Front","dxDiagram-commandSendToBack":"Send to Back","dxDiagram-commandLock":"Lock","dxDiagram-commandUnlock":"Unlock","dxDiagram-commandInsertShapeImage":"Insert Image...","dxDiagram-commandEditShapeImage":"Change Image...","dxDiagram-commandDeleteShapeImage":"Delete Image","dxDiagram-commandLayoutLeftToRight":"Left-to-right","dxDiagram-commandLayoutRightToLeft":"Right-to-left","dxDiagram-commandLayoutTopToBottom":"Top-to-bottom","dxDiagram-commandLayoutBottomToTop":"Bottom-to-top","dxDiagram-unitIn":"in","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Cancel","dxDiagram-dialogInsertShapeImageTitle":"Insert Image","dxDiagram-dialogEditShapeImageTitle":"Change Image","dxDiagram-dialogEditShapeImageSelectButton":"Select image","dxDiagram-dialogEditShapeImageLabelText":"or drop a file here","dxDiagram-uiExport":"Export","dxDiagram-uiProperties":"Properties","dxDiagram-uiSettings":"Settings","dxDiagram-uiShowToolbox":"Show Toolbox","dxDiagram-uiSearch":"Search","dxDiagram-uiStyle":"Style","dxDiagram-uiLayout":"Layout","dxDiagram-uiLayoutTree":"Tree","dxDiagram-uiLayoutLayered":"Layered","dxDiagram-uiDiagram":"Diagram","dxDiagram-uiText":"Text","dxDiagram-uiObject":"Object","dxDiagram-uiConnector":"Connector","dxDiagram-uiPage":"Page","dxDiagram-shapeText":"Text","dxDiagram-shapeRectangle":"Rectangle","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Cross","dxDiagram-shapeTriangle":"Triangle","dxDiagram-shapeDiamond":"Diamond","dxDiagram-shapeHeart":"Heart","dxDiagram-shapePentagon":"Pentagon","dxDiagram-shapeHexagon":"Hexagon","dxDiagram-shapeOctagon":"Octagon","dxDiagram-shapeStar":"Star","dxDiagram-shapeArrowLeft":"Left Arrow","dxDiagram-shapeArrowUp":"Up Arrow","dxDiagram-shapeArrowRight":"Right Arrow","dxDiagram-shapeArrowDown":"Down Arrow","dxDiagram-shapeArrowUpDown":"Up Down Arrow","dxDiagram-shapeArrowLeftRight":"Left Right Arrow","dxDiagram-shapeProcess":"Process","dxDiagram-shapeDecision":"Decision","dxDiagram-shapeTerminator":"Terminator","dxDiagram-shapePredefinedProcess":"Predefined Process","dxDiagram-shapeDocument":"Document","dxDiagram-shapeMultipleDocuments":"Multiple Documents","dxDiagram-shapeManualInput":"Manual Input","dxDiagram-shapePreparation":"Preparation","dxDiagram-shapeData":"Data","dxDiagram-shapeDatabase":"Database","dxDiagram-shapeHardDisk":"Hard Disk","dxDiagram-shapeInternalStorage":"Internal Storage","dxDiagram-shapePaperTape":"Paper Tape","dxDiagram-shapeManualOperation":"Manual Operation","dxDiagram-shapeDelay":"Delay","dxDiagram-shapeStoredData":"Stored Data","dxDiagram-shapeDisplay":"Display","dxDiagram-shapeMerge":"Merge","dxDiagram-shapeConnector":"Connector","dxDiagram-shapeOr":"Or","dxDiagram-shapeSummingJunction":"Summing Junction","dxDiagram-shapeContainerDefaultText":"Container","dxDiagram-shapeVerticalContainer":"Vertical Container","dxDiagram-shapeHorizontalContainer":"Horizontal Container","dxDiagram-shapeCardDefaultText":"Person's Name","dxDiagram-shapeCardWithImageOnLeft":"Card with Image on the Left","dxDiagram-shapeCardWithImageOnTop":"Card with Image on the Top","dxDiagram-shapeCardWithImageOnRight":"Card with Image on the Right","dxGantt-dialogTitle":"Title","dxGantt-dialogStartTitle":"Start","dxGantt-dialogEndTitle":"End","dxGantt-dialogProgressTitle":"Progress","dxGantt-dialogResourcesTitle":"Resources","dxGantt-dialogResourceManagerTitle":"Resource Manager","dxGantt-dialogTaskDetailsTitle":"Task Details","dxGantt-dialogEditResourceListHint":"Edit Resource List","dxGantt-dialogEditNoResources":"No resources","dxGantt-dialogButtonAdd":"Add","dxGantt-contextMenuNewTask":"New Task","dxGantt-contextMenuNewSubtask":"New Subtask","dxGantt-contextMenuDeleteTask":"Delete Task","dxGantt-contextMenuDeleteDependency":"Delete Dependency","dxGantt-dialogTaskDeleteConfirmation":"Deleting a task also deletes all its dependencies and subtasks. Are you sure you want to delete this task?","dxGantt-dialogDependencyDeleteConfirmation":"Are you sure you want to delete the dependency from the task?","dxGantt-dialogResourcesDeleteConfirmation":"Deleting a resource also deletes it from tasks to which this resource is assigned. Are you sure you want to delete these resources? Resources: {0}","dxGantt-dialogConstraintCriticalViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. How would you like to proceed?","dxGantt-dialogCancelOperationMessage":"Cancel the operation","dxGantt-dialogDeleteDependencyMessage":"Delete the dependency","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"Move the task and keep the dependency","dxGantt-undo":"Undo","dxGantt-redo":"Redo","dxGantt-expandAll":"Expand All","dxGantt-collapseAll":"Collapse All","dxGantt-addNewTask":"Add New Task","dxGantt-deleteSelectedTask":"Delete Selected Task","dxGantt-zoomIn":"Zoom In","dxGantt-zoomOut":"Zoom Out","dxGantt-fullScreen":"Full Screen","dxGantt-quarter":"Q{0}","dxGantt-sortingAscendingText":"Sort Ascending","dxGantt-sortingDescendingText":"Sort Descending","dxGantt-sortingClearText":"Clear Sorting","dxGantt-showResources":"Show Resources","dxGantt-showDependencies":"Show Dependencies","dxGantt-dialogStartDateValidation":"Start date must be after {0}","dxGantt-dialogEndDateValidation":"End date must be after {0}"}}),y5={},TL=lg({engine:function(){return"base"},_dictionary:PL,load:function(e){ye(!0,this._dictionary,e)},_localizablePrefix:"@",setup:function(e){this._localizablePrefix=e},localizeString:function(e){var n=this,t=new RegExp("(^|[^a-zA-Z_0-9"+n._localizablePrefix+"-]+)("+n._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),o=n._localizablePrefix+n._localizablePrefix;return e.replace(t,(r,a,l,c)=>{var b,p=n._localizablePrefix+c;return l!==o&&(b=n.format(c)),b||(y5[c]=function(e){return wC(Bw(e).replace(/-/g," "))}(c)),a+(b||p)})},localizeNode:function(e){var n=this;K(e).each((t,o)=>{!o.nodeType||(3===o.nodeType?o.nodeValue=n.localizeString(o.nodeValue):K(o).is("iframe")||(je(o.attributes||[],(r,a)=>{if("string"==typeof a.value){var l=n.localizeString(a.value);a.value!==l&&(a.value=l)}}),K(o).contents().each((r,a)=>{n.localizeNode(a)})))})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(e){return e?y5:ye({},y5,this.getMessagesByLocales()[du.locale()])},getFormatter:function(e){return this._getFormatterBase(e)||this._getFormatterBase(e,"en")},_getFormatterBase:function(e,n){var t=du.getValueByClosestLocale(o=>((e,n)=>this._dictionary[n]||{})(0,o)[e]);if(t)return function(){var o=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return o.unshift(t),ga.apply(this,o)}},format:function(e){var n=this.getFormatter(e),t=Array.prototype.slice.call(arguments,1);return n&&n.apply(this,t)||""}});const ze=TL;var KC=Ii()?Mi().Promise:Promise;KC||(KC=function(e){var n=new Rt;return e(n.resolve.bind(this),n.reject.bind(this)),n.promise()},KC.resolve=function(e){return(new Rt).resolve(e).promise()},KC.reject=function(e){return(new Rt).reject(e).promise()},KC.all=function(e){return Xn.apply(this,e).then(function(){return[].slice.call(arguments)})});const vr=KC;var d0=new _r;const Ho=Wr(ua.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created: {0}",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The '{0}' script is referenced after the DevExtreme scripts or not referenced at all",E1042:"{0} requires the key field to be specified",E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"Column '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",E1051:'HtmlEditor\'s valueType is "{0}", but the {0} converter was not imported.',E1052:'{0} should have the "dataSource" option specified',E1053:'The "buttons" option accepts an array that contains only objects or string values',E1054:"All text editor buttons must have names",E1055:'One or several text editor buttons have invalid or non-unique "name" values',E1056:'The {0} widget does not support buttons of the "{1}" type',E1058:'The "startDayHour" must be earlier than the "endDayHour"',E1059:"The following column names are not unique: {0}",E1060:"All editable columns must have names",W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects",W1013:'The "message" field in the dialog component was renamed to "messageHtml". Change your code correspondingly. In addition, if you used HTML code in the message, make sure that it is secure',W1014:"The Floating Action Button exceeds the recommended speed dial action count. If you need to display more speed dial actions, increase the maxSpeedDialActionCount option value in the global config.",W1015:'The "cellDuration" should divide the range from the "startDayHour" to the "endDayHour" into even intervals',W1016:"The '{0}' field in the HTML Editor toolbar item configuration was renamed to '{1}'. Please make a corresponding change in your code.",W1017:"The 'key' property is not specified for a lookup data source. Please specify it to prevent requests for the entire dataset when users filter data.",W1018:"Infinite scrolling may not work properly with multiple selection. To use these features together, set 'selection.deferred' to true or set 'selection.selectAllMode' to 'page'.",W1019:"Filter query string exceeds maximum length limit of {0} characters.",W1020:"hideEvent is ignored when the shading property is true"});var v1,qC,Th,Vd,C1,Bv,DL=Mi(),NY=lu.add,YC=Fp,FY=kC,_1=new Rt,_g="link[rel=dx-theme]",Rv="dx-hairlines";function O5(){if(!Ii())return null;var n,e=K("
",v1).addClass("dx-theme-marker").appendTo(v1.documentElement);try{return(n=DL.getComputedStyle(e.get(0)).fontFamily)&&"dx."===(n=n.replace(/["']/g,"")).substr(0,"dx.".length)?n.substr("dx.".length):null}finally{e.remove()}}function $C(e){var n,t,o=!0;function r(){C1=null,clearInterval(t),o=!0,d0.fire(),d0.empty(),_1.resolve()}if(C1=e,M5())r();else{if(!o)return void(C1&&(C1=e));n=Date.now(),o=!1,t=setInterval(function(){var a=M5(),l=!a&&Date.now()-n>15e3;l&&Ho.log("W0004",C1),(a||l)&&r()},10)}}function M5(){if(!C1)return!0;var e="any"===C1;if("resolved"===_1.state()&&e)return!0;var n=O5();return!(!n||!e)||n===C1}function GY(e){var n=e?e.split("."):[],t=null;if(Th){if(e in Th)return e;je(Th,function(o,r){var a=o.split(".");if((!n[0]||a[0]===n[0])&&(!n[1]||n[1]===a[1])&&(!n[2]||n[2]===a[2])&&((!t||r.isActive)&&(t=o),r.isActive))return!1})}return t}function w5(e){(function pue(e){try{e!==v1&&(Th=null)}catch(n){Th=null}v1=e})((e=e||{}).context||gn.getDocument()),v1&&(function jY(){var e=K(_g,v1);!e.length||(Th={},qC=K(Of(""),v1),e.each(function(){var n=K(this,v1),t=n.attr("data-theme"),o=n.attr("href"),r="true"===n.attr("data-active");Th[t]={url:o,isActive:r}}),e.last().after(qC),e.remove())}(),Vd=void 0,Nd(e))}function Nd(e){if(!arguments.length)return Vd=Vd||O5();Y9(YC()),"string"==typeof(e=e||{})&&(e={theme:e});var o,n=e._autoInit,t=e.loadCallback;if((Vd=GY(e.theme||Vd))&&(o=Th[Vd]),t&&d0.add(t),o)qC.attr("href",Th[Vd].url),(d0.has()||"resolved"!==_1.state()||e._forceTimeout)&&$C(Vd);else{if(!n)throw Ho.Error("E0021",Vd);Ii()&&$C("any"),d0.fire(),d0.empty()}_1.done(()=>ZC(n9(),Vd))}function ZC(e,n){Bv=function EL(e){var n=[],t=(e=e||Nd())&&e.split(".");return t&&(n.push("dx-theme-"+t[0],"dx-theme-"+t[0]+"-typography"),t.length>1&&n.push("dx-color-scheme-"+t[1]+(ts(e)?"-"+t[2]:""))),n}(n).join(" "),K(e).addClass(Bv),function(){var t=Ii()&&DL.devicePixelRatio;if(t&&!(t<2)){var o=K("
");o.css("border",".5px solid transparent"),K("body").append(o),1===no(o)&&(K(e).addClass(Rv),Bv+=" "+Rv),o.remove()}}()}function Y9(e){K(e).removeClass(Bv)}function P5(e,n){return n||(n=Vd||O5()),new RegExp(e).test(n)}function ts(e){return P5("material",e)}function S5(e){return P5("generic",e)}function $9(e){return P5("compact",e)}function J9(e,n){return new vr(t=>{var o=()=>{clearInterval(r),clearTimeout(a),t()},r=setInterval(()=>{(function Z9(e,n){var t=gn.getDocument(),o=t.createElement("span");o.style.position="absolute",o.style.top="-9999px",o.style.left="-9999px",o.style.visibility="hidden",o.style.fontFamily="Arial",o.style.fontSize="250px",o.style.fontWeight=n,o.innerHTML=e,t.body.appendChild(o);var r=o.offsetWidth;o.style.fontFamily="Roboto, RobotoFallback, Arial";var a=o.offsetWidth;return o.parentNode.removeChild(o),r!==a})(e,n)&&o()},15),a=setTimeout(o,2e3)})}function Q9(){if(w5({_autoInit:!0,_forceTimeout:!0}),K(_g,v1).length)throw Ho.Error("E0022")}Ii()?Q9():NY(Q9),FY.add(function(e,n){_1.done(function(){Y9(n),ZC(e)})}),ci.changed.add(function(){w5({_autoInit:!0})});var LL=f2(),BL="dx-loadindicator-segment",X9=br.inherit({_getDefaultOptions:function(){return ye(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var e=Nd();return this.callBase().concat([{device:function(){return"android"===ci.real().platform&&!/chrome/i.test(LL.userAgent)},options:{viaImage:!0}},{device:function(){return ts(e)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return S5(e)},options:{_animatingSegmentCount:7}}])},_useTemplates:function(){return!1},_init:function(){this.callBase(),this.$element().addClass("dx-loadindicator")},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=K("
").addClass("dx-loadindicator-wrapper"),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=K("
").addClass("dx-loadindicator-content"),this._$wrapper.append(this._$content)},_renderMarkup:function(){!tL()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var e=this.option("_animatingSegmentInner");this._$indicator=K("
").addClass("dx-loadindicator-icon"),this._$content.append(this._$indicator);for(var n=this.option("_animatingSegmentCount");n>=0;--n){var t=K("
").addClass(BL).addClass(BL+n);e&&t.append(K("
").addClass("dx-loadindicator-segment-inner")),this._$indicator.append(t)}},_renderMarkupForImage:function(){var e=this.option("indicatorSrc");this._$wrapper.addClass("dx-loadindicator-image"),e&&this._$wrapper.css("backgroundImage","url("+e+")")},_renderDimensions:function(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation:function(){if(this._$indicator){var e=this.option("width"),n=this.option("height");if(e||n){e=vi(this.$element()),n=Ti(this.$element());var t=Math.min(n,e);this._$wrapper.css({height:t,width:t,fontSize:t})}}},_clean:function(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation:function(){!this._$indicator||(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage:function(){this._$wrapper.css("backgroundImage","none")},_optionChanged:function(e){switch(e.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(e)}}});xi("dxLoadIndicator",X9);const uu=X9;var D2="dxTranslator",qY=/matrix(3d)?\((.+?)\)/,eP=/translate(?:3d)?\((.+?)\)/,Il=function(e){e=K(e);var n=Hv(e);return{left:n.x,top:n.y}};function JC(e){return"string"===ol(e)&&"%"===e[e.length-1]}function zL(e,n){e.length&&Hs(e.get(0),D2,n)}var cP,tP=function(e){e.length&&V8(e.get(0),D2)},QC=function(e){return e.x=e.x||0,e.y=e.y||0,"translate("+(JC(e.x)?e.x:e.x+"px")+", "+(JC(e.y)?e.y:e.y+"px")+")"},Hv=function(e){var n=e.length?Hs(e.get(0),D2):null;if(!n){var o=(e.css("transform")||QC({x:0,y:0})).match(qY),r=o&&o[1];o?(o=o[2].split(","),"3d"===r?o=o.slice(12,15):(o.push(0),o=o.slice(4,7))):o=[0,0,0],zL(e,n={x:parseFloat(o[0]),y:parseFloat(o[1]),z:parseFloat(o[2])})}return n},Zr=function(e,n){e=K(e);var r,t=n.left,o=n.top;void 0===t?(r=Hv(e)).y=o||0:void 0===o?(r=Hv(e)).x=t||0:zL(e,r={x:t||0,y:o||0,z:0}),e.css({transform:QC(r)}),(JC(t)||JC(o))&&tP(e)},Ef=function(e,n){e=K(e);var t,o={left:0,top:0,transform:"none"};n&&(t=e.css("transition"),o.transition="none"),e.css(o),tP(e),n&&(e.get(0),e.css("transition",t))},D5=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,$Y={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1)"},I5={},VL=function(e){var t,n=(e=$Y[e]||e).match(D5);n||(n=$Y[t="linear"].match(D5)),n=n.slice(1,5);for(var o=0;on.max&&(t+=e.myLocation-n.max),t},sP=function(e,n,t){return n.myLocationt.max?"h"===e?"right":"bottom":"none"},lP=function(e){e.myLocation=e.atLocation+rP(e.atAlign)*e.atSize-rP(e.myAlign)*e.mySize+e.offset},k5={fit:function(e,n){var t=!1;e.myLocation>n.max&&(e.myLocation=n.max,t=!0),e.myLocationn.max)){var t=ye({},e,{myAlign:aP(e.myAlign),atAlign:aP(e.atAlign),offset:-e.offset});lP(t),t.oversize=E5(t,n),(t.myLocation>=n.min&&t.myLocation<=n.max||e.oversize>t.oversize)&&(e.myLocation=t.myLocation,e.oversize=t.oversize,e.flip=!0)}},flipfit:function(e,n){this.flip(e,n),this.fit(e,n)},none:function(e){e.oversize=0}},jL=function(){var e=K("
").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(K("body")),n=e.get(0).offsetWidth-e.get(0).clientWidth;e.remove(),cP=n},GL={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},dP=function(e,n){var t=K(e),o=t.offset(),r=ye(!0,{},GL,{h:{location:o.left},v:{location:o.top}});if(!n)return r;var a=oP(n.my),l=oP(n.at),c=K(n.of).length&&n.of||nP,p=FL(n.offset),b=function(e){var n=g2(e),t=String(n&&n[0]).toLowerCase(),o=String(n&&n[1]).toLowerCase();return NL.test(t)||(t="none"),NL.test(o)||(o=t),{h:t,v:o}}(n.collision),T=n.boundary,L=FL(n.boundaryOffset),N={mySize:ho(t),myAlign:a.h,atAlign:l.h,offset:p.h,collision:b.h,boundaryOffset:L.h},G={mySize:no(t),myAlign:a.v,atAlign:l.v,offset:p.v,collision:b.v,boundaryOffset:L.v};if(c.preventDefault)N.atLocation=c.pageX,G.atLocation=c.pageY,N.atSize=0,G.atSize=0;else if(c=K(c),dc(c[0]))N.atLocation=c.scrollLeft(),G.atLocation=c.scrollTop(),"phone"===ci.real().deviceType&&c[0].visualViewport?(N.atLocation=Math.max(N.atLocation,c[0].visualViewport.offsetLeft),G.atLocation=Math.max(G.atLocation,c[0].visualViewport.offsetTop),N.atSize=c[0].visualViewport.width,G.atSize=c[0].visualViewport.height):(N.atSize=c[0].innerWidth>c[0].outerWidth?c[0].innerWidth:vi(c),G.atSize=c[0].innerHeight>c[0].outerHeight||JY?c[0].innerHeight:Ti(c));else if(9===c[0].nodeType)N.atLocation=0,G.atLocation=0,N.atSize=vi(c),G.atSize=Ti(c);else{var Y=qo(c.get(0)),ie=pP(c);N.atLocation=ie.left,G.atLocation=ie.top,N.atSize=Math.max(Y.width,ho(c)),G.atSize=Math.max(Y.height,no(c))}lP(N),lP(G);var ue=function(){var Se=K(nP),Te=vi(Se),Me=Ti(Se),Le=Se.scrollLeft(),He=Se.scrollTop(),nt=gn.getDocumentElement(),ut=Df?nt.clientWidth/Te:1,wt=Df?nt.clientHeight/Me:1;void 0===cP&&jL();var Lt=Te,Kt=Me;if(T){var tn=K(T),Pn=tn.offset();Le=Pn.left,He=Pn.top,Lt=vi(tn),Kt=Ti(tn)}return{h:{min:Le+N.boundaryOffset,max:Le+Lt/ut-N.mySize-N.boundaryOffset},v:{min:He+G.boundaryOffset,max:He+Kt/wt-G.mySize-G.boundaryOffset}}}();N.oversize=E5(N,ue.h),G.oversize=E5(G,ue.v),N.collisionSide=sP("h",N,ue.h),G.collisionSide=sP("v",G,ue.v),k5[N.collision]&&k5[N.collision](N,ue.h),k5[G.collision]&&k5[G.collision](G,ue.v);var xe=function(Se){return n.precise?Se:Math.round(Se)};return ye(!0,r,{h:{location:xe(N.myLocation),oversize:xe(N.oversize),fit:N.fit,flip:N.flip,collisionSide:N.collisionSide},v:{location:xe(G.myLocation),oversize:xe(G.oversize),fit:G.fit,flip:G.flip,collisionSide:G.collisionSide},precise:n.precise}),r},uP=function(e,n,t,o,r){ce(e.style)&&!gn.isNode(e.style)?e.style.transform=r?t.replace(n,""):t:e.setAttribute("style",r?o.replace(n,""):o)},pP=function e(n){var t,o,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,l=a.get(0);if(!l)return n.offset();var T,c=(null===(t=l.getAttribute)||void 0===t?void 0:t.call(l,"style"))||"",p=null===(o=l.style)||void 0===o?void 0:o.transform,b=null===(r=c.match(_ue))||void 0===r?void 0:r[0];return b?(uP(l,b,p,c,!0),T=e(n,a.parent()),uP(l,b,p,c,!1)):T=e(n,a.parent()),T},XC=function(e,n){var t=K(e);if(!n)return t.offset();Ef(t,!0);var o=pP(t),r=n.h&&n.v?n:dP(t,n),a=function(l){return n.precise?l:Math.round(l)};return Zr(t,{left:r.h.location-a(o.left),top:r.v.location-a(o.top)}),r};XC.inverseAlign||(XC.inverseAlign=aP),XC.normalizeAlign||(XC.normalizeAlign=oP);const pc={calculateScrollbarWidth:jL,calculate:dP,setup:XC,offset:function(e){return e=K(e).get(0),dc(e)?null:e&&"pageY"in e&&"pageX"in e?{top:e.pageY,left:e.pageX}:K(e).offset()}};var hP=Mi(),A5=_n(hg,"dxFX"),vue=/^([+-])=(.*)/i,L5="dxAnimData",gP="dxAnimQueue",vg="transform",Cue={initAnimation:function(e,n){e.css({transitionProperty:"none"}),"string"==typeof n.from?e.addClass(n.from):ny(e,n.from);var t=this,o=new Rt,r=n.cleanupWhen;n.transitionAnimation={deferred:o,finish:function(){t._finishTransition(e),r?Xn(o,r).always(function(){t._cleanup(e,n)}):t._cleanup(e,n),o.resolveWith(e,[n,e])}},this._completeAnimationCallback(e,n).done(function(){n.transitionAnimation.finish()}).fail(function(){o.rejectWith(e,[n,e])}),n.duration||n.transitionAnimation.finish(),e.css("transform")},animate:function(e,n){return this._startAnimation(e,n),n.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(e,n){var c,t=this,o=Date.now()+n.delay,r=new Rt,a=new Rt,l=new Rt,p=eL()+".dxFX";n.transitionAnimation.cleanup=function(){clearTimeout(c),clearTimeout(b),We.off(e,p),We.off(e,A5)},We.one(e,p,function(){Date.now()-o>=n.duration&&a.reject()}),We.off(e,A5),We.on(e,A5,function(){t.stop(e,n),r.reject()});var b=setTimeout(function(){c=setTimeout(function(){l.reject()},n.duration+n.delay+pu._simulatedTransitionEndDelay),Xn(a,l).fail(function(){r.resolve()}.bind(this))});return r.promise()},_startAnimation:function(e,n){e.css({transitionProperty:"all",transitionDelay:n.delay+"ms",transitionDuration:n.duration+"ms",transitionTimingFunction:n.easing}),"string"==typeof n.to?e[0].className+=" "+n.to:n.to&&ny(e,n.to)},_finishTransition:function(e){e.css("transition","none")},_cleanup:function(e,n){n.transitionAnimation.cleanup(),"string"==typeof n.from&&(e.removeClass(n.from),e.removeClass(n.to))},stop:function(e,n,t){!n||(t?n.transitionAnimation.finish():(jo(n.to)&&je(n.to,function(o){e.css(o,e.css(o))}),this._finishTransition(e),this._cleanup(e,n)))}},WL={initAnimation:function(e,n){ny(e,n.from)},animate:function(e,n){var t=new Rt,o=this;return n?(je(n.to,function(r){void 0===n.from[r]&&(n.from[r]=o._normalizeValue(e.css(r)))}),n.to[vg]&&(n.from[vg]=o._parseTransform(n.from[vg]),n.to[vg]=o._parseTransform(n.to[vg])),n.frameAnimation={to:n.to,from:n.from,currentValue:n.from,easing:VL(n.easing),duration:n.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),l0(n.frameAnimation.animationFrameId),t.resolve()},draw:function(){if(n.draw)n.draw(this.currentValue);else{var r=ye({},this.currentValue);r[vg]&&(r[vg]=Ca(r[vg],function(a,l){return"translate"===l?QC(a):"scale"===l?"scale("+a+")":"rotate"===l.substr(0,l.length-1)?l+"("+a+"deg)":void 0}).join(" ")),e.css(r)}}},n.delay?(n.frameAnimation.startTime+=n.delay,n.frameAnimation.delayTimeout=setTimeout(function(){o._startAnimation(e,n)},n.delay)):o._startAnimation(e,n),t.promise()):t.reject().promise()},_startAnimation:function(e,n){We.off(e,A5),We.on(e,A5,function(){n.frameAnimation&&l0(n.frameAnimation.animationFrameId)}),this._animationStep(e,n)},_parseTransform:function(e){var n={};return je(e.match(/\w+\d*\w*\([^)]*\)\s*/g),function(t,o){var r=function(e){var n=e.match(eP);if(n&&n[1])return n=n[1].split(","),{x:parseFloat(n[0]),y:parseFloat(n[1]),z:parseFloat(n[2])}}(o),a=o.match(/scale\((.+?)\)/),l=o.match(/(rotate.)\((.+)deg\)/);r&&(n.translate=r),a&&a[1]&&(n.scale=parseFloat(a[1])),l&&l[1]&&(n[l[1]]=parseFloat(l[2]))}),n},stop:function(e,n,t){var o=n&&n.frameAnimation;!o||(l0(o.animationFrameId),clearTimeout(o.delayTimeout),t&&o.finish(),delete n.frameAnimation)},_animationStep:function(e,n){var t=n&&n.frameAnimation;if(t){var o=(new Date).valueOf();if(o>=t.startTime+t.duration)return void t.finish();t.currentValue=this._calcStepValue(t,o-t.startTime),t.draw();var r=this;t.animationFrameId=kv(function(){r._animationStep(e,n)})}},_calcStepValue:function(e,n){return function t(o,r){var a=Array.isArray(r)?[]:{};return je(r,function(l,c){if("string"==typeof c&&!1===parseFloat(c,10))return!0;var p,b,T,L,N,G;a[l]="object"==typeof c?t(o[l],c):(b=n/e.duration,T=n,L=1*o[p=l],N=r[p]-o[p],G=e.duration,function ZY(e){return I5[e]}(e.easing)(b,T,L,N,G))}),a}(e.from,e.to)},_normalizeValue:function(e){var n=parseFloat(e,10);return!1===n?e:n}},yue={initAnimation:function(){},animate:function(){return(new Rt).resolve().promise()},stop:gt,isSynchronous:!0},XY=function(e,n,t,o){je(["from","to"],function(){if(!t(e[this]))throw ua.Error("E0010",n,this,o)})},fP=function(e,n){return XY(e,n,function(t){return jo(t)},"a plain object")},YL={validateConfig:function(e){!function(e,n){XY(e,"css",function(t){return"string"==typeof t},"a string")}(e)},setup:function(){}},bue={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},ey={validateConfig:function(e){fP(e,"slide")},setup:function(e,n){var t=Il(e);if("slide"!==n.type){var o="slideIn"===n.type?n.from:n.to;o.position=ye({of:hP},bue[n.direction]),vP(e,o)}this._setUpConfig(t,n.from),this._setUpConfig(t,n.to),tP(e)},_setUpConfig:function(e,n){n.left="left"in n?n.left:"+=0",n.top="top"in n?n.top:"+=0",this._initNewPosition(e,n)},_initNewPosition:function(e,n){var t={left:n.left,top:n.top};delete n.left,delete n.top;var o=this._getRelativeValue(t.left);void 0!==o?t.left=o+e.left:n.left=0,void 0!==(o=this._getRelativeValue(t.top))?t.top=o+e.top:n.top=0,n[vg]=QC({x:t.left,y:t.top})},_getRelativeValue:function(e){var n;if("string"==typeof e&&(n=vue.exec(e)))return parseInt(n[1]+"1")*n[2]}},z5={setup:function(e,n){var t,o,r=n.from,a=n.to,l="fadeOut"===n.type?1:0,c="fadeOut"===n.type?0:1,p=jo(r)?String(null!==(t=r.opacity)&&void 0!==t?t:l):String(r),b=jo(a)?String(null!==(o=a.opacity)&&void 0!==o?o:c):String(a);switch(n.skipElementInitialStyles||(p=e.css("opacity")),n.type){case"fadeIn":b=1;break;case"fadeOut":b=0}n.from={visibility:"visible",opacity:p},n.to={opacity:b}}},eq={validateConfig:function(e){fP(e,"pop")},setup:function(e,n){var t=n.from,o=n.to,r="opacity"in t?t.opacity:e.css("opacity"),a="opacity"in o?o.opacity:1,l="scale"in t?t.scale:0,c="scale"in o?o.scale:1;n.from={opacity:r};var p=Hv(e);n.from[vg]=this._getCssTransform(p,l),n.to={opacity:a},n.to[vg]=this._getCssTransform(p,c)},_getCssTransform:function(e,n){return QC(e)+"scale("+n+")"}},mP={custom:{setup:function(){}},slide:ey,slideIn:ey,slideOut:ey,fade:z5,fadeIn:z5,fadeOut:z5,pop:eq,css:YL},tq={type:"custom",from:{},to:{},duration:400,start:gt,complete:gt,easing:"ease",delay:0},nq={duration:400,easing:"ease",delay:0};function iq(){var e=this.element,n=this.config;if(vP(e,n.from),vP(e,n.to),this.configurator.setup(e,n),e.data(L5,this),pu.off&&(n.duration=0,n.delay=0),this.strategy.initAnimation(e,n),n.start){var t=Di(e);n.start.apply(this,[t,n])}}var oq=function(){var e=this,n=e.element,t=e.config;return e.isStarted=!0,e.strategy.animate(n,t).done(function(){!function(e){var n=e.element,t=e.config;if(n.removeData(L5),t.complete){var o=Di(n);t.complete.apply(this,[o,t])}e.deferred.resolveWith(this,[n,t])}(e)}).fail(function(){e.deferred.rejectWith(this,[n,t])})},Oue=function(e){var n=this.element,t=this.config;clearTimeout(this.startTimeout),this.isStarted||this.start(),this.strategy.stop(n,t,e)},qL=_n(hg,"dxFXStartAnimation"),$L=function(e,n){var o=ye(!0,{},"css"===n.type?nq:tq,n),r=function(e){var n=mP[e.type];if(!n)throw ua.Error("E0011",e.type);return n}(o),a=function(e){e=e||{};var n={transition:u5()?Cue:WL,frame:WL,noAnimation:yue},t=e.strategy||"transition";return"css"===e.type&&!u5()&&(t="noAnimation"),n[t]}(o),l={element:K(e),config:o,configurator:r,strategy:a,isSynchronous:a.isSynchronous,setup:iq,start:oq,stop:Oue,deferred:new Rt};return qn(r.validateConfig)&&r.validateConfig(o),function(e){We.off(e.element,qL),We.on(e.element,qL,function(){pu.stop(e.element)}),e.deferred.always(function(){We.off(e.element,qL)})}(l),l};function ZL(e){return e.data(gP)||[]}var _P=function(e){e.removeData(gP)};function ty(e){return!!e.data(L5)}function JL(e,n){if((n=ZL(e)).length){var t=n.shift();0===n.length&&_P(e),function Cg(e){return e.setup(),pu.off||e.isSynchronous?e.start():e.startTimeout=setTimeout(function(){e.start()}),e.deferred.promise()}(t).done(function(){ty(e)||JL(e)})}}function vP(e,n){if(n&&n.position){var t=K(hP),o=0,r=0,a=pc.calculate(e,n.position),l=e.offset(),c=e.position();c.top>l.top&&(r=t.scrollTop()),c.left>l.left&&(o=t.scrollLeft()),ye(n,{left:a.h.location-l.left+c.left-o,top:a.v.location-l.top+c.top-r}),delete n.position}}function ny(e,n){je(n,function(t,o){try{e.css(t,qn(o)?o():o)}catch(r){}})}var pu={off:!1,animationTypes:mP,animate:function(e,n){var t=K(e);if(!t.length)return(new Rt).resolve().promise();var o=$L(t,n);return function aq(e,n){var t=ZL(e);(function sq(e,n){e.data(gP,n)})(e,t),t.push(n),ty(e)||JL(e,t)}(t,o),o.deferred.promise()},createAnimation:$L,isAnimating:ty,stop:function(e,n){var t=K(e),o=ZL(t);je(o,function(a,l){l.config.delay=0,l.config.duration=0,l.isSynchronous=!0}),ty(t)||JL(t,o);var r=t.data(L5);r&&r.stop(n),t.removeData(L5),_P(t)},_simulatedTransitionEndDelay:100};const Jo=pu;var lp=function(e){return 0===e?0:e/Math.abs(e)},rd=function(e,n,t){var o=!n&&0!==n,r=!t&&0!==t;return o&&(n=r?e:Math.min(e,t)),r&&(t=o?e:Math.max(e,n)),Math.min(Math.max(e,n),t)},y1=function(e,n,t){return e>=n&&e<=t};function I2(e){return Math.abs(parseInt(e.toExponential().split("e")[1]))}function CP(e,n){var t=function QL(e){var n=e.toExponential().split("e"),t=parseFloat(n[0]);return{exponent:parseInt(n[1]),mantissa:t}}(e);return parseFloat("".concat(t.mantissa,"e").concat(t.exponent+n))}function va(e,n){var l,t=iy(n||0)+2,o=e.toString().split("."),r=e,a=Math.abs(e),c=gv(e),p=a>1?10:0;return 1===o.length?e:(c||(gv(n)&&(t=o[0].length+I2(n)),e=(e=a)-Math.floor(e)+p),t=function cq(){return"0.000300"!==3e-4.toPrecision(3)}()&&I2(e)>6||t>7?15:7,c||(l=parseFloat(e.toPrecision(t)).toString().split("."))[0]!==p.toString()?parseFloat(r.toPrecision(t)):parseFloat(o[0]+"."+l[1]))}function iy(e){var n=e.toString();if(n.indexOf(".")<0)return 0;var t=n.split("."),o=t[1].indexOf("e");return o>=0?o:t[1].length}function XL(e,n){if(e<0&&n%2!=1)return NaN;var t=Math.pow(Math.abs(e),1/n);return n%2==1&&e<0?-t:t}function yg(e){var n,t=e.toString();return(null===(n=t.split(".")[1])||void 0===n?void 0:n.length)||parseInt(t.split("e-")[1])||0}function ry(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return parseFloat(e.toFixed(n))}var yP=lu.add,u0=Math.abs,V5=10,wue=su(function(){var e="desktop"===ci.real().deviceType;if(!bh("pointer-events")||!e)return gt;var n=K("
").addClass("dx-gesture-cover").css("pointerEvents","none");return We.subscribeGlobal(n,"dxmousewheel",function(t){t.preventDefault()}),yP(function(){n.appendTo("body")}),function(t,o){n.css("pointerEvents",t?"all":"none"),t&&n.css("cursor",o)}}),xP=HC.inherit({gesture:!0,configure:function(e){this.getElement().css("msTouchAction",e.immediate?"pinch-zoom":""),this.callBase(e)},allowInterruptionByMouseWheel:function(){return 2!==this._stage},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=0},start:function(e){e._needSkipEvent||YA(e)?this._cancel(e):(this._startEvent=Tf(e),this._startEventData=es(e),this._stage=1,this._init(e),this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),180))},move:function(e){if(1===this._stage&&this._directionConfirmed(e)){if(this._stage=2,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(e),this._adjustStartEvent(e),this._start(this._startEvent),0===this._stage)return;this._requestAccept(e),this._move(e),this._forgetAccept()}else 2===this._stage&&(this._clearSelection(e),this._move(e))},_directionConfirmed:function(e){var n=this._getTouchBoundary(e),t=f1(this._startEventData,es(e)),o=u0(t.x),r=u0(t.y),a=this._validateMove(n,o,r),l=this._validateMove(n,r,o),c=this.getDirection(e);return"both"===c&&(a||l)||"horizontal"===c&&a||"vertical"===c&&l||this._immediateAccepted},_validateMove:function(e,n,t){return n&&n>=e&&(!this.immediate||n>=t)},_getTouchBoundary:function(e){return this.immediate||Pc(e)?0:V5},_adjustStartEvent:function(e){var n=this._getTouchBoundary(e),t=f1(this._startEventData,es(e));this._startEvent.pageX+=lp(t.x)*n,this._startEvent.pageY+=lp(t.y)*n},_resetActiveElement:function(){"ios"===ci.real().platform&&this.getElement().find(":focus").length&&Hd()},_toggleGestureCover:function(e){this._toggleGestureCoverImpl(e)},_toggleGestureCoverImpl:function(e){2===this._stage&&function(e,n){wue()(e,n)}(e,this.getElement().css("cursor"))},_clearSelection:function(e){Pc(e)||g1(e)||(()=>{var e=Mh.getSelection();if(e&&"Caret"!==e.type)if(e.empty)e.empty();else if(e.removeAllRanges)try{e.removeAllRanges()}catch(n){}})()},end:function(e){this._toggleGestureCover(!1),2===this._stage?this._end(e):1===this._stage&&this._stop(e),this._stage=0},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:gt,_start:gt,_move:gt,_stop:gt,_end:gt});xP.initialTouchBoundary=V5,xP.touchBoundary=function(e){if(!ce(e))return V5;V5=e};const N5=xP;var Dh="dxdragstart",hu="dxdrag",cp="dxdragend",E2="dxdragenter",k2="dxdragleave",Nv="dxdrop",sy="dxDragEventsCount",Ih=[],b1=[],F5=[],OP={setup:function(e,n){-1!==Ki(e,Ih)||(Ih.push(e),b1.push([]),F5.push(n||{}))},add:function(e,n){var t=Ki(e,Ih);this.updateEventsCounter(e,n.type,1);var o=n.selector;-1===Ki(o,b1[t])&&b1[t].push(o)},updateEventsCounter:function(e,n,t){if([E2,k2,Nv].indexOf(n)>-1){var o=Hs(e,sy)||0;Hs(e,sy,Math.max(0,o+t))}},remove:function(e,n){this.updateEventsCounter(e,n.type,-1)},teardown:function(e){if(!Hs(e,sy)){var t=Ki(e,Ih);Ih.splice(t,1),b1.splice(t,1),F5.splice(t,1),V8(e,sy)}}};xh(E2,OP),xh(k2,OP),xh(Nv,OP);var Pue=N5.inherit({ctor:function(e){this.callBase(e),this.direction="both"},_init:function(e){this._initEvent=e},_start:function(e){e=this._fireEvent(Dh,this._initEvent),this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset;var n=dg(e.targetElements||(null===e.targetElements?[]:Ih));this._dropTargets=Ca(n,function(t){return K(t).get(0)})},_move:function(e){var n=es(e),t=this._calculateOffset(n);e=this._fireEvent(hu,e,{offset:t}),this._processDropTargets(e),e._cancelPreventDefault||e.preventDefault()},_calculateOffset:function(e){return{x:this._calculateXOffset(e),y:this._calculateYOffset(e)}},_calculateXOffset:function(e){return"vertical"!==this.direction?this._fitOffset(e.x-this._startEventData.x,this._maxLeftOffset,this._maxRightOffset):0},_calculateYOffset:function(e){return"horizontal"!==this.direction?this._fitOffset(e.y-this._startEventData.y,this._maxTopOffset,this._maxBottomOffset):0},_fitOffset:function(e,n,t){return null!=n&&(e=Math.max(e,-n)),null!=t&&(e=Math.min(e,t)),e},_processDropTargets:function(e){var n=this._findDropTarget(e);n===this._currentDropTarget||(this._fireDropTargetEvent(e,k2),this._currentDropTarget=n,this._fireDropTargetEvent(e,E2))},_fireDropTargetEvent:function(e,n){if(this._currentDropTarget){var t={type:n,originalEvent:e,draggingElement:this._$element.get(0),target:this._currentDropTarget};rp(t)}},_findDropTarget:function(e){var t,n=this;return je(Ih,function(o,r){if(n._checkDropTargetActive(r)){var a=K(r);je(function(e){var n=Ki(e.get(0),Ih),t=b1[n].filter(r=>r),o=e.find(t.join(", "));return-1!==Ki(void 0,b1[n])&&(o=o.add(e)),o}(a),function(l,c){var p=K(c);n._checkDropTarget(function(e){var n=Ki(e.get(0),Ih);return F5[n]}(a),p,K(t),e)&&(t=c)})}}),t},_checkDropTargetActive:function(e){var n=!1;return je(this._dropTargets,function(t,o){return!(n=n||o===e||o0(o,e))}),n},_checkDropTarget:function(e,n,t,o){if(n.get(0)===K(o.target).get(0))return!1;var a=function(e,n){return e.itemPositionFunc?e.itemPositionFunc(n):n.offset()}(e,n);if(o.pageXa.left+l.width||o.pageY>a.top+l.height||t.length&&t.closest(n).length||e.checkDropTarget&&!e.checkDropTarget(n,o))&&n},_end:function(e){var n=es(e);this._fireEvent(cp,e,{offset:this._calculateOffset(n)}),this._fireDropTargetEvent(e,Nv),delete this._currentDropTarget}});If({emitter:Pue,events:[Dh,hu,cp]});var MP=function(){var e=[];return{add:function(n){-1===Ki(n,e)&&e.push(n)},remove:function(n){var t=Ki(n,e);-1!==t&&e.splice(t,1)},fire:function(){var n=e.pop(),t=!!n;return t&&n(),t},hasCallback:function(){return e.length>0}}}(),ly="dxResizable",U5="dx-resizable-handle",wP="dx-resizable-handle-corner",_q=_n(Dh,ly),j5=_n(hu,ly),vq=_n(cp,ly),Cq={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},PP=jp.inherit({_getDefaultOptions:function(){return ye(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null,roundStepValue:!0,_keepAspectRatio:!1})},_init:function(){this.callBase(),this.$element().addClass("dx-resizable")},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){this._handles=[];var e=this.option("handles");if("none"!==e){var n="all"===e?["top","bottom","left","right"]:e.split(" ");je(n,(t,o)=>{this._renderHandle(o)}),Ki("bottom",n)+1&&Ki("right",n)+1&&this._renderHandle("corner-bottom-right"),Ki("bottom",n)+1&&Ki("left",n)+1&&this._renderHandle("corner-bottom-left"),Ki("top",n)+1&&Ki("right",n)+1&&this._renderHandle("corner-top-right"),Ki("top",n)+1&&Ki("left",n)+1&&this._renderHandle("corner-top-left"),this._attachEventHandlers()}},_renderHandle:function(e){var n=K("
").addClass(U5).addClass(U5+"-"+e).appendTo(this.$element());this._handles.push(n)},_attachEventHandlers:function(){if(!this.option("disabled")){var e={};e[_q]=this._dragStartHandler.bind(this),e[j5]=this._dragHandler.bind(this),e[vq]=this._dragEndHandler.bind(this),this._handles.forEach(n=>{We.on(n,e,{direction:"both",immediate:!0})})}},_detachEventHandlers:function(){this._handles.forEach(e=>{We.off(e)})},_toggleEventHandlers:function(e){e?this._attachEventHandlers():this._detachEventHandlers()},_getElementSize:function(){var e=this.$element();return"border-box"===e.css("boxSizing")?{width:ho(e),height:no(e)}:{width:vi(e),height:Ti(e)}},_dragStartHandler:function(e){var n=this.$element();n.is(".dx-state-disabled, .dx-state-disabled *")?e.cancel=!0:(this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(e),this._elementLocation=Il(n),this._elementSize=this._getElementSize(),this._renderDragOffsets(e),this._resizeStartAction({event:e,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),e.targetElements=null)},_toggleResizingClass:function(e){this.$element().toggleClass("dx-resizable-resizing",e)},_renderDragOffsets:function(e){var n=this._getArea();if(n){var t=K(e.target).closest("."+U5),o=ho(t),r=no(t),a=t.offset(),l=n.offset,c=this._getAreaScrollOffset();e.maxLeftOffset=this._leftMaxOffset=a.left-l.left-c.scrollX,e.maxRightOffset=this._rightMaxOffset=l.left+n.width-a.left-o+c.scrollX,e.maxTopOffset=this._topMaxOffset=a.top-l.top-c.scrollY,e.maxBottomOffset=this._bottomMaxOffset=l.top+n.height-a.top-r+c.scrollY}},_getBorderWidth:function(e,n){if(dc(e.get(0)))return 0;var t=e.css(Cq[n]);return parseInt(t)||0},_proportionate:function(e,n){var t=this._elementSize;return n*("x"===e?t.width/t.height:t.height/t.width)},_getProportionalDelta:function(e){var{x:n,y:t}=e,o=this._proportionate("y",n);if(o>=t)return{x:n,y:o};var r=this._proportionate("x",t);return r>=n?{x:r,y:t}:{x:0,y:0}},_getDirectionName:function(e){var n=this._movingSides;return"x"===e?n.left?"left":"right":n.top?"top":"bottom"},_fitIntoArea:function(e,n){var t,o=this._getDirectionName(e);return Math.min(n,null!==(t=this["_".concat(o,"MaxOffset")])&&void 0!==t?t:1/0)},_fitDeltaProportionally:function(e){var n=Xt({},e),t=this._elementSize,{minWidth:o,minHeight:r,maxWidth:a,maxHeight:l}=this.option(),c=()=>t.width+n.x,p=()=>t.height+n.y,b=Y=>n[Y]===this._fitIntoArea(Y,n[Y]),T=()=>y1(c(),o,a)&&b("x"),L=()=>y1(p(),r,l)&&b("y");if(!T()){var N=this._fitIntoArea("x",rd(c(),o,a)-t.width);n={x:N,y:this._proportionate("y",N)}}if(!L()){var G=this._fitIntoArea("y",rd(p(),r,l)-t.height);n={x:this._proportionate("x",G),y:G}}return T()&&L()?n:{x:0,y:0}},_fitDelta:function(e){var{x:n,y:t}=e,o=this._elementSize,{minWidth:r,minHeight:a,maxWidth:l,maxHeight:c}=this.option();return{x:rd(o.width+n,r,l)-o.width,y:rd(o.height+t,a,c)-o.height}},_getDeltaByOffset:function(e){var n=this._movingSides,t=this._isCornerHandler(n)&&this.option("_keepAspectRatio"),o={x:e.x*(n.left?-1:1),y:e.y*(n.top?-1:1)};if(t){var r=this._getProportionalDelta(o);o=this._fitDeltaProportionally(r)}else{var l=this._fitDelta(o);o=this._roundByStep(l)}return o},_updatePosition:function(e,n){var{width:t,height:o}=n,r=this._elementLocation,a=this._movingSides,l=this.$element(),c=this._getElementSize();Zr(l,{top:r.top+(a.top?e.y*(a.top?-1:1)-((c.height||o)-o):0),left:r.left+(a.left?e.x*(a.left?-1:1)-((c.width||t)-t):0)})},_dragHandler:function(e){var n=this._getOffset(e),t=this._getDeltaByOffset(n),o=this._updateDimensions(t);this._updatePosition(t,o),this._triggerResizeAction(e,o)},_updateDimensions:function(e){var n=b=>"px"===b.substring(b.length-2),t="strict"===this.option("stepPrecision"),o=this._elementSize,r=o.width+e.x,a=o.height+e.y,l=this.$element().get(0).style,c=e.x||t||n(l.width),p=e.y||t||n(l.height);return c&&this.option({width:r}),p&&this.option({height:a}),{width:c?r:o.width,height:p?a:o.height}},_triggerResizeAction:function(e,n){var{width:t,height:o}=n;this._resizeAction({event:e,width:this.option("width")||t,height:this.option("height")||o,handles:this._movingSides}),op(this.$element())},_isCornerHandler:e=>0===Object.values(e).reduce((n,t)=>n^t,0),_getOffset:function(e){var n=e.offset,t=this._movingSides;return!t.left&&!t.right&&(n.x=0),!t.top&&!t.bottom&&(n.y=0),n},_roundByStep:function(e){return"strict"===this.option("stepPrecision")?this._roundStrict(e):this._roundNotStrict(e)},_getSteps:function(){return Qk(this.option("step"),!this.option("roundStepValue"))},_roundNotStrict:function(e){var n=this._getSteps();return{x:e.x-e.x%n.h,y:e.y-e.y%n.v}},_roundStrict:function(e){var n=this._movingSides,t={x:e.x*(n.left?-1:1),y:e.y*(n.top?-1:1)},o=this._getSteps(),r=this._elementLocation,a=this._elementSize,p=((n.left?r.left:r.left+a.width)+t.x)%o.h,b=((n.top?r.top:r.top+a.height)+t.y)%o.v,T=Math.sign||(xe=>0==(xe=+xe)||isNaN(xe)?xe:xe>0?1:-1),L=(xe,Se)=>(1+.2*T(Se))%1*xe,N=(xe,Se)=>Math.abs(xe)<.2*Se,G=t.x-p,Y=t.y-b;p>L(o.h,t.x)&&(G+=o.h),b>L(o.v,t.y)&&(Y+=o.v);var ie=!n.left&&!n.right||N(t.x,o.h)?0:G,ue=!n.top&&!n.bottom||N(t.y,o.v)?0:Y;return{x:ie*(n.left?-1:1),y:ue*(n.top?-1:1)}},_getMovingSides:function(e){var n=K(e.target),t=n.hasClass(wP+"-top-left"),o=n.hasClass(wP+"-top-right"),r=n.hasClass(wP+"-bottom-left"),a=n.hasClass(wP+"-bottom-right");return{top:n.hasClass("dx-resizable-handle-top")||t||o,left:n.hasClass("dx-resizable-handle-left")||t||r,bottom:n.hasClass("dx-resizable-handle-bottom")||r||a,right:n.hasClass("dx-resizable-handle-right")||o||a}},_getArea:function(){var e=this.option("area");return qn(e)&&(e=e.call(this)),jo(e)?this._getAreaFromObject(e):this._getAreaFromElement(e)},_getAreaScrollOffset:function(){var e=this.option("area"),t={scrollY:0,scrollX:0};if(!qn(e)&&!jo(e)){var o=K(e)[0];dc(o)&&(t.scrollX=o.pageXOffset,t.scrollY=o.pageYOffset)}return t},_getAreaFromObject:function(e){var n={width:e.right-e.left,height:e.bottom-e.top,offset:{left:e.left,top:e.top}};return this._correctAreaGeometry(n),n},_getAreaFromElement:function(e){var t,n=K(e);return n.length&&(t={width:t0(n),height:zd(n),offset:ye({top:0,left:0},dc(n[0])?{}:n.offset())},this._correctAreaGeometry(t,n)),t},_correctAreaGeometry:function(e,n){var t=n?this._getBorderWidth(n,"left"):0,o=n?this._getBorderWidth(n,"top"):0;e.offset.left+=t+this._getBorderWidth(this.$element(),"left"),e.offset.top+=o+this._getBorderWidth(this.$element(),"top"),e.width-=ho(this.$element())-t0(this.$element()),e.height-=no(this.$element())-zd(this.$element())},_dragEndHandler:function(e){var n=this.$element();this._resizeEndAction({event:e,width:ho(n),height:no(n),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(e){this.option("width",rd(e,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(e){this.option("height",rd(e,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(e){switch(e.name){case"disabled":this._toggleEventHandlers(!e.value),this.callBase(e);break;case"handles":this._invalidate();break;case"minWidth":case"maxWidth":Ii()&&this._renderWidth(ho(this.$element()));break;case"minHeight":case"maxHeight":Ii()&&this._renderHeight(no(this.$element()));break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":case"roundStepValue":case"_keepAspectRatio":break;default:this.callBase(e)}},_clean:function(){this.$element().find("."+U5).remove()},_useTemplates:function(){return!1}});xi(ly,PP);const p0=PP;var DP="dx-swatch-";const A2={getSwatchContainer:e=>{var t=K(e).closest('[class^="'.concat(DP,'"], [class*=" ').concat(DP,'"]')),o=Fp();if(!t.length)return o;var r=new RegExp("(\\s|^)(".concat(DP,".*?)(\\s|$)")),a=t[0].className.match(r)[2],l=o.children("."+a);return l.length||(l=K("
").addClass(a).appendTo(o)),l}};var L2=1500,dy=[],aR=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L2,n=dy.length,t=(n?dy[n-1]:e)+1;return dy.push(t),t},EP=e=>{var n=dy.indexOf(e);n>=0&&dy.splice(n,1)},sR=Mi(),bq={observe:gt,unobserve:gt,disconnect:gt},Oq=new class xq{constructor(){if(!Ii()||!sR.ResizeObserver)return bq;this._callbacksMap=new Map,this._observer=new sR.ResizeObserver(n=>{n.forEach(t=>{var o;null===(o=this._callbacksMap.get(t.target))||void 0===o||o(t)})})}observe(n,t){this._callbacksMap.set(n,t),this._observer.observe(n)}unobserve(n){this._callbacksMap.delete(n),this._observer.unobserve(n)}disconnect(){this._callbacksMap.clear(),this._observer.disconnect()}};const uy=Oq;var py=Mi(),kP={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},lR={h:0,v:0};class AP{constructor(n){var{position:t,target:o,container:r,$root:a,$content:l,$wrapper:c,onPositioned:p,onVisualPositionChanged:b,dragOutsideBoundary:T,dragAndResizeArea:L,outsideDragFactor:N,restorePosition:G,_fixWrapperPosition:Y}=n;this._props={position:t,target:o,container:r,dragOutsideBoundary:T,dragAndResizeArea:L,outsideDragFactor:N,restorePosition:G,onPositioned:p,onVisualPositionChanged:b,_fixWrapperPosition:Y},this._$root=a,this._$content=l,this._$wrapper=c,this._$markupContainer=void 0,this._$wrapperCoveredElement=void 0,this._shouldRenderContentInitialPosition=!0,this._visualPosition=void 0,this._initialPosition=void 0,this._previousVisualPosition=void 0,this._$dragResizeContainer=void 0,this._outsideDragFactor=void 0,this.updateContainer(r),this.updatePosition(t,o),this._updateDragResizeContainer(),this._updateOutsideDragFactor()}get $container(){return this._$markupContainer}get $dragResizeContainer(){return this._$dragResizeContainer}get outsideDragFactor(){return this._outsideDragFactor}set fixWrapperPosition(n){this._props._fixWrapperPosition=n,this.styleWrapperPosition()}set dragAndResizeArea(n){this._props.dragAndResizeArea=n,this._updateDragResizeContainer()}set dragOutsideBoundary(n){this._props.dragOutsideBoundary=n,this._updateDragResizeContainer(),this._updateOutsideDragFactor()}set outsideDragFactor(n){this._props.outsideDragFactor=n,this._updateOutsideDragFactor()}set restorePosition(n){this._props.restorePosition=n}restorePositionOnNextRender(n){this._shouldRenderContentInitialPosition=n||!this._visualPosition}openingHandled(){this.restorePositionOnNextRender(this._props.restorePosition)}dragHandled(){this.restorePositionOnNextRender(!1)}resizeHandled(){this.restorePositionOnNextRender(!1)}updateTarget(n){this._props.target=n,this.updatePosition(this._props.position,n)}updatePosition(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._props.target;this._props.position=n,this._position=this._normalizePosition(n,t),this._updateWrapperCoveredElement()}updateContainer(n){this._props.container=n;var t=null!=n?n:Fp(),o=this._$root.closest(t);o.length||(o=K(t).first()),this._$markupContainer=o.length?o:this._$root.parent(),this._updateWrapperCoveredElement(),this._updateDragResizeContainer()}detectVisualPositionChange(n){this._updateVisualPositionValue(),this._raisePositionedEvents(n)}positionContent(){this._shouldRenderContentInitialPosition?this._renderContentInitialPosition():(Zr(this._$content,this._visualPosition),this.detectVisualPositionChange())}positionWrapper(){this._$wrapperCoveredElement&&pc.setup(this._$wrapper,{my:"top left",at:"top left",of:this._$wrapperCoveredElement})}isAllWindowCoveredByWrapper(){return!this._$wrapperCoveredElement||dc(this._$wrapperCoveredElement.get(0))}styleWrapperPosition(){var n=this.isAllWindowCoveredByWrapper()||this._props._fixWrapperPosition;this._$wrapper.css("position",n?"fixed":"absolute")}_updateVisualPositionValue(){this._previousVisualPosition=this._visualPosition,this._visualPosition=Il(this._$content)}_renderContentInitialPosition(){this._renderBoundaryOffset(),Ef(this._$content);var n=this._$wrapper.css("overflow");this._$wrapper.css("overflow","hidden");var t=pc.setup(this._$content,this._position);this._$wrapper.css("overflow",n),this._initialPosition=t,this.detectVisualPositionChange()}_raisePositionedEvents(n){var t=this._previousVisualPosition,o=this._visualPosition;((null==t?void 0:t.top)!==o.top||(null==t?void 0:t.left)!==o.left)&&this._props.onVisualPositionChanged({previousPosition:t,position:o,event:n}),this._props.onPositioned({position:this._initialPosition})}_updateOutsideDragFactor(){this._outsideDragFactor=this._getOutsideDragFactor()}_getOutsideDragFactor(){return this._props.dragOutsideBoundary?1:this._props.outsideDragFactor}_updateDragResizeContainer(){this._$dragResizeContainer=this._getDragResizeContainer()}_getDragResizeContainer(){return this._props.dragOutsideBoundary?K(py):this._props.dragAndResizeArea?K(this._props.dragAndResizeArea):n9().get(0)||this._props.container?this._$markupContainer:K(py)}_updateWrapperCoveredElement(){this._$wrapperCoveredElement=this._getWrapperCoveredElement()}_renderBoundaryOffset(){var n,t=null!==(n=this._position)&&void 0!==n?n:{boundaryOffset:lR};this._$content.css("margin","".concat(t.v,"px ").concat(t.h,"px"))}_getWrapperCoveredElement(){var n=this._props.container;return n?K(n):this._position?K(function(e){return!(!e||!e.preventDefault)}(this._position.of)?py:this._position.of||py):void 0}_normalizePosition(n,t){var o={of:t,boundaryOffset:lR};return ce(n)?ye(!0,{},o,this._positionToObject(n)):o}_positionToObject(n){return Wi(n)?ye({},kP[n]):n}}var cR=lu.add,kf=Mi(),Mq=kC,Sq="dx-inner-overlay",RP="dx-state-invisible",Iq=["onShowing","onShown","onHiding","onHidden","onPositioned","onResizeStart","onResize","onResizeEnd","onVisualPositionChanged"],uR=[],pR="dx-prevent-safari-scrolling";cR(()=>{We.subscribeGlobal(gn.getDocument(),io.down,e=>{for(var n=uR.length-1;n>=0;n--)if(!uR[n]._proxiedDocumentDownHandler(e))return})});var BP=br.inherit({_supportedKeys:function(){return ye(this.callBase(),{escape:function(){this.hide()},upArrow:e=>{var n;null===(n=this._drag)||void 0===n||n.moveUp(e)},downArrow:e=>{var n;null===(n=this._drag)||void 0===n||n.moveDown(e)},leftArrow:e=>{var n;null===(n=this._drag)||void 0===n||n.moveLeft(e)},rightArrow:e=>{var n;null===(n=this._drag)||void 0===n||n.moveRight(e)}})},_getDefaultOptions:function(){return ye(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",wrapperAttr:{},position:ye({},kP.center),width:"80vw",minWidth:null,maxWidth:null,height:"80vh",minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,from:{opacity:1,scale:1},to:{opacity:0,scale:.55}}},dragOutsideBoundary:!1,closeOnOutsideClick:!1,copyRootClassesToWrapper:!1,_ignoreCopyRootClassesToWrapperDeprecation:!1,_ignoreElementAttrDeprecation:!1,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",dragEnabled:!1,dragAndResizeArea:void 0,outsideDragFactor:0,resizeEnabled:!1,onResizeStart:null,onResize:null,onResizeEnd:null,innerOverlay:!1,restorePosition:!0,target:void 0,container:void 0,hideTopOverlayHandler:()=>{this.hide()},hideOnParentScroll:!1,onPositioned:null,propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0,_fixWrapperPosition:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!Ii()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),ye(this._optionsByReference,{animation:!0})},$wrapper:function(){return this._$wrapper},_eventBindingTarget:function(){return this._$content},ctor:function(e,n){this.callBase(e,n),n&&(n.copyRootClassesToWrapper&&!n._ignoreCopyRootClassesToWrapperDeprecation&&this._logDeprecatedOptionWarning("copyRootClassesToWrapper",{since:"21.2",message:'Use the "wrapperAttr" option instead'}),n.elementAttr&&!n._ignoreElementAttrDeprecation&&this._logDeprecatedOptionWarning("elementAttr",{since:"21.2",message:'Use the "wrapperAttr" option instead'}))},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._customWrapperClass=null,this._$wrapper=K("
").addClass("dx-overlay-wrapper"),this._$content=K("
").addClass("dx-overlay-content"),this._initInnerOverlayClass();var e=this.$element();this.option("copyRootClassesToWrapper")&&this._$wrapper.addClass(e.attr("class")),e.addClass("dx-overlay"),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),this._toggleViewPortSubscription(!0),this._initHideTopOverlayHandler(this.option("hideTopOverlayHandler")),this._parentsScrollSubscriptionInfo={handler:n=>{this._hideOnParentsScrollHandler(n)}},this._updateResizeCallbackSkipCondition(),this.warnPositionAsFunction()},warnPositionAsFunction(){qn(this.option("position"))&&ua.log("W0018")},_initOptions:function(e){this._setAnimationTarget(e.target),this.callBase(e)},_initInnerOverlayClass:function(){this._$content.toggleClass(Sq,this.option("innerOverlay"))},_setAnimationTarget:function(e){if(ce(e)){var n=this.option();["animation.show.from.position.of","animation.show.to.position.of","animation.hide.from.position.of","animation.hide.to.position.of"].forEach(t=>{for(var o=t.split("."),r=n;r;){if(1===o.length){jo(r)&&(r[o.shift()]=e);break}r=r[o.shift()]}})}},_initHideTopOverlayHandler:function(e){this._hideTopOverlayHandler=e},_initActions:function(){this._actions={},je(Iq,(e,n)=>{this._actions[n]=this._createActionByOption(n,{excludeValidators:["disabled","readOnly"]})||gt})},_initCloseOnOutsideClickHandler:function(){var e=this;this._proxiedDocumentDownHandler=function(){return e._documentDownHandler(...arguments)}},_areContentDimensionsRendered:function(e){var n,t,o,a,l,r=null===(n=e.contentBoxSize)||void 0===n?void 0:n[0];if(r)return parseInt(r.inlineSize,10)===(null===(a=this._renderedDimensions)||void 0===a?void 0:a.width)&&parseInt(r.blockSize,10)===(null===(l=this._renderedDimensions)||void 0===l?void 0:l.height);var c=e.contentRect;return parseInt(c.width,10)===(null===(t=this._renderedDimensions)||void 0===t?void 0:t.width)&&parseInt(c.height,10)===(null===(o=this._renderedDimensions)||void 0===o?void 0:o.height)},_contentResizeHandler:function(e){!this._shouldSkipContentResize(e)&&this._$content.is(":visible")&&this._renderGeometry({shouldOnlyReposition:!0})},_updateResizeCallbackSkipCondition(){var e=this._doesShowAnimationChangeDimensions();this._shouldSkipContentResize=n=>e&&this._showAnimationProcessing||this._areContentDimensionsRendered(n)},_doesShowAnimationChangeDimensions:function(){var e=this.option("animation");return["to","from"].some(n=>{var t,o=null==e||null===(t=e.show)||void 0===t?void 0:t[n];return to(o)&&("width"in o||"height"in o)})},_observeContentResize:function(e){if(this.option("useResizeObserver")){var n=this._$content.get(0);e?uy.observe(n,t=>{this._contentResizeHandler(t)}):uy.unobserve(n)}},_initMarkup(){this.callBase(),this._renderWrapperAttributes(),this._initPositionController()},_documentDownHandler:function(e){this._showAnimationProcessing&&this._stopAnimation();var n=this.option("closeOnOutsideClick");qn(n)&&(n=n(e));var t=K(kf.document).is(e.target)||o0(kf.document,e.target),o=K(e.target).closest(".".concat(Sq)).length;return t&&!o&&!(this._$content.is(e.target)||o0(this._$content.get(0),e.target))&&n&&this._outsideClickHandler(e),this.option("propagateOutsideClick")},_outsideClickHandler(e){this.option("shading")&&e.preventDefault(),this.hide()},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this._templateManager.addDefaultTemplates({content:new cu}),this.callBase()},_isTopOverlay:function(){for(var e=this._overlayStack(),n=e.length-1;n>=0;n--){var t=e[n]._findTabbableBounds();if(t.first||t.last)return e[n]===this}return!1},_overlayStack:function(){return uR},_zIndexInitValue:function(){return BP.baseZIndex()},_toggleViewPortSubscription:function(e){var n=this;Mq.remove(this._viewPortChangeHandle),e&&(this._viewPortChangeHandle=function(){n._viewPortChangeHandler(...arguments)},Mq.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._positionController.updateContainer(this.option("container")),this._refresh()},_renderWrapperAttributes(){var{wrapperAttr:e}=this.option(),n=ye({},e),t=n.class;delete n.class,this.$wrapper().attr(n).removeClass(this._customWrapperClass).addClass(t),this._customWrapperClass=t},_renderVisibilityAnimate:function(e){return this._observeContentResize(e),this._stopAnimation(),e?this._show():this._hide()},_getAnimationConfig:function(){return this._getOptionValue("animation",this)},_animateShowing:function(){var e,n,t,o=this,r=null!==(e=this._getAnimationConfig())&&void 0!==e?e:{},a=this._normalizeAnimation(r.show,"to"),l=null!==(n=null==a?void 0:a.start)&&void 0!==n?n:gt,c=null!==(t=null==a?void 0:a.complete)&&void 0!==t?t:gt;this._animate(a,function(){if(!o._isAnimationPaused){o.option("focusStateEnabled")&&We.trigger(o._focusTarget(),"focus");for(var p=arguments.length,b=new Array(p),T=0;T{delete this._parentHidden}),this._parentHidden)return this._isHidden=!0,this._showingDeferred.resolve();if(this._currentVisible)return(new Rt).resolve().promise();if(this._currentVisible=!0,this._isHidingActionCanceled)delete this._isHidingActionCanceled,this._showingDeferred.resolve();else{var e=()=>{this._stopAnimation(),this._toggleVisibility(!0),this._$content.css("visibility","hidden"),this._$content.toggleClass(RP,!1),this._updateZIndexStackPosition(!0),this._positionController.openingHandled(),this._renderContent();var n={cancel:!1};this._actions.onShowing(n),n.cancel?(this._toggleVisibility(!1),this._$content.css("visibility",""),this._$content.toggleClass(RP,!0),this._isShowingActionCanceled=!0,this._moveFromContainer(),this.option("visible",!1),this._showingDeferred.resolve()):(this._$content.css("visibility",""),this._renderVisibility(!0),this._animateShowing())};this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(e)):e()}return this._showingDeferred.promise()},_normalizeAnimation:function(e,n){return e&&(e=ye({type:"slide",skipElementInitialStyles:!0},e))[n]&&"object"==typeof e[n]&&ye(e[n],{position:this._positionController._position}),e},_animateHiding:function(){var e,n,t,o=this,r=null!==(e=this._getAnimationConfig())&&void 0!==e?e:{},a=this._normalizeAnimation(r.hide,"from"),l=null!==(n=null==a?void 0:a.start)&&void 0!==n?n:gt,c=null!==(t=null==a?void 0:a.complete)&&void 0!==t?t:gt;this._animate(a,function(){var p;o._$content.css("pointerEvents",""),o._renderVisibility(!1);for(var b=arguments.length,T=new Array(b),L=0;L{e.resolve(),this.option("templatesRenderAsynchronously")&&this._dimensionChanged()}}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator(),e.done(()=>{this.option("visible")&&this._moveToContainer()}),e.promise()},_getPositionControllerConfig(){var{target:e,container:n,dragAndResizeArea:t,dragOutsideBoundary:o,outsideDragFactor:r,_fixWrapperPosition:a,restorePosition:l}=this.option();return{target:e,container:n,$root:this.$element(),$content:this._$content,$wrapper:this._$wrapper,onPositioned:this._actions.onPositioned,onVisualPositionChanged:this._actions.onVisualPositionChanged,restorePosition:l,dragAndResizeArea:t,dragOutsideBoundary:o,outsideDragFactor:r,_fixWrapperPosition:a}},_initPositionController(){this._positionController=new AP(this._getPositionControllerConfig())},_renderDrag:function(){var e=this._getDragTarget();if(e){var n={dragEnabled:this.option("dragEnabled"),handle:e.get(0),draggableElement:this._$content.get(0),positionController:this._positionController};this._drag?this._drag.init(n):this._drag=new class SP{constructor(n){this.init(n)}init(n){var{dragEnabled:t,handle:o,draggableElement:r,positionController:a}=n;this._positionController=a,this._draggableElement=r,this._handle=o,this._dragEnabled=t,this.unsubscribe(),t&&this.subscribe()}moveDown(n){this._moveTo(5,0,n)}moveUp(n){this._moveTo(-5,0,n)}moveLeft(n){this._moveTo(0,-5,n)}moveRight(n){this._moveTo(0,5,n)}subscribe(){var n=this._getEventNames();We.on(this._handle,n.startEventName,t=>{this._dragStartHandler(t)}),We.on(this._handle,n.updateEventName,t=>{this._dragUpdateHandler(t)}),We.on(this._handle,n.endEventName,t=>{this._dragEndHandler(t)})}unsubscribe(){var n=this._getEventNames();We.off(this._handle,n.startEventName),We.off(this._handle,n.updateEventName),We.off(this._handle,n.endEventName)}_getEventNames(){return{startEventName:_n(Dh,"overlayDrag"),updateEventName:_n(hu,"overlayDrag"),endEventName:_n(cp,"overlayDrag")}}_dragStartHandler(n){var t=this._getAllowedOffsets();this._prevOffset={x:0,y:0},n.targetElements=[],n.maxTopOffset=t.top,n.maxBottomOffset=t.bottom,n.maxLeftOffset=t.left,n.maxRightOffset=t.right}_dragUpdateHandler(n){this._moveByOffset({top:n.offset.y-this._prevOffset.y,left:n.offset.x-this._prevOffset.x}),this._prevOffset=n.offset}_dragEndHandler(n){this._positionController.dragHandled(),this._positionController.detectVisualPositionChange(n)}_moveTo(n,t,o){if(this._dragEnabled){o.preventDefault(),o.stopPropagation();var r=this._fitOffsetIntoAllowedRange(n,t);this._moveByOffset(r),this._dragEndHandler(o)}}_fitOffsetIntoAllowedRange(n,t){var o=this._getAllowedOffsets();return{top:rd(n,-o.top,o.bottom),left:rd(t,-o.left,o.right)}}_getContainerDimensions(){var n=gn.getDocument(),t=this._positionController.$dragResizeContainer.get(0),o=ho(t),r=no(t);return dc(t)&&(r=Math.max(n.body.clientHeight,r),o=Math.max(n.body.clientWidth,o)),{width:o,height:r}}_getContainerPosition(){var n=this._positionController.$dragResizeContainer.get(0);return dc(n)?{top:0,left:0}:n0(n)}_getElementPosition(){return n0(this._draggableElement)}_getInnerDelta(){var n=this._getContainerDimensions(),t=this._getElementDimensions();return{x:n.width-t.width,y:n.height-t.height}}_getOuterDelta(){var{width:n,height:t}=this._getElementDimensions(),o=this._positionController.outsideDragFactor;return{x:n*o,y:t*o}}_getFullDelta(){var n=this._getInnerDelta(),t=this._getOuterDelta();return{x:n.x+t.x,y:n.y+t.y}}_getElementDimensions(){return{width:this._draggableElement.offsetWidth,height:this._draggableElement.offsetHeight}}_getAllowedOffsets(){var n=this._getFullDelta();if(!(n.y>=0&&n.x>=0))return{top:0,bottom:0,left:0,right:0};var o=this._getElementPosition(),r=this._getContainerPosition(),a=this._getOuterDelta();return{top:o.top-r.top+a.y,bottom:-o.top+r.top+n.y,left:o.left-r.left+a.x,right:-o.left+r.left+n.x}}_moveByOffset(n){var t=Il(this._draggableElement);Zr(this._draggableElement,{left:t.left+n.left,top:t.top+n.top})}}(n)}},_renderResize:function(){this._resizable=this._createComponent(this._$content,p0,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:e=>{this._resizeEndHandler(e),this._observeContentResize(!0)},onResize:e=>{this._actions.onResize(e)},onResizeStart:e=>{this._observeContentResize(!1),this._actions.onResizeStart(e)},minHeight:100,minWidth:100,area:this._positionController.$dragResizeContainer})},_resizeEndHandler:function(e){var n=this._resizable.option("width"),t=this._resizable.option("height");n&&this._setOptionWithoutOptionChange("width",n),t&&this._setOptionWithoutOptionChange("height",t),this._cacheDimensions(),this._positionController.resizeHandled(),this._positionController.detectVisualPositionChange(e.event),this._actions.onResizeEnd(e)},_renderScrollTerminator:function(){var e=this._$wrapper,n=_n(hu,this.NAME);We.off(e,n),We.on(e,n,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:function(t){t||this._toggleGestureCoverImpl(t)},_clearSelection:gt,isNative:!0},t=>{var o=t.originalEvent.originalEvent,{type:r}=o||{},a="wheel"===r,l="mousemove"===r,c=a&&!Fs(t);t._cancelPreventDefault=!0,o&&!1!==t.cancelable&&(!l&&!a||c)&&t.preventDefault()})},_getDragTarget:function(){return this.$content()},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._detachWrapperToContainer()},_detachWrapperToContainer:function(){this._$wrapper.detach()},_moveToContainer:function(){this._attachWrapperToContainer(),this._$content.appendTo(this._$wrapper)},_attachWrapperToContainer:function(){var e=this.$element(),t=void 0!==this.option("container")?this._positionController.$container:A2.getSwatchContainer(e);t&&t[0]===e.parent()[0]&&(t=e),this._$wrapper.appendTo(t)},_renderGeometry:function(e){var{visible:n,useResizeObserver:t}=this.option();if(n&&Ii()){var r=this._showAnimationProcessing&&!(null!=e&&e.forceStopAnimation)&&t;this._isAnimationPaused=r||void 0,this._stopAnimation(),null!=e&&e.shouldOnlyReposition?this._renderPosition(!1):this._renderGeometryImpl(null==e?void 0:e.isDimensionChange),r&&(this._animateShowing(),this._isAnimationPaused=void 0)}},_cacheDimensions:function(){!this.option("useResizeObserver")||(this._renderedDimensions={width:parseInt(vi(this._$content),10),height:parseInt(Ti(this._$content),10)})},_renderGeometryImpl:function(){this._positionController.updatePosition(this._getOptionValue("position")),this._renderWrapper(),this._renderDimensions(),this._renderPosition(),this._cacheDimensions()},_renderPosition(){this._positionController.positionContent()},_isAllWindowCovered:function(){return this._positionController.isAllWindowCoveredByWrapper()&&this.option("shading")},_toggleSafariScrolling:function(){var e=this.option("visible"),n=K(gn.getBody()),t="ios"===ci.real().platform&&Ha.safari,o=this._isAllWindowCovered(),r=n.hasClass(pR);t&&(!r||e&&o&&!this._disposed?!r&&e&&o&&(this._cachedBodyScrollTop=kf.pageYOffset,n.addClass(pR)):(n.removeClass(pR),kf.scrollTo(0,this._cachedBodyScrollTop),this._cachedBodyScrollTop=void 0))},_renderWrapper:function(){this._positionController.styleWrapperPosition(),this._renderWrapperDimensions(),this._positionController.positionWrapper()},_renderWrapperDimensions:function(){var e,n,t=this._positionController._$wrapperCoveredElement;if(t){var o=this._positionController.isAllWindowCoveredByWrapper(),r=gn.getDocumentElement();e=o?r.clientWidth:ho(t),n=o?kf.innerHeight:no(t),this._$wrapper.css({width:e,height:n})}},_renderDimensions:function(){var e=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",e),maxWidth:this._getOptionValue("maxWidth",e),minHeight:this._getOptionValue("minHeight",e),maxHeight:this._getOptionValue("maxHeight",e),width:this._getOptionValue("width",e),height:this._getOptionValue("height",e)})},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardListenerId=Up_on(this._$content,null,e=>this._keyboardHandler(e))},_keyboardHandler:function(e){var n=e.originalEvent,t=K(n.target);(t.is(this._$content)||!this.option("ignoreChildEvents"))&&this.callBase(...arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(e){e?this.option("visible")&&this._renderVisibilityAnimate(e):this._renderVisibilityAnimate(e)},_dimensionChanged:function(){this._renderGeometry({isDimensionChange:!0})},_clean:function(){this._contentAlreadyRendered||this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._observeContentResize(!1),this._cleanFocusState()},_stopShowTimer(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){Jo.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this._parentsScrollSubscriptionInfo=null,this.callBase(),this._toggleSafariScrolling(),this.option("visible")&&EP(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleRTLDirection:function(e){this._$content.toggleClass("dx-rtl",e)},_optionChanged:function(e){var n,t=e.value;if(Ki(e.name,Iq)>-1)this._initActions();else switch(e.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":this._toggleShading(this.option("visible")),this._toggleSafariScrolling();break;case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":this._renderGeometry(),null===(n=this._resizable)||void 0===n||n.option(e.name,e.value);break;case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":this._renderGeometry();break;case"position":this._positionController.updatePosition(this.option("position")),this._positionController.restorePositionOnNextRender(!0),this._renderGeometry(),this._toggleSafariScrolling();break;case"visible":this._renderVisibilityAnimate(t).done(()=>{!this._animateDeferred||this._animateDeferred.resolveWith(this)});break;case"target":this._positionController.updateTarget(t),this._setAnimationTarget(t),this._invalidate();break;case"container":var o;this._positionController.updateContainer(t),this._invalidate(),this._toggleSafariScrolling(),this.option("resizeEnabled")&&(null===(o=this._resizable)||void 0===o||o.option("area",this._positionController.$dragResizeContainer));break;case"innerOverlay":this._initInnerOverlayClass();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"hideTopOverlayHandler":this._toggleHideTopOverlayCallback(!1),this._initHideTopOverlayHandler(e.value),this._toggleHideTopOverlayCallback(this.option("visible"));break;case"hideOnParentScroll":this._toggleHideOnParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"propagateOutsideClick":break;case"animation":this._updateResizeCallbackSkipCondition();break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.callBase(e);break;case"_fixWrapperPosition":this._positionController.fixWrapperPosition=t;break;case"wrapperAttr":this._renderWrapperAttributes();break;case"dragAndResizeArea":this._positionController.dragAndResizeArea=t,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer),this._positionController.positionContent();break;case"dragOutsideBoundary":this._positionController.dragOutsideBoundary=t,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer);break;case"outsideDragFactor":this._positionController.outsideDragFactor=t;break;case"restorePosition":this._positionController.restorePosition=e.value;break;default:this.callBase(e)}},toggle:function(e){e=void 0===e?!this.option("visible"):e;var n=new Rt;if(e===this.option("visible"))return n.resolveWith(this,[e]).promise();var t=new Rt;return this._animateDeferred=t,this.option("visible",e),t.promise().done(()=>{delete this._animateDeferred,n.resolveWith(this,[this.option("visible")])}),n.promise()},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return Di(this._$content)},repaint:function(){this._contentAlreadyRendered?(this._positionController.restorePositionOnNextRender(!0),this._renderGeometry({forceStopAnimation:!0}),op(this._$content)):this.callBase()}});BP.baseZIndex=e=>(e=>L2=Kr(e,L2))(e),xi("dxOverlay",BP);const ju=BP;var Eq="dx-loadpanel-indicator",kq="dx-loadpanel-message",k=ju.inherit({_supportedKeys:function(){return ye(this.callBase(),{escape:gt})},_getDefaultOptions:function(){return ye(this.callBase(),{message:ze.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,templatesRenderAsynchronously:!1,hideTopOverlayHandler:null,resizeEnabled:!1,focusStateEnabled:!1,propagateOutsideClick:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return ts()},options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}}])},_init:function(){this.callBase.apply(this,arguments)},_render:function(){this.callBase(),this.$element().addClass("dx-loadpanel"),this.$wrapper().addClass("dx-loadpanel-wrapper")},_renderContentImpl:function(){this.callBase(),this.$content().addClass("dx-loadpanel-content"),this._$loadPanelContentWrapper=K("
").addClass("dx-loadpanel-content-wrapper"),this._$loadPanelContentWrapper.appendTo(this.$content()),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var e=this.option("delay");if(!e)return this.callBase();var n=new Rt,t=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout(function(){t().done(function(){n.resolve()})},e),n.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$loadPanelContentWrapper){var e=this.option("message");if(e){var n=K("
").addClass(kq).text(e);this._$loadPanelContentWrapper.append(n)}}},_renderLoadIndicator:function(){!this._$loadPanelContentWrapper||!this.option("showIndicator")||(this._$indicator||(this._$indicator=K("
").addClass(Eq).appendTo(this._$loadPanelContentWrapper)),this._createComponent(this._$indicator,uu,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find("."+kq).remove(),this.$content().find("."+Eq).remove(),delete this._$indicator},_togglePaneVisible:function(){this.$content().toggleClass("dx-loadpanel-pane-hidden",!this.option("showPane"))},_optionChanged:function(e){switch(e.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._renderLoadIndicator();break;default:this.callBase(e)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});xi("dxLoadPanel",k);const z=k;var j=lu.add,Z="DEVEXTREME_XHR_ERROR_UNLOAD",Ce=function(e){return Array.isArray(e)||(e=[e]),Ca(e,function(n){var t={selector:qn(n)||"string"==typeof n?n:n.getter||n.field||n.selector,desc:!(!n.desc&&"d"!==String(n.dir).charAt(0).toLowerCase())};return n.compare&&(t.compare=n.compare),t})},Ee=function(){var n,e={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"};return j(function(){var t=Mi();gn.listen(t,"beforeunload",function(){n=!0})}),function(t,o){return n?Z:t.status<400?e[r=o]||r:t.statusText;var r}}(),Fe={count:{seed:0,step:function(e){return 1+e}},sum:{seed:0,step:function(e,n){return e+n}},min:{step:function(e,n){return ne?n:e}},avg:{seed:[0,0],step:function(e,n){return[e[0]+n,e[1]+1]},finalize:function(e){return e[1]?e[0]/e[1]:NaN}}},lt=function(){var n,e=0;return{obtain:function(){0===e&&(n=new Rt),e++},release:function(){--e<1&&n.resolve()},promise:function(){return(0===e?(new Rt).resolve():n).promise()},reset:function(){e=0,n&&n.resolve()}}}(),xn=function(e,n,t){if(Array.isArray(e)){for(var r,o=Ca(n,function(l,c){return c}),a=0;a=0;n--)o=r[n],(t=Math.floor(e/hy(o)))>0&&(a[o+"s"]=t,e-=Fv(o,t));return a};function Fv(e,n){return hy(e)*n}function Uv(e){var t,n=-1;return Wi(e)?e:to(e)?(je(e,function(o,r){for(t=0;tt&&(o=t),o):e}function que(e,n){if(ce(e)){var t=n.getHours()-e.getHours();if(0!==t){var o=1===t||-23===t?-1:1,r=new Date(n.getTime()+36e5*o);(o>0||r.getDate()===n.getDate())&&n.setTime(r.getTime())}}}function $ue(e,n){return 60*(n.getTimezoneOffset()-e.getTimezoneOffset())*1e3}var xg=function(e){var n=new Date(...arguments);return n.setFullYear(e),n},gy={dateUnitIntervals:bg,convertMillisecondsToDateUnits:G5,dateToMilliseconds:function(e){var n=0;return to(e)&&je(e,function(t,o){n+=Fv(t.substr(0,t.length-1),o)}),Wi(e)&&(n=Fv(e,1)),n},getNextDateUnit:function(e,n){switch(Uv(e)){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return n?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":case"year":return"year";default:return 0}},convertDateUnitToMilliseconds:Fv,getDateUnitInterval:Uv,getDateFormatByTickInterval:function FP(e){return NP[Uv(e)]||""},getDatesDifferences:function(e,n){var t=0,o={year:e.getFullYear()!==n.getFullYear(),month:e.getMonth()!==n.getMonth(),day:e.getDate()!==n.getDate(),hour:e.getHours()!==n.getHours(),minute:e.getMinutes()!==n.getMinutes(),second:e.getSeconds()!==n.getSeconds(),millisecond:e.getMilliseconds()!==n.getMilliseconds()};return je(o,function(r,a){a&&t++}),0===t&&0!==$ue(e,n)&&(o.hour=!0,t++),o.count=t,o},correctDateWithUnitBeginning:Nue,trimTime:Fue,setToDayEnd:function(e){var n=Fue(e);return n.setDate(n.getDate()+1),new Date(n.getTime()-1)},roundDateByStartDayHour:function(e,n){var t=this.dateTimeFromDecimal(n),o=new Date(e);return(e.getHours()===t.hours&&e.getMinutes()=6&&(o=new Date(o.setDate(o.getDate()+7))),o},getQuarter:Hue,getFirstQuarterMonth:Vue,dateInRange:function(e,n,t,o){return"date"===o&&(n=n&&gy.correctDateWithUnitBeginning(n,"day"),t=t&&gy.correctDateWithUnitBeginning(t,"day"),e=e&&gy.correctDateWithUnitBeginning(e,"day")),Yue(e,n,t)===e},intervalsOverlap:function(e){var{firstMin:n,firstMax:t,secondMin:o,secondMax:r}=e;return n<=o&&o<=t||n>o&&nr},roundToHour:function(e){var n=new Date(e.getTime());return n.setHours(n.getHours()+1),n.setMinutes(0),n},normalizeDate:Yue,getViewMinBoundaryDate:function(e,n){var t=xg(n.getFullYear(),n.getMonth(),1);return"month"===e||(t.setMonth(0),"year"===e)||("decade"===e&&t.setFullYear(jP(n)),"century"===e&&t.setFullYear(UP(n))),t},getViewMaxBoundaryDate:function(e,n){var t=new Date(n);return t.setDate(hR(n)),"month"===e||(t.setMonth(11),t.setDate(hR(t)),"year"===e)||("decade"===e&&t.setFullYear(jP(n)+9),"century"===e&&t.setFullYear(UP(n)+99)),t},fixTimezoneGap:que,getTimezonesDifference:$ue,makeDate:function(e){return new Date(e)},getDatesInterval:function(e,n,t){var o=n.getTime()-e.getTime(),r=hy(t)||1;return Math.floor(o/r)},getDatesOfInterval:function(e,n,t){for(var o=[],r=new Date(e.getTime());r0?EJe(...arguments):e;return o.toFixed(t)}var kJe={thousandsSeparator:",",decimalSeparator:"."};function Lq(e){return e.toString().split("").reverse().join("")}function Que(e){return e.replace(/'.+'/g,"")}function Xue(e){if(!e)return 0;var n=Que(e);return n.length-n.replace(/[#]/g,"").length}function epe(e){if(!e)return 0;var n=Que(e);return n.length-n.replace(/[0]/g,"").length}function tpe(e,n,t){if(!e)return"";for(e.length>t&&(e=e.substr(0,t));e.length>n&&"0"===e.slice(-1);)e=e.substr(0,e.length-1);for(;e.lengthl.length){var p=-1===n(12345).indexOf("12345");do{e="1"+e}while(p&&GP(e,t)<1e5)}return e}function ope(e,n,t,o){var r=n(GP(e,t,o)),a=e.split("."),p=n(GP(a[0]+".3"+a[1].slice(1),t,o)).indexOf("3")-1;return r=r.replace(/(\d)\D(\d)/g,"$1,$2"),p>=0&&(r=r.slice(0,p)+"."+r.slice(p+1)),r=r.replace(/1+/,"1").replace(/1/g,"#"),t||(r=r.replace("%","'%'")),r}const UJe={_formatNumberCore:function(e,n,t){if("currency"===n){t.precision=t.precision||0;var o=this.format(e,ye({},t,{type:"fixedpoint"})),r=this.getCurrencySymbol().symbol.replace(/\$/g,"$$$$");return o.replace(/^(\D*)(\d.*)/,"$1"+r+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}},GJe={af:"\xa4#,##0.00;(\xa4#,##0.00)","af-NA":"\xa4#,##0.00;(\xa4#,##0.00)",agq:"#,##0.00\xa4",ak:"\xa4#,##0.00",am:"\xa4#,##0.00;(\xa4#,##0.00)",ann:"\xa4\xa0#,##0.00",ar:"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-AE":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-BH":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-DJ":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-DZ":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-EG":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-EH":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-ER":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-IL":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-IQ":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-JO":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-KM":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-KW":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-LB":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-LY":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-MA":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-MR":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-OM":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-PS":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-QA":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-SA":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-SD":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-SO":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-SS":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-SY":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-TD":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-TN":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)","ar-YE":"\u061c#,##0.00\xa4;(\u061c#,##0.00\xa4)",as:"\xa4#,##0.00;(\xa4#,##0.00)",asa:"#,##0.00\xa0\xa4",ast:"#,##0.00\xa0\xa4",az:"#,##0.00\xa0\xa4","az-Cyrl":"#,##0.00\xa0\xa4","az-Latn":"#,##0.00\xa0\xa4",bas:"#,##0.00\xa0\xa4",be:"#,##0.00\xa0\xa4","be-tarask":"#,##0.00\xa0\xa4",bem:"\xa4#,##0.00;(\xa4#,##0.00)",bez:"#,##0.00\xa4",bg:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",bgc:"\xa4\xa0#,##0.00",bho:"\xa4#,##0.00",bm:"\xa4#,##0.00;(\xa4#,##0.00)",bn:"#,##,##0.00\xa4;(#,##,##0.00\xa4)","bn-IN":"\xa4#,##,##0.00;(\xa4#,##,##0.00)",bo:"\xa4\xa0#,##0.00","bo-IN":"\xa4\xa0#,##0.00",br:"#,##0.00\xa0\xa4",brx:"\xa4#,##0.00;(\xa4#,##0.00)",bs:"#,##0.00\xa0\xa4","bs-Cyrl":"#,##0.00\xa0\xa4","bs-Latn":"#,##0.00\xa0\xa4",ca:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-AD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-ES-valencia":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-FR":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-IT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ccp:"#,##,##0.00\xa4;(#,##,##0.00\xa4)","ccp-IN":"#,##,##0.00\xa4;(#,##,##0.00\xa4)",ce:"#,##0.00\xa0\xa4",ceb:"\xa4#,##0.00;(\xa4#,##0.00)",cgg:"\xa4#,##0.00",chr:"\xa4#,##0.00;(\xa4#,##0.00)",ckb:"\xa4\xa0#,##0.00","ckb-IR":"\xa4\xa0#,##0.00",cs:"#,##0.00\xa0\xa4",cv:"#,##0.00\xa0\xa4",cy:"\xa4#,##0.00;(\xa4#,##0.00)",da:"#,##0.00\xa0\xa4","da-GL":"#,##0.00\xa0\xa4",dav:"\xa4#,##0.00;(\xa4#,##0.00)",de:"#,##0.00\xa0\xa4","de-AT":"#,##0.00\xa0\xa4","de-BE":"#,##0.00\xa0\xa4","de-CH":"#,##0.00\xa0\xa4","de-IT":"#,##0.00\xa0\xa4","de-LI":"#,##0.00\xa0\xa4","de-LU":"#,##0.00\xa0\xa4",dje:"#,##0.00\xa4",doi:"\xa4#,##0.00",dsb:"#,##0.00\xa0\xa4",dua:"#,##0.00\xa0\xa4",dyo:"#,##0.00\xa0\xa4",dz:"\xa4#,##,##0.00",ebu:"\xa4#,##0.00;(\xa4#,##0.00)",ee:"\xa4#,##0.00;(\xa4#,##0.00)","ee-TG":"\xa4#,##0.00;(\xa4#,##0.00)",el:"#,##0.00\xa0\xa4","el-CY":"#,##0.00\xa0\xa4",en:"\xa4#,##0.00;(\xa4#,##0.00)","en-001":"\xa4#,##0.00;(\xa4#,##0.00)","en-150":"#,##0.00\xa0\xa4","en-AE":"\xa4#,##0.00;(\xa4#,##0.00)","en-AG":"\xa4#,##0.00;(\xa4#,##0.00)","en-AI":"\xa4#,##0.00;(\xa4#,##0.00)","en-AS":"\xa4#,##0.00;(\xa4#,##0.00)","en-AT":"\xa4\xa0#,##0.00","en-AU":"\xa4#,##0.00;(\xa4#,##0.00)","en-BB":"\xa4#,##0.00;(\xa4#,##0.00)","en-BE":"#,##0.00\xa0\xa4","en-BI":"\xa4#,##0.00;(\xa4#,##0.00)","en-BM":"\xa4#,##0.00;(\xa4#,##0.00)","en-BS":"\xa4#,##0.00;(\xa4#,##0.00)","en-BW":"\xa4#,##0.00;(\xa4#,##0.00)","en-BZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-CA":"\xa4#,##0.00;(\xa4#,##0.00)","en-CC":"\xa4#,##0.00;(\xa4#,##0.00)","en-CH":"\xa4\xa0#,##0.00;\xa4-#,##0.00","en-CK":"\xa4#,##0.00;(\xa4#,##0.00)","en-CM":"\xa4#,##0.00;(\xa4#,##0.00)","en-CX":"\xa4#,##0.00;(\xa4#,##0.00)","en-CY":"\xa4#,##0.00;(\xa4#,##0.00)","en-DE":"#,##0.00\xa0\xa4","en-DG":"\xa4#,##0.00;(\xa4#,##0.00)","en-DK":"#,##0.00\xa0\xa4","en-DM":"\xa4#,##0.00;(\xa4#,##0.00)","en-ER":"\xa4#,##0.00;(\xa4#,##0.00)","en-FI":"#,##0.00\xa0\xa4","en-FJ":"\xa4#,##0.00;(\xa4#,##0.00)","en-FK":"\xa4#,##0.00;(\xa4#,##0.00)","en-FM":"\xa4#,##0.00;(\xa4#,##0.00)","en-GB":"\xa4#,##0.00;(\xa4#,##0.00)","en-GD":"\xa4#,##0.00;(\xa4#,##0.00)","en-GG":"\xa4#,##0.00;(\xa4#,##0.00)","en-GH":"\xa4#,##0.00;(\xa4#,##0.00)","en-GI":"\xa4#,##0.00;(\xa4#,##0.00)","en-GM":"\xa4#,##0.00;(\xa4#,##0.00)","en-GU":"\xa4#,##0.00;(\xa4#,##0.00)","en-GY":"\xa4#,##0.00;(\xa4#,##0.00)","en-HK":"\xa4#,##0.00;(\xa4#,##0.00)","en-IE":"\xa4#,##0.00;(\xa4#,##0.00)","en-IL":"\xa4#,##0.00;(\xa4#,##0.00)","en-IM":"\xa4#,##0.00;(\xa4#,##0.00)","en-IN":"\xa4#,##0.00;(\xa4#,##0.00)","en-IO":"\xa4#,##0.00;(\xa4#,##0.00)","en-JE":"\xa4#,##0.00;(\xa4#,##0.00)","en-JM":"\xa4#,##0.00;(\xa4#,##0.00)","en-KE":"\xa4#,##0.00;(\xa4#,##0.00)","en-KI":"\xa4#,##0.00;(\xa4#,##0.00)","en-KN":"\xa4#,##0.00;(\xa4#,##0.00)","en-KY":"\xa4#,##0.00;(\xa4#,##0.00)","en-LC":"\xa4#,##0.00;(\xa4#,##0.00)","en-LR":"\xa4#,##0.00;(\xa4#,##0.00)","en-LS":"\xa4#,##0.00;(\xa4#,##0.00)","en-MG":"\xa4#,##0.00;(\xa4#,##0.00)","en-MH":"\xa4#,##0.00;(\xa4#,##0.00)","en-MO":"\xa4#,##0.00;(\xa4#,##0.00)","en-MP":"\xa4#,##0.00;(\xa4#,##0.00)","en-MS":"\xa4#,##0.00;(\xa4#,##0.00)","en-MT":"\xa4#,##0.00;(\xa4#,##0.00)","en-MU":"\xa4#,##0.00;(\xa4#,##0.00)","en-MV":"\xa4\xa0#,##0.00","en-MW":"\xa4#,##0.00;(\xa4#,##0.00)","en-MY":"\xa4#,##0.00;(\xa4#,##0.00)","en-NA":"\xa4#,##0.00;(\xa4#,##0.00)","en-NF":"\xa4#,##0.00;(\xa4#,##0.00)","en-NG":"\xa4#,##0.00;(\xa4#,##0.00)","en-NL":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","en-NR":"\xa4#,##0.00;(\xa4#,##0.00)","en-NU":"\xa4#,##0.00;(\xa4#,##0.00)","en-NZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-PG":"\xa4#,##0.00;(\xa4#,##0.00)","en-PH":"\xa4#,##0.00;(\xa4#,##0.00)","en-PK":"\xa4#,##0.00;(\xa4#,##0.00)","en-PN":"\xa4#,##0.00;(\xa4#,##0.00)","en-PR":"\xa4#,##0.00;(\xa4#,##0.00)","en-PW":"\xa4#,##0.00;(\xa4#,##0.00)","en-RW":"\xa4#,##0.00;(\xa4#,##0.00)","en-SB":"\xa4#,##0.00;(\xa4#,##0.00)","en-SC":"\xa4#,##0.00;(\xa4#,##0.00)","en-SD":"\xa4#,##0.00;(\xa4#,##0.00)","en-SE":"#,##0.00\xa0\xa4","en-SG":"\xa4#,##0.00;(\xa4#,##0.00)","en-SH":"\xa4#,##0.00;(\xa4#,##0.00)","en-SI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","en-SL":"\xa4#,##0.00;(\xa4#,##0.00)","en-SS":"\xa4#,##0.00;(\xa4#,##0.00)","en-SX":"\xa4#,##0.00;(\xa4#,##0.00)","en-SZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-TC":"\xa4#,##0.00;(\xa4#,##0.00)","en-TK":"\xa4#,##0.00;(\xa4#,##0.00)","en-TO":"\xa4#,##0.00;(\xa4#,##0.00)","en-TT":"\xa4#,##0.00;(\xa4#,##0.00)","en-TV":"\xa4#,##0.00;(\xa4#,##0.00)","en-TZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-UG":"\xa4#,##0.00;(\xa4#,##0.00)","en-UM":"\xa4#,##0.00;(\xa4#,##0.00)","en-VC":"\xa4#,##0.00;(\xa4#,##0.00)","en-VG":"\xa4#,##0.00;(\xa4#,##0.00)","en-VI":"\xa4#,##0.00;(\xa4#,##0.00)","en-VU":"\xa4#,##0.00;(\xa4#,##0.00)","en-WS":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZA":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZM":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZW":"\xa4#,##0.00;(\xa4#,##0.00)",eo:"\xa4\xa0#,##0.00",es:"#,##0.00\xa0\xa4","es-419":"\xa4#,##0.00","es-AR":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","es-BO":"\xa4#,##0.00","es-BR":"\xa4#,##0.00","es-BZ":"\xa4#,##0.00","es-CL":"\xa4#,##0.00","es-CO":"\xa4#,##0.00","es-CR":"\xa4#,##0.00","es-CU":"\xa4#,##0.00","es-DO":"\xa4#,##0.00;(\xa4#,##0.00)","es-EA":"#,##0.00\xa0\xa4","es-EC":"\xa4#,##0.00","es-GQ":"#,##0.00\xa0\xa4","es-GT":"\xa4#,##0.00","es-HN":"\xa4#,##0.00","es-IC":"#,##0.00\xa0\xa4","es-MX":"\xa4#,##0.00","es-NI":"\xa4#,##0.00","es-PA":"\xa4#,##0.00","es-PE":"\xa4#,##0.00","es-PH":"#,##0.00\xa0\xa4","es-PR":"\xa4#,##0.00","es-PY":"\xa4#,##0.00","es-SV":"\xa4#,##0.00","es-US":"\xa4#,##0.00","es-UY":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","es-VE":"\xa4#,##0.00",et:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",eu:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ewo:"#,##0.00\xa0\xa4",fa:"\u200e\xa4\xa0#,##0.00;\u200e(\xa4\xa0#,##0.00)","fa-AF":"\xa4\xa0#,##0.00;\u200e(\xa4\xa0#,##0.00)",ff:"#,##0.00\xa0\xa4","ff-Adlm":"\xa4\xa0#,##0.00","ff-Adlm-BF":"\xa4\xa0#,##0.00","ff-Adlm-CM":"\xa4\xa0#,##0.00","ff-Adlm-GH":"\xa4\xa0#,##0.00","ff-Adlm-GM":"\xa4\xa0#,##0.00","ff-Adlm-GW":"\xa4\xa0#,##0.00","ff-Adlm-LR":"\xa4\xa0#,##0.00","ff-Adlm-MR":"\xa4\xa0#,##0.00","ff-Adlm-NE":"\xa4\xa0#,##0.00","ff-Adlm-NG":"\xa4\xa0#,##0.00","ff-Adlm-SL":"\xa4\xa0#,##0.00","ff-Adlm-SN":"\xa4\xa0#,##0.00","ff-Latn":"#,##0.00\xa0\xa4","ff-Latn-BF":"#,##0.00\xa0\xa4","ff-Latn-CM":"#,##0.00\xa0\xa4","ff-Latn-GH":"#,##0.00\xa0\xa4","ff-Latn-GM":"#,##0.00\xa0\xa4","ff-Latn-GN":"#,##0.00\xa0\xa4","ff-Latn-GW":"#,##0.00\xa0\xa4","ff-Latn-LR":"#,##0.00\xa0\xa4","ff-Latn-MR":"#,##0.00\xa0\xa4","ff-Latn-NE":"#,##0.00\xa0\xa4","ff-Latn-NG":"#,##0.00\xa0\xa4","ff-Latn-SL":"#,##0.00\xa0\xa4",fi:"#,##0.00\xa0\xa4",fil:"\xa4#,##0.00;(\xa4#,##0.00)",fo:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fo-DK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",fr:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BJ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BL":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CH":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-DJ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-DZ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GP":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-HT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-KM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-LU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-ML":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MR":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-NC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-NE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-PF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-PM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-RE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-RW":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SY":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-VU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-WF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-YT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",frr:"\xa4\xa0#,##0.00",fur:"\xa4\xa0#,##0.00",fy:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",ga:"\xa4#,##0.00;(\xa4#,##0.00)","ga-GB":"\xa4#,##0.00;(\xa4#,##0.00)",gd:"\xa4#,##0.00;(\xa4#,##0.00)",gl:"#,##0.00\xa0\xa4",gsw:"#,##0.00\xa0\xa4","gsw-FR":"#,##0.00\xa0\xa4","gsw-LI":"#,##0.00\xa0\xa4",gu:"\xa4#,##,##0.00;(\xa4#,##,##0.00)",guz:"\xa4#,##0.00;(\xa4#,##0.00)",gv:"\xa4#,##0.00",ha:"\xa4\xa0#,##0.00","ha-GH":"\xa4\xa0#,##0.00","ha-NE":"\xa4\xa0#,##0.00",haw:"\xa4#,##0.00;(\xa4#,##0.00)",he:"\u200f#,##0.00\xa0\u200f\xa4;\u200f-#,##0.00\xa0\u200f\xa4",hi:"\xa4#,##,##0.00","hi-Latn":"\xa4#,##,##0.00",hr:"#,##0.00\xa0\xa4","hr-BA":"#,##0.00\xa0\xa4",hsb:"#,##0.00\xa0\xa4",hu:"#,##0.00\xa0\xa4",hy:"#,##0.00\xa0\xa4",ia:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",id:"\xa4#,##0.00",ig:"\xa4#,##0.00;(\xa4#,##0.00)",ii:"\xa4\xa0#,##0.00",is:"#,##0.00\xa0\xa4",it:"#,##0.00\xa0\xa4","it-CH":"#,##0.00\xa0\xa4","it-SM":"#,##0.00\xa0\xa4","it-VA":"#,##0.00\xa0\xa4",ja:"\xa4#,##0.00;(\xa4#,##0.00)",jgo:"\xa4\xa0#,##0.00",jmc:"\xa4#,##0.00",jv:"\xa4\xa0#,##0.00",ka:"#,##0.00\xa0\xa4",kab:"#,##0.00\xa4",kam:"\xa4#,##0.00;(\xa4#,##0.00)",kde:"\xa4#,##0.00;(\xa4#,##0.00)",kea:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",kgp:"\xa4\xa0#,##0.00",khq:"#,##0.00\xa4",ki:"\xa4#,##0.00;(\xa4#,##0.00)",kk:"#,##0.00\xa0\xa4",kkj:"\xa4\xa0#,##0.00",kl:"\xa4#,##0.00;\xa4-#,##0.00",kln:"\xa4#,##0.00;(\xa4#,##0.00)",km:"#,##0.00\xa4;(#,##0.00\xa4)",kn:"\xa4#,##0.00;(\xa4#,##0.00)",ko:"\xa4#,##0.00;(\xa4#,##0.00)","ko-KP":"\xa4#,##0.00;(\xa4#,##0.00)",kok:"\xa4#,##0.00;(\xa4#,##0.00)",ks:"\xa4#,##0.00","ks-Arab":"\xa4#,##0.00","ks-Deva":"\xa4#,##0.00",ksb:"#,##0.00\xa4",ksf:"#,##0.00\xa0\xa4",ksh:"#,##0.00\xa0\xa4",ku:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",kw:"\xa4#,##0.00",ky:"#,##0.00\xa0\xa4",lag:"\xa4\xa0#,##0.00",lb:"#,##0.00\xa0\xa4",lg:"#,##0.00\xa4",lkt:"\xa4\xa0#,##0.00",ln:"#,##0.00\xa0\xa4","ln-AO":"#,##0.00\xa0\xa4","ln-CF":"#,##0.00\xa0\xa4","ln-CG":"#,##0.00\xa0\xa4",lo:"\xa4#,##0.00;\xa4-#,##0.00",lrc:"\xa4\xa0#,##0.00","lrc-IQ":"\xa4\xa0#,##0.00",lt:"#,##0.00\xa0\xa4",lu:"#,##0.00\xa4",luo:"#,##0.00\xa4",luy:"\xa4#,##0.00;\xa4-\xa0#,##0.00",lv:"#,##0.00\xa0\xa4",mai:"\xa4\xa0#,##0.00",mas:"\xa4#,##0.00;(\xa4#,##0.00)","mas-TZ":"\xa4#,##0.00;(\xa4#,##0.00)",mdf:"\xa4\xa0#,##0.00",mer:"\xa4#,##0.00;(\xa4#,##0.00)",mfe:"\xa4\xa0#,##0.00",mg:"\xa4#,##0.00",mgh:"\xa4\xa0#,##0.00",mgo:"\xa4\xa0#,##0.00",mi:"\xa4\xa0#,##0.00",mk:"#,##0.00\xa0\xa4",ml:"\xa4#,##0.00;(\xa4#,##0.00)",mn:"\xa4\xa0#,##0.00",mni:"\xa4\xa0#,##0.00","mni-Beng":"\xa4\xa0#,##0.00",mr:"\xa4#,##0.00;(\xa4#,##0.00)",ms:"\xa4#,##0.00;(\xa4#,##0.00)","ms-BN":"\xa4#,##0.00;(\xa4#,##0.00)","ms-ID":"\xa4#,##0.00","ms-SG":"\xa4#,##0.00;(\xa4#,##0.00)",mt:"\xa4#,##0.00",mua:"\xa4#,##0.00;(\xa4#,##0.00)",my:"\xa4\xa0#,##0.00",mzn:"\xa4\xa0#,##0.00",naq:"\xa4#,##0.00",nb:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nb-SJ":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nd:"\xa4#,##0.00;(\xa4#,##0.00)",nds:"\xa4\xa0#,##0.00","nds-NL":"\xa4\xa0#,##0.00",ne:"\xa4\xa0#,##,##0.00","ne-IN":"\xa4\xa0#,##,##0.00",nl:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-AW":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-BE":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-BQ":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-CW":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-SR":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-SX":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nmg:"#,##0.00\xa0\xa4",nn:"#,##0.00\xa0\xa4",nnh:"\xa4\xa0#,##0.00",no:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nus:"\xa4#,##0.00;(\xa4#,##0.00)",nyn:"\xa4#,##0.00",oc:"\xa4\xa0#,##0.00","oc-ES":"\xa4\xa0#,##0.00",om:"\xa4#,##0.00","om-KE":"\xa4#,##0.00",or:"\xa4#,##0.00;(\xa4#,##0.00)",os:"\xa4\xa0#,##0.00","os-RU":"\xa4\xa0#,##0.00",pa:"\xa4\xa0#,##0.00","pa-Arab":"\xa4\xa0#,##0.00","pa-Guru":"\xa4\xa0#,##0.00",pcm:"\xa4#,##0.00",pis:"\xa4\xa0#,##0.00",pl:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ps:"\xa4#,##0.00;(\xa4#,##0.00)","ps-PK":"\xa4#,##0.00;(\xa4#,##0.00)",pt:"\xa4\xa0#,##0.00","pt-AO":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-CH":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-CV":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-GQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-GW":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-LU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-MO":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-MZ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-PT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-ST":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-TL":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",qu:"\xa4\xa0#,##0.00","qu-BO":"\xa4\xa0#,##0.00","qu-EC":"\xa4\xa0#,##0.00",raj:"\xa4\xa0#,##0.00",rm:"#,##0.00\xa0\xa4",rn:"#,##0.00\xa4",ro:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ro-MD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",rof:"\xa4#,##0.00",ru:"#,##0.00\xa0\xa4","ru-BY":"#,##0.00\xa0\xa4","ru-KG":"#,##0.00\xa0\xa4","ru-KZ":"#,##0.00\xa0\xa4","ru-MD":"#,##0.00\xa0\xa4","ru-UA":"#,##0.00\xa0\xa4",rw:"\xa4\xa0#,##0.00",rwk:"#,##0.00\xa4",sa:"\xa4\xa0#,##0.00",sah:"#,##0.00\xa0\xa4",saq:"\xa4#,##0.00;(\xa4#,##0.00)",sat:"\xa4\xa0#,##0.00","sat-Olck":"\xa4\xa0#,##0.00",sbp:"#,##0.00\xa4",sc:"#,##0.00\xa0\xa4",sd:"\xa4#,##0.00;(\xa4#,##0.00)","sd-Arab":"\xa4#,##0.00;(\xa4#,##0.00)","sd-Deva":"\xa4\xa0#,##0.00",se:"#,##0.00\xa0\xa4","se-FI":"#,##0.00\xa0\xa4","se-SE":"#,##0.00\xa0\xa4",seh:"#,##0.00\xa4",ses:"#,##0.00\xa4",sg:"\xa4#,##0.00;\xa4-#,##0.00",shi:"#,##0.00\xa4","shi-Latn":"#,##0.00\xa4","shi-Tfng":"#,##0.00\xa4",si:"\xa4#,##0.00;(\xa4#,##0.00)",sk:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sl:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",smn:"#,##0.00\xa0\xa4",sms:"\xa4\xa0#,##0.00",sn:"\xa4#,##0.00;(\xa4#,##0.00)",so:"\xa4#,##0.00;(\xa4#,##0.00)","so-DJ":"\xa4#,##0.00;(\xa4#,##0.00)","so-ET":"\xa4#,##0.00;(\xa4#,##0.00)","so-KE":"\xa4#,##0.00;(\xa4#,##0.00)",sq:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sq-MK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sq-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sr:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-BA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-ME":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-BA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-ME":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",su:"\xa4#,##0.00","su-Latn":"\xa4#,##0.00",sv:"#,##0.00\xa0\xa4","sv-AX":"#,##0.00\xa0\xa4","sv-FI":"#,##0.00\xa0\xa4",sw:"\xa4\xa0#,##0.00","sw-CD":"\xa4\xa0#,##0.00","sw-KE":"\xa4\xa0#,##0.00","sw-UG":"\xa4\xa0#,##0.00",ta:"\xa4#,##0.00;(\xa4#,##0.00)","ta-LK":"\xa4#,##0.00;(\xa4#,##0.00)","ta-MY":"\xa4#,##0.00;(\xa4#,##0.00)","ta-SG":"\xa4#,##0.00;(\xa4#,##0.00)",te:"\xa4#,##0.00;(\xa4#,##0.00)",teo:"\xa4#,##0.00;(\xa4#,##0.00)","teo-KE":"\xa4#,##0.00;(\xa4#,##0.00)",tg:"#,##0.00\xa0\xa4",th:"\xa4#,##0.00;(\xa4#,##0.00)",ti:"\xa4#,##0.00","ti-ER":"\xa4#,##0.00",tk:"#,##0.00\xa0\xa4",to:"\xa4\xa0#,##0.00",tok:"\xa4\xa0#,##0.00",tr:"\xa4#,##0.00;(\xa4#,##0.00)","tr-CY":"\xa4#,##0.00;(\xa4#,##0.00)",tt:"#,##0.00\xa0\xa4",twq:"#,##0.00\xa4",tzm:"#,##0.00\xa0\xa4",ug:"\xa4#,##0.00;(\xa4#,##0.00)",uk:"#,##0.00\xa0\xa4",und:"\xa4\xa0#,##0.00",ur:"\xa4#,##0.00;(\xa4#,##0.00)","ur-IN":"\xa4#,##0.00;(\xa4#,##0.00)",uz:"\xa4#,##0.00;(\xa4#,##0.00)","uz-Arab":"\xa4\xa0#,##0.00","uz-Cyrl":"#,##0.00\xa0\xa4","uz-Latn":"\xa4#,##0.00;(\xa4#,##0.00)",vai:"\xa4#,##0.00;(\xa4#,##0.00)","vai-Latn":"\xa4#,##0.00;(\xa4#,##0.00)","vai-Vaii":"\xa4#,##0.00;(\xa4#,##0.00)",vi:"#,##0.00\xa0\xa4",vun:"\xa4#,##0.00",wae:"\xa4\xa0#,##0.00",wo:"\xa4\xa0#,##0.00",xh:"\xa4#,##0.00",xog:"#,##0.00\xa0\xa4",yav:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",yi:"\xa4\xa0#,##0.00",yo:"\xa4#,##0.00;(\xa4#,##0.00)","yo-BJ":"\xa4#,##0.00;(\xa4#,##0.00)",yrl:"\xa4\xa0#,##0.00","yrl-CO":"\xa4\xa0#,##0.00","yrl-VE":"\xa4\xa0#,##0.00",yue:"\xa4#,##0.00;(\xa4#,##0.00)","yue-Hans":"\xa4#,##0.00;(\xa4#,##0.00)","yue-Hant":"\xa4#,##0.00;(\xa4#,##0.00)",zgh:"#,##0.00\xa4",zh:"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-HK":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-MO":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-SG":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant-HK":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant-MO":"\xa4#,##0.00;(\xa4#,##0.00)",zu:"\xa4#,##0.00;(\xa4#,##0.00)"};var WJe=/([^\s0]+)?(\s*)0*[.,]*0*(\s*)([^\s0]+)?/,Rq={},rpe=e=>{var n=du.locale()+"/"+JSON.stringify(e);return Rq[n]||(Rq[n]=new Intl.NumberFormat(du.locale(),e).format),Rq[n]};const YJe={engine:function(){return"intl"},_formatNumberCore:function(e,n,t){return"exponential"===n?this.callBase.apply(this,arguments):rpe(this._normalizeFormatConfig(n,t,e))(e)},_normalizeFormatConfig:function(e,n,t){var o;return o="decimal"===e?{minimumIntegerDigits:n.precision||void 0,useGrouping:!1,maximumFractionDigits:String(t).length,round:t<0?"ceil":"floor"}:this._getPrecisionConfig(n.precision),"percent"===e?o.style="percent":"currency"===e&&(o.style="currency",o.currency=n.currency||Ua().defaultCurrency),o},_getPrecisionConfig:function(e){return null===e?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:e||0,maximumFractionDigits:e||0}},format:function(e,n){return"number"!=typeof e?e:("default"===(n=this._normalizeFormat(n)).currency&&(n.currency=Ua().defaultCurrency),n&&("function"==typeof n||n.type||n.formatter)?this.callBase.apply(this,arguments):rpe(n)(e))},_getCurrencySymbolInfo:function(e){var n=(e=>new Intl.NumberFormat(du.locale(),{style:"currency",currency:e}))(e);return this._extractCurrencySymbolInfo(n.format(0))},_extractCurrencySymbolInfo:function(e){var n=WJe.exec(e)||[];return{position:n[1]?"before":"after",symbol:n[1]||n[4]||"",delimiter:n[2]||n[3]||""}},getCurrencySymbol:function(e){return e||(e=Ua().defaultCurrency),{symbol:this._getCurrencySymbolInfo(e).symbol}},getOpenXmlCurrencyFormat:function(e){var n=e||Ua().defaultCurrency;return((e,n)=>{if(n){var t=e;if("string"==typeof e){t="";for(var o=0;oGJe[r]))}};var qJe="undefined"!=typeof Intl,ape=["currency","fixedpoint","exponential","percent","decimal"],Bq={1:"K",2:"M",3:"B",4:"T"},spe={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},zq=lg({engine:function(){return"base"},numericFormats:ape,defaultLargeNumberFormatPostfixes:Bq,_parseNumberFormatString:function(e){var n={};if(e&&"string"==typeof e){var t=e.toLowerCase().split(" ");if(je(t,(o,r)=>{Ki(r,ape)>-1?n.formatType=r:r in spe&&(n.power=spe[r])}),n.power&&!n.formatType&&(n.formatType="fixedpoint"),n.formatType)return n}},_calculateNumberPower:function(e,n,t,o){var r=Math.abs(e),a=0;if(r>1)for(;r&&r>=n&&(void 0===o||a0&&r<1)for(;r<1&&(void 0===t||a>t);)a--,r*=n;return a},_getNumberByPower:function(e,n,t){for(var o=e;n>0;)o/=t,n--;for(;n<0;)o*=t,n++;return o},_formatNumber:function(e,n,t){"auto"===n.power&&(n.power=this._calculateNumberPower(e,1e3,0,4)),n.power&&(e=this._getNumberByPower(e,n.power,1e3));var o=this.defaultLargeNumberFormatPostfixes[n.power]||"",r=this._formatNumberCore(e,n.formatType,t);return r.replace(/(\d|.$)(\D*)$/,"$1"+o+"$2")},_formatNumberExponential:function(e,n){var t=this._calculateNumberPower(e,10),o=this._getNumberByPower(e,t,10);void 0===n.precision&&(n.precision=1),o.toFixed(n.precision||0)>=10&&(t++,o/=10);var r=(t>=0?"+":"")+t.toString();return this._formatNumberCore(o,"fixedpoint",n)+"E"+r},_addZeroes:function(e,n){for(var t=Math.pow(10,n),o=e<0?"-":"",r=(e=(Math.abs(e)*t>>>0)/t).toString();r.lengthString.fromCharCode(c.charCodeAt(0)+(r.charCodeAt(0)-o.charCodeAt(0))))},getNegativeEtalonRegExp:function(e){var n=this._getSeparators(),t=new RegExp("[0-9"+s1(n.decimalSeparator+n.thousandsSeparator)+"]+","g"),o=this.format(-1,e).replace(t,"1");return["\\","(",")","[","]","*","+","$","^","?","|","{","}"].forEach(r=>{o=o.replace(new RegExp("\\".concat(r),"g"),"\\".concat(r))}),o=(o=o.replace(/ /g,"\\s")).replace(/1/g,".*"),new RegExp(o,"g")},getSign:function(e,n){if(!n)return"-"===e.replace(/[^0-9-]/g,"").charAt(0)?-1:1;var t=this.getNegativeEtalonRegExp(n);return e.match(t)?-1:1},format:function(e,n){if("number"!=typeof e||"number"==typeof n)return e;if("function"==typeof(n=n&&n.formatter||n))return n(e);(n=this._normalizeFormat(n)).type||(n.type="decimal");var t=this._parseNumberFormatString(n.type);if(!t){var o=this._getSeparators();return o.unlimitedIntegerDigits=n.unlimitedIntegerDigits,this.convertDigits(function NJe(e,n){return n=n||kJe,function(t){if("number"!=typeof t||isNaN(t))return"";var o=function BJe(e){var n=e.split(";");return 1===n.length&&n.push("-"+n[0]),n}(e),a=t>0||1/t==1/0,l=o[a?0:1],c=function VJe(e){for(var n=!1,t=0;t15)return NaN;var a=+r*this.getSign(e,n);n=this._normalizeFormat(n);var l=this._parseNumberFormatString(n.type),c=null==l?void 0:l.power;if(c){if("auto"===c){var p=e.match(/\d(K|M|B|T)/);p&&(c=o1(Object.keys(Bq),b=>Bq[b]===p[1]))}a*=Math.pow(10,3*c)}return"percent"===(null==l?void 0:l.formatType)&&(a/=100),a}},_calcSignificantDigits:function(e){var[n,t]=e.split("."),o=a=>{for(var l=-1,c=0;c-1?a.length-l:0},r=0;return n&&(r+=o(n.split(""))),t&&(r+=o(t.split("").reverse())),r}});zq.inject(UJe),qJe&&zq.inject(YJe);const ya=zq;function h0(e,n){for(;e.length0?"-":"+",a=Math.abs(o),c=a%60,p=h0(Math.floor(a/60).toString(),2),b=h0(c.toString(),2);return r+p+(n>=3?":":"")+(n>1||c?b:"")},X:function(e,n,t){return t||!e.getTimezoneOffset()?"Z":Hq.x(e,n,t)},Z:function(e,n,t){return Hq.X(e,n>=5?3:2,t)}},lpe=function(e,n){return function(t){var o,r,a,p,l=0,c=!1,b="";if(!t)return null;if(!e)return t;var T="Z"===e[e.length-1]||"'Z'"===e.slice(-3);for(o=0;oe[t]!==c[t]);return cpe.indexOf(r)<0&&o===jv(r)&&(!o||l)},XJe=function(e,n){if(!jv(e[n]))for(;n>0&&!jv(e[n-1])&&("."===e[n-1]||cpe.indexOf(e[n-1])<0);)n--;return n},dpe=function(e,n){return Array.isArray(e)?e.map(function(t){return(n(t)||"").toString()}):(n(e)||"").toString()},iQe=/[a-zA-Z]/g,Vq=function(e){var n=[],t=dpe(new Date(2009,8,8,6,5,4),e),o=t.split("").map(function(c,p){return p}),r=t,a={},l=[{date:new Date(2009,8,8,6,5,4,111),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(r&&(l.forEach(function(c){var p=function(e,n,t,o){var r=0,a=[],l=function(c){return e[r]!==c[r]&&(void 0===o||jv(e[r])===o)};for(Array.isArray(n)||(n=[n]),r=0;rc;){for(l=o[a=n.pop()],o[a]=-1,r=a+1;r1?t[c]:t)+e.substr(a+c+1)}),1===n.length&&(e=(e=e.replace("0"+t,t+t)).replace("\u0660"+t,t+t)),e}(e,n,t,o),e}(r,p,b,o),a[b]=p.length}),r=function(e,n,t,o){var r=n.split("").map(function(a,l){return t.indexOf(l)<0&&(a.match(iQe)||"'"===a)?o[l]:-1});return e.split("").map(function(a,l){var c=a,p=r.indexOf(l)>=0,b=l>0&&r.indexOf(l-1)>=0,T=r.indexOf(l+1)>=0;return p&&(b||(c="'"+c),T||(c+="'")),c}).join("")}(r,t,n,o),n.length))return r},R2={3:"abbreviated",4:"wide",5:"narrow"},upe=function(e,n){return e>2?Object.keys(R2).map(function(t){return["format","standalone"].map(function(o){return n.getMonthNames(R2[t],o).join("|")}).join("|")}).join("|"):2===e?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},rQe={":":function(e,n){var t=e>1?"{".concat(e,"}"):"",o=s1(n.getTimeSeparator());return":"!==o&&(o="".concat(o,"|:")),"".concat(o).concat(t)},y:function(e){return 2===e?"[0-9]{".concat(e,"}"):"[0-9]+?"},M:upe,L:upe,Q:function(e,n){return e>2?n.getQuarterNames(R2[e],"format").join("|"):"0?[1-4]"},E:function(e,n){return"\\D*"},a:function(e,n){return n.getPeriodNames(R2[e<3?3:e],"format").join("|")},d:function(e){return 2===e?"3[01]|[12][0-9]|0?[1-9]":"0??[1-9]|[12][0-9]|3[01]"},H:function(e){return 2===e?"2[0-3]|1[0-9]|0?[0-9]":"0??[0-9]|1[0-9]|2[0-3]"},h:function(e){return 2===e?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},m:function(e){return 2===e?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},s:function(e){return 2===e?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},S:function(e){return"[0-9]{1,".concat(e,"}")},w:function(e){return 2===e?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"}},B2=Number,Nq=function(e,n){return e.map(t=>t.toLowerCase()).indexOf(n.toLowerCase())},ppe=function(e,n,t){return n>2?["format","standalone"].map(function(o){return Object.keys(R2).map(function(r){var a=t.getMonthNames(R2[r],o);return Nq(a,e)})}).reduce(function(o,r){return o.concat(r)}).filter(function(o){return o>=0})[0]:B2(e)-1},aQe={y:function(e,n){var t=B2(e);return 2===n?t<30?2e3+t:1900+t:t},M:ppe,L:ppe,Q:function(e,n,t){return n>2?t.getQuarterNames(R2[n],"format").indexOf(e):B2(e)-1},E:function(e,n,t){var o=t.getDayNames(R2[n<3?3:n],"format");return Nq(o,e)},a:function(e,n,t){var o=t.getPeriodNames(R2[n<3?3:n],"format");return Nq(o,e)},d:B2,H:B2,h:B2,m:B2,s:B2,S:function(e,n){for(n=Math.max(n,3),e=e.slice(0,3);n<3;)e+="0",n++;return B2(e)}},fR=["y","M","d","h","m","s","S"],Fq={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(e,n,t){var o=e.getHours(),r=t.h;void 0!==r&&r!==o&&o--,n||12!==o?n&&12!==o&&(o+=12):o=0,e.setHours(o)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},sQe=function(e,n){var t=e[n];if(!t)return 0;var o=0;do{n++,o++}while(e[n]===t);return o},lQe=function(e,n){for(var t="",o=0;o{if(!r)return!1;var a=r[0];return["y","S"].includes(a)||cQe.includes(a)&&r.length<3},t=!0,o=0;return e.every((r,a,l)=>{return n(r)&&("S"!==(c=r)[0]&&2!==c.length&&(t=++o<2),n(l[a+1])||(o=0)),t;var c})},vQe=["January","February","March","April","May","June","July","August","September","October","November","December"],CQe=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],yQe=["AM","PM"],bQe=["Q1","Q2","Q3","Q4"],gpe=(e,n)=>{var t={abbreviated:3,short:2,narrow:1};return Ca(e,o=>o.substr(0,t[n]))};const KP={getMonthNames:function(e){return gpe(vQe,e)},getDayNames:function(e){return gpe(CQe,e)},getQuarterNames:function(e){return bQe},getPeriodNames:function(e){return yQe}},xQe={"af-NA":1,agq:1,ak:1,ann:1,ar:6,"ar-EH":1,"ar-ER":1,"ar-KM":1,"ar-LB":1,"ar-MA":1,"ar-MR":1,"ar-PS":1,"ar-SO":1,"ar-SS":1,"ar-TD":1,"ar-TN":1,asa:1,ast:1,az:1,"az-Cyrl":1,bas:1,be:1,bem:1,bez:1,bg:1,bm:1,bo:1,br:1,bs:1,"bs-Cyrl":1,ca:1,ce:1,cgg:1,ckb:6,cs:1,cv:1,cy:1,da:1,de:1,dje:1,dsb:1,dua:1,dyo:1,ee:1,el:1,"en-001":1,"en-AE":6,"en-BI":1,"en-MP":1,"en-MV":5,"en-SD":6,eo:1,es:1,et:1,eu:1,ewo:1,fa:6,ff:1,"ff-Adlm":1,fi:1,fo:1,fr:1,"fr-DJ":6,"fr-DZ":6,"fr-SY":6,frr:1,fur:1,fy:1,ga:1,gd:1,gl:1,gsw:1,gv:1,ha:1,hr:1,hsb:1,hu:1,hy:1,ia:1,ig:1,ii:1,is:1,it:1,jgo:1,jmc:1,ka:1,kab:6,kde:1,kea:1,khq:1,kk:1,kkj:1,kl:1,"ko-KP":1,ksb:1,ksf:1,ksh:1,ku:1,kw:1,ky:1,lag:1,lb:1,lg:1,ln:1,lrc:6,lt:1,lu:1,lv:1,"mas-TZ":1,mdf:1,mfe:1,mg:1,mgo:1,mi:1,mk:1,mn:1,ms:1,mua:1,mzn:6,naq:1,nds:1,nl:1,nmg:1,nnh:1,no:1,nus:1,nyn:1,oc:1,os:1,pcm:1,pis:1,pl:1,ps:6,"pt-AO":1,"pt-CH":1,"pt-CV":1,"pt-GQ":1,"pt-GW":1,"pt-LU":1,"pt-ST":1,"pt-TL":1,"qu-BO":1,"qu-EC":1,rm:1,rn:1,ro:1,rof:1,ru:1,rw:1,rwk:1,sah:1,sbp:1,sc:1,se:1,ses:1,sg:1,shi:1,"shi-Latn":1,si:1,sk:1,sl:1,smn:1,sms:1,so:1,"so-DJ":6,sq:1,sr:1,"sr-Latn":1,sv:1,sw:1,"ta-LK":1,"ta-MY":1,teo:1,tg:1,"ti-ER":1,tk:1,to:1,tok:1,tr:1,tt:1,twq:1,tzm:1,ug:1,uk:1,uz:1,"uz-Arab":6,"uz-Cyrl":1,vai:1,"vai-Latn":1,vi:1,vun:1,wae:1,wo:1,xog:1,yav:1,yi:1,yo:1,"yue-Hans":1,zgh:1,zh:1};var OQe=/[\u200E\u200F]/g,fy=e=>n=>{if(!e.timeZoneName){var t=n.getFullYear(),o=String(t).length<3,a=new Date(Date.UTC(o?t+400:t,n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return o&&a.setFullYear(t),jq(a,ye({timeZone:"UTC"},e))}return jq(n,e)},Uq={};function jq(e,n){return(e=>{var n=du.locale()+"/"+JSON.stringify(e);return Uq[n]||(Uq[n]=new Intl.DateTimeFormat(du.locale(),e).format),Uq[n]})(n)(e).replace(OQe,"")}var Gq=e=>new Intl.NumberFormat(du.locale()).format(e),wQe=(()=>{var e={};return n=>{if(!(n in e)){if("0"===Gq(0))return e[n]=!1,!1;e[n]={};for(var t=0;t<10;++t)e[n][Gq(t)]=t}return e[n]}})(),mR=e=>{var n=wQe(du.locale());return n?e.split("").map(t=>t in n?String(n[t]):t).join(""):e},fpe=e=>e.replace(/(\D)0+(\d)/g,"$1$2"),Wq=e=>e.replace("d\u2019","de "),Kq={day:{day:"numeric"},dayofweek:{weekday:"long"},longdate:{weekday:"long",year:"numeric",month:"long",day:"numeric"},longdatelongtime:{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},longtime:{hour:"numeric",minute:"numeric",second:"numeric"},month:{month:"long"},monthandday:{month:"long",day:"numeric"},monthandyear:{year:"numeric",month:"long"},shortdate:{},shorttime:{hour:"numeric",minute:"numeric"},shortyear:{year:"2-digit"},year:{year:"numeric"}};Object.defineProperty(Kq,"shortdateshorttime",{get:function(){var e=Intl.DateTimeFormat(du.locale()).resolvedOptions();return{year:e.year,month:e.month,day:e.day,hour:"numeric",minute:"numeric"}}});var SQe=e=>"string"==typeof e&&Kq[e.toLowerCase()],mpe={standalone:function(e,n){var t=new Date(1999,e,13,1);return fy({month:n})(t)},format:function(e,n){var t=new Date(0,e,13,1),r=Wq(fy({day:"numeric",month:n})(t)).split(" ").filter(a=>a.indexOf("13")<0);return 1===r.length?r[0]:2===r.length?r[0].length>r[1].length?r[0]:r[1]:mpe.standalone(e,n)}};const TQe={engine:function(){return"intl"},getMonthNames:function(e,n){var t={wide:"long",abbreviated:"short",narrow:"narrow"}[e||"wide"];return n="format"===n?n:"standalone",Array.apply(null,new Array(12)).map((o,r)=>mpe[n](r,t))},getDayNames:function(e){var t;return t={wide:"long",abbreviated:"short",short:"narrow",narrow:"narrow"}[e||"wide"],Array.apply(null,new Array(7)).map((o,r)=>fy({weekday:t})(new Date(0,0,r)))},getPeriodNames:function(){var e=fy({hour:"numeric",hour12:!0});return[1,13].map(n=>{var t=Gq(1),o=e(new Date(0,0,1,n)).split(t);return 2!==o.length?"":(o[0].length>o[1].length?o[0]:o[1]).trim()})},format:function(e,n){if(e){if(!n)return e;"function"!=typeof n&&!n.formatter&&(n=n.type||n);var t=SQe(n);if(t)return fy(t)(e);var o=typeof n;return n.formatter||"function"===o||"string"===o?this.callBase.apply(this,arguments):fy(n)(e)}},parse:function(e,n){var t;return n&&!n.parser&&"string"==typeof e&&(e=Wq(e),t=o=>Wq(this.format(o,n))),this.callBase(e,t||n)},_parseDateBySimpleFormat:function(e,n){e=mR(e);var t=this.getFormatParts(n),o=e.split(/\D+/).filter(l=>l.length>0);if(t.length===o.length){var r=this._generateDateArgs(t,o),a=l=>{var p,c=(p=r,new Date(p.year,p.month,p.day,(p.hours+(l?12:0))%24,p.minutes,p.seconds));if(((e,n)=>fpe(e)===fpe(n))(mR(this.format(c,n)),e))return c};return a(!1)||a(!0)}},_generateDateArgs:function(e,n){var t=new Date,o={year:t.getFullYear(),month:t.getMonth(),day:t.getDate(),hours:0,minutes:0,seconds:0};return e.forEach((r,a)=>{var c=parseInt(n[a],10);"month"===r&&(c-=1),o[r]=c}),o},formatUsesMonthName:function(e){return"object"!=typeof e||e.type||e.format?this.callBase.apply(this,arguments):"long"===e.month},formatUsesDayName:function(e){return"object"!=typeof e||e.type||e.format?this.callBase.apply(this,arguments):"long"===e.weekday},getTimeSeparator:function(){return mR(jq(new Date(2001,1,1,11,11),{hour:"numeric",minute:"numeric",hour12:!1})).replace(/\d/g,"")},getFormatParts:function(e){if("string"==typeof e)return this.callBase(e);var n=ye({},Kq[e.toLowerCase()]),t=new Date(2001,2,4,5,6,7),o=fy(n)(t);return o=mR(o),[{name:"year",value:1},{name:"month",value:3},{name:"day",value:4},{name:"hours",value:5},{name:"minutes",value:6},{name:"seconds",value:7}].map(r=>({name:r.name,index:o.indexOf(r.value)})).filter(r=>r.index>-1).sort((r,a)=>r.index-a.index).map(r=>r.name)}};var IQe="undefined"!=typeof Intl,Yq={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},EQe={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},_pe=lg({engine:function(){return"base"},_getPatternByFormat:function(e){return Yq[e.toLowerCase()]},_expandPattern:function(e){return this._getPatternByFormat(e)||e},formatUsesMonthName:function(e){return-1!==this._expandPattern(e).indexOf("MMMM")},formatUsesDayName:function(e){return-1!==this._expandPattern(e).indexOf("EEEE")},getFormatParts:function(e){var n=this._getPatternByFormat(e)||e,t=[];return je(n.split(/\W+/),(o,r)=>{je(EQe,(a,l)=>{Ki(r,l)>-1&&t.push(a)})}),t},getMonthNames:function(e){return KP.getMonthNames(e)},getDayNames:function(e){return KP.getDayNames(e)},getQuarterNames:function(e){return KP.getQuarterNames(e)},getPeriodNames:function(e){return KP.getPeriodNames(e)},getTimeSeparator:function(){return":"},is24HourFormat:function(e){for(var n=new Date(2017,0,20,11,0,0,0),t=new Date(2017,0,20,23,0,0,0),o=this.format(n,e),r=this.format(t,e),a=0;a{var c=t.format(l,n);return ya.convertDigits(c,!0)};try{o=Vq(r)}catch(l){}}else o=n;if(o)return e=ya.convertDigits(e,!0),function(e,n){var t=hpe(e,n);return function(o){var r=t.regexp.exec(o);if(r){var a=new Date,l=new Date(a.getFullYear(),0,1),c=function(e){return e.map(function(n){return"'"===n[0]?"":"H"===n[0]?"h":n[0]})}(t.patterns),p=function(e){var n=e.map(function(t){return fR.indexOf(t)});return Math.max.apply(Math,n)}(c),b=function(e){var n=e.filter(function(t){return fR.indexOf(t)<0});return fR.concat(n)}(c),T={};return b.forEach(function(L,N){if(L&&!(Np)){var G=c.indexOf(L);G>=0?function(e,n,t,o,r){var a=n[0],l=Fq[a],c=aQe[a];if(l&&c){var p=c(t,n.length,o);r[n]=p,e[l]?e[l](p):l(e,p,r)}}(l,t.patterns[G],r[G+1],n,T):function(e,n,t){var o=Fq[n],a=t["g"+o.substr(1)]();e[o](a)}(l,L,a)}}),l}return null}}(o,this)(e);ua.log("W0012");var a=new Date(e);if(a&&!isNaN(a.getTime()))return a}},firstDayOfWeekIndex:function(){var e=du.getValueByClosestLocale(n=>xQe[n]);return void 0===e?0:e}});IQe&&_pe.inject(TQe);const Ji=_pe,ad=lg({format:function(e,n){var t=Wi(n)&&""!==n||jo(n)||qn(n),o=vo(e)||_l(e);return t&&o?qn(n)?n(e):(Wi(n)&&(n={type:n}),vo(e)?ya.format(e,n):_l(e)?Ji.format(e,n):void 0):ce(e)?e.toString():""},getTimeFormat:function(e){return e?"longtime":"shorttime"},_normalizeFormat:function(e){return Array.isArray(e)?1===e.length?e[0]:function(n){return e.map(function(t){return Ji.format(n,t)}).join(" ")}:e},getDateFormatByDifferences:function(e,n){var t=[],o=n&&e.millisecond&&!(e.year||e.month||e.day);return o?t.push(function(r){return r.getSeconds()+r.getMilliseconds()/1e3+"s"}):e.millisecond&&t.push("millisecond"),(e.hour||e.minute||!o&&e.second)&&t.unshift(this.getTimeFormat(e.second)),e.year&&e.month&&e.day?n&&"month"===n?"monthandyear":(t.unshift("shortdate"),this._normalizeFormat(t)):e.year&&e.month?"monthandyear":e.year&&e.quarter?"quarterandyear":e.year?"year":e.quarter?"quarter":e.month&&e.day?(t.unshift(n?function(r){return Ji.getMonthNames("abbreviated")[r.getMonth()]+" "+Ji.format(r,"day")}:"monthandday"),this._normalizeFormat(t)):e.month?"month":e.day?(t.unshift(n?"day":function(r){return Ji.format(r,"dayofweek")+", "+Ji.format(r,"day")}),this._normalizeFormat(t)):this._normalizeFormat(t)},getDateFormatByTicks:function(e){var n,t,o;if(e.length>1)for(n=an.getDatesDifferences(e[0],e[1]),o=1;o0,minute:e[0].getMinutes()>0,second:e[0].getSeconds()>0,millisecond:e[0].getMilliseconds()>0};return this.getDateFormatByDifferences(n)},getDateFormatByTickInterval:function(e,n,t){var o,r=function(c,p,b){switch(p){case"year":case"quarter":c.month=b;case"month":c.day=b;case"week":case"day":c.hour=b;case"hour":c.minute=b;case"minute":c.second=b;case"second":c.millisecond=b}};t=Wi(t)?t.toLowerCase():t;var c,p,b,a=an.getDatesDifferences(e,n);return e!==n&&(c=a,p=e>n?n:e,!(b=e>n?e:n).getMilliseconds()&&b.getSeconds()?b.getSeconds()-p.getSeconds()==1&&(c.millisecond=!0,c.second=!1):!b.getSeconds()&&b.getMinutes()?b.getMinutes()-p.getMinutes()==1&&(c.second=!0,c.minute=!1):!b.getMinutes()&&b.getHours()?b.getHours()-p.getHours()==1&&(c.minute=!0,c.hour=!1):!b.getHours()&&b.getDate()>1?b.getDate()-p.getDate()==1&&(c.hour=!0,c.day=!1):1===b.getDate()&&b.getMonth()?b.getMonth()-p.getMonth()==1&&(c.day=!0,c.month=!1):!b.getMonth()&&b.getFullYear()&&b.getFullYear()-p.getFullYear()==1&&(c.month=!0,c.year=!1)),r(a,an.getDateUnitInterval(a),!0),r(a,o=an.getDateUnitInterval(t||"second"),!1),a[{week:"day"}[o]||o]=!0,this.getDateFormatByDifferences(a)}});var Cpe="scrolling.mode",NQe={year:function(e){return e&&e.getFullYear()},month:function(e){return e&&e.getMonth()+1},day:function(e){return e&&e.getDate()},quarter:function(e){return e&&Math.floor(e.getMonth()/3)+1},hour:function(e){return e&&e.getHours()},minute:function(e){return e&&e.getMinutes()},second:function(e){return e&&e.getSeconds()}},FQe=function(){var e=arguments[1],n=this.calculateCellValue(e);if(!ce(n))return null;if(ype(this.dataType)){var t=arguments[0];return NQe[t](n)}if("number"===this.dataType){var o=arguments[0];return Math.floor(Number(n)/o)*o}},UQe=function(e,n){return qn(e)&&qn(n)&&e.originalCallback&&n.originalCallback?e.originalCallback===n.originalCallback&&e.columnIndex===n.columnIndex:e===n};function ype(e){return"date"===e||"datetime"===e}var bpe=function(e){e.get(0).textContent="\xa0"},qq=function(e){for(var n=Ce(e=e||[]),t=0;t").addClass(n).appendTo(e)),o&&!r?t.removeClass("dx-hidden").text(this._getNoDataText()):t.addClass("dx-hidden")}},renderLoadPanel:function(e,n,t){var o;this._loadPanel&&this._loadPanel.$element().remove(),(o=this.option("loadPanel"))&&("auto"===o.enabled?!t:o.enabled)?(o=ye({shading:!1,message:o.text,container:n},o),this._loadPanel=this._createComponent(K("
").appendTo(n),z,o)):this._loadPanel=null},calculateLoadPanelPosition(e){var n=K(Mi());return Ti(e)>Ti(n)?{of:n,boundary:e,collision:"fit"}:{of:e}},getIndexByKey:function(e,n,t){var o=-1;if(void 0!==e&&Array.isArray(n)){t=arguments.length<=2?"key":t;for(var r=0;r=0&&qn(t)&&t.columnIndex>=0?n.columnIndex===t.columnIndex&&Tl(n.filterValue)===Tl(t.filterValue):Tl(n)==Tl(t)},proxyMethod:function(e,n,t){e[n]||(e[n]=function(){var o=this._dataSource;return o?o[n].apply(o,arguments):t})},formatValue:xpe,getFormatOptionsByColumn:function(e,n){return{format:e.format,getDisplayFormat:e.getDisplayFormat,customizeText:e.customizeText,target:n,trueText:e.trueText,falseText:e.falseText}},getDisplayValue:function(e,n,t,o){return e.displayValueMap&&void 0!==e.displayValueMap[n]?e.displayValueMap[n]:e.calculateDisplayValue&&t&&"group"!==o?e.calculateDisplayValue(t):!e.lookup||"group"===o&&(e.calculateGroupValue||e.calculateDisplayValue)?n:e.lookup.calculateCellValue(n)},getGroupRowSummaryText:function(e,n){for(var t="(",o=0;o0?", ":"")+Ope(e[o],n);return t+")"},getSummaryText:Ope,normalizeSortingInfo:qq,getFormatByDataType:function(e){switch(e){case"date":return"shortDate";case"datetime":return"shortDateShortTime"}},getHeaderFilterGroupParameters:function(e,n){var t=[],o=e.dataField||e.name,r=Lv.getGroupInterval(e);return r?(je(r,function(a,l){t.push(n?{selector:o,groupInterval:l,isExpanded:a0){var G=e.eq(L-1).offset();G.top").addClass(n.value?"dx-datagrid-group-opened":"dx-datagrid-group-closed").appendTo(t),o.setAria("label",o.localize(n.value?"dxDataGrid-ariaCollapse":"dxDataGrid-ariaExpand"),t)}}}},setEmptyText:bpe,isDateType:ype,getSelectionRange:function(e){try{if(e)return{selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}}catch(n){}return{}},setSelectionRange:function(e,n){try{e&&e.setSelectionRange&&e.setSelectionRange(n.selectionStart,n.selectionEnd)}catch(t){}},focusAndSelectElement:function(e,n){var t=n.is(":focus");We.trigger(n,"focus");var o=e.option("editing.selectTextOnEditStart"),r=n.get(0);if(!t&&o&&n.is(".dx-texteditor-input")&&!n.is("[readonly]")){var a=Mpe(n.closest(".dx-texteditor"));Xn(a&&a._loadItemDeferred).done(function(){r.select()})}},getWidgetInstance:Mpe,getLastResizableColumnIndex:function(e,n){var o,t=e.some(c=>c&&!c.command&&!c.fixed&&!1!==c.allowResizing);for(o=e.length-1;e[o];o--){var r=e[o];if(!(r.command||r.fixed||"adaptiveHidden"===(n&&n[o])||t&&!1===r.allowResizing))break}return o},isElementInCurrentGrid:function(e,n){return!(!n||!n.length)&&n.closest("."+e.getWidgetContainerClass()).parent().is(e.component.$element())},isVirtualRowRendering:function(e){var n=e.option("scrolling.rowRenderingMode"),t="virtual"===e.option(Cpe),o="infinite"===e.option(Cpe);return!(!1!==e.option("scrolling.legacyMode")||!t&&!o)||"virtual"===n},getPixelRatio:function(e){return e.devicePixelRatio||1},getContentHeightLimit(e){return e.mozilla?8e6:15e6/this.getPixelRatio(Mi())}};var wpe=hr.inherit({_endUpdateCore:function(){},ctor:function(e){var n=this;n._updateLockCount=0,n.component=e,n._actions={},n._actionConfigs={},je(this.callbackNames()||[],function(t,o){var r=n.callbackFlags(o)||{};r.unique=!0,r.syncStrategy=!0,n[this]=_r(r)})},init:function(){},callbackNames:function(){},callbackFlags:function(){},publicMethods:function(){},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){this._updateLockCount>0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())},option:function(e){var n=this.component,t=n._optionCache;return 1===arguments.length&&t?(e in t||(t[e]=n.option(e)),t[e]):n.option.apply(n,arguments)},_silentOption:function(e,n){var t=this.component,o=t._optionCache;return o&&(o[e]=n),t._setOptionWithoutOptionChange(e,n)},localize:function(e){var n=this.component._optionCache;return n?(e in n||(n[e]=ze.format(e)),n[e]):ze.format(e)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(e){e.name in this._actions&&(this.createAction(e.name,this._actionConfigs[e.name]),e.handled=!0)},getAction:function(e){return this._actions[e]},setAria:function(e,n,t){var o=t.get(0),r="role"!==e&&"id"!==e?"aria-":"";o.setAttribute?o.setAttribute(r+e,n):t.attr(r+e,n)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(e){return this.component._controllers[e]},createAction:function(e,n){if(qn(e)){var t=this.component._createAction(e.bind(this),n);return function(o){t({event:o})}}this._actions[e]=this.component._createActionByOption(e,n),this._actionConfigs[e]=n},executeAction:function(e,n){var t=this._actions[e];return t&&t(n)},dispose:function(){var e=this;je(e.callbackNames()||[],function(){e[this].empty()})},addWidgetPrefix:function(e){return"dx-"+this.component.NAME.slice(2).toLowerCase()+(e?"-"+e:"")},getWidgetContainerClass:function(){return this.addWidgetPrefix("dxDataGrid"===this.component.NAME?null:"container")},elementIsInsideGrid:function(e){return e.closest("."+this.getWidgetContainerClass()).parent().is(this.component.$element())}}),_R=wpe,WQe=_R.inherit({getView:function(e){return this.component._views[e]},getViews:function(){return this.component._views}}),Ppe=wpe.inherit({_isReady:function(){return this.component.isReady()},_endUpdateCore:function(){this.callBase(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))},_invalidate:function(e,n){this._requireRender=!0,this.component._requireResize=Ii()&&(this.component._requireResize||e),this._requireReady=this._requireReady||n},_renderCore:function(){},_resizeCore:function(){},_parentElement:function(){return this._$parent},ctor:function(e){this.callBase(e),this.renderCompleted=_r(),this.resizeCompleted=_r()},element:function(){return this._$element},getElementHeight:function(){var e=this.element();if(!e)return 0;var n=parseFloat(e.css("marginTop"))||0,t=parseFloat(e.css("marginBottom"))||0;return e.get(0).offsetHeight+n+t},isVisible:function(){return!0},getTemplate:function(e){return this.component._getTemplate(e)},render:function(e,n){var t=this._$element,o=this.isVisible();!t&&!e||(this._requireReady=!1,t||(t=this._$element=K("
").appendTo(e),this._$parent=e),t.toggleClass("dx-hidden",!o),o&&(this.component._optionCache={},this._renderCore(n),this.component._optionCache=void 0,this.renderCompleted.fire(n)))},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(e){this.element().get(0).focus({preventScroll:e})}});const Us={modules:[],View:Ppe,ViewController:WQe,Controller:_R,registerModule:function(e,n){for(var t=this.modules,o=0;o").addClass(this._getIndicatorClassName(e.name)),p=null===(n=this.component)||void 0===n?void 0:n.getController("columns"),b=(null==p?void 0:p.getHeaderContentAlignment(o))||o;return r.container=l,r.indicator=c,this._renderIndicator(r),l[!a&&e.showColumnLines||"left"!==b?"prependTo":"appendTo"](e.rootElement),c},_getIndicatorClassName:gt,_getColumnAlignment:function(e,n){return n=n||this.option("rtlEnabled"),e&&"center"!==e?e:c0(n)},_createIndicatorContainer:function(e,n){var t=this._getIndicatorContainer(e.rootElement),o="left"===e.columnAlignment?"right":"left";return t.length||(t=K("
").addClass(Ipe)),this.setAria("role","presentation",t),t.css("float",e.showColumnLines&&!n?o:null)},_getIndicatorContainer:function(e){return e&&e.find("."+Ipe)},_getIndicatorElements:function(e){var n=this._getIndicatorContainer(e);return n&&n.children()},_renderIndicator:function(e){var n=e.container,t=e.indicator;n&&t&&n.append(t)},_updateIndicators:function(e){var o,n=this.getColumns(),t=this.getColumnElements();if(t&&n.length===t.length)for(var r=0;r1?r.attr("colSpan",n.colspan):!n.isBand&&"auto"!==n.visibleWidth&&this.option("columnAutoWidth")&&((n.width||n.minWidth)&&(o.style.minWidth=vR(n.minWidth||n.width)),n.width&&Lpe(o,n,vR(n.width))),r},_createRow:function(e,n){var t=K("<".concat(n=n||"tr",">")).addClass(YP);return this.setAria("role","row",t),t},_isAltRow:function(e){return e&&e.dataIndex%2==1},_createTable:function(e,n){var t=this,o=K("").addClass(t.addWidgetPrefix("table")).addClass(t.addWidgetPrefix("table-fixed"));if(e&&!n?(o.append(t._createColGroup(e)),Ha.safari&&o.append(K("").append("")),t.setAria("role","presentation",o)):t.setAria("hidden",!0,o),this.setAria("role","presentation",K("").appendTo(o)),n)return o;Ha.mozilla&&We.on(o,"mousedown","td",function(a){a.ctrlKey&&a.preventDefault()}),t.option("cellHintEnabled")&&We.on(o,"mousemove",".dx-row > td",this.createAction(function(a){var l=a.event,c=K(l.target),p=K(l.currentTarget),b=p.parent(),T=b.hasClass("dx-data-row"),L=b.hasClass("dx-header-row"),N=b.hasClass($q),G=b.hasClass(Zq),Y=b.hasClass(t.addWidgetPrefix("filter-row")),ie=t._columnsController.getVisibleColumns(),ue=b.data("options"),xe=p.index(),Se=ue&&ue.cells&&ue.cells[xe],Te=Se?Se.column:ie[xe];G||Y||T&&(!T||!Te||Te.cellTemplate)||L&&(!L||!Te||Te.headerCellTemplate)||N&&(!N||!Te||void 0!==Te.groupIndex&&Te.groupCellTemplate)||(c.data(Jq)&&(c.removeAttr("title"),c.data(Jq,!1)),c[0].scrollWidth-c[0].clientWidth>0&&!ce(c.attr("title"))&&(c.attr("title",c.text()),c.data(Jq,!0)))}));var r=function(a){var l=K(a.currentTarget),c=K(a.target).closest(".dx-field-item-content"),p=l.parent(),b=p.data("options"),T=b&&b.cells&&b.cells[l.index()];if(l.closest("table").is(a.delegateTarget)){var L=ye({},T,{cellElement:Di(l),event:a,eventType:a.type});if(L.rowIndex=t.getRowIndex(p),c.length){var N=c.data("dx-form-item");N.column&&(L.column=N.column,L.columnIndex=t._columnsController.getVisibleIndex(L.column.index))}return L}};return We.on(o,"mouseover",".dx-row > td",function(a){var l=r(a);l&&t.executeAction("onCellHoverChanged",l)}),We.on(o,"mouseout",".dx-row > td",function(a){var l=r(a);l&&t.executeAction("onCellHoverChanged",l)}),We.on(o,Go,".dx-row > td",function(a){var l=r(a);l&&t.executeAction("onCellClick",l)}),We.on(o,my,".dx-row > td",function(a){var l=r(a);l&&t.executeAction("onCellDblClick",l)}),function(e,n){var t,o,r;function a(l){return setTimeout(function(){t=o=null},l)}We.on(n,"touchstart touchend",".dx-row",function(l){clearTimeout(r),"touchstart"===l.type?(t=l.target,o=l.currentTarget,r=a(1e3)):r=a()}),We.on(n,[Go,my,io.down].join(" "),".dx-row",{useNative:e._isNativeClick()},e.createAction(function(l){var c=l.event;t&&(c.target=t,c.currentTarget=o),K(c.target).closest("a").length||(l.rowIndex=e.getRowIndex(c.currentTarget),l.rowIndex>=0&&(l.rowElement=Di(K(c.currentTarget)),l.columns=e.getColumns(),c.type===io.down?e._rowPointerDown(l):c.type===Go?e._rowClick(l):e._rowDblClick(l)))}))}(t,o),o},_isNativeClick:gt,_rowPointerDown:gt,_rowClick:gt,_rowDblClick:gt,_createColGroup:function(e){for(var n=K(""),t=0;t");return xf(t,n),t},renderDelayedTemplates:function(e){var n=this._delayedTemplates,t=n.filter(r=>!r.async),o=n.filter(r=>r.async);this._delayedTemplates=[],this._renderDelayedTemplatesCore(t,!1,e),this._renderDelayedTemplatesCoreAsync(o)},_renderDelayedTemplatesCoreAsync:function(e){var n=this;e.length&&Mi().setTimeout(function(){n._renderDelayedTemplatesCore(e,!0)})},_renderDelayedTemplatesCore:function(e,n,t){for(var o=new Date;e.length;){var r=e.shift(),a=r.options,l=gn.getDocument();if((!n||K(a.container).closest(l).length)&&(t&&(a.change=t),r.template.render(a)),n&&new Date-o>30){this._renderDelayedTemplatesCoreAsync(e);break}}!e.length&&this._delayedTemplates.length&&this.renderDelayedTemplates()},_processTemplate:function(e){var n;if(e&&e.render&&!vh(e))n={allowRenderToDetachedContainer:e.allowRenderToDetachedContainer,render:function(o){e.render(o.container,o.model,o.change),o.deferred&&o.deferred.resolve()}};else if(qn(e))n={render:function(o){var r=e(Di(o.container),o.model,o.change);r&&(r.nodeType||vh(r))&&o.container.append(r),o.deferred&&o.deferred.resolve()}};else{var t=Wi(e)?e:K(e).attr("id");t?(this._templatesCache[t]||(this._templatesCache[t]=this.getTemplate(e)),n=this._templatesCache[t]):n=this.getTemplate(e)}return n},renderTemplate:function(e,n,t,o,r){var a=this._processTemplate(n,t),l=t.column,c="data"===t.rowType,p=new Rt,b={container:e,model:t,deferred:p,onRendered:()=>{p.resolve()}};if(a){t.component=this.component;var T=l&&(l.renderAsync&&c||this.option("renderAsync")&&(!1!==l.renderAsync&&(l.command||l.showEditorAlways)&&c||"filter"===t.rowType));!a.allowRenderToDetachedContainer&&!o||T?this._delayedTemplates.push({template:a,options:b,async:T}):a.render(b),r&&(r.templateDeferreds=r.templateDeferreds||[],r.templateDeferreds.push(p))}else p.reject();return p.promise()},_getBodies:function(e){return K(e).children("tbody").not(".dx-header").not(".dx-footer")},_needWrapRow:function(e){var n;return!!this.option().rowTemplate&&!(null===(n=this._getBodies(e))||void 0===n||!n.filter("."+YP).length)},_wrapRowIfNeed:function(e,n,t){if(this._needWrapRow(t?e||this._tableElement:this._tableElement||e)){var a=K("").addClass(n.attr("class"));return this.setAria("role","presentation",a),a.append(n)}return n},_appendRow:function(e,n,t){(t=t||lXe).render({content:n,container:e})},_resizeCore:function(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))},_renderCore:function(e){var n=this.element().parent();(!n||n.parent().length)&&this.renderDelayedTemplates(e)},_renderTable:function(e){(e=e||{}).columns=this._columnsController.getVisibleColumns();var n=e.change&&e.change.changeType,t=this._createTable(e.columns,"append"===n||"prepend"===n||"update"===n);return this._renderRows(t,e),t},_renderRows:function(e,n){for(var t=this._getRows(n.change),o=n.change&&n.change.columnIndices||[],r=n.change&&n.change.changeTypes||[],a=0;a=0},_renderCells:function(e,n){for(var t=0,o=n.row,r=n.columns,a=0;a1?t+=r[a].colspan:t++},_updateCells:function(e,n,t){var o=e.children(),r=n.children(),a=this.option("highlightChanges"),l=this.addWidgetPrefix("cell-updated-animation");t.forEach(function(c,p){var b=o.eq(c),T=r.eq(p);b.replaceWith(T),a&&!T.hasClass("dx-command-expand")&&T.addClass(l)}),function(e,n){if(e&&n){var r,t=e.attributes,o=n.attributes;for(r=0;ra.columnIndex===t.columnIndex);n.row.cells[o]=t}}else n.row.cells.push(t);var r=this._createCell(t);return this._setCellAriaAttributes(r,t),this._renderCellContent(r,t,n),e.get(0).appendChild(r.get(0)),r},_renderCellContent:function(e,n,t){var o=this._getCellTemplate(n);Xn(!o||this.renderTemplate(e,o,n,void 0,t.change)).done(()=>{this._updateCell(e,n)})},_getCellTemplate:function(){},_getRows:function(){return[]},_getCellOptions:function(e){var n={column:e.column,columnIndex:e.columnIndex,rowType:e.row.rowType,isAltRow:this._isAltRow(e.row)};return this._addWatchMethod(n),n},_addWatchMethod:function(e,n){if(this.option("repaintChangesOnly")){var t=[];return(n=n||e).watch=n.watch||function(o,r,a){var l=o(n.data),c=function(p){p&&a&&a(p);var b=o(n.data);JSON.stringify(l)!==JSON.stringify(b)&&(p&&r(b),l=b)};return t.push(c),function(){var p=t.indexOf(c);p>=0&&t.splice(p,1)}},n.update=n.update||function(o,r){o&&(this.data=e.data=o.data,this.rowIndex=e.rowIndex=o.rowIndex,this.dataIndex=e.dataIndex=o.dataIndex,this.isExpanded=e.isExpanded=o.isExpanded,e.row&&!r&&(e.row=o)),t.forEach(function(a){a(o)})},n!==e&&(e.watch=n.watch.bind(n)),e}},_cellPrepared:function(e,n){n.cellElement=Di(K(e)),this.executeAction("onCellPrepared",n)},_rowPrepared:function(e,n){Hs(e.get(0),"options",n),n.rowElement=Di(e),this.executeAction("onRowPrepared",n)},_columnOptionChanged:function(e){var n=e.optionNames;if(yi.checkChanges(n,["width","visibleWidth"])){var t=this._columnsController.getVisibleColumns(),o=Ca(t,function(r){var a=r.visibleWidth||r.width;return ce(a)?a:"auto"});this.setColumnWidths({widths:o,optionNames:n})}else this._requireReady||this.render()},getCellIndex:function(e){return e.length?e[0].cellIndex:-1},getTableElements:function(){return this._tableElement||K()},getTableElement:function(){return this._tableElement},setTableElement:function(e){this._tableElement=e},optionChanged:function(e){switch(this.callBase(e),e.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),e.handled=!0}},init:function(){var e=this;e._scrollLeft=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._delayedTemplates=[],e._templatesCache={},e.createAction("onCellClick"),e.createAction("onRowClick"),e.createAction("onCellDblClick"),e.createAction("onRowDblClick"),e.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),e.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),e.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:function(n){e._afterRowPrepared(n)}}),e._columnsController.columnsChanged.add(e._columnOptionChanged.bind(e)),e._dataController&&e._dataController.changed.add(e._handleDataChanged.bind(e))},_afterRowPrepared:gt,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},_updateScrollLeftPosition:function(){var e=this._scrollLeft;e>=0&&(this._scrollLeft=0,this.scrollTo({left:e}))},scrollTo:function(e){var n=this.element(),t=n&&n.children("."+this.addWidgetPrefix(kpe)).not("."+this.addWidgetPrefix("content-fixed"));ce(e)&&ce(e.left)&&this._scrollLeft!==e.left&&(this._scrollLeft=e.left,t&&t.scrollLeft(e.left))},_wrapTableInScrollContainer:function(e){var n=K("
"),t=this.option("scrolling.useNative");return(!1===t||"auto"===t&&!sp)&&n.addClass(this.addWidgetPrefix("scrollable-simulated")),We.on(n,"scroll",()=>{var o=n.scrollLeft();o!==this._scrollLeft&&this.scrollChanged.fire({left:o},this.name)}),n.addClass(this.addWidgetPrefix("content")).addClass(this.addWidgetPrefix(kpe)).append(e).appendTo(this.element()),this.setAria("role","presentation",n),n},_updateContent:function(e){this.setTableElement(e),this._wrapTableInScrollContainer(e)},_findContentElement:gt,_getWidths:function(e){var t,n=[];return e&&je(e,function(o,r){if(t=r.offsetWidth,r.getBoundingClientRect){var a=qo(r);a.width>t-1&&(t=a.width)}n.push(t)}),n},getColumnWidths:function(e){var t,o,n=[];if((this.option("forceApplyBindings")||gt)(),e=e||this.getTableElement()){t=e.children("tbody:not(.dx-header)").children();for(var r=0;r=0&&(t=o.eq(r)),t&&t.length)return t},_getRowElement:function(e){var n=this,t=K(),o=n.getTableElements();if(je(o,function(r,a){t=t.add(n._getRowElements(K(a)).eq(e))}),t.length)return t},getCellElement:function(e,n){return Di(this._getCellElement(e,n))},getRowElement:function(e){var n=this._getRowElement(e),t=[];if(n&&!Di(n).get)for(var o=0;o0&&e.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&"virtual"!==this.option("scrolling.rowRenderingMode")&&(e.rowIndex=e.rowIndex0))return o.eq(o.length>e.columnIndex?e.columnIndex:o.length-1)},getRowsCount:function(){var e=this.getTableElement();return e&&1===e.length?e[0].rows.length:0},_getRowElementsCore:function(e){if(e=e||this.getTableElement()){var t=(this.option().rowTemplate||this.option("dataRowTemplate"))&&e.find("> tbody."+YP);return t&&t.length?t:e.find("> tbody > .dx-row, > ."+YP)}return K()},_getRowElements:function(e){return this._getRowElementsCore(e)},getRowIndex:function(e){return this._getRowElements().index(e)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(e){var n=this.element(),t=this.option("rtlEnabled");n&&n.css({paddingLeft:t?e:"",paddingRight:t?"":e})},isScrollbarVisible:function(e){var n=this.element(),t=this._tableElement;return!(!n||!t)&&(e?ho(t)-vi(n)>0:no(t)-Ti(n)>0)}}),Qq="dx-state-focused",Rpe=".dx-datagrid-rowsview .dx-row",Bpe="".concat(Rpe," > td"),zpe=".dx-treelist-rowsview .dx-row",Hpe="".concat(zpe," > td"),Vpe={groupPanel:[".dx-datagrid-group-panel .dx-group-panel-item[tabindex]"],columnHeaders:[".dx-datagrid-headers .dx-header-row > td.dx-datagrid-action",".dx-treelist-headers .dx-header-row > td.dx-treelist-action"],filterRow:[".dx-datagrid-headers .dx-datagrid-filter-row .dx-editor-cell .dx-texteditor-input",".dx-treelist-headers .dx-treelist-filter-row .dx-editor-cell .dx-texteditor-input"],rowsView:["".concat(".dx-row-focused"),"".concat(Rpe,"[tabindex]"),"".concat(Bpe,"[tabindex]"),"".concat(Bpe),"".concat(zpe,"[tabindex]"),"".concat(Hpe,"[tabindex]"),"".concat(Hpe)],footer:[".dx-datagrid-total-footer .dx-datagrid-summary-item",".dx-treelist-total-footer .dx-treelist-summary-item"],filterPanel:[".dx-datagrid-filter-panel .dx-icon-filter",".dx-treelist-filter-panel .dx-icon-filter"],pager:[".dx-datagrid-pager [tabindex]",".dx-treelist-pager [tabindex]"]},Xq=!1,CR=!1,W5=null;function Npe(e,n){return K(n).find(e?'[aria-label="'.concat(e,'"][tabindex]'):"[tabindex]")}function fXe(e){for(var n in e){var o=K(e[n]).first();if(o.length)return o}}function Fpe(){CR="visible"===gn.getDocument().visibilityState}function Upe(e,n,t,o,r,a){if(n.option("useLegacyKeyboardNavigation"))return gt;var l=()=>K(n.element()),c=T=>function hXe(e,n,t,o,r,a){var l=function mXe(e,n,t){var o={event:n,handled:!1};return t?t(o):e._createActionByOption("onKeyDown")(o),o.handled}(n,t.originalEvent,a);if(!l){var c=ls(t);"enter"===c||"space"===c?(function gXe(e,n){var t=K(e),o=t.attr("aria-label"),a=Npe(o,n.element()).index(t);W5=ye({},{ariaLabel:o,index:a},{viewInstance:n})}(t.target,n),o&&o({event:t})):"tab"===c?r.addClass(Qq):t$(e,n,t)}}(e,n,T,r,l(),a),p=()=>{Xq=!0,l().removeClass(Qq)},b=()=>{!Xq&&!CR&&l().addClass(Qq),Xq=!1};return We.on(t,"keydown",o,c),We.on(t,"mousedown",o,p),We.on(t,"focusin",o,b),()=>{We.off(t,"keydown",o,c),We.off(t,"mousedown",o,p),We.off(t,"focusin",o,b)}}function e$(e){if(!e.option("useLegacyKeyboardNavigation")&&W5){var n=W5.viewInstance;if(n){var o=Npe(W5.ariaLabel,n.element()).eq(W5.index);W5=null,We.trigger(o,"focus")}}}function t$(e,n,t){var o=ls(t);if(t.ctrlKey&&("upArrow"===o||"downArrow"===o))for(var r=Object.keys(Vpe),a=r.indexOf(e);a>=0&&a{n.executeAction("onKeyDown",l)}))},n$="text-content",jpe="dx-header-row",MXe="dx-column-lines",i$="dx-visibility-hidden",Gpe="dx-text-content-alignment-",AXe="dx-header-multi-row",o$={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:qP.inherit(function(){var e=function(t,o,r){var a=K("
").addClass(t.addWidgetPrefix(n$));t.setAria("role","presentation",a),n(t,o,r.column,a);var l=t.option("showColumnLines"),c=t.getController("columns").getHeaderContentAlignment(r.column.alignment);return a[l||"right"===c?"appendTo":"prependTo"](o)};function n(t,o,r,a){var l=t._getIndicatorElements(o,!0),c=t._getIndicatorElements(o),p=l&&l.length,b=t._getColumnAlignment(r.alignment),T=".".concat(t._getIndicatorClassName("sort")),L=".".concat(t._getIndicatorClassName("sortIndex")),N=c.filter(T),G=c.children().filter(L);(a=a||o.children("."+t.addWidgetPrefix(n$))).toggleClass(Gpe+b,p>0).toggleClass(Gpe+("left"===b?"right":"left"),p>0&&"center"===r.alignment).toggleClass("dx-sort-indicator",!!N.length).toggleClass("dx-sort-index-indicator",!!G.length).toggleClass("dx-header-filter-indicator",!!c.filter("."+t._getIndicatorClassName("headerFilter")).length)}return{_createTable:function(){var t=this.callBase.apply(this,arguments);return We.on(t,"mousedown selectstart",this.createAction(function(o){var r=o.event;r.shiftKey&&r.preventDefault()})),t},_isLegacyKeyboardNavigation(){return this.option("useLegacyKeyboardNavigation")},_getDefaultTemplate:function(t){var o=this;return function(r,a){var l=t.command?r:e(o,r,a),c="expand"!==t.command&&t.caption;c?l.text(c):t.command&&r.html(" ")}},_getHeaderTemplate:function(t){return t.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(t)}},_processTemplate:function(t,o){var r=this,l=o.column,c=r.callBase(t);return"header"===o.rowType&&c&&l.headerCellTemplate&&!l.command?{render:function(p){var b=e(r,p.container,p.model);c.render(ye({},p,{container:b}))}}:c},_handleDataChanged:function(t){"refresh"===t.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())},_renderCell:function(t,o){var r=this.callBase(t,o);return"header"===o.row.rowType&&(r.addClass("dx-cell-focus-disabled"),this._isLegacyKeyboardNavigation()||o.column&&!o.column.type&&r.attr("tabindex",this.option("tabindex")||0)),r},_setCellAriaAttributes:function(t,o){this.callBase(t,o),"header"===o.rowType&&(this.setAria("role","columnheader",t),o.column&&!o.column.command&&!o.column.isBand&&(t.attr("id",o.column.headerId),this.setAria("label",ze.format("dxDataGrid-ariaColumn")+" "+o.column.caption,t)))},_createRow:function(t){var o=this.callBase.apply(this,arguments);return o.toggleClass(MXe,this.option("showColumnLines")),"header"===t.rowType&&(o.addClass(jpe),this._isLegacyKeyboardNavigation()||$P("columnHeaders",this,o,"td",this._handleActionKeyDown.bind(this))),o},_handleActionKeyDown:function(t){var o=t.event,r=K(o.target);if(this._lastActionElement=o.target,r.is(".dx-header-filter")){var a=this.getController("headerFilter"),l=r.closest("td"),c=this.getColumnIndexByElement(l);c>=0&&a.showHeaderFilterMenu(c,!1)}else{var p=r.closest(".dx-row");this._processHeaderAction(o,p)}o.preventDefault()},_renderCore:function(){var t=this,o=t.element();t._tableElement&&!t._dataController.isLoaded()&&!t._hasRowElements||(o.addClass(t.addWidgetPrefix("headers")).toggleClass(t.addWidgetPrefix("nowrap"),!t.option("wordWrapEnabled")).empty(),t.setAria("role","presentation",o),t._updateContent(t._renderTable()),t.getRowCount()>1&&o.addClass(AXe),t.callBase.apply(t,arguments))},_renderRows:function(){var t=this;(t._dataController.isLoaded()||t._hasRowElements)&&(t.callBase.apply(t,arguments),t._hasRowElements=!0)},_getRowVisibleColumns:function(t){return this._columnsController.getVisibleColumns(t)},_renderRow:function(t,o){o.columns=this._getRowVisibleColumns(o.row.rowIndex),this.callBase(t,o)},_createCell:function(t){var o=t.column,r=this.callBase.apply(this,arguments);return o.rowspan>1&&"header"===t.rowType&&r.attr("rowSpan",o.rowspan),r},_getRows:function(){var t=[],o=this.getRowCount();if(this.option("showColumnHeaders"))for(var r=0;r1&&(!ce(t)||ce(o))){var p=[],b=ce(o)?l.getChildrenByBandColumn(o,!0):l.getVisibleColumns();return je(b,function(T,L){var N=ce(t)?t:l.getRowIndex(L.index);(a=r._getCellElement(N,l.getVisibleIndex(L.index,N)))&&p.push(a.get(0))}),K(p)}if(!t||t1;for(a=0;a(t<100&&N.setFullYear(t),N))(n[12]?new Date(Date.UTC(t,o,r,p,b,T,L)):new Date(t,o,r,p,b,T,L))}(e)),t||function zXe(e){var n=Jpe(e)===Kpe,t=!_l(e)&&Date.parse(e);if(!t&&n){var o=e.match(RXe);if(o){var r=new Date(dp(o[1]),dp(o[2]),dp(o[3]));return r.setFullYear(dp(o[1])),r.setMonth(dp(o[2])-1),r.setDate(dp(o[3])),r}}return vo(t)?new Date(t):e}(e)};function dp(e){return+e||0}var Jpe=function(e){return"number"==typeof e?"number":Wi(e)?(Ua().forceIsoDateParsing&&(n=function(e,n){var t=e.match(Ype),o="";if(!t)return(t=e.match(qpe))?t[3]?"HH:mm:ss":"HH:mm":void 0;for(var r=1;r<$pe.length;r++)t[r]&&(o+=$pe[r]||t[r]);return"Z"===t[12]&&(o+="'Z'"),t[14]&&(o+=t[15]?"xxx":t[16]?"xx":"x"),o}(e)),n||(e.indexOf(":")>=0?"yyyy/MM/dd HH:mm:ss":Kpe)):e?null:void 0;var n};const ja={dateParser:Zpe,deserializeDate:function(e){return"number"==typeof e?new Date(e):Zpe(e,!Ua().forceIsoDateParsing)},serializeDate:function(e,n){return n?_l(e)?"number"===n?e&&e.valueOf?e.valueOf():null:lpe(n,KP)(e):null:e},getDateSerializationFormat:Jpe};var El=Wr(ua.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",E4024:"String function {0} cannot be used with the data field {1} of type {2}.",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),r$=function(e){var n;null===(n=null)||void 0===n||n(e)},ZP=hr.inherit({toArray:function(){var e=[];for(this.reset();this.next();)e.push(this.current());return e},countable:function(){return!1}}),a$=ZP.inherit({ctor:function(e){this.array=e,this.index=-1},next:function(){return this.index+1n?1:0},l$=ZP.inherit({ctor:function(e,n,t,o){e instanceof s$||(e=new s$(e,this._wrap)),this.iter=e,this.rules=[{getter:n,desc:t,compare:o}]},thenBy:function(e,n,t){var o=new l$(this.sortedIter||this.iter,e,n,t);return this.sortedIter||(o.rules=this.rules.concat(o.rules)),o},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var e=this;e.sortedIter||(je(e.rules,function(){this.getter=Wo(this.getter)}),e.sortedIter=new s$(new a$(this.iter.toArray().sort(function(n,t){return e._compare(n,t)})),e._unwrap))},_wrap:function(e,n){return{index:n,value:e}},_unwrap:function(e){return e.value},_compare:function(e,n){var t=e.index,o=n.index;if((e=e.value)===(n=n.value))return t-o;for(var r=0,a=this.rules.length;r1&&a!==l)throw new El.Error("E4019");r.push(c$(this)),a=l,l=!0}else l=function Wt(e){return/^(and|&&|&)$/i.test(e)}(this)}),function(c){for(var p=a,b=0;b(p=Tl(r(p)),(null!=l&&null!=p||l===p)&&b(p,l));switch(a.toLowerCase()){case"=":return n(r,l);case"<>":return n(r,l,!0);case">":return p=>c(p,(b,T)=>b>T);case"<":return p=>c(p,(b,T)=>b=":return p=>c(p,(b,T)=>b>=T);case"<=":return p=>c(p,(b,T)=>b<=T);case"startswith":return function(p){return 0===Tl(e(r(p))).indexOf(l)};case"endswith":return function(p){var b=Tl(e(r(p))),T=e(l);if(b.length-1};case"notcontains":return function(p){return-1===Tl(e(r(p))).indexOf(l)}}throw El.Error("E4003",a)}(t);var r,a,l}}(),jXe=yR.inherit({ctor:function(e,n){this.callBase(e),this.criteria=c$(n)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),GXe=ZP.inherit({ctor:function(e,n){this.iter=e,this.getter=n},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var e={},n=[],t=this.iter,o=Wo(this.getter);for(t.reset();t.next();){var r=t.current(),a=o(r);a in e?e[a].push(r):(e[a]=[r],n.push(a))}this.groupedIter=new a$(Ca(n,function(l){return{key:l,items:e[l]}}))}}}),WXe=yR.inherit({ctor:function(e,n){this.callBase(e),this.getter=Wo(n)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),KXe=yR.inherit({ctor:function(e,n,t){this.callBase(e),this.skip=Math.max(0,n),this.take=Math.max(0,t),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos1&&(e=e.select(function(t){return ye({},t,{items:d$(bR(t.items),n.slice(1)).toArray()})})),e}function Xpe(e,n){var t=[];return je(e,function(o,r){Bd(n,function(l){return r.selector===l.selector}).length<1&&t.push(r)}),t.concat(n)}const Af={multiLevelGroup:d$,arrangeSortingInfo:Xpe,queryByOptions:function qXe(e,n,t){var o=(n=n||{}).filter;if(o&&(e=e.filter(o)),t)return e;var r=n.sort,a=n.select,l=n.group,c=n.skip,p=n.take;return l&&((l=Ce(l)).keepInitialKeyOrder=!!n.group.keepInitialKeyOrder),(r||l)&&(r=Ce(r||[]),l&&!l.keepInitialKeyOrder&&(r=Xpe(l,r)),je(r,function(b){e=e[b?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),a&&(e=e.select(a)),l&&(e=d$(e,l)),(p||c)&&(e=e.slice(c||0,p)),e}};var JP=hr.abstract,ehe=Af.queryByOptions,u$={},K5=hr.inherit({ctor:function(e){var n=this;e=e||{},this._eventsStrategy=new u1(this),je(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],function(t,o){o in e&&n.on(o.slice(2).toLowerCase(),e[o])}),this._key=e.key,this._errorHandler=e.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(e){return this._keyGetter||(this._keyGetter=Wo(this.key())),this._keyGetter(e)},_requireKey:function(){if(!this.key())throw El.Error("E4005")},load:function(e){var n=this;return this._eventsStrategy.fireEvent("loading",[e=e||{}]),this._withLock(this._loadImpl(e)).done(function(t){n._eventsStrategy.fireEvent("loaded",[t,e])})},_loadImpl:function(e){return ehe(this.createQuery(e),e).enumerate()},_withLock:function(e){var n=new Rt;return e.done(function(){var t=this,o=arguments;lt.promise().done(function(){n.resolveWith(t,o)})}).fail(function(){n.rejectWith(this,arguments)}),n},createQuery:JP,totalCount:function(e){return this._totalCountImpl(e)},_totalCountImpl:function(e){return ehe(this.createQuery(e),e,!0).count()},byKey:function(e,n){return this._addFailHandlers(this._withLock(this._byKeyImpl(e,n)))},_byKeyImpl:JP,insert:function(e){var n=this;return n._eventsStrategy.fireEvent("modifying"),n._eventsStrategy.fireEvent("inserting",[e]),n._addFailHandlers(n._insertImpl(e).done(function(t,o){n._eventsStrategy.fireEvent("inserted",[t,o]),n._eventsStrategy.fireEvent("modified")}))},_insertImpl:JP,update:function(e,n){var t=this;return t._eventsStrategy.fireEvent("modifying"),t._eventsStrategy.fireEvent("updating",[e,n]),t._addFailHandlers(t._updateImpl(e,n).done(function(){t._eventsStrategy.fireEvent("updated",[e,n]),t._eventsStrategy.fireEvent("modified")}))},_updateImpl:JP,push:function(e){var n={changes:e,waitFor:[]};this._eventsStrategy.fireEvent("beforePush",[n]),Xn(...n.waitFor).done(()=>{this._pushImpl(e),this._eventsStrategy.fireEvent("push",[e])})},_pushImpl:gt,remove:function(e){var n=this;return n._eventsStrategy.fireEvent("modifying"),n._eventsStrategy.fireEvent("removing",[e]),n._addFailHandlers(n._removeImpl(e).done(function(t){n._eventsStrategy.fireEvent("removed",[t]),n._eventsStrategy.fireEvent("modified")}))},_removeImpl:JP,_addFailHandlers:function(e){return e.fail(this._errorHandler).fail(r$)},on(e,n){return this._eventsStrategy.on(e,n),this},off(e,n){return this._eventsStrategy.off(e,n),this}});K5.create=function(e,n){if(!(e in u$))throw El.Error("E4020",e);return new u$[e](n)},K5.registerClass=function(e,n){return n&&(u$[n]=e),e},K5.inherit=function(e){return function(n,t){var o=e.apply(this,[n]);return K5.registerClass(o,t),o}}(K5.inherit);const Y5=K5;function the(e,n,t,o){var a;if(o){for(var l=0;l=0)return n}function ZXe(e,n,t,o){return o?the(e,n,t,o)||[]:n}function nhe(e,n,t){e._dataByKeyMap&&(e._dataByKeyMap[JSON.stringify(n)]=t,e._dataByKeyMapLength+=t?1:-1)}function ihe(e,n,t){t=t||new WeakMap;var o=e?Object.create(Object.getPrototypeOf(e)):{};e&&t.set(e,o);var r=Xt({},e);for(var a in Nu(o,r,!0,!0),r){var l=r[a],c=null==n?void 0:n[a];to(l)&&!jo(l)&&to(c)&&!t.has(l)&&(o[a]=ihe(l,c,t))}for(var p in o){var b=o[p];to(b)&&t.has(b)&&(o[p]=t.get(b))}return o}function z2(e,n){var t=ihe(e,n);return Nu(t,n,!0,!0)}function _y(e){var{keyInfo:n,data:t,changes:o,groupCount:r,useInsertIndex:a,immutable:l,disableCache:c,logError:p,skipCopying:b}=e,T=!0===l?[...t]:t;return o.forEach(L=>{var N="insert"===L.type?T:ZXe(n,T,L.key,r);switch(!c&&function JXe(e,n){if(e.key()&&(!n._dataByKeyMap||n._dataByKeyMapLength!==n.length)){for(var t={},o=n.length,r=0;r=0?n.splice(o,0,b):n.push(b),nhe(n,c,b),!r)return Li(Ua().useLegacyStoreResult?t:b,c)}function ohe(e,n,t,o,r){var a=vy(e,n,t);return a>-1&&(n.splice(a,1),nhe(n,t,null)),o?a<0?xR(o,r,"E4009"):void 0:Li(t)}function vy(e,n,t){var o=e.key();if(!function XXe(e,n){return!e._dataByKeyMap||e._dataByKeyMap[JSON.stringify(n)]}(n,t))return-1;for(var r=0,a=n.length;r=0)&&(t[r]=e[r]);return t}ghe();var oet=Mi();const fhe=lg({getXhr:function(){return new oet.XMLHttpRequest}});var f$=Mi(),XP="success",m$="error",mhe=function(e){var n=gn.createElement("script");for(var t in e)n[t]=e[t];return n},_he=function(e){e.parentNode.removeChild(e)},vhe=function(e){return gn.getHead().appendChild(e)},Che=function(e){var n=mhe({text:e});vhe(n),_he(n)};function _$(e){return(e.method||"GET").toUpperCase()}const g0=lg({sendRequest:function(e){var c,n=fhe.getXhr(),t=new Rt,o=t.promise(),r=!ce(e.async)||e.async,a=e.dataType,l=e.timeout||0;e.crossDomain=function(e){if(!Ii())return!0;var n=!1,t=gn.createElement("a"),o=gn.createElement("a");t.href=f$.location.href;try{o.href=e,o.href=o.href,n=t.protocol+"//"+t.host!=o.protocol+"//"+o.host}catch(r){n=!0}return n}(e.url);var p="jsonp"===a||"script"===a;void 0===e.cache&&(e.cache=!p);var b=function(e){if("jsonp"===e.dataType){var n=Math.random().toString().replace(/\D/g,""),t=e.jsonpCallback||"dxCallback"+Date.now()+"_"+n,o=e.jsonp||"callback";return e.data=e.data||{},e.data[o]=t,t}}(e),T=function(e){var n=e.headers||{};return n["Content-Type"]=n["Content-Type"]||function(e){var n;return e.data&&!e.upload&&"GET"!==_$(e)&&(n="application/x-www-form-urlencoded;charset=utf-8"),e.contentType||n}(e),n.Accept=n.Accept||function(e){var n=e.dataType||"*",t="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",o={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:t,script:t};return S8(o,e.accepts,!0),o[n]?o[n]+("*"!==n?", */*; q=0.01":""):o["*"]}(e),!e.crossDomain&&!n["X-Requested-With"]&&(n["X-Requested-With"]="XMLHttpRequest"),n}(e),L=function(e,n){var t=e.data,o="string"==typeof t,r=e.url||f$.location.href;return!o&&!e.cache&&((t=t||{})._=Date.now()),t&&!e.upload&&(o||(t=function(e){var n=[];for(var t in e){var o=e[t];void 0!==o&&(null===o&&(o=""),"function"==typeof o&&(o=o()),n.push(encodeURIComponent(t)+"="+encodeURIComponent(o)))}return n.join("&")}(t)),"GET"===_$(e)?(""!==t&&(r+=(r.indexOf("?")>-1?"&":"?")+t),t=null):n["Content-Type"]&&n["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(t=t.replace(/%20/g,"+"))),{url:r,parameters:t}}(e,T),N=L.url,G=L.parameters;if(b&&(f$[b]=function(ue){t.resolve(ue,XP,n)}),e.crossDomain&&p)return function(e){var n=mhe({src:e});return new vr(function(t,o){var r={load:t,error:o},a=function(c){r[c.type](),_he(n)};for(var l in r)gn.listen(n,l,a);vhe(n)})}(N).then(function(){"jsonp"!==a&&t.resolve(null,XP,n)},function(){t.reject(n,m$)}),o;if(e.crossDomain&&!("withCredentials"in n))return t.reject(n,m$),o;if(n.open(_$(e),N,r,e.username,e.password),r&&(n.timeout=l,c=function(e,n){return e&&setTimeout(function(){n.customStatus="timeout",n.abort()},e)}(l,n)),n.onreadystatechange=function(ue){4===n.readyState&&(clearTimeout(c),function(e){return 200<=e&&e<300}(n.status)?function(e){return 204!==e}(n.status)?function(e,n,t){var o=function(e){return e.responseType&&"text"!==e.responseType||"string"!=typeof e.responseText?e.response:e.responseText}(n);switch(t){case"jsonp":Che(o);break;case"script":Che(o),e.resolve(o,XP,n);break;case"json":try{e.resolve(JSON.parse(o),XP,n)}catch(r){e.reject(n,"parsererror",r)}break;default:e.resolve(o,XP,n)}}(t,n,a):t.resolve(null,"nocontent",n):t.reject(n,n.customStatus||m$))},e.upload&&(n.upload.onprogress=e.upload.onprogress,n.upload.onloadstart=e.upload.onloadstart,n.upload.onabort=e.upload.onabort),e.xhrFields)for(var Y in e.xhrFields)n[Y]=e.xhrFields[Y];for(var ie in"arraybuffer"===e.responseType&&(n.responseType=e.responseType),T)Object.prototype.hasOwnProperty.call(T,ie)&&ce(T[ie])&&n.setRequestHeader(ie,T[ie]);return e.beforeSend&&e.beforeSend(n),n.send(G),o.abort=function(){n.abort()},o}}),Met={};var Pet={array:bR,remote:function e(n,t,o){o=o||[],t=t||{};var r=function(c,p){return{name:c,args:p}},a=function(c){var b,T,L,N,G,xe,Se,p=new Rt,Y=function(xe){var Se=t.errorHandler;Se&&Se(xe),r$(xe),p.reject(xe)};function ie(xe){switch(xe.name){case"sortBy":return G=[xe.args],!0;case"thenBy":if(!G)throw El.Error("E4004");return G.push(xe.args),!0}return!1}try{qn(b=t.adapter)||(b=Met[b]),T=b(t),L=[].concat(o).concat(c);var ue=T.optimize;for(ue&&ue(L);L.length;){if(!ie(N=L[0])){if(G){L.unshift(r("multiSort",[G])),G=null;continue}if("enumerate"!==String(N.name)&&(!T[N.name]||!1===T[N.name].apply(T,N.args)))break}L.shift()}Se=[],(xe=L[0])&&"multiSort"===xe.name&&(L.shift(),je(xe.args[0],function(){Se.push(r(Se.length?"thenBy":"sortBy",this))})),L=Se.concat(L),T.exec(n).done(function(xe,Se){if(L.length){var Te=bR(xe,{errorHandler:t.errorHandler});je(L,function(){Te=Te[this.name].apply(Te,this.args)}),Te.done(p.resolve).fail(p.reject)}else p.resolve(xe,Se)}).fail(Y)}catch(xe){Y(xe)}return p.promise()},l={};return je(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var c=String(this);l[c]=function(){return e(n,t,o.concat(r(c,arguments)))}}),je(["count","min","max","sum","avg","aggregate","enumerate"],function(){var c=String(this);l[c]=function(){return a.call(this,r(c,arguments))}}),l}};const Sc=function(){var e=Array.isArray(arguments[0])?"array":"remote";return Pet[e].apply(this,arguments)};var Det=Y5.inherit({ctor:function(e){e=Array.isArray(e)?{data:e}:e||{},this.callBase(e);var n=e.data;if(n&&!Array.isArray(n))throw El.Error("E4006");this._array=n||[]},createQuery:function(){return Sc(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(e){var n=vy(this,this._array,e);return-1===n?Lr(El.Error("E4009")):Li(this._array[n])},_insertImpl:function(e){return h$(this,this._array,e)},_pushImpl:function(e){_y({keyInfo:this,data:this._array,changes:e})},_updateImpl:function(e,n){return p$(this,this._array,e,n)},_removeImpl:function(e){return ohe(this,this._array,e)},clear:function(){this._eventsStrategy.fireEvent("modifying"),this._array=[],this._eventsStrategy.fireEvent("modified")}},"array");const vl=Det;var Iet=["items"],yhe="canceled",bhe=e=>"pending"===e.state(),xhe=e=>{switch(e.length){case 0:return;case 1:return e[0]}return[].slice.call(e)},Ohe=(e,n,t)=>Array.isArray(e)?n?((e,n,t)=>Ca(e,o=>Xt({},er(o,Iet),{items:Ohe(o.items,n-1,t)})))(e,n,t):Ca(e,t):e,eS=(e,n)=>{var t;return null!==(t=e)&&void 0!==t&&t.data&&(n=e,e=e.data),Array.isArray(e)||(e=[e]),{data:e,extra:n}},Aet=e=>{var n={};return je(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){n[this]=e[this],delete e[this]}),new by(n)},Ret=(e,n)=>new by({load:()=>g0.sendRequest({url:e,dataType:"json"}),loadMode:null==n?void 0:n.fromUrlLoadMode}),Gv=(e,n)=>{var t;return"string"==typeof e&&(e={paginate:!1,store:Ret(e,n)}),void 0===e&&(e=[]),void 0===(e=Array.isArray(e)||e instanceof Y5?{store:e}:ye({},e)).store&&(e.store=[]),t=e.store,"load"in e?t=Aet(e):Array.isArray(t)?t=new vl(t):jo(t)&&(t=(e=>{var n=e.type;return delete e.type,Y5.create(n,e)})(ye({},t))),e.store=t,e};class Bet{constructor(){this._counter=-1,this._deferreds={}}add(n){return this._counter++,this._deferreds[this._counter]=n,this._counter}remove(n){return delete this._deferreds[n]}cancel(n){return n in this._deferreds&&(this._deferreds[n].reject(yhe),!0)}cancelAll(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--}}var up=hr.inherit({ctor(e){var n;if(e=Gv(e),this._eventsStrategy=new u1(this,{syncStrategy:!0}),this._store=e.store,this._changedTime=0,0!==e.pushAggregationTimeout){var r,a,l=function jl(e,n){var t=[],o=function cs(e,n){var t,o;return function(){return o=arguments,t||(t=setTimeout(()=>{t=void 0,o&&e.call(this,o)},qn(n)?n():n)),t}}(function(){e.call(this,t),t=[]},n);return function(r){return Array.isArray(r)&&t.push(...r),o.call(this,t)}}(c=>{r.resolve(),Xn(...a).done(()=>this._onPush(c)),a=void 0,r=void 0},void 0===e.pushAggregationTimeout?()=>5*this._changedTime:e.pushAggregationTimeout);this._onPushHandler=c=>{this._aggregationTimeoutId=l(c.changes),r||(r=new Rt),a=c.waitFor,c.waitFor.push(r.promise())},this._store.on("beforePush",this._onPushHandler)}else this._onPushHandler=c=>this._onPush(c),this._store.on("push",this._onPushHandler);this._storeLoadOptions=this._extractLoadOptions(e),this._mapFunc=e.map,this._postProcessFunc=e.postProcess,this._pageIndex=void 0!==e.pageIndex?e.pageIndex:0,this._pageSize=void 0!==e.pageSize?e.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in e?e.searchValue:null,this._searchOperation=e.searchOperation||"contains",this._searchExpr=e.searchExpr,this._paginate=e.paginate,this._reshapeOnPush=null!==(n=e.reshapeOnPush)&&void 0!==n&&n,je(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],(c,p)=>{p in e&&this.on(p.substr(2,1).toLowerCase()+p.substr(3),e[p])}),this._operationManager=new Bet,this._init()},_init(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,ce(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose(){var e;this._store.off("beforePush",this._onPushHandler),this._store.off("push",this._onPushHandler),this._eventsStrategy.dispose(),clearTimeout(this._aggregationTimeoutId),null===(e=this._delayedLoadTask)||void 0===e||e.abort(),this._operationManager.cancelAll(),delete this._store,delete this._items,delete this._delayedLoadTask,this._disposed=!0},_extractLoadOptions(e){var n={},t=["sort","filter","select","group","requireTotalCount"],o=this._store._customLoadOptions();return o&&(t=t.concat(o)),je(t,function(){n[this]=e[this]}),n},loadOptions(){return this._storeLoadOptions},items(){return this._items},pageIndex(e){if(!vo(e))return this._pageIndex;this._pageIndex=e,this._isLastPage=!this._paginate},paginate(e){if(!hv(e))return this._paginate;this._paginate!==e&&(this._paginate=e,this.pageIndex(0))},pageSize(e){if(!vo(e))return this._pageSize;this._pageSize=e},isLastPage(){return this._isLastPage},generateStoreLoadOptionAccessor(e){return n=>{var t=xhe(n);if(void 0===t)return this._storeLoadOptions[e];this._storeLoadOptions[e]=t}},sort(){for(var e=arguments.length,n=new Array(e),t=0;t1&&(e=[].slice.call(arguments)),this._searchExpr=e,this.pageIndex(0)},store(){return this._store},key(){var e;return null===(e=this._store)||void 0===e?void 0:e.key()},totalCount(){return this._totalCount},isLoaded(){return this._isLoaded},isLoading(){return this._loadingCount>0},beginLoading(){this._changeLoadingCount(1)},endLoading(){this._changeLoadingCount(-1)},_createLoadQueue:()=>ghe(),_changeLoadingCount(e){var n=this.isLoading();this._loadingCount+=e;var t=this.isLoading();n^t&&this._eventsStrategy.fireEvent("loadingChanged",[t])},_scheduleLoadCallbacks(e){this.beginLoading(),e.always(()=>{this.endLoading()})},_scheduleFailCallbacks(e){var n=this;e.fail(function(){for(var t=arguments.length,o=new Array(t),r=0;rthis._fireChanged())},loadSingle(e,n){var t=new Rt,o=this.key(),r=this._store,a=this._createStoreLoadOptions();return this._scheduleFailCallbacks(t),arguments.length<2&&(n=e,e=o),delete a.skip,delete a.group,delete a.refresh,delete a.pageIndex,delete a.searchString,(e===o||r instanceof by&&!r._byKeyViaLoad()?r.byKey(n,a):(a.take=1,a.filter=a.filter?[a.filter,[e,n]]:[e,n],r.load(a))).fail(t.reject).done(l=>{!ce(l)||function(e){return Array.isArray(e)&&!e.length}(l)?t.reject(new El.Error("E4009")):(Array.isArray(l)||(l=[l]),t.resolve(this._applyMapFunction(l)[0]))}),t.promise()},load(){var e=new Rt,n=()=>{if(!this._disposed&&bhe(e))return this._loadFromStore(t,e)};this._scheduleLoadCallbacks(e),this._scheduleFailCallbacks(e),this._scheduleChangedCallbacks(e);var t=this._createLoadOperation(e);return this._eventsStrategy.fireEvent("customizeStoreLoadOptions",[t]),this._loadQueue.add(()=>("number"==typeof t.delay?this._delayedLoadTask=_f(n,t.delay):n(),e.promise())),e.promise({operationId:t.operationId})},_onPush(e){if(this._reshapeOnPush)this.load();else{var n={changes:e};this._eventsStrategy.fireEvent("changing",[n]);var t=this.group(),o=this.items(),r=0,a=this.paginate()||t?e.filter(l=>"update"===l.type):e;t&&(r=Array.isArray(t)?t.length:1),this._mapFunc&&a.forEach(l=>{"insert"===l.type&&(l.data=this._mapFunc(l.data))}),n.postProcessChanges&&(a=n.postProcessChanges(a)),_y({keyInfo:this.store(),data:o,changes:a,groupCount:r,useInsertIndex:!0}),this._fireChanged([{changes:e}])}},_createLoadOperation(e){var n=this._operationManager.add(e),t=this._createStoreLoadOptions();return e.always(()=>this._operationManager.remove(n)),{operationId:n,storeLoadOptions:t}},reload(){var e=this.store();return e instanceof by&&e.clearRawDataCache(),this._init(),this.load()},cancel(e){return this._operationManager.cancel(e)},cancelAll(){return this._operationManager.cancelAll()},_addSearchOptions(e){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(e):(e.searchOperation=this._searchOperation,e.searchValue=this._searchValue,e.searchExpr=this._searchExpr))},_createStoreLoadOptions(){var e=ye({},this._storeLoadOptions);return this._addSearchOptions(e),this._paginate&&this._pageSize&&(e.skip=this._pageIndex*this._pageSize,e.take=this._pageSize),e.userData=this._userData,e},_addSearchFilter(e){var n=this._searchValue,t=this._searchOperation,o=this._searchExpr,r=[];!n||(o||(o="this"),Array.isArray(o)||(o=[o]),je(o,function(a,l){r.length&&r.push("or"),r.push([l,t,n])}),e.filter=e.filter?[r,e.filter]:r)},_loadFromStore(e,n){var t=(o,r)=>{if(!this._disposed&&bhe(n)){var a=ye(eS(o,r),e);this._eventsStrategy.fireEvent("customizeLoadResult",[a]),Xn(a.data).done(l=>{a.data=l,this._processStoreLoadResult(a,n)}).fail(n.reject)}};return e.data?(new Rt).resolve(e.data).done(t):this.store().load(e.storeLoadOptions).done(t).fail(n.reject)},_processStoreLoadResult(e,n){var t=e.data,o=e.extra,r=e.storeLoadOptions,a=()=>(this._isLoaded=!0,this._totalCount=isFinite(o.totalCount)?o.totalCount:-1,n.resolve(t,o));this._disposed||(t=this._applyPostProcessFunction(this._applyMapFunction(t)),to(o)||(o={}),this._items=t,(!t.length||!this._paginate||this._pageSize&&t.length{var o=t?Ce(t).length:0;return Ohe(e,o,n)})(e,this._mapFunc,this.group()):e},_applyPostProcessFunction(e){return this._postProcessFunc?this._postProcessFunc(e):e},on(e,n){return this._eventsStrategy.on(e,n),this},off(e,n){return this._eventsStrategy.off(e,n),this}}),Mhe=["filterValues","filterType","fixed","fixedPosition"],OR=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation","added"].concat(Mhe),zet={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},whe=Number.MAX_SAFE_INTEGER||9007199254740991,Wv="groupExpand",v$=/columns\[(\d+)\]\.?/gi,Vet=1,MR={defaultOptions:function(){return{commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:ze.format("dxDataGrid-trueText"),falseText:ze.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,columnWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}},controllers:{columns:Us.Controller.inherit(function(){var e={visible:!0,showInColumnChooser:!0},n={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},t={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},o=function(it){it.filterOperations=it.defaultFilterOperations},r=function(it,vt,xt,$t){var qt={};if(vt){Wi(vt)&&(vt={dataField:vt}),it.setName(vt);var on={};if(vt.command)on=Nu(qt,vt);else{qt=it.getCommonSettings(vt),xt&&xt.name&&xt.dataField&&(vt=ye({},vt,{dataField:xt.dataField}));var un=it._createCalculatedColumnOptions(vt,$t);vt.type||(on={headerId:"dx-col-".concat(Vet++)}),on=Nu(on,e),Nu(on,qt),Nu(on,un),Nu(on,vt),Nu(on,{selector:null})}return vt.filterOperations===vt.defaultFilterOperations&&o(on),on}},a=function it(vt,xt,$t){var qt=[];return xt&&je(xt,function(on,un){var Yn=vt._columnsUserState&&Se(un,vt._columnsUserState[on])&&vt._columnsUserState[on],oi=r(vt,un,Yn,$t);oi&&($t&&(oi.ownerBand=$t),qt.push(oi),oi.columns&&(qt=qt.concat(it(vt,oi.columns,oi)),delete oi.columns,oi.hasColumns=!0))}),qt},l=function(it,vt){for(var xt=[],$t=vt[it];$t;)xt.unshift($t),$t=vt[it=$t.index];return xt},c=function(it,vt,xt){var $t=[],qt=vt[it];if(qt)for(var on=0;on=0&&(xt=["columns[".concat(un,"]")])}else for($t=it._columns.filter(on);$t.length&&-1!==$t.indexOf(vt);)xt.unshift("columns[".concat($t.indexOf(vt),"]")),$t=(vt=qt.columnParentByIndex[vt.index])?it._columns.filter(on):[];return xt.join(".")},b=function it(vt,xt){var $t=0,qt=vt.getChildrenByBandColumn(xt,!0);return je(qt,function(on,un){un.isBand?(un.colspan=un.colspan||it(vt,un.index),$t+=un.colspan||1):$t+=1}),$t},T=function(it){var vt=ol(it);return"string"!==vt&&"boolean"!==vt&&"number"!==vt&&"date"!==vt&&"object"!==vt&&(vt=void 0),vt},L=function(it,vt){switch(it){case"date":case"datetime":return ja.getDateSerializationFormat(vt);case"number":if(Wi(vt))return"string";if(vo(vt))return null}},N=function(it,vt){it.deserializeValue||(yi.isDateType(vt)&&(it.deserializeValue=function(xt){return ja.deserializeDate(xt)},it.serializeValue=function(xt){return Wi(xt)?xt:ja.serializeDate(xt,this.serializationFormat)}),"number"===vt&&(it.deserializeValue=function(xt){var $t=parseFloat(xt);return isNaN($t)?xt:$t},it.serializeValue=function(xt,$t){return"filter"===$t?xt:ce(xt)&&"string"===this.serializationFormat?xt.toString():xt}))},G=function(it){return!0===it.value?this.trueText||"true":!1===it.value?this.falseText||"false":it.valueText||""},Y=function(it){if("boolean"===it)return G},ie=function(it){je(it._columns,function(vt,xt){xt.index=vt}),je(it._columns,function(vt,xt){to(xt.ownerBand)&&(xt.ownerBand=xt.ownerBand.index)}),je(it._commandColumns,function(vt,xt){xt.index=-(vt+1)})},ue=function(it,vt){p2(it._columns,"groupIndex",vt,function(xt){var $t=xt.grouped;return delete xt.grouped,$t})},xe=function(it,vt,xt){var on,$t=to(vt)?vt.rowIndex:null,qt="group"===xt?it.getGroupColumns():"columnChooser"===xt?it.getChooserColumns():it.getVisibleColumns($t);return vt=to(vt)?vt.columnIndex:vt,(on=qt[vt])&&on.type===Wv&&(on=it._columns.filter(un=>on.type===un.type)[0]||on),on&&ce(on.index)?on.index:-1};function Se(it,vt){return it&&vt&&vt.name===(it.name||it.dataField)&&(vt.dataField===it.dataField||it.name)}var Te=function(it){var oi,Bi,go,vt=it._columnsUserState,xt=it._ignoreColumnOptionNames||[],$t=it._columns,qt={},on=[],un=!0,Yn=[];function Ao(Eo,sr){if(sr)for(var _a=0;_a=0||("dataType"===Ra?Eo[Ra]=Eo[Ra]||sr[Ra]:Ki(Ra,Mhe)>=0?Ra in sr&&(Eo[Ra]=sr[Ra]):("selectedFilterOperation"===Ra&&sr[Ra]&&(Eo.defaultSelectedFilterOperation=Eo[Ra]||null),Eo[Ra]=sr[Ra]))}}function Io(Eo,sr){for(var _a=sr.name||sr.dataField,Ra=qt[_a]||0,yc=0;yc=0,Yn.push(Bi);for(go=0;go<$t.length;go++)oi=$t[go],Bi=Yn[go],(it._hasUserState||un)&&Ao(oi,vt[Bi]),Bi>=0&&ce(vt[Bi].initialIndex)?on[Bi]=oi:on.push(oi);var La=!1;for(go=0;go!Ao.command),Bi=0;Biqt[on])?it.reinit():it.columnsChanged.fire(xt))},wt=function(it,vt,xt,$t){if(xt>=0)$t>=0||(vt.lastSortOrder=vt.sortOrder);else{var on=it.option("sorting.mode"),un=vt.lastSortOrder;"single"===on&&it._columns.some(oi=>oi!==vt&&ce(oi.sortIndex))&&(un=void 0),vt.sortOrder=un}},Lt=function(it,vt){var xt=vt.value,$t=vt.optionName,qt=vt.prevValue,un="".concat(vt.fullOptionName,".").concat($t);!zet[$t]&&it._skipProcessingColumnsChange!==un&&(it._skipProcessingColumnsChange=un,it.component._notifyOptionChanged(un,xt,qt),it._skipProcessingColumnsChange=!1)},Kt=function(it,vt,xt,$t,qt){var Yn,oi,Bi,on=Wo(xt),un=vt.index;if(3===arguments.length)return on(vt,{functionsAsIs:!0});var go=on(vt,{functionsAsIs:!0});if(!fa(go,$t)){"groupIndex"===xt||"calculateGroupValue"===xt?(oi="grouping",wt(it,vt,$t,go)):oi="sortIndex"===xt||"sortOrder"===xt||"calculateSortValue"===xt?"sorting":"columns";var Ao=tp(xt);Ao(vt,$t,{functionsAsIs:!0});var Io=p(it,vt);t[xt]&&(Me(it,vt),$t=on(vt)),("name"===xt||"allowEditing"===xt)&&it._checkColumns(),!ce(go)&&!ce($t)&&0!==xt.indexOf("buffer")&&(qt=!0),qt?Le(it):(Ki(xt,OR)<0&&"visibleWidth"!==xt&&(Yn=it.option("columns"),Bi=it.getColumnByPath(Io,Yn),Wi(Bi)&&(Bi=Yn[un]={dataField:Bi}),Bi&&Se(Bi,vt)&&Ao(Bi,$t,{functionsAsIs:!0})),nt(it,oi,xt,un)),Io&&Lt(it,{fullOptionName:Io,optionName:xt,value:$t,prevValue:go})}};function tn(it){return"asc"===it||"desc"===it}var Pn=function(it,vt){var xt=this.dataField.split("."),$t=xt.length-1;this.serializeValue&&(vt=this.serializeValue(vt));for(var qt=0;qt<$t;qt++){var on=xt[qt];it=it[on]=it[on]||{}}it[xt[$t]]=vt},Cn=(it,vt)=>!!it._columns.filter(xt=>xt.type===vt.type).length,Yt=function(it,vt){var xt=it.option("rtlEnabled");return vt.command&&!Cn(it,vt)||!vt.fixedPosition?xt?"right":"left":vt.fixedPosition},nn=function(it,vt,xt,$t){var qt,on=this.getRowCount(),un=it[$t]&&it[$t].rowspan,Yn=vt.filter(oi=>oi.type===xt);return it.forEach((oi,Bi)=>{oi.type===xt&&(qt=Bi,un=it[Bi+1]?it[Bi+1].rowspan:on)}),un>1&&(Yn=Ca(Yn,function(oi){return ye({},oi,{rowspan:un})})),Yn.unshift.apply(Yn,ce(qt)?[qt,1]:[$t,0]),it.splice.apply(it,Yn),un||1},mn=function(it,vt){for(var xt=it?it.toString():"0";xt.length{for(var qt,on,un=vt.slice().map(La=>ye({},La)),Yn=it._isColumnFixing(),oi=xt.slice().map(La=>ye({fixed:Yn},La)),Bi=La=>xt.reduce((qr,Eo,sr)=>Eo.type===($t&&La.type===Wv?"expand":La.type)||Eo.command===La.command?sr:qr,-1),go=La=>La.command!==xt[on].command,Ao=0;Ao=0&&($t?(un[Ao]=ye({fixed:Yn},xt[on],qt),qt.type!==Wv&&(oi=oi.filter(go))):un[Ao]=ye({},qt,xt[on],qt.type===Wv&&{visibleIndex:qt.visibleIndex,index:qt.index,headerId:qt.headerId,allowFixing:0===qt.groupIndex,allowReordering:0===qt.groupIndex,groupIndex:qt.groupIndex}));return vt.length&&$t&&oi.length&&(un=un.concat(oi)),un},ni=(it,vt)=>ce(vt.fixed)||!vt.type?vt.fixed:it._isColumnFixing(),ui=it=>{it._bandColumnsCache=void 0},po=(it,vt)=>{var $t,xt=Wi(vt)&&vt.substr(0,vt.indexOf(":"));if(void 0!==vt)return xt&&(vt=vt.substr(xt.length+1)),xt?$t=it.filter(qt=>""+qt[xt]===vt)[0]:["index","name","dataField","caption"].some(qt=>!!($t=it.filter(on=>on[qt]===vt)[0])),$t};return{_getExpandColumnOptions:function(){return{type:"expand",command:"expand",width:"auto",cssClass:"dx-command-expand",allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1}},_getFirstItems:function(it){var vt,xt=[];return it&&it.items().length>0&&(vt=yi.normalizeSortingInfo(it.group()).length,xt=function $t(qt,on){if(!qt||!on)return qt;for(var un=0;un(it.dataField||it.name)&&(it.allowFiltering||it.allowHeaderFiltering)).map(it=>{var vt=ye(!0,{},it);return ce(vt.dataField)||(vt.dataField=vt.name),vt.filterOperations=it.filterOperations!==it.defaultFilterOperations?vt.filterOperations:null,vt})},getColumnIndexOffset:function(){return 0},_getFixedColumnsCore:function(){var on,un,Yn,it=[],vt=this.getRowCount(),$t={command:"transparent"},qt=0;if(this._isColumnFixing())for(var oi=0;oi<=vt;oi++){on=0,Yn=null,un=null;for(var Bi=this.getVisibleColumns(oi,!0),go=0;go=Bi.length))return[];ce(un)||(un="right"===Yn?0:Bi.length),it[oi]=Bi.slice(0),$t.colspan||($t.colspan=qt),it[oi].splice(un,on,$t)}return it.map(La=>La.map(qr=>{var Eo=Xt({},qr);return Eo.headerId&&(Eo.headerId+="-fixed"),Eo}))},_isColumnFixing:function(){var it=this.option("columnFixing.enabled");return!it&&je(this._columns,function(vt,xt){if(xt.fixed)return it=!0,!1}),it},_getExpandColumnsCore:function(){return this.getGroupColumns()},getExpandColumns:function(){var vt,it=this._getExpandColumnsCore(),xt=it.filter(un=>0===un.groupIndex)[0],$t=xt&&xt.fixed,qt=this._isColumnFixing(),on=this.option("rtlEnabled");return it.length&&(vt=this.columnOption("command:expand")),Ca(it,un=>ye({},un,{visibleWidth:null,minWidth:null,cellTemplate:ce(un.groupIndex)?null:un.cellTemplate,headerCellTemplate:null,fixed:!(!ce(un.groupIndex)||!$t)||qt,fixedPosition:on?"right":"left"},vt,{index:un.index,type:un.type||Wv}))},getBandColumnsCache:function(){if(!this._bandColumnsCache){var it=this._columns,vt={},xt={},$t=!0;it.forEach(function(qt){var on=qt.ownerBand,un=to(on)?on.index:on,Yn=it[un];qt.hasColumns&&($t=!1),qt.colspan&&(qt.colspan=void 0),qt.rowspan&&(qt.rowspan=void 0),Yn?xt[qt.index]=Yn:un=-1,vt[un]=vt[un]||[],vt[un].push(qt)}),this._bandColumnsCache={isPlain:$t,columnChildrenByIndex:vt,columnParentByIndex:xt}}return this._bandColumnsCache},_isColumnVisible:function(it){return it.visible&&this.isParentColumnVisible(it.index)},_compileVisibleColumnsCore:function(){var vt,Bi,it=this,xt=[],$t=0,qt=0,on=it.getRowCount(),un=[],Yn=[],oi=0,go=it.option("rtlEnabled"),Ao=it.getBandColumnsCache(),Io=Bn(it,it.getExpandColumns(),it._columns),La=Bn(it,it._columns,it._commandColumns,!0),qr=function(Eo){var sr;for(sr=0;Eo>1;sr++)Eo/=10;return sr}(La.length);for(function(Eo,sr,_a){for(var Ra,yc=0;yc1&&(Xc.rowspan=Ra)))}}(it,La,Ao),vt=0;vt=0;vt--)Eo=mn(_a[vt].visibleIndex,qr)+Eo;sr[Eo]=sr[Eo]||[],sr[Eo].push(this),oi++}}),je(xt,function(Eo){n1(Yn[Eo],function(_a,Ra){xt[Eo].unshift.apply(xt[Eo],Ra)});var sr=xt[Eo].length;je(un[Eo],function(_a,Ra){n1(Ra,function(yc,Xc){xt[Eo].push.apply(xt[Eo],Xc)})}),qt{if("asc"!==on&&"desc"!==on)return qt;var un="asc"===on?1:-1;return qt.sort(function(Yn,oi){return un*(Yn.caption||"").localeCompare(oi.caption||"")}),qt})((it?this.getColumns():this.getInvisibleColumns()).filter(qt=>qt.showInColumnChooser),this.option("columnChooser.sortOrder"))},allowMoveColumn:function(it,vt,xt,$t){var qt=xe(this,it,xt),on=this._columns[qt];return!(!on||!(on.allowReordering||on.allowGrouping||on.allowHiding))&&(xt===$t?"columnChooser"!==xt&&(it=to(it)?it.columnIndex:it)!==(vt=to(vt)?vt.columnIndex:vt)&&it+1!==vt:"group"===xt&&"columnChooser"!==$t||"group"===$t?on&&on.allowGrouping:"columnChooser"!==xt&&"columnChooser"!==$t||on&&on.allowHiding)},moveColumn:function(it,vt,xt,$t){var on,oi,qt={},un=xe(this,it,xt),Yn=xe(this,vt,$t);if(un>=0){var Bi=this._columns[un];if(vt=to(vt)?vt.columnIndex:vt,oi=Yn>=0?this._columns[Yn].groupIndex:-1,ce(Bi.groupIndex)&&"group"===xt&&(oi>Bi.groupIndex&&oi--,"group"!==$t?qt.groupIndex=void 0:(on=Bi.groupIndex,delete Bi.groupIndex,ue(this))),"group"===$t)qt.groupIndex=function(Io,La,qr){var sr,Eo=Io.getGroupColumns();if(qr>=0)for(sr=0;sr=qr&&Eo[sr].groupIndex++;else for(qr=0,sr=0;sr=0){var go=this._columns[Yn];qt.visibleIndex=!go||Bi.ownerBand!==go.ownerBand||ni(this,Bi)^ni(this,go)?whe:go.visibleIndex}var Ao="columnChooser"!==$t;Bi.visible!==Ao&&(qt.visible=Ao),this.columnOption(Bi.index,qt)}},changeSortOrder:function(it,vt){var xt={},$t=this.option("sorting"),qt=$t&&$t.mode,Yn=this._columns[it];("single"===qt||"multiple"===qt)&&Yn&&Yn.allowSorting&&(("single"===qt||!vt)&&!ce(Yn.groupIndex)&&je(this._columns,function(oi){oi!==it&&this.sortOrder&&(ce(this.groupIndex)||delete this.sortOrder,delete this.sortIndex)}),tn(vt)?Yn.sortOrder!==vt&&(xt.sortOrder=vt):"none"===vt?Yn.sortOrder&&(xt.sortIndex=void 0,xt.sortOrder=void 0):function(oi){if("ctrl"===vt){if(!("sortOrder"in oi)||!("sortIndex"in oi))return!1;xt.sortOrder=void 0,xt.sortIndex=void 0}else xt.sortOrder=ce(oi.groupIndex)||ce(oi.sortIndex)?"desc"===oi.sortOrder?"asc":"desc":"asc"}(Yn)),this.columnOption(Yn.index,xt)},getSortDataSourceParameters:function(it){var vt=[],xt=[];return je(this._columns,function(){(this.dataField||this.selector||this.calculateCellValue)&&ce(this.sortIndex)&&!ce(this.groupIndex)&&(vt[this.sortIndex]=this)}),je(vt,function(){if(tn(this&&this.sortOrder)){var qt={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||it&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(qt.compare=this.sortingMethod.bind(this)),xt.push(qt)}}),xt.length>0?xt:null},getGroupDataSourceParameters:function(it){var vt=[];return je(this.getGroupColumns(),function(){var xt=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||it&&this.selector||this.dataField||this.calculateCellValue;if(xt){var $t={selector:xt,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&($t.compare=this.sortingMethod.bind(this)),vt.push($t)}}),vt.length>0?vt:null},refresh:function(it){var vt=[];return je(this._columns,function(){var xt=this.lookup;if(xt&&!this.calculateDisplayValue){if(it&&xt.valueMap)return;xt.update&&vt.push(xt.update())}}),Xn.apply(K,vt).done(Le.bind(null,this))},_updateColumnOptions:function(it,vt){it.selector=it.selector||function(qt){return it.calculateCellValue(qt)},je(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],function(qt,on){var un=it[on];if(qn(un))if(un.originalCallback)it[on].context.column=it;else{var Yn={column:it};it[on]=function(oi){return un.call(Yn.column,oi)},it[on].originalCallback=un,it[on].columnIndex=vt,it[on].context=Yn}}),Wi(it.calculateDisplayValue)&&(it.displayField=it.calculateDisplayValue,it.calculateDisplayValue=Wo(it.displayField)),it.calculateDisplayValue&&(it.displayValueMap=it.displayValueMap||{}),N(it,it.dataType);var xt=it.lookup;xt&&N(xt,xt.dataType);var $t=xt?xt.dataType:it.dataType;$t&&(it.alignment=it.alignment||function(qt,on){switch(qt){case"number":return"right";case"boolean":return"center";default:return c0(on)}}($t,this.option("rtlEnabled")),it.format=it.format||yi.getFormatByDataType($t),it.customizeText=it.customizeText||Y($t),it.defaultFilterOperations=it.defaultFilterOperations||!xt&&n[$t]||[],ce(it.filterOperations)||o(it),it.defaultFilterOperation=it.filterOperations&&it.filterOperations[0]||"=",it.showEditorAlways=ce(it.showEditorAlways)?it.showEditorAlways:"boolean"===$t&&!it.cellTemplate&&!it.lookup)},updateColumnDataTypes:function(it){var vt=this,xt=vt.option("dateSerializationFormat"),$t=vt._getFirstItems(it),qt=!1;return je(vt._columns,function(on,un){var Yn,oi,Bi,go,Ao,Io=un.lookup;if(yi.isDateType(un.dataType)&&void 0===un.serializationFormat&&(un.serializationFormat=xt),Io&&yi.isDateType(Io.dataType)&&void 0===un.serializationFormat&&(Io.serializationFormat=xt),un.calculateCellValue&&$t.length){if(!un.dataType||Io&&!Io.dataType){for(Yn=0;Yn<$t.length;Yn++)oi=un.calculateCellValue($t[Yn]),un.dataType||(Ao=T(oi),(Bi=Bi||Ao)&&Ao&&Bi!==Ao&&(Bi="string")),Io&&!Io.dataType&&(Ao=T(yi.getDisplayValue(un,oi,$t[Yn])),(go=go||Ao)&&Ao&&go!==Ao&&(go="string"));(Bi||go)&&(Bi&&(un.dataType=Bi),Io&&go&&(Io.dataType=go),qt=!0)}if(void 0===un.serializationFormat||Io&&void 0===Io.serializationFormat)for(Yn=0;Yn<$t.length;Yn++)oi=un.calculateCellValue($t[Yn],!0),void 0===un.serializationFormat&&(un.serializationFormat=L(un.dataType,oi)),Io&&void 0===Io.serializationFormat&&(Io.serializationFormat=L(Io.dataType,Io.calculateCellValue(oi,!0)))}vt._updateColumnOptions(un,on)}),qt},_customizeColumns:function(it){var vt=this.option("customizeColumns");vt&&(it.some(function($t){return to($t.ownerBand)})&&Me(this),vt(it),He(this,a(this,it)))},updateColumns:function(it,vt,xt){if(vt||this.updateSortingGrouping(it),!it||it.isLoaded()){var $t=it?it.sort()||[]:this.getSortDataSourceParameters(),qt=it?it.group()||[]:this.getGroupDataSourceParameters(),on=null==it?void 0:it.lastLoadOptions().filter;xt||this._customizeColumns(this._columns),Me(this);var un=this._columns;return Xn(this.refresh(!0)).always(()=>{this._columns===un&&(this._updateChanges(it,{sorting:$t,grouping:qt,filtering:on}),ut(this))})}},_updateChanges:function(it,vt){it&&(this.updateColumnDataTypes(it),this._dataSourceApplied=!0),yi.equalSortParameters(vt.sorting,this.getSortDataSourceParameters())||nt(this,"sorting"),yi.equalSortParameters(vt.grouping,this.getGroupDataSourceParameters())||nt(this,"grouping");var xt=this.getController("data");xt&&!yi.equalFilterParameters(vt.filtering,xt.getCombinedFilter())&&nt(this,"filtering"),nt(this,"columns")},updateSortingGrouping:function(it,vt){var $t,qt,xt=this,on=function(Ao,Io,La){je(Ao,function(qr,Eo){if(delete Eo[La],Io)for(var sr=0;sr1&&(it[it.length-1]=qt.serializeValue(it[it.length-1],"filter")):qt&&qt.selector&&(it[0]=qt.selector,it[0].columnIndex=qt.index)}else qn(it[0])&&(it[0].columnIndex=xt,it[0].filterValue=$t);for(var on=0;on=0;$t--)if(xt[$t].index===it)return $t;return-1},getVisibleIndexByColumn:function(it,vt){var xt=this.getVisibleColumns(vt),$t=xt.filter(qt=>qt.index===it.index&&qt.command===it.command)[0];return xt.indexOf($t)},getVisibleColumnIndex:function(it,vt){var xt=this.columnOption(it,"index");return this.getVisibleIndex(xt,vt)},addColumn:function(it){var vt=r(this,it),xt=this._columns.length;this._columns.push(vt),vt.isBand&&(this._columns=a(this,this._columns),vt=this._columns[xt]),vt.added=it,Me(this,vt),this.updateColumns(this._dataSource),this._checkColumns()},deleteColumn:function(it){var $t,vt=this.columnOption(it);if(vt&&vt.index>=0){if(($t=this._columns).forEach(qt=>{ce(qt.ownerBand)&&(qt.ownerBand=$t[qt.ownerBand])}),this._columns.splice(vt.index,1),vt.isBand){var xt=this.getChildrenByBandColumn(vt.index).map(qt=>qt.index);this._columns=this._columns.filter(qt=>xt.indexOf(qt.index)<0)}Me(this),this.updateColumns(this._dataSource)}},addCommandColumn:function(it){var vt=this._commandColumns.filter(xt=>xt.command===it.command)[0];vt||this._commandColumns.push(vt=it)},getUserState:function(){var xt,it=this._columns,vt=[];function $t(qt,on){void 0!==it[xt][on]&&(vt[xt][on]=it[xt][on])}for(xt=0;xt{var qt,on=$t.name,un=null===(qt=$t.columns)||void 0===qt?void 0:qt.length,Yn=$t.allowEditing&&($t.dataField||$t.setCellValue)&&!un;on?(it[on]&&xt.push('"'.concat(on,'"')),it[on]=!0):Yn&&(vt=!0)}),xt.length&&Ho.log("E1059",xt.join(", ")),vt&&Ho.log("E1060")},_createCalculatedColumnOptions:function(it,vt){var xt={},$t=it.dataField;if((Array.isArray(it.columns)&&it.columns.length||it.isBand)&&(xt.isBand=!0,$t=null),$t){if(Wi($t)){var qt=Wo($t);xt={caption:bf($t),calculateCellValue:function(on,un){var Yn=qt(on);return this.deserializeValue&&!un?this.deserializeValue(Yn):Yn},setCellValue:Pn,parseValue:function(on){var un,Yn;return"number"===this.dataType?Wi(on)&&this.format?un=function(oi,Bi){var go=ya.parse(oi);if(vo(go)){var Ao=ya.format(go,Bi),Io=ya.format(go,"decimal");if(Ao===oi||Io===oi)return go}}(on.trim(),this.format):ce(on)&&vo(on)&&(un=Number(on)):"boolean"===this.dataType?on===this.trueText?un=!0:on===this.falseText&&(un=!1):yi.isDateType(this.dataType)?(Yn=Ji.parse(on,this.format))&&(un=Yn):un=on,un}}}xt.allowFiltering=!0}else xt.allowFiltering=!!it.calculateFilterExpression;return xt.calculateFilterExpression=function(){return Lv.defaultCalculateFilterExpression.apply(this,arguments)},xt.createFilterExpression=function(on){var un;return this.calculateFilterExpression&&(un=this.calculateFilterExpression.apply(this,arguments)),qn(un)&&(un=[un,"=",!0]),un&&(un.columnIndex=this.index,un.filterValue=on),un},(!$t||!Wi($t))&&ye(!0,xt,{allowSorting:!1,allowGrouping:!1,calculateCellValue:function(){return null}}),vt&&(xt.allowFixing=!1),it.dataType&&(xt.userDataType=it.dataType),it.selectedFilterOperation&&!("defaultSelectedFilterOperation"in xt)&&(xt.defaultSelectedFilterOperation=it.selectedFilterOperation),it.lookup&&(xt.lookup={calculateCellValue:function(on,un){return this.valueExpr&&(on=this.valueMap&&this.valueMap[on]),this.deserializeValue&&!un?this.deserializeValue(on):on},updateValueMap:function(){if(this.valueMap={},this.items)for(var on=Wo(this.valueExpr),un=Wo(this.displayExpr),Yn=0;Yn=0&&l(it,xt.columnParentByIndex);return $t&&je($t,function(qt,on){return vt=vt&&on.visible}),vt},getColumnId:function(it){return it.command&&it.type===Wv?Cn(this,it)?"type:"+it.type:"command:"+it.command:it.index},getCustomizeTextByDataType:Y,getHeaderContentAlignment:function(it){return this.option("rtlEnabled")?"left"===it?"right":"left":it}}}())}};mo.registerModule("columns",{defaultOptions:function(){return ye(!0,{},MR.defaultOptions(),{commonColumnSettings:{allowExporting:!0}})},controllers:MR.controllers});const Phe=mo.Controller.inherit(function(){function e(l,c){if(l&&(l=l.slice(0),c))for(var p=0;p{var Y=G+L,ie=0===G?b.slice(1):[];T.items[Y]=a(T.items[Y],N,p-1,ie)})),T}return c}return{init:function(l,c){var p=this;p._dataSource=l,p._remoteOperations=c||{},p._isLastPage=!l.isLastPage(),p._hasLastPage=!1,p._currentTotalCount=0,p._cachedData={items:{}},p._lastOperationTypes={},p._eventsStrategy=l._eventsStrategy,p._totalCountCorrection=0,p._isLoadingAll=!1,p.changed=_r(),p.loadingChanged=_r(),p.loadError=_r(),p.customizeStoreLoadOptions=_r(),p.changing=_r(),p.pushed=_r(),p._dataChangedHandler=p._handleDataChanged.bind(p),p._customizeStoreLoadOptionsHandler=p._handleCustomizeStoreLoadOptions.bind(p),p._dataLoadedHandler=p._handleDataLoaded.bind(p),p._loadingChangedHandler=p._handleLoadingChanged.bind(p),p._loadErrorHandler=p._handleLoadError.bind(p),p._pushHandler=p._handlePush.bind(p),p._changingHandler=p._handleChanging.bind(p),l.on("changed",p._dataChangedHandler),l.on("customizeStoreLoadOptions",p._customizeStoreLoadOptionsHandler),l.on("customizeLoadResult",p._dataLoadedHandler),l.on("loadingChanged",p._loadingChangedHandler),l.on("loadError",p._loadErrorHandler),l.on("changing",p._changingHandler),l.store().on("beforePush",p._pushHandler),je(l,function(b,T){!p[b]&&qn(T)&&(p[b]=function(){return this._dataSource[b].apply(this._dataSource,arguments)})})},remoteOperations:function(){return this._remoteOperations},dispose:function(l){var c=this._dataSource,p=c.store();c.off("changed",this._dataChangedHandler),c.off("customizeStoreLoadOptions",this._customizeStoreLoadOptionsHandler),c.off("customizeLoadResult",this._dataLoadedHandler),c.off("loadingChanged",this._loadingChangedHandler),c.off("loadError",this._loadErrorHandler),c.off("changing",this._changingHandler),p&&p.off("beforePush",this._pushHandler),l||c.dispose()},refresh:function(l,c){var p=this._dataSource;c.reload&&(this.resetCurrentTotalCount(),this._isLastPage=!p.paginate(),this._hasLastPage=this._isLastPage)},resetCurrentTotalCount:function(){this._currentTotalCount=0,this._totalCountCorrection=0},resetCache:function(){this._cachedStoreData=void 0,this._cachedPagingData=void 0},resetPagesCache:function(){this._cachedData={items:{}}},_needClearStoreDataCache:function(){var l=this.remoteOperations(),c=n(this._lastLoadOptions||{},{});return!Object.keys(l).every(b=>!c[b]||!l[b])},push:function(l,c){var p=this.store();this._needClearStoreDataCache()&&(this._cachedStoreData=void 0),this._cachedPagingData=void 0,this.resetPagesCache(!0),this._cachedStoreData&&_y({keyInfo:p,data:this._cachedStoreData,changes:l}),c||this._applyBatch(l),this.pushed.fire(l)},getDataIndexGetter:function(){if(!this._dataIndexGetter){var l,c,p=this.store();this._dataIndexGetter=b=>{if(!l||c&&c!==this._cachedStoreData){c=this._cachedStoreData||[],l={};for(var L=0;L!0,_applyBatch:function(l,c){var p=this._getKeyInfo(),b=this._dataSource,T=mo.normalizeSortingInfo(this.group()).length,L="reshape"===this.option("editing.refreshMode"),N="virtual"===this.option("scrolling.mode");l=l.filter(function(ue){return!b.paginate()||"insert"!==ue.type||void 0!==ue.index});var G=()=>T?this.itemsCount():this.items().length,Y=G();_y({keyInfo:p,data:this._items,changes:l,groupCount:T,useInsertIndex:!0,skipCopying:!this._needToCopyDataObject()}),_y({keyInfo:p,data:b.items(),changes:l,groupCount:T,useInsertIndex:!0,skipCopying:!this._needToCopyDataObject()}),(this._currentTotalCount>0||(c||!L)&&N)&&(this._totalCountCorrection+=G()-Y),l.splice(0,l.length)},_handlePush:function(l){var{changes:c}=l;this.push(c,!0)},_handleChanging:function(l){this.changing.fire(l),this._applyBatch(l.changes,!0)},_needCleanCacheByOperation:function(l,c){var p=["filtering","sorting","paging"],b=p.indexOf(l);return(b>=0?p.slice(b):[l]).some(L=>c[L])},_customizeRemoteOperations:function(l,c){var p=this._cachedStoreData,b=this._cachedPagingData,T=this._cachedData;(l.storeLoadOptions.filter&&!l.remoteOperations.filtering||l.storeLoadOptions.sort&&!l.remoteOperations.sorting)&&(l.remoteOperations={filtering:l.remoteOperations.filtering,summary:l.remoteOperations.summary}),c.fullReload?(p=void 0,b=void 0,T={items:{}}):(c.reload?(b=void 0,T={items:{}}):c.groupExpanding&&(T={items:{}}),je(c,(L,N)=>{N&&this._needCleanCacheByOperation(L,l.remoteOperations)&&(p=void 0,b=void 0)})),b&&(l.remoteOperations.paging=!1),l.cachedStoreData=p,l.cachedPagingData=b,l.cachedData=T,l.isCustomLoading||(this._cachedStoreData=p,this._cachedPagingData=b,this._cachedData=T)},_handleCustomizeStoreLoadOptions(l){var c;this._handleDataLoading(l),0!==(null===(c=l.data)||void 0===c?void 0:c.length)&&(l.data=t(l,!0)||l.cachedStoreData)},_handleDataLoading:function(l){var c=this._dataSource,p=this._lastLoadOptions;this.customizeStoreLoadOptions.fire(l),l.delay=this.option("loadingTimeout"),l.originalStoreLoadOptions=l.storeLoadOptions,l.remoteOperations=ye({},this.remoteOperations());var b=!this.isLoaded()&&!this._isRefreshing;this.option("integrationOptions.renderedOnServer")&&!this.isLoaded()&&(l.delay=void 0);var T=ye({pageIndex:this.pageIndex(),pageSize:this.pageSize()},l.storeLoadOptions),L=n(T,p,b);if(this._customizeRemoteOperations(l,L),!l.isCustomLoading){var N=this._isRefreshing;l.pageIndex=c.pageIndex(),l.lastLoadOptions=T,l.operationTypes=L,this._loadingOperationTypes=L,this._isRefreshing=!0,Xn(N||this._isRefreshed||this.refresh(l,L)).done(()=>{this._lastOperationId===l.operationId&&(this._isRefreshed=!0,this.load().always(()=>{this._isRefreshed=!1}))}).fail(()=>{c.cancel(l.operationId)}).always(()=>{this._isRefreshing=!1}),c.cancel(this._lastOperationId),this._lastOperationId=l.operationId,this._isRefreshing&&c.cancel(this._lastOperationId)}this._handleDataLoadingCore(l)},_handleDataLoadingCore:function(l){var c=l.remoteOperations;l.loadOptions={};var p=l.cachedData.extra,b={filter:!c.filtering,sort:!c.sorting,group:!c.grouping,summary:!c.summary,skip:!c.paging,take:!c.paging,requireTotalCount:p&&"totalCount"in p||!c.paging};je(l.storeLoadOptions,function(T,L){b[T]&&(l.loadOptions[T]=L,delete l.storeLoadOptions[T])}),p&&(l.extra=p)},_handleDataLoaded:function(l){var c=l.loadOptions,p=l.remoteOperations&&!l.remoteOperations.paging,b=l.cachedData,T=l.storeLoadOptions,L=!1!==this.option("cacheEnabled")&&T,N=L&&!l.isCustomLoading&&b&&(!p||T.group),G=L&&p,Y=G&&!l.isCustomLoading;if(c){p&&(l.skip=c.skip,l.take=c.take,delete c.skip,delete c.take),c.group&&(c.group=l.group||c.group);var ue,xe,ie=mo.normalizeSortingInfo(l.group||T.group||c.group).length;l.cachedDataPartBegin&&(l.data=l.cachedDataPartBegin.concat(l.data)),l.cachedDataPartEnd&&(l.data=l.data.concat(l.cachedDataPartEnd)),N&&t(l)||(G&&l.cachedPagingData?l.data=e(l.cachedPagingData,ie):(Y&&(this._cachedStoreData?l.mergeStoreLoadData&&(l.data=this._cachedStoreData=this._cachedStoreData.concat(l.data)):this._cachedStoreData=e(l.data,mo.normalizeSortingInfo(T.group).length)),new vl(l.data).load(c).done(Se=>{l.data=Se,Y&&(this._cachedPagingData=e(l.data,ie))}).fail(Se=>{l.data=(new Rt).reject(Se)})),c.requireTotalCount&&p&&(l.extra=jo(l.extra)?l.extra:{},l.extra.totalCount=l.data.length),l.extra&&l.extra.totalCount>=0&&(!1===T.requireTotalCount||!1===c.requireTotalCount)&&(l.extra.totalCount=-1),!c.data&&(T.requireTotalCount||(null!==(ue=null===(xe=l.extra)||void 0===xe?void 0:xe.totalCount)&&void 0!==ue?ue:-1)>=0)&&(this._totalCountCorrection=0),this._handleDataLoadedCore(l),N&&(b.extra=b.extra||ye({},l.extra),Xn(l.data).done(Se=>{!function(Te,Me,Le){for(var He,nt,ut,wt,{storeLoadOptions:Lt}=Te,Kt=null!==(He=null!==(nt=Te.skip)&&void 0!==nt?nt:Lt.skip)&&void 0!==He?He:0,tn=null!==(ut=null!==(wt=Te.take)&&void 0!==wt?wt:Lt.take)&&void 0!==ut?ut:0,Pn=0;Pn{l.lastLoadOptions&&(this._lastLoadOptions=l.lastLoadOptions,Object.keys(l.operationTypes).forEach(Se=>{this._lastOperationTypes[Se]=this._lastOperationTypes[Se]||l.operationTypes[Se]}))}),l.storeLoadOptions=l.originalStoreLoadOptions}else this._dataSource.cancel(l.operationId)},_handleDataLoadedCore:function(l){l.remoteOperations&&!l.remoteOperations.paging&&Array.isArray(l.data)&&(void 0!==l.skip&&(l.data=l.data.slice(l.skip)),void 0!==l.take&&(l.data=l.data.slice(0,l.take)))},_handleLoadingChanged:function(l){this.loadingChanged.fire(l)},_handleLoadError:function(l){this.loadError.fire(l),this.changed.fire({changeType:"loadError",error:l})},_loadPageSize:function(){return this.pageSize()},_handleDataChanged:function(l){var c,p=this._dataSource,b=!1,T=!l||ce(l.changeType),L=this.itemsCount();T&&(this._isLastPage=!L||!this._loadPageSize()||L=0?p.pageIndex()>=this.pageCount()&&(p.pageIndex(this.pageCount()-1),this.pageIndex(p.pageIndex()),this.resetPagesCache(),p.load(),b=!0):T&&((c=p.pageIndex()*this.pageSize()+L)>this._currentTotalCount&&(this._currentTotalCount=c,(0===p.pageIndex()||!this.option("scrolling.legacyMode"))&&(this._totalCountCorrection=0)),0===L&&p.pageIndex()>=this.pageCount()&&(p.pageIndex(this.pageCount()-1),"infinite"!==this.option("scrolling.mode")&&(p.load(),b=!0))),b||(this._operationTypes=this._lastOperationTypes,this._lastOperationTypes={},this.component._optionCache={},this.changed.fire(l),this.component._optionCache=void 0)},_scheduleCustomLoadCallbacks:function(l){var c=this;c._isCustomLoading=!0,l.always(function(){c._isCustomLoading=!1})},loadingOperationTypes:function(){return this._loadingOperationTypes},operationTypes:function(){return this._operationTypes},lastLoadOptions:function(){return this._lastLoadOptions||{}},isLastPage:function(){return this._isLastPage},_dataSourceTotalCount:function(){return this._dataSource.totalCount()},totalCount:function(){return parseInt((this._currentTotalCount||this._dataSourceTotalCount())+this._totalCountCorrection)},totalCountCorrection:function(){return this._totalCountCorrection},itemsCount:function(){return this._dataSource.items().length},totalItemsCount:function(){return this.totalCount()},pageSize:function(){var l=this._dataSource;return arguments.length||l.paginate()?l.pageSize.apply(l,arguments):0},pageCount:function(){var l=this.totalItemsCount()-this._totalCountCorrection,c=this.pageSize();return c&&l>0?Math.max(1,Math.ceil(l/c)):1},hasKnownLastPage:function(){return this._hasLastPage||this._dataSource.totalCount()>=0},loadFromStore:function(l,c){var p=this._dataSource,b=new Rt;if(p)return(c=c||p.store()).load(l).done(function(T,L){T&&!Array.isArray(T)&&Array.isArray(T.data)&&(L=T,T=T.data),b.resolve(T,L)}).fail(b.reject),b},isCustomLoading:function(){return!!this._isCustomLoading},load:function(l){var G,Y,c=this,p=c._dataSource,b=new Rt;if(l){var T=p.store(),L=p.loadOptions(),N={storeLoadOptions:l,isCustomLoading:!0};return je(T._customLoadOptions()||[],function(G,Y){Y in N.storeLoadOptions||(N.storeLoadOptions[Y]=L[Y])}),this._isLoadingAll=l.isLoadingAll,c._scheduleCustomLoadCallbacks(b),p._scheduleLoadCallbacks(b),c._handleCustomizeStoreLoadOptions(N),G=function(){if(!p.store())return b.reject("canceled");Xn(N.data||c.loadFromStore(N.storeLoadOptions)).done(function(G,Y){N.data=G,N.extra=Y||{},c._handleDataLoaded(N),l.requireTotalCount&&void 0===N.extra.totalCount&&(N.extra.totalCount=T.totalCount(N.storeLoadOptions)),Xn(N.data,N.extra.totalCount).done(function(ie,ue){N.extra.totalCount=ue,b.resolve(ie,N.extra)}).fail(b.reject)}).fail(b.reject)},Y=c.option("loadingTimeout"),ce(Y)?_f(G,Y):G(),b.fail(function(){c._eventsStrategy.fireEvent("loadError",arguments)}).always(()=>{this._isLoadingAll=!1}).promise()}return p.load()},reload:function(l){return l?this._dataSource.reload():this._dataSource.load()},getCachedStoreData:function(){return this._cachedStoreData}}}());var C$=Phe;const tS={extend:function(e){C$=C$.inherit(e)},create:function(e){return new C$(e)}};var She="_dataSourceOptions",The="_dataSourceChangedHandler",Dhe="_dataSourceLoadErrorHandler",Ihe="_dataSourceLoadingChangedHandler",Ehe="_dataSourceFromUrlLoadMode",khe="_getSpecificDataSourceOption",Ahe="_normalizeDataSource",Net={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var n,t,e=khe in this?this[khe]():this.option("dataSource");this._disposeDataSource(),e&&(e instanceof up?(this._isSharedDataSource=!0,this._dataSource=e):(n=She in this?this[She]():{},t=this._dataSourceType?this._dataSourceType():up,e=Gv(e,{fromUrlLoadMode:Ehe in this&&this[Ehe]()}),this._dataSource=new t(ye(!0,{},n,e))),Ahe in this&&(this._dataSource=this[Ahe](this._dataSource)),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){The in this&&this._addDataSourceChangeHandler(),Dhe in this&&this._addDataSourceLoadErrorHandler(),Ihe in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",function(e){this._ready&&this._ready(!e)}.bind(this))},_addDataSourceChangeHandler:function(){var e=this._dataSource;this._proxiedDataSourceChangedHandler=function(n){this[The](e.items(),n)}.bind(this),e.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this[Dhe].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this[Ihe].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){if(this._dataSource){var e=this._dataSource;e.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():e.load()}},_loadSingle:function(e,n){return e="this"===e?this._dataSource.key()||"this":e,this._dataSource.loadSingle(e,n)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}};const f0=Net;var wR=function(e,n){var t=n(e);if(to(t))try{return JSON.stringify(t)}catch(o){return t}return t},Fet=function(e,n,t,o){return n[t[wR(e,o)]]},Lhe=function(e,n,t,o){var r={},a={},l=0,c=0,p=[];e.forEach(function(Se,Te){var Me=wR(Se,t);r[Me]=Te}),n.forEach(function(Se,Te){var Me=wR(Se,t);a[Me]=Te});for(var b=Math.max(e.length,n.length),T=0;T{t._isPaging=!1,t.pageChanged.fire(c)})}return Rt().resolve().promise()}return a[o]()}return 0},n={init:function(){var t=this;t._items=[],t._cachedProcessedItems=null,t._columnsController=t.getController("columns"),t._isPaging=!1,t._currentOperationTypes=null,t._dataChangedHandler=o=>{t._currentOperationTypes=this._dataSource.operationTypes(),t._handleDataChanged(o),t._currentOperationTypes=null},t._columnsChangedHandler=t._handleColumnsChanged.bind(t),t._loadingChangedHandler=t._handleLoadingChanged.bind(t),t._loadErrorHandler=t._handleLoadError.bind(t),t._customizeStoreLoadOptionsHandler=t._handleCustomizeStoreLoadOptions.bind(t),t._changingHandler=t._handleChanging.bind(t),t._dataPushedHandler=t._handleDataPushed.bind(t),t._columnsController.columnsChanged.add(t._columnsChangedHandler),t._isLoading=!1,t._isCustomLoading=!1,t._repaintChangesOnly=void 0,t._changes=[],t.createAction("onDataErrorOccurred"),t.dataErrorOccurred.add(function(o){return t.executeAction("onDataErrorOccurred",{error:o})}),t._refreshDataSource()},_getPagingOptionValue:function(t){return this._dataSource[t]()},callbackNames:function(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged","pushed"]},callbackFlags:function(t){if("dataErrorOccurred"===t)return{stopOnFalse:!0}},publicMethods:function(){return["beginCustomLoading","endCustomLoading","refresh","filter","clearFilter","getCombinedFilter","keyOf","byKey","getDataByKeys","pageIndex","pageSize","pageCount","totalCount","_disposeDataSource","getKeyByRowIndex","getRowIndexByKey","getDataSource","getVisibleRows","repaintRows"]},reset:function(){this._columnsController.reset(),this._items=[],this._refreshDataSource()},_handleDataSourceChange(t){if(t.value===t.previousValue||this.option("columns")&&Array.isArray(t.value)&&Array.isArray(t.previousValue)){if(t.value!==t.previousValue){var r=this.store();r&&(r._array=t.value)}return this.needToRefreshOnDataSourceChange(t)&&this.refresh(this.option("repaintChangesOnly")),!0}return!1},needToRefreshOnDataSourceChange:function(t){return!0},optionChanged:function(t){var r,a,o=this;function l(){t.handled=!0}if("dataSource"===t.name&&t.name===t.fullName&&this._handleDataSourceChange(t))l();else switch(t.name){case"cacheEnabled":case"repaintChangesOnly":case"highlightChanges":case"loadingTimeout":l();break;case"remoteOperations":case"keyExpr":case"dataSource":case"scrolling":l(),o.reset();break;case"paging":if((r=o.dataSource())&&(a=o._setPagingOptions(r))){var c=r.pageIndex();this._isPaging=a.isPageIndexChanged,r.load().done(()=>{this._isPaging=!1,o.pageChanged.fire(c)})}l();break;case"rtlEnabled":o.reset();break;case"columns":(r=o.dataSource())&&r.isLoading()&&t.name===t.fullName&&(this._useSortingGroupingFromColumns=!0,r.load());break;default:o.callBase(t)}},isReady:function(){return!this._isLoading},getDataSource:function(){return this._dataSource&&this._dataSource._dataSource},getCombinedFilter:function(t){return this.combinedFilter(void 0,t)},combinedFilter:function(t,o){var r=this._dataSource,a=this._columnsController;if(r){void 0===t&&(t=r.filter());var l=this._calculateAdditionalFilter();l&&(a.isDataSourceApplied()||a.isAllDataTypesDefined())&&(t=yi.combineFilters([l,t])),t=a.updateFilter(t,o||r.remoteOperations().filtering)}return t},waitReady:function(){return this._updateLockCount?(this._readyDeferred=new Rt,this._readyDeferred):Xn()},_endUpdateCore:function(){var t=this._changes;if(t.length){this._changes=[];var o=t.every(r=>r.repaintChangesOnly);this.updateItems(1===t.length?t[0]:{repaintChangesOnly:o})}this._readyDeferred&&(this._readyDeferred.resolve(),this._readyDeferred=null)},_handleCustomizeStoreLoadOptions:function(t){var o,r=this._columnsController,a=this._dataSource,l=t.storeLoadOptions;t.isCustomLoading&&!l.isLoadingAll||(l.filter=this.combinedFilter(l.filter),1===(null===(o=l.filter)||void 0===o?void 0:o.length)&&"!"===l.filter[0]&&(t.data=[],t.extra=t.extra||{},t.extra.totalCount=0),r.isDataSourceApplied()||r.updateColumnDataTypes(a),this._columnsUpdating=!0,r.updateSortingGrouping(a,!this._useSortingGroupingFromColumns),this._columnsUpdating=!1,l.sort=r.getSortDataSourceParameters(),l.group=r.getGroupDataSourceParameters(),a.sort(l.sort),a.group(l.group),l.sort=r.getSortDataSourceParameters(!a.remoteOperations().sorting),t.group=r.getGroupDataSourceParameters(!a.remoteOperations().grouping))},_handleColumnsChanged:function(t){var l,c,p,o=this,r=t.changeTypes,a=t.optionNames;if(r.sorting||r.grouping)o._dataSource&&!o._columnsUpdating&&(o._dataSource.group(o._columnsController.getGroupDataSourceParameters()),o._dataSource.sort(o._columnsController.getSortDataSourceParameters()),o.reload());else if(r.columns&&(c=o._columnsController.columnOption(t.columnIndex,"filterValues"),(a.filterValues||a.filterType&&Array.isArray(c)||a.filterValue||a.selectedFilterOperation||a.allowFiltering)&&(l=o._columnsController.columnOption(t.columnIndex,"filterValue"),(Array.isArray(c)||void 0===t.columnIndex||ce(l)||!a.selectedFilterOperation||a.filterValue)&&(o._applyFilter(),p=!0)),!o._needApplyFilter&&!yi.checkChanges(a,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])&&o._columnsController.columnsChanged.add(function T(L){var N;o._columnsController.columnsChanged.remove(T),o.updateItems({repaintChangesOnly:!1,virtualColumnsScrolling:null==L||null===(N=L.changeTypes)||void 0===N?void 0:N.virtualColumnsScrolling})}),ce(a.visible))){var b=o._columnsController.columnOption(t.columnIndex);b&&(ce(b.filterValue)||ce(b.filterValues))&&(o._applyFilter(),p=!0)}!p&&r.filtering&&o.reload()},_handleDataChanged:function(t){var o=this,r=o._dataSource,a=o._columnsController,l=!1;this._useSortingGroupingFromColumns=!1,r&&!o._isDataSourceApplying&&(o._isDataSourceApplying=!0,Xn(o._columnsController.applyDataSource(r)).done(function(){o._isLoading&&o._handleLoadingChanged(!1),l&&t&&t.isDelayed&&(t.isDelayed=!1),o._isDataSourceApplying=!1;var p,c=o._needApplyFilter;o._needApplyFilter=!1,c&&!o._isAllDataTypesDefined&&(p=o._calculateAdditionalFilter())&&p.length?(Ho.log("W1005",o.component.NAME),o._applyFilter()):o.updateItems(t,!0)}).fail(function(){o._isDataSourceApplying=!1}),o._isDataSourceApplying&&(l=!0,o._handleLoadingChanged(!0)),o._needApplyFilter=!o._columnsController.isDataSourceApplied(),o._isAllDataTypesDefined=a.isAllDataTypesDefined())},_handleLoadingChanged:function(t){this._isLoading=t,this._fireLoadingChanged()},_handleLoadError:function(t){this.dataErrorOccurred.fire(t)},_handleDataPushed:function(t){this.pushed.fire(t)},fireError:function(){this.dataErrorOccurred.fire(Ho.Error.apply(Ho,arguments))},_setPagingOptions:function(t){var o=this.option("paging.pageIndex"),r=this.option("paging.pageSize"),a=this.option("paging.enabled"),l=this.option("scrolling.mode"),c="infinite"===l,b=a||"virtual"===l||c,T=!1,L=!1,N=!1;return t.requireTotalCount(!c),void 0!==a&&t.paginate()!==b&&(t.paginate(b),T=!0),void 0!==r&&t.pageSize()!==r&&(t.pageSize(r),L=!0),void 0!==o&&t.pageIndex()!==o&&(t.pageIndex(o),N=!0),!!(T||L||N)&&{isPaginateChanged:T,isPageSizeChanged:L,isPageIndexChanged:N}},_getSpecificDataSourceOption:function(){var t=this.option("dataSource");return Array.isArray(t)?{store:{type:"array",data:t,key:this.option("keyExpr")}}:t},_initDataSource:function(){var t=this._dataSource;this.callBase();var o=this._dataSource;if(this._useSortingGroupingFromColumns=!0,this._cachedProcessedItems=null,o){var r=this._setPagingOptions(o);this._isPaging=null==r?void 0:r.isPageIndexChanged,this.setDataSource(o)}else t&&this.updateItems()},_loadDataSource:function(){var t=this,o=t._dataSource,r=new Rt;return Xn(this._columnsController.refresh(!0)).always(function(){o?o.load().done(function(){t._isPaging=!1,r.resolve.apply(r,arguments)}).fail(r.reject):r.resolve()}),r.promise()},_beforeProcessItems:function(t){return t.slice(0)},getRowIndexDelta:function(){return 0},_processItems:function(t,o){var r=this,a=r.getRowIndexDelta(),l=o.changeType,c=r._columnsController.getVisibleColumns(null,"loadingAll"===l),p=r._items,b="append"===l&&p.length>0?p[p.length-1]:null,L={visibleColumns:c,dataIndex:ce(null==b?void 0:b.dataIndex)?b.dataIndex+1:0},N=[];return je(t,function(G,Y){ce(Y)&&(L.rowIndex=G-a,Y=r._processItem(Y,L),N.push(Y))}),N},_processItem:function(t,o){return t=this._generateDataItem(t,o),(t=this._processDataItem(t,o)).dataIndex=o.dataIndex++,t},_generateDataItem:function(t){return{rowType:"data",data:t,key:this.keyOf(t)}},_processDataItem:function(t,o){return t.values=this.generateDataValues(t.data,o.visibleColumns),t},generateDataValues:function(t,o,r){for(var l,a=[],c=0;c{var T;return"groupExpand"!==(null===(T=p.column)||void 0===T?void 0:T.type)?b:-1}).filter(p=>p>=0))}return l},_partialUpdateRow:function(t,o,r,a){var l,c=this._getChangedColumnIndices(t,o,r,a);return null!==(l=c)&&void 0!==l&&l.length&&this.option("dataRowTemplate")&&(c=void 0),c&&(t.cells&&t.cells.forEach(function(p,b){!(c.indexOf(b)>=0)&&p&&p.update&&p.update(o)}),o.update=t.update,o.watch=t.watch,o.cells=t.cells,a&&(o.oldValues=t.values),t.update&&t.update(o)),c},_isItemEquals:function(t,o){if(JSON.stringify(t.values)!==JSON.stringify(o.values)||["modified","isNewRow","removed","isEditing"].some(L=>t[L]!==o[L]))return!1;if("group"===t.rowType||"groupFooter"===t.rowType){var r,a,l,c,p=t.isExpanded===o.isExpanded,b=JSON.stringify(t.summaryCells)===JSON.stringify(o.summaryCells),T=(null===(r=t.data)||void 0===r?void 0:r.isContinuation)===(null===(a=o.data)||void 0===a?void 0:a.isContinuation)&&(null===(l=t.data)||void 0===l?void 0:l.isContinuationOnNextPage)===(null===(c=o.data)||void 0===c?void 0:c.isContinuationOnNextPage);if(!p||!b||!T)return!1}return!0},_applyChangesOnly:function(t){var o,r=[],a=[],l=[],c=[],p={},b=null===(o=null==t?void 0:t.isLiveUpdate)||void 0===o||o;function T(Y){if(Y)return Y.rowType+","+JSON.stringify(Y.key)}var L=this._items,N=L.slice();t.items.forEach(function(Y,ie){var ue=T(Y);p[ue]=ie,Y.rowIndex=ie});var G=Lhe(N,t.items,T,(Y,ie)=>!!this._isItemEquals(Y,ie)&&(Y.cells&&(Y.update&&Y.update(ie),Y.cells.forEach(function(ue){ue&&ue.update&&ue.update(ie,!0)})),!0));G?(G.forEach(Y=>{switch(Y.type){case"update":var ie=Y.index,ue=Y.data,Se=this._partialUpdateRow(Y.oldItem,ue,ie,b);r.push(ie),l.push("update"),c.push(ue),L[ie]=ue,a.push(Se);break;case"insert":r.push(Y.index),l.push("insert"),c.push(Y.data),a.push(void 0),L.splice(Y.index,0,Y.data);break;case"remove":r.push(Y.index),l.push("remove"),L.splice(Y.index,1),c.push(Y.oldItem),a.push(void 0)}}),t.repaintChangesOnly=!0,t.changeType="update",t.rowIndices=r,t.columnIndices=a,t.changeTypes=l,t.items=c,N.length&&(t.isLiveUpdate=!0),this._correctRowIndices(Y=>{var ie=this._rowIndexOffset||0,ue=this.getRowIndexOffset(),Se=T(N[Y-ie]),Te=p[Se];return Te>=0?Te+ue-Y:0})):this._applyChangeFull(t)},_correctRowIndices:gt,_afterProcessItems:function(t){return t},_updateItemsCore:function(t){var o,r=this._dataSource;if(t.changeType=t.changeType||"refresh",r){var l=this._cachedProcessedItems;t.useProcessedItemsCache&&l?o=l:(o=t.items||r.items(),o=this._beforeProcessItems(o),o=this._processItems(o,t),this._cachedProcessedItems=o),o=this._afterProcessItems(o,t),t.items=o;var c=this._items.length===o.length&&this._items;this._applyChange(t);var p=this.getRowIndexDelta();je(this._items,(b,T)=>{T.rowIndex=b-p,c&&(T.cells=c[b].cells||[]);var L=o[b];L&&(T.loadIndex=L.loadIndex)}),this._rowIndexOffset=this.getRowIndexOffset()}else this._items=[]},_handleChanging:function(t){var o=this.getVisibleRows();this.dataSource()&&t.changes.forEach(function(a){if("insert"===a.type&&a.index>=0){for(var l=0,c=0;c{this.changed.fire(t)})},isLoading:function(){return this._isLoading||this._isCustomLoading},_fireLoadingChanged:function(){this.loadingChanged.fire(this.isLoading(),this._loadingText)},_calculateAdditionalFilter:function(){return null},_applyFilter:function(){var t=this._dataSource;if(t)return t.pageIndex(0),this._isFilterApplying=!0,this.reload().done(()=>{this._isFilterApplying&&this.pageChanged.fire()})},resetFilterApplying:function(){this._isFilterApplying=!1},filter:function(t){var o=this._dataSource,r=o&&o.filter();if(0===arguments.length)return r;t=arguments.length>1?Array.prototype.slice.call(arguments,0):t,!yi.equalFilterParameters(r,t)&&(o&&o.filter(t),this._applyFilter())},clearFilter:function(t){var o=this,r=o._columnsController,a=function(l){for(var c=r.columnCount(),p=0;p0)switch(t){case"dataSource":o.filter(null);break;case"search":o.searchByText("");break;case"header":a("filterValues");break;case"row":a("filterValue")}else o.filter(null),o.searchByText(""),a("filterValue"),a("bufferedFilterValue"),a("filterValues");o.component.endUpdate()},_fireDataSourceChanged:function(){var t=this;t.changed.add(function o(){t.changed.remove(o),t.dataSourceChanged.fire()})},_getDataSourceAdapter:gt,_createDataSourceAdapterCore:function(t,o){var a=this._getDataSourceAdapter().create(this.component);return a.init(t,o),a},isLocalStore:function(t){return(t=t||this.store())instanceof vl},isCustomStore:function(t){return(t=t||this.store())instanceof by},_createDataSourceAdapter:function(t){var o=this.option("remoteOperations"),r=t.store(),a={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return o&&o.groupPaging&&(o=ye({},a,o)),"auto"===o&&(o=this.isLocalStore(r)||this.isCustomStore(r)?{}:{filtering:!0,sorting:!0,paging:!0}),!0===o&&(o=a),this._createDataSourceAdapterCore(t,o)},setDataSource:function(t){var o=this._dataSource;!t&&o&&(o.cancelAll(),o.changed.remove(this._dataChangedHandler),o.loadingChanged.remove(this._loadingChangedHandler),o.loadError.remove(this._loadErrorHandler),o.customizeStoreLoadOptions.remove(this._customizeStoreLoadOptionsHandler),o.changing.remove(this._changingHandler),o.pushed.remove(this._dataPushedHandler),o.dispose(this._isSharedDataSource)),t&&(t=this._createDataSourceAdapter(t)),this._dataSource=t,t&&(this._fireDataSourceChanged(),this._isLoading=!t.isLoaded(),this._needApplyFilter=!0,this._isAllDataTypesDefined=this._columnsController.isAllDataTypesDefined(),t.changed.add(this._dataChangedHandler),t.loadingChanged.add(this._loadingChangedHandler),t.loadError.add(this._loadErrorHandler),t.customizeStoreLoadOptions.add(this._customizeStoreLoadOptionsHandler),t.changing.add(this._changingHandler),t.pushed.add(this._dataPushedHandler))},items:function(){return this._items},isEmpty:function(){return!this.items().length},pageCount:function(){return this._dataSource?this._dataSource.pageCount():1},dataSource:function(){return this._dataSource},store:function(){var t=this._dataSource;return t&&t.store()},loadAll:function(t){var o=this,r=new Rt,a=o._dataSource;if(a)if(t){var l={data:t,isCustomLoading:!0,storeLoadOptions:{isLoadingAll:!0},loadOptions:{filter:o.getCombinedFilter(),group:a.group(),sort:a.sort()}};a._handleDataLoaded(l),Xn(l.data).done(function(p){p=o._beforeProcessItems(p),r.resolve(o._processItems(p,{changeType:"loadingAll"}),l.extra&&l.extra.summary)}).fail(r.reject)}else if(a.isLoading())r.reject();else{var c=ye({},a.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});a.load(c).done(function(p,b){p=o._beforeProcessItems(p),p=o._processItems(p,{changeType:"loadingAll"}),r.resolve(p,b&&b.summary)}).fail(r.reject)}else r.resolve([]);return r},getKeyByRowIndex:function(t,o){var r=this.items(o)[t];if(r)return r.key},getRowIndexByKey:function(t,o){return yi.getIndexByKey(t,this.items(o))},keyOf:function(t){var o=this.store();if(o)return o.keyOf(t)},byKey:function(t){var a,o=this.store(),r=this.getRowIndexByKey(t);if(o)return r>=0&&(a=(new Rt).resolve(this.items()[r].data)),a||o.byKey(t)},key:function(){var t=this.store();if(t)return t.key()},getRowIndexOffset:function(){return 0},getDataByKeys:function(t){var o=this,r=new Rt,a=[],l=[];return je(t,function(c,p){a.push(o.byKey(p).done(function(b){l[c]=b}))}),Xn.apply(K,a).always(function(){r.resolve(l)}),r},pageIndex:function(t){return e(this,"pageIndex",t)},pageSize:function(t){return e(this,"pageSize",t)},beginCustomLoading:function(t){this._isCustomLoading=!0,this._loadingText=t||"",this._fireLoadingChanged()},endCustomLoading:function(){this._isCustomLoading=!1,this._loadingText=void 0,this._fireLoadingChanged()},refresh:function(t){!0===t?t={reload:!0,changesOnly:!0}:t||(t={lookup:!0,selection:!0,reload:!0});var o=this,r=o.getDataSource(),a=t.changesOnly,l=new Rt,c=function(){o._repaintChangesOnly=!!a};return Xn(!t.lookup||o._columnsController.refresh()).always(function(){t.load||t.reload?(r&&r.on("customizeLoadResult",c),Xn(o.reload(t.reload,a)).always(function(){r&&r.off("customizeLoadResult",c),o._repaintChangesOnly=void 0}).done(l.resolve).fail(l.reject)):(o.updateItems({repaintChangesOnly:t.changesOnly}),l.resolve())}),l.promise()},getVisibleRows:function(){return this.items()},_disposeDataSource:function(){this.setDataSource(null)},dispose:function(){this._disposeDataSource(),this.callBase.apply(this,arguments)},repaintRows:function(t,o){((t=Array.isArray(t)?t:[t]).length>1||ce(t[0]))&&this.updateItems({changeType:"update",rowIndices:t,isFullUpdate:!o})},skipProcessingPagingChange:function(t){return this._skipProcessingPagingChange&&("paging.pageIndex"===t||"paging.pageSize"===t)},getUserState:function(){return{searchText:this.option("searchPanel.text"),pageIndex:this.pageIndex(),pageSize:this.pageSize()}},getCachedStoreData:function(){return this._dataSource&&this._dataSource.getCachedStoreData()},isLastPageLoaded:function(){return this.pageIndex()===this.pageCount()-1}};return yi.proxyMethod(n,"load"),yi.proxyMethod(n,"reload"),yi.proxyMethod(n,"push"),yi.proxyMethod(n,"itemsCount",0),yi.proxyMethod(n,"totalItemsCount",0),yi.proxyMethod(n,"hasKnownLastPage",!0),yi.proxyMethod(n,"isLoaded",!0),yi.proxyMethod(n,"totalCount",0),n}())}},jet=PR.controllers.data.inherit({_getDataSourceAdapter:function(){return tS},_getSpecificDataSourceOption:function(){var e=this.option("dataSource");return e&&!Array.isArray(e)&&this.option("keyExpr")&&Ho.log("W1011"),this.callBase()}});mo.registerModule("data",{defaultOptions:PR.defaultOptions,controllers:{data:jet}});var Bhe="dx-sort-none",zhe="dx-sort-index-icon";const y$={_applyColumnState:function(e){var n,t,o=this.option("sorting.mode"),r=e.rootElement,a=e.column,l=this._getIndicatorContainer(r);if("sort"===e.name){r.find(".dx-sort").remove(),!l.children().length&&l.remove();var c="none"!==o&&a.allowSorting;return ce(a.groupIndex)||!c&&!ce(a.sortOrder)||(n="asc"===a.sortOrder?"ascending":"descending",t=this.callBase(e).toggleClass("dx-sort-up","asc"===a.sortOrder).toggleClass("dx-sort-down","desc"===a.sortOrder),this.getController&&!!this.getController("columns").columnOption("sortIndex:1")&&this.option("sorting.showSortIndexes")&&a.sortIndex>=0&&(K("").addClass(zhe).text(a.sortIndex+1).appendTo(t),t.addClass("dx-sort-index")),c&&e.rootElement.addClass(this.addWidgetPrefix("action"))),ce(a.sortOrder)?this.setAria("sort",n,r):this.setAria("sort","none",r),t}return this.callBase(e)},_getIndicatorClassName:function(e){return"sort"===e?"dx-sort":"sortIndex"===e?zhe:this.callBase(e)},_renderIndicator:function(e){var n=e.column,t=e.container,o=e.indicator;if("sort"===e.name){var r=this.option("rtlEnabled");if(ce(n.sortOrder)||o&&o.addClass(Bhe),t.children().length&&(!r&&"left"===e.columnAlignment||r&&"right"===e.columnAlignment))return void t.prepend(o)}this.callBase(e)},_updateIndicator:function(e,n,t){if("sort"!==t||!ce(n.groupIndex))return this.callBase.apply(this,arguments)},_getIndicatorElements:function(e,n){var t=this.callBase(e);return n?t:t&&t.not("."+Bhe)}};var $et=ye({},y$,{_createRow(e){var n=this.callBase(e);return"header"===e.rowType&&We.on(n,_n(Go,"dxDataGridColumnHeadersView"),"td",this.createAction(t=>{this._processHeaderAction(t.event,n)})),n},_processHeaderAction:function(e,n){if(K(e.currentTarget).parent().get(0)===n.get(0)){var t=this,o=null,r=K(e.currentTarget),a=r.parent().index(),l=-1;[].slice.call(t.getCellElements(a)).some((N,G)=>{if(N===r.get(0))return l=G,!0});var p=t._columnsController.getVisibleColumns(a)[l],b=t.getController("editing"),T=t.option("editing.mode");b&&b.isEditing()&&("batch"===T||"cell"===T)||!t._isSortableElement(K(e.target))||p&&!ce(p.groupIndex)&&!p.command&&(e.shiftKey?o="shift":Fs(e)&&(o="ctrl"),setTimeout(()=>{t._columnsController.changeSortOrder(p.index,o)}))}},_renderCellContent(e,n){var t=n.column;!t.command&&"header"===n.rowType&&this._applyColumnState({name:"sort",rootElement:e,column:t,showColumnLines:this.option("showColumnLines")}),this.callBase.apply(this,arguments)},_columnOptionChanged(e){var n=e.changeTypes;1===n.length&&n.sorting?this._updateIndicators("sort"):this.callBase(e)},optionChanged(e){"sorting"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}}),Zet=ye({},y$,{_createGroupPanelItem(e,n){var t=this,o=t.callBase(...arguments);return We.on(o,_n(Go,"dxDataGridHeaderPanel"),t.createAction(()=>{t._processGroupItemAction(n.index)})),t._applyColumnState({name:"sort",rootElement:o,column:{alignment:t.option("rtlEnabled")?"right":"left",allowSorting:n.allowSorting,sortOrder:"desc"===n.sortOrder?"desc":"asc"},showColumnLines:!0}),o},_processGroupItemAction(e){setTimeout(()=>this.getController("columns").changeSortOrder(e))},optionChanged(e){"sorting"===e.name?(this._invalidate(),e.handled=!0):this.callBase(e)}}),Hhe={defaultOptions:()=>({sorting:{mode:"single",ascendingText:ze.format("dxDataGrid-sortingAscendingText"),descendingText:ze.format("dxDataGrid-sortingDescendingText"),clearText:ze.format("dxDataGrid-sortingClearText"),showSortIndexes:!0}}),extenders:{views:{columnHeadersView:$et,headerPanel:Zet}}};mo.registerModule("sorting",Hhe);var Jet=hr.abstract,SR=ci.real(),b$="dxscrollinit",x$="dxscrollstart",O$="dxscroll",M$="dxscrollend",w$="dxscrollstop",P$="dxscrollcancel",Nhe=hr.inherit(function(){var e=_n("scroll","dxScrollEmitter");return{ctor:function(n){this._element=n,this._locked=!1,this._proxiedScroll=t=>{this._disposed||this._scroll(t)},We.on(this._element,e,this._proxiedScroll)},_scroll:Jet,check:function(n,t){this._locked&&t()},dispose:function(){this._disposed=!0,We.off(this._element,e,this._proxiedScroll)}}}()),Fhe=Nhe.inherit({ctor:function(e,n){this.callBase(e),this._timeout=n},_scroll:function(){this._prepare(),this._forget()},_prepare:function(){this._timer&&this._clearTimer(),this._locked=!0},_clearTimer:function(){clearTimeout(this._timer),this._locked=!1,this._timer=null},_forget:function(){var e=this;this._timer=setTimeout(function(){e._clearTimer()},this._timeout)},dispose:function(){this.callBase(),this._clearTimer()}}),Uhe=Fhe.inherit({ctor:function(e){this.callBase(e,400),this._lastWheelDirection=null},check:function(e,n){this._checkDirectionChanged(e),this.callBase(e,n)},_checkDirectionChanged:function(e){if(Pc(e)){var n=e.shiftKey||!1,t=null!==this._lastWheelDirection&&n!==this._lastWheelDirection;this._lastWheelDirection=n,this._locked=this._locked&&!t}else this._lastWheelDirection=null}}),S$=Fhe.inherit({ctor:function(e){this.callBase(e,400)}});!function(){var e=SR.ios&&Ph(SR.version,[8])>=0,n=SR.android&&Ph(SR.version,[5])>=0;!e&&!n||(S$=Nhe.inherit({_scroll:function(){this._locked=!0;var t=this;l0(this._scrollFrame),this._scrollFrame=kv(function(){t._locked=!1})},check:function(t,o){l0(this._scrollFrame),l0(this._checkFrame);var r=this,a=this.callBase;this._checkFrame=kv(function(){a.call(r,t,o),r._locked=!1})},dispose:function(){this.callBase(),l0(this._scrollFrame),l0(this._checkFrame)}}))}();var Qet=N5.inherit(function(){var e=Math.round(16.666666666666668);return{ctor:function(n){this.callBase.apply(this,arguments),this.direction="both",this._pointerLocker=new S$(n),this._wheelLocker=new Uhe(n)},validate:function(){return!0},configure:function(n){n.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new S$(n.scrollTarget),this._wheelLocker=new Uhe(n.scrollTarget)),this.callBase(n)},_init:function(n){this._wheelLocker.check(n,function(){Pc(n)&&this._accept(n)}.bind(this)),this._pointerLocker.check(n,function(){var t=this.isNative&&mg(n);!Pc(n)&&!t&&this._accept(n)}.bind(this)),this._fireEvent(b$,n),this._prevEventData=es(n)},move:function(n){this.callBase.apply(this,arguments),n.isScrollingEvent=this.isNative||n.isScrollingEvent},_start:function(n){this._savedEventData=es(n),this._fireEvent(x$,n),this._prevEventData=es(n)},_move:function(n){var t=es(n);this._fireEvent(O$,n,{delta:f1(this._prevEventData,t)}),f1(this._savedEventData,t).time>200&&(this._savedEventData=this._prevEventData),this._prevEventData=es(n)},_end:function(n){var t=f1(this._prevEventData,es(n)),o={x:0,y:0};if(!Pc(n)&&t.time<100){var r=f1(this._savedEventData,this._prevEventData),a=e/r.time;o={x:r.x*a,y:r.y*a}}this._fireEvent(M$,n,{velocity:o})},_stop:function(n){this._fireEvent(w$,n)},cancel:function(n){this.callBase.apply(this,arguments),this._fireEvent(P$,n)},dispose:function(){this.callBase.apply(this,arguments),this._pointerLocker.dispose(),this._wheelLocker.dispose()},_clearSelection:function(){if(!this.isNative)return this.callBase.apply(this,arguments)},_toggleGestureCover:function(){if(!this.isNative)return this.callBase.apply(this,arguments)}}}());If({emitter:Qet,events:[b$,x$,O$,M$,w$,P$]});const Gp_init=b$,jhe=hr.inherit({ctor:function(){this._finished=!0,this._stopped=!1,this._proxiedStepCore=this._stepCore.bind(this)},start:function(){this._stopped=!1,this._finished=!1,this._stepCore()},stop:function(){this._stopped=!0,l0(this._stepAnimationFrame)},_stepCore:function(){if(!this._isStopped())return this._isFinished()?(this._finished=!0,void this._complete()):(this._step(),void(this._stepAnimationFrame=kv(this._proxiedStepCore)));this._stop()},_step:hr.abstract,_isFinished:gt,_stop:gt,_complete:gt,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}});var T$="dxScrollbar",Ghe="dx-scrollable-scrollbar",Whe="".concat(Ghe,"-active"),Khe="horizontal",$5=null,rtt=br.inherit({_getDefaultOptions:function(){return ye(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:"onScroll",containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass("dx-scrollbar-hoverable",this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=K("
").addClass("dx-scrollable-scroll"),K("
").addClass("dx-scrollable-scroll-content").appendTo(this._$thumb),this.$element().addClass(Ghe).append(this._$thumb)},isThumb:function(e){return!!this.$element().find(e).length},_isHoverMode:function(){var e=this.option("visibilityMode");return("onHover"===e||"always"===e)&&this.option("expandable")},_renderDirection:function(){var e=this.option("direction");this.$element().addClass("dx-scrollbar-"+e),this._dimension=e===Khe?"width":"height",this._prop=e===Khe?"left":"top"},_attachPointerDownHandler:function(){We.on(this._$thumb,_n(io.down,T$),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(Whe),$5=this},feedbackOff:function(){this.$element().removeClass(Whe),$5=null},cursorEnter:function(){this._isHovered=!0,this._needScrollbar()&&this.option("visible",!0)},cursorLeave:function(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions:function(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility:function(e){"onScroll"===this.option("visibilityMode")&&this._$thumb.css("opacity"),e=this._adjustVisibility(e),this.option().visible=e,this._$thumb.toggleClass("dx-state-invisible",!e)},_adjustVisibility:function(e){if(this._baseContainerToContentRatio&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case"onScroll":break;case"onHover":e=e||!!this._isHovered;break;case"never":e=!1;break;case"always":e=!0}return e},moveTo:function(e){if(!this._isHidden()){jo(e)&&(e=e[this._prop]||0);var n={};n[this._prop]=this._calculateScrollBarPosition(e),Zr(this._$thumb,n)}},_calculateScrollBarPosition:function(e){return-e*this._thumbRatio},_update:function(){var e=Math.round(this.option("containerSize")),n=Math.round(this.option("contentSize")),t=Math.round(this.option("baseContainerSize")),o=Math.round(this.option("baseContentSize"));isNaN(t)&&(t=e,o=n),this._baseContainerToContentRatio=o?t/o:t,this._realContainerToContentRatio=n?e/n:e;var r=Math.round(Math.max(Math.round(e*this._realContainerToContentRatio),15));this._thumbRatio=(e-r)/(this.option("scaleRatio")*(n-e)),this.option(this._dimension,r/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return"never"===this.option("visibilityMode")},_needScrollbar:function(){return!this._isHidden()&&this._baseContainerToContentRatio<1},containerToContentRatio:function(){return this._realContainerToContentRatio},_normalizeSize:function(e){return jo(e)?e[this._dimension]||0:e},_clean:function(){this.callBase(),this===$5&&($5=null),We.off(this._$thumb,"."+T$)},_optionChanged:function(e){if(!this._isHidden())switch(e.name){case"containerSize":case"contentSize":this.option()[e.name]=this._normalizeSize(e.value),this._update();break;case"baseContentSize":case"baseContainerSize":case"scaleRatio":this._update();break;case"visibilityMode":case"direction":this._invalidate();break;default:this.callBase.apply(this,arguments)}},update:_v(function(){this._adjustVisibility()&&this.option("visible",!0)})});lu.add(function(){We.subscribeGlobal(gn.getDocument(),_n(io.up,T$),function(){$5&&$5.feedbackOff()})});const Yhe=rtt;var x1,Z5,qhe="dxSimulatedScrollable",TR=qhe+"Cursor",D$=qhe+"Keyboard",I$="dx-scrollable-simulated",Lf="vertical",Gu="horizontal",ctt=Math.round(1e3/60),ftt=(1-Math.pow(.92,400/ctt))/(1-.92),Jhe=jhe.inherit({ctor:function(e){this.callBase(),this.scroller=e},VELOCITY_LIMIT:1,_isFinished:function(){return Math.abs(this.scroller._velocity)<=this.VELOCITY_LIMIT},_step:function(){this.scroller._scrollStep(this.scroller._velocity),this.scroller._velocity*=this._acceleration()},_acceleration:function(){return this.scroller._inBounds()?.92:.5},_complete:function(){this.scroller._scrollComplete()}}),mtt=Jhe.inherit({VELOCITY_LIMIT:.2,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return.92},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),Qhe=hr.inherit({ctor:function(e){this._initOptions(e),this._initAnimators(),this._initScrollbar()},_initOptions:function(e){this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis=e.direction===Gu?"x":"y",this._prop=e.direction===Gu?"left":"top",this._dimension=e.direction===Gu?"width":"height",this._scrollProp=e.direction===Gu?"scrollLeft":"scrollTop",je(e,(n,t)=>{this["_"+n]=t})},_initAnimators:function(){this._inertiaAnimator=new Jhe(this),this._bounceAnimator=new mtt(this)},_initScrollbar:function(){this._scrollbar=new Yhe(K("
").appendTo(this._$container),{direction:this._direction,visible:this._scrollByThumb,visibilityMode:this._visibilityModeNormalize(this._scrollbarVisible),expandable:this._scrollByThumb}),this._$scrollbar=this._scrollbar.$element()},_visibilityModeNormalize:function(e){return!0===e?"onScroll":!1===e?"never":e},_scrollStep:function(e){var n=this._location;this._location+=e,this._suppressBounce(),this._move(),!(Math.abs(n-this._location)<1)&&We.triggerHandler(this._$container,{type:"scroll"})},_suppressBounce:function(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation:function(e){return e=void 0!==e?e:this._location,Math.max(Math.min(e,this._maxOffset),this._minOffset)},_move:function(e){this._location=void 0!==e?e*this._getScaleRatio():this._location,this._moveContent(),this._moveScrollbar()},_moveContent:function(){var e=this._location;this._$container[this._scrollProp](-e/this._getScaleRatio()),this._moveContentByTranslator(e)},_getScaleRatio:function(){if(Ii()&&!this._scaleRatio){var e=this._$element.get(0),n=this._getRealDimension(e,this._dimension),t=this._getBaseDimension(e,this._dimension);this._scaleRatio=Math.round(n/t*100)/100}return this._scaleRatio||1},_getRealDimension:function(e,n){return Math.round(qo(e)[n])},_getBaseDimension:function(e,n){return e["offset"+Vp(n)]},_moveContentByTranslator:function(e){var n,t=-this._maxScrollPropValue;if(this._translateOffset!==(n=e>0?e:e<=t?e-t:e%1)){var o={};if(o[this._prop]=n,this._translateOffset=n,0===n)return void Ef(this._$content);Zr(this._$content,o)}},_moveScrollbar:function(){this._scrollbar.moveTo(this._location)},_scrollComplete:function(){this._inBounds()&&(this._hideScrollbar(),this._completeDeferred&&this._completeDeferred.resolve()),this._scrollToBounds()},_scrollToBounds:function(){this._inBounds()||(this._bounceAction(),this._setupBounce(),this._bounceAnimator.start())},_setupBounce:function(){var e=this._bounceLocation=this._boundLocation();this._velocity=(e-this._location)/ftt},_inBounds:function(e){return this._boundLocation(e=void 0!==e?e:this._location)===e},_crossBoundOnNextStep:function(){var e=this._location,n=e+this._velocity;return e=this._minOffset||e>this._maxOffset&&n<=this._maxOffset},_initHandler:function(e){this._stopScrolling(),this._prepareThumbScrolling(e)},_stopScrolling:_v(function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()}),_prepareThumbScrolling:function(e){if(!Pc(e.originalEvent)){var n=K(e.originalEvent.target),t=this._isScrollbar(n);t&&this._moveToMouseLocation(e),this._thumbScrolling=t||this._isThumb(n),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(n),this._thumbScrolling&&this._scrollbar.feedbackOn()}},_isThumbScrollingHandler:function(e){return this._isThumb(e)},_moveToMouseLocation:function(e){var n=e["page"+this._axis.toUpperCase()]-this._$element.offset()[this._prop],t=this._location+n/this._containerToContentRatio()-Ti(this._$container)/2;this._scrollStep(-Math.round(t))},_startHandler:function(){this._showScrollbar()},_moveHandler:function(e){this._crossThumbScrolling||(this._thumbScrolling&&(e[this._axis]=-Math.round(e[this._axis]/this._containerToContentRatio())),this._scrollBy(e))},_scrollBy:function(e){e=e[this._axis],this._inBounds()||(e*=.5),this._scrollStep(e)},_scrollByHandler:function(e){this._scrollBy(e),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(e){return this._completeDeferred=new Rt,this._velocity=e[this._axis],this._inertiaHandler(),this._resetThumbScrolling(),this._completeDeferred.promise()},_inertiaHandler:function(){this._suppressInertia(),this._inertiaAnimator.start()},_suppressInertia:function(){(!this._inertiaEnabled||this._thumbScrolling)&&(this._velocity=0)},_resetThumbScrolling:function(){this._thumbScrolling=!1,this._crossThumbScrolling=!1},_stopHandler:function(){this._thumbScrolling&&this._scrollComplete(),this._resetThumbScrolling(),this._scrollToBounds()},_disposeHandler:function(){this._stopScrolling(),this._$scrollbar.remove()},_updateHandler:function(){this._update(),this._moveToBounds()},_update:function(){return this._stopScrolling(),id(()=>{this._resetScaleRatio(),this._updateLocation(),this._updateBounds(),this._updateScrollbar(),zs(()=>{this._moveScrollbar(),this._scrollbar.update()})})},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=(Il(this._$content)[this._prop]-this._$container[this._scrollProp]())*this._getScaleRatio()},_updateBounds:function(){this._maxOffset=this._getMaxOffset(),this._minOffset=this._getMinOffset()},_getMaxOffset:function(){return 0},_getMinOffset:function(){return this._maxScrollPropValue=Math.max(this._contentSize()-this._containerSize(),0),-this._maxScrollPropValue},_updateScrollbar:Zk(function(){var e=this._containerSize(),n=this._contentSize(),t=this._getBaseDimension(this._$container.get(0),this._dimension),o=this._getBaseDimension(this._$content.get(0),this._dimension);zs(()=>{this._scrollbar.option({containerSize:e,contentSize:n,baseContainerSize:t,baseContentSize:o,scaleRatio:this._getScaleRatio()})})}),_moveToBounds:_v(Zk(_v(function(){var e=this._boundLocation(),n=e!==this._location;this._location=e,this._move(),n&&this._scrollAction()}))),_createActionsHandler:function(e){this._scrollAction=e.scroll,this._bounceAction=e.bounce},_showScrollbar:function(){this._scrollbar.option("visible",!0)},_hideScrollbar:function(){this._scrollbar.option("visible",!1)},_containerSize:function(){return this._getRealDimension(this._$container.get(0),this._dimension)},_contentSize:function(){var e="hidden"===this._$content.css("overflow"+this._axis.toUpperCase()),n=this._getRealDimension(this._$content.get(0),this._dimension);if(!e){var t=this._$content[0]["scroll"+Vp(this._dimension)]*this._getScaleRatio();n=Math.max(t,n)}return n},_validateEvent:function(e){var n=K(e.originalEvent.target);return this._isThumb(n)||this._isScrollbar(n)},_isThumb:function(e){return this._scrollByThumb&&this._scrollbar.isThumb(e)},_isScrollbar:function(e){return this._scrollByThumb&&e&&e.is(this._$scrollbar)},_reachedMin:function(){return Math.round(this._location-this._minOffset)<=0},_reachedMax:function(){return Math.round(this._location-this._maxOffset)>=0},_cursorEnterHandler:function(){this._resetScaleRatio(),this._updateScrollbar(),this._scrollbar.cursorEnter()},_cursorLeaveHandler:function(){this._scrollbar.cursorLeave()},dispose:gt}),Xhe=hr.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=K(e.container()),this._$wrapper=e._$wrapper,this._$content=e.$content(),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e),this._getMaxOffset=e._getMaxOffset.bind(e)},render:function(){this._$element.addClass(I$),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection(Gu)&&this._createScroller(Gu),this._isDirection(Lf)&&this._createScroller(Lf),this._$element.toggleClass("dx-scrollable-scrollbars-alwaysvisible","always"===this.option("showScrollbar"))},_createScroller:function(e){this._scrollers[e]=new Qhe(this._scrollerOptions(e))},_scrollerOptions:function(e){return{direction:e,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByThumb:this.option("scrollByThumb"),scrollbarVisible:this.option("showScrollbar"),bounceEnabled:this.option("bounceEnabled"),inertiaEnabled:this.option("inertiaEnabled"),isAnyThumbScrolling:this._isAnyThumbScrolling.bind(this)}},_applyScaleRatio:function(e){for(var n in this._scrollers){var t=this._getPropByDirection(n);ce(e[t])&&(e[t]*=this._scrollers[n]._getScaleRatio())}return e},_isAnyThumbScrolling:function(e){var n=!1;return this._eventHandler("isThumbScrolling",e).done(function(t,o){n=t||o}),n},handleInit:function(e){this._suppressDirections(e),this._eventForUserAction=e,this._eventHandler("init",e)},_suppressDirections:function(e){Pc(e.originalEvent)?this._prepareDirections(!0):(this._prepareDirections(),this._eachScroller(function(n,t){var o=K(e.originalEvent.target),r=n._validateEvent(e)||this.option("scrollByContent")&&this._isContent(o);this._validDirections[t]=r}))},_isContent:function(e){return!!e.closest(this._$element).length},_prepareDirections:function(e){e=e||!1,this._validDirections={},this._validDirections[Gu]=e,this._validDirections[Lf]=e},_eachScroller:function(e){e=e.bind(this),je(this._scrollers,function(n,t){e(t,n)})},handleStart:function(e){this._eventForUserAction=e,this._eventHandler("start").done(this._startAction)},_saveActive:function(){Z5=this},_resetActive:function(){Z5===this&&(Z5=null)},handleMove:function(e){if(this._isLocked())return e.cancel=!0,void this._resetActive();this._saveActive(),e.preventDefault&&e.preventDefault(),this._adjustDistance(e,e.delta),this._eventForUserAction=e,this._eventHandler("move",e.delta)},_adjustDistance:function(e,n){n.x*=this._validDirections[Gu],n.y*=this._validDirections[Lf];var t=this._tryGetDevicePixelRatio();t&&Pc(e.originalEvent)&&(n.x=Math.round(n.x/t*100)/100,n.y=Math.round(n.y/t*100)/100)},_tryGetDevicePixelRatio:function(){if(Ii())return Mi().devicePixelRatio},handleEnd:function(e){return this._resetActive(),this._refreshCursorState(e.originalEvent&&e.originalEvent.target),this._adjustDistance(e,e.velocity),this._eventForUserAction=e,this._eventHandler("end",e.velocity).done(this._endAction)},handleCancel:function(e){return this._resetActive(),this._eventForUserAction=e,this._eventHandler("end",{x:0,y:0})},handleStop:function(){this._resetActive(),this._eventHandler("stop")},handleScroll:function(){this._updateRtlConfig(),this._scrollAction()},_attachKeyboardHandler:function(){We.off(this._$element,".".concat(D$)),!this.option("disabled")&&this.option("useKeyboard")&&We.on(this._$element,_n("keydown",D$),this._keyDownHandler.bind(this))},_keyDownHandler:function(e){if(clearTimeout(this._updateHandlerTimeout),this._updateHandlerTimeout=setTimeout(()=>{"tab"===ls(e)&&this._eachScroller(t=>{t._updateHandler()})}),this._$container.is(gn.getActiveElement())){var n=!0;switch(ls(e)){case"downArrow":this._scrollByLine({y:1});break;case"upArrow":this._scrollByLine({y:-1});break;case"rightArrow":this._scrollByLine({x:1});break;case"leftArrow":this._scrollByLine({x:-1});break;case"pageDown":this._scrollByPage(1);break;case"pageUp":this._scrollByPage(-1);break;case"home":this._scrollToHome();break;case"end":this._scrollToEnd();break;default:n=!1}n&&(e.stopPropagation(),e.preventDefault())}},_scrollByLine:function(e){var n=this._tryGetDevicePixelRatio(),t=40;n&&(t=Math.abs(t/n*100)/100),this.scrollBy({top:(e.y||0)*-t,left:(e.x||0)*-t})},_scrollByPage:function(e){var n=this._wheelProp(),t=this._dimensionByProp(n),o={};o[n]=e*-("width"===t?vi:Ti)(this._$container),this.scrollBy(o)},_dimensionByProp:function(e){return"left"===e?"width":"height"},_getPropByDirection:function(e){return e===Gu?"left":"top"},_scrollToHome:function(){var n={};n[this._wheelProp()]=0,this._component.scrollTo(n)},_scrollToEnd:function(){var e=this._wheelProp(),t={},o="width"===this._dimensionByProp(e)?vi:Ti;t[e]=o(this._$content)-o(this._$container),this._component.scrollTo(t)},createActions:function(){this._startAction=this._createActionHandler("onStart"),this._endAction=this._createActionHandler("onEnd"),this._updateAction=this._createActionHandler("onUpdated"),this._createScrollerActions()},_createScrollerActions:function(){this._scrollAction=this._createActionHandler("onScroll"),this._bounceAction=this._createActionHandler("onBounce"),this._eventHandler("createActions",{scroll:this._scrollAction,bounce:this._bounceAction})},_createActionHandler:function(e){var n=this._createActionByOption(e);return()=>{n(ye(this._createActionArgs(),arguments))}},_createActionArgs:function(){var{horizontal:e,vertical:n}=this._scrollers,t=this._getScrollOffset();return this._scrollOffset={top:n&&t.top,left:e&&t.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:e&&e._reachedMax(),reachedRight:e&&e._reachedMin(),reachedTop:n&&n._reachedMax(),reachedBottom:n&&n._reachedMin()}},_getScrollOffset(){return{top:-this.location().top,left:-this.location().left}},_eventHandler:function(e){var n=[].slice.call(arguments).slice(1),t=Ca(this._scrollers,o=>o["_"+e+"Handler"].apply(o,n));return Xn.apply(K,t).promise()},location:function(){var e=Il(this._$content);return e.top-=this._$container.scrollTop(),e.left-=this._$container.scrollLeft(),e},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){We.off(this._$element,".".concat(TR)),!this.option("disabled")&&this._isHoverMode()&&(We.on(this._$element,_n("mouseenter",TR),this._cursorEnterHandler.bind(this)),We.on(this._$element,_n("mouseleave",TR),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(e){(e=e||{}).originalEvent=e.originalEvent||{},!Z5&&!e.originalEvent._hoverHandled&&(x1&&x1._cursorLeaveHandler(),x1=this,this._eventHandler("cursorEnter"),e.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(e){x1!==this||Z5===x1||(this._eventHandler("cursorLeave"),x1=null,this._refreshCursorState(e&&e.relatedTarget))},_refreshCursorState:function(e){if(this._isHoverMode()||e&&!Z5){var t=K(e).closest(".".concat(I$,":not(.dx-state-disabled)")),o=t.length&&t.data("dxScrollableStrategy");x1&&x1!==o&&x1._cursorLeaveHandler(),o&&o._cursorEnterHandler()}},update:function(){return Xn(this._eventHandler("update").done(this._updateAction),id(()=>{var n=this._allowedDirections();return zs(()=>{var t=n.vertical?"pan-x":"";t=n.horizontal?"pan-y":t,this._$container.css("touchAction",t=n.vertical&&n.horizontal?"none":t)}),Xn().promise()}))},_allowedDirections:function(){var e=this.option("bounceEnabled"),n=this._scrollers[Lf],t=this._scrollers[Gu];return{vertical:n&&(n._minOffset<0||e),horizontal:t&&(t._minOffset<0||e)}},_updateBounds:function(){this._scrollers[Gu]&&this._scrollers[Gu]._updateBounds()},_isHorizontalAndRtlEnabled:function(){return this.option("rtlEnabled")&&this.option("direction")!==Lf},updateRtlPosition:function(e){e&&(this._rtlConfig={scrollRight:0,clientWidth:this._$container.get(0).clientWidth,windowPixelRatio:this._getWindowDevicePixelRatio()}),this._updateBounds(),this._isHorizontalAndRtlEnabled()&&id(()=>{var n=this._getMaxOffset().left-this._rtlConfig.scrollRight;n<=0&&(n=0,this._rtlConfig.scrollRight=this._getMaxOffset().left),zs(()=>{this._getScrollOffset().left!==n&&(this._rtlConfig.skipUpdating=!0,this._component.scrollTo({left:n}),this._rtlConfig.skipUpdating=!1)})})},_updateRtlConfig:function(){if(this._isHorizontalAndRtlEnabled()&&!this._rtlConfig.skipUpdating){var{clientWidth:e,scrollLeft:n}=this._$container.get(0),t=this._getWindowDevicePixelRatio();this._rtlConfig.windowPixelRatio===t&&this._rtlConfig.clientWidth===e&&(this._rtlConfig.scrollRight=this._getMaxOffset().left-n),this._rtlConfig.clientWidth=e,this._rtlConfig.windowPixelRatio=t}},_getWindowDevicePixelRatio:function(){return Ii()?Mi().devicePixelRatio:1},scrollBy:function(e){var n=this._scrollers[Lf],t=this._scrollers[Gu];n&&(e.top=n._boundLocation(e.top+n._location)-n._location),t&&(e.left=t._boundLocation(e.left+t._location)-t._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:e.left,y:e.top}),this._endAction(),this._updateRtlConfig()},validate:function(e){return!(Pc(e)&&Fs(e)||this.option("disabled"))&&(!!this.option("bounceEnabled")||(Pc(e)?this._validateWheel(e):this._validateMove(e)))},_validateWheel:function(e){var n=this._scrollers[this._wheelDirection(e)],t=n._reachedMin(),o=n._reachedMax(),p=(!t||!o)&&(!t&&!o||t&&e.delta>0||o&&e.delta<0);return(p=p||void 0!==this._validateWheelTimer)&&(clearTimeout(this._validateWheelTimer),this._validateWheelTimer=setTimeout(()=>{this._validateWheelTimer=void 0},500)),p},_validateMove:function(e){return!(!this.option("scrollByContent")&&!K(e.target).closest(".".concat("dx-scrollable-scrollbar")).length)&&this._allowedDirection()},getDirection:function(e){return Pc(e)?this._wheelDirection(e):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===Gu?"left":"top"},_wheelDirection:function(e){switch(this.option("direction")){case Gu:return Gu;case Lf:return Lf;default:return e&&e.shiftKey?Gu:Lf}},dispose:function(){this._resetActive(),x1===this&&(x1=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass(I$),this._eventForUserAction=null,clearTimeout(this._validateWheelTimer),clearTimeout(this._updateHandlerTimeout)},_detachEventHandlers:function(){We.off(this._$element,".".concat(TR)),We.off(this._$container,".".concat(D$))}}),ege="dxNativeScrollable",E$="dx-scrollable-native",nS="vertical",IR="horizontal",ytt=hr.inherit({ctor:function(e){this._init(e)},_init:function(e){this._component=e,this._$element=e.$element(),this._$container=K(e.container()),this._$content=e.$content(),this._direction=e.option("direction"),this._useSimulatedScrollbar=e.option("useSimulatedScrollbar"),this.option=e.option.bind(e),this._createActionByOption=e._createActionByOption.bind(e),this._isLocked=e._isLocked.bind(e),this._isDirection=e._isDirection.bind(e),this._allowedDirection=e._allowedDirection.bind(e),this._getMaxOffset=e._getMaxOffset.bind(e),this._isRtlNativeStrategy=e._isRtlNativeStrategy.bind(e)},render:function(){var n=ci.real().platform;this._$element.addClass(E$).addClass(E$+"-"+n).toggleClass("dx-scrollable-scrollbars-hidden",!this._isScrollbarVisible()),this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateRtlPosition:function(e){e&&this.option("rtlEnabled")&&this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._moveScrollbars()},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass("dx-scrollable-scrollbar-simulated"),this._renderScrollbar(nS),this._renderScrollbar(IR)},_renderScrollbar:function(e){!this._isDirection(e)||(this._scrollbars[e]=new Yhe(K("
").appendTo(this._$element),{direction:e,expandable:this._component.option("scrollByThumb")}))},handleInit:gt,handleStart:gt,handleMove:function(e){this._isLocked()?e.cancel=!0:this._allowedDirection()&&(e.originalEvent.isScrollingEvent=!0)},handleEnd:gt,handleCancel:gt,handleStop:gt,_eachScrollbar:function(e){e=e.bind(this),je(this._scrollbars||{},function(n,t){e(t,n)})},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var{left:e,top:n}=this.location();return{event:this._eventForUserAction,scrollOffset:this._getScrollOffset(),reachedLeft:this._isRtlNativeStrategy()?this._isReachedRight(-e):this._isReachedLeft(e),reachedRight:this._isRtlNativeStrategy()?this._isReachedLeft(-Math.abs(e)):this._isReachedRight(e),reachedTop:this._isDirection(nS)?Math.round(n)>=0:void 0,reachedBottom:this._isDirection(nS)?Math.round(Math.abs(n)-this._getMaxOffset().top)>=0:void 0}},_getScrollOffset:function(){var{top:e,left:n}=this.location();return{top:-e,left:this._normalizeOffsetLeft(-n)}},_normalizeOffsetLeft(e){return this._isRtlNativeStrategy()?this._getMaxOffset().left+e:e},_isReachedLeft:function(e){return this._isDirection(IR)?Math.round(e)>=0:void 0},_isReachedRight:function(e){return this._isDirection(IR)?Math.round(Math.abs(e)-this._getMaxOffset().left)>=0:void 0},_isScrollbarVisible:function(){var{showScrollbar:e}=this.option();return"never"!==e&&!1!==e},handleScroll:function(e){this._eventForUserAction=e,this._moveScrollbars(),this._scrollAction(this._createActionArgs())},_moveScrollbars:function(){var{top:e,left:n}=this._getScrollOffset();this._eachScrollbar(function(t){t.moveTo({top:-e,left:-n}),t.option("visible",!0)}),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar(function(e){e.option("visible",!1)})}.bind(this),500)},location:function(){return{left:-this._$container.scrollLeft(),top:-this._$container.scrollTop()}},disabledChanged:gt,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:Ti(this._$container),width:vi(this._$container)},this._componentContentSize={height:Ti(this._component.$content()),width:vi(this._component.$content())},this._contentSize={height:Ti(this._$content),width:vi(this._$content)}},_updateScrollbars:function(){this._eachScrollbar(function(e,n){var t=n===nS?"height":"width";e.option({containerSize:this._containerSize[t],contentSize:this._componentContentSize[t]}),e.update()})},_allowedDirections:function(){return{vertical:this._isDirection(nS)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(IR)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var e=this._$element.get(0).className,n=new RegExp(E$+"\\S*","g");n.test(e)&&this._$element.removeClass(e.match(n).join(" ")),We.off(this._$element,"."+ege),We.off(this._$container,"."+ege),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar(function(e){e.$element().remove()})},scrollBy:function(e){var n=this.location();this._$container.scrollTop(Math.round(-n.top-e.top)),this._$container.scrollLeft(Math.round(-n.left-e.left))},validate:function(e){return!(this.option("disabled")||Pc(e)&&this._isScrolledInMaxDirection(e)||!this._allowedDirection())},_isScrolledInMaxDirection(e){var n=this._$container.get(0);return e.delta>0?e.shiftKey?!n.scrollLeft:!n.scrollTop:e.shiftKey?n.scrollLeft>=this._getMaxOffset().left:n.scrollTop>=this._getMaxOffset().top},getDirection:function(){return this._allowedDirection()}});const k$=ytt;var tge=function(){return[{device:function(){return!sp},options:{useNative:!1}},{device:function(e){return!ci.isSimulator()&&"desktop"===ci.real().deviceType&&"generic"===e.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:Df,showScrollbar:"onHover"}}]};function nge(e,n){for(var t={left:0,top:0},o=n;null!==(r=o)&&void 0!==r&&r.offsetParent&&!o.classList.contains(e);){var r,a=o.offsetParent,l=o.getBoundingClientRect(),c=a.getBoundingClientRect();t.left+=l.left-c.left,t.top+=l.top-c.top,o=o.offsetParent}return t}var ER="vertical",ige="horizontal",A$="both",oge="dx-scrollable-content",Rf="dxScrollable",rge="dx-scrollable",age="dx-scrollable-content",Bf="vertical",N2="horizontal",L$="both",R$=jp.inherit({_getDefaultOptions:function(){return ye(this.callBase(),{disabled:!1,onScroll:null,direction:Bf,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat(tge(),[{device:function(){return sp&&"android"===ci.real().platform&&!Ha.mozilla},options:{useSimulatedScrollbar:!0}}])},_initOptions:function(e){this.callBase(e),"useSimulatedScrollbar"in e||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(e){e?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var e=this.$element().addClass(rge),n=this._$container=K("
").addClass("dx-scrollable-container"),t=this._$wrapper=K("
").addClass("dx-scrollable-wrapper");(this._$content=K("
").addClass(age)).append(e.contents()).appendTo(n),n.appendTo(t),t.appendTo(e)},_dimensionChanged:function(){this.update(),this._updateRtlPosition()},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition(!0)},_updateRtlPosition:function(e){this._strategy.updateRtlPosition(e)},_getMaxOffset:function(){var{scrollWidth:e,clientWidth:n,scrollHeight:t,clientHeight:o}=K(this.container()).get(0);return{left:e-n,top:t-o}},_attachEventHandlers:function(){var e=this._strategy,n={getDirection:e.getDirection.bind(e),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};We.off(this._$wrapper,"."+Rf),We.on(this._$wrapper,_n(Gp_init,Rf),n,this._initHandler.bind(this)),We.on(this._$wrapper,_n("dxscrollstart",Rf),e.handleStart.bind(e)),We.on(this._$wrapper,_n("dxscroll",Rf),e.handleMove.bind(e)),We.on(this._$wrapper,_n("dxscrollend",Rf),e.handleEnd.bind(e)),We.on(this._$wrapper,_n("dxscrollcancel",Rf),e.handleCancel.bind(e)),We.on(this._$wrapper,_n("dxscrollstop",Rf),e.handleStop.bind(e)),We.off(this._$container,"."+Rf),We.on(this._$container,_n("scroll",Rf),e.handleScroll.bind(e))},_validate:function(e){return!this._isLocked()&&(this._updateIfNeed(),this._moveIsAllowed(e))},_moveIsAllowed(e){return this._strategy.validate(e)},handleMove(e){this._strategy.handleMove(e)},_prepareDirections(e){this._strategy._prepareDirections(e)},_initHandler:function(){var e=this._strategy;e.handleInit.apply(e,arguments)},_renderDisabledState:function(){this.$element().toggleClass("dx-scrollable-disabled",this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+N2).removeClass("dx-scrollable-"+Bf).removeClass("dx-scrollable-"+L$).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data("dxScrollableStrategy",this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new k$(this):new Xhe(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(e){switch(e.name){case"onStart":case"onEnd":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":case"scrollByContent":break;case"width":this.callBase(e),this._updateRtlPosition();break;default:this.callBase(e)}},_resetInactiveDirection:function(){var e=this._getInactiveProp();if(e&&Ii()){var n=this.scrollOffset();n[e]=0,this.scrollTo(n)}},_getInactiveProp:function(){var e=this.option("direction");return e===Bf?"left":e===N2?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(e){if(jo(e)){var n=Kr(e.left,e.x),t=Kr(e.top,e.y);return{left:ce(n)?-n:void 0,top:ce(t)?-t:void 0}}var o=this.option("direction");return{left:o!==Bf?-e:void 0,top:o!==N2?-e:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(e){var n=this.option("direction");return e===Bf?n!==N2:e===N2?n!==Bf:n===e},_updateAllowedDirection:function(){var e=this._strategy._allowedDirections();this._allowedDirectionValue=this._isDirection(L$)&&e.vertical&&e.horizontal?L$:this._isDirection(N2)&&e.horizontal?N2:this._isDirection(Bf)&&e.vertical?Bf:null},_allowedDirection:function(){return this._allowedDirectionValue},$content:function(){return this._$content},content:function(){return Di(this._$content)},container:function(){return Di(this._$container)},scrollOffset:function(){return this._strategy._getScrollOffset()},_isRtlNativeStrategy:function(){var{useNative:e,rtlEnabled:n}=this.option();return e&&n},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return Ti(this._$container)},scrollHeight:function(){return no(this.$content())},clientWidth:function(){return vi(this._$container)},scrollWidth:function(){return ho(this.$content())},update:function(){if(this._strategy)return Xn(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(e){((e=this._normalizeLocation(e)).top||e.left)&&(this._updateIfNeed(),this._strategy.scrollBy(e))},scrollTo:function(e){e=this._normalizeLocation(e),this._updateIfNeed();var n=this._location();this.option("useNative")||(e=this._strategy._applyScaleRatio(e),n=this._strategy._applyScaleRatio(n)),this._isRtlNativeStrategy()&&(n.left=n.left-this._getMaxOffset().left);var t=this._normalizeLocation({left:n.left-Kr(e.left,n.left),top:n.top-Kr(e.top,n.top)});!t.top&&!t.left||this._strategy.scrollBy(t)},scrollToElement:function(e,n){var t=K(e),o=this.$content().find(e).length,r=t.parents("."+rge).length-t.parents("."+age).length==0;if(o&&r){var a={top:0,left:0},l=this.option("direction");l!==Bf&&(a.left=this.getScrollElementPosition(t,N2,n)),l!==N2&&(a.top=this.getScrollElementPosition(t,Bf,n)),this.scrollTo(a)}},getScrollElementPosition:function(e,n,t){var o=this.scrollOffset();return function btt(e,n,t,o,r){var a=Xt({top:0,left:0,right:0,bottom:0},r),l=n===ER,c=l?"top":"left",p=l?"bottom":"right",b=l?"height":"width",T=t["offset".concat(Vp(b))],L=t["client".concat(Vp(b))],N=t.getBoundingClientRect()[b],G=e.getBoundingClientRect()[b],Y=1;Math.abs(N-T)>1&&(Y=N/T);var ie=nge(oge,e)[c]/Y,ue=o[c],xe=ue-ie+a[c],Se=ue-ie-G/Y+L-a[p];return xe<=0&&Se>=0?ue:ue-(Math.abs(xe)>Math.abs(Se)?Se:xe)}(e.get(0),n,K(this.container()).get(0),o,t)},_updateIfNeed:function(){this.option("updateManually")||this.update()},_useTemplates:function(){return!1},isRenovated:function(){return!!R$.IS_RENOVATED_WIDGET}});xi(Rf,R$);const Eh=R$;var B$="dx-group-row",sge="dx-group-cell",Dtt="dx-data-row",kR="dx-freespace-row",Itt="dx-row-lines",lge="dx-column-lines",cge="dx-row-alt",dge="dx-last-row-border";function uge(e){return e?Math.round(e.scrollWidth()-e.clientWidth()):0}var AR={defaultOptions:function(){return{hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:ze.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},dataRowTemplate:null,columnAutoWidth:!1,noDataText:ze.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}},views:{rowsView:qP.inherit(function(){var e=function(n,t){var o=mC(t.text)&&"data"===t.rowType,r=t.text,a=n.get(0);o?yi.setEmptyText(n):t.column.encodeHtml?a.textContent=r:a.innerHTML=r};return{_getDefaultTemplate:function(n){return"empty"===n.command?function(t){t.html(" ")}:e},_getDefaultGroupTemplate:function(n){var t=this.option("summary.texts");return function(o,r){var a=r.data,l=r.column.caption+": "+r.text,c=o.get(0);r.summaryItems&&r.summaryItems.length&&(l+=" "+yi.getGroupRowSummaryText(r.summaryItems,t)),a&&(r.groupContinuedMessage&&r.groupContinuesMessage?l+=" ("+r.groupContinuedMessage+". "+r.groupContinuesMessage+")":r.groupContinuesMessage?l+=" ("+r.groupContinuesMessage+")":r.groupContinuedMessage&&(l+=" ("+r.groupContinuedMessage+")")),o.addClass(sge),n.encodeHtml?c.textContent=l:c.innerHTML=l}},_update:function(){},_getCellTemplate:function(n){var t=n.column;return"group"!==n.rowType||!ce(t.groupIndex)||t.showWhenGrouped||t.command?("data"===n.rowType||t.command)&&t.cellTemplate?t.cellTemplate:{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(t)}:t.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultGroupTemplate(t)}},_createRow:function(n){var t=this.callBase.apply(this,arguments);if(n){var o="group"===n.rowType,r="data"===n.rowType;if(r&&t.addClass(Dtt),r&&this.option("showRowLines")&&t.addClass(Itt),this.option("showColumnLines")&&t.addClass(lge),!1===n.visible&&t.hide(),o){t.addClass(B$);var a=n.isExpanded;this.setAria("role","row",t),this.setAria("expanded",ce(a)&&a.toString(),t)}}return t},_rowPrepared:function(n,t,o){"data"===t.rowType&&(this.option("rowAlternationEnabled")&&(this._isAltRow(o)&&n.addClass(cge),t.watch&&t.watch(()=>this._isAltRow(o),r=>{n.toggleClass(cge,r)})),this._setAriaRowIndex(t,n),t.watch&&t.watch(()=>t.rowIndex,()=>this._setAriaRowIndex(t,n))),this.callBase.apply(this,arguments)},_setAriaRowIndex:function(n,t){var o=this.component,r="standard"===o.option("scrolling.mode")&&!yi.isVirtualRowRendering(o),a=n.rowIndex+1;r?a=o.pageIndex()*o.pageSize()+a:a+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",a,t)},_afterRowPrepared:function(n){var t=n.args[0],o=this._dataController,r=o.getVisibleRows()[t.rowIndex],a=this.option("integrationOptions.watchMethod");if(t.data&&"data"===t.rowType&&!t.isNewRow&&this.option("twoWayBindingEnabled")&&a&&r){var l=a(()=>o.generateDataValues(t.data,t.columns),()=>{o.repaintRows([r.rowIndex],this.option("repaintChangesOnly"))},{deep:!0,skipImmediate:!0});We.on(t.rowElement,hg,l)}},_renderScrollable:function(n){var t=this.element();if(t.children().length||t.append("
"),(n||!this._loadPanel)&&this._renderLoadPanel(t,t.parent(),this._dataController.isLocalStore()),(n||!this.getScrollable())&&this._dataController.isLoaded()){for(var o=this.getColumns(),r=!0,a=0;a0&&!this._rowHeight},_getRowsHeight:function(n){return(n=n||this._tableElement).children("tbody").children().not(".dx-virtual-row").not("."+kR).toArray().reduce(function(o,r){return o+qo(r).height},0)},_updateRowHeight:function(){var n=this.getTableElement(),t=this._dataController.items().length;if(n&&this._needUpdateRowHeight(t)){var o=this._getRowsHeight(n);this._rowHeight=o/t}},_findContentElement:function(){var n=this.element(),t=this.getScrollable();if(n)return t&&(n=K(t.content())),n.children().first()},_getRowElements:function(n){var t=this.callBase(n);return t&&t.not("."+kR)},_getFreeSpaceRowElements:function(n){var t=n||this.getTableElements();return t&&t.children("tbody").children("."+kR)},_getNoDataText:function(){return this.option("noDataText")},_rowClick:function(n){var t=this._dataController.items()[n.rowIndex]||{};this.executeAction("onRowClick",ye({evaluate:function(o){return Wo(o)(t.data)}},n,t))},_rowDblClick:function(n){var t=this._dataController.items()[n.rowIndex]||{};this.executeAction("onRowDblClick",ye({},n,t))},_getColumnsCountBeforeGroups:function(n){for(var t=0;t1&&(L.colspan=p.colspan),this._needRenderCell(p.columnIndex+1,t.columnIndices)&&this._renderCell(n,{value:o.values[o.groupIndex],row:o,rowIndex:l,column:L,columnIndex:p.columnIndex+1,columnIndices:t.columnIndices})},_renderRows:function(n,t){var o=this.option("scrolling.mode");this.callBase(n,ye({scrollingMode:o},t)),this._checkRowKeys(t.change),this._renderFreeSpaceRow(n,t.change),this._hasHeight||this.updateFreeSpaceRowHeight(n)},_renderDataRowByTemplate(n,t,o){var r=t.row,a=ye({columns:t.columns},r),l=this._createRow(r,"tbody");l.appendTo(n),this.renderTemplate(l,o,a,!0,t.change),this._rowPrepared(l,a,t.row)},_renderRow:function(n,t){var o=t.row,r=this.option().rowTemplate,a=this.option("dataRowTemplate");"data"===o.rowType&&a?this._renderDataRowByTemplate(n,t,a):"data"!==o.rowType&&"group"!==o.rowType||ce(o.groupIndex)||!r?this.callBase(n,t):this.renderTemplate(n,r,ye({columns:t.columns},o),!0)},_renderTable:function(n){var t=this,o=t.callBase(n);return ce(t.getTableElement())?t._renderScrollable():(t.setTableElement(o),t._renderScrollable(!0),t.resizeCompleted.add(function r(){var a=t.getScrollable();a&&t.element().closest(Mi().document).length&&(t.resizeCompleted.remove(r),a._visibilityChanged(!0))})),o},_createTable:function(){var n=this.callBase.apply(this,arguments);return(this.option().rowTemplate||this.option().dataRowTemplate)&&n.appendTo(this.component.$element()),n},_renderCore:function(n){var t=this.element();t.addClass(this.addWidgetPrefix("rowsview")).toggleClass(this.addWidgetPrefix("nowrap"),!this.option("wordWrapEnabled")),t.toggleClass("dx-empty",this._dataController.isEmpty()),this.setAria("role","presentation",t);var o=this._renderTable({change:n});this._updateContent(o,n),this.callBase(n),this._lastColumnWidths=null},_getRows:function(n){return n&&n.items||this._dataController.items()},_getCellOptions:function(n){var t=n.column,o=n.row,r=o.data,a=o&&o.summaryCells,l=n.value,c=yi.getDisplayValue(t,l,r,o.rowType),p=this.callBase(n);if(p.value=l,p.oldValue=n.oldValue,p.displayValue=c,p.row=o,p.key=o.key,p.data=r,p.rowType=o.rowType,p.values=o.values,p.text=t.command?"":yi.formatValue(c,t),p.rowIndex=o.rowIndex,p.summaryItems=a&&a[n.columnIndex],p.resized=t.resizedCallbacks,ce(t.groupIndex)&&!t.command){var b=this.option("grouping.texts"),T=this.option("scrolling.mode");"virtual"!==T&&"infinite"!==T&&(p.groupContinuesMessage=r&&r.isContinuationOnNextPage&&b&&b.groupContinuesMessage,p.groupContinuedMessage=r&&r.isContinuation&&b&&b.groupContinuedMessage)}return p},_setRowsOpacityCore:function(n,t,o,r){var a=this._columnsController,l=a.getColumns(),c=l&&l[o],p=c&&c.isBand&&c.index;je(n,function(b,T){if(!K(T).hasClass(B$))for(var L=0;L=0){var t=this._getRowElements();if(t.length>n)return K(t[n])}},updateFreeSpaceRowHeight:function(n){var t=this._dataController,o=t.items(!0).length,r=this._findContentElement(),a=this._getFreeSpaceRowElements(n);if(a&&r&&t.totalCount()>=0){var l=!1;if(o>0)if(this._hasHeight)a.hide(),id(()=>{var b=this.getScrollbarWidth(!0),T=Ti(this.element())-b,N=T-no(r)>0,G=this._getRowsHeight(r.children().first()),Y=n||this.getTableElements(),xe=T-G-Math.ceil(parseFloat(Y.css("borderTopWidth")))-this._getHeightCorrection();N&&zs(()=>{a.css("height",xe),l=!0,a.show()}),zs(()=>this._updateLastRowBorder(l))});else{var c=t.pageSize()-o,p=this.option("scrolling.mode");c>0&&t.pageCount()>1&&"virtual"!==p&&"infinite"!==p&&(U8(a,c*this._rowHeight),l=!0),!l&&n?U8(a,0):a.toggle(l),this._updateLastRowBorder(l)}else a.css("height",0),a.show(),this._updateLastRowBorder(!0)}},_getHeightCorrection:function(){var n=Ha.webkit&&this._getDevicePixelRatio()>=2,t=Ha.chrome&&Ha.version>=91,o=Ha.mozilla&&Ha.version>=70&&!this.option("showRowLines");return n||o||t?1:0},_columnOptionChanged:function(n){var t=n.optionNames;n.changeTypes.grouping||(t.width||t.visibleWidth)&&(this.callBase(n),this._fireColumnResizedCallbacks())},getScrollable:function(){return this._scrollable},init:function(){var n=this,t=n.getController("data");n.callBase(),n._editorFactoryController=n.getController("editorFactory"),n._rowHeight=0,n._scrollTop=0,n._scrollLeft=-1,n._scrollRight=0,n._hasHeight=!1,t.loadingChanged.add(function(o,r){n.setLoading(o,r)}),t.dataSourceChanged.add(function(){n._scrollLeft>=0&&n._handleScroll({component:n.getScrollable(),forceUpdateScrollPosition:!0,scrollOffset:{top:n._scrollTop,left:n._scrollLeft}})})},_handleDataChanged:function(n){switch(n.changeType){case"refresh":case"prepend":case"append":case"update":this.render(null,n);break;default:this._update(n)}},publicMethods:function(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]},contentWidth:function(){return vi(this.element())-this.getScrollbarWidth()},getScrollbarWidth:function(n){var a,t=this._scrollableContainer&&this._scrollableContainer.get(0),o=0;return t&&(n?(o=t.clientHeight?t.offsetHeight-t.clientHeight:0,o+=(a=this.getScrollable())?Math.ceil(parseFloat(K(a.content()).css("paddingBottom"))):0):o=t.clientWidth?t.offsetWidth-t.clientWidth:0),o>0?o:0},_fireColumnResizedCallbacks:function(){for(var n=this._lastColumnWidths||[],t=[],o=this.getColumns(),r=0;r=0&&t!==this._scrollLeft&&n.scrollTo({x:this._scrollLeft})},_resizeCore:function(){var n=this;n._fireColumnResizedCallbacks(),n._updateRowHeight(),zs(function(){n._renderScrollable(),n.renderNoDataText(),n.updateFreeSpaceRowHeight(),id(function(){n._updateScrollable()})})},scrollTo:function(n){var t=this.element(),o=t&&Eh.getInstance(t);o&&o.scrollTo(n)},height:function(n,t){var o=this,r=this.element();if(0===arguments.length)return r?no(r,!0):0;o._hasHeight=void 0===t?"auto"!==n:t,ce(n)&&r&&U8(r,n)},setLoading:function(n,t){var o=this._loadPanel,r=this._dataController,a=this.option("loadPanel")||{},l=r.isLoaded()?a.animation:null,c=this.element();if(Ii()&&(!o&&void 0!==t&&r.isLocalStore()&&"auto"===a.enabled&&c&&(this._renderLoadPanel(c,c.parent()),o=this._loadPanel),o)){var p={message:t||a.text,animation:l,visible:n};n&&(p.position=yi.calculateLoadPanelPosition(c)),clearTimeout(this._hideLoadingTimeoutID),o.option("visible")&&!n?this._hideLoadingTimeoutID=setTimeout(function(){o.option(p)},200):o.option(p)}},setRowsOpacity:function(n,t){var o=this._getRowElements().not("."+B$)||[];this._setRowsOpacityCore(o,this.getColumns(),n,t)},_getCellElementsCore:function(n){var t=this.callBase.apply(this,arguments);if(t){var o=t.filter("."+sge).index();if(o>=0&&t.length>o+1)return t.slice(0,o+1)}return t},_getBoundaryVisibleItemIndex:function(n,t){var o=0,r=0,a=0,l=this._scrollTop,c=this._findContentElement(),p=c&&c.offset().top,T=this.getController("data").items(),L=this.getTableElement();if(T.length&&L){var N=this._getRowElements(L).filter(":visible");for(n||(l+=no(this._hasHeight?this.element():Mi())),o=0;ol)){o&&(t||2*l0&&void 0!==arguments[0]?arguments[0]:{},{useHoldAnimation:n,waveSizeCoefficient:t,isCentered:o,wavesNumber:r}=e;return{waveSizeCoefficient:t||2,isCentered:o||!1,wavesNumber:r||1,durations:Ntt(null==n||n)}},iS=function(e){var n=_ge(e);return{showWave:Cge.bind(this,n),hideWave:bge.bind(this,n)}},vge=function(e,n){for(var t=function(e){var n=e.children("."+pge);return 0===n.length&&(n=K("
").addClass(pge).appendTo(e)),n}(K(e)),o=t.children("."+hge).toArray(),r=o.length;r").appendTo(t).addClass(hge);o.push(a[0])}return K(o)};function Cge(e,n){var t=vge(n.element,e.wavesNumber).eq(n.wave||0);e.hidingTimeout&&clearTimeout(e.hidingTimeout),yge(t),t.css(function(e,n){var c,p,t=K(n.element),o=ho(t),r=no(t),a=parseInt(Math.sqrt(o*o+r*r)),l=Math.min(4e3,parseInt(a*e.waveSizeCoefficient));if(e.isCentered)c=(o-l)/2,p=(r-l)/2;else{var b=n.event,T=t.offset();c=b.pageX-T.left-l/2,p=b.pageY-T.top-l/2}return{left:c,top:p,height:l,width:l}}(e,n)),e.showingTimeout=setTimeout(Vtt.bind(this,e,t),0)}function Vtt(e,n){var t=e.durations.showingScale+"ms";n.addClass(gge).css("transitionDuration",t)}function Ntt(e){return{showingScale:e?1e3:300,hidingScale:300,hidingOpacity:300}}function yge(e){e.removeClass(fge).css("transitionDuration","")}function bge(e,n){e.showingTimeout&&clearTimeout(e.showingTimeout);var t=vge(n.element,n.wavesNumber).eq(n.wave||0),o=e.durations,r=o.hidingScale+"ms, "+o.hidingOpacity+"ms";t.addClass(fge).removeClass(gge).css("transitionDuration",r);var a=Math.max(o.hidingScale,o.hidingOpacity);e.hidingTimeout=setTimeout(yge.bind(this,t),a)}var oS="dx-icon",rS=e=>!(!e||"string"!=typeof e)&&(/^\s*]*>(.|\r?\n)*?<\/svg>\s*$/i.test(e)?"svg":/data:.*base64|\.|[^<\s]\//.test(e)?"image":/^[\w-_]+$/.test(e)?"dxIcon":!!/^\s?([\w-_]\s?)+$/.test(e)&&"fontIcon"),pp=e=>{switch(rS(e)){case"image":return K("").attr("src",e).addClass(oS);case"fontIcon":return K("").addClass("".concat(oS," ").concat(e));case"dxIcon":return K("").addClass("".concat(oS," ").concat(oS,"-").concat(e));case"svg":return K("").addClass("".concat(oS," ").concat("dx-svg-icon")).append(e);default:return null}},xge=function Utt(e){return class{constructor(){throw new Error("Module '".concat(e,"' not found"))}static getInstance(){}}}("TextBox");const xy={_getDefaultOptions:function(){return ye(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var e=this.$element(),n=this.option("searchEnabled"),t=this._addWidgetPrefix("search"),o=this._addWidgetPrefix("with-search");if(!n)return e.removeClass(o),void this._removeSearchBox();var r=this._getSearchEditorOptions();this._searchEditor?this._searchEditor.option(r):(e.addClass(o),this._$searchEditorElement=K("
").addClass(t).prependTo(e),this._searchEditor=this._createComponent(this._$searchEditorElement,xge,r))},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var e=this,n=e.option("searchEditorOptions"),t=ze.format("Search");return ye({mode:"search",placeholder:t,tabIndex:e.option("tabIndex"),value:e.option("searchValue"),valueChangeEvent:"input",inputAttr:{"aria-label":t},onValueChanged:function(o){var r=e.option("searchTimeout");e._valueChangeDeferred=new Rt,clearTimeout(e._valueChangeTimeout),e._valueChangeDeferred.done(function(){this.option("searchValue",o.value)}.bind(e)),o.event&&"input"===o.event.type&&r?e._valueChangeTimeout=setTimeout(function(){e._valueChangeDeferred.resolve()},r):e._valueChangeDeferred.resolve()}},n)},_getAriaTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.$element()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.callBase()},_updateFocusState:function(e,n){this.option("searchEnabled")&&this._toggleFocusClass(n,this.$element()),this.callBase(e,n)},getOperationBySearchMode:function(e){return"equals"===e?"=":e},_cleanAria:function(e){this.setAria({role:null,activedescendant:null},e),e.attr("tabIndex",null)},_optionChanged:function(e){switch(e.name){case"searchEnabled":case"searchEditorOptions":this._cleanAria(this.option("searchEnabled")?this.$element():this._itemContainer()),this._invalidate();break;case"searchExpr":case"searchMode":case"searchValue":if(!this._dataSource)return void Ho.log("W1009");"searchMode"===e.name?this._dataSource.searchOperation(this.getOperationBySearchMode(e.value)):this._dataSource[e.name](e.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(e)}},focus:function(){this.option("focusedElement")||!this.option("searchEnabled")?this.callBase():this._searchEditor&&this._searchEditor.focus()},_refresh:function(){this._valueChangeDeferred&&this._valueChangeDeferred.resolve(),this.callBase()},setEditorClass:function(e){xge=e}};var{ios:jtt,mac:Gtt}=ci.real(),Wtt=jtt||Gtt,Ktt=function(e){var n;try{n={start:e.selectionStart,end:e.selectionEnd}}catch(t){n={start:0,end:0}}return n},Ytt=function(e,n){if(gn.getBody().contains(e))try{e.selectionStart=n.start,e.selectionEnd=n.end}catch(t){}};const H$=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e=K(e).get(0),!ce(n))return Ktt(e);!t&&Wtt&&gn.getActiveElement()!==e||Ytt(e,n)};var Oge=hr.inherit({ctor:function(e){this._value=" ",ye(this,e)},next:function(e){if(!arguments.length)return this._next;this._next=e},text:gt,value:gt,rawValue:gt,handle:gt,_prepareHandlingArgs:function(e,n){var t,o,r;n=n||{};var a=Object.prototype.hasOwnProperty.call(e,"value")?"value":"text";return e[a]=null!==(t=n.str)&&void 0!==t?t:e[a],e.start=null!==(o=n.start)&&void 0!==o?o:e.start,e.length=null!==(r=n.length)&&void 0!==r?r:e.length,e.index=e.index+1,e},reset:gt,clear:gt,first:function(e){return e=e||0,this.next().first(e+1)},isAccepted:function(){return!1},adjustedCaret:function(e,n,t){return n?this._adjustedForward(e,0,t):this._adjustedBackward(e,0,t)},_adjustedForward:gt,_adjustedBackward:gt,isValid:gt}),Jtt=Oge.inherit({next:gt,handle:function(){return 0},text:function(){return""},value:function(){return""},first:function(){return 0},rawValue:function(){return""},adjustedCaret:function(){return 0},isValid:function(){return!0}}),Mge=Oge.inherit({text:function(){return(" "!==this._value?this._value:this.maskChar)+this.next().text()},value:function(){return this._value+this.next().value()},rawValue:function(){return this._value+this.next().rawValue()},handle:function(e){var n=Object.prototype.hasOwnProperty.call(e,"value")?e.value:e.text;if(!n||!n.length||!e.length)return 0;if(e.start)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start-1}));var t=n[0],o=n.substring(1);return this._tryAcceptChar(t,e),this._accepted()?this.next().handle(this._prepareHandlingArgs(e,{str:o,length:e.length-1}))+1:this.handle(this._prepareHandlingArgs(e,{str:o,length:e.length-1}))},clear:function(e){this._tryAcceptChar(" ",e),this.next().clear(this._prepareHandlingArgs(e))},reset:function(){this._accepted(!1),this.next().reset()},_tryAcceptChar:function(e,n){if(this._accepted(!1),this._isAllowed(e,n)){var t=" "===e?this.maskChar:e;n.fullText=n.fullText.substring(0,n.index)+t+n.fullText.substring(n.index+1),this._accepted(!0),this._value=e}},_accepted:function(e){if(!arguments.length)return!!this._isAccepted;this._isAccepted=!!e},first:function(e){return" "===this._value?e||0:this.callBase(e)},_isAllowed:function(e,n){return" "===e||this._isValid(e,n)},_isValid:function(e,n){var t=this.allowedChars;return t instanceof RegExp?t.test(e):qn(t)?t(e,n.index,n.fullText):Array.isArray(t)?Ki(e,t)>-1:t===e},isAccepted:function(e){return 0===e?this._accepted():this.next().isAccepted(e-1)},_adjustedForward:function(e,n,t){return n>=e?n:this.next()._adjustedForward(e,n+1,t)||n+1},_adjustedBackward:function(e,n){return n>=e-1?e:this.next()._adjustedBackward(e,n+1)||n+1},isValid:function(e){return this._isValid(this._value,e)&&this.next().isValid(this._prepareHandlingArgs(e))}}),wge=Mge.inherit({value:function(){return this.next().value()},handle:function(e){var n=Object.prototype.hasOwnProperty.call(e,"value"),t=n?e.value:e.text;if(!t.length||!e.length)return 0;if(e.start||n)return this.next().handle(this._prepareHandlingArgs(e,{start:e.start&&e.start-1}));var o=t[0],r=t.substring(1);this._tryAcceptChar(o);var a=this._isAllowed(o)?this._prepareHandlingArgs(e,{str:r,length:e.length-1}):e;return this.next().handle(a)+1},clear:function(e){this._accepted(!1),this.next().clear(this._prepareHandlingArgs(e))},_tryAcceptChar:function(e){this._accepted(this._isValid(e))},_isValid:function(e){return e===this.maskChar},first:function(e){return e=e||0,this.next().first(e+1)},_adjustedForward:function(e,n,t){return n>=e&&t===this.maskChar?n:e===n+1&&this._accepted()?e:this.next()._adjustedForward(e,n+1,t)},_adjustedBackward:function(e,n){return n>=e-1?0:this.next()._adjustedBackward(e,n+1)},isValid:function(e){return this.next().isValid(this._prepareHandlingArgs(e))}});class Kv{constructor(){this.NAME="base"}defaultMessage(n){return ze.getFormatter("validation-".concat(this.NAME))(n)}defaultFormattedMessage(n){return ze.getFormatter("validation-".concat(this.NAME,"-formatted"))(n)}_isValueEmpty(n){return!aS.required.validate(n,{})}validate(n,t){var o=Array.isArray(n)?n:[n],r=!0;return o.length?o.every(a=>r=this._validate(a,t)):r=this._validate(null,t),r}}class Pge extends Kv{constructor(){super(),this.NAME="custom"}validate(n,t){if(t.ignoreEmptyValue&&this._isValueEmpty(n))return!0;var o=t.validator,r=o&&qn(o.option)&&o.option("dataGetter"),a=qn(r)&&r(),l={value:n,validator:o,rule:t};return a&&ye(l,a),t.validationCallback(l)}}var aS={required:new class Qtt extends Kv{constructor(){super(),this.NAME="required"}_validate(n,t){return!(!ce(n)||!1===n)&&(n=String(n),(t.trim||!ce(t.trim))&&(n=n.trim()),""!==n)}},numeric:new class Xtt extends Kv{constructor(){super(),this.NAME="numeric"}_validate(n,t){return!(!1===t.ignoreEmptyValue||!this._isValueEmpty(n))||(t.useCultureSettings&&Wi(n)?!isNaN(ya.parse(n)):vo(n))}},range:new class ent extends Kv{constructor(){super(),this.NAME="range"}_validate(n,t){if(!1!==t.ignoreEmptyValue&&this._isValueEmpty(n))return!0;var o=aS.numeric.validate(n,t),r=ce(n)&&""!==n,a=o?parseFloat(n):r&&n.valueOf(),l=t.min,c=t.max;if(!o&&!_l(n)&&!r)return!1;if(ce(l))return ce(c)?a>=l&&a<=c:a>=l;if(ce(c))return a<=c;throw ua.Error("E0101")}},stringLength:new class tnt extends Kv{constructor(){super(),this.NAME="stringLength"}_validate(n,t){var o;return n=String(null!==(o=n)&&void 0!==o?o:""),(t.trim||!ce(t.trim))&&(n=n.trim()),!(!t.ignoreEmptyValue||!this._isValueEmpty(n))||aS.range.validate(n.length,ye({},t))}},custom:new Pge,async:new class nnt extends Pge{constructor(){super(),this.NAME="async"}validate(n,t){if(ce(t.reevaluate)||ye(t,{reevaluate:!0}),t.ignoreEmptyValue&&this._isValueEmpty(n))return!0;var o=t.validator,r=o&&qn(o.option)&&o.option("dataGetter"),a=qn(r)&&r(),l={value:n,validator:o,rule:t};a&&ye(l,a);var c=t.validationCallback(l);if(!Ch(c))throw ua.Error("E0103");return this._getWrappedPromise($s(c).promise())}_getWrappedPromise(n){var t=new Rt;return n.then(function(o){t.resolve(o)},function(o){var r={isValid:!1};ce(o)&&(Wi(o)?r.message=o:to(o)&&ce(o.message)&&Wi(o.message)&&(r.message=o.message)),t.resolve(r)}),t.promise()}},compare:new class int extends Kv{constructor(){super(),this.NAME="compare"}_validate(n,t){if(!t.comparisonTarget)throw ua.Error("E0102");if(t.ignoreEmptyValue&&this._isValueEmpty(n))return!0;ye(t,{reevaluate:!0});var o=t.comparisonTarget();switch(t.comparisonType||"=="){case"==":return n==o;case"!=":return n!=o;case"===":return n===o;case"!==":return n!==o;case">":return n>o;case">=":return n>=o;case"<":return n{var o=t.validate();e.isValid=e.isValid&&o.isValid,o.brokenRules&&(e.brokenRules=e.brokenRules.concat(o.brokenRules)),e.validators.push(t),"pending"===o.status&&this._addPendingValidator(t),this._subscribeToChangeEvents(t)}),this._pendingValidators.length?e.status="pending":(e.status=e.isValid?"valid":"invalid",this._unsubscribeFromAllChangeEvents(),this._raiseValidatedEvent(e)),this._updateValidationInfo(e),ye({},this._validationInfo.result)},_subscribeToChangeEvents(e){e.on("validating",this._onValidatorStatusChanged),e.on("validated",this._onValidatorStatusChanged)},_unsubscribeFromChangeEvents(e){e.off("validating",this._onValidatorStatusChanged),e.off("validated",this._onValidatorStatusChanged)},_unsubscribeFromAllChangeEvents(){je(this.validators,(e,n)=>{this._unsubscribeFromChangeEvents(n)})},_updateValidationInfo(e){this._validationInfo.result=e,"pending"===e.status&&(this._validationInfo.deferred||(this._validationInfo.deferred=new Rt,this._validationInfo.result.complete=this._validationInfo.deferred.promise()))},_addPendingValidator(e){Bd(this._pendingValidators,function(t){return t===e})[0]||this._pendingValidators.push(e)},_removePendingValidator(e){var n=Ki(e,this._pendingValidators);n>=0&&this._pendingValidators.splice(n,1)},_orderBrokenRules(e){var n=[];return je(this.validators,function(t,o){var r=Bd(e,function(a){return a.validator===o});r.length&&(n=n.concat(r))}),n},_updateBrokenRules(e){if(this._validationInfo.result){var n=this._validationInfo.result.brokenRules,t=Bd(n,function(o){return o.validator!==e.validator});e.brokenRules&&(n=t.concat(e.brokenRules)),this._validationInfo.result.brokenRules=this._orderBrokenRules(n)}},_onValidatorStatusChanged(e){"pending"!==e.status?this._resolveIfComplete(e):this._addPendingValidator(e.validator)},_resolveIfComplete(e){if(this._removePendingValidator(e.validator),this._updateBrokenRules(e),!this._pendingValidators.length){if(this._unsubscribeFromAllChangeEvents(),!this._validationInfo.result)return;this._validationInfo.result.status=0===this._validationInfo.result.brokenRules.length?"valid":"invalid",this._validationInfo.result.isValid="valid"===this._validationInfo.result.status;var n=ye({},this._validationInfo.result,{complete:null}),t=this._validationInfo.deferred;this._validationInfo.deferred=null,this._raiseValidatedEvent(n),t&&setTimeout(()=>{t.resolve(n)})}},_raiseValidatedEvent(e){this._eventsStrategy.fireEvent("validated",[e])},_resetValidationInfo(){this._validationInfo={result:null,deferred:null}},_synchronizeValidationInfo(){this._validationInfo.result&&(this._validationInfo.result.validators=this.validators)},removeRegisteredValidator(e){var n=Ki(e,this.validators);n>-1&&(this.validators.splice(n,1),this._synchronizeValidationInfo(),this._resolveIfComplete({validator:e}))},registerValidator(e){Ki(e,this.validators)<0&&(this.validators.push(e),this._synchronizeValidationInfo())},reset(){je(this.validators,function(e,n){n.reset()}),this._pendingValidators=[],this._resetValidationInfo()},on(e,n){return this._eventsStrategy.on(e,n),this},off(e,n){return this._eventsStrategy.off(e,n),this}}),Oy={groups:[],getGroupConfig(e){var n=Bd(this.groups,function(t){return t.group===e});if(n.length)return n[0]},findGroup(e,n){var t,o,a=(null===(t=e.data())||void 0===t||null===(o=t.dxComponents)||void 0===o?void 0:o.includes("dxValidationGroup"))&&e.dxValidationGroup("instance");if(a)return a;var l=e.parents(".dx-validationgroup").first();return l.length?l.dxValidationGroup("instance"):n},initGroups(){this.groups=[],this.addGroup()},addGroup(e){var n=this.getGroupConfig(e);return n||(n=new ant(e),this.groups.push(n)),n},removeGroup(e){var n=this.getGroupConfig(e),t=Ki(n,this.groups);return t>-1&&this.groups.splice(t,1),n},_setDefaultMessage(e){var{rule:n,validator:t,name:o}=e;ce(n.message)||(n.message=t.defaultFormattedMessage&&ce(o)?t.defaultFormattedMessage(o):t.defaultMessage())},_addBrokenRule(e){var{result:n,rule:t}=e;n.brokenRule||(n.brokenRule=t),n.brokenRules||(n.brokenRules=[]),n.brokenRules.push(t)},validate(e,n,t){var o,r={name:t,value:e,brokenRule:null,brokenRules:null,isValid:!0,validationRules:n,pendingRules:null,status:"valid",complete:null},a=null==n||null===(o=n[0])||void 0===o?void 0:o.validator,l=[];return je(n||[],(c,p)=>{var T,b=aS[p.type];if(!b)throw ua.Error("E0100");return ce(p.isValid)&&p.value===e&&!p.reevaluate?!!p.isValid||(r.isValid=!1,this._addBrokenRule({result:r,rule:p}),!1):(p.value=e,"async"===p.type?(l.push({rule:p,ruleValidator:b}),!0):(T=b.validate(e,p),p.isValid=T,T||(r.isValid=!1,this._setDefaultMessage({rule:p,validator:b,name:t}),this._addBrokenRule({result:r,rule:p})),!!p.isValid&&void 0))}),r.isValid&&!r.brokenRules&&l.length&&(r=this._validateAsyncRules({value:e,items:l,result:r,name:t})),this._synchronizeGroupValidationInfo(a,r),r.status=r.pendingRules?"pending":r.isValid?"valid":"invalid",r},_synchronizeGroupValidationInfo(e,n){var t;if(e){var o=Oy.getGroupConfig(e._validationGroup);o._updateBrokenRules.call(o,{validator:e,brokenRules:null!==(t=n.brokenRules)&&void 0!==t?t:[]})}},_validateAsyncRules(e){var{result:n,value:t,items:o,name:r}=e,a=[];return je(o,(l,c)=>{var p=c.ruleValidator.validate(t,c.rule);if(Ch(p)){n.pendingRules||(n.pendingRules=[]),n.pendingRules.push(c.rule);var b=p.then(T=>{var L=this._getPatchedRuleResult(T);return this._updateRuleConfig({rule:c.rule,ruleResult:L,validator:c.ruleValidator,name:r}),L});a.push(b)}else this._updateRuleConfig({rule:c.rule,ruleResult:this._getPatchedRuleResult(p),validator:c.ruleValidator,name:r})}),a.length&&(n.complete=vr.all(a).then(l=>this._getAsyncRulesResult({result:n,values:l}))),n},_updateRuleConfig(e){var{rule:n,ruleResult:t,validator:o,name:r}=e;n.isValid=t.isValid,t.isValid||(ce(t.message)&&Wi(t.message)&&t.message.length?n.message=t.message:this._setDefaultMessage({rule:n,validator:o,name:r}))},_getPatchedRuleResult(e){var n;return to(e)?(n=ye({},e),ce(n.isValid)||(n.isValid=!0)):n={isValid:!hv(e)||e},n},_getAsyncRulesResult(e){var{values:n,result:t}=e;return je(n,(o,r)=>{!1===r.isValid&&(t.isValid=r.isValid,this._addBrokenRule({result:t,rule:t.pendingRules[o]}))}),t.pendingRules=null,t.complete=null,t.status=t.isValid?"valid":"invalid",t},registerValidatorInGroup(e,n){var t=Oy.addGroup(e);t.registerValidator.call(t,n)},_shouldRemoveGroup:(e,n)=>!(void 0===e||e&&"dxValidationGroup"===e.NAME||n.length),removeRegisteredValidator(e,n){var t=Oy.getGroupConfig(e);t&&(t.removeRegisteredValidator.call(t,n),this._shouldRemoveGroup(e,t.validators)&&this.removeGroup(e))},initValidationOptions(e){var n={};return e&&["isValid","validationStatus","validationError","validationErrors"].forEach(t=>{t in e&&ye(n,this.synchronizeValidationOptions({name:t,value:e[t]},e))}),n},synchronizeValidationOptions(e,n){var{name:t,value:o}=e;switch(t){case"validationStatus":var r="valid"===o||"pending"===o;return n.isValid!==r?{isValid:r}:{};case"isValid":var{validationStatus:a}=n,l=a;return o&&"invalid"===a?l="valid":!o&&"invalid"!==a&&(l="invalid"),l!==a?{validationStatus:l}:{};case"validationErrors":var c=o&&o.length?o[0]:null;return n.validationError!==c?{validationError:c}:{};case"validationError":var{validationErrors:p}=n;if(!o&&p)return{validationErrors:null};if(o&&!p)return{validationErrors:[o]};if(o&&p&&o!==p[0])return p[0]=o,{validationErrors:p.slice()}}return{}},validateGroup(e){var n=Oy.getGroupConfig(e);if(!n)throw ua.Error("E0110");return n.validate()},resetGroup(e){var n=Oy.getGroupConfig(e);if(!n)throw ua.Error("E0110");return n.reset()}};Oy.initGroups();const Js=Oy;var LR="dx-invalid-message",Sge=ju.inherit({_getDefaultOptions(){return ye(this.callBase(),{integrationOptions:{},templatesRenderAsynchronously:!1,shading:!1,width:"auto",height:"auto",closeOnOutsideClick:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1,rtlEnabled:!1,contentTemplate:this._renderInnerHtml,maxWidth:"100%",mode:"auto",validationErrors:void 0,positionRequest:void 0,boundary:void 0,offset:{h:0,v:0},contentId:void 0})},_init(){this.callBase(),this.updateMaxWidth(),this._updatePosition()},_initMarkup(){this.callBase(),this._ensureMessageNotEmpty(),this._toggleModeClass(),this._updateContentId()},_ensureMessageNotEmpty:function(){this._textMarkup=this._getTextMarkup();var e=this.option("visible")&&this._textMarkup;this._toggleVisibilityClasses(e)},_toggleVisibilityClasses:function(e){e?(this.$element().addClass(LR),this.$wrapper().addClass(LR)):(this.$element().removeClass(LR),this.$wrapper().removeClass(LR))},_updateContentId(){var{container:e,contentId:n}=this.option(),t=null!=n?n:K(e).attr("aria-describedby");this.$content().addClass("dx-invalid-message-content").attr("id",t)},_renderInnerHtml(e){var n=e&&K(e);null==n||n.html(this._textMarkup)},_getTextMarkup(){var e,n=null!==(e=this.option("validationErrors"))&&void 0!==e?e:[],t="";return n.forEach(o=>{var r;t+=(t?"
":"")+mw(null!==(r=null==o?void 0:o.message)&&void 0!==r?r:"")}),t},_toggleModeClass(){var e=this.option("mode");this.$wrapper().toggleClass("dx-invalid-message-auto","auto"===e).toggleClass("dx-invalid-message-always","always"===e)},updateMaxWidth(){var e=this.option("target"),n=ho(e),t="100%";n&&(t=Math.max(n,100)),this.option({maxWidth:t})},_updatePosition:function(){var{positionRequest:e,rtlEnabled:n,offset:t,boundary:o}=this.option(),r=c0(n),a="below"===e?[" top"," bottom"]:[" bottom"," top"];n&&(t.h=-t.h),"below"!==e&&(t.v=-t.v),this.option("position",{offset:t,boundary:o,my:r+a[0],at:r+a[1],collision:"none flip"})},_optionChanged(e){var{name:n,value:t}=e;switch(n){case"target":this.updateMaxWidth(),this.callBase(e);break;case"boundary":this.option("position.boundary",t);break;case"mode":this._toggleModeClass(t);break;case"rtlEnabled":case"offset":case"positionRequest":this._updatePosition();break;case"container":this._updateContentId(),this.callBase(e);break;case"contentId":this._updateContentId();break;case"validationErrors":this._ensureMessageNotEmpty(),this._renderInnerHtml(this.$content());break;default:this.callBase(e)}}});xi("dxValidationMessage",Sge);const Tge=Sge;var Dge="dx-invalid-message-auto",Ige="dx-validation-target",mnt=["outlined","filled","underlined"],kge={validationMessageMode:"mode",validationMessageOffset:"offset",validationBoundary:"boundary"},V$=br.inherit({ctor:function(){this.showValidationMessageTimeout=null,this.validationRequest=_r(),this.callBase.apply(this,arguments)},_createElement:function(e){this.callBase(e);var n=this.$element();n&&Hs(n[0],Ige,this)},_initOptions:function(e){this.callBase.apply(this,arguments),this.option(Js.initValidationOptions(e))},_init:function(){this.callBase(),this._options.cache("validationTooltipOptions",this.option("validationTooltipOptions")),this.$element().addClass("dx-show-invalid-badge")},_getDefaultOptions:function(){return ye(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationErrors:null,validationStatus:"valid",validationMessageMode:"auto",validationBoundary:void 0,validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})},_attachKeyboardEvents:function(){this.option("readOnly")||this.callBase()},_setOptionsByReference:function(){this.callBase(),ye(this._optionsByReference,{validationError:!0})},_createValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_initMarkup:function(){var e;this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name")),this.callBase(),this._renderValidationState(),null===(e=this.option("_onMarkupRendered"))||void 0===e||e()},_raiseValueChangeAction:function(e,n){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(e,n))},_valueChangeArgs:function(e,n){return{value:e,previousValue:n,event:this._valueChangeEventInstance}},_saveValueChangeEvent:function(e){this._valueChangeEventInstance=e},_focusInHandler:function(e){var n="auto"===this.option("validationMessageMode");if(this._canValueBeChangedByClick()&&n){var t,o=null===(t=this._validationMessage)||void 0===t?void 0:t.$wrapper();null==o||o.removeClass(Dge),clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout(()=>null==o?void 0:o.addClass(Dge),150)}return this.callBase(e)},_canValueBeChangedByClick:function(){return!1},_getStylingModePrefix:function(){return"dx-editor-"},_renderStylingMode:function(){var e=this.option("stylingMode"),n=this._getStylingModePrefix(),t=mnt.map(l=>n+l);t.forEach(l=>this.$element().removeClass(l));var o=n+e;if(-1===t.indexOf(o)){var r=this._getDefaultOptions().stylingMode,a=this._convertRulesToOptions(this._defaultOptionsRules()).stylingMode;o=n+(a||r)}this.$element().addClass(o)},_getValidationErrors:function(){var e=this.option("validationErrors");return!e&&this.option("validationError")&&(e=[this.option("validationError")]),e},_disposeValidationMessage:function(){this._$validationMessage&&(this._$validationMessage.remove(),this.setAria("describedby",null),this._$validationMessage=void 0,this._validationMessage=void 0)},_toggleValidationClasses:function(e){this.$element().toggleClass("dx-invalid",e),this.setAria("invalid",e||void 0)},_renderValidationState:function(){var e=this.option("isValid")&&"invalid"!==this.option("validationStatus"),n=this._getValidationErrors(),t=this.$element();if(this._toggleValidationClasses(!e),Ii()&&(this._disposeValidationMessage(),!e&&n)){var{validationMessageMode:o,validationMessageOffset:r,validationBoundary:a,rtlEnabled:l}=this.option();this._$validationMessage=K("
").appendTo(t);var c="dx-".concat(new ss);this.setAria("describedby",c),this._validationMessage=new Tge(this._$validationMessage,ye({validationErrors:n,rtlEnabled:l,target:this._getValidationMessageTarget(),container:t,mode:o,positionRequest:"below",offset:r,boundary:a,contentId:c},this._options.cache("validationTooltipOptions"))),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")}},_getValidationMessageTarget:function(){return this.$element()},_toggleReadOnlyState:function(){var e=this.option("readOnly");this._toggleBackspaceHandler(e),this.$element().toggleClass("dx-state-readonly",!!e),this.setAria("readonly",e||void 0)},_toggleBackspaceHandler:function(e){var n=this._keyboardEventBindingTarget(),t=_n("keydown","editorReadOnly");We.off(n,t),e&&We.on(n,t,o=>{"backspace"===ls(o)&&o.preventDefault()})},_dispose:function(){Hs(this.$element()[0],Ige,null),clearTimeout(this.showValidationMessageTimeout),this._disposeValidationMessage(),this.callBase()},_setSubmitElementName:function(e){var n=this._getSubmitElement();!n||(e.length>0?n.attr("name",e):n.removeAttr("name"))},_getSubmitElement:function(){return null},_setValidationMessageOption:function(e){var n,{name:t,value:o}=e;null===(n=this._validationMessage)||void 0===n||n.option(kge[t]?kge[t]:t,o)},_hasActiveElement:gt,_optionChanged:function(e){var n;switch(e.name){case"onValueChanged":this._createValueChangeAction();break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":e.value!=e.previousValue&&this.validationRequest.fire({value:e.value,editor:this}),this._valueChangeActionSuppressed||(this._raiseValueChangeAction(e.value,e.previousValue),this._saveValueChangeEvent(void 0));break;case"width":this.callBase(e),null===(n=this._validationMessage)||void 0===n||n.updateMaxWidth();break;case"name":this._setSubmitElementName(e.value);break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(Js.synchronizeValidationOptions(e,this.option())),this._renderValidationState();break;case"validationBoundary":case"validationMessageMode":case"validationMessageOffset":this._setValidationMessageOption(e);break;case"rtlEnabled":this._setValidationMessageOption(e),this.callBase(e);break;case"validationTooltipOptions":this._innerWidgetOptionChanged(this._validationMessage,e);break;default:this.callBase(e)}},blur:function(){this._hasActiveElement()&&Hd()},reset:function(){var e=this._getDefaultOptions();this.option("value",e.value)}});V$.isEditor=e=>e instanceof V$;const hp=V$;class RR{constructor(n,t,o){this.instance=null,this.$container=null,this.$placeMarker=null,this.editor=t,this.name=n,this.options=o||{}}_addPlaceMarker(n){this.$placeMarker=K("
").appendTo(n)}_addToContainer(n){var{$placeMarker:t,$container:o}=this;t?t.replaceWith(n):n.appendTo(o)}_attachEvents(){throw"Not implemented"}_create(){throw"Not implemented"}_isRendered(){return!!this.instance}_isVisible(){var{editor:n,options:t}=this;return t.visible||!n.option("readOnly")}_isDisabled(){throw"Not implemented"}_shouldRender(){return this._isVisible()&&!this._isRendered()}dispose(){var{instance:n,$placeMarker:t}=this;n&&(n.dispose?n.dispose():n.remove(),this.instance=null),t&&t.remove()}render(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$container;if(this.$container=n,this._isVisible()){var{instance:t,$element:o}=this._create();this.instance=t,this._attachEvents(t,o)}else this._addPlaceMarker(n)}update(){return this._shouldRender()&&this.render(),!!this.instance}}var _nt=io.down;class Ont extends RR{_create(){var n=K("").addClass("dx-clear-button-area").append(K("").addClass("dx-icon").addClass("dx-icon-clear"));return this._addToContainer(n),this.update(!0),{instance:n,$element:n}}_isVisible(){var{editor:n}=this;return n._isClearButtonVisible()}_attachEvents(n,t){var{editor:o}=this,r=o.NAME;We.on(t,_n(_nt,r),a=>{a.preventDefault(),"mouse"!==a.pointerType&&o._clearValueHandler(a)}),We.on(t,_n(Go,r),a=>o._clearValueHandler(a))}_legacyRender(n,t){n.toggleClass("dx-show-clear-button",t)}update(){!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&super.update();var{editor:t,instance:o}=this,r=t.$element(),a=this._isVisible();o&&o.toggleClass("dx-state-invisible",!a),this._legacyRender(r,a)}}var sS=Array.isArray;function BR(e){var n=typeof e;return"string"===n||"number"===n}function ns(e){return null==e}function lS(e){return null===e||!1===e||!0===e||void 0===e}function kl(e){return"function"==typeof e}function cS(e){return"string"==typeof e}function Wp(e){return null===e}function wnt(e){return void 0===e}function Yv(e,n){var t={};if(e)for(var o in e)t[o]=e[o];if(n)for(var r in n)t[r]=n[r];return t}function N$(e){return!Wp(e)&&"object"==typeof e}var Fd={};function F$(e){return e.substr(2).toLowerCase()}function Age(e,n){e.appendChild(n)}function U$(e,n,t){Wp(t)?Age(e,n):e.insertBefore(n,t)}function Lge(e,n){e.removeChild(n)}function Rge(e){for(var n=0;n0,b=Wp(c),T=cS(c)&&"$"===c[0];p||b||T?(t=t||n.slice(0,a),(p||T)&&(l=Ud(l)),(b||T)&&(l.key="$"+a),t.push(l)):t&&t.push(l),l.flags|=65536}}o=0===(t=t||n).length?1:8}else(t=n).flags|=65536,81920&n.flags&&(t=Ud(n)),o=2;return e.children=t,e.childFlags=o,e}function fS(e){return lS(e)||BR(e)?gS(e,null):sS(e)?gp(e,0,null):16384&e.flags?Ud(e):e}var My="http://www.w3.org/1999/xlink",G$="http://www.w3.org/XML/1998/namespace",Uge={"xlink:actuate":My,"xlink:arcrole":My,"xlink:href":My,"xlink:role":My,"xlink:show":My,"xlink:title":My,"xlink:type":My,"xml:base":G$,"xml:lang":G$,"xml:space":G$};function VR(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var jge=VR(0),W$=VR(null),Gge=VR(!0);function Wge(e,n){var t=n.$EV;return t||(t=n.$EV=VR(null)),t[e]||1==++jge[e]&&(W$[e]=function Unt(e){var n="onClick"===e||"onDblClick"===e?function Nnt(e){return function(n){0===n.button?Yge(n,!0,e,qge(n)):n.stopPropagation()}}(e):function Fnt(e){return function(n){Yge(n,!1,e,qge(n))}}(e);return document.addEventListener(F$(e),n),n}(e)),t}function Kge(e,n){var t=n.$EV;t&&t[e]&&(0==--jge[e]&&(document.removeEventListener(F$(e),W$[e]),W$[e]=null),t[e]=null)}function Yge(e,n,t,o){var r=function Bnt(e){return kl(e.composedPath)?e.composedPath()[0]:e.target}(e);do{if(n&&r.disabled)return;var a=r.$EV;if(a){var l=a[t];if(l&&(o.dom=r,l.event?l.event(l.data,e):l(e),e.cancelBubble))return}r=r.parentNode}while(!Wp(r))}function znt(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Hnt(){return this.defaultPrevented}function Vnt(){return this.cancelBubble}function qge(e){var n={dom:document};return e.isDefaultPrevented=Hnt,e.isPropagationStopped=Vnt,e.stopPropagation=znt,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function $ge(e,n,t){if(e[n]){var o=e[n];o.event?o.event(o.data,t):o(t)}else{var r=n.toLowerCase();e[r]&&e[r](t)}}function mS(e,n){var t=function(o){var r=this.$V;if(r){var a=r.props||Fd,l=r.dom;if(cS(e))$ge(a,e,o);else for(var c=0;c-1&&n.options[a]&&(c=n.options[a].value),t&&ns(c)&&(c=e.defaultValue),_S(o,c)}}var Znt=mS("onInput",Qge),Jnt=mS("onChange");function Qge(e,n,t){var o=e.value,r=n.value;if(ns(o)){if(t){var a=e.defaultValue;!ns(a)&&a!==r&&(n.defaultValue=a,n.value=a)}}else r!==o&&(n.defaultValue=o,n.value=o)}function Xge(e,n,t,o,r,a){64&e?Y$(o,t):256&e?Jge(o,t,r,n):128&e&&Qge(o,t,r),a&&(t.$V=n)}function e0e(e){return e.type&&K$(e.type)?!ns(e.checked):!ns(e.value)}function NR(e){e&&!j$(e,null)&&e.current&&(e.current=null)}function vS(e,n,t){e&&(kl(e)||void 0!==e.current)&&t.push(function(){!j$(e,n)&&void 0!==e.current&&(e.current=n)})}function O1(e,n){F2(e),dS(e,n)}function F2(e){var o,n=e.flags,t=e.children;if(481&n){var r=e.props;NR(o=e.ref);var a=e.childFlags;if(!Wp(r))for(var l=Object.keys(r),c=0,p=l.length;c0;for(var c in l&&(a=e0e(t))&&function Xnt(e,n,t){64&e?function Knt(e,n){K$(n.type)?(wy(e,"change",Wnt),wy(e,"click",Zge)):wy(e,"input",Gnt)}(n,t):256&e?function $nt(e){wy(e,"change",qnt)}(n):128&e&&function Qnt(e,n){wy(e,"input",Znt),n.onChange&&wy(e,"change",Jnt)}(n,t)}(n,o,t),t)q$(c,null,t[c],o,r,a,null);l&&Xge(n,e,o,t,!0,a)}function n0e(e,n,t){var o=fS(e.render(n,e.state,t)),r=t;return kl(e.getChildContext)&&(r=Yv(t,e.getChildContext())),e.$CX=r,o}function i0e(e,n,t,o,r,a){var l=new n(t,o),c=l.$N=Boolean(n.getDerivedStateFromProps||l.getSnapshotBeforeUpdate);if(l.$SVG=r,l.$L=a,e.children=l,l.$BS=!1,l.context=o,l.props===Fd&&(l.props=t),c)l.state=zge(l,t,l.state);else if(kl(l.componentWillMount)){l.$BR=!0,l.componentWillMount();var p=l.$PS;if(!Wp(p)){var b=l.state;if(Wp(b))l.state=p;else for(var T in p)b[T]=p[T];l.$PS=null}l.$BR=!1}return l.$LI=n0e(l,t,o),l}function $$(e,n){var t=e.props||Fd;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function jd(e,n,t,o,r,a){var l=e.flags|=16384;481&l?r0e(e,n,t,o,r,a):4&l?function ait(e,n,t,o,r,a){var l=i0e(e,e.type,e.props||Fd,t,o,a);jd(l.$LI,n,l.$CX,o,r,a),a0e(e.ref,l,a)}(e,n,t,o,r,a):8&l?(function sit(e,n,t,o,r,a){jd(e.children=fS($$(e,t)),n,t,o,r,a)}(e,n,t,o,r,a),s0e(e,a)):512&l||16&l?o0e(e,n,r):8192&l?function rit(e,n,t,o,r,a){var l=e.children,c=e.childFlags;12&c&&0===l.length&&(c=e.childFlags=2,l=e.children=HR()),2===c?jd(l,t,n,o,r,a):Py(l,t,n,o,r,a)}(e,t,n,o,r,a):1024&l&&function oit(e,n,t,o,r){jd(e.children,e.ref,n,!1,null,r);var a=HR();o0e(a,t,o),e.dom=a.dom}(e,t,n,r,a)}function o0e(e,n,t){var o=e.dom=document.createTextNode(e.children);Wp(n)||U$(n,o,t)}function r0e(e,n,t,o,r,a){var l=e.flags,c=e.props,p=e.className,b=e.childFlags,T=e.dom=function Snt(e,n){return n?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}(e.type,o=o||(32&l)>0),L=e.children;if(!ns(p)&&""!==p&&(o?T.setAttribute("class",p):T.className=p),16===b)pS(T,L);else if(1!==b){var N=o&&"foreignObject"!==e.type;2===b?(16384&L.flags&&(e.children=L=Ud(L)),jd(L,T,t,N,null,a)):(8===b||4===b)&&Py(L,T,t,N,null,a)}Wp(n)||U$(n,T,r),Wp(c)||t0e(e,l,c,T,o),vS(e.ref,T,a)}function Py(e,n,t,o,r,a){for(var l=0;l0,c!==p){var N=c||Fd;if((L=p||Fd)!==Fd)for(var G in(b=(448&r)>0)&&(T=e0e(L)),L){var Y=N[G],ie=L[G];Y!==ie&&q$(G,Y,ie,l,o,T,e)}if(N!==Fd)for(var ue in N)ns(L[ue])&&!ns(N[ue])&&q$(ue,N[ue],null,l,o,T,e)}var xe=n.children,Se=n.className;e.className!==Se&&(ns(Se)?l.removeAttribute("class"):o?l.setAttribute("class",Se):l.className=Se),4096&r?function pit(e,n){e.textContent!==n&&(e.textContent=n)}(l,xe):Z$(e.childFlags,n.childFlags,e.children,xe,l,t,o&&"foreignObject"!==n.type,null,e,a),b&&Xge(r,n,l,L,!1,T);var Te=n.ref,Me=e.ref;Me!==Te&&(NR(Me),vS(Te,l,a))}(e,n,o,r,c,l):4&c?function vit(e,n,t,o,r,a,l){var c=n.children=e.children;if(!Wp(c)){c.$L=l;var p=n.props||Fd,b=n.ref,T=e.ref,L=c.state;if(!c.$N){if(kl(c.componentWillReceiveProps)){if(c.$BR=!0,c.componentWillReceiveProps(p,o),c.$UN)return;c.$BR=!1}Wp(c.$PS)||(L=Yv(L,c.$PS),c.$PS=null)}l0e(c,L,p,t,o,r,!1,a,l),T!==b&&(NR(T),vS(b,c,l))}}(e,n,t,o,r,a,l):8&c?function Cit(e,n,t,o,r,a,l){var c=!0,p=n.props||Fd,b=n.ref,T=e.props,L=!ns(b),N=e.children;if(L&&kl(b.onComponentShouldUpdate)&&(c=b.onComponentShouldUpdate(T,p)),!1!==c){L&&kl(b.onComponentWillUpdate)&&b.onComponentWillUpdate(T,p);var G=fS($$(n,o));U2(N,G,t,o,r,a,l),n.children=G,L&&kl(b.onComponentDidUpdate)&&b.onComponentDidUpdate(T,p)}else n.children=N}(e,n,t,o,r,a,l):16&c?function yit(e,n){var t=n.children,o=n.dom=e.dom;t!==e.children&&(o.nodeValue=t)}(e,n):512&c?n.dom=e.dom:8192&c?function hit(e,n,t,o,r,a){var l=e.children,c=n.children,p=e.childFlags,b=n.childFlags,T=null;12&b&&0===c.length&&(b=n.childFlags=2,c=n.children=HR());var L=0!=(2&b);if(12&p){var N=l.length;(8&p&&8&b||L||!L&&c.length>N)&&(T=m0(l[N-1],!1).nextSibling)}Z$(p,b,l,c,t,o,r,T,e,a)}(e,n,t,o,r,l):function git(e,n,t,o){var r=e.ref,a=n.ref,l=n.children;if(Z$(e.childFlags,n.childFlags,e.children,l,r,t,!1,null,e,o),n.dom=e.dom,r!==a&&!lS(l)){var c=l.dom;Lge(r,c),Age(a,c)}}(e,n,o,l)}function Z$(e,n,t,o,r,a,l,c,p,b){switch(e){case 2:switch(n){case 2:U2(t,o,r,a,l,c,b);break;case 1:O1(t,r);break;case 16:F2(t),pS(r,o);break;default:!function mit(e,n,t,o,r,a){F2(e),Py(n,t,o,r,m0(e,!0),a),dS(e,t)}(t,o,r,a,l,b)}break;case 1:switch(n){case 2:jd(o,r,a,l,c,b);break;case 1:break;case 16:pS(r,o);break;default:Py(o,r,a,l,c,b)}break;case 16:switch(n){case 16:!function uit(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:pS(t,n))}(t,o,r);break;case 2:FR(r),jd(o,r,a,l,c,b);break;case 1:FR(r);break;default:FR(r),Py(o,r,a,l,c,b)}break;default:switch(n){case 16:CS(t),pS(r,o);break;case 2:UR(r,p,t),jd(o,r,a,l,c,b);break;case 1:UR(r,p,t);break;default:var T=0|t.length,L=0|o.length;0===T?L>0&&Py(o,r,a,l,c,b):0===L?UR(r,p,t):8===n&&8===e?function xit(e,n,t,o,r,a,l,c,p,b){var ie,ue,T=a-1,L=l-1,N=0,G=e[N],Y=n[N];e:{for(;G.key===Y.key;){if(16384&Y.flags&&(n[N]=Y=Ud(Y)),U2(G,Y,t,o,r,c,b),e[N]=Y,++N>T||N>L)break e;G=e[N],Y=n[N]}for(G=e[T],Y=n[L];G.key===Y.key;){if(16384&Y.flags&&(n[L]=Y=Ud(Y)),U2(G,Y,t,o,r,c,b),e[T]=Y,L--,N>--T||N>L)break e;G=e[T],Y=n[L]}}if(N>T){if(N<=L)for(ue=(ie=L+1)L)for(;N<=T;)O1(e[N++],t);else!function Oit(e,n,t,o,r,a,l,c,p,b,T,L,N){var G,Y,ie,ue=0,xe=c,Se=c,Te=a-c+1,Me=l-c+1,Le=new Int32Array(Me+1),He=Te===o,nt=!1,ut=0,wt=0;if(r<4||(Te|Me)<32)for(ue=xe;ue<=a;++ue)if(G=e[ue],wtc?nt=!0:ut=c,16384&Y.flags&&(n[c]=Y=Ud(Y)),U2(G,Y,p,t,b,T,N),++wt;break}!He&&c>l&&O1(G,p)}else He||O1(G,p);else{var Lt={};for(ue=Se;ue<=l;++ue)Lt[n[ue].key]=ue;for(ue=xe;ue<=a;++ue)if(G=e[ue],wtxe;)O1(e[xe++],p);Le[c-Se]=ue+1,ut>c?nt=!0:ut=c,16384&(Y=n[c]).flags&&(n[c]=Y=Ud(Y)),U2(G,Y,p,t,b,T,N),++wt}else He||O1(G,p);else He||O1(G,p)}if(He)UR(p,L,e),Py(n,p,t,b,T,N);else if(nt){var Kt=function Mit(e){var n=0,t=0,o=0,r=0,a=0,l=0,c=0,p=e.length;for(p>c0e&&(c0e=p,j2=new Int32Array(p),jR=new Int32Array(p));t>1]]0&&(jR[t]=j2[a-1]),j2[a]=t)}a=r+1;var b=new Int32Array(a);for(l=j2[a-1];a-- >0;)b[a]=l,l=jR[l],j2[a]=0;return b}(Le);for(c=Kt.length-1,ue=Me-1;ue>=0;ue--)0===Le[ue]?(16384&(Y=n[ut=ue+Se]).flags&&(n[ut]=Y=Ud(Y)),jd(Y,p,t,b,(ie=ut+1)=0;ue--)0===Le[ue]&&(16384&(Y=n[ut=ue+Se]).flags&&(n[ut]=Y=Ud(Y)),jd(Y,p,t,b,(ie=ut+1)l?l:a,T=0;Tl)for(T=b;Tn())}}},Q$=(e,n)=>{if(!(e instanceof Object&&n instanceof Object))return e===n;const o=Object.keys(e),r=Object.keys(n);return o.length===r.length&&!o.some(l=>e[l]!==n[l])};class is extends WR{constructor(){super(...arguments),this._pendingContext=this.context}componentWillReceiveProps(n,t){this._pendingContext=null!=t?t:{}}shouldComponentUpdate(n,t){return!Q$(this.props,n)||!Q$(this.state,t)||!Q$(this.context,this._pendingContext)}}class zf extends is{constructor(){super(...arguments),this._effects=[]}createEffects(){return[]}updateEffects(){}componentWillMount(){qv.lock()}componentWillUpdate(n,t,o){qv.lock()}componentDidMount(){qv.callbacks.push(()=>{this._effects=this.createEffects()}),qv.callEffects()}componentDidUpdate(){qv.callbacks.push(()=>this.updateEffects()),qv.callEffects()}destroyEffects(){this._effects.forEach(n=>n.dispose())}componentWillUnmount(){this.destroyEffects()}}class kh extends zf{constructor(){super(...arguments),this.vDomElement=null}vDomUpdateClasses(){const n=this.vDomElement,t=n.className.length?n.className.split(" "):[],o=t.filter(a=>n.dxClasses.previous.indexOf(a)<0),r=n.dxClasses.previous.filter(a=>t.indexOf(a)<0);o.forEach(a=>{const l=n.dxClasses.removed.indexOf(a);l>-1?n.dxClasses.removed.splice(l,1):n.dxClasses.added.push(a)}),r.forEach(a=>{const l=n.dxClasses.added.indexOf(a);l>-1?n.dxClasses.added.splice(l,1):n.dxClasses.removed.push(a)})}componentDidMount(){const n=m0(this.$LI,!0);this.vDomElement=n,super.componentDidMount(),n.dxClasses=n.dxClasses||{removed:[],added:[],previous:[]},n.dxClasses.previous=null!=n&&n.className.length?n.className.split(" "):[]}componentDidUpdate(){super.componentDidUpdate();const n=this.vDomElement;null!==n&&(n.dxClasses.added.forEach(t=>n.classList.add(t)),n.dxClasses.removed.forEach(t=>n.classList.remove(t)),n.dxClasses.previous=n.className.length?n.className.split(" "):[])}shouldComponentUpdate(n,t){const o=super.shouldComponentUpdate(n,t);return o&&this.vDomUpdateClasses(),o}}class rl{constructor(n,t){this.effect=n,this.dependency=t,this.destroy=n()}update(n){const t=this.dependency;n&&(this.dependency=n),(!n||n.some((o,r)=>t[r]!==o))&&(this.dispose(),this.destroy=this.effect())}dispose(){this.destroy&&this.destroy()}}const Ah=()=>new rl(()=>{u0e()},[]),Dit=["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"],Iit=/[A-Z]/g,Hf=e=>{if(e instanceof Object)return Object.keys(e).reduce((n,t)=>{const o=e[t],r=(e=>e.replace(Iit,"-$&").toLowerCase())(t);return n[r]=(e=>"number"==typeof e||!isNaN(Number(e)))(o)?((e,n)=>Dit.indexOf(e)>-1?n:`${n}px`)(r,o):o,n},{})};function X5(e){return null===e}function g0e(e,n,t,o,r,a){const l=e.childFlags,c=e.children,p=e.props,b=e.flags;if(1!==l){if(2===l)X5(t)?jd(c,n,o,r,null,a):t=(t=bS(c,n,t,o,r,a))?t.nextSibling:null;else if(16===l)X5(t)?n.appendChild(document.createTextNode(c)):1!==n.childNodes.length||3!==t.nodeType?n.textContent=c:t.nodeValue!==c&&(t.nodeValue=c),t=null;else if(12&l){let T=!1;for(let L=0,N=c.length;L0?jd(G,n,o,r,t,a):t=(t=bS(G,n,t,o,r,a))?t.nextSibling:null,T=(16&G.flags)>0}}if(0==(8192&b)){let T=null;for(;t;)T=t.nextSibling,n.removeChild(t),t=T}}else!X5(n.firstChild)&&!function Fit(e,n){return Boolean(n&&n.dangerouslySetInnerHTML&&n.dangerouslySetInnerHTML.__html&&function Vit(e,n){const t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}(e,n.dangerouslySetInnerHTML.__html))}(n,p)&&(n.textContent="",448&b&&(n.defaultValue=""))}function f0e(e,n,t){if(3!==t.nodeType)n.replaceChild(e.dom=document.createTextNode(e.children),t);else{const o=e.children;t.nodeValue!==o&&(t.nodeValue=o),e.dom=t}return e.dom}function bS(e,n,t,o,r,a){const l=e.flags|=16384;return 14&l?function Uit(e,n,t,o,r,a,l){const p=e.ref;let T;if(a){const L=i0e(e,e.type,e.props||Fd,o,r,l);T=bS(L.$LI,n,t,L.$CX,r,l),a0e(p,L,l)}else{const L=fS($$(e,o));T=bS(L,n,t,o,r,l),e.children=L,s0e(e,l)}return T}(e,n,t,o,r,(4&l)>0,a):481&l?function jit(e,n,t,o,r,a){const l=e.props,c=e.className,p=e.flags,b=e.ref;return r=r||(32&p)>0,1!==t.nodeType?(r0e(e,null,o,r,null,a),n.replaceChild(e.dom,t)):(e.dom=t,g0e(e,t,t.firstChild,o,r,a),X5(l)||t0e(e,p,l,t,r),function Rit(e){return null==e}(c)?""!==t.className&&t.removeAttribute("class"):r?t.setAttribute("class",c):t.className=c,vS(b,t,a)),e.dom}(e,n,t,o,r,a):16&l?f0e(e,n,t):512&l?e.dom=t:8192&l?function Git(e,n,t,o,r,a){const l=e.children;return 2===e.childFlags?(f0e(l,n,t),l.dom):(g0e(e,n,t,o,r,a),function Nit(e){let n,t;for(;e;){if(n=e.flags,2033&n)return e.dom;t=e.children,e=8192&n?2===e.childFlags?t:t[t.length-1]:4&n?t.$LI:t}return null}(l[l.length-1]))}(e,n,t,o,r,a):(function Hit(e){throw e||(e="a runtime error occured! Use Inferno in development environment to find the error."),new Error(`Inferno Error: ${e}`)}(),null)}function m0e(e){return null==e}function Kit(e){return"string"==typeof e}function _0e(e){return void 0===e}var Yit={onComponentDidMount:1,onComponentDidUpdate:1,onComponentShouldUpdate:1,onComponentWillMount:1,onComponentWillUnmount:1,onComponentWillUpdate:1};function KR(e,n,t){var r,b,o=arguments,a=null,l=null,c=null,p=0,T=arguments.length-2;if(1===T)r=t;else if(T>1)for(r=[];T-- >0;)r[T]=o[T+2];if(!Kit(e)){if(p=2,_0e(r)||(n||(n={}),n.children=r),!m0e(n))for(var N in b={},n)"key"===N?l=n.key:"ref"===N?a=n.ref:1===Yit[N]?(a||(a={}),a[N]=n[N]):b[N]=n[N];return oo(p,e,b,l,a)}if(p=Lnt(e),!m0e(n))for(var L in b={},n)"className"===L||"class"===L?c=n[L]:"key"===L?l=n.key:"children"===L&&_0e(r)?r=n.children:"ref"===L?a=n.ref:("contenteditable"===L&&(p|=4096),b[L]=n[L]);return 8192&p?gp(1===T?[r]:r,0,l):Rr(p,e,c,r,0,b,l,a)}var v0e=e=>{var{parentNode:n}=e;n&&(OC(e),n.$V=e.$V,yS(null,n),n.appendChild(e),e.innerHTML="",delete n.$V),delete e.$V};const ex=lg({createElement:(e,n)=>KR(e,n),remove:v0e,onAfterRender:()=>{qv.callEffects()},onPreRender:()=>{qv.lock()},render:(e,n,t,o)=>{if(o)yS(KR(e,n),t);else{var{parentNode:r}=t,a=null==t?void 0:t.nextSibling,l=gn.createElement("div");l.appendChild(t);var c=gn.createDocumentFragment().appendChild(l);!!t.$V&&v0e(t),function Wit(e,n,t){let o=n.firstChild;if(X5(o))yS(e,n,t);else{const r=[];for(function Bit(e){return null===e||!1===e||!0===e||void 0===e}(e)||(o=bS(e,n,o,{},!1,r));o&&(o=o.nextSibling);)n.removeChild(o);if(r.length>0){let a;for(;void 0!==(a=r.shift());)a()}}n.$V=e,function zit(e){return"function"==typeof e}(t)&&t()}(KR(e,n),c),t.$V=c.$V,r&&r.insertBefore(t,a)}}});var X$=Ii()?Mi().Number:Number;X$.isFinite=X$.isFinite||function(e){return"number"==typeof e&&isFinite(e)};const Qit=X$;class C0e extends zf{constructor(n){super(n),this.renderTemplate=this.renderTemplate.bind(this)}renderTemplate(){var n,t=m0(this.$LI,!0),o=t.parentNode,r=K(o),a=r.contents(),{data:l,index:c}=null!==(n=this.props.model)&&void 0!==n?n:{data:{}};l&&Object.keys(l).forEach(b=>{l[b]&&gn.isNode(l[b])&&(l[b]=Di(K(l[b])))});var p=K(this.props.template.render(Xt({container:Di(r),transclude:this.props.transclude},this.props.transclude?{}:{model:l},!this.props.transclude&&Qit.isFinite(c)?{index:c}:{})));return Tv(K(t),p),()=>{((e,n)=>{je(n,(t,o)=>{var r=!1;je(e,(a,l)=>{o===l&&(r=!0)}),!r&&o.parentNode&&o.parentNode.removeChild(o)})})(a,r.contents()),o.appendChild(t)}}shouldComponentUpdate(n){var{model:t,template:o}=this.props,{model:r,template:a}=n;if(o!==a)return!0;if(ce(t)&&ce(r)){var{data:c,index:p}=t,{data:b,index:T}=r;return p!==T||!((e,n)=>Object.keys(e).length===Object.keys(n).length&&Object.keys(e).every(t=>e[t]===n[t]))(c,b)}return!(t===r)}createEffects(){return[new rl(this.renderTemplate,[this.props.template,this.props.model])]}updateEffects(){this._effects[0].update([this.props.template,this.props.model])}componentWillUnmount(){}render(){return null}}function eZ(e){return Array.isArray(e)?[...e]:Xt({},e)}function y0e(e,n,t){var o=eZ(t.length>0&&n&&e!==n?n:e),r=t[0];return t.length>1?o[r]=y0e(e[r],null==n?void 0:n[r],t.slice(1)):r&&(o[r]=jo(e[r])?eZ(e[r]):e[r]),o}function Xit(e,n,t,o){var r=n[t],a=e[t];e[t]=jo(r)||t!==o&&Array.isArray(r)?y0e(r,a,mf(o).slice(1)):r}var tZ=(e,n)=>t=>{Object.prototype.hasOwnProperty.call(e,t)&&void 0===e[t]&&(e[t]=n(t))};let G2=(()=>{class e extends jp{constructor(t,o){super(t,o),this._shouldRaiseContentReady=!1,this.validateKeyDownHandler()}get _propsInfo(){return{allowNull:[],twoWay:[],elements:[],templates:[],props:[]}}validateKeyDownHandler(){if(this.getSupportedKeyNames().length>0&&"function"!=typeof this._viewComponent.prototype.keyDown)throw Error("Component's declaration must have 'keyDown' method.")}get viewRef(){var t;return null===(t=this._viewRef)||void 0===t?void 0:t.current}_checkContentReadyOption(t){var o=this._getContentReadyOptions().reduce((r,a)=>(r[a]=!0,r),{});return this._checkContentReadyOption=r=>!!o[r],this._checkContentReadyOption(t)}_getContentReadyOptions(){return["rtlEnabled"]}_fireContentReady(){this._actionsMap.onContentReady({})}_getDefaultOptions(){return ye(!0,super._getDefaultOptions(),this._viewComponent.defaultProps,this._propsInfo.twoWay.reduce((t,o)=>{var[r,a,l]=o;return Xt({},t,{[r]:this._viewComponent.defaultProps[a],[l]:c=>this.option(r,c)})},{}),this._propsInfo.templates.reduce((t,o)=>Xt({},t,{[o]:null}),{}))}_initializeComponent(){var t;super._initializeComponent(),null===(t=this._templateManager)||void 0===t||t.addDefaultTemplates(this.getDefaultTemplates()),this._props=this._optionsWithDefaultTemplates(this.option()),this._propsInfo.templates.forEach(o=>{this._componentTemplates[o]=this._createTemplateComponent(this._props[o])}),Object.keys(this._getActionConfigsFull()).forEach(o=>this._addAction(o)),this._viewRef={current:null},this.defaultKeyHandlers=this._createDefaultKeyHandlers()}_initMarkup(){var t=this.getProps();this._renderWrapper(t)}_renderWrapper(t){var o=this.$element()[0];this._isNodeReplaced||ex.onPreRender(),ex.render(this._viewComponent,t,o,this._isNodeReplaced),this._isNodeReplaced||(this._isNodeReplaced=!0,ex.onAfterRender(),this._shouldRaiseContentReady=!0),this._shouldRaiseContentReady&&(this._fireContentReady(),this._shouldRaiseContentReady=!1)}_silent(t,o){this._options.silent(t,o)}_render(){}_removeWidget(){ex.remove(this.$element()[0])}_dispose(){this._removeWidget(),super._dispose()}get elementAttr(){var t=this.$element()[0];if(!this._elementAttr){var{attributes:o}=t,r=Array.from(o).filter(p=>{var b;return!this._propsInfo.templates.includes(p.name)&&(null===(b=o[p.name])||void 0===b?void 0:b.specified)}).reduce((p,b)=>{var{name:T,value:L}=b,N=p;return N[T]=""===L&&T in t?t[T]:L,N},{});this._elementAttr=r,this._storedClasses=t.getAttribute("class")||""}for(var a=t.style,l={},c=0;c{b(Y)}:void 0};return[...a,...this._getAdditionalProps()].forEach(G=>{Object.prototype.hasOwnProperty.call(t,G)&&(N[G]=t[G])}),o.forEach(tZ(N,()=>null)),Object.keys(c).forEach(tZ(N,G=>c[G])),l.forEach(G=>{var[Y,ie]=G;tZ(N,()=>c[ie])(Y)}),r.forEach(G=>{if(G in N){var Y=N[G];vh(Y)&&(N[G]=this._patchElementParam(Y))}}),N}getSupportedKeyNames(){return[]}prepareStyleProp(t){return"string"==typeof t.style?Xt({},t,{style:{},cssText:t.style}):t}getProps(){var t,o,{elementAttr:r}=this.option(),a=this._patchOptionValues(Xt({},this._props,{ref:this._viewRef,children:this._extractDefaultSlot(),aria:this._aria}));return this._propsInfo.templates.forEach(l=>{a[l]=this._componentTemplates[l]}),this.prepareStyleProp(Xt({},a,this.elementAttr,r,{className:[...(null!==(t=this.elementAttr.class)&&void 0!==t?t:"").split(" "),...(null!==(o=null==r?void 0:r.class)&&void 0!==o?o:"").split(" ")].filter((l,c,p)=>l&&p.indexOf(l)===c).join(" ").trim(),class:""},this._actionsMap))}_getActionConfigs(){return{}}_getActionConfigsFull(){return Xt({},this._getActionConfigs(),this._getAdditionalActionConfigs())}getDefaultTemplates(){var t=Object.values(this._templatesInfo),o={};return t.forEach(r=>{o[r]="dx-renovation-template-mock"}),o}get _templatesInfo(){return{}}_optionsWithDefaultTemplates(t){var o=Object.entries(this._templatesInfo).reduce((r,a)=>{var l,[c,p]=a;return Xt({},r,{[c]:null!==(l=t[c])&&void 0!==l?l:p})},{});return Xt({},t,o)}_init(){super._init(),this.customKeyHandlers={},this._actionsMap={},this._aria={},this._componentTemplates={}}_createDefaultKeyHandlers(){var t={};return this.getSupportedKeyNames().forEach(r=>{t[r]=a=>this.viewRef.keyDown($A.createKeyDownOptions(a))}),t}_addAction(t,o){var r=o;if(!r){var a=this._createActionByOption(t,this._getActionConfigsFull()[t]);r=l=>(Object.keys(l).forEach(c=>{ce(l[c])&&gn.isNode(l[c])&&(l[c]=Di(K(l[c])))}),a(l))}this._actionsMap[t]=r}_optionChanged(t){var{fullName:o,name:r,previousValue:a,value:l}=t;Xit(this._props,this.option(),r,o),this._propsInfo.templates.includes(r)&&l!==a&&(this._componentTemplates[r]=this._createTemplateComponent(l)),r&&this._getActionConfigsFull()[r]&&this._addAction(r),this._shouldRaiseContentReady=this._shouldRaiseContentReady||this._checkContentReadyOption(o),super._optionChanged(t),this._invalidate()}_extractDefaultSlot(){return this.option("_hasAnonymousTemplateContent")?ex.createElement(C0e,{template:this._getTemplate(this._templateManager.anonymousTemplateName),transclude:!0}):null}_createTemplateComponent(t){if(t){var o=this._getTemplate(t);if(!Wi(o)||"dx-renovation-template-mock"!==o)return r=>ex.createElement(C0e,{template:o,model:r})}}_wrapKeyDownHandler(t){return o=>{var{keyName:r,originalEvent:a,which:l}=o,c=this.customKeyHandlers,p=c[r]||c[l];return void 0===p||p.bind(this)(a,o)?null==t?void 0:t(a,o):(a.cancel=!0,a)}}_toPublicElement(t){return Di(K(t))}_patchElementParam(t){try{var o=K(t),r=null==o?void 0:o.get(0);return null!=r&&r.nodeType?r:t}catch(a){return t}}repaint(){this._isNodeReplaced=!1,this._shouldRaiseContentReady=!0,this._removeWidget(),this._refresh()}_supportedKeys(){return Xt({},this.defaultKeyHandlers,this.customKeyHandlers)}registerKeyHandler(t,o){this.customKeyHandlers[t]=o}setAria(t,o){this._aria[t]=o,this._initMarkup()}}return e.IS_RENOVATED_WIDGET=!1,e.IS_RENOVATED_WIDGET=!0,e})();class eot extends G2{get _validationGroupConfig(){return Js.getGroupConfig(this._findGroup())}getDefaultTemplateNames(){return["content"]}getSupportedKeyNames(){return["space","enter"]}getProps(){var n=super.getProps();return n.onClick=o=>{var{event:r}=o;this._clickAction({event:r,validationGroup:this._validationGroupConfig})},"svg"===rS(n.icon)&&(n.iconTemplate=this._createTemplateComponent(()=>n.icon)),n}get _templatesInfo(){return{template:"content"}}_toggleActiveState(n,t){var o=this.viewRef;t?o.activate():o.deactivate()}_getSubmitAction(){var n=!0,t="valid";return this._createAction(o=>{var{event:r,submitInput:a}=o;if(n){var l=this._validationGroupConfig;if(void 0!==l&&""!==l){var c=l.validate();t=c.status,"pending"===c.status&&(n=!1,this.option("disabled",!0),c.complete.then(p=>{var{status:b}=p;this.option("disabled",!1),"valid"===(t=b)&&a.click(),n=!0}))}}"valid"!==t&&r.preventDefault(),r.stopPropagation()})}_initializeComponent(){super._initializeComponent(),this._addAction("onSubmit",this._getSubmitAction()),this._clickAction=this._createClickAction()}_initMarkup(){super._initMarkup();var n=this.$element().find(".dx-button-content"),t=n.children().filter(".dx-template-wrapper"),o=n.children().filter(".dx-button-submit-input");t.length&&(t.addClass("dx-button-content"),t.append(o),n.replaceWith(t))}_patchOptionValues(n){return super._patchOptionValues(Xt({},n,{templateData:n._templateData}))}_findGroup(){var n=this.$element(),t=this.option("validationGroup");return void 0!==t&&""!==t?t:Js.findGroup(n,this._modelByElement(n))}_createClickAction(){return this._createActionByOption("onClick",{excludeValidators:["readOnly"]})}_optionChanged(n){"onClick"===n.name&&(this._clickAction=this._createClickAction()),super._optionChanged(n)}}function sd(e){return Object.keys(e).filter(n=>e[n]).join(" ")}var tot=["iconTemplate","position","source"],iot={position:"left",source:""},oot=e=>e&&(e.defaultProps?n=>ma(oo(2,e,Xt({},n))):e);let rot=(()=>{class e extends is{constructor(t){super(t),this.state={}}get sourceType(){return rS(this.props.source)}get cssClass(){return"left"!==this.props.position?"dx-icon-right":""}get iconClassName(){var t={"dx-icon":!0,[this.cssClass]:!!this.cssClass},{source:o}=this.props;return"dxIcon"===this.sourceType?sd(Xt({},t,{["dx-icon-".concat(o)]:!0})):"fontIcon"===this.sourceType?sd(Xt({},t,{[String(o)]:!!o})):"image"===this.sourceType?sd(t):"svg"===this.sourceType?sd(Xt({},t,{"dx-svg-icon":!0})):""}get restAttributes(){return er(this.props,tot)}render(){var t=this.props;return(e=>{var{iconClassName:n,props:{iconTemplate:t,source:o},sourceType:r}=e;return gp(["dxIcon"===r&&Rr(1,"i",n),"fontIcon"===r&&Rr(1,"i",n),"image"===r&&Rr(1,"img",n,null,1,{alt:"",src:o}),t&&Rr(1,"i",n,t({}),0)],0)})({props:Xt({},t,{iconTemplate:oot(t.iconTemplate)}),sourceType:this.sourceType,cssClass:this.cssClass,iconClassName:this.iconClassName,restAttributes:this.restAttributes})}}return e.defaultProps=iot,e})();var aot=["config"],lot={get config(){return{}}};let cot=(()=>{class e extends is{constructor(t){super(t),this.state={},this.__getterCache={},this.hideWave=this.hideWave.bind(this),this.showWave=this.showWave.bind(this)}get getConfig(){return void 0!==this.__getterCache.getConfig?this.__getterCache.getConfig:this.__getterCache.getConfig=(()=>{var{config:t}=this.props;return _ge(t)})()}get restAttributes(){return er(this.props,aot)}hideWave(t){bge(this.getConfig,t)}showWave(t){Cge(this.getConfig,t)}componentWillUpdate(t,o,r){this.props.config!==t.config&&(this.__getterCache.getConfig=void 0)}render(){return(e=>ma(Rr(1,"div","dx-inkripple",null,1,Xt({},e.restAttributes))))({props:Xt({},this.props),getConfig:this.getConfig,restAttributes:this.restAttributes})}}return e.defaultProps=lot,e})();function Gd(e){return(n,t,o,r)=>{var a=r?_n(e,r):e;if(t)return We.on(n,a,o,t),()=>{We.off(n,a,t)}}}var dot=Gd(Go),uot=(Gd("scroll"),Gd(Gp_init),Gd("dxscrollstart"),Gd("dxscroll"),Gd("dxscrollend"),Gd("dxscrollstop"),Gd("dxscrollcancel"),Gd(io.down),Gd(io.up),Gd("mouseenter"),Gd("mouseleave"),Gd("keydown"),Gd("dxactive")),pot=Gd("dxinactive"),hot=Gd("dxhoverstart"),got=Gd("dxhoverend"),fot=Gd("focusin"),mot=Gd("focusout"),tx={className:"",activeStateEnabled:!1,disabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,rtlEnabled:!1,tabIndex:0,visible:!0},YR=void 0,_ot=["children","rtlEnabled"],Cot={};let yot=(()=>{class e extends is{constructor(t){super(t),this.state={},this.__getterCache={}}getChildContext(){return Xt({},this.context,{ConfigContext:this.config})}get config(){return void 0!==this.__getterCache.config?this.__getterCache.config:this.__getterCache.config=(()=>({rtlEnabled:this.props.rtlEnabled}))()}get restAttributes(){return er(this.props,_ot)}componentWillUpdate(t,o,r){this.props.rtlEnabled!==t.rtlEnabled&&(this.__getterCache.config=void 0)}render(){return(e=>e.props.children)({props:Xt({},this.props),config:this.config,restAttributes:this.restAttributes})}}return e.defaultProps=Cot,e})();var Oot=["_feedbackHideTimeout","_feedbackShowTimeout","accessKey","activeStateEnabled","activeStateUnit","addWidgetClass","aria","children","className","classes","cssText","disabled","focusStateEnabled","height","hint","hoverStateEnabled","name","onActive","onClick","onDimensionChanged","onFocusIn","onFocusOut","onHoverEnd","onHoverStart","onInactive","onKeyDown","onRootElementRendered","onVisibilityChange","rootElementRef","rtlEnabled","tabIndex","visible","width"],qR=Object.create(Object.prototype,Xt(Object.getOwnPropertyDescriptors(tx),Object.getOwnPropertyDescriptors({_feedbackHideTimeout:400,_feedbackShowTimeout:30,cssText:"",get aria(){return{}},classes:"",name:"",addWidgetClass:!0})));let nZ=(()=>{class e extends kh{constructor(t){super(t),this.widgetElementRef={current:null},this.state={active:!1,focused:!1,hovered:!1},this.setRootElementRef=this.setRootElementRef.bind(this),this.activeEffect=this.activeEffect.bind(this),this.inactiveEffect=this.inactiveEffect.bind(this),this.clickEffect=this.clickEffect.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.focusInEffect=this.focusInEffect.bind(this),this.focusOutEffect=this.focusOutEffect.bind(this),this.hoverStartEffect=this.hoverStartEffect.bind(this),this.hoverEndEffect=this.hoverEndEffect.bind(this),this.keyboardEffect=this.keyboardEffect.bind(this),this.resizeEffect=this.resizeEffect.bind(this),this.windowResizeEffect=this.windowResizeEffect.bind(this),this.visibilityEffect=this.visibilityEffect.bind(this),this.checkDeprecation=this.checkDeprecation.bind(this),this.applyCssTextEffect=this.applyCssTextEffect.bind(this)}get config(){return"ConfigContext"in this.context?this.context.ConfigContext:YR}createEffects(){return[new rl(this.setRootElementRef,[]),new rl(this.activeEffect,[this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),new rl(this.inactiveEffect,[this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),new rl(this.clickEffect,[this.props.disabled,this.props.name,this.props.onClick]),new rl(this.focusInEffect,[this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),new rl(this.focusOutEffect,[this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),new rl(this.hoverStartEffect,[this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),new rl(this.hoverEndEffect,[this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),new rl(this.keyboardEffect,[this.props.focusStateEnabled,this.props.onKeyDown]),new rl(this.resizeEffect,[this.props.name,this.props.onDimensionChanged]),new rl(this.windowResizeEffect,[this.props.onDimensionChanged]),new rl(this.visibilityEffect,[this.props.name,this.props.onVisibilityChange]),new rl(this.checkDeprecation,[this.props.height,this.props.width]),new rl(this.applyCssTextEffect,[this.props.cssText]),Ah()]}updateEffects(){var t,o,r,a,l,c,p,b,T,L,N,G,Y;null===(t=this._effects[1])||void 0===t||t.update([this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),null===(o=this._effects[2])||void 0===o||o.update([this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),null===(r=this._effects[3])||void 0===r||r.update([this.props.disabled,this.props.name,this.props.onClick]),null===(a=this._effects[4])||void 0===a||a.update([this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),null===(l=this._effects[5])||void 0===l||l.update([this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),null===(c=this._effects[6])||void 0===c||c.update([this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),null===(p=this._effects[7])||void 0===p||p.update([this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),null===(b=this._effects[8])||void 0===b||b.update([this.props.focusStateEnabled,this.props.onKeyDown]),null===(T=this._effects[9])||void 0===T||T.update([this.props.name,this.props.onDimensionChanged]),null===(L=this._effects[10])||void 0===L||L.update([this.props.onDimensionChanged]),null===(N=this._effects[11])||void 0===N||N.update([this.props.name,this.props.onVisibilityChange]),null===(G=this._effects[12])||void 0===G||G.update([this.props.height,this.props.width]),null===(Y=this._effects[13])||void 0===Y||Y.update([this.props.cssText])}setRootElementRef(){var{onRootElementRendered:t,rootElementRef:o}=this.props;o&&(o.current=this.widgetElementRef.current),null==t||t(this.widgetElementRef.current)}activeEffect(){var{_feedbackShowTimeout:t,activeStateEnabled:o,activeStateUnit:r,disabled:a,onActive:l}=this.props;if(o&&!a)return uot(this.widgetElementRef.current,p=>{this.setState(b=>({active:!0})),null==l||l(p)},{timeout:t,selector:r},"UIFeedback")}inactiveEffect(){var{_feedbackHideTimeout:t,activeStateEnabled:o,activeStateUnit:r,onInactive:a}=this.props;if(o)return pot(this.widgetElementRef.current,c=>{this.state.active&&(this.setState(p=>({active:!1})),null==a||a(c))},{timeout:t,selector:r},"UIFeedback")}clickEffect(){var{disabled:t,name:o,onClick:r}=this.props,a=o;if(r&&!t)return function(e,n){var{namespace:t}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};We.on(e,uc("dxclick",t),n)}(this.widgetElementRef.current,r,{namespace:a}),()=>function(e){var{namespace:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};We.off(e,uc("dxclick",n))}(this.widgetElementRef.current,{namespace:a})}focusInEffect(){var{disabled:t,focusStateEnabled:o,name:r,onFocusIn:a}=this.props,l="".concat(r,"Focus");if(o&&!t)return fot(this.widgetElementRef.current,c=>{c.isDefaultPrevented()||(this.setState(p=>({focused:!0})),null==a||a(c))},null,l)}focusOutEffect(){var{focusStateEnabled:t,name:o,onFocusOut:r}=this.props,a="".concat(o,"Focus");if(t)return mot(this.widgetElementRef.current,l=>{!l.isDefaultPrevented()&&this.state.focused&&(this.setState(c=>({focused:!1})),null==r||r(l))},null,a)}hoverStartEffect(){var{activeStateUnit:t,disabled:o,hoverStateEnabled:r,onHoverStart:a}=this.props;if(r&&!o)return hot(this.widgetElementRef.current,c=>{!this.state.active&&this.setState(p=>({hovered:!0})),null==a||a(c)},{selector:t},"UIFeedback")}hoverEndEffect(){var{activeStateUnit:t,hoverStateEnabled:o,onHoverEnd:r}=this.props;if(o)return got(this.widgetElementRef.current,l=>{this.state.hovered&&(this.setState(c=>({hovered:!1})),null==r||r(l))},{selector:t},"UIFeedback")}keyboardEffect(){var{focusStateEnabled:t,onKeyDown:o}=this.props;if(t&&o){var r=Up_on(this.widgetElementRef.current,this.widgetElementRef.current,a=>o(a));return()=>Up_off(r)}}resizeEffect(){var t="".concat(this.props.name,"VisibilityChange"),{onDimensionChanged:o}=this.props;if(o)return r5_on(this.widgetElementRef.current,o,{namespace:t}),()=>r5_off(this.widgetElementRef.current,{namespace:t})}windowResizeEffect(){var{onDimensionChanged:t}=this.props;if(t)return Oh.add(t),()=>{Oh.remove(t)}}visibilityEffect(){var{name:t,onVisibilityChange:o}=this.props,r="".concat(t,"VisibilityChange");if(o)return a5_on(this.widgetElementRef.current,()=>o(!0),()=>o(!1),{namespace:r}),()=>a5_off(this.widgetElementRef.current,{namespace:r})}checkDeprecation(){var{height:t,width:o}=this.props;qn(o)&&ua.log("W0017","width"),qn(t)&&ua.log("W0017","height")}applyCssTextEffect(){var{cssText:t}=this.props;""!==t&&(this.widgetElementRef.current.style.cssText=t)}get shouldRenderConfigProvider(){var{rtlEnabled:t}=this.props;return function xot(e,n){var t=ce(e),o=ce(Ua().rtlEnabled)&&!t&&!ce(null==n?void 0:n.rtlEnabled);return t&&e!==(null==n?void 0:n.rtlEnabled)||o}(t,this.config)}get rtlEnabled(){var{rtlEnabled:t}=this.props;return function bot(e,n){return void 0!==e?e:void 0!==(null==n?void 0:n.rtlEnabled)?n.rtlEnabled:Ua().rtlEnabled}(t,this.config)}get attributes(){var{aria:t,disabled:o,focusStateEnabled:r,visible:a}=this.props,l=r&&!o&&this.props.accessKey;return Xt({},ye({},l&&{accessKey:l}),(e=>Object.keys(e).reduce((n,t)=>e[t]?Xt({},n,{["role"===t||"id"===t?t:"aria-".concat(t)]:String(e[t])}):n,{}))(Xt({},t,{disabled:o,hidden:!a})),ye({},this.restAttributes))}get styles(){var{height:t,width:o}=this.props,r=this.restAttributes.style||{},a=Mv("width",qn(o)?o():o),l=Mv("height",qn(t)?t():t);return Xt({},r,{height:null!=l?l:r.height,width:null!=a?a:r.width})}get cssClasses(){var{activeStateEnabled:t,addWidgetClass:o,className:r,classes:a,disabled:l,focusStateEnabled:c,hoverStateEnabled:p,onVisibilityChange:b,visible:T}=this.props,L=!!c&&!l,N=!!p&&!l,G=!!t&&!l;return sd({"dx-widget":!!o,[String(a)]:!!a,[String(r)]:!!r,"dx-state-disabled":!!l,"dx-state-invisible":!T,"dx-state-focused":!!this.state.focused&&L,"dx-state-active":!!this.state.active&&G,"dx-state-hover":!!this.state.hovered&&N&&!this.state.active,"dx-rtl":!!this.rtlEnabled,"dx-visibility-change-handler":!!b})}get tabIndex(){var{disabled:t,focusStateEnabled:o,tabIndex:r}=this.props;return o&&!t?r:void 0}get restAttributes(){return er(this.props,Oot)}focus(){P2_trigger(this.widgetElementRef.current)}blur(){var t=gn.getActiveElement();this.widgetElementRef.current===t&&t.blur()}activate(){this.setState(t=>({active:!0}))}deactivate(){this.setState(t=>({active:!1}))}render(){return(e=>{var n=ma(Rr(1,"div",e.cssClasses,e.props.children,0,Xt({},e.attributes,{tabIndex:e.tabIndex,title:e.props.hint,style:Hf(e.styles)}),null,e.widgetElementRef));return e.shouldRenderConfigProvider?oo(2,yot,{rtlEnabled:e.rtlEnabled,children:n}):n})({props:Xt({},this.props),active:this.state.active,focused:this.state.focused,hovered:this.state.hovered,widgetElementRef:this.widgetElementRef,config:this.config,shouldRenderConfigProvider:this.shouldRenderConfigProvider,rtlEnabled:this.rtlEnabled,attributes:this.attributes,styles:this.styles,cssClasses:this.cssClasses,tabIndex:this.tabIndex,restAttributes:this.restAttributes})}}return e.defaultProps=qR,e})();var Tot=["accessKey","activeStateEnabled","children","className","disabled","focusStateEnabled","height","hint","hoverStateEnabled","icon","iconPosition","iconTemplate","onClick","onKeyDown","onSubmit","pressed","rtlEnabled","stylingMode","tabIndex","template","templateData","text","type","useInkRipple","useSubmitBehavior","visible","width"],Dot=["outlined","text","contained"],kot=Object.create(Object.prototype,Xt(Object.getOwnPropertyDescriptors(tx),Object.getOwnPropertyDescriptors({activeStateEnabled:!0,hoverStateEnabled:!0,icon:"",iconPosition:"left",stylingMode:"contained",text:"",type:"normal",useInkRipple:!1,useSubmitBehavior:!1,get templateData(){return{}}}))),b0e=r9([{device:()=>"desktop"===ci.real().deviceType&&!ci.isSimulator(),options:{focusStateEnabled:!0}},{device:()=>ts(Nd()),options:{useInkRipple:!0}}]),x0e=e=>e&&(e.defaultProps?n=>ma(oo(2,e,Xt({},n))):e);class xS extends kh{constructor(n){super(n),this.state={},this.contentRef={current:null},this.inkRippleRef={current:null},this.submitInputRef={current:null},this.widgetRef={current:null},this.__getterCache={},this.focus=this.focus.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.submitEffect=this.submitEffect.bind(this),this.onActive=this.onActive.bind(this),this.onInactive=this.onInactive.bind(this),this.onWidgetClick=this.onWidgetClick.bind(this),this.keyDown=this.keyDown.bind(this)}createEffects(){return[new rl(this.submitEffect,[this.props.onSubmit,this.props.useSubmitBehavior]),Ah()]}updateEffects(){var n;null===(n=this._effects[0])||void 0===n||n.update([this.props.onSubmit,this.props.useSubmitBehavior])}submitEffect(){var{onSubmit:n,useSubmitBehavior:t}=this.props;if(t&&n)return function(e,n){var{namespace:t}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};We.on(e,uc("click",t),n)}(this.submitInputRef.current,o=>n({event:o,submitInput:this.submitInputRef.current}),{namespace:"UIFeedback"}),()=>function(e){var{namespace:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};We.off(e,uc("click",n))}(this.submitInputRef.current,{namespace:"UIFeedback"})}onActive(n){var{useInkRipple:t}=this.props;t&&this.inkRippleRef.current.showWave({element:this.contentRef.current,event:n})}onInactive(n){var{useInkRipple:t}=this.props;t&&this.inkRippleRef.current.hideWave({element:this.contentRef.current,event:n})}onWidgetClick(n){var{onClick:t,useSubmitBehavior:o}=this.props;null==t||t({event:n}),o&&this.submitInputRef.current.click()}keyDown(n){var{onKeyDown:t}=this.props,{keyName:o,originalEvent:r,which:a}=n,l=null==t?void 0:t(n);if(null!=l&&l.cancel)return l;("space"===o||"space"===a||"enter"===o||"enter"===a)&&(r.preventDefault(),this.onWidgetClick(r))}get aria(){var{icon:n,text:t}=this.props,o=(null!=t?t:"")||ze.format(ip(n,!0))||n;return!t&&n&&"image"===rS(n)&&(o=n.includes("base64")?"Base64":n.replace(/.+\/([^.]+)\..+$/,"$1")),Xt({role:"button"},o?{label:o}:{})}get cssClasses(){return(e=>{var{icon:n,iconPosition:t,stylingMode:o,text:r,type:a}=e,l=o&&Dot.includes(o);return sd({"dx-button":!0,["dx-button-mode-".concat(l?o:"contained")]:!0,["dx-button-".concat(null!=a?a:"normal")]:!0,"dx-button-has-text":!!r,"dx-button-has-icon":!!n,"dx-button-icon-right":"left"!==t})})(this.props)}get iconSource(){var{icon:n,type:t}=this.props;return n||"back"===t?(null!=n?n:"")||"back":""}get inkRippleConfig(){return void 0!==this.__getterCache.inkRippleConfig?this.__getterCache.inkRippleConfig:this.__getterCache.inkRippleConfig=(()=>{var{icon:n,text:t,type:o}=this.props;return!t&&n||"back"===o?{isCentered:!0,useHoldAnimation:!1,waveSizeCoefficient:1}:{}})()}get buttonTemplateData(){var{icon:n,templateData:t,text:o}=this.props;return Xt({icon:n,text:o},t)}get restAttributes(){return er(this.props,Tot)}focus(){this.widgetRef.current.focus()}activate(){this.widgetRef.current.activate()}deactivate(){this.widgetRef.current.deactivate()}componentWillUpdate(n,t,o){super.componentWillUpdate(),(this.props.icon!==n.icon||this.props.text!==n.text||this.props.type!==n.type)&&(this.__getterCache.inkRippleConfig=void 0)}render(){var n=this.props;return(e=>{var{children:n,iconPosition:t,iconTemplate:o,template:r,text:a}=e.props,l=!e.props.template&&!n&&""!==a,c="left"===t,p=!e.props.template&&!n&&(e.iconSource||e.props.iconTemplate)&&oo(2,rot,{source:e.iconSource,position:t,iconTemplate:o});return ma(oo(2,nZ,Xt({accessKey:e.props.accessKey,activeStateEnabled:e.props.activeStateEnabled,aria:e.aria,className:e.props.className,classes:e.cssClasses,disabled:e.props.disabled,focusStateEnabled:e.props.focusStateEnabled,height:e.props.height,hint:e.props.hint,hoverStateEnabled:e.props.hoverStateEnabled,onActive:e.onActive,onClick:e.onWidgetClick,onInactive:e.onInactive,onKeyDown:e.keyDown,rtlEnabled:e.props.rtlEnabled,tabIndex:e.props.tabIndex,visible:e.props.visible,width:e.props.width},e.restAttributes,{children:Rr(1,"div","dx-button-content",[e.props.template&&r({data:e.buttonTemplateData}),!e.props.template&&n,c&&p,l&&Rr(1,"span","dx-button-text",a,0),!c&&p,e.props.useSubmitBehavior&&Rr(64,"input","dx-button-submit-input",null,1,{type:"submit",tabIndex:-1},null,e.submitInputRef),e.props.useInkRipple&&oo(2,cot,{config:e.inkRippleConfig},null,e.inkRippleRef)],0,null,null,e.contentRef)}),null,e.widgetRef))})({props:Xt({},n,{template:x0e(n.template),iconTemplate:x0e(n.iconTemplate)}),contentRef:this.contentRef,submitInputRef:this.submitInputRef,inkRippleRef:this.inkRippleRef,widgetRef:this.widgetRef,onActive:this.onActive,onInactive:this.onInactive,onWidgetClick:this.onWidgetClick,keyDown:this.keyDown,aria:this.aria,cssClasses:this.cssClasses,iconSource:this.iconSource,inkRippleConfig:this.inkRippleConfig,buttonTemplateData:this.buttonTemplateData,restAttributes:this.restAttributes})}}xS.defaultProps=Object.create(Object.prototype,Xt(Object.getOwnPropertyDescriptors(kot),Object.getOwnPropertyDescriptors(Xt({},wf(b0e)))));var O0e=[];class iZ extends eot{getProps(){var n=super.getProps();return n.onKeyDown=this._wrapKeyDownHandler(n.onKeyDown),n}focus(){var n;return null===(n=this.viewRef)||void 0===n?void 0:n.focus(...arguments)}activate(){var n;return null===(n=this.viewRef)||void 0===n?void 0:n.activate(...arguments)}deactivate(){var n;return null===(n=this.viewRef)||void 0===n?void 0:n.deactivate(...arguments)}_getActionConfigs(){return{onClick:{excludeValidators:["readOnly"]},onSubmit:{}}}get _propsInfo(){return{twoWay:[],allowNull:[],elements:["onSubmit"],templates:["template","iconTemplate"],props:["activeStateEnabled","hoverStateEnabled","icon","iconPosition","onClick","onSubmit","pressed","stylingMode","template","iconTemplate","text","type","useInkRipple","useSubmitBehavior","templateData","className","accessKey","disabled","focusStateEnabled","height","hint","onKeyDown","rtlEnabled","tabIndex","visible","width"]}}get _viewComponent(){return xS}}xi("dxButton",iZ),iZ.defaultOptions=function Aot(e){O0e.push(e),xS.defaultProps=Object.create(Object.prototype,Xt(Object.getOwnPropertyDescriptors(xS.defaultProps),Object.getOwnPropertyDescriptors(wf(b0e)),Object.getOwnPropertyDescriptors(wf(O0e))))};const bs=iZ;var M0e="dx-custom-button-hovered";class Lot extends RR{_attachEvents(n,t){var{editor:o}=this;We.on(t,v5,()=>{o.$element().addClass(M0e)}),We.on(t,C5,()=>{o.$element().removeClass(M0e)}),We.on(t,Go,r=>{r.stopPropagation()})}_create(){var{editor:n}=this,t=K("
");return this._addToContainer(t),{$element:t,instance:n._createComponent(t,bs,ye({},this.options,{ignoreParentReadOnly:!0,disabled:this._isDisabled(),integrationOptions:this._prepareIntegrationOptions(n)}))}}_prepareIntegrationOptions(n){return ye({},n.option("integrationOptions"),{skipTemplates:["content"]})}update(){var n=super.update();return this.instance&&this.instance.option("disabled",this._isDisabled()),n}_isVisible(){var{editor:n}=this;return n.option("visible")}_isDisabled(){return void 0!==this.options.disabled?this.instance?this.instance.option("disabled"):this.options.disabled:this.editor.option("readOnly")}}function w0e(e,n){if(-1!==e.indexOf(n))throw Ho.Error("E1055",n);e.push(n)}class Hot{constructor(n,t){this.buttons=[],this.defaultButtonsInfo=t,this.editor=n}_compileButtonInfo(n){var t=[];return n.map(o=>{var r="string"==typeof o;r||function Bot(e){(()=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Ho.Error("E1053")})(),(()=>{if(!("name"in e))throw Ho.Error("E1054")})(),(()=>{var{name:n}=e;if("string"!=typeof n)throw Ho.Error("E1055")})(),(()=>{var{location:n}=e;"location"in e&&"after"!==n&&"before"!==n&&(e.location="after")})()}(o);var a=r||function zot(e,n){return!!o1(n,t=>t.name===e)}(o.name,this.defaultButtonsInfo);if(a){var l=o1(this.defaultButtonsInfo,p=>{var{name:b}=p;return b===o||b===o.name});if(!l)throw Ho.Error("E1056",this.editor.NAME,o);return w0e(t,o),l}var{name:c}=o;return w0e(t,c),ye(o,{Ctor:Lot})})}_createButton(n){var{Ctor:t,options:o,name:r}=n,a=new t(r,this.editor,o);return this.buttons.push(a),a}_renderButtons(n,t,o){var r=null;return(n?this._compileButtonInfo(n):this.defaultButtonsInfo).forEach(l=>{var{location:c="after"}=l;c===o&&this._createButton(l).render((r=r||K("
").addClass("dx-texteditor-buttons-container"),"before"===o?t.prepend(r):t.append(r),r))}),r}clean(){this.buttons.forEach(n=>n.dispose()),this.buttons=[]}getButton(n){var t=o1(this.buttons,o=>{var{name:r}=o;return r===n});return t&&t.instance}renderAfterButtons(n,t){return this._renderButtons(n,t,"after")}renderBeforeButtons(n,t){return this._renderButtons(n,t,"before")}updateButtons(n){this.buttons.forEach(t=>{(!n||-1!==n.indexOf(t.name))&&t.update()})}}var P0e="dx-texteditor-label",S0e="dx-texteditor-with-label",T0e="dx-texteditor-with-floating-label",D0e="dx-texteditor-with-before-buttons",E0e="dx-placeholder",k0e="dx-validation-pending",$R=["KeyDown","KeyPress","KeyUp","Change","Cut","Copy","Paste","Input"],Qot=["tab","enter","shift","control","alt","escape","pageUp","pageDown","end","home","leftArrow","upArrow","rightArrow","downArrow"];function A0e(e){if(ce(e)&&!Array.isArray(e))throw Ho.Error("E1053")}var ert=hp.inherit({ctor:function(e,n){n&&A0e(n.buttons),this._buttonCollection=new Hot(this,this._getDefaultButtons()),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._labelContainerElement=null,this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return ye(this.callBase(),{buttons:void 0,value:"",spellcheck:!1,showClearButton:!1,valueChangeEvent:"change",placeholder:"",inputAttr:{},onFocusIn:null,onFocusOut:null,onKeyDown:null,onKeyUp:null,onChange:null,onInput:null,onCut:null,onCopy:null,onPaste:null,onEnterKey:null,mode:"text",hoverStateEnabled:!0,focusStateEnabled:!0,text:void 0,displayValueFormatter:function(e){return ce(e)&&!1!==e?e:""},stylingMode:Ua().editorStylingMode||"outlined",showValidationMark:!0,label:"",labelMode:"static",labelMark:""})},_defaultOptionsRules:function(){var e=Nd();return this.callBase().concat([{device:function(){return ts(e)},options:{stylingMode:Ua().editorStylingMode||"filled",labelMode:"floating"}}])},_getDefaultButtons:function(){return[{name:"clear",Ctor:Ont}]},_isClearButtonVisible:function(){return this.option("showClearButton")&&!this.option("readOnly")},_input:function(){return this.$element().find(".dx-texteditor-input").first()},_isFocused:function(){return h1(this._input())||this.callBase()},_inputWrapper:function(){return this.$element()},_buttonsContainer:function(){return this._inputWrapper().find(".dx-texteditor-buttons-container").eq(0)},_isControlKey:function(e){return-1!==Qot.indexOf(e)},_renderStylingMode:function(){this.callBase(),this._updateButtonsStyling(this.option("stylingMode"))},_initMarkup:function(){this.$element().addClass("dx-texteditor"),this._renderInput(),this._renderStylingMode(),this._renderInputType(),this._renderPlaceholder(),this._renderProps(),this.callBase(),this._renderValue(),this._renderLabel()},_render:function(){this.callBase(),this._refreshValueChangeEvent(),this._renderEvents(),this._renderEnterKeyAction(),this._renderEmptinessEvent()},_renderInput:function(){this._$buttonsContainer=this._$textEditorContainer=K("
").addClass("dx-texteditor-container").appendTo(this.$element()),this._$textEditorInputContainer=K("
").addClass("dx-texteditor-input-container").appendTo(this._$textEditorContainer),this._$textEditorInputContainer.append(this._createInput()),this._renderButtonContainers()},_getInputContainer(){return this._$textEditorInputContainer},_renderPendingIndicator:function(){this.$element().addClass(k0e);var e=this._getInputContainer(),n=K("
").addClass("dx-pending-indicator").appendTo(e);this._pendingIndicator=this._createComponent(n,uu)},_disposePendingIndicator:function(){!this._pendingIndicator||(this._pendingIndicator.dispose(),this._pendingIndicator.$element().remove(),this._pendingIndicator=null,this.$element().removeClass(k0e))},_renderValidationState:function(){this.callBase();var e="pending"===this.option("validationStatus"),n=this.$element();e?(!this._pendingIndicator&&this._renderPendingIndicator(),this._showValidMark=!1):("invalid"===this.option("validationStatus")&&(this._showValidMark=!1),!this._showValidMark&&!0===this.option("showValidationMark")&&(this._showValidMark="valid"===this.option("validationStatus")&&!!this._pendingIndicator),this._disposePendingIndicator()),n.toggleClass("dx-valid",!!this._showValidMark)},_renderButtonContainers:function(){var e=this.option("buttons");this._$beforeButtonsContainer=this._buttonCollection.renderBeforeButtons(e,this._$buttonsContainer),this._$afterButtonsContainer=this._buttonCollection.renderAfterButtons(e,this._$buttonsContainer)},_cleanButtonContainers:function(){var e,n;null===(e=this._$beforeButtonsContainer)||void 0===e||e.remove(),null===(n=this._$afterButtonsContainer)||void 0===n||n.remove(),this._buttonCollection.clean()},_clean(){this._buttonCollection.clean(),this._disposePendingIndicator(),this._unobserveLabelContainerResize(),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._$textEditorContainer=null,this._$buttonsContainer=null,this.callBase()},_createInput:function(){var e=K("");return this._applyInputAttributes(e,this.option("inputAttr")),e},_setSubmitElementName:function(e){var n=this.option("inputAttr.name");return this.callBase(e||n||"")},_applyInputAttributes:function(e,n){var t=ye(this._getDefaultAttributes(),n);e.attr(t).addClass("dx-texteditor-input").css("minHeight",this.option("height")?"0":"")},_getDefaultAttributes:function(){var e={autocomplete:"off"},{ios:n,mac:t}=ci.real();return(n||t)&&(e.placeholder=" "),e},_updateButtons:function(e){this._buttonCollection.updateButtons(e)},_updateButtonsStyling:function(e){je(this.option("buttons"),(n,t)=>{var{options:o,name:r}=t;if(o&&!o.stylingMode&&this.option("visible")){var a=this.getButton(r);a.option&&a.option("stylingMode","underlined"===e?"text":"contained")}})},_renderValue:function(){return this._renderInputValue().promise()},_renderInputValue:function(e){var n;e=null!==(n=e)&&void 0!==n?n:this.option("value");var t=this.option("text"),o=this.option("displayValue"),r=this.option("displayValueFormatter");return void 0!==o&&null!==e?t=r(o):ce(t)||(t=r(e)),this.option("text",t),this._input().val()!==(ce(t)?t:"")?this._renderDisplayText(t):this._toggleEmptinessEventHandler(),(new Rt).resolve()},_renderDisplayText:function(e){this._input().val(e),this._toggleEmptinessEventHandler()},_isValueValid:function(){if(this._input().length){var e=this._input().get(0).validity;if(e)return e.valid}return!0},_toggleEmptiness:function(e){this.$element().toggleClass("dx-texteditor-empty",e),this._togglePlaceholder(e)},_togglePlaceholder:function(e){this.$element().find(".".concat(E0e)).eq(0).toggleClass("dx-state-invisible",!e)},_renderProps:function(){this._toggleReadOnlyState(),this._toggleSpellcheckState(),this._toggleTabIndex()},_toggleDisabledState:function(e){this.callBase.apply(this,arguments);var n=this._input();n.prop("disabled",e)},_toggleTabIndex:function(){var e=this._input(),n=this.option("disabled"),t=this.option("focusStateEnabled");n||!t?e.attr("tabIndex",-1):e.removeAttr("tabIndex")},_toggleReadOnlyState:function(){this._input().prop("readOnly",this._readOnlyPropValue()),this.callBase()},_readOnlyPropValue:function(){return this.option("readOnly")},_toggleSpellcheckState:function(){this._input().prop("spellcheck",this.option("spellcheck"))},_unobserveLabelContainerResize:function(){this._labelContainerElement&&(uy.unobserve(this._labelContainerElement),this._labelContainerElement=null)},_getLabelContainer:function(){return this._input()},_getLabelContainerWidth:function(){return vi(this._getLabelContainer())},_getLabelBeforeWidth:function(){var e=this._$beforeButtonsContainer&&vi(this._$beforeButtonsContainer);return null!=e?e:0},_updateLabelWidth:function(){this._label.updateBeforeWidth(this._getLabelBeforeWidth()),this._label.updateMaxWidth(this._getLabelContainerWidth())},_setLabelContainerAria:function(){this.setAria("labelledby",this._label.getId(),this._getLabelContainer())},_renderLabel:function(){this._unobserveLabelContainerResize(),this._labelContainerElement=K(this._getLabelContainer()).get(0);var{label:e,labelMode:n,labelMark:t}=this.option(),o={$editor:this.$element(),text:e,mark:t,mode:n,containsButtonsBefore:!!this._$beforeButtonsContainer,containerWidth:this._getLabelContainerWidth(),beforeWidth:this._getLabelBeforeWidth()};this._label=new class Uot{constructor(n){var{$editor:t,text:o,mode:r,mark:a,containsButtonsBefore:l,containerWidth:c,beforeWidth:p}=n;this._props={$editor:t,text:o,mode:r,mark:a,containsButtonsBefore:l,containerWidth:c,beforeWidth:p},this._id="".concat(P0e,"-").concat(new ss),this._render(),this._toggleMarkupVisibility()}_isVisible(){return!!this._props.text&&"hidden"!==this._props.mode}_render(){this._$before=K("
").addClass("dx-label-before"),this._$labelSpan=K(""),this._$label=K("
").addClass("dx-label").append(this._$labelSpan),this._$after=K("
").addClass("dx-label-after"),this._$root=K("
").addClass(P0e).attr("id",this._id).append(this._$before).append(this._$label).append(this._$after),this._updateMark(),this._updateText(),this._updateBeforeWidth(),this._updateMaxWidth()}_toggleMarkupVisibility(){var n=this._isVisible();this._updateEditorBeforeButtonsClass(n),this._updateEditorLabelClass(n),n?this._$root.appendTo(this._props.$editor):this._$root.detach()}_updateEditorLabelClass(n){this._props.$editor.removeClass(T0e).removeClass(S0e),n&&this._props.$editor.addClass("floating"===this._props.mode?T0e:S0e)}_updateEditorBeforeButtonsClass(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible();this._props.$editor.removeClass(D0e),n&&this._props.$editor.addClass(this._props.containsButtonsBefore?D0e:"")}_updateMark(){this._$labelSpan.attr("data-mark",this._props.mark)}_updateText(){this._$labelSpan.text(this._props.text)}_updateBeforeWidth(){this._$before.css({width:this._props.beforeWidth})}_updateMaxWidth(){this._$label.css({maxWidth:this._props.containerWidth})}$element(){return this._$root}isVisible(){return this._isVisible()}getId(){if(this._isVisible())return this._id}updateMode(n){this._props.mode=n,this._toggleMarkupVisibility()}updateText(n){this._props.text=n,this._updateText(),this._toggleMarkupVisibility()}updateMark(n){this._props.mark=n,this._updateMark()}updateContainsButtonsBefore(n){this._props.containsButtonsBefore=n,this._updateEditorBeforeButtonsClass()}updateBeforeWidth(n){this._props.beforeWidth=n,this._updateBeforeWidth()}updateMaxWidth(n){this._props.containerWidth=n,this._updateMaxWidth()}}(o),this._setLabelContainerAria(),this._labelContainerElement&&uy.observe(this._labelContainerElement,this._updateLabelWidth.bind(this))},_renderPlaceholder:function(){this._renderPlaceholderMarkup(),this._attachPlaceholderEvents()},_renderPlaceholderMarkup:function(){this._$placeholder&&(this._$placeholder.remove(),this._$placeholder=null);var e=this._input(),n=this.option("placeholder"),t=this._$placeholder=K("
").attr("data-dx_placeholder",n);t.insertAfter(e),t.addClass(E0e)},_attachPlaceholderEvents:function(){var e=_n(io.up,this.NAME);We.on(this._$placeholder,e,()=>{We.trigger(this._input(),"focus")}),this._toggleEmptinessEventHandler()},_placeholder:function(){return this._$placeholder||K()},_clearValueHandler:function(e){var n=this._input();e.stopPropagation(),this._saveValueChangeEvent(e),this._clearValue(),!this._isFocused()&&We.trigger(n,"focus"),We.trigger(n,"input")},_clearValue:function(){this.reset()},_renderEvents:function(){var e=this._input();je($R,(n,t)=>{if(this.hasActionSubscription("on"+t)){var o=this._createActionByOption("on"+t,{excludeValidators:["readOnly"]});We.on(e,_n(t.toLowerCase(),this.NAME),r=>{this._disposed||o({event:r})})}})},_refreshEvents:function(){var e=this._input();je($R,(n,t)=>{We.off(e,_n(t.toLowerCase(),this.NAME))}),this._renderEvents()},_keyPressHandler:function(){this.option("text",this._input().val())},_keyDownHandler:function(e){var n=this._input(),t=e.ctrlKey&&"enter"===ls(e),o=n.val()!==this.option("value");t&&o&&We.trigger(n,"change")},_renderValueChangeEvent:function(){var e=_n(this._renderValueEventName(),"".concat(this.NAME,"TextChange")),n=_n(this.option("valueChangeEvent"),"".concat(this.NAME,"ValueChange")),t=_n("keydown","".concat(this.NAME,"TextChange")),o=this._input();We.on(o,e,this._keyPressHandler.bind(this)),We.on(o,n,this._valueChangeEventHandler.bind(this)),We.on(o,t,this._keyDownHandler.bind(this))},_cleanValueChangeEvent:function(){var e=".".concat(this.NAME,"ValueChange"),n=".".concat(this.NAME,"TextChange");We.off(this._input(),e),We.off(this._input(),n)},_refreshValueChangeEvent:function(){this._cleanValueChangeEvent(),this._renderValueChangeEvent()},_renderValueEventName:function(){return"input change keypress"},_focusTarget:function(){return this._input()},_focusEventTarget:function(){return this.element()},_isInput:function(e){return e===this._input().get(0)},_preventNestedFocusEvent:function(e){if(e.isDefaultPrevented())return!0;var n=this._isNestedTarget(e.relatedTarget);return"focusin"===e.type?n=n&&this._isNestedTarget(e.target)&&!this._isInput(e.target):n||this._toggleFocusClass(!1,this.$element()),n&&e.preventDefault(),n},_isNestedTarget:function(e){return!!this.$element().find(e).length},_focusClassTarget:function(){return this.$element()},_focusInHandler:function(e){this._preventNestedFocusEvent(e),this.callBase.apply(this,arguments)},_focusOutHandler:function(e){this._preventNestedFocusEvent(e),this.callBase.apply(this,arguments)},_toggleFocusClass:function(e,n){this.callBase(e,this._focusClassTarget(n))},_hasFocusClass:function(e){return this.callBase(K(e||this.$element()))},_renderEmptinessEvent:function(){var e=this._input();We.on(e,"input blur",this._toggleEmptinessEventHandler.bind(this))},_toggleEmptinessEventHandler:function(){var e=this._input().val(),n=(""===e||null===e)&&this._isValueValid();this._toggleEmptiness(n)},_valueChangeEventHandler:function(e,n){this.option("readOnly")||(this._saveValueChangeEvent(e),this.option("value",arguments.length>1?n:this._input().val()),this._saveValueChangeEvent(void 0))},_renderEnterKeyAction:function(){this._enterKeyAction=this._createActionByOption("onEnterKey",{excludeValidators:["readOnly"]}),We.off(this._input(),"keyup.onEnterKey.dxTextEditor"),We.on(this._input(),"keyup.onEnterKey.dxTextEditor",this._enterKeyHandlerUp.bind(this))},_enterKeyHandlerUp:function(e){this._disposed||"enter"===ls(e)&&this._enterKeyAction({event:e})},_updateValue:function(){this._options.silent("text",null),this._renderValue()},_dispose:function(){this._enterKeyAction=void 0,this.callBase()},_getSubmitElement:function(){return this._input()},_hasActiveElement:function(){return this._input().is(gn.getActiveElement())},_optionChanged:function(e){var{name:n,fullName:t,value:o}=e;if(Ki(n.replace("on",""),$R)>-1)this._refreshEvents();else switch(n){case"valueChangeEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onValueChanged":this._createValueChangeAction();break;case"focusStateEnabled":this.callBase(e),this._toggleTabIndex();break;case"spellcheck":this._toggleSpellcheckState();break;case"mode":this._renderInputType();break;case"onEnterKey":this._renderEnterKeyAction();break;case"placeholder":this._renderPlaceholder();break;case"label":this._label.updateText(o),this._setLabelContainerAria();break;case"labelMark":this._label.updateMark(o);break;case"labelMode":this._label.updateMode(o),this._setLabelContainerAria();break;case"width":this.callBase(e),this._label.updateMaxWidth(this._getLabelContainerWidth());break;case"readOnly":case"disabled":this._updateButtons(),this.callBase(e);break;case"showClearButton":this._updateButtons(["clear"]);break;case"text":case"showValidationMark":break;case"value":this._updateValue(),this.callBase(e);break;case"inputAttr":this._applyInputAttributes(this._input(),this.option(n));break;case"stylingMode":this._renderStylingMode(),this._updateLabelWidth();break;case"buttons":t===n&&A0e(o),this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")),this._updateLabelWidth(),this._label.updateContainsButtonsBefore(!!this._$beforeButtonsContainer);break;case"visible":this.callBase(e),o&&this.option("buttons")&&(this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")));break;case"displayValueFormatter":this._invalidate();break;default:this.callBase(e)}},_renderInputType:function(){this._setInputType(this.option("mode"))},_setInputType:function(e){var n=this._input();"search"===e&&(e="text");try{n.prop("type",e)}catch(t){n.prop("type","text")}},getButton(e){return this._buttonCollection.getButton(e)},focus:function(){We.trigger(this._input(),"focus")},reset:function(){this._showValidMark&&(this._showValidMark=!1,this._renderValidationState());var e=this._getDefaultOptions();this.option("value")===e.value?(this._options.silent("text",""),this._renderValue()):this.option("value",e.value)},on:function(e,n){var t=this.callBase(e,n),o=e.charAt(0).toUpperCase()+e.substr(1);return $R.indexOf(o)>=0&&this._refreshEvents(),t}});const trt=ert;var oZ="dxMask";class L0e{constructor(n){this.editor=n,this.DIRECTION={FORWARD:"forward",BACKWARD:"backward"},this.NAME=this._getStrategyName()}_getStrategyName(){return"base"}editorOption(){return this.editor.option(...arguments)}editorInput(){return this.editor._input()}editorCaret(n){if(!n)return this.editor._caret();this.editor._caret(n)}getHandler(n){return(this["_".concat(n,"Handler")]||function(){}).bind(this)}attachEvents(){var n=this.editorInput();this.getHandleEventNames().forEach(t=>{var o=_n(t.toLowerCase(),oZ);We.on(n,o,this.getEventHandler(t))}),this._attachChangeEventHandlers()}getHandleEventNames(){return["focusIn","focusOut","keyDown","input","paste","cut","drop"]}getEventHandler(n){return this["_".concat(n,"Handler")].bind(this)}detachEvents(){We.off(this.editorInput(),".".concat(oZ))}_attachChangeEventHandlers(){-1!==Ki("change",this.editorOption("valueChangeEvent").split(" "))&&We.on(this.editorInput(),_n("blur beforedeactivate",oZ),function(n){this._suppressCaretChanging(this._changeHandler,[n]),this._changeHandler(n)}.bind(this.editor))}_focusInHandler(){if(this.editor._showMaskPlaceholder(),this.editor._direction(this.DIRECTION.FORWARD),!this.editor._isValueEmpty()&&this.editorOption("isValid"))this.editor._adjustCaret();else{var n=this.editor._maskRulesChain.first();this._caretTimeout=setTimeout(function(){this._caret({start:n,end:n})}.bind(this.editor),0)}}_focusOutHandler(n){this.editor._changeHandler(n),"onFocus"===this.editorOption("showMaskMode")&&this.editor._isValueEmpty()&&(this.editorOption("text",""),this.editor._renderDisplayText(""))}_cutHandler(n){var t=this.editorCaret(),o=this.editorInput().val().substring(t.start,t.end);this.editor._maskKeyHandler(n,()=>d9(n,o))}_dropHandler(){this._clearDragTimer(),this._dragTimer=setTimeout(function(){this.option("value",this._convertToValue(this._input().val()))}.bind(this.editor))}_clearDragTimer(){clearTimeout(this._dragTimer)}_keyDownHandler(){this._keyPressHandled=!1}_pasteHandler(n){var{editor:t}=this;this._keyPressHandled=!0;var o=this.editorCaret();t._maskKeyHandler(n,()=>{var r=d9(n),a=t._maskRulesChain.text().substring(o.end),l=t._handleChain({text:r,start:o.start,length:r.length}),c=o.start+l;t._handleChain({text:a,start:c,length:a.length}),t._caret({start:c,end:c})})}_autoFillHandler(n){var{editor:t}=this,o=this.editorInput().val();this._inputHandlerTimer=setTimeout(()=>{this._keyPressHandled=!0,this._isAutoFill()&&(this._keyPressHandled=!0,t._maskKeyHandler(n,()=>{t._handleChain({text:o,start:0,length:o.length})}),t._validateMask())})}_isAutoFill(){var n=this.editor._input(),t=!1;if(Ha.webkit){var o=n.get(0);t=o&&o.matches(":-webkit-autofill")}return t}runWithoutEventProcessing(n){var t=this._keyPressHandled;this._keyPressHandled=!0,n(),this._keyPressHandled=t}_backspaceHandler(){}_delHandler(n){var{editor:t}=this;this._keyPressHandled=!0,t._maskKeyHandler(n,()=>!t._hasSelection()&&t._handleKey(" "))}clean(){this._clearDragTimer(),clearTimeout(this._backspaceHandlerTimeout),clearTimeout(this._caretTimeout),clearTimeout(this._inputHandlerTimer)}}const srt=class art extends L0e{_getStrategyName(){return"default"}getHandleEventNames(){return[...super.getHandleEventNames(),"keyPress"]}_keyPressHandler(n){if(!this._keyPressHandled&&(this._keyPressHandled=!0,!this.editor._isControlKeyFired(n))){var{editor:t}=this;t._maskKeyHandler(n,()=>t._handleKey(Dl(n)))}}_inputHandler(n){if(this._backspaceInputHandled(n.originalEvent&&n.originalEvent.inputType)&&this._handleBackspaceInput(n),n.originalEvent&&this._autoFillHandler(n),!this._keyPressHandled){this._keyPressHandled=!0;var t=this.editorInput().val(),o=this.editorCaret();if(o.end){o.start=o.end-1;var r=t.substring(0,o.start)+t.substring(o.end),a=t[o.start],{editor:l}=this;this.editorInput().val(r),l._caret({start:o.start,end:o.start}),l._maskKeyHandler(n,()=>l._handleKey(a))}}}_backspaceHandler(n){var{editor:t}=this;this._keyPressHandled=!0;var o=(r,a)=>{r&&(t._direction(this.DIRECTION.FORWARD),t._adjustCaret());var l=this.editorCaret();return new vr(c=>{clearTimeout(this._backspaceHandlerTimeout),this._backspaceHandlerTimeout=setTimeout(function(){a(l),c()})})};t._maskKeyHandler(n,()=>t._hasSelection()?o(!0,r=>{t._displayMask(r),t._maskRulesChain.reset()}):t._tryMoveCaretBackward()?o(!1,r=>{this.editorCaret(r)}):(t._handleKey(" ",this.DIRECTION.BACKWARD),o(!0,r=>{t._displayMask(r),t._maskRulesChain.reset()})))}_backspaceInputHandled(n){return"deleteContentBackward"===n&&!this._keyPressHandled}_handleBackspaceInput(n){var{start:t,end:o}=this.editorCaret();this.editorCaret({start:t+1,end:o+1}),this._backspaceHandler(n)}},drt=class crt extends L0e{_getStrategyName(){return"inputEvents"}getHandleEventNames(){return[...super.getHandleEventNames(),"beforeInput"]}_beforeInputHandler(){this._prevCaret=this.editorCaret()}_inputHandler(n){var{originalEvent:t}=n;if(t){var{inputType:o,data:r}=t,a=this.editorCaret();if("deleteContentBackward"===o){var l=this._prevCaret.end-this._prevCaret.start||1;this.editor.setBackwardDirection(),this._updateEditorMask({start:a.start,length:l,text:this._getEmptyString(l)})}else{var c,p,b;if(!a.end)return;this._autoFillHandler(t),this.editorCaret(a);var T=(null===(c=this._prevCaret)||void 0===c?void 0:c.end)-(null===(p=this._prevCaret)||void 0===p?void 0:p.start),L=r+(T?this._getEmptyString(T-r.length):"");this.editor.setForwardDirection(),this._updateEditorMask({start:null===(b=this._prevCaret)||void 0===b?void 0:b.start,length:T||L.length,text:L})||this.editorCaret(this._prevCaret)}}}_getEmptyString(n){return Array(n+1).join(" ")}_updateEditorMask(n){var t=n.text.length,o=this.editor._handleChain(n);if(this.editor.isForwardDirection()){var{start:r,end:a}=this.editorCaret(),l=o-t;r<=o&&o>1&&this.editorCaret({start:r+l,end:a+l}),this.editor.isForwardDirection()&&this.editor._adjustCaret()}return this.editor._displayMask(),!!o}};var urt=function(){return{}},ZR=H$,B0e="dx-texteditor-masked",rZ="forward",grt={0:/[0-9]/,9:/[0-9\s]/,"#":/[-+0-9\s]/,L:function(e){return JR(e)},l:function(e){return JR(e)||H0e(e)},C:/\S/,c:/./,A:function(e){return JR(e)||z0e(e)},a:function(e){return JR(e)||z0e(e)||H0e(e)}};function z0e(e){return/[0-9]/.test(e)}function JR(e){var n=e.charCodeAt();return 64127}function H0e(e){return" "===e}var frt=trt.inherit({_getDefaultOptions:function(){return ye(this.callBase(),{mask:"",maskChar:"_",maskRules:{},maskInvalidMessage:ze.format("validation-mask"),useMaskedValue:!1,showMaskMode:"always"})},_supportedKeys:function(){var e=this,n={backspace:e._maskStrategy.getHandler("backspace"),del:e._maskStrategy.getHandler("del"),enter:e._changeHandler},t=e.callBase();return je(n,function(o,r){var a=t[o];t[o]=function(l){e.option("mask")&&r.call(e,l),a&&a(l)}}),t},_getSubmitElement:function(){return this.option("mask")?this._$hiddenElement:this.callBase()},_init:function(){this.callBase(),this._initMaskStrategy()},_initMaskStrategy:function(){this._maskStrategy=function Ztt(){return"onbeforeinput"in gn.createElement("input")&&!Ha.chrome||function $tt(){var{android:e,version:n}=ci.real();return e&&n[0]>4}()}()?new drt(this):new srt(this)},_initMarkup:function(){this._renderHiddenElement(),this.callBase()},_attachMouseWheelEventHandlers:function(){if(this._onMouseWheel!==gt){var n=this._input(),t=_n(m1,this.NAME),o=this._createAction(function(r){var{event:a}=r;h1(n)&&!Fs(a)&&(this._onMouseWheel(a),a.preventDefault(),a.stopPropagation())}.bind(this));We.off(n,t),We.on(n,t,function(r){o({event:r})})}},_onMouseWheel:gt,_render:function(){this._renderMask(),this.callBase(),this._attachMouseWheelEventHandlers()},_renderHiddenElement:function(){this.option("mask")&&(this._$hiddenElement=K("").attr("type","hidden").appendTo(this._inputWrapper()))},_removeHiddenElement:function(){this._$hiddenElement&&this._$hiddenElement.remove()},_renderMask:function(){this.$element().removeClass(B0e),this._maskRulesChain=null,this._maskStrategy.detachEvents(),this.option("mask")&&(this.$element().addClass(B0e),this._maskStrategy.attachEvents(),this._parseMask(),this._renderMaskedValue())},_suppressCaretChanging:function(e,n){ZR=urt;try{e.apply(this,n)}finally{ZR=H$}},_changeHandler:function(e){var n=this._input(),t=n.val();if(t!==this._changedValue){this._changedValue=t;var o=Tf(e,{type:"change"});We.trigger(n,o)}},_parseMask:function(){this._maskRules=ye({},grt,this.option("maskRules")),this._maskRulesChain=this._parseMaskRule(0)},_parseMaskRule:function(e){var n=this.option("mask");if(e>=n.length)return new Jtt;var t=n[e],o="\\"===t,r=o?new wge({maskChar:n[e+1]}):this._getMaskRule(t);return r.next(this._parseMaskRule(e+1+o)),r},_getMaskRule:function(e){var n;return je(this._maskRules,function(t,o){if(t===e)return n={pattern:t,allowedChars:o},!1}),ce(n)?new Mge(ye({maskChar:this.option("maskChar")},n)):new wge({maskChar:e})},_renderMaskedValue:function(){if(this._maskRulesChain){var e=this.option("value")||"";this._maskRulesChain.clear(this._normalizeChainArguments());var n={length:e.length};n[this._isMaskedValueMode()?"text":"value"]=e,this._handleChain(n),this._displayMask()}},_replaceSelectedText:function(e,n,t){return void 0===t?e:e.slice(0,n.start)+t+e.slice(n.end)},_isMaskedValueMode:function(){return this.option("useMaskedValue")},_displayMask:function(e){e=e||this._caret(),this._renderValue(),this._caret(e)},_isValueEmpty:function(){return mC(this._value)},_shouldShowMask:function(){return"onFocus"!==this.option("showMaskMode")||h1(this._input())||!this._isValueEmpty()},_showMaskPlaceholder:function(){if(this._shouldShowMask()){var e=this._maskRulesChain.text();this.option("text",e),"onFocus"===this.option("showMaskMode")&&this._renderDisplayText(e)}},_renderValue:function(){if(this._maskRulesChain&&(this._showMaskPlaceholder(),this._$hiddenElement)){var e=this._maskRulesChain.value(),n=mC(e)?"":this._getPreparedValue();this._$hiddenElement.val(n)}return this.callBase()},_getPreparedValue:function(){return this._convertToValue().replace(/\s+$/,"")},_valueChangeEventHandler:function(e){this._maskRulesChain?(this._saveValueChangeEvent(e),this.option("value",this._getPreparedValue())):this.callBase.apply(this,arguments)},_isControlKeyFired:function(e){return this._isControlKey(ls(e))||Fs(e)},_handleChain:function(e){var n=this._maskRulesChain.handle(this._normalizeChainArguments(e));return this._value=this._maskRulesChain.value(),this._textValue=this._maskRulesChain.text(),n},_normalizeChainArguments:function(e){return(e=e||{}).index=0,e.fullText=this._maskRulesChain.text(),e},_convertToValue:function(e){return this._isMaskedValueMode()?this._replaceMaskCharWithEmpty(e||this._textValue||""):e||this._value||""},_replaceMaskCharWithEmpty:function(e){return e.replace(new RegExp(this.option("maskChar"),"g")," ")},_maskKeyHandler:function(e,n){if(!this.option("readOnly")){this.setForwardDirection(),e.preventDefault(),this._handleSelection();var t=this._input().val(),o=()=>{t!==this._input().val()&&this._maskStrategy.runWithoutEventProcessing(()=>We.trigger(this._input(),"input"))},r=n();r?r.then(o):(this.setForwardDirection(),this._adjustCaret(),this._displayMask(),this._maskRulesChain.reset(),o())}},_handleKey:function(e,n){this._direction(n||rZ),this._adjustCaret(e),this._handleKeyChain(e),this._moveCaret()},_handleSelection:function(){if(this._hasSelection()){var e=this._caret(),n=new Array(e.end-e.start+1).join(" ");this._handleKeyChain(n)}},_handleKeyChain:function(e){var n=this._caret(),t=this.isForwardDirection()?n.start:n.start-1,o=this.isForwardDirection()?n.end:n.end-1;this._handleChain({text:e,start:t,length:t===o?1:o-t})},_tryMoveCaretBackward:function(){this.setBackwardDirection();var e=this._caret().start;return this._adjustCaret(),!e||e!==this._caret().start},_adjustCaret:function(e){var n=this._caret().start,t=this.isForwardDirection(),o=this._maskRulesChain.adjustedCaret(n,t,e);this._caret({start:o,end:o})},_moveCaret:function(){var e=this._caret().start,n=e+(this.isForwardDirection()?0:-1),t=this._maskRulesChain.isAccepted(n)?e+(this.isForwardDirection()?1:-1):e;this._caret({start:t,end:t})},_caret:function(e,n){var t=this._input();if(t.length){if(!arguments.length)return ZR(t);ZR(t,e,n)}},_hasSelection:function(){var e=this._caret();return e.start!==e.end},_direction:function(e){if(!arguments.length)return this._typingDirection;this._typingDirection=e},setForwardDirection:function(){this._direction(rZ)},setBackwardDirection:function(){this._direction("backward")},isForwardDirection:function(){return this._direction()===rZ},_clean:function(){this._maskStrategy&&this._maskStrategy.clean(),this.callBase()},_validateMask:function(){if(this._maskRulesChain){var e=mC(this.option("value"))||this._maskRulesChain.isValid(this._normalizeChainArguments());this.option({isValid:e,validationError:e?null:{editorSpecific:!0,message:this.option("maskInvalidMessage")}})}},_updateHiddenElement:function(){this._removeHiddenElement(),this.option("mask")&&(this._input().removeAttr("name"),this._renderHiddenElement()),this._setSubmitElementName(this.option("name"))},_updateMaskOption:function(){this._updateHiddenElement(),this._renderMask(),this._validateMask()},_processEmptyMask:function(e){if(!e){var n=this.option("value");this.option({text:n,isValid:!0}),this.validationRequest.fire({value:n,editor:this}),this._renderValue()}},_optionChanged:function(e){switch(e.name){case"mask":this._updateMaskOption(),this._processEmptyMask(e.value);break;case"maskChar":case"maskRules":case"useMaskedValue":this._updateMaskOption();break;case"value":this._renderMaskedValue(),this._validateMask(),this.callBase(e),this._changedValue=this._input().val();break;case"maskInvalidMessage":break;case"showMaskMode":this.option("text",""),this._renderValue();break;default:this.callBase(e)}}});const V0e=frt;xi("dxTextEditor",V0e);const N0e=V0e;var mrt=Mi(),_rt=["backspace","tab","enter","pageUp","pageDown","end","home","leftArrow","rightArrow","downArrow","upArrow","del"],F0e="dx-searchbox",U0e=N0e.inherit({ctor:function(e,n){n&&(this._showClearButton=n.showClearButton),this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return ye(this.callBase(),{value:"",mode:"text",maxLength:null})},_initMarkup:function(){this.$element().addClass("dx-textbox"),this.callBase(),this.setAria("role","textbox")},_renderInputType:function(){this.callBase(),this._renderSearchMode()},_useTemplates:function(){return!1},_renderProps:function(){this.callBase(),this._toggleMaxLengthProp()},_toggleMaxLengthProp:function(){var e=this._getMaxLength();e&&e>0?this._input().attr("maxLength",e):this._input().removeAttr("maxLength")},_renderSearchMode:function(){var e=this._$element;"search"===this.option("mode")?(e.addClass(F0e),this._renderSearchIcon(),void 0===this._showClearButton&&(this._showClearButton=this.option("showClearButton"),this.option("showClearButton",!0))):(e.removeClass(F0e),this._$searchIcon&&this._$searchIcon.remove(),this.option("showClearButton",void 0===this._showClearButton?this.option("showClearButton"):this._showClearButton),delete this._showClearButton)},_renderSearchIcon:function(){var e=K("
").addClass("dx-icon").addClass("dx-icon-search");e.prependTo(this._input().parent()),this._$searchIcon=e},_getLabelContainerWidth:function(){if(this._$searchIcon){var e=this._input().parent();return vi(e)-this._getLabelBeforeWidth()}return this.callBase()},_getLabelBeforeWidth:function(){var e=this.callBase();return this._$searchIcon&&(e+=ho(this._$searchIcon)),e},_optionChanged:function(e){switch(e.name){case"maxLength":this._toggleMaxLengthProp();break;case"mode":this.callBase(e),this._updateLabelWidth();break;case"mask":this.callBase(e),this._toggleMaxLengthProp();break;default:this.callBase(e)}},_onKeyDownCutOffHandler:function(e){var n=this._getMaxLength();if(!n||e.ctrlKey||this._hasSelection())return!0;var t=K(e.target),o=ls(e);return this._cutOffExtraChar(t),t.val().lengthn&&e.val(t.substr(0,n))},_getMaxLength:function(){return this.option("mask")?null:this.option("maxLength")}});xi("dxTextBox",U0e);const M1=U0e;var brt=hr.inherit({ctor:function(){this._dataStructure=[],this._itemsCount=0,this._visibleItemsCount=0},_indexByKey:{},_convertItemsToNodes:function(e,n){var t=this;je(e,function(o,r){var a=ce(n)?n:t._getParentId(r),l=t._convertItemToNode(r,a);t._dataStructure.push(l),t._checkForDuplicateId(l.internalFields.key),t._indexByKey[l.internalFields.key]=t._dataStructure.length-1,t._itemHasChildren(r)&&t._convertItemsToNodes(t._dataAccessors.getters.items(r),l.internalFields.key)})},_checkForDuplicateId:function(e){if(ce(this._indexByKey[e]))throw Ho.Error("E1040",e)},_getParentId:function(e){return"plain"===this._dataType?this._dataAccessors.getters.parentKey(e):void 0},_itemHasChildren:function(e){if("plain"!==this._dataType){var n=this._dataAccessors.getters.items(e);return n&&n.length}},_getUniqueKey:function(e){var n=this._dataAccessors.getters.key,t=n(e);return n&&(t||0===t)&&fC(t)?t:this.getItemsCount()},_convertItemToNode:function(e,n){this._itemsCount++,!1!==e.visible&&this._visibleItemsCount++;var t={internalFields:{disabled:this._dataAccessors.getters.disabled(e,{defaultValue:!1}),expanded:this._dataAccessors.getters.expanded(e,{defaultValue:!1}),selected:this._dataAccessors.getters.selected(e,{defaultValue:!1}),key:this._getUniqueKey(e),parentKey:ce(n)?n:this._rootValue,item:this._makeObjectFromPrimitive(e),childrenKeys:[]}};return ye(t,e),delete t.items,t},setChildrenKeys:function(){var e=this;je(this._dataStructure,function(n,t){if(t.internalFields.parentKey!==e._rootValue){var o=e.getParentNode(t);o&&o.internalFields.childrenKeys.push(t.internalFields.key)}})},_makeObjectFromPrimitive:function(e){if(fC(e)){var n=e;this._dataAccessors.setters.key(e={},n)}return e},_convertToPublicNode:function(e,n){if(!e)return null;var t={text:this._dataAccessors.getters.display(e),key:e.internalFields.key,selected:e.internalFields.selected,expanded:e.internalFields.expanded,disabled:e.internalFields.disabled,parent:n||null,itemData:e.internalFields.item,children:[],items:[]};return t.parent&&(t.parent.children.push(t),t.parent.items.push(t)),t},convertToPublicNodes:function(e,n){if(!e.length)return[];var t=this,o=[];return je(e,function(r,a){a=fC(a)?t._getByKey(a):a;var l=t._convertToPublicNode(a,n);l.children=t.convertToPublicNodes(a.internalFields.childrenKeys,l),o.push(l),a.internalFields.publicNode=l}),o},setDataAccessors:function(e){this._dataAccessors=e},_getByKey:function(e){return this._dataStructure[this.getIndexByKey(e)]||null},getParentNode:function(e){return this._getByKey(e.internalFields.parentKey)},getByKey:function(e,n){if(null==n)return null;var l,t=null,o=this;return l=n,je(e,function(c,p){if((p.internalFields&&p.internalFields.key||o._dataAccessors.getters.key(p)).toString()===l.toString())return t=p,!1}),t},getItemsCount:function(){return this._itemsCount},getVisibleItemsCount:function(){return this._visibleItemsCount},updateIndexByKey:function(){var e=this;this._indexByKey={},je(this._dataStructure,function(n,t){e._checkForDuplicateId(t.internalFields.key),e._indexByKey[t.internalFields.key]=n})},updateChildrenKeys:function(){this._indexByKey={},this.removeChildrenKeys(),this.updateIndexByKey(),this.setChildrenKeys()},removeChildrenKeys:function(){this._indexByKey={},je(this._dataStructure,function(e,n){n.internalFields.childrenKeys=[]})},getIndexByKey:function(e){return this._indexByKey[e]},createPlainStructure:function(e,n,t){return this._itemsCount=0,this._visibleItemsCount=0,this._rootValue=n,this._dataType=t,this._indexByKey={},this._convertItemsToNodes(e),this.setChildrenKeys(),this._dataStructure}});const xrt=brt;var nx="expanded",Sy="selected";xy.setEditorClass(M1);var Mrt=hr.inherit({ctor:function(e){this.options={},ye(this.options,this._defaultOptions(),e),this.options.dataConverter.setDataAccessors(this.options.dataAccessors),this._selectedNodesKeys=[],this._expandedNodesKeys=[],this._dataStructure=[],this._createInternalDataStructure(),this.getTreeNodes()},setOption:function(e,n){this.options[e]=n,"recursiveSelection"===e&&this._updateSelection()},_defaultOptions:function(){return{dataAccessors:void 0,items:[],multipleSelection:!0,recursiveSelection:!1,recursiveExpansion:!1,rootValue:0,searchValue:"",dataType:"tree",searchMode:"contains",dataConverter:new xrt,onNodeChanged:gt,sort:null}},_createInternalDataStructure:function(){this._initialDataStructure=this.options.dataConverter.createPlainStructure(this.options.items,this.options.rootValue,this.options.dataType),this._dataStructure=this.options.searchValue.length?this.search(this.options.searchValue):this._initialDataStructure,this.options.dataConverter._dataStructure=this._dataStructure,this._updateSelection(),this._updateExpansion()},_updateSelection:function(){this.options.recursiveSelection&&(this._setChildrenSelection(),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(Sy)},_updateExpansion:function(e){this.options.recursiveExpansion&&(e?this._updateOneBranch(e):this._setParentExpansion()),this._expandedNodesKeys=this._updateNodesKeysArray(nx)},_updateNodesKeysArray:function(e){var n=this,t=[];return je(n._getDataBySelectionMode(),function(o,r){!n._isNodeVisible(r)||r.internalFields[e]&&(e===nx||n.options.multipleSelection?t.push(r.internalFields.key):(t.length&&n.toggleSelection(t[0],!1,!0),t=[r.internalFields.key]))}),t},_getDataBySelectionMode:function(){return this.options.multipleSelection?this.getData():this.getFullData()},_isNodeVisible:function(e){return!1!==e.internalFields.item.visible},_getByKey:function(e,n){return e===this._dataStructure?this.options.dataConverter._getByKey(n):this.options.dataConverter.getByKey(e,n)},_setChildrenSelection:function(){var e=this;je(this._dataStructure,function(n,t){if(t.internalFields.childrenKeys.length){var o=t.internalFields.selected;!0===o&&e._toggleChildrenSelection(t,o)}})},_setParentSelection:function(){var e=this;je(this._dataStructure,function(n,t){e.options.dataConverter.getParentNode(t)&&t.internalFields.parentKey!==e.options.rootValue&&e._iterateParents(t,function(r){var a=e._calculateSelectedState(r);e._setFieldState(r,Sy,a)})})},_setParentExpansion:function(){var e=this;je(this._dataStructure,function(n,t){!t.internalFields.expanded||e._updateOneBranch(t.internalFields.key)})},_updateOneBranch:function(e){var n=this,t=this.getNodeByKey(e);n._iterateParents(t,function(o){n._setFieldState(o,nx,!0)})},_iterateChildren:function(e,n,t,o){if(qn(t)){var r=this,a=e.internalFields.key;-1===(o=o||[]).indexOf(a)&&(o.push(a),je(e.internalFields.childrenKeys,function(l,c){var p=r.getNodeByKey(c);t(p),p.internalFields.childrenKeys.length&&n&&r._iterateChildren(p,n,t,o)}))}},_iterateParents:function(e,n,t){if(e.internalFields.parentKey!==this.options.rootValue&&qn(n)){var o=e.internalFields.key;if(-1===(t=t||[]).indexOf(o)){t.push(o);var r=this.options.dataConverter.getParentNode(e);r&&(n(r),r.internalFields.parentKey!==this.options.rootValue&&this._iterateParents(r,n,t))}}},_calculateSelectedState:function(e){for(var n=e.internalFields.childrenKeys.length,t=0,o=0,r=!1,a=0;a<=n-1;a++){var l=this.getNodeByKey(e.internalFields.childrenKeys[a]),p=l.internalFields.selected;!1===l.internalFields.item.visible?o++:p?t++:void 0===p&&(t+=.5)}return t&&(r=t===n-o||void 0),r},_toggleChildrenSelection:function(e,n){var t=this;this._iterateChildren(e,!0,function(o){t._isNodeVisible(o)&&t._setFieldState(o,Sy,n)})},_setFieldState:function(e,n,t){e.internalFields[n]!==t&&(e.internalFields[n]=t,e.internalFields.publicNode&&(e.internalFields.publicNode[n]=t),this.options.dataAccessors.setters[n](e.internalFields.item,t),this.options.onNodeChanged(e))},_markChildren:function(e){var n=this;je(e,function(t,o){var r=n.getIndexByKey(o),a=n.getNodeByKey(o);n._dataStructure[r]=0,a.internalFields.childrenKeys.length&&n._markChildren(a.internalFields.childrenKeys)})},_removeNode:function(e){var n=this.getNodeByKey(e);this._dataStructure[this.getIndexByKey(e)]=0,this._markChildren(n.internalFields.childrenKeys);var t=this,o=0,r=ye([],this._dataStructure);je(r,function(a,l){l||(t._dataStructure.splice(a-o,1),o++)})},_addNode:function(e){var n=this.options.dataConverter,t=n._convertItemToNode(e,this.options.dataAccessors.getters.parentKey(e));this._dataStructure=this._dataStructure.concat(t),this._initialDataStructure=this._initialDataStructure.concat(t),n._dataStructure=n._dataStructure.concat(t)},_updateFields:function(){this.options.dataConverter.updateChildrenKeys(),this._updateSelection(),this._updateExpansion()},getSelectedNodesKeys:function(){return this._selectedNodesKeys},getExpandedNodesKeys:function(){return this._expandedNodesKeys},getData:function(){return this._dataStructure},getFullData:function(){return this._initialDataStructure},getNodeByItem:function(e){var n=null;return je(this._dataStructure,function(t,o){if(o.internalFields.item===e)return n=o,!1}),n},getNodesByItems:function(e){var n=this,t=[];return je(e,function(o,r){var a=n.getNodeByItem(r);a&&t.push(a)}),t},getNodeByKey:function(e,n){return this._getByKey(n||this._getDataBySelectionMode(),e)},getTreeNodes:function(){return this.options.dataConverter.convertToPublicNodes(this.getRootNodes())},getItemsCount:function(){return this.options.dataConverter.getItemsCount()},getVisibleItemsCount:function(){return this.options.dataConverter.getVisibleItemsCount()},getPublicNode:function(e){return e.internalFields.publicNode},getRootNodes:function(){return this.getChildrenNodes(this.options.rootValue)},getChildrenNodes:function(e){return Sc(this._dataStructure).filter(["internalFields.parentKey",e]).toArray()},getIndexByKey:function(e){return this.options.dataConverter.getIndexByKey(e)},addItem:function(e){this._addNode(e),this._updateFields()},removeItem:function(e){this._removeNode(e),this._updateFields()},toggleSelection:function(e,n,t){var o=this._isSingleModeUnselect(n),r=this._getByKey(t||o?this._initialDataStructure:this._dataStructure,e);this._setFieldState(r,Sy,n),this.options.recursiveSelection&&!t&&(n?this._setChildrenSelection():this._toggleChildrenSelection(r,n),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(Sy)},_isSingleModeUnselect:function(e){return!this.options.multipleSelection&&!e},toggleNodeDisabledState:function(e,n){var t=this.getNodeByKey(e);this._setFieldState(t,"disabled",n)},toggleSelectAll:function(e){if(ce(e)){var n=this,t=n._selectedNodesKeys[n._selectedNodesKeys.length-1],o=n._isSingleModeUnselect(e)?this._initialDataStructure:this._dataStructure;je(o,function(r,a){!n._isNodeVisible(a)||n._setFieldState(a,Sy,e)}),n._selectedNodesKeys=n._updateNodesKeysArray(Sy),!e&&n.options.selectionRequired&&n.toggleSelection(t,!0)}},isAllSelected:function(){return!!this.getSelectedNodesKeys().length&&(this.getSelectedNodesKeys().length===this.getVisibleItemsCount()||void 0)},toggleExpansion:function(e,n){var t=this.getNodeByKey(e);this._setFieldState(t,nx,n),n&&this._updateExpansion(e),this._expandedNodesKeys=this._updateNodesKeysArray(nx)},isFiltered:function(e){return!this.options.searchValue.length||!!this._filterDataStructure(this.options.searchValue,[e]).length},_createCriteria:function(e,n,t){var o=[];return Array.isArray(e)?(je(e,function(r,a){o.push([a,t,n],"or")}),o.pop(),o):[e,t,n]},_filterDataStructure:function(e,n){var t=this.options.searchExpr||this.options.dataAccessors.getters.display,o=xy.getOperationBySearchMode(this.options.searchMode),r=this._createCriteria(t,e,o);return Sc(n=n||this._initialDataStructure).filter(r).toArray()},search:function(e){var n=this,t=this._filterDataStructure(e),o=this.options.dataConverter;return function r(a,l){for(var c=a.length;l-1?l++:(a.splice(l,0,b),r(a,l))):(Ho.log("W1007",p.internalFields.parentKey,p.internalFields.key),l++)}else l++}}(t,0),this.options.sort&&(t=Af.queryByOptions(Sc(t),{sort:this.options.sort}).toArray()),o._indexByKey={},je(t,function(r,a){a.internalFields.childrenKeys=[],o._indexByKey[a.internalFields.key]=r}),o._dataStructure=t,o.setChildrenKeys(),o._dataStructure}});const wrt=Mrt;var j0e=hr.inherit({ctor:function(e,n,t){this._$element=e,this._options=n,this._rawData=t,yA(e,this,this._dispose),this._render()},_render:function(){var e=K("
").addClass("dx-item-content-placeholder");this._$element.append(e),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(e,n){var t=this._rawData,o=this._options.fieldGetter(e),r=function(e,n,t){var r,o=function(a){r!==a&&(t(a,r),r=a)};return{dispose:e(n,o),force:function(){o(n())}}}(this._options.watchMethod(),function(){return o(t)},function(a,l){this._dirty=!0,n(a,l)}.bind(this));this._watchers.push(r)},setDataField:function(){if(this._dirty=!1,je(this._watchers,function(e,n){n.force()}),this._dirty)return!0},_renderDisabled:function(e,n){this._$element.toggleClass("dx-state-disabled",!!e),this._updateOwnerFocus(e)},_updateOwnerFocus:function(e){var n=this._options.owner;n&&e&&n._resetItemFocus(this._$element)},_renderVisible:function(e,n){this._$element.toggleClass("dx-state-invisible",void 0!==e&&!e)},_dispose:function(){je(this._watchers,function(e,n){n.dispose()})}});j0e.getInstance=function(e){return IC(e,this)};const ix=j0e;var G0e=Math.abs,aZ="dxhold",Ert=HC.inherit({start:function(e){this._startEventData=es(e),this._startTimer(e)},_startTimer:function(e){var n="timeout"in this?this.timeout:750;this._holdTimer=setTimeout(function(){this._requestAccept(e),this._fireEvent(aZ,e,{target:e.target}),this._forgetAccept()}.bind(this),n)},move:function(e){this._touchWasMoved(e)&&this._cancel(e)},_touchWasMoved:function(e){var n=f1(this._startEventData,es(e));return G0e(n.x)>5||G0e(n.y)>5},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});If({emitter:Ert,bubble:!0,events:[aZ]});var sZ="dxContexMenu",krt=_n("contextmenu",sZ),Art=_n("dxhold",sZ),lZ="dxcontextmenu",Lrt=hr.inherit({setup:function(e){var n=K(e);We.on(n,krt,this._contextMenuHandler.bind(this)),(Df||ci.isSimulator())&&We.on(n,Art,this._holdHandler.bind(this))},_holdHandler:function(e){mg(e)&&!ci.isSimulator()||this._fireContextMenu(e)},_contextMenuHandler:function(e){this._fireContextMenu(e)},_fireContextMenu:function(e){return rp({type:lZ,originalEvent:e})},teardown:function(e){We.off(e,"."+sZ)}});xh(lZ,new Lrt);var QR=lZ;class Og extends r0{constructor(n,t,o,r){super(),this._render=n,this._fields=t,this._fieldsMap=r||{},this._watchMethod=o}_renderCore(n){var t=K(n.container),o=function(e,n,t,o,r){var a,c,l=(c=e,n(()=>c,function(c){var p,b,T,L,N,G,Y,ie;a&&a(),fC(c)?r(c):(p=c,b=n,L=o,N=r,G={},Y=(T=t).slice(),ie=T.map(function(ue){var xe=L[ue];return b(xe?()=>xe(p):()=>p[ue],function(Se){if(G[ue]=Se,Y.length){var Te=Y.indexOf(ue);Te>=0&&Y.splice(Te,1)}Y.length||N(G)})}),a=function(){ie.forEach(ue=>ue())})}));return function(){a&&a(),l&&l()}}(n.model,this._watchMethod,this._fields,this._fieldsMap,r=>{t.empty(),this._render(t,r,n.model)});return We.on(t,hg,o),t.contents()}}var XR="dx-item",Y0e="dx-item-content-placeholder",q0e="dx-template-wrapper",Grt=/^([^.]+\[\d+\]\.)+([\w.]+)$/,dZ="down",X0e=br.inherit({_activeStateUnit:"."+XR,_supportedKeys:function(){var e=function(t){var o=K(this.option("focusedElement"));!o.length||this._itemClickHandler(ye({},t,{target:o.get(0),currentTarget:o.get(0)}))},n=function(t,o){Fs(o)||(o.preventDefault(),o.stopPropagation(),this._moveFocus(t,o))};return ye(this.callBase(),{space:function(t){t.preventDefault(),e.call(this,t)},enter:e,leftArrow:n.bind(this,"left"),rightArrow:n.bind(this,"right"),upArrow:n.bind(this,"up"),downArrow:n.bind(this,dZ),pageUp:n.bind(this,"up"),pageDown:n.bind(this,dZ),home:n.bind(this,"first"),end:n.bind(this,"last")})},_getDefaultOptions:function(){return ye(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:ze.format("dxCollectionWidget-noDataText"),encodeNoDataText:!1,dataSource:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,displayExpr:void 0,disabledExpr:function(e){return e?e.disabled:void 0},visibleExpr:function(e){return e?e.visible:void 0}})},_init:function(){this._compileDisplayGetter(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter:function(){var e=this.option("displayExpr");this._displayGetter=e?Wo(this.option("displayExpr")):void 0},_initTemplates:function(){this._initItemsFromMarkup(),this._initDefaultItemTemplate(),this.callBase()},_getAnonymousTemplateName:function(){return"item"},_initDefaultItemTemplate:function(){var e=this._getFieldsMap();this._templateManager.addDefaultTemplates({item:new Og(function(n,t){jo(t)?this._prepareDefaultItemTemplate(t,n):(e&&qn(e.text)&&(t=e.text(t)),n.text(String(Kr(t,""))))}.bind(this),this._getBindableFields(),this.option("integrationOptions.watchMethod"),e)})},_getBindableFields:function(){return["text","html"]},_getFieldsMap:function(){if(this._displayGetter)return{text:this._displayGetter}},_prepareDefaultItemTemplate:function(e,n){ce(e.text)&&n.text(e.text),ce(e.html)&&n.html(e.html)},_initItemsFromMarkup:function(){var e=m9(this.$element(),"dxItem");if(e.length&&!this.option("items").length){var n=e.map(t=>{var{element:o,options:r}=t;return/\S/.test(o.innerHTML)&&!r.template?r.template=this._prepareItemTemplate(o):K(o).remove(),r});this.option("items",n)}},_prepareItemTemplate:function(e){var n="tmpl-"+new ss,t=K(e).detach().clone().removeAttr("data-options").addClass(q0e);return this._saveTemplate(n,t),n},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(e){if(this.callBase.apply(this,arguments),-1!==Ki(e.target,this._focusTarget())){var n=K(this.option("focusedElement"));if(n.length)this._setFocusedItem(n);else{var t=this._getActiveItem();t.length&&this.option("focusedElement",Di(t))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var e=K(this.option("focusedElement"));this._updateFocusedItemState(e,!1)},_getActiveItem:function(e){var n=K(this.option("focusedElement"));if(n.length)return n;var t=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,o=this._getActiveElement();return t<0&&(t=e?o.length-1:0),o.eq(t)},_moveFocus:function(e){var t,n=this._getAvailableItems();switch(e){case"pageup":case"up":t=this._prevItem(n);break;case"pagedown":case dZ:t=this._nextItem(n);break;case"right":t=this.option("rtlEnabled")?this._prevItem(n):this._nextItem(n);break;case"left":t=this.option("rtlEnabled")?this._nextItem(n):this._prevItem(n);break;case"first":t=n.first();break;case"last":t=n.last();break;default:return!1}0!==t.length&&this.option("focusedElement",Di(t))},_getVisibleItems:function(e){return(e=e||this._itemElements()).filter(":visible")},_getAvailableItems:function(e){return this._getVisibleItems(e).not(".dx-state-disabled")},_prevItem:function(e){var n=this._getActiveItem(),t=e.index(n),o=e.last(),r=K(e[t-1]),a=this.option("loopItemFocus");return 0===r.length&&a&&(r=o),r},_nextItem:function(e){var n=this._getActiveItem(!0),t=e.index(n),o=e.first(),r=K(e[t+1]),a=this.option("loopItemFocus");return 0===r.length&&a&&(r=o),r},_selectFocusedItem:function(e){this.selectItem(e)},_updateFocusedItemState:function(e,n,t){var o=K(e);o.length&&(this._refreshActiveDescendant(),this._refreshItemId(o,t),this._toggleFocusClass(n,o)),this._updateParentActiveDescendant()},_refreshActiveDescendant:function(e){this.setAria("activedescendant",ce(this.option("focusedElement"))?this.getFocusedItemId():null,e)},_refreshItemId:function(e,n){!n&&this.option("focusedElement")?this.setAria("id",this.getFocusedItemId(),e):this.setAria("id",null,e)},_setFocusedItem:function(e){!e||!e.length||(this._updateFocusedItemState(e,!0),this.onFocusedItemChanged(this.getFocusedItemId()),this.option("selectOnFocus")&&this._selectFocusedItem(e))},_findItemElementByItem:function(e){var n=K(),t=this;return this.itemElements().each(function(){var o=K(this);if(o.data(t._itemDataKey())===e)return n=o,!1}),n},_getIndexByItem:function(e){return this.option("items").indexOf(e)},_itemOptionChanged:function(e,n,t,o){var r=this._findItemElementByItem(e);r.length&&(this.constructor.ItemClass.getInstance(r).setDataField(n,t)||this._refreshItem(r,e),"disabled"===n&&t&&this._resetItemFocus(r))},_resetItemFocus(e){e.is(this.option("focusedElement"))&&this.option("focusedElement",null)},_refreshItem:function(e){var n=this._getItemData(e),t=e.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+t,n,null,e)},_updateParentActiveDescendant:gt,_optionChanged:function(e){if("items"===e.name){var n=e.fullName.match(Grt);if(n&&n.length){var t=n[n.length-1],o=e.fullName.replace("."+t,""),r=this.option(o);return void this._itemOptionChanged(r,t,e.value,e.previousValue)}}switch(e.name){case"items":case"_itemAttributes":case"itemTemplateProperty":case"useItemTextAsTitle":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":case"encodeNoDataText":this._renderEmptyMessage();break;case"itemTemplate":case"visibleExpr":case"disabledExpr":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"focusedElement":this._updateFocusedItemState(e.previousValue,!1,!0),this._setFocusedItem(K(e.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();break;default:this.callBase(e)}},_invalidate:function(){return this.option("focusedElement",null),this.callBase.apply(this,arguments)},_loadNextPage:function(){var e=this._dataSource;return this._expectNextPageLoading(),e.pageIndex(1+e.pageIndex()),e.load()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(e){var n=this.option("items");this._initialized&&n&&this._shouldAppendItems()?(this._renderedItemsCount=n.length,(!this._isLastPage()||-1!==this._startIndexForAppendedItems)&&(this.option().items=n.concat(e.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent()):this.option("items",e.slice())},_refreshContent:function(){this._prepareContent(),this._renderContent()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems:function(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:function(){return!1},_clean:function(){this._cleanFocusState(),this._cleanItemContainer(),this._inkRipple&&delete this._inkRipple,this._resetActiveState()},_cleanItemContainer:function(){K(this._itemContainer()).empty()},_dispose:function(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh:function(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer:function(){return this.$element()},_itemClass:function(){return XR},_itemContentClass:function(){return this._itemClass()+"-content"},_selectedItemClass:function(){return"dx-item-selected"},_itemResponseWaitClass:function(){return"dx-item-response-wait"},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return"dxItemData"},_itemIndexKey:function(){return"dxItemIndex"},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass("dx-collection"),this._prepareContent()},_prepareContent:_v(function(){this._renderContentImpl()}),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var e=this._itemSelector(),n=_n(Go,this.NAME),t=_n(io.down,this.NAME),o=this,r=new Mf(function(a){o._itemPointerDownHandler(a.event)});We.off(this._itemContainer(),n,e),We.off(this._itemContainer(),t,e),We.on(this._itemContainer(),n,e,function(a){this._itemClickHandler(a)}.bind(this)),We.on(this._itemContainer(),t,e,function(a){r.execute({element:K(a.target),event:a})})},_itemClickHandler:function(e,n,t){this._itemDXEventHandler(e,"onItemClick",n,t)},_itemPointerDownHandler:function(e){!this.option("focusStateEnabled")||(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!e.isDefaultPrevented()){var n=K(e.target),t=n.closest(this._itemElements()),o=this._closestFocusable(n);t.length&&o&&-1!==Ki(o.get(0),this._focusTarget())&&this.option("focusedElement",Di(t))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(e){if(e.is(e5))return e;for(e=e.parent();e.length&&!gn.isDocument(e.get(0));){if(e.is(e5))return e;e=e.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var e=this._itemContainer(),n=this._itemSelector(),t=_n("dxhold",this.NAME);We.off(e,t,n),We.on(e,t,n,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(e){this._shouldFireHoldEvent()?this._itemDXEventHandler(e,"onItemHold"):e.cancel=!0},_attachContextMenuEvent:function(){var e=this._itemContainer(),n=this._itemSelector(),t=_n(QR,this.NAME);We.off(e,t,n),We.on(e,t,n,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(e){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(e,"onItemContextMenu"):e.cancel=!0},_renderContentImpl:function(){var e=this.option("items")||[];this._renderItems(this._renderedItemsCount?e.slice(this._renderedItemsCount):e)},_renderItems:function(e){e.length&&je(e,function(n,t){this._renderItem(this._renderedItemsCount+n,t)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(e,n,t,o){var r,a=null!==(r=null==e?void 0:e.item)&&void 0!==r?r:e;t=t||this._itemContainer();var l=this._renderItemFrame(a,n,t,o);this._setElementData(l,n,a),l.attr(this.option("_itemAttributes")),this._attachItemClickEvent(n,l);var c=this._getItemContent(l),p=this._renderItemContent({index:a,itemData:n,container:Di(c),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),b=this;return Xn(p).done(function(T){b._postprocessRenderItem({itemElement:l,itemContent:T,itemData:n,itemIndex:a}),b._executeItemRenderAction(e,n,Di(l))}),l},_getItemContent:function(e){var n=e.find("."+Y0e);return n.removeClass(Y0e),n},_attachItemClickEvent:function(e,n){!e||!e.onClick||We.on(n,Go,function(t){this._itemEventHandlerByHandler(n,e.onClick,{event:t})}.bind(this))},_renderItemContent:function(e){var n=this._getItemTemplateName(e),t=this._getTemplate(n);this._addItemContentClasses(e);var o=K(this._createItemByTemplate(t,e));return o.hasClass(q0e)?this._renderItemContentByNode(e,o):e.container},_renderItemContentByNode:function(e,n){return K(e.container).replaceWith(n),e.container=Di(n),this._addItemContentClasses(e),n},_addItemContentClasses:function(e){var n=[XR+"-content",e.contentClass];K(e.container).addClass(n.join(" "))},_appendItemToContainer:function(e,n,t){n.appendTo(e)},_renderItemFrame:function(e,n,t,o){var r=K("
");if(new this.constructor.ItemClass(r,this._itemOptions(),n||{}),o&&o.length?o.replaceWith(r):this._appendItemToContainer.call(this,t,r,e),this.option("useItemTextAsTitle")){var a=this._displayGetter?this._displayGetter(n):n;r.attr("title",a)}return r},_itemOptions:function(){var e=this;return{watchMethod:function(){return e.option("integrationOptions.watchMethod")},owner:e,fieldGetter:function(n){var t=e.option(n+"Expr");return Wo(t)}}},_postprocessRenderItem:gt,_executeItemRenderAction:function(e,n,t){this._getItemRenderAction()({itemElement:t,itemIndex:e,itemData:n})},_setElementData:function(e,n,t){e.addClass([XR,this._itemClass()].join(" ")).data(this._itemDataKey(),n).data(this._itemIndexKey(),t)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(e){var n=e.itemData,t=e.templateProperty||this.option("itemTemplateProperty");return n&&n[t]||e.defaultTemplateName},_createItemByTemplate:function(e,n){return e.render({model:n.itemData,container:n.container,index:n.index})},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(e){e=e||this.option("items");var n=this.option("noDataText"),t=!n||e&&e.length||this._isDataSourceLoading();t&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),t||(this._$noData=this._$noData||K("
").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()),this.option("encodeNoDataText")?this._$noData.text(n):this._$noData.html(n),this.setAria("label",n)),this.$element().toggleClass("dx-empty-collection",!t)},_itemDXEventHandler:function(e,n,t,o){this._itemEventHandler(e.target,n,ye(t,{event:e}),o)},_itemEventHandler:function(e,n,t,o){var r=this._createActionByOption(n,ye({validatingTargetName:"itemElement"},o));return this._itemEventHandlerImpl(e,r,t)},_itemEventHandlerByHandler:function(e,n,t,o){var r=this._createAction(n,ye({validatingTargetName:"itemElement"},o));return this._itemEventHandlerImpl(e,r,t)},_itemEventHandlerImpl:function(e,n,t){var o=this._closestItemElement(K(e)),r=ye({},t);return n(ye(t,this._extendActionArgs(o),r))},_extendActionArgs:function(e){return{itemElement:Di(e),itemIndex:this._itemElements().index(e),itemData:this._getItemData(e)}},_closestItemElement:function(e){return K(e).closest(this._itemSelector())},_getItemData:function(e){return K(e).data(this._itemDataKey())},_getSummaryItemsWidth:function(e,n){var t=0;return e&&je(e,function(o,r){t+=ho(r,n||!1)}),t},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new ss),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(f0);X0e.ItemClass=ix;const qrt=X0e;var Lh=hr.abstract,$rt=hr.inherit({ctor:function(e){this._collectionWidget=e},getIndexByItemData:Lh,getItemDataByIndex:Lh,getKeysByItems:Lh,getItemsByKeys:Lh,itemsGetter:Lh,getKeyByIndex:function(e){var n=this._denormalizeItemIndex(e);return this.getKeysByItems([this.getItemDataByIndex(n)])[0]},_equalKeys:function(e,n){return this._collectionWidget._isKeySpecified()?fa(e,n):e===n},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:Lh,getNormalizedIndex:function(e){return this._isNormalizedItemIndex(e)?e:this._isItemIndex(e)?this._normalizeItemIndex(e):this._isNode(e)?this._getNormalizedItemIndex(e):this._normalizeItemIndex(this.getIndexByItemData(e))},getIndex:function(e){return this._isNormalizedItemIndex(e)?this._denormalizeItemIndex(e):this._isItemIndex(e)?e:this._isNode(e)?this._denormalizeItemIndex(this._getNormalizedItemIndex(e)):this.getIndexByItemData(e)},getItemElement:function(e){if(this._isNormalizedItemIndex(e))return this._getItemByNormalizedIndex(e);if(this._isItemIndex(e))return this._getItemByNormalizedIndex(this._normalizeItemIndex(e));if(this._isNode(e))return K(e);var n=this._normalizeItemIndex(this.getIndexByItemData(e));return this._getItemByNormalizedIndex(n)},_isNode:e=>gn.isNode(e&&vh(e)?e.get(0):e),deleteItemAtIndex:Lh,itemPlacementFunc:function(e,n){return this._itemsFromSameParent(e,n)&&e-1?this._collectionWidget._itemElements().eq(e):null},_itemsFromSameParent:function(){return!0}});const eB=Zrt,e1e=hr.inherit({ctor:function(e){this.options=e,this._setOption("disabledItemKeys",[]),this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:gt,_setOption:function(e,n){this.options[e]=n},onSelectionChanged:function(){var e=this.options.addedItemKeys,n=this.options.removedItemKeys,t=this.options.addedItems,o=this.options.removedItems,r=this.options.selectedItems,a=this.options.selectedItemKeys,l=this.options.onSelectionChanged||gt;this._clearItemKeys(),l({selectedItems:r,selectedItemKeys:a,addedItemKeys:e,removedItemKeys:n,addedItems:t,removedItems:o})},equalKeys:function(e,n){return this.options.equalByReference&&to(e)&&to(n)?e===n:fa(e,n)},getSelectableItems:function(e){return e.filter(function(n){return!(null!=n&&n.disabled)})},_clearSelection:function(e,n,t,o){return e=e||[],e=Array.isArray(e)?e:[e],this.validate(),this.selectedItemKeys(e,n,t,o)},_removeTemplateProperty:function(e){return Array.isArray(e)?e.map(n=>this._removeTemplateProperty(n)):(to(e)&&delete e.template,e)},_loadFilteredData:function(e,n,t,o){var r=encodeURI(JSON.stringify(this._removeTemplateProperty(e))).length,a=this.options.maxFilterLengthInRequest&&r>this.options.maxFilterLengthInRequest,l=new Rt,c={filter:a?void 0:e,select:a?this.options.dataFields():t||this.options.dataFields()};return e&&0===e.length?l.resolve([]):this.options.load(c).done(function(p){var b=jo(p)?p.data:p;n&&!o?b=b.filter(n):a&&(b=Sc(b).filter(e).toArray()),l.resolve(b)}).fail(l.reject.bind(l)),l},updateSelectedItemKeyHash:function(e){for(var n=0;n!(null!=a&&a.disabled));n&&(t=Sc(t).filter(n).toArray());var o=t.length,r=e.length-this.getSelectableItems(e).length;return o?o>=this.options.totalCount()-r||void 0:this._isAnyItemSelected(e)},_getVisibleSelectAllState:function(){for(var e=this.getSelectableItems(this.options.plainItems()),n=!1,t=!1,o=0;o1&&Wi(e[1])&&e[1]!==n&&(e=[e]),e.length&&e.push(n),e},_denormalizeFilter:function(e){return e&&Wi(e[0])&&(e=[e]),e},_isOnlyNegativeFiltersLeft:function(e){return e.every((n,t)=>t%2==0?Array.isArray(n)&&"!"===n[0]:"and"===n)},_addSelectionFilter:function(e,n,t){var o=e?["!",n]:n,r=e?"and":"or",a=!0,l=this.options.selectionFilter||[];if((l=this._denormalizeFilter(l))&&l.length){var c=this._removeSameFilter(l,n,e,t),p=this._removeSameFilter(l,n,!e);e&&(-1!==c||-1!==p)&&this._isOnlyNegativeFiltersLeft(l)&&(l=[]);var T=this._isKeyFilter(n)&&this._hasKeyFiltersOnlyStartingFromIndex(l,p);(a=n.length&&!T)&&(l=this._addFilterOperator(l,r))}a&&l.push(o),l=this._normalizeFilter(l),this._setOption("selectionFilter",e||l.length?l:null)},_normalizeFilter:function(e){return e&&1===e.length&&(e=e[0]),e},_removeFilterByIndex:function(e,n,t){var o=e[1];e.splice(n>0?n-1:n,2),t&&"and"===o&&e.splice(0,e.length)},_isSimpleKeyFilter:function(e,n){return 3===e.length&&e[0]===n&&"="===e[1]},_isKeyFilter:function(e){if(2===e.length&&"!"===e[0])return this._isKeyFilter(e[1]);var n=this._getKeyExpr();if(Array.isArray(n)){if(e.length!==2*n.length-1)return!1;for(var t=0;t0&&"and"!==e[2*t-1]||!this._isSimpleKeyFilter(e[2*t],n[t]))return!1;return!0}return this._isSimpleKeyFilter(e,n)},_hasKeyFiltersOnlyStartingFromIndex:function(e,n){if(n>=0){for(var t=n;t=0)return this._removeFilterByIndex(e,r,o),r;for(var a=0;a2){var l=this._removeSameFilter(e[a],n,!1,o);if(l>=0)return e[a].length?1===e[a].length&&(e[a]=e[a][0]):this._removeFilterByIndex(e,a,o),l}return-1},getSelectAllState:function(){var e=this.options.filter(),n=this.options.selectionFilter;if(!n)return!0;if(!n.length)return!1;if(e&&e.length){if(n=this._denormalizeFilter(n),this._isLastSubFilter(n,e))return!0;if(this._isLastSubFilter(n,["!",e]))return!1}}});var t1e=function(e,n){var t;function r(l,c,p,b,T){var N,G,L=c(T);if(!p&&(N=ug(L),!to(N))){var Y=function(ie,ue){if(!t){t={};for(var xe=function(l,c,p){return Array.isArray(p)?l.map(b=>c(b)):l}(e,ie,ue),Se=0;Se":"=",c]}this.getLocalFilter=function(l,c,p,b){return r.bind(this,c=void 0===c?fa:c,l,p,b)},this.getExpr=function(l){var c;if(l)return e.forEach(function(p,b){var T;c=c||[],b>0&&c.push(n?"and":"or"),T=Wi(l)?a(l,p):function(L,N){for(var G=[],Y=0,ie=L.length;Y0&&G.push(n?"or":"and"),G.push(Se)}return G}(l,p),c.push(T)}),c&&1===c.length&&(c=c[0]),c},this.getCombinedFilter=function(l,c){var p=this.getExpr(l),b=p;return n&&c&&(p?((b=[]).push(p),b.push(c)):b=c),b}};const Qrt=e1e.inherit({ctor:function(e){this.callBase(e),this._initSelectedItemKeyHash()},_initSelectedItemKeyHash:function(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})},getSelectedItemKeys:function(){return this.options.selectedItemKeys.slice(0)},getSelectedItems:function(){return this.options.selectedItems.slice(0)},_preserveSelectionUpdate:function(e,n){var o,r,a,t=this.options.keyOf;if(t){var l=n&&e.length>1&&!this.options.equalByReference;for(l&&(o={}),a=0;a=0&&(o[r]=!0)):this.addSelectedItem(p,c)}l&&this._batchRemoveSelectedItems(o)}},_batchRemoveSelectedItems:function(e){var n=this.options.selectedItemKeys.slice(0),t=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var o=0;o1&&n&&(t=t.filter(function(o){return!n[o]})),t&&t[0]>=0?t[0]:-1},_indexOfSelectedItemKey:function(e,n){return this.options.equalByReference?this.options.selectedItemKeys.indexOf(e):to(e)?this._getSelectedIndexByKey(e,n):this._getSelectedIndexByHash(e,n)},_shiftSelectedKeyIndices:function(e){for(var n=e;ne&&r[a]--}},removeSelectedItem:function(e,n,t){if(this.options.ignoreDisabledItems||!t){var o=this._getKeyHash(e),r=!!n,a=this._indexOfSelectedItemKey(o,n);if(a<0||(this.options.removedItemKeys.push(e),this.options.removedItems.push(this.options.selectedItems[a]),r)||(this.options.selectedItemKeys.splice(a,1),this.options.selectedItems.splice(a,1),to(o)||!this.options.keyHashIndices))return a;var l=this.options.keyHashIndices[o];return l&&(l.shift(),l.length||delete this.options.keyHashIndices[o],this._shiftSelectedKeyIndices(a)),a}},_updateAddedItemKeys:function(e,n){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{},t=this.options.keyOf(e);return this.isItemKeySelected(t,n)},isItemKeySelected:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=this._isItemSelectionInProgress(e,n.checkPending);if(!t){var o=this._getKeyHash(e),r=this._indexOfSelectedItemKey(o);t=-1!==r}return t},getSelectAllState:function(e){return e?this._getVisibleSelectAllState():this._getFullSelectAllState()}}),uZ=hr.inherit({ctor:function(e){this.options=ye(this._getDefaultOptions(),e,{selectedItemKeys:e.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new Jrt(this.options):new Qrt(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_getDefaultOptions:function(){return{allowNullValue:!1,deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:gt,key:gt,keyOf:function(e){return e},load:function(){return(new Rt).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(e){return e},dataFields:gt,filter:gt}},validate:function(){this._selectionStrategy.validate()},getSelectedItemKeys:function(){return this._selectionStrategy.getSelectedItemKeys()},getSelectedItems:function(){return this._selectionStrategy.getSelectedItems()},selectionFilter:function(e){if(void 0===e)return this.options.selectionFilter;var n=this.options.selectionFilter!==e&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(e);this.options.selectionFilter=e,n&&this.onSelectionChanged()},setSelection:function(e,n){return this.selectedItemKeys(e,!1,!1,!1,n)},select:function(e){return this.selectedItemKeys(e,!0)},deselect:function(e){return this.selectedItemKeys(e,!0,!0)},selectedItemKeys:function(e,n,t,o,r){var a;return e=null!==(a=e)&&void 0!==a?a:[],e=Array.isArray(e)?e:[e],this.validate(),this._selectionStrategy.selectedItemKeys(e,n,t,o,r)},clearSelection:function(){return this.selectedItemKeys([])},_addSelectedItem:function(e,n){this._selectionStrategy.addSelectedItem(n,e)},_removeSelectedItem:function(e){this._selectionStrategy.removeSelectedItem(e)},_setSelectedItems:function(e,n){this._selectionStrategy.setSelectedItems(e,n)},onSelectionChanged:function(){this._selectionStrategy.onSelectionChanged()},changeItemSelection:function(e,n,t){var o,r,a,p,T,l=this.options.plainItems(),c=l[e],L=!1,N=!1,G=Se=>Se>=0&&!l.filter(Te=>Te.loadIndex===Se).length;if((null===(o=(r=this.options).allowLoadByRange)||void 0===o?void 0:o.call(r))&&(T=c.loadIndex-e,e=c.loadIndex,L=G(this._focusedItemIndex),ce(this._shiftFocusedItemIndex)&&(N=G(this._shiftFocusedItemIndex))),!this.isSelectable()||!this.isDataItem(c))return!1;var Y=this.options.getItemData(c),ie=this.options.keyOf(Y);if((n=n||{}).shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)L||N?(a=e!==this._shiftFocusedItemIndex||this._focusedItemIndex!==this._shiftFocusedItemIndex)&&(p=this.changeItemSelectionWhenShiftKeyInVirtualPaging(e)):a=this.changeItemSelectionWhenShiftKeyPressed(e,l,T);else if(n.control){if(this._resetItemSelectionWhenShiftKeyPressed(),!t){var ue=this._selectionStrategy.isItemDataSelected(Y);"single"===this.options.mode&&this.clearSelectedItems(),ue?this._removeSelectedItem(ie):this._addSelectedItem(Y,ie)}a=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var xe=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],ie);(1!==this.options.selectedItemKeys.length||!xe)&&(this._setSelectedItems([ie],[Y]),a=!0)}return a?(Xn(p).done(()=>{this._focusedItemIndex=e,!t&&this.onSelectionChanged()}),!0):void 0},isDataItem:function(e){return this.options.isSelectableItem(e)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemDataSelected:function(e){return this._selectionStrategy.isItemDataSelected(e,{checkPending:!0})},isItemSelected:function(e,n){return this._selectionStrategy.isItemKeySelected(e,n)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyInVirtualPaging:function(e){var n=this.options.getLoadOptions(e,this._focusedItemIndex,this._shiftFocusedItemIndex),t=new Rt,o=n.skip;return this.options.load(n).done(r=>{this.changeItemSelectionWhenShiftKeyPressed(e,r,o),t.resolve()}),t.promise()},changeItemSelectionWhenShiftKeyPressed:function(e,n,t){var r,N,G,ie,o=!1,a=ce(t),l=a?this._focusedItemIndex-t:this._focusedItemIndex,c=this.options.keyOf,p=n[l],b=this.options.getItemData(p),T=c(b),L=p&&this.isItemDataSelected(b);if(ce(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex),this._shiftFocusedItemIndex!==this._focusedItemIndex)for(r=this._focusedItemIndex=0?o.totalCount():e._getItemsCount(t)},key:e.key.bind(e),keyOf:e.keyOf.bind(e),load:function(t){if(e._dataSource){var o=e._dataSource.loadOptions();t.customQueryParams=o.customQueryParams,t.userData=e._dataSource._userData}var r=e._dataSource&&e._dataSource.store();return r?r.load(t).done(function(a){if(!e._disposed){var l=eS(a).data;e._dataSource._applyMapFunction(l)}}):(new Rt).resolve(this.plainItems())},dataFields:function(){return e._dataSource&&e._dataSource.select()},plainItems:n.bind(e._editStrategy)})},_getItemsCount:function(e){return e.reduce((n,t)=>n+(t.items?this._getItemsCount(t.items):1),0)},_initEditStrategy:function(){this._editStrategy=new eB(this)},_getSelectedItemIndices:function(e){var n=this,t=[];return e=e||this._selection.getSelectedItemKeys(),n._editStrategy.beginCache(),je(e,function(o,r){var a=n._getIndexByKey(r);w1(a)&&t.push(a)}),n._editStrategy.endCache(),t},_initMarkup:function(){this._rendering=!0,(!this._dataSource||!this._dataSource.isLoading())&&this._syncSelectionOptions().done(()=>this._normalizeSelectedItems()),this.callBase()},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(e){var n,t,o,r;switch(e=e||this._chooseSelectOption()){case"selectedIndex":n=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),ce(n)?(this._setOptionWithoutOptionChange("selectedItems",[n]),this._setOptionWithoutOptionChange("selectedItem",n),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([n]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedItem",null));break;case"selectedItems":if(t=(r=this.option("selectedItems")||[]).length?this._editStrategy.getIndexByItemData(r[0]):-1,this.option("selectionRequired")&&!w1(t))return this._syncSelectionOptions("selectedIndex");this._setOptionWithoutOptionChange("selectedItem",r[0]),this._setOptionWithoutOptionChange("selectedIndex",t),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems(r));break;case"selectedItem":if(n=this.option("selectedItem"),t=this._editStrategy.getIndexByItemData(n),this.option("selectionRequired")&&!w1(t))return this._syncSelectionOptions("selectedIndex");ce(n)?(this._setOptionWithoutOptionChange("selectedItems",[n]),this._setOptionWithoutOptionChange("selectedIndex",t),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([n]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedIndex",-1));break;case"selectedItemKeys":if(o=this.option("selectedItemKeys"),this.option("selectionRequired")){var a=this._getIndexByKey(o[0]);if(!w1(a))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(o)}return(new Rt).resolve().promise()},_chooseSelectOption:function(){var e="selectedIndex",n=function(t){var o=this.option(t);return ce(o)&&o.length||t in this._userOptions}.bind(this);return n("selectedItems")?e="selectedItems":n("selectedItem")?e="selectedItem":n("selectedItemKeys")&&(e="selectedItemKeys"),e},_compareKeys:function(e,n){if(e.length!==n.length)return!1;for(var t=0;t1||!e.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var n=this._selection.getSelectedItems(),t=void 0===e[0]?n[0]:e[0];return void 0===t&&(t=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&t&&t.items&&(t.items=[t.items[0]]),this._selection.setSelection(this._getKeysByItems([t])),this._setOptionWithoutOptionChange("selectedItems",[t]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(e))}else{var o=this._getKeysByItems(this.option("selectedItems")),r=this._selection.getSelectedItemKeys();this._compareKeys(r,o)||this._selection.setSelection(o)}return(new Rt).resolve().promise()},_itemClickHandler:function(e){var n=(new Rt).resolve(),t=this.callBase;this._createAction(function(o){var r;n=null!==(r=this._itemSelectHandler(o.event))&&void 0!==r?r:n}.bind(this),{validatingTargetName:"itemElement"})({itemElement:K(e.currentTarget),event:e}),n.always(()=>{t.apply(this,arguments)})},_itemSelectHandler:function(e){var n,t;if(this.option("selectionByClick"))return this.isItemSelected(e.currentTarget)?this.unselectItem(e.currentTarget):t=this.selectItem(e.currentTarget),null===(n=t)||void 0===n?void 0:n.promise()},_selectedItemElement:function(e){return this._itemElements().eq(e)},_postprocessRenderItem:function(e){if("none"!==this.option("selectionMode")){var n=K(e.itemElement),t=this._editStrategy.getNormalizedIndex(n),o=this._isItemSelected(t);this._processSelectableItem(n,o)}},_processSelectableItem:function(e,n){e.toggleClass(this._selectedItemClass(),n),this._setAriaSelected(e,String(n))},_updateSelectedItems:function(e){var n=this,t=e.addedItemKeys,o=e.removedItemKeys;if(n._rendered&&(t.length||o.length)){var r=n._selectionChangePromise;if(!n._rendering){var l,a=[],c=[];n._editStrategy.beginCache();for(var p=0;pthis._normalizeSelectedItems());break;case"keyExpr":this._initKeyGetter();break;case"selectionRequired":this._normalizeSelectedItems();break;case"selectionByClick":case"onSelectionChanged":case"onItemDeleting":case"onItemDeleted":case"onItemReordered":case"maxFilterLengthInRequest":break;default:this.callBase(e)}},_clearSelectedItems:function(){this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_waitDeletingPrepare:function(e){if(e.data(pZ))return(new Rt).resolve().promise();e.data(pZ,!0);var n=new Rt,t={cancel:!1},o=this._itemEventHandler(e,"onItemDeleting",t,{excludeValidators:["disabled","readOnly"]});return Xn(o).always(function(r){var a=!o,l=!a&&"resolved"===o.state(),c=!!arguments.length,p=a||l&&!c||l&&r;Xn($s(t.cancel)).always(function(){e.data(pZ,!1)}).done(function(b){p&&!b?n.resolve():n.reject()}).fail(n.reject)}.bind(this)),n.promise()},_deleteItemFromDS:function(e){if(!this._dataSource)return(new Rt).resolve().promise();var n=new Rt,t=this.option("disabled"),o=this._dataSource.store();if(this.option("disabled",!0),!o.remove)throw Ho.Error("E1011");return o.remove(o.keyOf(this._getItemData(e))).done(function(r){void 0!==r?n.resolve():n.reject()}).fail(function(){n.reject()}),n.always(function(){this.option("disabled",t)}.bind(this)),n},_tryRefreshLastPage:function(){var e=new Rt;return this._isLastPage()||this.option("grouped")?e.resolve():this._refreshLastPage().done(function(){e.resolve()}),e.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataSource.load()},_updateSelectionAfterDelete:function(e){var n=this._getKeyByIndex(e);this._selection.deselect([n])},_updateIndicesAfterIndex:function(e){for(var n=this._itemElements(),t=e+1;t").text(e.text)},_getPopoutContainer:gt,_addContentClasses:gt,_initAccessors:function(){var e=this;je(this._getAccessors(),function(n,t){e._compileAccessor(t)}),this._compileDisplayGetter()},_getAccessors:function(){return["key","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(e){var n=this,t=[];return je(e.internalFields.childrenKeys,function(o,r){var a=n._dataAdapter.getNodeByKey(r);t.push(a)}),t},_hasChildren:function(e){return e&&e.internalFields.childrenKeys.length},_compileAccessor:function(e){var n="_"+e+"Getter",t="_"+e+"Setter",o=this.option(e+"Expr");return o?qn(o)?(this[t]=function(r,a){r[o()]=a},void(this[n]=function(r){return r[o()]})):(this[n]=Wo(o),void(this[t]=tp(o))):(this[n]=gt,void(this[t]=gt))},_createDataAdapterAccessors:function(){var e=this,n={getters:{},setters:{}};return je(this._getAccessors(),function(t,o){var a="_"+o+"Setter",l="parentId"===o?"parentKey":o;n.getters[l]=e["_"+o+"Getter"],n.setters[l]=e[a]}),n.getters.display=this._displayGetter?this._displayGetter:t=>t.text,n},_initMarkup:function(){this.callBase(),this._addWidgetClass()},_addWidgetClass:function(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:gt,_renderItemFrame:function(e,n){var t=this.callBase.apply(this,arguments);return t.toggleClass(eat,!!this._disabledGetter(n)),t},_optionChanged:function(e){switch(e.name){case"displayExpr":case"keyExpr":this._initAccessors(),this._initDynamicTemplates(),this.repaint();break;case"itemsExpr":case"selectedExpr":case"disabledExpr":case"expandedExpr":case"parentIdExpr":this._initAccessors(),this._initDataAdapter(),this.repaint();break;case"items":this._initDataAdapter(),this.callBase(e);break;default:this.callBase(e)}}});const n1e=tat,iat=class nat extends eB{_getPlainItems(){return Ca(this._collectionWidget.option("items"),function n(t){return t.items?[t].concat(Ca(t.items,n)):t})}_stringifyItem(n){return JSON.stringify(n,(t,o)=>"template"===t?this._getTemplateString(o):o)}_getTemplateString(n){return"object"==typeof n?K(n).text():n.toString()}};var _0="dx-menu-item",hZ=_0+"-selected",i1e=_0+"-wrapper",_at={show:50,hide:300};const r1e=(()=>{class e extends n1e{_getDefaultOptions(){return ye(super._getDefaultOptions(),{items:[],cssClass:"",activeStateEnabled:!0,showSubmenuMode:{name:"onHover",delay:{show:50,hide:300}},animation:{show:{type:"fade",from:0,to:1,duration:100},hide:{type:"fade",from:1,to:0,duration:100}},selectByClick:!1,focusOnSelectedItem:!1,keyExpr:null,_itemAttributes:{role:"menuitem"},useInkRipple:!1})}_itemDataKey(){return"dxMenuItemDataKey"}_itemClass(){return _0}_setAriaSelected(){}_selectedItemClass(){return hZ}_widgetClass(){return"dx-menu-base"}_focusTarget(){return this._itemContainer()}_clean(){this.option("focusedElement",null),super._clean()}_supportedKeys(){return ye(super._supportedKeys(),{space:()=>{var t=K(this.option("focusedElement"));!t.length||!this._isSelectionEnabled()||this.selectItem(t[0])},pageUp:gt,pageDown:gt})}_isSelectionEnabled(){return"single"===this.option("selectionMode")}_init(){this._activeStateUnit=".".concat(_0),super._init(),this._renderSelectedItem(),this._initActions()}_getTextContainer(t){var o=t.text,r=K("").addClass("dx-menu-item-text"),a=jo(t)?o:String(t);return o&&r.text(a)}_getPopoutContainer(t){var r,o=t.items;if(o&&o.length){var a=K("
").addClass("dx-menu-item-popout");r=K("").addClass("dx-menu-item-popout-container").append(a)}return r}_getDataAdapterOptions(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}}_selectByItem(t){if(t){var o=this._dataAdapter.getNodeByItem(t);this._dataAdapter.toggleSelection(o.internalFields.key,!0)}}_renderSelectedItem(){var t=this._dataAdapter.getSelectedNodesKeys(),o=t.length&&t[0],r=this.option("selectedItem");if(o){var a=this._dataAdapter.getNodeByKey(o);if(!1!==a.selectable){if(!r)return void this.option("selectedItem",a.internalFields.item);r!==a.internalFields.item&&(this._dataAdapter.toggleSelection(o,!1),this._selectByItem(r))}}else this._selectByItem(r)}_initActions(){}_initMarkup(){super._initMarkup(),this.option("useInkRipple")&&this._renderInkRipple()}_renderInkRipple(){this._inkRipple=iS()}_toggleActiveState(t,o,r){if(super._toggleActiveState.apply(this,arguments),this._inkRipple){var a={element:t,event:r};o?this._inkRipple.showWave(a):this._inkRipple.hideWave(a)}}_getShowSubmenuMode(){var t=this.option("showSubmenuMode");return t=to(t)?t.name:t,this._isDesktopDevice()?t:"onClick"}_initSelectedItems(){}_isDesktopDevice(){return"desktop"===ci.real().deviceType}_initEditStrategy(){this._editStrategy=new iat(this)}_addCustomCssClass(t){t.addClass(this.option("cssClass"))}_itemWrapperSelector(){return".".concat(i1e)}_hoverStartHandler(t){var o=this._getItemElementByEventArgs(t);!o||this._isItemDisabled(o)||(t.stopPropagation(),"onHover"===this._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(this._showSubmenu.bind(this,o),this._getSubmenuDelay("show"))))}_getAvailableItems(t){return super._getAvailableItems(t).filter(function(){return"hidden"!==K(this).css("visibility")})}_isItemDisabled(t){return this._disabledGetter(t.data(this._itemDataKey()))}_showSubmenu(t){this._addExpandedClass(t)}_addExpandedClass(t){K(t).addClass("dx-menu-item-expanded")}_getSubmenuDelay(t){var{delay:o}=this.option("showSubmenuMode");return ce(o)?to(o)?o[t]:o:_at[t]}_getItemElementByEventArgs(t){var o=K(t.target);if(o.hasClass(this._itemClass())||o.get(0)===t.currentTarget)return o;for(;!o.hasClass(this._itemClass());)if((o=o.parent()).hasClass("dx-submenu"))return null;return o}_hoverEndHandler(){clearTimeout(this._showSubmenusTimeout)}_hasSubmenu(t){return t&&t.internalFields.childrenKeys.length}_renderContentImpl(){this._renderItems(this._dataAdapter.getRootNodes())}_renderItems(t,o){if(t.length){this.hasIcons=!1;var r=this._renderContainer(this.$element(),o),a=-1,l=-1;je(t,(c,p)=>{var b=!1!==p.visible;b&&a<0&&(a=c),a");return this.setAria("role","none",o),o.appendTo(t).addClass("dx-menu-items-container")}_createDOMElement(t){var o=K("
  • ");return this.setAria("role","none",o),o.appendTo(t).addClass(i1e)}_renderItem(t,o,r,a){var l=this.option("items"),c=a||this._createDOMElement(r);l[t+1]&&l[t+1].beginGroup&&c.addClass("dx-menu-last-group-item");var p=super._renderItem(t,o.internalFields.item,c);o.internalFields.item===this.option("selectedItem")&&p.addClass(hZ),p.attr("tabIndex",-1),this._hasSubmenu(o)&&this.setAria("haspopup","true",p)}_renderItemFrame(t,o,r){var a=r.children(".".concat(_0));return a.length?a:super._renderItemFrame.apply(this,arguments)}_refreshItem(t,o){var r=this._dataAdapter.getNodeByItem(o),a=t.data(this._itemIndexKey()),l=t.closest("ul"),c=t.closest("li");this._renderItem(a,r,l,c)}_addContentClasses(t,o){var a=!!t.icon,l=!!t.items&&!!t.items.length;o.toggleClass("dx-menu-item-has-text",!!t.text&&!!t.text.length),o.toggleClass("dx-menu-item-has-icon",a),this.hasIcons||(this.hasIcons=a),o.toggleClass("dx-menu-item-has-submenu",l)}_getItemContent(t){var o=super._getItemContent(t);return o.length||(o=t.children(".".concat("dx-menu-item-content"))),o}_postprocessRenderItem(t){var o=K(t.itemElement),r=this._dataAdapter.getSelectedNodesKeys();r.length&&this._selectedGetter(t.itemData)&&this._isItemSelectable(t.itemData)&&this._dataAdapter.getNodeByItem(t.itemData).internalFields.key===r[0]?(o.addClass(this._selectedItemClass()),this._setAriaSelected(o,"true")):this._setAriaSelected(o,"false")}_isItemSelectable(t){return!1!==t.selectable}_renderSeparator(t){K("
  • ").appendTo(t).addClass("dx-menu-separator")}_itemClickHandler(t){if(!t._skipHandling){var o=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemDXEventHandler(t,"onItemClick",{},{afterExecute:o.bind(this)}),t._skipHandling=!0}}_updateSubmenuVisibilityOnClick(t){this._updateSelectedItemOnClick(t),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(t.args[0].itemElement)}_updateSelectedItemOnClick(t){var o=t.args?t.args[0]:t;if(this._isItemSelectionAllowed(o.itemData)){var r=this._dataAdapter.getSelectedNodesKeys(),a=r.length&&this._dataAdapter.getNodeByKey(r[0]);a&&this._toggleItemSelection(a,!1),a&&a.internalFields.item===o.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionWithoutOptionChange("selectedItem",null)):this.selectItem(o.itemData)}}_isItemSelectionAllowed(t){var o=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&o&&this._isItemSelectable(t)&&!this._itemsGetter(t)}_isContainerEmpty(){return this._itemContainer().is(":empty")}_syncSelectionOptions(){return UK()}_optionChanged(t){switch(t.name){case"showSubmenuMode":break;case"selectedItem":var o=this._dataAdapter.getNodeByItem(t.value),r=this._dataAdapter.getSelectedNodesKeys()[0];if(o&&o.internalFields.key!==r){if(!1===o.selectable)break;r&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(r),!1),this._toggleItemSelection(o,!0),this._updateSelectedItems()}break;case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:super._optionChanged(t)}}_toggleItemSelection(t,o){var r=this._getElementByItem(t.internalFields.item);r&&K(r).toggleClass(hZ),this._dataAdapter.toggleSelection(t.internalFields.key,o)}_getElementByItem(t){var o;return je(this._itemElements(),(r,a)=>K(a).data(this._itemDataKey())!==t||(o=a,!1)),o}_updateSelectedItems(t,o){(t||o)&&this._fireSelectionChangeEvent(o,t)}_fireSelectionChangeEvent(t,o){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[t],removedItems:[o]})}selectItem(t){var o=t.nodeType?this._getItemData(t):t,r=this._dataAdapter.getSelectedNodesKeys()[0],a=this.option("selectedItem"),l=this._dataAdapter.getNodeByItem(o);l.internalFields.key!==r&&(r&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(r),!1),this._toggleItemSelection(l,!0),this._updateSelectedItems(a,o),this._setOptionWithoutOptionChange("selectedItem",o))}unselectItem(t){var o=t.nodeType?this._getItemData(t):t,r=this._dataAdapter.getNodeByItem(o),a=this.option("selectedItem");r.internalFields.selected&&(this._toggleItemSelection(r,!1),this._updateSelectedItems(a,null),this._setOptionWithoutOptionChange("selectedItem",null))}}return e.ItemClass=ix,e})();var MS="dx-menu-item",ox=MS+"-expanded",nB="dx-menu-items-container",s1e=MS+"-wrapper",Bh="dx-submenu",l1e="dx-state-hover",h1e=["onShowing","onShown","onSubmenuCreated","onHiding","onHidden","onPositioning","onLeftFirstItem","onLeftLastItem","onCloseRootSubmenu","onExpandLastSubmenu"],Pat=["up","down","first","last"],g1e="dxcontextmenu";class f1e extends r1e{getShowEvent(n){var t=null;return to(n)?null!==n.name&&(t=n.name||g1e):t=n,t}getShowDelay(n){return to(n)&&n.delay}_getDefaultOptions(){return ye(super._getDefaultOptions(),{showEvent:g1e,closeOnOutsideClick:!0,position:{at:"top left",my:"top left"},onShowing:null,onShown:null,onSubmenuCreated:null,onHiding:null,onHidden:null,onPositioning:null,submenuDirection:"auto",visible:!1,target:void 0,onLeftFirstItem:null,onLeftLastItem:null,onCloseRootSubmenu:null,onExpandLastSubmenu:null})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>!Ii(),options:{animation:null}}])}_initActions(){this._actions={},je(h1e,(n,t)=>{this._actions[t]=this._createActionByOption(t)||gt})}_setOptionsByReference(){super._setOptionsByReference(),ye(this._optionsByReference,{animation:!0,selectedItem:!0})}_focusInHandler(){}_itemContainer(){return this._overlay?this._overlay.$content():K()}_eventBindingTarget(){return this._itemContainer()}itemsContainer(){return this._overlay?this._overlay.$content():void 0}_supportedKeys(){return ye(super._supportedKeys(),{space:()=>{var n=K(this.option("focusedElement"));this.hide(),n.length&&this._isSelectionEnabled()&&this.selectItem(n[0])},escape:this.hide})}_getActiveItem(){var n=this._getAvailableItems(),t=n.filter(".".concat("dx-state-focused")),o=n.filter(".".concat(l1e));return o.closest(".".concat(nB)).find(".".concat(MS)).index(t)>=0?t:o.length?o:super._getActiveItem()}_moveFocus(n){var c,t=this._getItemsByLocation(n),o=this._getActiveItem(!0),r=this.itemsContainer().find(".".concat(l1e)),l=!(!K(this.option("focusedElement")).length&&!r.length);switch(n){case"up":c=l?this._prevItem(t):o,this._setFocusedElement(c),o.is(t.first())&&this._actions.onLeftFirstItem(o);break;case"down":c=l?this._nextItem(t):o,this._setFocusedElement(c),o.is(t.last())&&this._actions.onLeftLastItem(o);break;case"right":c=this.option("rtlEnabled")?this._hideSubmenuHandler():this._expandSubmenuHandler(t,n),this._setFocusedElement(c);break;case"left":c=this.option("rtlEnabled")?this._expandSubmenuHandler(t,n):this._hideSubmenuHandler(),this._setFocusedElement(c);break;case"first":c=t.first(),this._setFocusedElement(c);break;case"last":c=t.last(),this._setFocusedElement(c);break;default:return super._moveFocus(n)}}_setFocusedElement(n){n&&0!==n.length&&this.option("focusedElement",Di(n))}_getItemsByLocation(n){var o,t=this._getActiveItem(!0);return Ki(n,Pat)>=0&&(o=t.closest(".".concat(nB)).children().children()),this._getAvailableItems(o)}_getAriaTarget(){return this.$element()}_refreshActiveDescendant(){if(ce(this._overlay)){var n=this._overlay.$content();super._refreshActiveDescendant(n)}}_hideSubmenuHandler(){var n=this._getActiveItem(!0),t=n.parents(".".concat(ox)).first();return t.length?(this._hideSubmenusOnSameLevel(t),this._hideSubmenu(n.closest(".".concat(Bh))),t):(this._actions.onCloseRootSubmenu(n),n)}_expandSubmenuHandler(n,t){var o=this._getActiveItem(!0),r=this._getItemData(o),a=this._dataAdapter.getNodeByItem(r),l=this._hasSubmenu(a),c=o.children(".".concat(Bh));if(l&&!o.hasClass("dx-state-disabled"))return(!c.length||"hidden"===c.css("visibility"))&&this._showSubmenu(o),this._nextItem(this._getItemsByLocation(t));this._actions.onExpandLastSubmenu(o)}_clean(){this._overlay&&(this._overlay.$element().remove(),this._overlay=null),this._detachShowContextMenuEvents(this._getTarget()),super._clean()}_initMarkup(){this.$element().addClass("dx-has-context-menu"),super._initMarkup()}_render(){super._render(),this._renderVisibility(this.option("visible")),this._addWidgetClass()}_renderContentImpl(){this._detachShowContextMenuEvents(this._getTarget()),this._attachShowContextMenuEvents()}_attachKeyboardEvents(){!this._keyboardListenerId&&this._focusTarget().length&&super._attachKeyboardEvents()}_renderContextMenuOverlay(){if(!this._overlay){var n=this._getOverlayOptions();this._overlay=this._createComponent(K("
    ").appendTo(this._$element),ju,n);var t=this._overlay.$content();t.addClass("dx-context-menu"),this._addCustomCssClass(t),this._addPlatformDependentClass(t),this._attachContextMenuEvent()}}preventShowingDefaultContextMenuAboveOverlay(){var n=this._itemContainer(),t=_n(QR,this.NAME);We.off(n,t,".".concat(Bh)),We.on(n,t,".".concat(Bh),(o=>{o.stopPropagation(),o.preventDefault(),We.off(n,t,".".concat(Bh))}).bind(this))}_itemContextMenuHandler(n){super._itemContextMenuHandler(n),n.stopPropagation()}_addPlatformDependentClass(n){ci.current().phone&&n.addClass("dx-menu-phone-overlay")}_detachShowContextMenuEvents(n){var t=this.getShowEvent(this.option("showEvent"));if(t){var o=_n(t,this.NAME);this._showContextMenuEventHandler?We.off(gn.getDocument(),o,n,this._showContextMenuEventHandler):We.off(K(n),o)}}_attachShowContextMenuEvents(){var n=this._getTarget(),t=this.getShowEvent(this.option("showEvent"));if(t){var o=_n(t,this.NAME),r=this._createAction(l=>{var c=this.getShowDelay(this.option("showEvent"));c?setTimeout(()=>this._show(l.event),c):this._show(l.event)},{validatingTargetName:"target"}),a=l=>r({event:l,target:K(l.currentTarget)});r=this._createAction(r),vh(n)||n.nodeType||dc(n)?(this._showContextMenuEventHandler=void 0,We.on(n,o,a)):(this._showContextMenuEventHandler=a,We.on(gn.getDocument(),o,n,this._showContextMenuEventHandler))}}_hoverEndHandler(n){super._hoverEndHandler(n),n.stopPropagation()}_renderDimensions(){}_renderContainer(n,t){var o=t||this._itemContainer();(n=K("
    ")).appendTo(o).addClass(Bh).css("visibility",t?"hidden":"visible"),n.parent().hasClass("dx-overlay-content")||this._addCustomCssClass(n);var r=super._renderContainer(n);return t?r:this.option("width")?r.css("minWidth",this.option("width")):this.option("height")?r.css("minHeight",this.option("height")):r}_renderSubmenuItems(n,t){this._renderItems(this._getChildNodes(n),t),this._actions.onSubmenuCreated({itemElement:Di(t),itemData:n.internalFields.item,submenuElement:Di(t.children(".".concat(Bh)))})}_getOverlayOptions(){var n=this.option("position");return{focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),innerOverlay:!0,closeOnOutsideClick:this._closeOnOutsideClickHandler.bind(this),propagateOutsideClick:!0,hideOnParentScroll:!0,deferRendering:!1,position:{at:n.at,my:n.my,of:this._getTarget(),collision:"flipfit"},shading:!1,showTitle:!1,height:"auto",width:"auto",onShown:this._overlayShownActionHandler.bind(this),onHiding:this._overlayHidingActionHandler.bind(this),onHidden:this._overlayHiddenActionHandler.bind(this)}}_overlayShownActionHandler(n){this._actions.onShown(n)}_overlayHidingActionHandler(n){this._actions.onHiding(n),n.cancel||(this._hideAllShownSubmenus(),this._setOptionWithoutOptionChange("visible",!1))}_overlayHiddenActionHandler(n){this._actions.onHidden(n)}_closeOnOutsideClickHandler(n){var t=this.option("closeOnOutsideClick");if(qn(t))return t(n);if(!t)return!1;if(gn.isDocument(n.target))return!0;var o=this._getActiveItemsContainer(n.target),r=this._getItemsContainers(),a=this._searchActiveItem(n.target),l=this.$element().parents(".".concat(MS)),c=a[0]===l[0]&&a.length&&l.length;return!(this._isIncludeOverlay(o,r)&&a.length)&&!c||("onClick"===this._getShowSubmenuMode()&&this._hideAllShownChildSubmenus(a),!1)}_getActiveItemsContainer(n){return K(n).closest(".".concat(nB))}_getItemsContainers(){return this._overlay.$content().find(".".concat(nB))}_searchActiveItem(n){return K(n).closest(".".concat(MS)).eq(0)}_isIncludeOverlay(n,t){var o=!1;return je(t,(r,a)=>{n.is(a)&&!o&&(o=!0)}),o}_hideAllShownChildSubmenus(n){var t=n.find(".".concat(Bh)),o=ye([],this._shownSubmenus);t.length>0&&je(o,(r,a)=>{var l=this._searchActiveItem(a.context).parent();l.parent().is(n.parent().parent())&&!l.is(n.parent())&&this._hideSubmenu(a)})}_showSubmenu(n){var t=this._dataAdapter.getNodeByItem(this._getItemData(n));if(this._hideSubmenusOnSameLevel(n),this._hasSubmenu(t)){var o=n.children(".".concat(Bh)),r=o.length;super._showSubmenu(n),r||this._renderSubmenuItems(t,n),this._isSubmenuVisible(o)||this._drawSubmenu(n)}}_hideSubmenusOnSameLevel(n){var t=n.parent(".".concat(s1e)).siblings().find(".".concat(ox));t.length&&(t.removeClass(ox),this._hideSubmenu(t.find(".".concat(Bh))))}_hideSubmenuGroup(n){this._isSubmenuVisible(n)&&this._hideSubmenuCore(n)}_isSubmenuVisible(n){return"visible"===n.css("visibility")}_drawSubmenu(n){var t=this.option("animation")?this.option("animation").show:{},o=n.children(".".concat(Bh)),r=this._getSubmenuPosition(n);this._overlay&&this._overlay.option("visible")&&(ce(this._shownSubmenus)||(this._shownSubmenus=[]),Ki(o,this._shownSubmenus)&&this._shownSubmenus.push(o),t&&Jo.stop(o),pc.setup(o,r),t&&(jo(t.to)&&(t.to.position=r),this._animate(o,t)),o.css("visibility","visible"))}_animate(n,t){Jo.animate(n,t)}_getSubmenuPosition(n){var t=this.option("submenuDirection").toLowerCase(),r={collision:"flip",of:n.parent(".".concat(s1e)),offset:{h:0,v:-1}};switch(t){case"left":r.at="left top",r.my="right top";break;case"right":r.at="right top",r.my="left top";break;default:this.option("rtlEnabled")?(r.at="left top",r.my="right top"):(r.at="right top",r.my="left top")}return r}_updateSubmenuVisibilityOnClick(n){if(n.args.length){var t=n.args[0].itemData,o=this._dataAdapter.getNodeByItem(t);if(o){var r=K(n.args[0].itemElement),a=r.find(".".concat(Bh));if(this._hasSubmenu(o)&&!a.length&&(this._renderSubmenuItems(o,r),a=r.find(".".concat(Bh))),(r.context!==a.context||"visible"!==a.css("visibility"))&&(this._updateSelectedItemOnClick(n),t&&!t.disabled&&(!t||!1!==t.closeMenuOnClick)))if(0===a.length){var p=K(r.parents(".".concat(Bh))[0]);this._hideSubmenu(p),!n.canceled&&this._overlay&&this._overlay.option("visible")&&this.option("visible",!1)}else this._shownSubmenus&&this._shownSubmenus.length>0&&this._shownSubmenus[0].is(a)&&this._hideSubmenu(a),this._showSubmenu(r)}}}_hideSubmenu(n){var t=ye([],this._shownSubmenus);je(t,(o,r)=>{(n.is(r)||o0(n[0],r[0]))&&(r.parent().removeClass(ox),this._hideSubmenuCore(r))})}_hideSubmenuCore(n){var t=Ki(n,this._shownSubmenus),o=this.option("animation")?this.option("animation").hide:null;t>=0&&this._shownSubmenus.splice(t,1),this._stopAnimate(n),o&&this._animate(n,o),n.css("visibility","hidden")}_stopAnimate(n){Jo.stop(n,!0)}_hideAllShownSubmenus(){var n=ye([],this._shownSubmenus);this._overlay.$content().find(".".concat(ox)).removeClass(ox),je(n,(o,r)=>{this._hideSubmenu(r)})}_visibilityChanged(n){n&&this._renderContentImpl()}_optionChanged(n){if(Ki(n.name,h1e)>-1)this._initActions();else switch(n.name){case"visible":this._renderVisibility(n.value);break;case"showEvent":case"position":case"submenuDirection":this._invalidate();break;case"target":n.previousValue&&this._detachShowContextMenuEvents(n.previousValue),this._invalidate();break;case"closeOnOutsideClick":break;default:super._optionChanged(n)}}_renderVisibility(n){return n?this._show():this._hide()}_toggleVisibility(){}_show(n){var t={jQEvent:n},o=(new Rt).reject().promise();if(this._actions.onShowing(t),t.cancel)return o;var a,r=this._positionContextMenu(n);return r&&(this._overlay||(this._renderContextMenuOverlay(),this._overlay.$content().addClass(this._widgetClass()),this._renderFocusState(),this._attachHoverEvents(),this._attachClickEvent(),this._renderItems(this._dataAdapter.getRootNodes())),this._setOptionWithoutOptionChange("visible",!0),this._overlay.option("position",r),o=this._overlay.show(),n&&n.stopPropagation(),this._setAriaAttributes(),"dxhold"===(null==n||null===(a=n.originalEvent)||void 0===a?void 0:a.type)&&this.preventShowingDefaultContextMenuAboveOverlay()),o}_setAriaAttributes(){this._overlayContentId="dx-".concat(new ss),this.setAria("owns",this._overlayContentId),this.setAria({id:this._overlayContentId,role:"menu"},this._overlay.$content())}_cleanAriaAttributes(){this._overlay&&this.setAria("id",null,this._overlay.$content()),this.setAria("owns",void 0)}_getTarget(){return this.option("target")||this.option("position").of||K(gn.getDocument())}_getContextMenuPosition(){return ye({},this.option("position"),{of:this._getTarget()})}_positionContextMenu(n){var t=this._getContextMenuPosition(),o=this._isInitialOptionValue("position"),r=this._createActionByOption("onPositioning",a);n&&n.preventDefault&&o&&(t.of=n);var a={position:t,event:n};return r(a),a.cancel?t=null:a.event&&(a.event.cancel=!0,n.preventDefault()),t}_refresh(){if(Ii())if(this._overlay){var n=this._overlay.option("position");super._refresh(),this._overlay&&this._overlay.option("position",n)}else super._refresh();else super._refresh()}_hide(){var n;return this._overlay&&(n=this._overlay.hide(),this._setOptionWithoutOptionChange("visible",!1)),this._cleanAriaAttributes(),this.option("focusedElement",null),n||(new Rt).reject().promise()}toggle(n){var t=this.option("visible");return this._renderVisibility(n=void 0===n?!t:n)}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}}xi("dxContextMenu",f1e);const m1e=f1e,K2=m1e;var Tat={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},Dat=["columnHeadersView","rowsView","footerView","headerPanel"],Iat=Us.ViewController.inherit({init:function(){this.createAction("onContextMenuPreparing")},getContextMenuItems:function(e){if(!e)return!1;var o,r,a,l,n=this,t=K(e.target);return je(Dat,function(){var c=n.getView(this);if((o=c&&c.element())&&(o.is(t)||o.find(t).length)){var p,b;a=t.closest(".dx-row > td, .dx-row > tr"),r=a.parent();var T=c.getRowIndex(r),L=a[0]&&a[0].cellIndex,N=r.data("options"),G={event:e,targetElement:Di(t),target:Tat[this],rowIndex:T,row:c._getRows()[T],columnIndex:L,column:null==N||null===(p=N.cells)||void 0===p||null===(b=p[L])||void 0===b?void 0:b.column};if(G.items=c.getContextMenuItems&&c.getContextMenuItems(G),n.executeAction("onContextMenuPreparing",G),n._contextMenuPrepared(G),l=G.items)return!1}}),l},_contextMenuPrepared:gt}),Eat=Us.View.inherit({_renderCore:function(){var e=this,n=e.element().addClass("dx-context-menu");this.setAria("role","presentation",n),this._createComponent(n,K2,{onPositioning:function(t){var o=t.event,r=t.component,a=e.getController("contextMenu").getContextMenuItems(o);a?(r.option("items",a),o.stopPropagation()):t.cancel=!0},onItemClick:function(t){t.itemData.onItemClick&&t.itemData.onItemClick(t)},cssClass:e.getWidgetContainerClass(),target:e.component.$element()})}}),_1e={defaultOptions:function(){return{onContextMenuPreparing:null}},controllers:{contextMenu:Iat},views:{contextMenuView:Eat}};mo.registerModule("contextMenu",_1e);var wS="dx-error-row",v1e="dx-error-message",Lat=Us.ViewController.inherit({init:function(){this._columnHeadersView=this.getView("columnHeadersView"),this._rowsView=this.getView("rowsView")},_createErrorRow:function(e,n){var o,r,t=this,a=this._renderErrorMessage(e);return n?(o=K("
  • ").addClass(wS),r=K("
    ").addClass("dx-closebutton").addClass(t.addWidgetPrefix("action")),We.on(r,Go,t.createAction(function(l){var p,c=l.event,b=K(c.currentTarget).closest("."+wS).index();c.stopPropagation(),je(n,function(T,L){p=K(L).children("tbody").children("tr").eq(b),t.removeErrorRow(p)}),t.getController("resizing")&&t.getController("resizing").fireContentReadyAction()})),K("
    ").attr({colSpan:t.getController("columns").getVisibleColumns().length,role:"presentation"}).prepend(r).append(a).appendTo(o),o):a},_renderErrorMessage:function(e){var n=e.url?e.message.replace(e.url,""):e.message||e,t=K("
    ").addClass(v1e).text(n);return e.url&&K("").attr("href",e.url).text(e.url).appendTo(t),t},renderErrorRow:function(e,n,t){var r,a,o=this;if(t)return t.find("."+v1e).remove(),r=o._createErrorRow(e),t.prepend(r),r;var l=n>=0||!o._columnHeadersView.isVisible()?o._rowsView:o._columnHeadersView,c=l.getTableElements();je(c,function(b,T){if(r=o._createErrorRow(e,c),a=a||r,n>=0){var L=l._getRowElements(K(T)).eq(n);o.removeErrorRow(L.next()),r.insertAfter(L)}else{var N=K(T).children("tbody"),G=N.children("tr");o._columnHeadersView.isVisible()?(o.removeErrorRow(G.last()),K(T).append(r)):(o.removeErrorRow(G.first()),N.first().prepend(r))}});var p=o.getController("resizing");return p&&p.fireContentReadyAction(),a},removeErrorRow:function(e){if(!e){var n=this._columnHeadersView&&this._columnHeadersView.element();if(!(e=n&&n.find("."+wS))||!e.length){var t=this._rowsView.element();e=t&&t.find("."+wS)}}e&&e.hasClass(wS)&&e.remove()},optionChanged:function(e){"errorRowEnabled"===e.name?e.handled=!0:this.callBase(e)}}),C1e={defaultOptions:function(){return{errorRowEnabled:!0}},controllers:{errorHandling:Lat},extenders:{controllers:{data:{init:function(){var e=this,n=e.getController("errorHandling");e.callBase(),e.dataErrorOccurred.add(function(t,o){e.option("errorRowEnabled")&&n.renderErrorRow(t,void 0,o)}),e.changed.add(function(t){if(!t||"loadError"!==t.changeType){var o=e.getController("errorHandling"),r=e.getController("editing");r&&!r.hasChanges()&&o&&o.removeErrorRow()}})}}}}};mo.registerModule("errorHandling",C1e);var b1e="dx-gridbase-container",iB="adaptiveHidden",gZ=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],PS=function(e){return Wi(e)&&"%"===e.slice(-1)},x1e=function(e,n){var t=e._rowsView.contentWidth();return t-e._getTotalWidth(n,t)},Fat=Us.ViewController.inherit({_initPostRenderHandlers:function(){var e=this._dataController;this._refreshSizesHandler||(this._refreshSizesHandler=n=>{e.changed.remove(this._refreshSizesHandler),Xn.apply(this,n&&n.templateDeferreds||[]).done(()=>{this._refreshSizes(n)})},e.changed.add(()=>{e.changed.add(this._refreshSizesHandler)}))},_refreshSizes:function(e){var n,t=this,o=e&&e.changeType,r=e&&e.isDelayed,a=t._dataController.items();if(e&&"refresh"!==o&&"prepend"!==o&&"append"!==o){if("update"===o){var l;if(0===(null===(l=e.changeTypes)||void 0===l?void 0:l.length))return;!(a.length>1||"insert"!==e.changeTypes[0])||0===a.length&&"remove"===e.changeTypes[0]||e.needUpdateDimensions?n=t.resize():id(()=>zs(()=>id(()=>{t._setScrollerSpacing(t._hasHeight),t._rowsView.resize()})))}}else r||(n=t.resize());o&&"updateSelection"!==o&&"updateFocusedRow"!==o&&"pageIndex"!==o&&!r&&Xn(n).done(function(){t._setAriaRowColCount(),t.fireContentReadyAction()})},fireContentReadyAction:function(){this.component._fireContentReadyAction()},_setAriaRowColCount:function(){var e=this.component;e.setAria({rowCount:this._dataController.totalItemsCount(),colCount:e.columnCount()},e.$element().children("."+b1e))},_getBestFitWidths:function(){var e,n=this._rowsView,t=this._columnHeadersView,o=n.getColumnWidths();if(null===(e=o)||void 0===e||!e.length){var r,a=t.getTableElement();t.setTableElement(null===(r=n.getTableElement())||void 0===r?void 0:r.children(".dx-header")),o=t.getColumnWidths(),t.setTableElement(a)}return o},_setVisibleWidths:function(e,n){var t=this._columnsController;t.beginUpdate(),je(e,function(o,r){var a=t.getColumnId(r);t.columnOption(a,"visibleWidth",n[o])}),t.endUpdate()},_toggleBestFitModeForView:function(e,n,t){if(e&&e.isVisible()){var o=this._rowsView.getTableElements(),r=e.getTableElements();je(o,(a,l)=>{var c,p=K(l),b=r.eq(a);b&&b.length&&((c=t?b.children("tbody").appendTo(p):p.children("."+n).appendTo(b)).toggleClass(n,t),c.toggleClass(this.addWidgetPrefix("best-fit"),t))})}},_toggleBestFitMode:function(e){var n=this._rowsView.getTableElement(),t=this._rowsView.getTableElements().eq(1);!n||(n.css("tableLayout",e?"auto":"fixed"),n.children("colgroup").css("display",e?"none":""),t.toggleClass(this.addWidgetPrefix("table-fixed"),!e),this._toggleBestFitModeForView(this._columnHeadersView,"dx-header",e),this._toggleBestFitModeForView(this._footerView,"dx-footer",e),this._toggleContentMinHeight(e),this._needStretch()&&(n.get(0).style.width=e?"auto":""))},_toggleContentMinHeight:function(e){if(this.option("wordWrapEnabled")){var n=this._rowsView.getScrollable(),t=this._rowsView._findContentElement();!1===(null==n?void 0:n.option("useNative"))&&t.css({minHeight:e?yi.getContentHeightLimit(Ha):""})}},_synchronizeColumns:function(){var a,p,b,e=this._columnsController,n=e.getVisibleColumns(),t=this.option("columnAutoWidth"),o=this._needBestFit(),r=!1,l=!1,c=[];!o&&je(n,function(L,N){if("auto"===N.width)return o=!0,!1}),je(n,function(L,N){if(N.minWidth)return r=!0,!1}),this._setVisibleWidths(n,[]),o&&(p=gn.getActiveElement(),b=yi.getSelectionRange(p),this._toggleBestFitMode(!0),a=!0);var T=this.component.$element();T&&T[0]&&this._maxWidth&&(delete this._maxWidth,T[0].style.maxWidth=""),id(()=>{var N;o?(c=this._getBestFitWidths(),je(n,function(N,G){var Y=e.getColumnId(G);e.columnOption(Y,"bestFitWidth",c[N],!0)})):r&&(c=this._getBestFitWidths()),je(n,function(N){var G=this.width;"auto"!==G&&(ce(G)?c[N]=vo(G)||function(e){return Wi(e)&&"px"===e.slice(-2)}(G)?parseFloat(G):G:t||(c[N]=void 0))}),a&&(this._toggleBestFitMode(!1),a=!1,p&&p!==gn.getActiveElement())&&(qo(p).bottom<0||function(e,n){(function CXe(e){CR=!0,e.focus(),CR=!1})(e),yi.setSelectionRange(e,n)}(p,b)),l=this._correctColumnWidths(c,n),t&&(je(n,function(G,Y){"groupExpand"===Y.type&&(N=c[G])}),je(n,function(G,Y){"groupExpand"===Y.type&&N&&(c[G]=N)}),this._needStretch()&&this._processStretch(c,n)),zs(()=>{(o||l)&&this._setVisibleWidths(n,c)})})},_needBestFit:function(){return this.option("columnAutoWidth")},_needStretch:function(){return this._columnsController.getVisibleColumns().some(e=>"auto"===e.width&&!e.command)},_getAverageColumnsWidth:function(e){return x1e(this,e)/e.filter(function(o){return void 0===o}).length},_correctColumnWidths:function(e,n){var o,t=this,r=!1,a=!1,l=!1,c=t.component.$element(),p=t._hasWidth,b=function(){var ue=o,xe=n[ue],Se=e[ue]===iB,Te=e[ue],Me=xe.minWidth;if(Me)if(void 0===Te){var Le=t._getAverageColumnsWidth(e);Te=Le}else if(PS(Te)){var He=function(e,n,t,o){return x1e(e,o.map(function(r,a){return a===n?t:r}))}(t,ue,Me,e);He<0&&(Te=-1)}var nt=t._getRealColumnWidth(ue,e.map(function(ut,wt){return ue===wt?Te:ut}));Me&&!Se&&nt=0&&(e[Y]="auto",l=!0,!1===p&&!r)){var ie=t.option("showBorders")?Math.ceil(ho(T)-t0(T)):0;t._maxWidth=G+N+ie,c.css("maxWidth",t._maxWidth)}}}return l},_processStretch:function(e,n){var t=this._rowsView.contentWidth(),o=this._getTotalWidth(e,t),r={length:0};if(e.length){je(n,function(b){(this.width||e[b]===iB)&&(r[b]=!0,r.length++)});var a=t-o,l=Math.floor(a/(e.length-r.length)),c=a-l*(e.length-r.length);if(a>=0)for(var p=0;p0&&(c<1?(e[p]+=c,c=0):(e[p]++,c--)))}},_getRealColumnWidth:function(e,n,t){var o=1,r=n[e];if(!PS(r))return parseFloat(r);var a=n.reduce((b,T,L)=>PS(T)?b+parseFloat(T):b,0),l=n.reduce((b,T)=>!T||T===iB||PS(T)?b:b+parseFloat(T),0),c=(t=t||this._rowsView.contentWidth())-l,p=a*t/100;return l>0&&p+l>=t&&(o=p>c?c/p:1),parseFloat(r)*t*o/100},_getTotalWidth:function(e,n){for(var t=0,o=0;o{id(()=>{this._setScrollerSpacingCore(e)})}):this._setScrollerSpacingCore(e)},_updateDimensionsCore:function(){var L,e=this,n=e._dataController,t=e._rowsView,o=e.component.$element(),r=o.children().get(0),a=o&&(o.get(0).clientHeight||Ti(o)),l=parseInt(o.css("maxHeight")),c=l&&a>=l,p=e.option("height")||o.get(0).style.height,b=e.getController("editorFactory"),T=c&&r.scrollHeight===r.offsetHeight;e.updateSize(o);var N=e._hasHeight||c;p&&e._hasHeight^"auto"!==p&&(L=K("
    "),Ia(L,p),L.appendTo(o),e._hasHeight=!!Ti(L),L.remove()),zs(function(){t.height(null,N),c&&!T&&K(r).css("height",l),n.isLoaded()?id(function(){e._updateLastSizes(o),e._setScrollerSpacing(N),je(gZ,function(G,Y){var ie=e.getView(Y);ie&&ie.resize()}),b&&b.resize()}):t.setLoading(n.isLoading())})},_updateLastSizes:function(e){this._lastWidth=vi(e),this._lastHeight=Ti(e),this._devicePixelRatio=Mi().devicePixelRatio},optionChanged:function(e){switch(e.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"renderAsync":return void(e.handled=!0);default:this.callBase(e)}},init:function(){this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._columnHeadersView=this.getView("columnHeadersView"),this._footerView=this.getView("footerView"),this._rowsView=this.getView("rowsView")}}),Uat=Us.ViewController.inherit({_scrollChangedHandler:function(e,n,t){for(var o=0;o").addClass(this.getWidgetContainerClass());t.addClass(b1e),t.toggleClass(this.addWidgetPrefix("borders"),!!this.option("showBorders")),this.setAria("role","presentation",e),this.component.setAria({role:this._getTableRoleName(),label:ze.format(this._getWidgetAriaLabel())},t),this._rootElement=e||this._rootElement,n&&(this._groupElement=t,Ii()&&this.getController("resizing").updateSize(e),t.appendTo(e)),this._renderViews(t)},update:function(){var e=this._rootElement,n=this._groupElement,t=this.getController("resizing");e&&n&&(t.resize(),this._dataController.isLoaded()&&this._resizingController.fireContentReadyAction())}}),oB={defaultOptions:function(){return{showBorders:!1,renderAsync:!1}},controllers:{resizing:Fat,synchronizeScrolling:Uat},views:{gridView:jat},VIEW_NAMES:gZ};mo.registerModule("gridView",oB);var rB="dxswipestart",aB="dxswipe",SS="dxswipeend",Gat={defaultItemSizeFunc:function(){return vi(this.getElement())},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(e){return(es(e).x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var n=es(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(n.x-this._tickData.x)>=n.time-this._tickData.time}},Wat={defaultItemSizeFunc:function(){return Ti(this.getElement())},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(e){return(es(e).y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,e)},isFastSwipe:function(e){var n=es(e);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(n.y-this._tickData.y)>=n.time-this._tickData.time}},Kat={horizontal:Gat,vertical:Wat},Yat=N5.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(e){this.callBase(e),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return Kat[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(e){this._tickData=es(e)},_start:function(e){this._savedEventData=es(e),(e=this._fireEvent(rB,e)).cancel||(this._maxLeftOffset=e.maxLeftOffset,this._maxRightOffset=e.maxRightOffset,this._maxTopOffset=e.maxTopOffset,this._maxBottomOffset=e.maxBottomOffset)},_move:function(e){var n=this._getStrategy(),t=es(e),o=n.calcOffsetRatio.call(this,e);o=this._fitOffset(o,this.elastic),t.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=t),this._fireEvent(aB,e,{offset:o}),e.preventDefault()},_end:function(e){var n=this._getStrategy(),t=n.calcOffsetRatio.call(this,e),o=n.isFastSwipe.call(this,e),r=t,a=this._calcTargetOffset(t,o);r=this._fitOffset(r,this.elastic),a=this._fitOffset(a,!1),this._fireEvent(SS,e,{offset:r,targetOffset:a})},_fitOffset:function(e,n){var o=this._getStrategy().getBounds.call(this);return e<-o[0]?n?(-2*o[0]+e)/3:-o[0]:e>o[1]?n?(2*o[1]+e)/3:o[1]:e},_calcTargetOffset:function(e,n){var t;return n?(t=Math.ceil(Math.abs(e)),e<0&&(t=-t)):t=Math.round(e),t}});If({emitter:Yat,events:[rB,aB,SS]});var O1e="dx-list-item-badge-container",fZ="dx-list-item-chevron-container",Jat=ix.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this)),this._startWatcher("showChevron",this._renderShowChevron.bind(this))},_renderBadge:function(e){if(this._$element.children("."+O1e).remove(),e){var n=K("
    ").addClass(O1e).append(K("
    ").addClass("dx-list-item-badge").addClass("dx-badge").text(e)),t=this._$element.children("."+fZ).first();t.length>0?n.insertBefore(t):n.appendTo(this._$element)}},_renderShowChevron:function(e){if(this._$element.children("."+fZ).remove(),e){var n=K("
    ").addClass(fZ),t=K("
    ").addClass("dx-list-item-chevron");n.append(t).appendTo(this._$element)}}});const Qat=Jat;var M1e="dx-scrollview-pull-down-loading",mZ="dx-scrollview-pull-down-ready",ost=k$.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$pullDown=e._$pullDown,this._$refreshingText=e._$refreshingText,this._$scrollViewContent=K(e.content()),this._$container=K(e.container()),this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=_r(),this.releaseCallbacks=_r(),this.reachBottomCallbacks=_r()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=K("
    ").addClass("dx-scrollview-pull-down-image"),n=K("
    ").addClass("dx-scrollview-pull-down-indicator"),t=new uu(K("
    ")).$element(),o=this._$pullDownText=K("
    ").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=K("
    ").text(this.option("pullingDownText")).appendTo(o),this._$pulledDownText=K("
    ").text(this.option("pulledDownText")).appendTo(o),this._$refreshingText=K("
    ").text(this.option("refreshingText")).appendTo(o),this._$pullDown.empty().append(e).append(n.append(t)).append(o)},_releaseState:function(){this._state=0,this._refreshPullDownText()},_refreshPullDownText:function(){var e=this;je([{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}],function(t,o){o.element[e._state===o.visibleState?"addClass":"removeClass"]("dx-scrollview-pull-down-text-visible")})},update:function(){this.callBase(),this._setTopPocketOffset()},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;var e=this._$scrollViewContent.get(0),n=this._$container.get(0);this._bottomBoundary=Math.max(e.clientHeight-n.clientHeight,0)},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},_setTopPocketOffset:function(){this._$topPocket.css({top:-this._topPocketSize})},handleEnd:function(){this.callBase(),this._complete()},handleStop:function(){this.callBase(),this._complete()},_complete:function(){1===this._state&&(this._setPullDownOffset(this._topPocketSize),clearTimeout(this._pullDownRefreshTimeout),this._pullDownRefreshTimeout=setTimeout(function(){this._pullDownRefreshing()}.bind(this),400))},_setPullDownOffset:function(e){Zr(this._$topPocket,{top:e}),Zr(this._$scrollViewContent,{top:e})},handleScroll:function(e){if(this.callBase(e),2!==this._state){var n=this.location().top,t=(this._location||0)-n;this._location=n,this._isPullDown()?this._pullDownReady():t>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isPullDown:function(){return this._pullDownEnabled&&this._location>=this._topPocketSize},_isReachBottom:function(){return this._reachBottomEnabled&&Math.round(this._bottomBoundary+Math.floor(this._location))<=1},_reachBottom:function(){3!==this._state&&(this._state=3,this.reachBottomCallbacks.fire())},_pullDownReady:function(){1!==this._state&&(this._state=1,this._$pullDown.addClass(mZ),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass(M1e).removeClass(mZ),this._releaseState())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(M1e).removeClass(mZ),this._refreshPullDownText(),this.pullDownCallbacks.fire())},pullDownEnable:function(e){e&&(this._updateDimensions(),this._setTopPocketOffset()),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=1},release:function(){var e=new Rt;return this._updateDimensions(),clearTimeout(this._releaseTimeout),3===this._state&&(this._state=0),this._releaseTimeout=setTimeout(function(){this._setPullDownOffset(0),this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),400),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});const rst=ost;var w1e="dx-scrollview-pull-down-loading",dst=k$.inherit({_init:function(e){this.callBase(e),this._$topPocket=e._$topPocket,this._$pullDown=e._$pullDown,this._$scrollViewContent=K(e.content()),this._$container=K(e.container()),this._initCallbacks(),this._location=0},_initCallbacks:function(){this.pullDownCallbacks=_r(),this.releaseCallbacks=_r(),this.reachBottomCallbacks=_r()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var e=K("
    ").addClass("dx-scrollview-pull-down-indicator"),n=new uu(K("
    ")).$element();this._$icon=K("
    ").addClass("dx-icon-pulldown"),this._$pullDown.empty().append(this._$icon).append(e.append(n))},_releaseState:function(){this._state=0,this._releasePullDown(),this._updateDimensions()},_releasePullDown:function(){this._$pullDown.css({opacity:0})},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;var e=this._$scrollViewContent.get(0),n=this._$container.get(0);this._bottomBoundary=Math.max(e.clientHeight-n.clientHeight,0)},_allowedDirections:function(){var e=this.callBase();return e.vertical=e.vertical||this._pullDownEnabled,e},handleInit:function(e){this.callBase(e),0===this._state&&0===this._location&&(this._startClientY=es(e.originalEvent).y,this._state=4)},handleMove:function(e){this.callBase(e),this._deltaY=es(e.originalEvent).y-this._startClientY,4===this._state&&(this._pullDownEnabled&&this._deltaY>0?this._state=5:this._complete()),5===this._state&&(e.preventDefault(),this._movePullDown())},_movePullDown:function(){var e=this._getPullDownHeight(),n=Math.min(3*e,this._deltaY+this._getPullDownStartPosition()),t=180*n/e/3;this._$pullDown.css({opacity:1}).toggleClass("dx-scrollview-pull-down-refreshing",n=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight:function(){return Math.round(.05*no(this._$element))},_getPullDownStartPosition:function(){return-Math.round(1.5*no(this._$pullDown))},handleEnd:function(){this._isPullDown()&&this._pullDownRefreshing(),this._complete()},handleStop:function(){this._complete()},_complete:function(){(4===this._state||5===this._state)&&this._releaseState()},handleScroll:function(e){if(this.callBase(e),2!==this._state){var n=this.location().top,t=this._location-n;this._location=n,t>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isReachBottom:function(){return this._reachBottomEnabled&&Math.round(this._bottomBoundary+Math.floor(this._location))<=1},_reachBottom:function(){this.reachBottomCallbacks.fire()},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass(w1e),this._releaseState())},_pullDownRefreshing:function(){this._state=2,this._pullDownRefreshHandler()},_pullDownRefreshHandler:function(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown:function(){this._$pullDown.addClass(w1e),Zr(this._$pullDown,{top:this._getPullDownHeight()})},pullDownEnable:function(e){this._$topPocket.toggle(e),this._pullDownEnabled=e},reachBottomEnable:function(e){this._reachBottomEnabled=e},pendingRelease:function(){this._state=1},release:function(){var e=new Rt;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._releaseTimeout=setTimeout(function(){this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),e.resolve()}.bind(this),800),e.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});const ust=dst;var pst=Math,S1e="dx-scrollview-pull-down-loading",yZ="dx-scrollview-pull-down-ready",_st=Qhe.inherit({ctor:function(){this._topPocketSize=0,this._bottomPocketSize=0,this.callBase.apply(this,arguments),this._initCallbacks(),this._releaseState()},_releaseState:function(){this._state=0,this._refreshPullDownText()},_refreshPullDownText:function(){var e=this;je([{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}],function(t,o){o.element[e._state===o.visibleState?"addClass":"removeClass"]("dx-scrollview-pull-down-text-visible")})},_initCallbacks:function(){this.pullDownCallbacks=_r(),this.releaseCallbacks=_r(),this.reachBottomCallbacks=_r()},_updateBounds:function(){if("horizontal"!==this._direction){this._topPocketSize=this._$topPocket.get(0).clientHeight,this._bottomPocketSize=this._$bottomPocket.get(0).clientHeight;var n=this._$container.get(0),t=this._$content.get(0);this._bottomBoundary=Math.max(t.clientHeight-this._bottomPocketSize-n.clientHeight,0)}this.callBase()},_updateScrollbar:function(){this._scrollbar.option({containerSize:this._containerSize(),contentSize:this._contentSize()-this._topPocketSize-this._bottomPocketSize,scaleRatio:this._getScaleRatio()})},_moveContent:function(){this.callBase(),this._isPullDown()?this._pullDownReady():this._isReachBottom()?this._reachBottomReady():0!==this._state&&this._stateReleased()},_moveScrollbar:function(){this._scrollbar.moveTo(this._topPocketSize+this._location)},_isPullDown:function(){return this._pullDownEnabled&&this._location>=0},_isReachBottom:function(){var e=this._$container.get(0);return this._reachBottomEnabled&&Math.round(this._bottomBoundary-Math.ceil(e.scrollTop))<=1},_scrollComplete:function(){this._inBounds()&&1===this._state?this._pullDownRefreshing():this._inBounds()&&3===this._state?this._reachBottomLoading():this.callBase()},_reachBottomReady:function(){3!==this._state&&(this._state=3,this._minOffset=this._getMinOffset())},_getMaxOffset:function(){return-this._topPocketSize},_getMinOffset:function(){return pst.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading:function(){this.reachBottomCallbacks.fire()},_pullDownReady:function(){1!==this._state&&(this._state=1,this._maxOffset=0,this._$pullDown.addClass(yZ),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass(S1e).removeClass(yZ),this.releaseCallbacks.fire())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(S1e).removeClass(yZ),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler:function(){return 0===this._state&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=_f(this._release.bind(this)),this._releaseTask.promise},_release:function(){this._stateReleased(),this._scrollComplete()},_reachBottomEnablingHandler:function(e){this._reachBottomEnabled!==e&&(this._reachBottomEnabled=e,this._updateBounds())},_pullDownEnablingHandler:function(e){this._pullDownEnabled!==e&&(this._pullDownEnabled=e,this._considerTopPocketChange(),this._updateHandler())},_considerTopPocketChange:function(){this._location-=Ti(this._$topPocket)||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler:function(){this._state=1},dispose:function(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}}),vst=Xhe.inherit({_init:function(e){this.callBase(e),this._$pullDown=e._$pullDown,this._$topPocket=e._$topPocket,this._$bottomPocket=e._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=_r(),this.releaseCallbacks=_r(),this.reachBottomCallbacks=_r()},render:function(){this._renderPullDown(),this.callBase()},_renderPullDown:function(){var e=K("
    ").addClass("dx-scrollview-pull-down-image"),n=K("
    ").addClass("dx-scrollview-pull-down-indicator"),t=new uu(K("
    ")).$element(),o=this._$pullDownText=K("
    ").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=K("
    ").text(this.option("pullingDownText")).appendTo(o),this._$pulledDownText=K("
    ").text(this.option("pulledDownText")).appendTo(o),this._$refreshingText=K("
    ").text(this.option("refreshingText")).appendTo(o),this._$pullDown.empty().append(e).append(n.append(t)).append(o)},pullDownEnable:function(e){this._eventHandler("pullDownEnabling",e)},reachBottomEnable:function(e){this._eventHandler("reachBottomEnabling",e)},_createScroller:function(e){var n=this,t=n._scrollers[e]=new _st(n._scrollerOptions(e));t.pullDownCallbacks.add(function(){n.pullDownCallbacks.fire()}),t.releaseCallbacks.add(function(){n.releaseCallbacks.fire()}),t.reachBottomCallbacks.add(function(){n.reachBottomCallbacks.fire()})},_scrollerOptions:function(e){return ye(this.callBase(e),{$topPocket:this._$topPocket,$bottomPocket:this._$bottomPocket,$pullDown:this._$pullDown,$pullDownText:this._$pullDownText,$pullingDownText:this._$pullingDownText,$pulledDownText:this._$pulledDownText,$refreshingText:this._$refreshingText})},pendingRelease:function(){this._eventHandler("pendingRelease")},release:function(){return this._eventHandler("release").done(this._updateAction)},location:function(){var e=this.callBase();return e.top+=Ti(this._$topPocket),e},dispose:function(){je(this._scrollers,function(){this.dispose()}),this.callBase()}}),Ty="dx-scrollview",Sst={pullDown:rst,swipeDown:ust,simulated:vst},Tst=!Ii(),Dst={finishLoading:gt,release:gt,refresh:gt,scrollOffset:()=>({top:0,left:0}),_optionChanged:function(e){if("onUpdated"!==e.name)return this.callBase.apply(this,arguments)}},T1e=Eh.inherit(Tst?Dst:{_getDefaultOptions:function(){return ye(this.callBase(),{pullingDownText:ze.format("dxScrollView-pullingDownText"),pulledDownText:ze.format("dxScrollView-pulledDownText"),refreshingText:ze.format("dxScrollView-refreshingText"),reachBottomText:ze.format("dxScrollView-reachBottomText"),onPullDown:null,onReachBottom:null,refreshStrategy:"pullDown"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"android"===ci.real().platform},options:{refreshStrategy:"swipeDown"}},{device:function(){return ts()},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",reachBottomText:""}}])},_init:function(){this.callBase(),this._loadingIndicatorEnabled=!0},_initScrollableMarkup:function(){this.callBase(),this.$element().addClass(Ty),this._initContent(),this._initTopPocket(),this._initBottomPocket(),this._initLoadPanel()},_initContent:function(){var e=K("
    ").addClass("dx-scrollview-content");this._$content.wrapInner(e)},_initTopPocket:function(){var e=this._$topPocket=K("
    ").addClass("dx-scrollview-top-pocket"),n=this._$pullDown=K("
    ").addClass("dx-scrollview-pull-down");e.append(n),this._$content.prepend(e)},_initBottomPocket:function(){var e=this._$bottomPocket=K("
    ").addClass("dx-scrollview-bottom-pocket"),n=this._$reachBottom=K("
    ").addClass("dx-scrollview-scrollbottom"),t=K("
    ").addClass("dx-scrollview-scrollbottom-indicator"),o=new uu(K("
    ")).$element(),r=this._$reachBottomText=K("
    ").addClass("dx-scrollview-scrollbottom-text");this._updateReachBottomText(),n.append(t.append(o)).append(r),e.append(n),this._$content.append(e)},_initLoadPanel:function(){var e=K("
    ").addClass("dx-scrollview-loadpanel").appendTo(this.$element()),n={shading:!1,delay:400,message:this.option("refreshingText"),position:{of:this.$element()}};this._loadPanel=this._createComponent(e,z,n)},_updateReachBottomText:function(){this._$reachBottomText.text(this.option("reachBottomText"))},_createStrategy:function(){var e=this.option("useNative")?this.option("refreshStrategy"):"simulated";this._strategy=new(0,Sst[e])(this),this._strategy.pullDownCallbacks.add(this._pullDownHandler.bind(this)),this._strategy.releaseCallbacks.add(this._releaseHandler.bind(this)),this._strategy.reachBottomCallbacks.add(this._reachBottomHandler.bind(this))},_createActions:function(){this.callBase(),this._pullDownAction=this._createActionByOption("onPullDown"),this._reachBottomAction=this._createActionByOption("onReachBottom"),this._tryRefreshPocketState()},_tryRefreshPocketState:function(){this._pullDownEnable(this.hasActionSubscription("onPullDown")),this._reachBottomEnable(this.hasActionSubscription("onReachBottom"))},on:function(e){var n=this.callBase.apply(this,arguments);return("pullDown"===e||"reachBottom"===e)&&this._tryRefreshPocketState(),n},_pullDownEnable:function(e){if(0===arguments.length)return this._pullDownEnabled;this._$pullDown&&this._strategy&&(this._$pullDown.toggle(e),this._strategy.pullDownEnable(e),this._pullDownEnabled=e)},_reachBottomEnable:function(e){if(0===arguments.length)return this._reachBottomEnabled;this._$reachBottom&&this._strategy&&(this._$reachBottom.toggle(e),this._strategy.reachBottomEnable(e),this._reachBottomEnabled=e)},_pullDownHandler:function(){this._loadingIndicator(!1),this._pullDownLoading()},_loadingIndicator:function(e){if(arguments.length<1)return this._loadingIndicatorEnabled;this._loadingIndicatorEnabled=e},_pullDownLoading:function(){this.startLoading(),this._pullDownAction()},_reachBottomHandler:function(){this._loadingIndicator(!1),this._reachBottomLoading()},_reachBottomLoading:function(){this.startLoading(),this._reachBottomAction()},_releaseHandler:function(){this.finishLoading(),this._loadingIndicator(!0)},_optionChanged:function(e){switch(e.name){case"onPullDown":case"onReachBottom":this._createActions();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"refreshStrategy":this._invalidate();break;case"reachBottomText":this._updateReachBottomText();break;default:this.callBase(e)}},content:function(){return Di(this._$content.children().eq(1))},release:function(e){return void 0!==e&&this.toggleLoading(!e),this._strategy.release()},toggleLoading:function(e){this._reachBottomEnable(e)},refresh:function(){!this.hasActionSubscription("onPullDown")||(this._strategy.pendingRelease(),this._pullDownLoading())},startLoading:function(){this._loadingIndicator()&&this.$element().is(":visible")&&this._loadPanel.show(),this._lock()},finishLoading:function(){this._loadPanel.hide(),this._unlock()},_dispose:function(){this._strategy.dispose(),this.callBase(),this._loadPanel&&this._loadPanel.$element().remove()}});xi("dxScrollView",T1e);const v0=T1e;var dB="__dx_key__";const uB=Rh.inherit({_getDefaultOptions:function(){return ye(this.callBase(),{repaintChangesOnly:!1})},ctor:function(){this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=e=>{var n=this._dataSource;n&&!n.isLoaded()&&(this._correctionIndex=0),this._correctionIndex&&e.storeLoadOptions&&(e.storeLoadOptions.skip+=this._correctionIndex)},this._dataSource&&this._dataSource.on("customizeStoreLoadOptions",this._customizeStoreLoadOptions)},reload:function(){this._correctionIndex=0},_init:function(){this.callBase(),this._refreshItemsCache(),this._correctionIndex=0},_findItemElementByKey:function(e){var n=K(),t=this.key();return this.itemElements().each((o,r)=>{var a=K(r),l=this._getItemData(a);if(t?xn(t,this.keyOf(l),e):this._isItemEquals(l,e))return n=a,!1}),n},_dataSourceChangedHandler:function(e,n){null!=n&&n.changes?this._modifyByChanges(n.changes):(this.callBase(e,n),this._refreshItemsCache())},_isItemEquals:function(e,n){e&&e[dB]&&(e=e.data);try{return JSON.stringify(e)===JSON.stringify(n)}catch(t){return e===n}},_isItemStrictEquals:function(e,n){return this._isItemEquals(e,n)},_shouldAddNewGroup:function(e,n){var t=!1;return this.option("grouped")&&(e.length||(t=!0),je(e,(o,r)=>{"insert"===r.type&&(t=!0,je(n,(a,l)=>{if(void 0!==r.data.key&&r.data.key===l.key)return t=!1,!1}))})),t},_partialRefresh:function(){if(this.option("repaintChangesOnly")){var e=Lhe(this._itemsCache,this._editStrategy.itemsGetter(),n=>n&&void 0!==n[dB]?n[dB]:this.keyOf(n),this._isItemStrictEquals.bind(this));if(e&&this._itemsCache.length&&!this._shouldAddNewGroup(e,this._itemsCache))return this._modifyByChanges(e,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache:function(){if(this.option("repaintChangesOnly")){var e=this._editStrategy.itemsGetter();try{this._itemsCache=ye(!0,[],e),this.key()||(this._itemsCache=this._itemsCache.map((n,t)=>({[dB]:e[t],data:n})))}catch(n){this._itemsCache=ye([],e)}}},_dispose:function(){this._dataSource&&this._dataSource.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange:function(e,n,t,o){if(o)this._renderItem(t.index,t.data,null,this._findItemElementByKey(t.key));else{var r=n[vy(e,n,t.key)];r&&p$(e,n,t.key,t.data).done(()=>{this._renderItem(n.indexOf(r),r,null,this._findItemElementByKey(t.key))})}},_insertByChange:function(e,n,t,o){Xn(o||h$(e,n,t.data,t.index)).done(()=>{var r;this._beforeItemElementInserted(t);var a=this._getItemContainer(t.data);this._renderItem(null!==(r=t.index)&&void 0!==r?r:n.length,t.data,a),this._afterItemElementInserted(),this._correctionIndex++})},_getItemContainer:function(e){return this._itemContainer()},_updateSelectionAfterRemoveByChange:function(e){var n=this.option("selectedIndex");n>e?this.option("selectedIndex",n-1):n===e&&1===this.option("selectedItems").length?this.option("selectedItems",[]):this._normalizeSelectedItems()},_beforeItemElementInserted:function(e){var n=this.option("selectedIndex");e.index<=n&&this.option("selectedIndex",n+1)},_afterItemElementInserted:gt,_removeByChange:function(e,n,t,o){var r=o?t.index:vy(e,n,t.key);if(o?t.oldItem:n[r]){var l=this._findItemElementByKey(t.key),c=this._extendActionArgs(l);this._waitDeletingPrepare(l).done(()=>{o?(this._updateIndicesAfterIndex(r-1),this._afterItemElementDeleted(l,c),this._updateSelectionAfterRemoveByChange(r)):(this._deleteItemElementByIndex(r),this._afterItemElementDeleted(l,c))}),this._correctionIndex--}},_modifyByChanges:function(e,n){var t=this._editStrategy.itemsGetter(),o={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},r=this._dataSource,a=r&&r.paginate(),l=r&&r.group();(a||l)&&(e=e.filter(c=>"insert"!==c.type||void 0!==c.index)),e.forEach(c=>this["_".concat(c.type,"ByChange")](o,t,c,n)),this._renderedItemsCount=t.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer:function(e,n,t){var o=e.children(this._itemSelector()).get(t);gn.insertElement(e.get(0),n.get(0),o)},_optionChanged:function(e){switch(e.name){case"items":this._partialRefresh(e.value)||this.callBase(e);break;case"dataSource":(!this.option("repaintChangesOnly")||!e.value)&&this.option("items",[]),this.callBase(e);break;case"repaintChangesOnly":break;default:this.callBase(e)}}}),MZ={_getSpecificDataSourceOption:function(){var e=this.option("dataSource"),n=!1,t={};return this._getGroupedOption()&&(e=>Array.isArray(e)&&e.every(n=>2===Object.keys(n).length&&"key"in n&&"items"in n&&Array.isArray(n.items)))(e)&&(t=e.reduce((o,r)=>{var a=r.items.map(l=>(to(l)||(l={text:l},n=!0),"key"in l||(l.key=r.key),l));return o.concat(a)},[]),e={store:{type:"array",data:t},group:{selector:"key",keepInitialKeyOrder:!0}},n&&(e.searchExpr="text")),e}};function D1e(e){return e?Number(e.replace("px","")):0}function Est(e,n){var t=function ES(e){var n,t;return e&&Ii()?null===(n=(t=Mi()).getComputedStyle)||void 0===n?void 0:n.call(t,e):null}(e);return t?D1e(t["margin".concat(Vp(n))]):0}var pB="dx-list-item",Ast="."+pB,rx="dx-list-group",wZ="dx-list-group-header",hB="dx-list-group-body",I1e="dx-list-group-collapsed",E1e="dx-wrap-item-text",Ust=Wo("items"),gB=uB.inherit({_activeStateUnit:[Ast,".dx-list-select-all"].join(","),_supportedKeys:function(){var e=this,n=function(o){var l,c,p,r=t(o);r.is(e.option("focusedElement"))&&(c=o,p=(l=r).position().top,"prev"===c&&(p=l.position().top-Ti(e.$element())+no(l)),e.scrollTo(p),r=t(o)),e.option("focusedElement",Di(r)),e.scrollToItem(r)};function t(o){var r=e.scrollTop(),a=Ti(e.$element()),l=K(e.option("focusedElement")),c=!0;if(!l.length)return K();for(;c;){var p=l[o]();if(!p.length)break;var b=p.position().top+no(p)/2;(c=br)&&(l=p)}return l}return ye(this.callBase(),{leftArrow:gt,rightArrow:gt,pageUp:function(){return n("prev"),!1},pageDown:function(){return n("next"),!1}})},_getDefaultOptions:function(){return ye(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:ze.format("dxList-pullingDownText"),pulledDownText:ze.format("dxList-pulledDownText"),refreshingText:ze.format("dxList-refreshingText"),pageLoadingText:ze.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:ze.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},_listAttributes:{role:"listbox"},useInkRipple:!1,wrapItemText:!1,_swipeEnabled:!0,showChevronExpr:function(e){return e?e.showChevron:void 0},badgeExpr:function(e){return e?e.badge:void 0}})},_defaultOptionsRules:function(){var e=Nd();return this.callBase().concat(tge(),[{device:function(){return!sp},options:{useNativeScrolling:!1}},{device:function(n){return!sp&&!ci.isSimulator()&&"desktop"===ci.real().deviceType&&"generic"===n.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===ci.real().deviceType&&!ci.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return ts(e)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(e){e&&this._updateLoadingState(!0)},_itemClass:function(){return pB},_itemDataKey:function(){return"dxListItemData"},_itemContainer:function(){return this._$container},_saveSelectionChangeEvent:function(e){this._selectionChangeEventInstance=e},_getSelectionChangeEvent:function(){return this._selectionChangeEventInstance},_refreshItemElements:function(){this._itemElementsCache=this.option("grouped")?this._itemContainer().children("."+rx).children("."+hB).children(this._itemSelector()):this._itemContainer().children(this._itemSelector())},_modifyByChanges:function(){this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},reorderItem:function(e,n){return this.callBase(e,n).done(function(){this._refreshItemElements()})},deleteItem:function(e){return this.callBase(e).done(function(){this._refreshItemElements()})},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(e){if("single"!==this.option("selectionMode")||!this.isItemSelected(e.currentTarget))return this.callBase(e)},_allowDynamicItemsAppend:function(){return!0},_resetDataSourcePageIndex:function(){var e=this.getDataSource();e&&0!==e.pageIndex()&&(e.pageIndex(0),e.load())},_init:function(){this.callBase(),this._resetDataSourcePageIndex(),this._$container=this.$element(),this._initScrollView(),this._feedbackShowTimeout=70,this._createGroupRenderAction()},_scrollBottomMode:function(){return"scrollBottom"===this.option("pageLoadMode")},_nextButtonMode:function(){return"nextButton"===this.option("pageLoadMode")},_dataSourceOptions:function(){var e=this._scrollBottomMode(),n=this._nextButtonMode();return ye(this.callBase(),{paginate:Kr(e||n,!0)})},_getGroupedOption:function(){return this.option("grouped")},_getGroupContainerByIndex:function(e){return this._itemContainer().find(".".concat(rx)).eq(e).find(".".concat(hB))},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var e=this.option("scrollingEnabled"),n=e&&this.option("pullRefreshEnabled"),t=e&&this._scrollBottomMode()&&!!this._dataSource;this._scrollView=this._createComponent(this.$element(),function jst(){return v0}(),{disabled:this.option("disabled")||!e,onScroll:this._scrollHandler.bind(this),onPullDown:n?this._pullDownHandler.bind(this):null,onReachBottom:t?this._scrollBottomHandler.bind(this):null,showScrollbar:this.option("showScrollbar"),useNative:this.option("useNativeScrolling"),bounceEnabled:this.option("bounceEnabled"),scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),reachBottomText:this.option("pageLoadingText"),useKeyboard:!1}),this._$container=K(this._scrollView.content()),this.option("wrapItemText")&&this._$container.addClass(E1e),this._createScrollViewActions()},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(e){this._scrollAction&&this._scrollAction(e)},_initTemplates:function(){this._templateManager.addDefaultTemplates({group:new Og(function(e,n){jo(n)?n.key&&e.text(n.key):e.text(String(n))},["key"],this.option("integrationOptions.watchMethod"))}),this.callBase()},_prepareDefaultItemTemplate:function(e,n){if(this.callBase(e,n),e.icon){var t=pp(e.icon).addClass("dx-list-item-icon"),o=K("
    ").addClass("dx-list-item-icon-container");o.append(t),n.prepend(o)}},_getBindableFields:function(){return["text","html","icon"]},_updateLoadingState:function(e){var n=this._scrollBottomMode()&&e&&!this._isDataSourceLoading()&&!this._isLastPage();this._shouldContinueLoading(n)?this._infiniteDataLoading():(this._scrollView.release(!n&&!this._isDataSourceLoading()),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1))},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataSource&&this._dataSource.isLoaded()},_isDataSourceFirstLoadCompleted:function(e){return ce(e)&&(this._isFirstLoadCompleted=e),this._isFirstLoadCompleted},_dataSourceLoadingChangedHandler:function(e){this._loadIndicationSuppressed()||(e&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var o;!this._itemElements().length&&!this._isDataSourceFirstLoadCompleted()||null===(o=this._scrollView)||void 0===o||o.startLoading()}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()),e||this._isDataSourceFirstLoadCompleted(!1))},_dataSourceChangedHandler:function(){!this._shouldAppendItems()&&Ii()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase.apply(this,arguments),this._isDataSourceFirstLoadCompleted(!0)},_refreshContent:function(){this._prepareContent(),this._fireContentReadyAction()},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_loadIndicationSuppressed:function(e){if(!arguments.length)return this._isLoadIndicationSuppressed;this._isLoadIndicationSuppressed=e},_scrollViewIsFull:function(){var e=this._scrollView;return!e||Ti(e.content())>Ti(e.container())},_pullDownHandler:function(e){this._pullRefreshAction(e),this._dataSource&&!this._isDataSourceLoading()?(this._clearSelectedItems(),this._dataSource.pageIndex(0),this._dataSource.reload()):this._updateLoadingState()},_shouldContinueLoading:function(e){var n,t,o=Ti(this._scrollView.content())-Ti(this._scrollView.container())<(null!==(n=null===(t=this._scrollView.scrollOffset())||void 0===t?void 0:t.top)&&void 0!==n?n:0);return e&&(!this._scrollViewIsFull()||o)},_infiniteDataLoading:function(){this.$element().is(":visible")&&(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout(()=>{this._loadNextPage()}))},_scrollBottomHandler:function(e){this._pageLoadingAction(e),this._isDataSourceLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(e){this.option("grouped")?(je(e,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),ts()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var e=_n(Go,this.NAME),n="."+wZ,t=this.$element(),o=this.option("collapsibleGroups");t.toggleClass("dx-list-collapsible-groups",o),We.off(t,e,n),o&&We.on(t,e,n,function(r){this._createAction(function(a){var l=K(a.event.currentTarget).parent();this._collapseGroupHandler(l),this.option("focusStateEnabled")&&this.option("focusedElement",Di(l.find("."+pB).eq(0)))}.bind(this),{validatingTargetName:"element"})({event:r})}.bind(this))},_collapseGroupHandler:function(e,n){var t=new Rt;if(e.hasClass(I1e)===n)return t.resolve();var o=e.children("."+hB),r=no(o),a=0;return 0===r&&(Ia(o,"auto"),a=no(o)),e.toggleClass(I1e,n),Jo.animate(o,{type:"custom",from:{height:r},to:{height:a},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),t.resolve()}.bind(this)}),t.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=K(),this.$element().addClass("dx-list"),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.setAria("role",this.option("_listAttributes").role)},_renderInkRipple:function(){this._inkRipple=iS()},_toggleActiveState:function(e,n,t){this.callBase.apply(this,arguments);var o=this;if(this._inkRipple){var r={element:e,event:t};n?ts()?this._inkRippleTimer=setTimeout(function(){o._inkRipple.showWave(r)},35):o._inkRipple.showWave(r):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(r))}},_postprocessRenderItem:function(e){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("_swipeEnabled")&&this._attachSwipeEvent(K(e.itemElement))},_attachSwipeEvent:function(e){var n=_n(SS,this.NAME);We.on(e,n,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(e){this._itemDXEventHandler(e,"onItemSwipe",{direction:e.offset<0?"left":"right"})},_nextButtonHandler:function(e){this._pageLoadingAction(e);var n=this._dataSource;n&&!n.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(e,n){var t=K("
    ").addClass(rx).appendTo(this._itemContainer()),o=K("
    ").addClass(wZ).appendTo(t),r=this.option("groupTemplate"),a=this._getTemplate(n.template||r,n,e,o),l={index:e,itemData:n,container:Di(o)};this._createItemByTemplate(a,l),ts()&&K("
    ").addClass("dx-list-group-header-indicator").prependTo(o),this._renderingGroupIndex=e;var c=K("
    ").addClass(hB).appendTo(t);je(Ust(n)||[],function(p,b){this._renderItem({group:e,item:p},b,c)}.bind(this)),this._groupRenderAction({groupElement:Di(t),groupIndex:e,groupData:n})},downInkRippleHandler:function(e){this._toggleActiveState(K(e.currentTarget),!0,e)},upInkRippleHandler:function(e){this._toggleActiveState(K(e.currentTarget),!1)},attachGroupHeaderInkRippleEvents:function(){var e="."+wZ,n=this.$element();this._downInkRippleHandler=this._downInkRippleHandler||this.downInkRippleHandler.bind(this),this._upInkRippleHandler=this._upInkRippleHandler||this.upInkRippleHandler.bind(this);var t=[n,"dxpointerdown",e,this._downInkRippleHandler],o=[n,"dxpointerup dxpointerout",e,this._upInkRippleHandler];We.off(...t),We.on(...t),We.off(...o),We.on(...o)},_createGroupRenderAction:function(){this._groupRenderAction=this._createActionByOption("onGroupRendered")},_clean:function(){clearTimeout(this._inkRippleTimer),this._$nextButton&&(this._$nextButton.remove(),this._$nextButton=null),this.callBase.apply(this,arguments)},_dispose:function(){this._isDataSourceFirstLoadCompleted(!1),clearTimeout(this._holdTimer),clearTimeout(this._loadNextPageTimer),clearTimeout(this._showLoadingIndicatorTimer),this.callBase()},_toggleDisabledState:function(e){this.callBase(e),this._scrollView.option("disabled",e||!this.option("scrollingEnabled"))},_toggleNextButton:function(e){var n=this._dataSource,t=this._getNextButton();this.$element().toggleClass("dx-has-next",e),e&&n&&n.isLoaded()&&t.appendTo(this._itemContainer()),e||t.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var e=K("
    ").addClass("dx-list-next-button"),n=K("
    ").appendTo(e);return this._createComponent(n,bs,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:ts()?"default":void 0,integrationOptions:{}}),e},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if(Ii()){var e=this._scrollView.scrollTop();this.callBase(),e&&this._scrollView.scrollTo(e)}else this.callBase()},_optionChanged:function(e){switch(e.name){case"pageLoadMode":this._toggleNextButton(e.value),this._initScrollView();break;case"dataSource":this.callBase(e),this._initScrollView(),this._isDataSourceFirstLoadCompleted(!1);break;case"items":this.callBase(e),this._isDataSourceFirstLoadCompleted(!1);break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"showScrollbar":case"bounceEnabled":case"scrollByContent":case"scrollByThumb":case"useNativeScrolling":case"scrollingEnabled":case"pullRefreshEnabled":this._initScrollView(),this._updateLoadingState();break;case"nextButtonText":case"onItemSwipe":case"useInkRipple":case"grouped":case"collapsibleGroups":case"groupTemplate":case"showChevronExpr":case"badgeExpr":this._invalidate();break;case"onScroll":case"onPullRefresh":case"onPageLoading":this._createScrollViewActions();break;case"wrapItemText":this._$container.toggleClass(E1e,e.value);break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":case"visible":this.callBase(e),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"rtlEnabled":this._initScrollView(),this.callBase(e);break;case"_swipeEnabled":case"_listAttributes":break;default:this.callBase(e)}},_extendActionArgs:function(e){if(!this.option("grouped"))return this.callBase(e);var n=e.closest("."+rx),t=n.find("."+pB);return ye(this.callBase(e),{itemIndex:{group:n.index(),item:t.index(e)}})},expandGroup:function(e){var n=new Rt,t=this._itemContainer().find("."+rx).eq(e);return this._collapseGroupHandler(t,!1).done(function(){n.resolveWith(this)}.bind(this)),n.promise()},collapseGroup:function(e){var n=new Rt,t=this._itemContainer().find("."+rx).eq(e);return this._collapseGroupHandler(t,!0).done(function(){n.resolveWith(this)}.bind(this)),n},updateDimensions:function(){var e=this,n=new Rt;return e._scrollView?e._scrollView.update().done(function(){!e._scrollViewIsFull()&&e._updateLoadingState(!0),n.resolveWith(e)}):n.resolveWith(e),n.promise()},reload:function(){this.callBase(),this.scrollTo(0),this._pullDownHandler()},repaint:function(){this.scrollTo(0),this.callBase()},scrollTop:function(){return this._scrollView.scrollOffset().top},clientHeight:function(){return this._scrollView.clientHeight()},scrollHeight:function(){return this._scrollView.scrollHeight()},scrollBy:function(e){this._scrollView.scrollBy(e)},scrollTo:function(e){this._scrollView.scrollTo(e)},scrollToItem:function(e){var n=this._editStrategy.getItemElement(e),t=null==n?void 0:n.get(0);this._scrollView.scrollToElement(t,{bottom:Est(t,"bottom")})},_dimensionChanged:function(){this.updateDimensions()}}).include(MZ);gB.ItemClass=Qat;var PZ="dx-toolbar-menu-action",L1e="dx-toolbar-menu-section",R1e="dx-toolbar-menu-last-section",B1e=gB.inherit({_activeStateUnit:"."+PZ,_initMarkup:function(){this._renderSections(),this.callBase()},_getSections:function(){return this._itemContainer().children()},_itemElements:function(){return this._getSections().children(this._itemSelector())},_renderSections:function(){var e=this,n=this._itemContainer();je(["before","center","after","menu"],function(){var t="_$"+this+"Section",o=e[t];o||(e[t]=o=K("
    ").addClass(L1e)),o.appendTo(n)})},_renderItems:function(){this.callBase.apply(this,arguments),this._updateSections()},_updateSections:function(){var e=this.$element().find("."+L1e);e.removeClass(R1e),e.not(":empty").eq(-1).addClass(R1e)},_renderItem:function(e,n,t,o){var r=n.location||"menu",l=this.callBase(e,n,this["_$"+r+"Section"],o);return this._getItemTemplateName({itemData:n})&&l.addClass("dx-toolbar-menu-custom"),("menu"===r||"dxButton"===n.widget||"dxButtonGroup"===n.widget||n.isAction)&&l.addClass(PZ),"dxButton"===n.widget&&l.addClass("dx-toolbar-hidden-button"),"dxButtonGroup"===n.widget&&l.addClass("dx-toolbar-hidden-button-group"),l.addClass(n.cssClass),l},_getItemTemplateName:function(e){var n=this.callBase(e),t=e.itemData;return t&&t.menuItemTemplate||n},_itemClickHandler:function(e,n,t){K(e.target).closest("."+PZ).length&&this.callBase(e,n,t)},_clean:function(){this._getSections().empty(),this.callBase()}});xi("dxToolbarMenu",B1e);const Kst=B1e;var Yst=Rh.inherit({_initMarkup(){this._deferredItems=[],this.callBase()},_renderItemContent(e){var n=new Rt,t=new Rt;this._deferredItems[e.index]=t;var o=this.callBase.call(this,e);return t.done(()=>{n.resolve(o)}),n.promise()},_createItemByTemplate(e,n){return e.render({model:n.itemData,container:n.container,index:n.index,onRendered:()=>{this._deferredItems[n.index].resolve()}})},_postProcessRenderItems:gt,_renderItemsAsync(){var e=new Rt;return Xn.apply(this,this._deferredItems).done(()=>{this._postProcessRenderItems(),e.resolve()}),e.promise()},_clean(){this.callBase(),this._deferredItems=[]}}),z1e="dx-toolbar",SZ="dx-toolbar-before",H1e="dx-toolbar-after",V1e="dx-toolbar-label",N1e="dx-toolbar-compact",fB="."+V1e,F1e="dx-toolbar-multiline",j1e=Yst.inherit({compactMode:!1,ctor:function(e,n){this._userOptions=n||{},this.callBase(e,n),"height"in this._userOptions&&ua.log("W0001",this.NAME,"height","20.1","Functionality associated with this option is not intended for the Toolbar widget.")},_getSynchronizableOptionsForCreateComponent:function(){return this.callBase().filter(e=>"disabled"!==e)},_initTemplates:function(){this.callBase();var e=new Og(function(n,t,o){jo(t)?(t.text&&n.text(t.text).wrapInner("
    "),t.html&&n.html(t.html),"dxDropDownButton"===t.widget&&(t.options=t.options||{},ce(t.options.stylingMode)||(t.options.stylingMode=this.option("useFlatButtons")?"text":"contained")),"dxButton"===t.widget&&(this.option("useFlatButtons")&&(t.options=t.options||{},t.options.stylingMode=t.options.stylingMode||"text"),this.option("useDefaultButtons")&&(t.options=t.options||{},t.options.type=t.options.type||"default"))):n.text(String(t)),this._getTemplate("dx-polymorph-widget").render({container:n,model:o,parent:this})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._templateManager.addDefaultTemplates({item:e,menuItem:e})},_getDefaultOptions:function(){return ye(this.callBase(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1,multiline:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return ts()},options:{useFlatButtons:!0}}])},_itemContainer:function(){return this._$toolbarItemsContainer.find(["."+SZ,".dx-toolbar-center","."+H1e].join(","))},_itemClass:function(){return"dx-toolbar-item"},_itemDataKey:function(){return"dxToolbarItemDataKey"},_buttonClass:function(){return"dx-toolbar-button"},_dimensionChanged:function(){this._arrangeItems(),this._applyCompactMode()},_initMarkup:function(){this._renderToolbar(),this._renderSections(),this.callBase(),this.setAria("role","toolbar")},_waitParentAnimationFinished:function(){var e=this.$element();return new vr(n=>{var t=()=>{clearTimeout(this._waitParentAnimationTimeout),this._waitParentAnimationTimeout=setTimeout(()=>{return o=!0,e.parents().each((r,a)=>{if(Jo.isAnimating(K(a)))return o=!1,!1}),o&&n(),o||t();var o},15)};t()})},_render:function(){this.callBase(),this._renderItemsAsync(),ts()&&vr.all([this._waitParentAnimationFinished(),this._checkWebFontForLabelsLoaded()]).then(this._dimensionChanged.bind(this))},_postProcessRenderItems:function(){this._arrangeItems()},_renderToolbar:function(){this.$element().addClass(z1e).toggleClass(F1e,this.option("multiline")),this._$toolbarItemsContainer=K("
    ").addClass("dx-toolbar-items-container").appendTo(this.$element())},_renderSections:function(){var e=this._$toolbarItemsContainer,n=this;je(["before","center","after"],function(){var t="dx-toolbar-"+this,o=e.find("."+t);o.length||(n["_$"+this+"Section"]=o=K("
    ").addClass(t).appendTo(e))})},_checkWebFontForLabelsLoaded:function(){var e=this.$element().find(fB),n=[];return e.each((t,o)=>{var r=K(o).text(),a=K(o).css("fontWeight");n.push(J9(r,a))}),vr.all(n)},_arrangeItems:function(e){e=e||vi(this.$element()),this._$centerSection.css({margin:"0 auto",float:"none"});var n=qo(this._$beforeSection.get(0)),t=qo(this._$afterSection.get(0));this._alignCenterSection(n,t,e);var o=this._$toolbarItemsContainer.find(fB).eq(0),r=o.parent();if(o.length){var a=n.width?n.width:o.position().left,l=r.hasClass(SZ)?0:a,c=r.hasClass(H1e)?0:t.width,p=0;r.children().not(fB).each(function(){p+=ho(this)});var T=Math.max(e-p-l-c,0);if(r.hasClass(SZ))this._alignSection(this._$beforeSection,T);else{var L=ho(o)-vi(o);o.css("maxWidth",T-L)}}},_alignCenterSection:function(e,n,t){this._alignSection(this._$centerSection,t-e.width-n.width);var o=this.option("rtlEnabled"),r=o?n:e,a=o?e:n,l=qo(this._$centerSection.get(0));(r.right>l.left||l.right>a.left)&&this._$centerSection.css({marginLeft:r.width,marginRight:a.width,float:r.width>a.width?"none":"right"})},_alignSection:function(e,n){var o=e.find(fB).toArray();n-=this._getCurrentLabelsPaddings(o);var r=this._getCurrentLabelsWidth(o),a=Math.abs(r-n);nvi(e)&&e.addClass(N1e)},_getCurrentLabelsWidth:function(e){var n=0;return e.forEach(function(t,o){n+=ho(t)}),n},_getCurrentLabelsPaddings:function(e){var n=0;return e.forEach(function(t,o){n+=ho(t)-vi(t)}),n},_renderItem:function(e,n,t,o){var l=!(!n.text&&!n.html),c=this.callBase(e,n,t||this["_$"+(n.location||"center")+"Section"],o);return c.toggleClass(this._buttonClass(),!l).toggleClass(V1e,l).addClass(n.cssClass),c},_renderGroupedItems:function(){var e=this;je(this.option("items"),function(n,t){var o=t.items,r=K("
    ").addClass("dx-toolbar-group"),a=t.location||"center";!o||!o.length||(je(o,function(l,c){e._renderItem(l,c,r,null)}),e._$toolbarItemsContainer.find(".dx-toolbar-"+a).append(r))})},_renderItems:function(e){this.option("grouped")&&e.length&&e[0].items?this._renderGroupedItems():this.callBase(e)},_getToolbarItems:function(){return this.option("items")||[]},_renderContentImpl:function(){var e=this._getToolbarItems();this.$element().toggleClass("dx-toolbar-mini",0===e.length),this._renderItems(this._renderedItemsCount?e.slice(this._renderedItemsCount):e),this._applyCompactMode()},_renderEmptyMessage:gt,_clean:function(){this._$toolbarItemsContainer.children().empty(),this.$element().empty()},_visibilityChanged:function(e){e&&this._arrangeItems()},_isVisible:function(){return vi(this.$element())>0&&Ti(this.$element())>0},_getIndexByItem:function(e){return Ki(e,this._getToolbarItems())},_itemOptionChanged:function(e,n,t){this.callBase.apply(this,[e,n,t]),this._arrangeItems()},_optionChanged:function(e){var n=e.name;switch(n){case"width":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"multiline":this.$element().toggleClass(F1e,e.value);break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:this.callBase.apply(this,arguments)}},_dispose:function(){this.callBase(),clearTimeout(this._waitParentAnimationTimeout)}});xi("dxToolbarBase",j1e);const olt=j1e;var rlt=["fullScreen","forceApplyBindings"],alt=Mi();class slt extends AP{constructor(n){var{fullScreen:t,forceApplyBindings:o}=n;super(er(n,rlt)),this._props=Xt({},this._props,{fullScreen:t,forceApplyBindings:o}),this._lastPositionBeforeFullScreen=void 0}set fullScreen(n){this._props.fullScreen=n,n?this._fullScreenEnabled():this._fullScreenDisabled()}positionContent(){var n,t;this._props.fullScreen?(Zr(this._$content,{top:0,left:0}),this.detectVisualPositionChange()):(null===(n=(t=this._props).forceApplyBindings)||void 0===n||n.call(t),!this._shouldRenderContentInitialPosition&&this._lastPositionBeforeFullScreen?(Zr(this._$content,this._lastPositionBeforeFullScreen),this._lastPositionBeforeFullScreen=void 0,this.detectVisualPositionChange()):super.positionContent())}_getWrapperCoveredElement(){return this._props.fullScreen?K(alt):super._getWrapperCoveredElement()}_fullScreenEnabled(){this.restorePositionOnNextRender(!1),this._lastPositionBeforeFullScreen=this._visualPosition}_fullScreenDisabled(){this.restorePositionOnNextRender(!1)}}var llt=Mi(),TZ="dx-popup",G1e="dx-popup-wrapper",hlt="dx-state-disabled",W1e="dx-popup-title",K1e="dx-popup-bottom",Y1e=["cancel","clear","done"],Mlt=Ha.safari&&Ph(Ha.version,[11])<0,$v={static:"",inherit:"dx-popup-inherit-height",flex:"dx-popup-flex-height"},q1e=ju.inherit({_getDefaultOptions:function(){return ye(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules:function(){var e=Nd();return this.callBase().concat([{device:{platform:"ios"},options:{animation:this._iosAnimation}},{device:{platform:"android"},options:{animation:this._androidAnimation}},{device:{platform:"generic"},options:{showCloseButton:!0}},{device:function(n){return"desktop"===ci.real().deviceType&&"generic"===n.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===ci.real().deviceType&&!ci.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return ts(e)},options:{useDefaultToolbarButtons:!0,useFlatToolbarButtons:!0,showCloseButton:!1}}])},_iosAnimation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom"}},to:{position:{my:"center",at:"center"}}},hide:{type:"slide",duration:400,from:{opacity:1,position:{my:"center",at:"center"}},to:{opacity:1,position:{my:"top",at:"bottom"}}}},_androidAnimation:function(){return this.option("fullScreen")?{show:{type:"slide",duration:300,from:{top:"30%",opacity:0},to:{top:0,opacity:1}},hide:{type:"slide",duration:300,from:{top:0,opacity:1},to:{top:"30%",opacity:0}}}:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}}},_init:function(){var e=this.option("_wrapperClassExternal"),n=e?"".concat(G1e," ").concat(e):G1e;this.callBase(),this.$element().addClass(TZ),this.$wrapper().addClass(n),this._$popupContent=this._$content.wrapInner(K("
    ").addClass("dx-popup-content")).children().eq(0)},_render:function(){var e=this.option("fullScreen");this._toggleFullScreenClass(e),this.callBase()},_toggleFullScreenClass:function(e){this.$overlayContent().toggleClass("dx-popup-fullscreen",e).toggleClass("dx-popup-normal",!e)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new cu,bottom:new cu})},_renderContentImpl:function(){this._renderTitle(),this.callBase(),this._renderBottom()},_renderTitle:function(){var e=this._getToolbarItems("top"),n=this.option("title"),t=this.option("showTitle");if(t&&!!n&&e.unshift({location:ci.current().ios?"center":"before",text:n}),t||e.length>0){this._$title&&this._$title.remove();var o=K("
    ").addClass(W1e).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",e,o).addClass(W1e),this._renderDrag(),this._executeTitleRenderAction(this._$title),this._$title.toggleClass("dx-has-close-button",this._hasCloseButton())}else this._$title&&this._$title.detach()},_renderTemplateByType:function(e,n,t,o){var{rtlEnabled:r,useDefaultToolbarButtons:a,useFlatToolbarButtons:l,disabled:c}=this.option(),p=this._getTemplateByOption(e);if(p instanceof cu){var T=ye({},this.option("integrationOptions"),{skipTemplates:["content","title"]}),L=ye(o,{items:n,rtlEnabled:r,useDefaultButtons:a,useFlatButtons:l,disabled:c,integrationOptions:T});this._getTemplate("dx-polymorph-widget").render({container:t,model:{widget:"dxToolbarBase",options:L}});var N=t.children("div");return t.replaceWith(N),N}var G=K(p.render({container:Di(t)}));return G.hasClass("dx-template-wrapper")&&(t.replaceWith(G),t=G),t},_executeTitleRenderAction:function(e){this._getTitleRenderAction()({titleElement:Di(e)})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){return(e,n,t)=>{var o=K("
    ").addClass("dx-closebutton");this._createComponent(o,bs,{icon:"close",onClick:this._createToolbarItemAction(void 0),stylingMode:"text",integrationOptions:{}}),K(t).append(o)}},_getToolbarItems:function(e){var n=this.option("toolbarItems"),t=[];this._toolbarItemClasses=[];var o=ci.current().platform,r=0;return je(n,(a,l)=>{var c=ce(l.shortcut),p=c?(e=>{var n=ci.current(),t=n.platform,o="bottom",r="before";if("ios"===t)switch(e){case"cancel":o="top";break;case"clear":o="top",r="after";break;case"done":r="after"}else if("android"===t&&n.version&&parseInt(n.version[0])>4)switch(e){case"cancel":case"done":r="after"}return{toolbar:o,location:r}})(l.shortcut):l;if(c&&"ios"===o&&r<2&&(p.toolbar="top",r++),p.toolbar=l.toolbar||p.toolbar||"top",p&&p.toolbar===e){c&&ye(p,{location:l.location},this._getToolbarItemByAlias(l));var b="generic"===o;"done"===l.shortcut&&b||"cancel"===l.shortcut&&!b?t.unshift(p):t.push(p)}}),"top"===e&&this._hasCloseButton()&&t.push(this._getCloseButton()),t},_hasCloseButton(){return this.option("showCloseButton")&&this.option("showTitle")},_getLocalizationKey:e=>"done"===e.toLowerCase()?"OK":ip(e,!0),_getToolbarItemByAlias:function(e){var n=this,t=e.shortcut;if(Ki(t,Y1e)<0)return!1;var o=ye({text:ze.format(this._getLocalizationKey(t)),onClick:this._createToolbarItemAction(e.onClick),integrationOptions:{},type:n.option("useDefaultToolbarButtons")?"default":"normal",stylingMode:n.option("useFlatToolbarButtons")?"text":"contained"},e.options||{}),r=TZ+"-"+t;return this._toolbarItemClasses.push(r),{template:function(a,l,c){var p=K("
    ").addClass(r).appendTo(c);n._createComponent(p,bs,o)}}},_createToolbarItemAction:function(e){return this._createAction(e,{afterExecute:function(n){n.component.hide()}})},_renderBottom:function(){var e=this._getToolbarItems("bottom");if(e.length){this._$bottom&&this._$bottom.remove();var n=K("
    ").addClass(K1e).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",e,n,{compactMode:!0}).addClass(K1e),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleDisabledState:function(e){this.callBase(...arguments),this.$content().toggleClass(hlt,Boolean(e))},_toggleClasses:function(){je(Y1e,(n,t)=>{var o=TZ+"-"+t;Ki(o,this._toolbarItemClasses)>=0?(this.$wrapper().addClass(o+"-visible"),this._$bottom.addClass(o)):(this.$wrapper().removeClass(o+"-visible"),this._$bottom.removeClass(o))})},_getPositionControllerConfig(){var{fullScreen:e,forceApplyBindings:n}=this.option();return ye({},this.callBase(),{fullScreen:e,forceApplyBindings:n})},_initPositionController(){this._positionController=new slt(this._getPositionControllerConfig())},_getDragTarget:function(){return this.topToolbar()},_renderGeometryImpl:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e||this._resetContentHeight(),this.callBase(),this._setContentHeight()},_resetContentHeight:function(){"auto"===this._getOptionValue("height")&&this.$content().css({height:"auto",maxHeight:"none"})},_renderDrag:function(){this.callBase(),this.$overlayContent().toggleClass("dx-popup-draggable",this.option("dragEnabled"))},_renderResize:function(){this.callBase(),this._resizable.option("onResize",e=>{this._setContentHeight(),this._actions.onResize(e)})},_setContentHeight:function(){(this.option("forceApplyBindings")||gt)();var e=this.$overlayContent().get(0),n=this._chooseHeightStrategy(e);this.$content().css(this._getHeightCssStyles(n,e)),this._setHeightClasses(this.$overlayContent(),n)},_heightStrategyChangeOffset:function(e,n){return e===$v.flex?-n:0},_chooseHeightStrategy:function(e){var n="auto"===e.style.width||""===e.style.width,t=$v.static;return this._isAutoHeight()&&this.option("autoResizeEnabled")&&(t=n||Mlt?$v.inherit:$v.flex),t},_getHeightCssStyles:function(e,n){var t={},o=this._getOptionValue("maxHeight",n),r=this._getOptionValue("minHeight",n),a=this._splitPopupHeight(),l=a.header+a.footer+a.contentVerticalOffsets+a.popupVerticalOffsets+this._heightStrategyChangeOffset(e,a.popupVerticalPaddings);if(e===$v.static){if(!this._isAutoHeight()||o||r){var c=this.option("fullScreen")?Math.min(qo(n).height,Mi().innerHeight):qo(n).height;t={height:Math.max(0,c-l),minHeight:"auto",maxHeight:"auto"}}}else{var b=K(this._positionController._$wrapperCoveredElement).get(0),T=function(e,n,t){var o=vA(e,n,t);return null!==o?o:"none"}(o,-l,b),L=function(e,n,t){var o=vA(e,n,t);return null!==o?o:0}(r,-l,b);t={height:"auto",minHeight:L,maxHeight:T}}return t},_setHeightClasses:function(e,n){var t="";for(var o in $v)$v[o]!==n&&(t+=" "+$v[o]);e.removeClass(t).addClass(n)},_isAutoHeight:function(){return"auto"===this.$overlayContent().get(0).style.height},_splitPopupHeight:function(){var e=this.topToolbar(),n=this.bottomToolbar();return{header:SC(e&&e.get(0)),footer:SC(n&&n.get(0)),contentVerticalOffsets:wv(this.$overlayContent().get(0),!0),popupVerticalOffsets:wv(this.$content().get(0),!0),popupVerticalPaddings:wv(this.$content().get(0),!1)}},_isAllWindowCovered:function(){return this.callBase()||this.option("fullScreen")},_renderDimensions:function(){this.option("fullScreen")?this.$overlayContent().css({width:"100%",height:"100%",minWidth:"",maxWidth:"",minHeight:"",maxHeight:""}):this.callBase(),Ii()&&this._renderFullscreenWidthClass()},_renderFullscreenWidthClass:function(){this.$overlayContent().toggleClass("dx-popup-fullscreen-width",ho(this.$overlayContent())===vi(llt))},refreshPosition:function(){this._renderPosition()},_optionChanged:function(e){switch(e.name){case"disabled":this.callBase(e),this._renderTitle(),this._renderBottom();break;case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry(),op(this.$overlayContent());break;case"bottomTemplate":this._renderBottom(),this._renderGeometry(),op(this.$overlayContent());break;case"onTitleRendered":this._createTitleRenderAction(e.value);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var n=!e.fullName.match(/^toolbarItems((\[\d+\])(\.(options|visible).*)?)?$/);this._renderTitle(),this._renderBottom(),n&&(this._renderGeometry(),op(this.$overlayContent()));break;case"dragEnabled":this._renderDrag();break;case"autoResizeEnabled":this._renderGeometry(),op(this.$overlayContent());break;case"fullScreen":this._positionController.fullScreen=e.value,this._toggleFullScreenClass(e.value),this._toggleSafariScrolling(),this._renderGeometry(),op(this.$overlayContent());break;case"showCloseButton":this._renderTitle();break;default:this.callBase(e)}},bottomToolbar:function(){return this._$bottom},topToolbar:function(){return this._$title},$content:function(){return this._$popupContent},content:function(){return Di(this.$content())},$overlayContent:function(){return this._$content}});xi("dxPopup",q1e);const Tc=q1e;var $1e={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},Slt=["shading","$arrow"],Y2={left:-1,top:-1,center:0,right:1,bottom:1},J1e={top:{my:"bottom center",at:"top center",collision:"fit flip"},bottom:{my:"top center",at:"bottom center",collision:"fit flip"},right:{my:"left center",at:"right center",collision:"flip fit"},left:{my:"right center",at:"left center",collision:"flip fit"}},Tlt={h:10,v:10};class Q1e extends AP{constructor(n){var{shading:t,$arrow:o}=n;super(er(n,Slt)),this._props=Xt({},this._props,{shading:t}),this._$arrow=o,this._positionSide=void 0}positionWrapper(){this._props.shading&&this._$wrapper.css({top:0,left:0})}_renderBoundaryOffset(){}_getContainerPosition(){var n=Qk(this._position.offset||""),{h:t,v:o}=n,r=this._isVerticalSide(),a=this._isHorizontalSide();if(r||a){var T=(this._isPopoverInside()?-1:1)*Y2[this._positionSide]*((r?Ti(this._$arrow):vi(this._$arrow))-this._getContentBorderWidth(this._positionSide));r?o+=T:t+=T}return ye({},this._position,{offset:t+" "+o})}_getContentBorderWidth(n){var t=this._$content.css($1e[n]);return parseInt(t)||0}_isPopoverInside(){var n=pc.setup.normalizeAlign(this._position.my),t=pc.setup.normalizeAlign(this._position.at);return n.h===t.h&&n.v===t.v}_isVerticalSide(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"top"===n||"bottom"===n}_isHorizontalSide(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"left"===n||"right"===n}_getDisplaySide(n){var t=pc.setup.normalizeAlign(n.my),o=pc.setup.normalizeAlign(n.at),r=Y2[t.h]===Y2[o.h]&&Y2[t.v]===Y2[o.v]?-1:1;return Math.abs(Y2[t.h]-r*Y2[o.h])>Math.abs(Y2[t.v]-r*Y2[o.v])?o.h:o.v}_normalizePosition(n,t){var r,o={of:t,boundaryOffset:Tlt};return r=ce(n)?ye(!0,{},o,this._positionToObject(n)):o,this._positionSide=this._getDisplaySide(r),r}_positionToObject(n){return Wi(n)?ye({},J1e[n]):n}}var X1e={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},efe=function(e){return to(e)?e.name:e},tfe=function(e,n){var t=e.option(n);return efe(t)},DZ=function(e,n){var{target:t,shading:o,disabled:r,hideEvent:a}=e.option(),l=Wi(t),c=o&&"hide"===n,p=c?null:tfe(e,"".concat(n,"Event"));if(c&&a&&Ho.log("W1020"),p&&!r){var b=_n(p,e.NAME),T=e._createAction(function(){var Y=function(e,n){var t=e.option(n);return to(t)&&t.delay}(e,n+"Event");this._clearEventsTimeouts(),Y?this._timeouts[n]=setTimeout(function(){e[n]()},Y):e[n]()}.bind(e),{validatingTargetName:"target"}),L=function(Y){T({event:Y,target:K(Y.currentTarget)})},N="_"+n+"EventHandler";if(l)e[N]=L,We.on(gn.getDocument(),b,t,L);else{var G=Di(K(t));e[N]=void 0,We.on(G,b,L)}}},IZ=function(e,n,t,o){var r=o||tfe(e,t+"Event");if(r){r=_n(r,e.NAME);var a="_"+t+"EventHandler";e[a]?We.off(gn.getDocument(),r,n,e[a]):We.off(Di(K(n)),r)}},nfe=Tc.inherit({_getDefaultOptions:function(){return ye(this.callBase(),{target:void 0,shading:!1,position:ye({},J1e.bottom),closeOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",from:1,to:0}},showTitle:!1,width:"auto",height:"auto",dragEnabled:!1,resizeEnabled:!1,fullScreen:!1,hideOnParentScroll:!0,arrowPosition:"",arrowOffset:0,_fixWrapperPosition:!0})},_defaultOptionsRules:function(){return[{device:{platform:"ios"},options:{arrowPosition:{boundaryOffset:{h:20,v:-10},collision:"fit"}}},{device:function(){return!Ii()},options:{animation:null}}]},_init:function(){this.callBase(),this._renderArrow(),this._timeouts={},this.$element().addClass("dx-popover"),this.$wrapper().addClass("dx-popover-wrapper")},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(e){IZ(this,e,"show"),IZ(this,e,"hide")},_attachEvents:function(){DZ(this,"show"),DZ(this,"hide")},_renderArrow:function(){this._$arrow=K("
    ").addClass("dx-popover-arrow").prependTo(this.$overlayContent())},_documentDownHandler:function(e){return!this._isOutsideClick(e)||this.callBase(e)},_isOutsideClick:function(e){return!K(e.target).closest(this.option("target")).length},_animate:function(e){e&&e.to&&"object"==typeof e.to&&ye(e.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this.$wrapper().toggleClass("dx-popover-without-title",!this.option("showTitle")),this.callBase()},_renderPosition:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.callBase(),this._renderOverlayPosition(e),this._actions.onPositioned()},_renderOverlayPosition:function(e){this._resetOverlayPosition(e),this._updateContentSize(e);var n=this._getContainerPosition(),t=pc.setup(this.$overlayContent(),n),o=this._getSideByLocation(t);this._togglePositionClass("dx-position-"+o),this._toggleFlippedClass(t.h.flip,t.v.flip),(this._isHorizontalSide()||this._isVerticalSide())&&this._renderArrowPosition(o)},_resetOverlayPosition:function(e){this._setContentHeight(e),this._togglePositionClass("dx-position-"+this._positionController._positionSide),Zr(this.$overlayContent(),{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(e){if(this.$content()&&e){var n=pc.calculate(this.$overlayContent(),this._getContainerPosition());if(n.h.oversize>0&&this._isHorizontalSide()&&!n.h.fit){var t=vi(this.$overlayContent())-n.h.oversize;Zs(this.$overlayContent(),t)}if(n.v.oversize>0&&this._isVerticalSide()&&!n.v.fit){var o=Ti(this.$overlayContent())-n.v.oversize,r=Ti(this.$content())-n.v.oversize;Ia(this.$overlayContent(),o),Ia(this.$content(),r)}}},_getContainerPosition:function(){return this._positionController._getContainerPosition()},_hideOnParentScrollTarget:function(){return K(this._positionController._position.of||this.callBase())},_getSideByLocation:function(e){var n=e.v.flip,t=e.h.flip;return this._isVerticalSide()&&n||this._isHorizontalSide()&&t||this._isPopoverInside()?X1e[this._positionController._positionSide]:this._positionController._positionSide},_togglePositionClass:function(e){this.$wrapper().removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(e)},_toggleFlippedClass:function(e,n){this.$wrapper().toggleClass("dx-popover-flipped-horizontal",e).toggleClass("dx-popover-flipped-vertical",n)},_renderArrowPosition:function(e){var n=qo(this._$arrow.get(0)),t=-(this._isVerticalSide(e)?n.height:n.width);this._$arrow.css(X1e[e],t);var ue,o=this._isVerticalSide(e)?"left":"top",r=this._isVerticalSide(e)?"width":"height",a=K(this._positionController._position.of),l=pc.offset(a)||{top:0,left:0},c=pc.offset(this.$overlayContent()),p=n[r],b=c[o],T=qo(this.$overlayContent().get(0))[r],L=l[o],N=a.get(0),G=N&&!N.preventDefault?qo(N)[r]:0,Y=Math.max(b,L),ie=Math.min(b+T,L+G);ue="start"===this.option("arrowPosition")?Y-b:"end"===this.option("arrowPosition")?ie-b-p:(Y+ie)/2-b-p/2;var xe=this._positionController._getContentBorderWidth(e),Se=rd(ue-xe+this.option("arrowOffset"),xe,T-p-2*xe);this._$arrow.css(o,Se)},_isPopoverInside:function(){return this._positionController._isPopoverInside()},_setContentHeight:function(e){e&&this.callBase()},_getPositionControllerConfig(){var{shading:e}=this.option();return ye({},this.callBase(),{shading:e,$arrow:this._$arrow})},_initPositionController(){this._positionController=new Q1e(this._getPositionControllerConfig())},_renderWrapperDimensions:function(){this.option("shading")&&this.$wrapper().css({width:"100%",height:"100%"})},_isVerticalSide:function(e){return this._positionController._isVerticalSide(e)},_isHorizontalSide:function(e){return this._positionController._isHorizontalSide(e)},_clearEventTimeout:function(e){clearTimeout(this._timeouts[e])},_clearEventsTimeouts:function(){this._clearEventTimeout("show"),this._clearEventTimeout("hide")},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(e){switch(e.name){case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":e.value&&this.option("fullScreen",!1);break;case"target":e.previousValue&&this._detachEvents(e.previousValue),this.callBase(e);break;case"showEvent":case"hideEvent":var n=e.name.substring(0,4),t=efe(e.previousValue);this.hide(),IZ(this,this.option("target"),n,t),DZ(this,n);break;case"visible":this._clearEventTimeout(e.value?"show":"hide"),this.callBase(e);break;default:this.callBase(e)}},show:function(e){return e&&this.option("target",e),this.callBase()}});xi("dxPopover",nfe);const Dy=nfe;var ife="dx-list-group",ofe=function(e){return(e.group<<20)+e.item},Iy=function(e){return{group:e>>20,item:1048575&e}},Blt=eB.inherit({_groupElements:function(){return this._collectionWidget._itemContainer().find("."+ife)},_groupItemElements:function(e){return e.find(".dx-list-item")},getIndexByItemData:function(e){var n=this._collectionWidget.option("items"),t=!1;return!!e&&(e.items&&e.items.length&&(e=e.items[0]),je(n,function(o,r){if(!r.items||(je(r.items,function(a,l){return l!==e||(t={group:o,item:a},!1)}),t))return!1}),t)},getItemDataByIndex:function(e){var n=this._collectionWidget.option("items");return vo(e)?this.itemsGetter()[e]:e&&n[e.group]&&n[e.group].items[e.item]||null},itemsGetter:function(){for(var e=[],n=this._collectionWidget.option("items"),t=0;t{var c=this.getIndexByKey(l,o),p=c&&o[c.group];if(p)return{groupKey:p.key,item:p.items[c.item]}};return je(e,function(l,c){var p=a(c);if(p){var b=p.groupKey,T=p.item,L=r[b];L||(r[b]=L={key:b,items:[]},t.push(L)),L.items.push(T)}}),t},moveItemAtIndexToIndex:function(e,n){var t=this._collectionWidget.option("items"),o=Iy(e),r=Iy(n),a=t[o.group].items,l=t[r.group].items,c=a[o.item];a.splice(o.item,1),l.splice(r.item,0,c)},_isItemIndex:function(e){return e&&vo(e.group)&&vo(e.item)},_getNormalizedItemIndex:function(e){var n=K(e),t=n.closest("."+ife);return t.length?ofe({group:this._groupElements().index(t),item:this._groupItemElements(t).index(n)}):-1},_normalizeItemIndex:function(e){return ofe(e)},_denormalizeItemIndex:function(e){return Iy(e)},_getItemByNormalizedIndex:function(e){var n=Iy(e),t=this._groupElements().eq(n.group);return this._groupItemElements(t).eq(n.item)},_itemsFromSameParent:function(e,n){return Iy(e).group===Iy(n).group}});const zlt=Blt;var rfe={};function Zv(e,n,t){var o=rfe,r={};r[e]=o[e]?o[e]:{},r[e][n]=t,ye(o,r)}var afe=[],_B=function(e,n,t){afe.push({enabled:e,decoratorType:n,decoratorSubType:t})};_B(function(){return this.option("menuItems").length},function(){return"menu"},function(){return this.option("menuMode")}),_B(function(){return!this.option("menuItems").length&&this.option("allowItemDeleting")},function(){var e=this.option("itemDeleteMode");return"toggle"===e||"slideButton"===e||"swipe"===e||"static"===e?"delete":"menu"},function(){var e=this.option("itemDeleteMode");return"slideItem"===e&&(e="slide"),e}),_B(function(){return"none"!==this.option("selectionMode")&&this.option("showSelectionControls")},function(){return"selection"},function(){return"default"}),_B(function(){return this.option("itemDragging.allowReordering")||this.option("itemDragging.allowDropInsideItem")||this.option("itemDragging.group")},function(){return"reorder"},function(){return"default"});var Wlt=hr.inherit({ctor:function(e){this._list=e,this._fetchRequiredDecorators()},dispose:function(){this._decorators&&this._decorators.length&&je(this._decorators,function(e,n){n.dispose()})},_fetchRequiredDecorators:function(){this._decorators=[],je(afe,function(e,n){if(n.enabled.call(this._list)){var o=n.decoratorType.call(this._list),r=n.decoratorSubType.call(this._list),a=this._createDecorator(o,r);this._decorators.push(a)}}.bind(this))},_createDecorator:function(e,n){return new(this._findDecorator(e,n))(this._list)},_findDecorator:function(e,n){var t,o=null===(t=rfe[e])||void 0===t?void 0:t[n];if(!o)throw Ho.Error("E1012",e,n);return o},modifyItemElement:function(e){var n=K(e.itemElement),t={$itemElement:n};this._prependBeforeBags(n,t),this._appendAfterBags(n,t),this._applyDecorators("modifyElement",t)},afterItemsRendered:function(){this._applyDecorators("afterRender")},_prependBeforeBags:function(e,n){var t=this._collectDecoratorsMarkup("beforeBag",n,"dx-list-item-before-bag");e.prepend(t)},_appendAfterBags:function(e,n){var t=this._collectDecoratorsMarkup("afterBag",n,"dx-list-item-after-bag");e.append(t)},_collectDecoratorsMarkup:function(e,n,t){var o=K("
    ");return je(this._decorators,function(){var r=K("
    ").addClass(t);this[e](ye({$container:r},n)),r.children().length&&o.append(r)}),o.children()},_applyDecorators:function(e,n){je(this._decorators,function(){this[e](n)})},_handlerExists:function(e){if(!this._decorators)return!1;for(var n=this._decorators,t=n.length,o=0;o{var a=this._editStrategy,l=this.option("focusedElement"),c=a.getNormalizedIndex(l);if(c!==this._getLastItemIndex()||!this._isDataSourceLoading())if(o.shiftKey&&e.option("itemDragging.allowReordering")){var T=a.getItemElement(c+(r?-1:1));this.reorderItem(l,T),this.scrollToItem(l),o.preventDefault()}else this._editProvider.handleKeyboardEvents(c,r)||(r?n.upArrow(o):n.downArrow(o))};return ye({},n,{del:o=>{e.option("allowItemDeleting")&&(o.preventDefault(),e.deleteItem(e.option("focusedElement")))},upArrow:o=>t(o,!0),downArrow:o=>t(o),enter:function(o){this._editProvider.handleEnterPressing(o)||n.enter.apply(this,arguments)},space:function(o){this._editProvider.handleEnterPressing(o)||n.space.apply(this,arguments)}})},_updateSelection(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex(){return this._itemElements().length-1},_refreshItemElements(){this.callBase();var e=this._editProvider.getExcludedItemSelectors();e.length&&(this._itemElementsCache=this._itemElementsCache.not(e))},_isItemStrictEquals:function(e,n){var t=e&&e.__dx_key__;return!(t&&!this.key()&&this._selection.isItemSelected(t))&&this.callBase(e,n)},_getDefaultOptions(){return ye(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:ze.format("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"static",itemDragging:{}})},_defaultOptionsRules(){return this.callBase().concat([{device:e=>"ios"===e.platform,options:{menuMode:"slide",itemDeleteMode:"slideItem"}},{device:{platform:"android"},options:{itemDeleteMode:"swipe"}}])},_init(){this.callBase(),this._initEditProvider()},_initDataSource(){this.callBase(),this._isPageSelectAll()||this._dataSource&&this._dataSource.requireTotalCount(!0)},_isPageSelectAll(){return"page"===this.option("selectAllMode")},_initEditProvider(){this._editProvider=new Klt(this)},_disposeEditProvider(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy(){this.option("grouped")?this._editStrategy=new zlt(this):this.callBase()},_initMarkup(){this._refreshEditProvider(),this.callBase()},_renderItems(){this.callBase(...arguments),this._editProvider.afterItemsRendered()},_selectedItemClass:()=>"dx-list-item-selected",_itemResponseWaitClass:()=>"dx-list-item-response-wait",_itemClickHandler(e){var n=K(e.currentTarget);n.is(".dx-state-disabled, .dx-state-disabled *")||this._editProvider.handleClick(n,e)||(this._saveSelectionChangeEvent(e),this.callBase(...arguments))},_shouldFireContextMenuEvent(){return this.callBase(...arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler(e){var n=K(e.currentTarget);if(!n.is(".dx-state-disabled, .dx-state-disabled *")){if(g1(e)&&this._editProvider.handleContextMenu(n,e))return void(e.handledByEditProvider=!0);this.callBase(...arguments)}},_getItemContainer:function(e){if(this.option("grouped")){var n,t=null===(n=this._editStrategy.getIndexByItemData(e))||void 0===n?void 0:n.group;return this._getGroupContainerByIndex(t)}return this.callBase(e)},_itemContextMenuHandler(e){var n=K(e.currentTarget);if(!n.is(".dx-state-disabled, .dx-state-disabled *")){if(!e.handledByEditProvider&&this._editProvider.handleContextMenu(n,e))return void e.preventDefault();this.callBase(...arguments)}},_postprocessRenderItem(e){this.callBase(...arguments),this._editProvider.modifyItemElement(e)},_clean(){this._disposeEditProvider(),this.callBase()},focusListItem(e){var n=this._editStrategy.getItemElement(e);this.option("focusedElement",n),this.focus(),this.scrollToItem(this.option("focusedElement"))},_optionChanged(e){switch(e.name){case"selectAllMode":this._initDataSource(),this._dataSource.pageIndex(0),this._dataSource.load();break;case"grouped":this._clearSelectedItems(),delete this._renderingGroupIndex,this._initEditStrategy(),this.callBase(e);break;case"showSelectionControls":case"menuItems":case"menuMode":case"allowItemDeleting":case"itemDeleteMode":case"itemDragging":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(e)}},selectAll(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement(e){return this._itemElements().index(e)},getItemElementByFlatIndex(e){var n=this._itemElements();return e<0||e>=n.length?K():n.eq(e)},getItemByIndex(e){return this._editStrategy.getItemDataByIndex(e)}});const sfe=$lt;var Zlt=sfe.inherit(xy).inherit({_addWidgetPrefix:function(e){return"dx-list-"+e},_getCombinedFilter:function(){var e,n,t=this._dataSource;return t&&(n={filter:t.filter()},t._addSearchFilter(n),e=n.filter),e},_initDataSource:function(){var e=this.option("searchValue"),n=this.option("searchExpr"),t=this.option("searchMode");this.callBase(),this._dataSource&&(e&&e.length&&this._dataSource.searchValue(e),t.length&&this._dataSource.searchOperation(xy.getOperationBySearchMode(t)),n&&this._dataSource.searchExpr(n))}});const lfe=Zlt;xi("dxList",lfe);const q2=lfe;var Qlt=["dxAutocomplete","dxButton","dxCheckBox","dxDateBox","dxMenu","dxSelectBox","dxTabs","dxTextBox","dxButtonGroup","dxDropDownButton"];function vB(e,n){var t;if(e){var o=e._findItemElementByItem(n);if(o.length){var r=e._getItemData(o),a=!!(null!==(t=r.options)&&void 0!==t&&t.disabled||r.disabled||e.option("disabled")),{widget:l}=r;if(l&&-1!==Qlt.indexOf(l)){var c=o.find(l.toLowerCase().replace("dx",".dx-"));if(c.length){var p,b,T=function(e){var n=e.data&&e.data(),t=n&&n.dxComponents,o=t&&t[0];return o&&n[o]}(c),L="dxDropDownButton"===l?T._focusTarget().find(".".concat("dx-buttongroup")):(null==T||null===(p=T._focusTarget)||void 0===p?void 0:p.call(T))||K(T.element()),N=null===(b=r.options)||void 0===b?void 0:b.tabIndex;L.attr("tabIndex",a?-1:N||0)}}}}}var ect=Mi(),act={popupWidth:"width",popupHeight:"height",popupMaxHeight:"maxHeight",popupAutoResizeEnabled:"autoResizeEnabled"},sct={buttonIcon:"icon",buttonText:"text",buttonWidth:"width",buttonHeight:"height",buttonTemplate:"template"},cfe=br.inherit({_supportedKeys:function(){var e={};return(!this.option("opened")||!this._list.option("focusedElement"))&&(e=this._button._supportedKeys()),ye(this.callBase(),e,{tab:function(){this._popup&&this._popup.hide()}})},_getDefaultOptions:function(){return ye(this.callBase(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",buttonText:"",buttonIcon:"overflow",buttonWidth:void 0,buttonHeight:void 0,buttonTemplate:"content",onButtonClick:null,usePopover:!1,popupWidth:"auto",popupHeight:"auto",activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,selectionMode:"none",selectedItemKeys:[],deferRendering:!1,popupPosition:{my:"top center",at:"bottom center",collision:"fit flip",offset:{v:1}},popupAnimation:void 0,onItemRendered:null,menuWidget:q2,popupMaxHeight:void 0,closeOnClick:!0,useInkRipple:!1,container:void 0,popupAutoResizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{usePopover:!0}},{device:{platform:"generic"},options:{popupPosition:{offset:{v:4}}}},{device:function(){return"desktop"===ci.real().deviceType&&!ci.isSimulator()},options:{focusStateEnabled:!0}},{device:{platform:"android"},options:{popupPosition:{my:"top "+(this.option("rtlEnabled")?"left":"right"),at:"top "+(this.option("rtlEnabled")?"left":"right"),collision:"flipfit"},popupAnimation:{show:{type:"pop",duration:200,from:{scale:0},to:{scale:1}},hide:{type:"pop",duration:200,from:{scale:1},to:{scale:0}}}}},{device:function(){return ts()},options:{useInkRipple:!0}}])},_initOptions:function(e){"android"===ci.current().platform&&(e.popupPosition||(e.popupPosition={at:(e.usePopover?"bottom ":"top ")+(e.rtlEnabled?"left":"right")})),this.callBase(e)},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this.callBase(),this.$element().addClass("dx-dropdownmenu"),this._initDataSource(),this._initItemClickAction(),this._initButtonClickAction()},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initButtonClickAction:function(){this._buttonClickAction=this._createActionByOption("onButtonClick")},_initTemplates:function(){this._templateManager.addDefaultTemplates({content:new p1("content")}),this.callBase()},_initMarkup:function(){this._renderButton(),this.callBase()},_render:function(){this.callBase(),this.setAria({role:"menubar",haspopup:!0,expanded:this.option("opened")})},_renderContentImpl:function(){this.option("opened")&&this._renderPopup()},_clean:function(){this._cleanFocusState(),this._popup&&(this._popup.$element().remove(),delete this._$popup)},_renderButton:function(){var e=this.$element().addClass("dx-dropdownmenu-button"),n=this._buttonOptions();this._button=this._createComponent(e,bs,n)},_toggleActiveState:function(e,n,t){this._button._toggleActiveState(e,n,t)},_buttonOptions:function(){return{text:this.option("buttonText"),icon:this.option("buttonIcon"),width:this.option("buttonWidth"),height:this.option("buttonHeight"),useInkRipple:this.option("useInkRipple"),template:this.option("buttonTemplate"),hoverStateEnabled:!1,focusStateEnabled:!1,onClick:function(e){this.option("opened",!this.option("opened")),this._buttonClickAction(e)}.bind(this)}},_toggleMenuVisibility:function(e){var n=void 0===e?!this._popup.option("visible"):e;e&&this._renderPopup(),this._popup.toggle(n),this.setAria("expanded",n)},_renderPopup:function(){if(!this._$popup){var e=this._$popup=K("
    ").appendTo(this.$element()),n=this._popupOptions();this._popup=this._createComponent(e,Dy,n)}},_popupOptions:function(){var e=!this.option("usePopover");return{onInitialized:function(n){n.component.$wrapper().addClass("dx-dropdownmenu-popup-wrapper").toggleClass("dx-dropdownmenu-popup",e)},deferRendering:!1,contentTemplate:function(n){this._renderList(n)}.bind(this),position:this.option("popupPosition"),animation:this.option("popupAnimation"),onOptionChanged:function(n){"visible"===n.name&&this.option("opened",n.value)}.bind(this),target:this.$element(),height:this.option("popupHeight"),width:this.option("popupWidth"),maxHeight:this.option("popupMaxHeight"),container:this.option("container"),autoResizeEnabled:this.option("popupAutoResizeEnabled")}},_renderList:function(e){var n=K(e),t=this._listOptions();n.addClass("dx-dropdownmenu-list"),this._list=this._createComponent(n,this.option("menuWidget"),t),this._list._getAriaTarget=function(){return this.$element()}.bind(this),this._setListDataSource();var o=.5*Ti(ect);Ti(n)>o&&Ia(n,o)},_itemOptionChanged:function(e,n,t){var o;null===(o=this._list)||void 0===o||o._itemOptionChanged(e,n,t),vB(this._list,e)},_listOptions:function(){return{pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",selectionMode:this.option("selectionMode"),selectedItemKeys:this.option("selectedItemKeys"),itemTemplate:this.option("itemTemplate"),onItemClick:function(e){this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(e)}.bind(this),tabIndex:-1,focusStateEnabled:this.option("focusStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),onItemRendered:this.option("onItemRendered"),_itemAttributes:{role:"menuitem"}}},_setListDataSource:function(){this._list&&this._list.option("dataSource",this._dataSource||this.option("items")),delete this._deferRendering},_getKeyboardListeners(){return this.callBase().concat([this._list])},_toggleVisibility:function(e){this.callBase(e),this._button.option("visible",e)},_optionChanged:function(e){var n=e.name,t=e.value;switch(n){case"items":case"dataSource":this.option("deferRendering")&&!this.option("opened")?this._deferRendering=!0:(this._refreshDataSource(),this._setListDataSource());break;case"itemTemplate":this._list&&this._list.option(n,this._getTemplate(t));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"buttonIcon":case"buttonText":case"buttonWidth":case"buttonHeight":case"buttonTemplate":this._button.option(sct[n],t),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":case"popupAutoResizeEnabled":this._popup.option(act[n],t);break;case"usePopover":case"menuWidget":case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"activeStateEnabled":this._list&&this._list.option(n,t),this.callBase(e);break;case"selectionMode":case"selectedItemKeys":case"onItemRendered":this._list&&this._list.option(n,t);break;case"opened":this._deferRendering&&(this._refreshDataSource(),this._setListDataSource()),this._toggleMenuVisibility(t),this._updateFocusableItemsTabIndex();break;case"deferRendering":case"popupPosition":case"closeOnClick":break;case"container":this._popup&&this._popup.option(e.name,e.value);break;case"disabled":this._list&&this._updateFocusableItemsTabIndex();break;default:this.callBase(e)}},_updateFocusableItemsTabIndex(){this.option("items").forEach(e=>vB(this._list,e))},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)}}).include(f0);xi("dxDropDownMenu",cfe);const lct=cfe;var CB="dx-toolbar-item-auto-hide",kZ="dx-toolbar-item-invisible",dfe=olt.inherit({_getDefaultOptions:function(){return ye(this.callBase(),{menuItemTemplate:"menuItem",menuContainer:void 0,overflowMenuVisible:!1})},updateDimensions:function(){this._dimensionChanged()},_dimensionChanged:function(e){"height"!==e&&(this.callBase(),this._menu.renderMenuItems())},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({actionSheetItem:new p1("item")})},_initMarkup:function(){this.callBase(),this._updateFocusableItemsTabIndex(),this._renderMenu()},_postProcessRenderItems:function(){this._hideOverflowItems(),this._menu._updateMenuVisibility(),this.callBase(),zs(()=>{this._menu.renderMenuItems()})},_renderItem:function(e,n,t,o){var r=this.callBase(e,n,t,o);return"auto"===n.locateInMenu&&r.addClass(CB),"dxButton"===n.widget&&"inMenu"===n.showText&&r.toggleClass("dx-toolbar-text-auto-hide"),r},_getItemsWidth:function(){return this._getSummaryItemsWidth([this._$beforeSection,this._$centerSection,this._$afterSection])},_hideOverflowItems:function(e){var n=this.$element().find("."+CB);if(n.length){e=e||vi(this.$element()),K(n).removeClass(kZ);for(var t=this._getItemsWidth();n.length&&e{var a=e._getItemData(r),l=K(r),c=l.children();return ye({menuItemTemplate:function(){return e._restoreItems.push({container:l,item:c}),K("
    ").addClass(CB).append(c)}},a)});return ff(o,n)},_getToolbarItems:function(){var e=this;return Bd(this.option("items")||[],function(n){return!e._isMenuItem(n)})},_renderMenu:function(){this._renderMenuStrategy(),zs(()=>{this._menu.render()})},_renderMenuStrategy:function(){this._menu||(this._menu=new class pct{constructor(n){this._toolbar=n}render(){if(this._hasVisibleMenuItems()){this._renderMenuButtonContainer();var n=K("
    ").appendTo(this._dropDownMenuContainer());this._dropDownMenu=this._toolbar._createComponent(n,lct,this._dropDownMenuOptions()),this.renderMenuItems()}}renderMenuItems(){this._dropDownMenu||this.render(),this._dropDownMenu&&this._dropDownMenu.option("items",this._getMenuItems()),this._dropDownMenu&&!this._dropDownMenu.option("items").length&&this._dropDownMenu.close()}_renderMenuButtonContainer(){var n=this._toolbar._$afterSection;this._$menuButtonContainer=K("
    ").appendTo(n).addClass(this._toolbar._buttonClass()).addClass("dx-toolbar-menu-container")}_getMenuItemTemplate(){return this._toolbar._getTemplateByOption("menuItemTemplate")}_dropDownMenuOptions(){var n=this._toolbar._createActionByOption("onItemClick");return{disabled:this._toolbar.option("disabled"),itemTemplate:this._getMenuItemTemplate.bind(this),onItemClick:function(o){n(o)}.bind(this),deferRendering:!0,container:this._toolbar.option("menuContainer"),popupMaxHeight:"android"===ci.current().platform?gn.getDocumentElement().clientHeight-20:void 0,menuWidget:Kst,onOptionChanged:o=>{var{name:r,value:a}=o;"opened"===r&&this._toolbar.option("overflowMenuVisible",a),"items"===r&&this._updateMenuVisibility(a)},popupPosition:{at:"bottom right",my:"top right"}}}_updateMenuVisibility(n){var t=n||this._getMenuItems(),o=t.length&&this._hasVisibleMenuItems(t);this._toggleMenuVisibility(o)}_getMenuItems(){return this._toolbar._getMenuItems()}_hasVisibleMenuItems(n){var t=n||this._toolbar.option("items"),o=!1,r=Wo("visible"),a=Wo("locateInMenu");return je(t,function(l,c){var p=r(c,{functionsAsIs:!0}),b=a(c,{functionsAsIs:!0});(!1!==p&&("auto"===b||"always"===b)||"menu"===c.location)&&(o=!0)}),o}_toggleMenuVisibility(n){!this._dropDownMenuContainer()||this._dropDownMenuContainer().toggleClass("dx-state-invisible",!n)}_dropDownMenuContainer(){return this._$menuButtonContainer}widgetOption(n,t){this._dropDownMenu&&this._dropDownMenu.option(n,t)}itemOption(n,t,o){var r;"disabled"===t||"options.disabled"===t?null===(r=this._dropDownMenu)||void 0===r||r._itemOptionChanged(n,t,o):this.renderMenuItems()}}(this))},_arrangeItems:function(){if(!this.$element().is(":hidden")){this._$centerSection.css({margin:"0 auto",float:"none"}),je(this._restoreItems||[],function(n,t){K(t.container).append(t.item)}),this._restoreItems=[];var e=vi(this.$element());this._hideOverflowItems(e),this.callBase(e)}},_itemOptionChanged:function(e,n,t){this._isMenuItem(e)?this._menu.itemOption(e,n,t):this._isToolbarItem(e)?this.callBase(e,n,t):(this.callBase(e,n,t),this._menu.renderMenuItems()),("disabled"===n||"options.disabled"===n)&&vB(this,e),"location"===n&&this.repaint()},_updateFocusableItemsTabIndex(){this._getToolbarItems().forEach(e=>vB(this,e))},_isMenuItem:function(e){return"menu"===e.location||"always"===e.locateInMenu},_isToolbarItem:function(e){return void 0===e.location||"never"===e.locateInMenu},_optionChanged:function(e){var{name:n,value:t}=e;switch(n){case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(t));break;case"onItemClick":this._changeMenuOption(n,t),this.callBase.apply(this,arguments);break;case"menuContainer":this._changeMenuOption("container",t);break;case"overflowMenuVisible":this._changeMenuOption("opened",t);break;case"disabled":this._changeMenuOption("disabled",t),this.callBase.apply(this,arguments),this._updateFocusableItemsTabIndex();break;default:this.callBase.apply(this,arguments)}},_changeMenuOption:function(e,n){this._menu.widgetOption(e,n)}});xi("dxToolbar",dfe);const Ey=dfe;var ufe="toolbar-button",pfe=["addRowButton","applyFilterButton","columnChooserButton","exportButton","groupPanel","revertButton","saveButton","searchPanel"],_ct=qP.inherit({_getToolbarItems:function(){return[]},_getButtonContainer:function(){return K("
    ").addClass(this.addWidgetPrefix(ufe))},_getToolbarButtonClass:function(e){var n=e?" "+e:"";return this.addWidgetPrefix(ufe)+n},_getToolbarOptions:function(){var e=this.option("toolbar"),n={toolbarOptions:{items:this._getToolbarItems(),visible:null==e?void 0:e.visible,disabled:null==e?void 0:e.disabled,onItemRendered:function(r){var a=r.itemData.onItemRendered;a&&a(r)}}};if(n.toolbarOptions.items=this._normalizeToolbarItems(n.toolbarOptions.items,null==e?void 0:e.items),this.executeAction("onToolbarPreparing",n),n.toolbarOptions&&!ce(n.toolbarOptions.visible)){var o=n.toolbarOptions.items;n.toolbarOptions.visible=!(null==o||!o.length)}return n.toolbarOptions},_normalizeToolbarItems(e,n){e.forEach(l=>{if(!pfe.includes(l.name))throw new Error("Default toolbar item '".concat(l.name,"' is not added to DEFAULT_TOOLBAR_ITEM_NAMES"))});var t={location:"after"},o=Array.isArray(n);if(!ce(n))return e;o||(n=[n]);var r={};e.forEach(l=>{r[l.name]=l});var a=n.map(l=>(Wi(l)&&(l={name:l}),ce(l.name)&&(ce(r[l.name])?l=ye(!0,{},r[l.name],l):pfe.includes(l.name)&&(l=Xt({},l,{visible:!1}))),ye(!0,{},t,l)));return o?a:a[0]},_renderCore:function(){if(this._toolbar)this._toolbar.option(this._toolbarOptions);else{var e=this.element();e.addClass(this.addWidgetPrefix("header-panel"));var n=ze.format(this.component.NAME+"-ariaToolbar"),t=K("
    ").attr("aria-label",n).appendTo(e);this._toolbar=this._createComponent(t,Ey,this._toolbarOptions)}},_columnOptionChanged:gt,_handleDataChanged:function(){this._requireReady&&this.render()},init:function(){this.callBase(),this.createAction("onToolbarPreparing",{excludeValidators:["disabled","readOnly"]})},render:function(){this._toolbarOptions=this._getToolbarOptions(),this.callBase.apply(this,arguments)},setToolbarItemDisabled:function(e,n){var t=this._toolbar;if(t){var o=t.option("items")||[],r=o.indexOf(o.filter(function(l){return l.name===e})[0]);if(r>=0){var a="items["+r+"]";t.option(a+".options")?t.option(a+".options.disabled",n):t.option(a+".disabled",n)}}},updateToolbarDimensions:function(){var e;null===(e=this._toolbar)||void 0===e||e.updateDimensions()},getHeaderPanel:function(){return this.element()},getHeight:function(){return this.getElementHeight()},optionChanged:function(e){if("onToolbarPreparing"===e.name&&(this._invalidate(),e.handled=!0),"toolbar"===e.name&&(e.handled=!0,this._toolbar)){var n=mf(e.fullName),t=e.fullName.replace(/^toolbar\./,"");if(1===n.length){var o=this._getToolbarOptions();this._toolbar.option(o)}else if("items"===n[1])if(2===n.length){var r=this._getToolbarOptions();this._toolbar.option("items",r.items)}else if(3===n.length){var a=this._normalizeToolbarItems(this._getToolbarItems(),e.value);this._toolbar.option(t,a)}else n.length>=4&&this._toolbar.option(t,e.value);else this._toolbar.option(t,e.value)}this.callBase(e)},isVisible:function(){return this._toolbarOptions&&this._toolbarOptions.visible},allowDragging:gt}),AZ={defaultOptions:function(){return{}},views:{headerPanel:_ct},extenders:{controllers:{resizing:{_updateDimensionsCore:function(){this.callBase.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}};mo.registerModule("headerPanel",AZ),mo.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","grouping","editing","editingRowBased","editingFormBased","editingCellBased","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var LZ=br.inherit({_activeStateUnit:".dx-row",_getDefaultOptions:function(){var e=this.callBase();return je(mo.modules,function(){qn(this.defaultOptions)&&ye(!0,e,this.defaultOptions())}),e},_setDeprecatedOptions:function(){this.callBase(),ye(this._deprecatedOptions,{useKeyboard:{since:"19.2",alias:"keyboardNavigation.enabled"},rowTemplate:{since:"21.2",message:'Use the "dataRowTemplate" option instead'}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{showRowLines:!0}},{device:function(){return ts()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0},selection:{showCheckBoxesMode:"always"}}},{device:function(){return Ha.webkit},options:{loadingTimeout:30,loadPanel:{animation:{show:{easing:"cubic-bezier(1, 0, 1, 0)",duration:500,from:{opacity:0},to:{opacity:1}}}}}},{device:function(e){return"desktop"!==e.deviceType},options:{grouping:{expandMode:"rowClick"}}}])},_init:function(){this.callBase(),mo.processModules(this,mo),mo.callModuleItemsMethod(this,"init")},_clean:gt,_optionChanged:function(e){mo.callModuleItemsMethod(this,"optionChanged",[e]),e.handled||this.callBase(e)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(e){e&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var e=this;zs(function(){e._renderContentImpl()})},_getTemplate:function(e){var n=e;return Wi(n)&&"#"===n[0]&&(n=K(e),u2.warn("Specifying grid templates with the jQuery selector name is now deprecated. Use the DOM Node or the jQuery object that references this selector instead.")),this.callBase(n)},_dispose:function(){this.callBase(),mo.callModuleItemsMethod(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),mo.callModuleItemsMethod(this,"beginUpdate")},endUpdate:function(){mo.callModuleItemsMethod(this,"endUpdate"),this.callBase()},getController:function(e){return this._controllers[e]},getView:function(e){return this._views[e]},focus:function(e){this.getController("keyboardNavigation").focus(e)}});LZ.registerModule=mo.registerModule.bind(mo),xi("dxDataGrid",LZ);const yct=LZ;var bct=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,xct=function e(n){!n||je(n,function(t,o){if(jo(o)||Array.isArray(o))e(o);else if("string"==typeof o){var r=bct.exec(o);r&&(n[t]=new Date(Date.UTC(+r[1],+r[2]-1,+r[3],+r[4],+r[5],+r[6])))}})},hfe=Us.ViewController.inherit(function(){var e=function(t){var o="sessionStorage"===t.type?e9():Mi().localStorage;if(!o)throw new Error("E1007");return o},n=function(t){return ce(t.storageKey)?t.storageKey:"storage"};return{_loadState:function(){var t=this.option("stateStoring");if("custom"===t.type)return t.customLoad&&t.customLoad();try{return JSON.parse(e(t).getItem(n(t)))}catch(o){Ho.log(o.message)}},_saveState:function(t){var o=this.option("stateStoring");if("custom"!==o.type)try{e(o).setItem(n(o),JSON.stringify(t))}catch(r){Ho.log(r.message)}else o.customSave&&o.customSave(t)},publicMethods:function(){return["state"]},isEnabled:function(){return this.option("stateStoring.enabled")},init:function(){var t=this;return t._state={},t._isLoaded=!1,t._isLoading=!1,t._windowUnloadHandler=function(){void 0!==t._savingTimeoutID&&t._saveState(t.state())},We.on(Mi(),"unload",t._windowUnloadHandler),t},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._isLoading},load:function(){this._isLoading=!0;var t=$s(this._loadState());return t.always(()=>{this._isLoaded=!0,this._isLoading=!1}).done(o=>{null!==o&&!Xa(o)&&this.state(o)}),t},state:function(t){var o=this;if(!arguments.length)return ye(!0,{},o._state);o._state=ye({},t),xct(o._state)},save:function(){var t=this;clearTimeout(t._savingTimeoutID),t._savingTimeoutID=setTimeout(function(){t._saveState(t.state()),t._savingTimeoutID=void 0},t.option("stateStoring.savingTimeout"))},optionChanged:function(t){"stateStoring"===t.name?(this.isEnabled()&&!this.isLoading()&&this.load(),t.handled=!0):this.callBase(t)},dispose:function(){clearTimeout(this._savingTimeoutID),We.off(Mi(),"unload",this._windowUnloadHandler)}}}()),Mct=e=>{var n=e.getController("columns"),t=e.getController("selection"),o=e.getController("export"),r=e.getController("data");n&&n.columnsChanged.add(function(){e.updateState({columns:n.getUserState()})}),t&&t.selectionChanged.add(function(a){e.updateState({selectedRowKeys:a.selectedRowKeys,selectionFilter:a.selectionFilter})}),r&&(e._initialPageSize=e.option("paging.pageSize"),e._initialFilterValue=e.option("filterValue"),r.changed.add(function(){var a=(e=>{var n=e.getView("pagerView"),t=e.getController("data"),o={allowedPageSizes:n?n.getPageSizes():void 0,filterPanel:{filterEnabled:e.option("filterPanel.filterEnabled")},filterValue:e.option("filterValue"),focusedRowKey:e.option("focusedRowEnabled")?e.option("focusedRowKey"):void 0};return ye(o,t.getUserState())})(e);e.updateState(a)})),o&&o.selectionOnlyChanged.add(function(){e.updateState({exportSelectionOnly:o.selectionOnly()})})},RZ={defaultOptions:function(){return{stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}},controllers:{stateStoring:hfe},extenders:{views:{rowsView:{init:function(){var e=this,n=e.getController("data");e.callBase(),n.stateLoaded.add(function(){if(n.isLoaded()&&!n.getDataSource()){e.setLoading(!1),e.renderNoDataText();var t=e.component.getView("columnHeadersView");t&&t.render(),e.component._fireContentReadyAction()}})}}},controllers:{stateStoring:{init:function(){this.callBase.apply(this,arguments),Mct(this)},isLoading:function(){return this.callBase()||this.getController("data").isStateLoading()},state:function(e){var n=this.callBase.apply(this,arguments);return void 0!==e&&this.applyState(ye(!0,{},e)),n},updateState:function(e){if(this.isEnabled()){var n=this.state(),t=ye({},n,e),o=ug(n),r=ug(t);fa(o,r)||(e=ye(!0,{},e),ye(this._state,e),this.save())}else ye(this._state,e)},applyState:function(e){var n=e.allowedPageSizes,t=e.searchText,o=e.selectedRowKeys,r=e.selectionFilter,a=this.getController("export"),l=this.getController("columns"),c=this.getController("data"),p=this.option("scrolling.mode"),b="virtual"===p||"infinite"===p,T=!0===this.option("pager.visible")&&this.option("pager.showPageSizeSelector");this.component.beginUpdate(),l&&l.setUserState(e.columns),a&&a.selectionOnly(e.exportSelectionOnly),this.option("selection.deferred")||this.option("selectedRowKeys",o||[]),this.option("selectionFilter",r),n&&"auto"===this.option("pager.allowedPageSizes")&&(this.option("pager").allowedPageSizes=n),this.option("focusedRowEnabled")&&(this.option("focusedRowIndex",-1),this.option("focusedRowKey",e.focusedRowKey||null)),this.component.endUpdate(),this.option("searchPanel.text",t||""),this.option("filterValue",((e,n)=>{var t=e.getController("filterSync"),o=e.getController("columns");return t?n.columns||void 0!==n.filterValue?n.filterValue||t.getFilterValueFromColumns(n.columns):e._initialFilterValue||t.getFilterValueFromColumns(o.getColumns()):null})(this,e)),this.option("filterPanel.filterEnabled",!e.filterPanel||e.filterPanel.filterEnabled),this.option("paging.pageIndex",e.pageIndex||0),this.option("paging.pageSize",b&&!T||!ce(e.pageSize)?this._initialPageSize:e.pageSize),c&&c.reset()}},columns:{_shouldReturnVisibleColumns:function(){var e=this.callBase.apply(this,arguments),n=this.getController("stateStoring");return e&&(!n.isEnabled()||n.isLoaded())}},data:{callbackNames:function(){return this.callBase().concat(["stateLoaded"])},_refreshDataSource:function(){var e=this.callBase,n=this.getController("stateStoring");if(n.isEnabled()&&!n.isLoaded()){clearTimeout(this._restoreStateTimeoutID);var t=new Rt;return this._restoreStateTimeoutID=setTimeout(()=>{n.load().always(()=>{this._restoreStateTimeoutID=null}).done(()=>{e.call(this),this.stateLoaded.fire(),t.resolve()}).fail(o=>{this.stateLoaded.fire(),this._handleLoadError(o||"Unknown error"),t.reject()})}),t.promise()}this.isStateLoading()||e.call(this)},isLoading:function(){var e=this.getController("stateStoring");return this.callBase()||e.isLoading()},isStateLoading:function(){return ce(this._restoreStateTimeoutID)},isLoaded:function(){return this.callBase()&&!this.isStateLoading()},dispose:function(){clearTimeout(this._restoreStateTimeoutID),this.callBase()}},selection:{_fireSelectionChanged:function(e){var n=this.getController("stateStoring"),t=this.option("selection.deferred");n.isLoading()&&t||this.callBase.apply(this,arguments)}}}}};mo.registerModule("stateStoring",RZ);var gfe="dx-editor-cell",ffe="dx-selection",ky="dx-select-checkbox",mfe="dx-command-select",_fe="dx-data-row",Vf="selection.showCheckBoxesMode",kS="selection.mode",vfe=function(e,n){var t=e.getController("selection"),o=e.getView("rowsView"),r=K(n.target).closest("."+_fe),a=o.getRowIndex(r);a<0||("onLongTap"===e.option(Vf)?t.isSelectionWithCheckboxes()?t.stopSelectionWithCheckboxes():t.startSelectionWithCheckboxes():("onClick"===e.option(Vf)&&t.startSelectionWithCheckboxes(),"always"!==e.option(Vf)&&t.changeItemSelection(a,{control:!0})))},Ict=mo.Controller.inherit(function(){var e=(t,o)=>{var r=o.component,a=r.getView("rowsView");r.option("renderAsync")&&!r.option("selection.deferred")&&(o.value=r.isRowSelected(o.row.key)),a.renderSelectCheckBoxContainer(K(t),o)},n=(t,o)=>{var r=o.column,a=K(t),l=o.component.getView("columnHeadersView");a.addClass(gfe),l._renderSelectAllCheckBox(a,r),l._attachSelectAllCheckBoxClickEvent(a)};return{init:function(){var{deferred:t,selectAllMode:o,mode:r}=this.option("selection")||{};"infinite"===this.option("scrolling.mode")&&!t&&"multiple"===r&&"allPages"===o&&Ho.log("W1018"),this._dataController=this.getController("data"),this._selectionMode=r,this._isSelectionWithCheckboxes=!1,this._selection=this._createSelection(),this._updateSelectColumn(),this.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]}),this._dataController&&this._dataController.pushed.add(this._handleDataPushed.bind(this))},_handleDataPushed:function(t){var o=t.filter(r=>"remove"===r.type).map(r=>r.key);o.length&&this.deselectRows(o)},_getSelectionConfig:function(){var t=this._dataController,o=this.getController("columns"),r=this.option("selection")||{},a=r.deferred,l=this.option("scrolling.mode"),c="virtual"===l||"infinite"===l,p=this.option("selection.allowSelectAll"),b=this.option("scrolling.legacyMode");return{selectedKeys:this.option("selectedRowKeys"),mode:this._selectionMode,deferred:a,maxFilterLengthInRequest:r.maxFilterLengthInRequest,selectionFilter:this.option("selectionFilter"),ignoreDisabledItems:!0,allowLoadByRange:function(){var T=o.getGroupColumns().length>0;return c&&!b&&!T&&p&&!a},key:function(){return null==t?void 0:t.key()},keyOf:function(T){return null==t?void 0:t.keyOf(T)},dataFields:function(){var T;return null===(T=t.dataSource())||void 0===T?void 0:T.select()},load:function(T){var L;return(null===(L=t.dataSource())||void 0===L?void 0:L.load(T))||(new Rt).resolve([])},plainItems:function(){return t.items(!0)},isItemSelected:function(T){return T.selected},isSelectableItem:function(T){return"data"===(null==T?void 0:T.rowType)&&!T.isNewRow},getItemData:function(T){return(null==T?void 0:T.oldData)||(null==T?void 0:T.data)||T},filter:function(){return t.getCombinedFilter(a)},totalCount:()=>t.totalCount(),getLoadOptions:function(T,L,N){var G,Y,{sort:ie,filter:ue}=null!==(G=null===(Y=t.dataSource())||void 0===Y?void 0:Y.lastLoadOptions())&&void 0!==G?G:{},xe=Math.min(T,L),Se=Math.max(T,L);return ce(N)&&(xe=Math.min(N,xe),Se=Math.max(N,Se)),{skip:xe,take:Se-xe+1,filter:ue,sort:ie}},onSelectionChanged:this._updateSelectedItems.bind(this)}},_updateSelectColumn:function(){var t=this.getController("columns"),o=this.isSelectColumnVisible();t.addCommandColumn({type:"selection",command:"select",visible:o,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:mfe,width:"auto",cellTemplate:e,headerCellTemplate:n}),t.columnOption("command:select","visible",o)},_createSelection:function(){var t=this._getSelectionConfig();return new uZ(t)},_fireSelectionChanged:function(t){var o=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(o),t&&this.executeAction("onSelectionChanged",t)},_updateCheckboxesState:function(t){var o=t.isDeferredMode,r=t.selectionFilter,a=t.selectedItemKeys,l=t.removedItemKeys;"onClick"===this.option(Vf)&&((o?r&&function(c,p){var b=0,T=c._dataController.store(),L=T&&T.key(),N=Array.isArray(L);if(!p.length)return!1;if(N&&Array.isArray(p[0])&&"and"===p[1]){for(var G=0;G1)?this.startSelectionWithCheckboxes():(o?r&&!r.length:0===a.length&&l.length)&&this.stopSelectionWithCheckboxes())},_updateSelectedItems:function(t){var o,r=this.option("selection.deferred"),a=this._selection.selectionFilter(),l=this._dataController,c=l.items(!0),p=l.items();if(c){var b=this.isSelectionWithCheckboxes(),T=this.getChangedItemIndexes(c),L=this.getChangedItemIndexes(p);this._updateCheckboxesState({selectedItemKeys:t.selectedItemKeys,removedItemKeys:t.removedItemKeys,selectionFilter:a,isDeferredMode:r}),(T.length||b!==this.isSelectionWithCheckboxes())&&l.updateItems({changeType:"updateSelection",itemIndexes:L}),r?(this.option("selectionFilter",a),o={}):(t.addedItemKeys.length||t.removedItemKeys.length)&&(this._selectedItemsInternalChange=!0,this.option("selectedRowKeys",t.selectedItemKeys.slice(0)),this._selectedItemsInternalChange=!1,o={selectedRowsData:t.selectedItems.slice(0),selectedRowKeys:t.selectedItemKeys.slice(0),currentSelectedRowKeys:t.addedItemKeys.slice(0),currentDeselectedRowKeys:t.removedItemKeys.slice(0)}),this._fireSelectionChanged(o)}},getChangedItemIndexes:function(t){for(var o=[],r=this.option("selection.deferred"),a=0,l=t.length;a1&&(a=[a[0]]):"multiple"!==r&&(a=[])),this.selectRows(a).always(()=>{this._fireSelectionChanged()})}this.getController("columns").updateColumns(),t.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(t.value),t.handled=!0;break;case"selectedRowKeys":var l=t.value||[];Array.isArray(l)&&!this._selectedItemsInternalChange&&(this.component.getDataSource()||!l.length)&&this.selectRows(l),t.handled=!0}},publicMethods:function(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]},isRowSelected:function(t){return this._selection.isItemSelected(t)},isSelectColumnVisible:function(){return"multiple"===this.option(kS)&&("always"===this.option(Vf)||"onClick"===this.option(Vf)||this._isSelectionWithCheckboxes)},_isOnePageSelectAll:function(){return"page"===this.option("selection.selectAllMode")},isSelectAll:function(){return this._selection.getSelectAllState(this._isOnePageSelectAll())},selectAll:function(){return"onClick"===this.option(Vf)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())},deselectAll:function(){return this._selection.deselectAll(this._isOnePageSelectAll())},clearSelection:function(){return this.selectedItemKeys([])},refresh:function(){var t=this.option("selectedRowKeys")||[];return!this.option("selection.deferred")&&t.length?this.selectedItemKeys(t):(new Rt).resolve().promise()},selectedItemKeys:function(t,o,r,a){return this._selection.selectedItemKeys(t,o,r,a)},getSelectedRowKeys:function(){return this._selection.getSelectedItemKeys()},selectRows:function(t,o){return this.selectedItemKeys(t,o)},deselectRows:function(t){return this.selectedItemKeys(t,!0,!0)},selectRowsByIndexes:function(t){var o=this._dataController.items(),r=[];return Array.isArray(t)||(t=Array.prototype.slice.call(arguments,0)),je(t,function(){var a=o[this];a&&"data"===a.rowType&&r.push(a.key)}),this.selectRows(r)},getSelectedRowsData:function(){return this._selection.getSelectedItems()},changeItemSelection:function(t,o,r){o=o||{},this.isSelectionWithCheckboxes()&&(o.control=!0);var a=t+this._dataController.getRowIndexOffset()-this._dataController.getRowIndexOffset(!0);return this._selection.changeItemSelection(a,o,r)},focusedItemIndex:function(t){if(!ce(t))return this._selection._focusedItemIndex;this._selection._focusedItemIndex=t},isSelectionWithCheckboxes:function(){return"multiple"===this.option(kS)&&("always"===this.option(Vf)||this._isSelectionWithCheckboxes)},startSelectionWithCheckboxes:function(){return"multiple"===this.option(kS)&&!this.isSelectionWithCheckboxes()&&(this._isSelectionWithCheckboxes=!0,this._updateSelectColumn(),!0)},stopSelectionWithCheckboxes:function(){return!!this._isSelectionWithCheckboxes&&(this._isSelectionWithCheckboxes=!1,this._updateSelectColumn(),!0)}}}()),AS={defaultOptions:function(){return{selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",maxFilterLengthInRequest:1500,deferred:!1},selectionFilter:[],selectedRowKeys:[]}},controllers:{selection:Ict},extenders:{controllers:{data:{init:function(){var e=this.getController("selection"),n=this.option("selection.deferred");this.callBase.apply(this,arguments),n&&e._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})},_loadDataSource:function(){var e=this;return e.callBase().done(function(){e.getController("selection").refresh()})},_processDataItem:function(e,n){var t=this,o=t.getController("selection"),r=o.isSelectColumnVisible(),a=n.isDeferredSelection=void 0===n.isDeferredSelection?this.option("selection.deferred"):n.isDeferredSelection,l=this.callBase.apply(this,arguments);if(l.isSelected=o.isRowSelected(a?l.data:l.key),r&&l.values)for(var c=0;c{var o=this._items[t];o&&(o.isSelected=n.isSelected,o.values=n.values)})},_endUpdateCore:function(){var e=this._changes,n=e.length>1&&e.every(o=>"updateSelection"===o.changeType);if(n){var t=e.map(o=>o.itemIndexes||[]).reduce((o,r)=>o.concat(r));this._changes=[{changeType:"updateSelection",itemIndexes:t}]}this.callBase.apply(this,arguments)}},contextMenu:{_contextMenuPrepared:function(e){var n=e.event;n.originalEvent&&"dxhold"!==n.originalEvent.type||e.items&&e.items.length>0||vfe(this,n)}}},views:{columnHeadersView:{init:function(){this.callBase(),this.getController("selection").selectionChanged.add(this._updateSelectAllValue.bind(this))},_updateSelectAllValue:function(){var e=this.element(),n=e&&e.find("."+ky);if(e&&n.length&&"multiple"===this.option("selection.mode")){var t=this.getController("selection").isSelectAll(),o=!1!==t,r=this.option("selection.allowSelectAll")?!this.getController("data").isEmpty():o;n.dxCheckBox("instance").option({visible:r,value:t})}},_handleDataChanged:function(e){this.callBase(e),(!e||"refresh"===e.changeType||e.repaintChangesOnly&&"update"===e.changeType)&&this._updateSelectAllValue()},_renderSelectAllCheckBox:function(e,n){var t=this,o=t.getController("selection"),r=t.getController("data").isEmpty(),a=K("
    ").appendTo(e).addClass(ky);return t.setAria("label",ze.format("dxDataGrid-ariaSelectAll"),a),t.getController("editorFactory").createEditor(a,ye({},n,{parentType:"headerRow",dataType:"boolean",value:o.isSelectAll(),editorOptions:{visible:!r&&(t.option("selection.allowSelectAll")||!1!==o.isSelectAll())},tabIndex:t.option("useLegacyKeyboardNavigation")?-1:t.option("tabIndex")||0,setValue:function(l,c){var p=t.option("selection.allowSelectAll");c.component.option("visible",p||!1!==c.component.option("value")),c.event&&o.isSelectAll()!==l&&(c.value&&!p?c.component.option("value",!1):c.value?o.selectAll():o.deselectAll(),c.event.preventDefault())}})),a},_attachSelectAllCheckBoxClickEvent:function(e){We.on(e,Go,this.createAction(function(n){var t=n.event;K(t.target).closest("."+ky).length||We.trigger(K(t.currentTarget).children("."+ky),Go),t.preventDefault()}))}},rowsView:{renderSelectCheckBoxContainer:function(e,n){"data"!==n.rowType||n.row.isNewRow?yi.setEmptyText(e):(e.addClass(gfe),this._attachCheckBoxClickEvent(e),this._renderSelectCheckBox(e,n))},_renderSelectCheckBox:function(e,n){var t=K("
    ").addClass(ky).appendTo(e);return this.setAria("label",ze.format("dxDataGrid-ariaSelectRow"),t),this.getController("editorFactory").createEditor(t,ye({},n.column,{parentType:"dataRow",dataType:"boolean",lookup:null,value:n.value,setValue:function(o,r){var a;"keydown"===(null==r||null===(a=r.event)||void 0===a?void 0:a.type)&&We.trigger(r.element,Go,r)},row:n.row})),t},_attachCheckBoxClickEvent:function(e){We.on(e,Go,this.createAction(function(n){var t=this.getController("selection"),o=n.event,r=this.getRowIndex(K(o.currentTarget).closest(".dx-row"));r>=0&&(t.startSelectionWithCheckboxes(),t.changeItemSelection(r,{shift:o.shiftKey}),K(o.target).closest("."+ky).length&&this.getController("data").updateItems({changeType:"updateSelection",itemIndexes:[r]}))}))},_update:function(e){var n=this,t=n.getTableElements();"updateSelection"===e.changeType?t.length>0&&(je(t,function(o,r){je(e.itemIndexes||[],function(a,l){var c;if(e.items[l]&&(c=n._getRowElements(K(r)).eq(l)).length){var p=e.items[l].isSelected;c.toggleClass(ffe,void 0!==p&&p).find("."+ky).dxCheckBox("option","value",p),n.setAria("selected",p,c)}})}),n._updateCheckboxesClass()):n.callBase(e)},_createTable:function(){var e=this,n=e.option("selection.mode"),t=e.callBase.apply(e,arguments);return"none"!==n&&(("onLongTap"===e.option(Vf)||!Df)&&We.on(t,_n("dxhold","dxDataGridRowsView"),"."+_fe,e.createAction(function(o){vfe(e.component,o.event),o.event.stopPropagation()})),We.on(t,"mousedown selectstart",e.createAction(function(o){var r=o.event;r.shiftKey&&r.preventDefault()}))),t},_createRow:function(e){var n=this.callBase.apply(this,arguments);if(e){var t=e.isSelected;t&&n.addClass(ffe);var o=this.option(kS);"none"!==o&&this.setAria("selected",t,n)}return n},_rowClick:function(e){var n=e.event,t=K(n.target).closest(".dx-selection-disabled").length;this.isClickableElement(K(n.target))||(!t&&("multiple"!==this.option(kS)||"always"!==this.option(Vf))&&this.getController("selection").changeItemSelection(e.rowIndex,{control:Fs(n),shift:n.shiftKey})&&(n.preventDefault(),e.handled=!0),this.callBase(e))},isClickableElement:function(e){return!!e.closest("."+mfe).length},_renderCore:function(e){this.callBase(e),this._updateCheckboxesClass()},_updateCheckboxesClass:function(){var e=this.getTableElements(),n=this.getController("selection"),t=n.isSelectColumnVisible()&&!n.isSelectionWithCheckboxes();je(e,function(o,r){K(r).toggleClass("dx-select-checkboxes-hidden",t)})}}}}};mo.registerModule("selection",AS);var Cfe="dx-invalid-message-auto",yfe="dx-validation-target";class BZ extends G2{getProps(){var n=super.getProps();return n.onFocusIn=()=>{if("auto"===this.option("validationMessageMode")){var o=K(".dx-invalid-message.dx-overlay-wrapper");null==o||o.removeClass(Cfe),this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout(()=>{null==o||o.addClass(Cfe)},150)}},n.saveValueChangeEvent=t=>{this._valueChangeEventInstance=t},n}_createElement(n){super._createElement(n),this.showValidationMessageTimeout=void 0,this.validationRequest=_r(),Hs(this.$element()[0],yfe,this)}_render(){var n;null===(n=this.option("_onMarkupRendered"))||void 0===n||n()}_initializeComponent(){super._initializeComponent(),this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})}_initOptions(n){super._initOptions(n),this.option(Js.initValidationOptions(n))}_getDefaultOptions(){return ye(super._getDefaultOptions(),{validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})}_bindInnerWidgetOptions(n,t){var o=ye({},n.option()),r=()=>this._silent(t,o);r(),n.on("optionChanged",r)}_raiseValidation(n,t){var o=!ce(n)&&!ce(t);n!==t&&!o&&this.validationRequest.fire({value:n,editor:this})}_raiseValueChangeAction(n,t){var o;null===(o=this._valueChangeAction)||void 0===o||o.call(this,{element:this.$element(),previousValue:t,value:n,event:this._valueChangeEventInstance}),this._valueChangeEventInstance=void 0}_optionChanged(n){var{name:t,previousValue:o,value:r}=n;switch(t&&void 0!==this._getActionConfigs()[t]&&this._addAction(t),t){case"value":this._raiseValidation(r,o),this._raiseValueChangeAction(r,o);break;case"onValueChanged":this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]});break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(Js.synchronizeValidationOptions(n,this.option()))}super._optionChanged(n)}reset(){var{value:n}=this._getDefaultOptions();this.option({value:n})}_dispose(){super._dispose(),Hs(this.element(),yfe,null),this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout)}}var Ect=hp.isEditor,bfe=e=>Ect(e)||e instanceof BZ;BZ.isEditor=bfe,hp.isEditor=bfe;class kct extends BZ{_useTemplates(){return!1}_isFocused(){return this.$element()[0].classList.contains("dx-state-focused")}getSupportedKeyNames(){return["space"]}getProps(){var n=super.getProps();return null!==n.value&&(n.value=Boolean(n.value)),n}}var Act=["dataSource","selectedRowKeys"],Lct={integrationOptions:!0};function LS(e,n,t){return{path:e,value:n,previousValue:t}}function xfe(e,n,t,o,r,a){if(!Lct[o]){var l=ol(n),c=ol(t);if(n!==t)if(l!==c)e.push(LS(o,t,n));else if("object"===l)if(jo(t)){var p=Mfe(n,t,r,a);e.push(...p.map(L=>Xt({},L,{path:"".concat(o,".").concat(L.path)})))}else e.push(LS(o,t,n));else if("array"===l)if(a.some(L=>r.includes(L))&&n!==t)e.push(LS(o,t,n));else if(n.length!==t.length)e.push(LS(o,t,n));else{var T=Mfe(n,t,r,a);[].push.apply(e,T.map(L=>Xt({},L,{path:"".concat(o).concat(L.path)})))}else e.push(LS(o,t,n))}}var Ofe=e=>(n,t,o,r)=>{var a=[],l=Array.isArray(n)?c=>{xfe(a,n[c],t[c],"[".concat(c,"]"),"".concat(o,".").concat(c),r)}:c=>{xfe(a,n[c],t[c],c,"".concat(o,".").concat(c),r)};return e(n).forEach(l),Object.keys(t).filter(c=>!Object.prototype.hasOwnProperty.call(n,c)&&n[c]!==t[c]).forEach(c=>{a.push({path:c,value:t[c],previousValue:n[c]})}),a},Mfe=Ofe(e=>Object.keys(e)),Rct={key:!0,ref:!0,children:!0,style:!0},Bct=Ofe(e=>Object.keys(e).filter(n=>!Rct[n])),Hct=["valueChange"],Vct=["componentProps","componentType","rootElementRef","templateNames"],Fct={};let zZ=(()=>{class e extends zf{constructor(t){super(t),this.state={},this.widgetRef={current:null},this.getInstance=this.getInstance.bind(this),this.setupWidget=this.setupWidget.bind(this),this.setRootElementRef=this.setRootElementRef.bind(this),this.updateWidget=this.updateWidget.bind(this)}get config(){return"ConfigContext"in this.context?this.context.ConfigContext:YR}createEffects(){return[new rl(this.setupWidget,[]),new rl(this.setRootElementRef,[]),new rl(this.updateWidget,[this.props.componentProps,this.config,this.props.templateNames])]}updateEffects(){var t;null===(t=this._effects[2])||void 0===t||t.update([this.props.componentProps,this.config,this.props.templateNames])}setupWidget(){var t=new this.props.componentType(this.widgetRef.current,this.properties);return this.instance=t,()=>{t.dispose(),this.instance=null}}setRootElementRef(){var{rootElementRef:t}=this.props;t&&(t.current=this.widgetRef.current)}updateWidget(){var t=this.getInstance();if(t){var o=function zct(e,n){return Bct(e,n,"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:Act)}(this.prevProps||{},this.properties);o.length&&(t.beginUpdate(),o.forEach(r=>{var{path:a,value:l}=r;t.option(a,l)}),t.endUpdate()),this.prevProps=this.properties}}get properties(){var t,o=this.props.componentProps,{valueChange:r}=o,a=er(o,Hct),l=Xt({rtlEnabled:!(null===(t=this.config)||void 0===t||!t.rtlEnabled)},a);return r&&(l.onValueChanged=p=>{var{value:b}=p;return r(b)}),this.props.templateNames.forEach(p=>{((e,n,t)=>!!n[e])(p,l)&&(l[p]=(b,T,L)=>{!function qit(e,n,t){setTimeout(()=>{var o;yS(KR(e,n),null===(o=n.container)||void 0===o?void 0:o.get(0))},0)}(this.props.componentProps[p],{item:b,index:T,container:L})})}),l}get restAttributes(){return er(this.props,Vct)}getInstance(){return this.instance}render(){return(e=>{var{props:{componentProps:{className:n}},restAttributes:t,widgetRef:o}=e;return ma(Rr(1,"div",n,null,1,Xt({},t),null,o))})({props:Xt({},this.props),widgetRef:this.widgetRef,config:this.config,properties:this.properties,restAttributes:this.restAttributes})}}return e.defaultProps=Fct,e})();var Uct=["accessKey","activeStateEnabled","boundary","className","container","contentId","disabled","focusStateEnabled","height","hint","hoverStateEnabled","mode","offset","onClick","onKeyDown","positionRequest","rtlEnabled","tabIndex","target","validationErrors","visible","width"],Gct=Object.create(Object.prototype,Xt(Object.getOwnPropertyDescriptors(tx),Object.getOwnPropertyDescriptors({mode:"auto",get offset(){return{h:0,v:0}},isReactComponentWrapper:!0})));let Wct=(()=>{class e extends is{constructor(t){super(t),this.state={}}get restAttributes(){return er(this.props,Uct)}render(){return(e=>{var{props:n,restAttributes:t}=e;return ma(oo(2,zZ,Xt({componentType:Tge,componentProps:n,templateNames:[]},t)))})({props:Xt({},this.props),restAttributes:this.restAttributes})}}return e.defaultProps=Gct,e})();var Kct=["accessKey","activeStateEnabled","aria","children","className","classes","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","isValid","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","tabIndex","validationError","validationErrors","validationMessageMode","validationStatus","value","valueChange","visible","width"],gu=Object.create(Object.prototype,Xt(Object.getOwnPropertyDescriptors(tx),Object.getOwnPropertyDescriptors({readOnly:!1,name:"",validationError:null,validationErrors:null,validationMessageMode:"auto",validationStatus:"valid",isValid:!0,defaultValue:null,valueChange:()=>{}}))),$ct={get readOnly(){return gu.readOnly},get name(){return gu.name},get validationError(){return gu.validationError},get validationErrors(){return gu.validationErrors},get validationMessageMode(){return gu.validationMessageMode},get validationStatus(){return gu.validationStatus},get isValid(){return gu.isValid},get defaultValue(){return gu.defaultValue},get valueChange(){return gu.valueChange},get className(){return gu.className},get activeStateEnabled(){return gu.activeStateEnabled},get disabled(){return gu.disabled},get focusStateEnabled(){return gu.focusStateEnabled},get hoverStateEnabled(){return gu.hoverStateEnabled},get rtlEnabled(){return gu.rtlEnabled},get tabIndex(){return gu.tabIndex},get visible(){return gu.visible},get aria(){return qR.aria},get classes(){return qR.classes}};class yB extends kh{constructor(n){super(n),this.widgetRef={current:null},this.rootElementRef={current:null},this.__getterCache={},this.state={validationMessageGuid:"dx-".concat(new ss),isValidationMessageVisible:!1,value:void 0!==this.props.value?this.props.value:this.props.defaultValue},this.updateValidationMessageVisibility=this.updateValidationMessageVisibility.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.onFocusIn=this.onFocusIn.bind(this)}createEffects(){return[new rl(this.updateValidationMessageVisibility,[this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors]),Ah()]}updateEffects(){var n;null===(n=this._effects[0])||void 0===n||n.update([this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors])}updateValidationMessageVisibility(){this.setState(n=>({isValidationMessageVisible:this.shouldShowValidationMessage}))}onFocusIn(n){var{onFocusIn:t}=this.props;null==t||t(n)}get cssClasses(){return"".concat((e=>{var{classes:n,isValid:t,readOnly:o}=e;return sd({"dx-state-readonly":!!o,"dx-invalid":!t,["".concat(n)]:!!n})})(Xt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})))}get shouldShowValidationMessage(){var n,{isValid:t,validationStatus:o}=this.props,r=null!==(n=this.validationErrors)&&void 0!==n?n:[];return!(t&&"invalid"!==o)&&r.length>0}get aria(){var{isValid:n,readOnly:t}=this.props,o={readonly:t?"true":"false",invalid:n?"false":"true"};return this.shouldShowValidationMessage&&(o.describedBy=this.state.validationMessageGuid),Xt({},o,this.props.aria)}get validationErrors(){return void 0!==this.__getterCache.validationErrors?this.__getterCache.validationErrors:this.__getterCache.validationErrors=(()=>{var{validationError:n,validationErrors:t}=this.props,o=t&&[...t];return!o&&n&&(o=[Xt({},n)]),o})()}get validationMessageTarget(){var n;return null===(n=this.rootElementRef)||void 0===n?void 0:n.current}get restAttributes(){return er(Xt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),Kct)}focus(){this.widgetRef.current.focus()}blur(){this.widgetRef.current.blur()}componentWillUpdate(n,t,o){super.componentWillUpdate(),(this.props.validationError!==n.validationError||this.props.validationErrors!==n.validationErrors)&&(this.__getterCache.validationErrors=void 0)}render(){return(e=>{var{aria:n,cssClasses:t,isValidationMessageVisible:o,onFocusIn:r,props:{accessKey:a,activeStateEnabled:l,children:c,className:p,disabled:b,focusStateEnabled:T,height:L,hint:N,hoverStateEnabled:G,onClick:Y,onKeyDown:ie,rtlEnabled:ue,tabIndex:xe,validationMessageMode:Se,visible:Te,width:Me},restAttributes:Le,rootElementRef:He,validationErrors:nt,validationMessageGuid:ut,validationMessageTarget:wt,widgetRef:Lt}=e;return ma(oo(2,nZ,Xt({rootElementRef:He,aria:n,classes:t,activeStateEnabled:l,focusStateEnabled:T,hoverStateEnabled:G,accessKey:a,className:p,rtlEnabled:ue,hint:N,disabled:b,height:L,width:Me,onFocusIn:r,onClick:Y,onKeyDown:ie,tabIndex:xe,visible:Te},Le,{children:gp([c,o&&oo(2,Wct,{validationErrors:nt,mode:Se,positionRequest:"below",rtlEnabled:ue,target:wt,boundary:wt,container:wt,contentId:ut})],0)}),null,Lt))})({props:Xt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),validationMessageGuid:this.state.validationMessageGuid,isValidationMessageVisible:this.state.isValidationMessageVisible,rootElementRef:this.rootElementRef,widgetRef:this.widgetRef,onFocusIn:this.onFocusIn,cssClasses:this.cssClasses,shouldShowValidationMessage:this.shouldShowValidationMessage,aria:this.aria,validationErrors:this.validationErrors,validationMessageTarget:this.validationMessageTarget,restAttributes:this.restAttributes})}}yB.defaultProps=$ct;var Pfe=Mi();function Sfe(e){var n;return e?null===(n=Pfe.getComputedStyle)||void 0===n?void 0:n.call(Pfe,e):null}var Jct=[[22,16],[18,16]],Qct=[[[12,8],[20,18]],[[16,10],[16,14]]];function Tfe(){var e=Nd();return{isMaterialTheme:ts(e),isCompactTheme:$9(e)}}var ndt=["isChecked","size"],odt={isChecked:!1};let rdt=(()=>{class e extends zf{constructor(t){super(t),this.state={},this.elementRef={current:null},this.__getterCache={},this.updateFontSize=this.updateFontSize.bind(this),this.setIconFontSize=this.setIconFontSize.bind(this),this.getIconSize=this.getIconSize.bind(this),this.getComputedIconSize=this.getComputedIconSize.bind(this)}createEffects(){return[new rl(this.updateFontSize,[this.props.isChecked,this.props.size])]}updateEffects(){var t;null===(t=this._effects[0])||void 0===t||t.update([this.props.isChecked,this.props.size])}updateFontSize(){var{isChecked:t,size:o}=this.props;if(Ii()&&o){var a=function tdt(e,n){var t=function edt(e){var{isCompactTheme:n,isMaterialTheme:t}=Tfe();return Qct[+e][+t][+n]}(n),o=function Xct(){var{isCompactTheme:e,isMaterialTheme:n}=Tfe();return Jct[+n][+e]}();return Math.ceil(t/o*e)}(this.getIconSize(o),t);this.setIconFontSize(a)}}setIconFontSize(t){this.elementRef.current.style.fontSize="".concat(t,"px")}getIconSize(t){return vo(t)?t:t.endsWith("px")?parseInt(t,10):this.getComputedIconSize()}getComputedIconSize(){var o=Sfe(this.elementRef.current);return parseInt(null==o?void 0:o.width,10)}get cssStyles(){return void 0!==this.__getterCache.cssStyles?this.__getterCache.cssStyles:this.__getterCache.cssStyles=(()=>{var{size:t}=this.props,o=Mv("width",t);return{height:Mv("height",t),width:o}})()}get restAttributes(){return er(this.props,ndt)}componentWillUpdate(t,o,r){super.componentWillUpdate(),this.props.size!==t.size&&(this.__getterCache.cssStyles=void 0)}render(){return(e=>{var{cssStyles:n,elementRef:t}=e;return Rr(1,"span","dx-checkbox-icon",null,1,{style:Hf(n)},null,t)})({props:Xt({},this.props),elementRef:this.elementRef,setIconFontSize:this.setIconFontSize,getIconSize:this.getIconSize,getComputedIconSize:this.getComputedIconSize,cssStyles:this.cssStyles,restAttributes:this.restAttributes})}}return e.defaultProps=odt,e})();var adt=["accessKey","activeStateEnabled","aria","className","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","iconSize","isValid","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","saveValueChangeEvent","tabIndex","text","validationError","validationErrors","validationMessageMode","validationStatus","value","valueChange","visible","width"],fu=Object.create(Object.prototype,Xt(Object.getOwnPropertyDescriptors(gu),Object.getOwnPropertyDescriptors({text:"",activeStateEnabled:!0,hoverStateEnabled:!0,defaultValue:!1,valueChange:()=>{}}))),cdt={get text(){return fu.text},get activeStateEnabled(){return fu.activeStateEnabled},get hoverStateEnabled(){return fu.hoverStateEnabled},get defaultValue(){return fu.defaultValue},get valueChange(){return fu.valueChange},get readOnly(){return fu.readOnly},get name(){return fu.name},get validationError(){return fu.validationError},get validationErrors(){return fu.validationErrors},get validationMessageMode(){return fu.validationMessageMode},get validationStatus(){return fu.validationStatus},get isValid(){return fu.isValid},get className(){return fu.className},get disabled(){return fu.disabled},get focusStateEnabled(){return fu.focusStateEnabled},get rtlEnabled(){return fu.rtlEnabled},get tabIndex(){return fu.tabIndex},get visible(){return fu.visible},get aria(){return qR.aria}},Dfe=r9([{device:()=>"desktop"===ci.real().deviceType&&!ci.isSimulator(),options:{focusStateEnabled:!0}}]);class bB extends kh{constructor(n){super(n),this.editorRef={current:null},this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue},this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.onWidgetClick=this.onWidgetClick.bind(this),this.keyDown=this.keyDown.bind(this)}createEffects(){return[Ah()]}onWidgetClick(n){var t,l,{readOnly:o,saveValueChangeEvent:r}=this.props,a=null!==(t=void 0!==this.props.value?this.props.value:this.state.value)&&void 0!==t&&t;o||(null==r||r(n),this.setState(c=>({value:l=!a})),this.props.valueChange(l))}keyDown(n){var{onKeyDown:t}=this.props,{keyName:o,originalEvent:r,which:a}=n,l=null==t?void 0:t(n);if(null!=l&&l.cancel)return l;("space"===o||"space"===a)&&(r.preventDefault(),this.onWidgetClick(r))}get cssClasses(){return(e=>{var{text:n,value:t}=e;return sd({"dx-checkbox":!0,"dx-checkbox-checked":!0===t,"dx-checkbox-has-text":!!n,"dx-checkbox-indeterminate":null===t})})(Xt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}))}get aria(){return Xt({},{role:"checkbox",checked:null===(void 0!==this.props.value?this.props.value:this.state.value)?"mixed":"".concat(!0===(void 0!==this.props.value?this.props.value:this.state.value))},this.props.aria)}get restAttributes(){return er(Xt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),adt)}focus(){this.editorRef.current.focus()}blur(){this.editorRef.current.blur()}render(){return(e=>{var{aria:n,cssClasses:t,editorRef:o,keyDown:r,onWidgetClick:a,props:{accessKey:l,activeStateEnabled:c,className:p,disabled:b,focusStateEnabled:T,height:L,hint:N,hoverStateEnabled:G,iconSize:Y,isValid:ie,name:ue,onFocusIn:xe,readOnly:Se,rtlEnabled:Te,tabIndex:Me,text:Le,validationError:He,validationErrors:nt,validationMessageMode:ut,validationStatus:wt,value:Lt,visible:Kt,width:tn},restAttributes:Pn}=e;return ma(oo(2,yB,Xt({aria:n,classes:t,onClick:a,onKeyDown:r,accessKey:l,activeStateEnabled:c,focusStateEnabled:T,hoverStateEnabled:G,className:p,disabled:b,readOnly:Se,hint:N,height:L,width:tn,rtlEnabled:Te,tabIndex:Me,visible:Kt,validationError:He,validationErrors:nt,validationMessageMode:ut,validationStatus:wt,isValid:ie,onFocusIn:xe},Pn,{children:gp([ma(Rr(64,"input",null,null,1,Xt({type:"hidden",value:"".concat(Lt)},ue&&{name:ue}))),Rr(1,"div","dx-checkbox-container",[oo(2,rdt,{size:Y,isChecked:!0===Lt}),Le&&Rr(1,"span","dx-checkbox-text",Le,0)],0)],4)}),null,o))})({props:Xt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),editorRef:this.editorRef,onWidgetClick:this.onWidgetClick,keyDown:this.keyDown,cssClasses:this.cssClasses,aria:this.aria,restAttributes:this.restAttributes})}}function HZ(e){var n=["value"];return Object.keys(e).reduce((t,o)=>{var r=e[o];return t[n.some(l=>l===o)?"default"+o.charAt(0).toUpperCase()+o.slice(1):o]=r,t},{})}bB.defaultProps=Object.create(Object.prototype,Xt(Object.getOwnPropertyDescriptors(cdt),Object.getOwnPropertyDescriptors(Xt({},HZ(wf(Dfe))))));var Ife=[];class VZ extends kct{getProps(){var n=super.getProps();return n.onKeyDown=this._wrapKeyDownHandler(n.onKeyDown),n}focus(){var n;return null===(n=this.viewRef)||void 0===n?void 0:n.focus(...arguments)}blur(){var n;return null===(n=this.viewRef)||void 0===n?void 0:n.blur(...arguments)}_getActionConfigs(){return{onFocusIn:{},onClick:{}}}get _propsInfo(){return{twoWay:[["value","defaultValue","valueChange"]],allowNull:["defaultValue","validationError","validationErrors","value"],elements:[],templates:[],props:["text","iconSize","activeStateEnabled","hoverStateEnabled","saveValueChangeEvent","defaultValue","valueChange","readOnly","name","validationError","validationErrors","validationMessageMode","validationStatus","isValid","onFocusIn","className","accessKey","disabled","focusStateEnabled","height","hint","onClick","onKeyDown","rtlEnabled","tabIndex","visible","width","aria","value"]}}get _viewComponent(){return bB}}xi("dxCheckBox",VZ),VZ.defaultOptions=function ddt(e){Ife.push(e),bB.defaultProps=Object.create(Object.prototype,Xt(Object.getOwnPropertyDescriptors(bB.defaultProps),Object.getOwnPropertyDescriptors(HZ(wf(Dfe))),Object.getOwnPropertyDescriptors(HZ(wf(Ife)))))};const ax=VZ;var Jv="dx-treeview",Kp="".concat(Jv,"-node"),$2="".concat(Kp,"-container"),NZ="".concat(Kp,"-loadindicator"),Ay="".concat(Kp,"-container-opened"),RS="".concat(Kp,"-is-leaf"),mu="".concat(Jv,"-item"),udt="".concat(mu,"-with-checkbox"),pdt="".concat(mu,"-without-checkbox"),hdt="".concat(mu,"-data"),BS="".concat(Jv,"-toggle-item-visibility"),gdt="".concat(Jv,"-loadindicator"),fdt="".concat(Jv,"-loadindicator-wrapper"),FZ="".concat(Jv,"-toggle-item-visibility-opened"),xB="".concat(Jv,"-select-all-item"),Efe="dx-state-invisible",zS="dx-state-disabled",UZ="dxTreeView_expand",OB="data-item-id",_dt=n1e.inherit({_supportedKeys:function(e){var n=r=>{var a=K(this.option("focusedElement"));a.length&&(r.target=a,r.currentTarget=a,this._itemClickHandler(r,a.children("."+mu)),this._getEventNameByOption(this.option("expandEvent"))===_n(Go,UZ)&&this._expandEventHandler(r))},t=r=>{r.preventDefault();var a=K(this.option("focusedElement")),l=this._getCheckBoxInstance(a);if(!l.option("disabled")){var c=l.option("value");this._updateItemSelection(!c,a.find("."+mu).get(0),!0)}},o=function(r,a){if(this.option("expandAllEnabled")){a.preventDefault();var l=K(this.option("focusedElement"));if(l.length){var c=this._getItemData(l.find(".".concat(mu)));this._toggleExpandedNestedItems([c],r)}}};return ye(this.callBase(),{enter:this._showCheckboxes()?t:n,space:this._showCheckboxes()?t:n,asterisk:o.bind(this,!0),minus:o.bind(this,!1)})},_toggleExpandedNestedItems:function(e,n){if(e)for(var t=0,o=e.length;t").addClass(gdt),this._createComponent(this._treeViewLoadIndicator,uu,{}),this._treeViewLoadIndicator},_dataSourceLoadingChangedHandler:function(e){var n;if(this._isVirtualMode()&&(n=this._combineFilter(),this._dataSource.filter(n)),e&&!this._dataSource.isLoaded()){this.option("items",[]);var t=K("
    ").addClass(fdt);this._createTreeViewLoadIndicator().appendTo(t),this.itemsContainer().append(t),this._isVirtualMode()&&this._dataSource.filter()!==n&&this._dataSource.filter([])}else this._removeTreeViewLoadIndicator()},_initStoreChangeHandlers:function(){"plain"===this.option("dataStructure")&&this._dataSource&&this._dataSource.store().on("inserted",e=>{this.option().items=this.option("items").concat(e),this._dataAdapter.addItem(e),this._dataAdapter.isFiltered(e)&&this._updateLevel(this._parentIdGetter(e))}).on("removed",e=>{var n=this._dataAdapter.getNodeByKey(e);ce(n)&&(this.option("items")[this._dataAdapter.getIndexByKey(n.internalFields.key)]=0,this._markChildrenItemsToRemove(n),this._removeItems(),this._dataAdapter.removeItem(e),this._updateLevel(this._parentIdGetter(n)))})},_markChildrenItemsToRemove:function(e){je(e.internalFields.childrenKeys,(t,o)=>{this.option("items")[this._dataAdapter.getIndexByKey(o)]=0,this._markChildrenItemsToRemove(this._dataAdapter.getNodeByKey(o))})},_removeItems:function(){var e=ye(!0,[],this.option("items")),n=0;je(e,(t,o)=>{o||(this.option("items").splice(t-n,1),n++)})},_updateLevel:function(e){var n=this._getContainerByParentKey(e);this._renderItems(n,this._dataAdapter.getChildrenNodes(e))},_getOldContainer:function(e){if(e.length)return e.children(".".concat($2));var n=this.getScrollable();return n?K(n.content()).children():K()},_getContainerByParentKey:function(e){var n=this._dataAdapter.getNodeByKey(e),t=n?this._getNodeElement(n):[];this._getOldContainer(t).remove();var o=this._renderNodeContainer(t);if(this._isRootLevel(e)){var r=this.getScrollable();r||this._renderScrollableContainer(),K(r.content()).append(o)}return o},_isRootLevel:function(e){return e===this.option("rootValue")},_getAccessors:function(){var e=this.callBase();return e.push("hasItems"),e},_getDataAdapterOptions:function(){return{rootValue:this.option("rootValue"),multipleSelection:!this._isSingleSelection(),recursiveSelection:this._isRecursiveSelection(),recursiveExpansion:this.option("expandNodesRecursive"),selectionRequired:this.option("selectionRequired"),dataType:this.option("dataStructure"),sort:this._dataSource&&this._dataSource.sort()}},_initMarkup:function(){this._renderScrollableContainer(),this._renderEmptyMessage(this._dataAdapter.getRootNodes()),this.callBase(),this.setAria("role","tree")},_renderContentImpl:function(){var e=this._renderNodeContainer();K(this.getScrollable().content()).append(e),this.option("items")&&this.option("items").length&&(this._renderItems(e,this._dataAdapter.getRootNodes()),this._initExpandEvent(),this._selectAllEnabled()&&(this._createSelectAllValueChangedAction(),this._renderSelectAllItem(e)))},_isVirtualMode:function(){return this.option("virtualModeEnabled")&&this._isDataStructurePlain()&&!!this.option("dataSource")},_isDataStructurePlain:function(){return"plain"===this.option("dataStructure")},_fireContentReadyAction:function(){var e=this.getDataSource(),n=e&&!e.isLoaded(),t=this.getScrollable();t&&Ii()&&t.update(),n||this.callBase(),t&&Ii()&&t.update()},_renderScrollableContainer:function(){this._scrollable=this._createComponent(K("
    ").appendTo(this.$element()),Eh,{useNative:this.option("useNativeScrolling"),direction:this.option("scrollDirection"),useKeyboard:!1})},_renderNodeContainer:function(e){var n=K("