diff --git a/static/web/404.html b/static/web/404.html index 1e286d8e5..7d9a1aebf 100644 --- a/static/web/404.html +++ b/static/web/404.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/404/index.html b/static/web/404/index.html index 1e286d8e5..7d9a1aebf 100644 --- a/static/web/404/index.html +++ b/static/web/404/index.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/_next/static/0tuTda2LCSgDvsk0T0Xdg/_buildManifest.js b/static/web/_next/static/0tuTda2LCSgDvsk0T0Xdg/_buildManifest.js new file mode 100644 index 000000000..8e944b4ec --- /dev/null +++ b/static/web/_next/static/0tuTda2LCSgDvsk0T0Xdg/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,a,c,e,i,t,n,d,f,h,o,m,b,u,k,j,g,r,p,l,_,w,v,y,I,B,F,A,D,E){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[c,a,e,n,d,h,u,k,p,"static/chunks/8793-cf9ba75d95be0d68.js",o,"static/css/089ea92974e6f7ca.css","static/chunks/pages/index-15bee184a42aa84f.js"],"/_error":["static/chunks/pages/_error-02cc11fd74b4e5ff.js"],"/admin":[s,c,a,e,i,t,n,d,f,m,k,"static/chunks/8676-c38bd41883242e8e.js","static/chunks/pages/admin-eed3a21bd8288e92.js"],"/admin/access-tokens":[s,c,a,e,i,t,"static/chunks/pages/admin/access-tokens-6b6b4a50f8c89853.js"],"/admin/actions":[j,s,c,a,e,i,l,"static/chunks/pages/admin/actions-d066fe7e1f6e663e.js"],"/admin/chat/emojis":[s,c,a,e,i,b,_,"static/chunks/pages/admin/chat/emojis-816a586418b83710.js"],"/admin/chat/messages":[j,s,c,a,e,i,t,d,w,"static/chunks/pages/admin/chat/messages-fb728b2cb96aa4aa.js"],"/admin/chat/users":[j,s,c,a,e,i,t,n,d,w,"static/chunks/pages/admin/chat/users-cf2126e0c3882d46.js"],"/admin/config/appearance":[v,s,u,y,I,"static/css/6c8941159bdd16f6.css","static/chunks/pages/admin/config/appearance-92cd6763586e8e9f.js"],"/admin/config/streamkeys":[s,c,a,e,i,l,"static/chunks/pages/admin/config/streamkeys-34d61214246fa6ed.js"],"/admin/config-chat":[s,"static/chunks/pages/admin/config-chat-e60e1d4adcc00b0e.js"],"/admin/config-federation":[s,"static/chunks/8995-2163bbfbcf40237a.js","static/chunks/pages/admin/config-federation-56389bcdb6f238ec.js"],"/admin/config-notify":[s,"static/chunks/7187-1eb4e0029ced6d6f.js","static/chunks/pages/admin/config-notify-2ecba72764f48675.js"],"/admin/config-public-details":[v,s,c,a,e,i,b,y,_,"static/chunks/7022-bf9046710d630a95.js","static/chunks/pages/admin/config-public-details-587f39d818e3a378.js"],"/admin/config-server-details":[s,B,"static/chunks/pages/admin/config-server-details-41d0d5f7e9b134a2.js"],"/admin/config-social-items":[s,c,a,e,i,"static/chunks/pages/admin/config-social-items-9d97f89312a7083b.js"],"/admin/config-storage":[s,"static/chunks/pages/admin/config-storage-26088bd4097785d0.js"],"/admin/config-video":[s,c,a,e,i,B,"static/chunks/6962-30cefca99d7f1bf3.js","static/chunks/pages/admin/config-video-3aa3653181170af5.js"],"/admin/federation/actions":[s,c,a,e,i,t,"static/chunks/pages/admin/federation/actions-fc78b0a990de26b8.js"],"/admin/federation/followers":[c,a,e,i,t,n,"static/chunks/pages/admin/federation/followers-066d2786bd0e7028.js"],"/admin/hardware-info":[g,s,t,n,f,b,m,r,"static/chunks/pages/admin/hardware-info-4aa7ed52fcb239f9.js"],"/admin/help":[n,f,u,I,"static/chunks/5682-3ce0b43db5671359.js","static/chunks/pages/admin/help-d51ac5a60cd64502.js"],"/admin/logs":[s,c,a,e,i,t,k,"static/chunks/pages/admin/logs-2076b22d80262802.js"],"/admin/stream-health":[g,s,t,n,f,m,r,"static/chunks/7731-510a1c0a2d78ab06.js","static/chunks/pages/admin/stream-health-1a0b9804bb7e2b81.js"],"/admin/upgrade":[s,c,a,e,i,"static/chunks/2069-adb358898adcf95c.js","static/chunks/pages/admin/upgrade-0ddabcb9157be8ec.js"],"/admin/viewer-info":[g,s,c,a,e,i,t,n,d,f,b,m,r,"static/chunks/pages/admin/viewer-info-ca7e8445e1d0f23e.js"],"/admin/webhooks":[s,c,a,e,i,"static/chunks/pages/admin/webhooks-e8966ce2d3b8efca.js"],"/embed/chat/readonly":[F,A,h,D,o,E,"static/css/e2479775241cd5e1.css","static/chunks/pages/embed/chat/readonly-088cf2c48a02e20a.js"],"/embed/chat/readwrite":[F,A,a,h,D,"static/chunks/4388-802d880fcfce7112.js",o,E,"static/css/d97e63babcccad86.css","static/chunks/pages/embed/chat/readwrite-f6cb9372ecb1b1b2.js"],"/embed/video":["static/chunks/d6e1aeb5-d7082cd8806a5835.js",d,h,"static/css/7c735c05af084bb2.css","static/chunks/7902-522e54232e4e108b.js",p,o,"static/chunks/2239-de44814eef43316f.js","static/css/f065863129f648da.css","static/chunks/pages/embed/video-ff4917f8414b83db.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/emojis","/admin/chat/messages","/admin/chat/users","/admin/config/appearance","/admin/config/streamkeys","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/4485-1a6d1dff2c7e9712.js","static/chunks/3903-40ef42f3e9eb46b5.js","static/chunks/8909-a55c2326f65c0475.js","static/chunks/4267-cfe0f573c442773c.js","static/chunks/2206-af1def5073377327.js","static/chunks/8091-5d2e0cdb05cd1ef7.js","static/chunks/575-77ed8f28a60fd81f.js","static/chunks/5938-b5bac17e4fa31c49.js","static/chunks/5101-e2c6238798b20535.js","static/chunks/6395-abdc25a80c99b923.js","static/chunks/7466-b7072cca05b08a65.js","static/chunks/4763-00b0de2ecc334aed.js","static/chunks/5577-80194f897feb81a1.js","static/chunks/1082-29aebf20809e875c.js","static/chunks/5360-e33fd95511650040.js","static/chunks/29107295-1453a3860b50f70e.js","static/chunks/ee8b1517-52db663269a829c7.js","static/chunks/8245-76489876aab9eb67.js","static/chunks/7066-524305b22bfbc967.js","static/chunks/8119-57984c2c349ea105.js","static/chunks/2938-98037ce4e714d752.js","static/chunks/9550-1a77c14173cd266e.js","static/chunks/4ad82c5e-e8a0b009f1f18bb1.js","static/chunks/1943-7c4b99dc445d2392.js","static/chunks/1938-c04d908728a12ddb.js","static/chunks/3286-e91e1d2c2498ba57.js","static/chunks/d3048c20-5ff314987ce2bf57.js","static/chunks/d2094a0f-95b09167d4c8b805.js","static/chunks/3729-505fb6d311751b3c.js","static/chunks/4977-8b2377306ff6ef8b.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/Op3db-ONA2ZxFV9msL9z7/_ssgManifest.js b/static/web/_next/static/0tuTda2LCSgDvsk0T0Xdg/_ssgManifest.js similarity index 100% rename from static/web/_next/static/Op3db-ONA2ZxFV9msL9z7/_ssgManifest.js rename to static/web/_next/static/0tuTda2LCSgDvsk0T0Xdg/_ssgManifest.js diff --git a/static/web/_next/static/Op3db-ONA2ZxFV9msL9z7/_buildManifest.js b/static/web/_next/static/Op3db-ONA2ZxFV9msL9z7/_buildManifest.js deleted file mode 100644 index fb5dbb040..000000000 --- a/static/web/_next/static/Op3db-ONA2ZxFV9msL9z7/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,a,c,e,i,t,n,d,f,h,o,m,b,u,k,j,g,r,p,l,_,w,v,y,I,B,F,A,D,E){return{__rewrites:{beforeFiles:[],afterFiles:[{source:"/api/:path*"},{source:"/hls/:path*"},{source:"/img/:path*"},{source:"/logo"},{source:"/thumbnail.jpg"}],fallback:[]},"/":[c,a,e,n,d,h,u,k,p,"static/chunks/8793-97f96a16bc8069f8.js",o,"static/css/089ea92974e6f7ca.css","static/chunks/pages/index-4b95694efc1a0478.js"],"/_error":["static/chunks/pages/_error-02cc11fd74b4e5ff.js"],"/admin":[s,c,a,e,i,t,n,d,f,m,k,"static/chunks/8676-c38bd41883242e8e.js","static/chunks/pages/admin-5221044a356250c9.js"],"/admin/access-tokens":[s,c,a,e,i,t,"static/chunks/pages/admin/access-tokens-11d48bfbb9164a75.js"],"/admin/actions":[j,s,c,a,e,i,l,"static/chunks/pages/admin/actions-74918267e1a136d4.js"],"/admin/chat/emojis":[s,c,a,e,i,b,_,"static/chunks/pages/admin/chat/emojis-816a586418b83710.js"],"/admin/chat/messages":[j,s,c,a,e,i,t,d,w,"static/chunks/pages/admin/chat/messages-2228eaaf3b330365.js"],"/admin/chat/users":[j,s,c,a,e,i,t,n,d,w,"static/chunks/pages/admin/chat/users-91c7fbe4fd9c6cbb.js"],"/admin/config/appearance":[v,s,u,y,I,"static/css/6c8941159bdd16f6.css","static/chunks/pages/admin/config/appearance-406c29acdc517f91.js"],"/admin/config/streamkeys":[s,c,a,e,i,l,"static/chunks/pages/admin/config/streamkeys-34d61214246fa6ed.js"],"/admin/config-chat":[s,"static/chunks/pages/admin/config-chat-b4857a4a7fae071a.js"],"/admin/config-federation":[s,"static/chunks/8995-2163bbfbcf40237a.js","static/chunks/pages/admin/config-federation-9ae27c1ba5d89acd.js"],"/admin/config-notify":[s,"static/chunks/7187-1eb4e0029ced6d6f.js","static/chunks/pages/admin/config-notify-85efccec12709d62.js"],"/admin/config-public-details":[v,s,c,a,e,i,b,y,_,"static/chunks/7022-4af2eaa76070d1d8.js","static/chunks/pages/admin/config-public-details-c3a4c0c8f8a33c5e.js"],"/admin/config-server-details":[s,B,"static/chunks/pages/admin/config-server-details-41d0d5f7e9b134a2.js"],"/admin/config-social-items":[s,c,a,e,i,"static/chunks/pages/admin/config-social-items-77a7605b50d74264.js"],"/admin/config-storage":[s,"static/chunks/pages/admin/config-storage-d61b1d9c973a1eda.js"],"/admin/config-video":[s,c,a,e,i,B,"static/chunks/6962-30cefca99d7f1bf3.js","static/chunks/pages/admin/config-video-d7c0df2ad7838b17.js"],"/admin/federation/actions":[s,c,a,e,i,t,"static/chunks/pages/admin/federation/actions-c184bd23e2d9eac5.js"],"/admin/federation/followers":[c,a,e,i,t,n,"static/chunks/pages/admin/federation/followers-75a86a3e75f888a3.js"],"/admin/hardware-info":[g,s,t,n,f,b,m,r,"static/chunks/pages/admin/hardware-info-4aa7ed52fcb239f9.js"],"/admin/help":[n,f,u,I,"static/chunks/5682-3ce0b43db5671359.js","static/chunks/pages/admin/help-d51ac5a60cd64502.js"],"/admin/logs":[s,c,a,e,i,t,k,"static/chunks/pages/admin/logs-1da798696afcbce1.js"],"/admin/stream-health":[g,s,t,n,f,m,r,"static/chunks/7731-510a1c0a2d78ab06.js","static/chunks/pages/admin/stream-health-1a0b9804bb7e2b81.js"],"/admin/upgrade":[s,c,a,e,i,"static/chunks/2069-d9f139bc73aea8db.js","static/chunks/pages/admin/upgrade-0ddabcb9157be8ec.js"],"/admin/viewer-info":[g,s,c,a,e,i,t,n,d,f,b,m,r,"static/chunks/pages/admin/viewer-info-ca7e8445e1d0f23e.js"],"/admin/webhooks":[s,c,a,e,i,"static/chunks/pages/admin/webhooks-e8966ce2d3b8efca.js"],"/embed/chat/readonly":[F,A,h,D,o,E,"static/css/e2479775241cd5e1.css","static/chunks/pages/embed/chat/readonly-d5ddc4feaa5a70b3.js"],"/embed/chat/readwrite":[F,A,a,h,D,"static/chunks/4388-de04225921654db9.js",o,E,"static/css/d97e63babcccad86.css","static/chunks/pages/embed/chat/readwrite-f6cb9372ecb1b1b2.js"],"/embed/video":["static/chunks/d6e1aeb5-0705bf43bcd6af77.js",d,h,"static/css/7c735c05af084bb2.css","static/chunks/7902-139b487986de3737.js",p,o,"static/chunks/2239-de44814eef43316f.js","static/css/f065863129f648da.css","static/chunks/pages/embed/video-ff4917f8414b83db.js"],sortedPages:["/","/_app","/_error","/admin","/admin/access-tokens","/admin/actions","/admin/chat/emojis","/admin/chat/messages","/admin/chat/users","/admin/config/appearance","/admin/config/streamkeys","/admin/config-chat","/admin/config-federation","/admin/config-notify","/admin/config-public-details","/admin/config-server-details","/admin/config-social-items","/admin/config-storage","/admin/config-video","/admin/federation/actions","/admin/federation/followers","/admin/hardware-info","/admin/help","/admin/logs","/admin/stream-health","/admin/upgrade","/admin/viewer-info","/admin/webhooks","/embed/chat/readonly","/embed/chat/readwrite","/embed/video"]}}("static/chunks/4485-1a6d1dff2c7e9712.js","static/chunks/3903-40ef42f3e9eb46b5.js","static/chunks/8909-a55c2326f65c0475.js","static/chunks/4267-cfe0f573c442773c.js","static/chunks/2206-53aea32a26a350a8.js","static/chunks/8091-5d2e0cdb05cd1ef7.js","static/chunks/575-11393a44fd60b818.js","static/chunks/5938-b5bac17e4fa31c49.js","static/chunks/5101-e2c6238798b20535.js","static/chunks/6395-f04016ae318b5e91.js","static/chunks/7466-1e76829814bac0c3.js","static/chunks/4763-00b0de2ecc334aed.js","static/chunks/5577-80194f897feb81a1.js","static/chunks/1082-51b9f63c6446d49d.js","static/chunks/5360-e33fd95511650040.js","static/chunks/29107295-1453a3860b50f70e.js","static/chunks/ee8b1517-c2bace5e006cd9c6.js","static/chunks/8245-e589f4c6673abc2b.js","static/chunks/7066-524305b22bfbc967.js","static/chunks/8119-57984c2c349ea105.js","static/chunks/2938-98037ce4e714d752.js","static/chunks/9550-1a77c14173cd266e.js","static/chunks/4ad82c5e-573627f1f4333b92.js","static/chunks/1943-6d1cab809126a603.js","static/chunks/1938-c04d908728a12ddb.js","static/chunks/3286-e91e1d2c2498ba57.js","static/chunks/d3048c20-93c008b4ff3ddb0e.js","static/chunks/d2094a0f-95b09167d4c8b805.js","static/chunks/3729-e88e6289f5436bb5.js","static/chunks/4977-748e4374e401ea01.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/static/web/_next/static/chunks/1082-51b9f63c6446d49d.js b/static/web/_next/static/chunks/1082-29aebf20809e875c.js similarity index 88% rename from static/web/_next/static/chunks/1082-51b9f63c6446d49d.js rename to static/web/_next/static/chunks/1082-29aebf20809e875c.js index 3d379ed50..3d5075974 100644 --- a/static/web/_next/static/chunks/1082-51b9f63c6446d49d.js +++ b/static/web/_next/static/chunks/1082-29aebf20809e875c.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1082],{85368:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"}},16976:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"}},67303:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"}},77384:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"}},79203:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"}},78515:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"}},34950:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"}},15369:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"}},20702:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"}},25828:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"}},37431:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(95183))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},67996:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(48138))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},42547:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(86266))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},74337:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(92018))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},40753:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(83482))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},42461:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(77998))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},67039:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(3855))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},94354:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(46564))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},93201:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(34106))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},628:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(4851))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},92074:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=n(r(27424)),u=n(r(38416)),l=n(r(70215)),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),f=n(r(94184)),s=n(r(98399)),d=n(r(95160)),p=r(46768),v=r(72479),y=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}(0,p.setTwoToneColor)("#1890ff");var g=c.forwardRef(function(e,t){var r,n=e.className,o=e.icon,p=e.spin,m=e.rotate,g=e.tabIndex,h=e.onClick,b=e.twoToneColor,x=(0,l.default)(e,y),C=c.useContext(s.default),_=C.prefixCls,O=void 0===_?"anticon":_,w=C.rootClassName,P=(0,f.default)(w,O,(r={},(0,u.default)(r,"".concat(O,"-").concat(o.name),!!o.name),(0,u.default)(r,"".concat(O,"-spin"),!!p||"loading"===o.name),r),n),M=g;void 0===M&&h&&(M=-1);var j=(0,v.normalizeTwoToneColors)(b),k=(0,i.default)(j,2),E=k[0],T=k[1];return c.createElement("span",(0,a.default)((0,a.default)({role:"img","aria-label":o.name},x),{},{ref:t,tabIndex:M,onClick:h,className:P}),c.createElement(d.default,{icon:o,primaryColor:E,secondaryColor:T,style:m?{msTransform:"rotate(".concat(m,"deg)"),transform:"rotate(".concat(m,"deg)")}:void 0}))});g.displayName="AntdIcon",g.getTwoToneColor=p.getTwoToneColor,g.setTwoToneColor=p.setTwoToneColor,t.default=g},98399:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(67294).createContext)({});t.default=n},95160:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(70215)),a=n(r(42122)),i=r(72479),u=["icon","className","onClick","style","primaryColor","secondaryColor"],l={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},c=function(e){var t=e.icon,r=e.className,n=e.onClick,c=e.style,f=e.primaryColor,s=e.secondaryColor,d=(0,o.default)(e,u),p=l;if(f&&(p={primaryColor:f,secondaryColor:s||(0,i.getSecondaryColor)(f)}),(0,i.useInsertStyles)(),(0,i.warning)((0,i.isIconDefinition)(t),"icon should be icon definiton, but got ".concat(t)),!(0,i.isIconDefinition)(t))return null;var v=t;return v&&"function"==typeof v.icon&&(v=(0,a.default)((0,a.default)({},v),{},{icon:v.icon(p.primaryColor,p.secondaryColor)})),(0,i.generate)(v.icon,"svg-".concat(v.name),(0,a.default)({className:r,onClick:n,style:c,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d))};c.displayName="IconReact",c.getTwoToneColors=function(){return(0,a.default)({},l)},c.setTwoToneColors=function(e){var t=e.primaryColor,r=e.secondaryColor;l.primaryColor=t,l.secondaryColor=r||(0,i.getSecondaryColor)(t),l.calculated=!!r},t.default=c},46768:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.getTwoToneColor=function(){var e=a.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},t.setTwoToneColor=function(e){var t=(0,i.normalizeTwoToneColors)(e),r=(0,o.default)(t,2),n=r[0],u=r[1];return a.default.setTwoToneColors({primaryColor:n,secondaryColor:u})};var o=n(r(27424)),a=n(r(95160)),i=r(72479)},95183:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(85368)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="CheckCircleFilled";var s=i.forwardRef(f);t.default=s},48138:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(16976)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="CheckCircleOutlined";var s=i.forwardRef(f);t.default=s},86266:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(67303)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="CloseCircleFilled";var s=i.forwardRef(f);t.default=s},92018:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(77384)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="CloseCircleOutlined";var s=i.forwardRef(f);t.default=s},83482:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(79203)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="CloseOutlined";var s=i.forwardRef(f);t.default=s},77998:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(78515)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="ExclamationCircleFilled";var s=i.forwardRef(f);t.default=s},3855:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(34950)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="ExclamationCircleOutlined";var s=i.forwardRef(f);t.default=s},46564:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(15369)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="InfoCircleFilled";var s=i.forwardRef(f);t.default=s},34106:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(20702)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="InfoCircleOutlined";var s=i.forwardRef(f);t.default=s},4851:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(25828)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="LoadingOutlined";var s=i.forwardRef(f);t.default=s},72479:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.generate=function e(t,r,n){return n?l.default.createElement(t.tag,(0,a.default)((0,a.default)({key:r},p(t.attrs)),n),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))})):l.default.createElement(t.tag,(0,a.default)({key:r},p(t.attrs)),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))}))},t.getSecondaryColor=function(e){return(0,u.generate)(e)[0]},t.iconStyles=void 0,t.isIconDefinition=function(e){return"object"===(0,i.default)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,i.default)(e.icon)||"function"==typeof e.icon)},t.normalizeAttrs=p,t.normalizeTwoToneColors=function(e){return e?Array.isArray(e)?e:[e]:[]},t.useInsertStyles=t.svgBaseProps=void 0,t.warning=function(e,t){(0,c.default)(e,"[@ant-design/icons] ".concat(t))};var a=n(r(42122)),i=n(r(18698)),u=r(92138),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),c=n(r(45520)),f=r(93399),s=n(r(98399));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):t[r]=n,t},{})}t.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var v="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";t.iconStyles=v,t.useInsertStyles=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=(0,l.useContext)(s.default).csp;(0,l.useEffect)(function(){(0,f.updateCSS)(e,"@ant-design-icons",{prepend:!0,csp:t})},[])}},131:function(e,t,r){"use strict";r.r(t),r.d(t,{TinyColor:function(){return n.C},bounds:function(){return m},convertDecimalToHex:function(){return u.Wl},convertHexToDecimal:function(){return u.T6},default:function(){return g},fromRatio:function(){return f},hslToRgb:function(){return u.ve},hsvToRgb:function(){return u.WE},inputToRGB:function(){return d.uA},isReadable:function(){return i},isValidCSSUnit:function(){return d.ky},legacyRandom:function(){return s},mostReadable:function(){return function e(t,r,o){void 0===o&&(o={includeFallbackColors:!1,level:"AA",size:"small"});for(var u=null,l=0,c=o.includeFallbackColors,f=o.level,s=o.size,d=0;dl&&(l=v,u=new n.C(p))}return i(t,u,{level:f,size:s})||!c?u:(o.includeFallbackColors=!1,e(t,["#fff","#000"],o))}},names:function(){return o.R},numberInputToObject:function(){return u.Yt},parseIntFromHex:function(){return u.VD},random:function(){return function e(t){if(void 0===t&&(t={}),void 0!==t.count&&null!==t.count){var r,o,a,i=t.count,u=[];for(t.count=void 0;i>u.length;)t.count=null,t.seed&&(t.seed+=1),u.push(e(t));return t.count=i,u}var l=(r=t.hue,o=t.seed,(a=v(function(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if("string"==typeof e){var r=m.find(function(t){return t.name===e});if(r){var o=y(r);if(o.hueRange)return o.hueRange}var a=new n.C(e);if(a.isValid){var i=a.toHsv().h;return[i,i]}}return[0,360]}(r),o))<0&&(a=360+a),a),c=function(e,t){if("monochrome"===t.hue)return 0;if("random"===t.luminosity)return v([0,100],t.seed);var r=p(e).saturationRange,n=r[0],o=r[1];switch(t.luminosity){case"bright":n=55;break;case"dark":n=o-10;break;case"light":o=55}return v([n,o],t.seed)}(l,t),f=function(e,t,r){var n=function(e,t){for(var r=p(e).lowerBounds,n=0;n=o&&t<=i){var l=(u-a)/(i-o),c=a-l*o;return l*t+c}}return 0}(e,t),o=100;switch(r.luminosity){case"dark":o=n+20;break;case"light":n=(o+n)/2;break;case"random":n=0,o=100}return v([n,o],r.seed)}(l,c,t),s={h:l,s:c,v:f};return void 0!==t.alpha&&(s.a=t.alpha),new n.C(s)}},readability:function(){return a},rgbToHex:function(){return u.vq},rgbToHsl:function(){return u.lC},rgbToHsv:function(){return u.py},rgbToRgb:function(){return u.rW},rgbaToArgbHex:function(){return u.GC},rgbaToHex:function(){return u.s},stringInputToObject:function(){return d.uz},tinycolor:function(){return n.H},toMsFilter:function(){return l}});var n=r(10274),o=r(48701);function a(e,t){var r=new n.C(e),o=new n.C(t);return(Math.max(r.getLuminance(),o.getLuminance())+.05)/(Math.min(r.getLuminance(),o.getLuminance())+.05)}function i(e,t,r){void 0===r&&(r={level:"AA",size:"small"});var n,o,i=a(e,t);switch((null!==(n=r.level)&&void 0!==n?n:"AA")+(null!==(o=r.size)&&void 0!==o?o:"small")){case"AAsmall":case"AAAlarge":return i>=4.5;case"AAlarge":return i>=3;case"AAAsmall":return i>=7;default:return!1}}var u=r(86500);function l(e,t){var r=new n.C(e),o="#"+(0,u.GC)(r.r,r.g,r.b,r.a),a=o,i=r.gradientType?"GradientType = 1, ":"";if(t){var l=new n.C(t);a="#"+(0,u.GC)(l.r,l.g,l.b,l.a)}return"progid:DXImageTransform.Microsoft.gradient(".concat(i,"startColorstr=").concat(o,",endColorstr=").concat(a,")")}var c=r(90279);function f(e,t){var r={r:(0,c.JX)(e.r),g:(0,c.JX)(e.g),b:(0,c.JX)(e.b)};return void 0!==e.a&&(r.a=Number(e.a)),new n.C(r,t)}function s(){return new n.C({r:Math.random(),g:Math.random(),b:Math.random()})}var d=r(1350);function p(e){e>=334&&e<=360&&(e-=360);for(var t=0;t=r.hueRange[0]&&e<=r.hueRange[1])return r}throw Error("Color not found")}function v(e,t){if(void 0===t)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var r=e[1]||1,n=e[0]||0;return Math.floor(n+(t=(9301*t+49297)%233280)/233280*(r-n))}function y(e){var t=e.lowerBounds[0][0],r=e.lowerBounds[e.lowerBounds.length-1][0],n=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,r],brightnessRange:[n,o]}}var m=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],g=n.H},13594:function(e,t,r){"use strict";var n=r(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.noop=a,Object.defineProperty(t,"resetWarned",{enumerable:!0,get:function(){return o.resetWarned}});var o=n(r(45520));function a(){}t.default=a},1028:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(25633)).default;t.default=o},93319:function(e,t,r){"use strict";var n=r(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DisabledContextProvider=void 0;var o=n(r(67294)),a=o.createContext(!1);t.DisabledContextProvider=function(e){var t=e.children,r=e.disabled,n=o.useContext(a);return o.createElement(a.Provider,{value:r||n},t)},t.default=a},3236:function(e,t,r){"use strict";var n=r(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SizeContextProvider=void 0;var o=n(r(67294)),a=o.createContext(void 0);t.SizeContextProvider=function(e){var t=e.children,r=e.size;return o.createElement(a.Consumer,null,function(e){return o.createElement(a.Provider,{value:r||e},t)})},t.default=a},7177:function(e,t,r){"use strict";var n=r(75263).default,o=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigContext=t.ConfigConsumer=void 0,t.withConfigConsumer=function(e){return function(t){var r=t.constructor;return r&&r.displayName||t.name,function(r){return i.createElement(l,null,function(n){var o=e.prefixCls,u=(0,n.getPrefixCls)(o,r.prefixCls);return i.createElement(t,(0,a.default)({},n,r,{prefixCls:u}))})}}};var a=o(r(10434)),i=n(r(67294)),u=i.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")}});t.ConfigContext=u;var l=u.Consumer;t.ConfigConsumer=l},56301:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getStyle=c,t.registerTheme=function(e,t){var r=c(e,t);(0,i.default)()&&(0,u.updateCSS)(r,"".concat(l,"-dynamic-theme"))};var o=r(92138),a=r(131),i=n(r(19158)),u=r(93399);n(r(13594));var l="-ant-".concat(Date.now(),"-").concat(Math.random());function c(e,t){var r={},n=function(e,t){var r=e.clone();return(r=(null==t?void 0:t(r))||r).toRgbString()},i=function(e,t){var i=new a.TinyColor(e),u=(0,o.generate)(i.toRgbString());r["".concat(t,"-color")]=n(i),r["".concat(t,"-color-disabled")]=u[1],r["".concat(t,"-color-hover")]=u[4],r["".concat(t,"-color-active")]=u[6],r["".concat(t,"-color-outline")]=i.clone().setAlpha(.2).toRgbString(),r["".concat(t,"-color-deprecated-bg")]=u[0],r["".concat(t,"-color-deprecated-border")]=u[2]};if(t.primaryColor){i(t.primaryColor,"primary");var u=new a.TinyColor(t.primaryColor),l=(0,o.generate)(u.toRgbString());l.forEach(function(e,t){r["primary-".concat(t+1)]=e}),r["primary-color-deprecated-l-35"]=n(u,function(e){return e.lighten(35)}),r["primary-color-deprecated-l-20"]=n(u,function(e){return e.lighten(20)}),r["primary-color-deprecated-t-20"]=n(u,function(e){return e.tint(20)}),r["primary-color-deprecated-t-50"]=n(u,function(e){return e.tint(50)}),r["primary-color-deprecated-f-12"]=n(u,function(e){return e.setAlpha(.12*e.getAlpha())});var c=new a.TinyColor(l[0]);r["primary-color-active-deprecated-f-30"]=n(c,function(e){return e.setAlpha(.3*e.getAlpha())}),r["primary-color-active-deprecated-d-02"]=n(c,function(e){return e.darken(2)})}t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info");var f=Object.keys(r).map(function(t){return"--".concat(e,"-").concat(t,": ").concat(r[t],";")});return"\n :root {\n ".concat(f.join("\n"),"\n }\n ").trim()}},31929:function(e,t,r){"use strict";var n,o,a=r(75263).default,i=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ConfigConsumer",{enumerable:!0,get:function(){return g.ConfigConsumer}}),Object.defineProperty(t,"ConfigContext",{enumerable:!0,get:function(){return g.ConfigContext}}),t.globalConfig=t.defaultPrefixCls=t.defaultIconPrefixCls=t.default=t.configConsumerProps=void 0;var u=i(r(10434)),l=i(r(98399)),c=r(71990),f=i(r(67265)),s=a(r(67294)),d=a(r(53594)),p=i(r(73625)),v=i(r(56350)),y=i(r(11187)),m=i(r(16318)),g=r(7177),h=r(56301),b=r(93319),x=a(r(3236));t.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"];var C=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form"];t.defaultPrefixCls="ant";var _="anticon";function O(){return n||"ant"}function w(){return o||_}t.defaultIconPrefixCls=_,t.globalConfig=function(){return{getPrefixCls:function(e,t){return t||(e?"".concat(O(),"-").concat(e):O())},getIconPrefixCls:w,getRootPrefixCls:function(e,t){return e||n||(t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):O())}}};var P=function(e){var t,r,n=e.children,o=e.csp,a=e.autoInsertSpaceInButton,i=e.form,p=e.locale,y=e.componentSize,m=e.direction,h=e.space,_=e.virtual,O=e.dropdownMatchSelectWidth,w=e.legacyLocale,P=e.parentContext,M=e.iconPrefixCls,j=e.componentDisabled,k=s.useCallback(function(t,r){var n=e.prefixCls;if(r)return r;var o=n||P.getPrefixCls("");return t?"".concat(o,"-").concat(t):o},[P.getPrefixCls,e.prefixCls]),E=(0,u.default)((0,u.default)({},P),{csp:o,autoInsertSpaceInButton:a,locale:p||w,direction:m,space:h,virtual:_,dropdownMatchSelectWidth:O,getPrefixCls:k});C.forEach(function(t){var r=e[t];r&&(E[t]=r)});var T=(0,f.default)(function(){return E},E,function(e,t){var r=Object.keys(e),n=Object.keys(t);return r.length!==n.length||r.some(function(r){return e[r]!==t[r]})}),S=s.useMemo(function(){return{prefixCls:M,csp:o}},[M,o]),N=n,L={};return p&&(L=(null===(t=p.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(r=v.default.Form)||void 0===r?void 0:r.defaultValidateMessages)||{}),i&&i.validateMessages&&(L=(0,u.default)((0,u.default)({},L),i.validateMessages)),Object.keys(L).length>0&&(N=s.createElement(c.FormProvider,{validateMessages:L},n)),p&&(N=s.createElement(d.default,{locale:p,_ANT_MARK__:d.ANT_MARK},N)),(M||o)&&(N=s.createElement(l.default.Provider,{value:S},N)),y&&(N=s.createElement(x.SizeContextProvider,{size:y},N)),void 0!==j&&(N=s.createElement(b.DisabledContextProvider,{disabled:j},N)),s.createElement(g.ConfigContext.Provider,{value:T},N)},M=function(e){return s.useEffect(function(){e.direction&&(y.default.config({rtl:"rtl"===e.direction}),m.default.config({rtl:"rtl"===e.direction}))},[e.direction]),s.createElement(p.default,null,function(t,r,n){return s.createElement(g.ConfigConsumer,null,function(t){return s.createElement(P,(0,u.default)({parentContext:t,legacyLocale:n},e))})})};M.ConfigContext=g.ConfigContext,M.SizeContext=x.default,M.config=function(e){var t=e.prefixCls,r=e.iconPrefixCls,a=e.theme;void 0!==t&&(n=t),void 0!==r&&(o=r),a&&(0,h.registerTheme)(O(),a)},t.default=M},25633:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(10434)),a=n(r(27590)),i=n(r(52040)),u={lang:(0,o.default)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},a.default),timePickerLocale:(0,o.default)({},i.default)};t.default=u},73625:function(e,t,r){"use strict";var n=r(75263).default,o=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.useLocaleReceiver=t.default=void 0;var a=o(r(10434)),i=n(r(67294)),u=o(r(89354)),l=o(r(95209));t.default=function(e){var t=e.componentName,r=void 0===t?"global":t,n=e.defaultLocale,o=e.children,c=i.useContext(u.default);return o(i.useMemo(function(){var e,t=n||l.default[r],o=null!==(e=null==c?void 0:c[r])&&void 0!==e?e:{};return(0,a.default)((0,a.default)({},t instanceof Function?t():t),o||{})},[r,n,c]),i.useMemo(function(){var e=c&&c.locale;return c&&c.exist&&!e?l.default.locale:e},[c]),c)},t.useLocaleReceiver=function(e,t){var r=i.useContext(u.default);return[i.useMemo(function(){var n,o=t||l.default[e],i=null!==(n=null==r?void 0:r[e])&&void 0!==n?n:{};return(0,a.default)((0,a.default)({},"function"==typeof o?o():o),i||{})},[e,t,r])]}},89354:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(67294).createContext)(void 0);t.default=n},95209:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(56350)).default;t.default=o},53594:function(e,t,r){"use strict";var n=r(75263).default,o=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ANT_MARK=void 0;var a=o(r(10434)),i=n(r(67294));o(r(13594));var u=r(10625),l=o(r(89354));t.ANT_MARK="internalMark",t.default=function(e){var t=e.locale,r=void 0===t?{}:t,n=e.children;e._ANT_MARK__,i.useEffect(function(){return(0,u.changeConfirmLocale)(r&&r.Modal),function(){(0,u.changeConfirmLocale)()}},[r]);var o=i.useMemo(function(){return(0,a.default)((0,a.default)({},r),{exist:!0})},[r]);return i.createElement(l.default.Provider,{value:o},n)}},56350:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(62273)),a=n(r(1028)),i=n(r(25633)),u=n(r(52040)),l="${label} is not a valid ${type}",c={locale:"en",Pagination:o.default,DatePicker:i.default,TimePicker:u.default,Calendar:a.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};t.default=c},64333:function(e,t,r){"use strict";var n=r(75263).default,o=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(){var r,n,o=null,s=(0,u.default)({add:function(e,t){null==o||o.component.add(e,t)}}),d=(0,i.default)(s,2),p=d[0],v=d[1],y=l.useRef({});return y.current.open=function(i){var u=r("message",i.prefixCls),l=r(),f=i.key||(0,c.getKeyThenIncreaseKey)(),s=new Promise(function(r){var c=function(){return"function"==typeof i.onClose&&i.onClose(),r(!0)};e((0,a.default)((0,a.default)({},i),{prefixCls:u,rootPrefixCls:l,getPopupContainer:n}),function(e){var r=e.prefixCls;o=e.instance,p(t((0,a.default)((0,a.default)({},i),{key:f,onClose:c}),r))})}),d=function(){o&&o.removeNotice(f)};return d.then=function(e,t){return s.then(e,t)},d.promise=s,d},c.typeList.forEach(function(e){return(0,c.attachTypeApi)(y.current,e)}),[y.current,l.createElement(f.ConfigConsumer,{key:"holder"},function(e){return r=e.getPrefixCls,n=e.getPopupContainer,v})]}};var a=o(r(10434)),i=o(r(27424)),u=o(r(45484)),l=n(r(67294)),c=r(11187),f=r(31929)},11187:function(e,t,r){"use strict";var n,o,a,i,u=r(75263).default,l=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.attachTypeApi=L,t.getInstance=t.default=void 0,t.getKeyThenIncreaseKey=j,t.typeList=void 0;var c=l(r(10434)),f=l(r(38416)),s=l(r(37431)),d=l(r(42547)),p=l(r(42461)),v=l(r(94354)),y=l(r(628)),m=l(r(94184)),g=l(r(91127)),h=u(r(67294)),b=u(r(31929)),x=l(r(64333)),C=3,_=1,O="",w="move-up",P=!1,M=!1;function j(){return _++}function k(e,t){var r=e.prefixCls,u=e.getPopupContainer,l=(0,b.globalConfig)(),c=l.getPrefixCls,f=l.getRootPrefixCls,s=l.getIconPrefixCls,d=c("message",r||O),p=f(e.rootPrefixCls,d),v=s();if(n){t({prefixCls:d,rootPrefixCls:p,iconPrefixCls:v,instance:n});return}var y={prefixCls:d,transitionName:P?w:"".concat(p,"-").concat(w),style:{top:o},getContainer:a||u,maxCount:i};g.default.newInstance(y,function(e){if(n){t({prefixCls:d,rootPrefixCls:p,iconPrefixCls:v,instance:n});return}n=e,t({prefixCls:d,rootPrefixCls:p,iconPrefixCls:v,instance:e})})}var E={info:v.default,success:s.default,error:d.default,warning:p.default,loading:y.default},T=Object.keys(E);function S(e,t,r){var n,o=void 0!==e.duration?e.duration:C,a=E[e.type],i=(0,m.default)("".concat(t,"-custom-content"),(n={},(0,f.default)(n,"".concat(t,"-").concat(e.type),e.type),(0,f.default)(n,"".concat(t,"-rtl"),!0===M),n));return{key:e.key,duration:o,style:e.style||{},className:e.className,content:h.createElement(b.default,{iconPrefixCls:r},h.createElement("div",{className:i},e.icon||a&&h.createElement(a,null),h.createElement("span",null,e.content))),onClose:e.onClose,onClick:e.onClick}}t.typeList=T;var N={open:function(e){var t=e.key||j(),r=new Promise(function(r){var n=function(){return"function"==typeof e.onClose&&e.onClose(),r(!0)};k(e,function(r){var o=r.prefixCls,a=r.iconPrefixCls;r.instance.notice(S((0,c.default)((0,c.default)({},e),{key:t,onClose:n}),o,a))})}),o=function(){n&&n.removeNotice(t)};return o.then=function(e,t){return r.then(e,t)},o.promise=r,o},config:function(e){void 0!==e.top&&(o=e.top,n=null),void 0!==e.duration&&(C=e.duration),void 0!==e.prefixCls&&(O=e.prefixCls),void 0!==e.getContainer&&(a=e.getContainer,n=null),void 0!==e.transitionName&&(w=e.transitionName,n=null,P=!0),void 0!==e.maxCount&&(i=e.maxCount,n=null),void 0!==e.rtl&&(M=e.rtl)},destroy:function(e){n&&(e?(0,n.removeNotice)(e):((0,n.destroy)(),n=null))}};function L(e,t){e[t]=function(r,n,o){return"[object Object]"===Object.prototype.toString.call(r)&&r.content?e.open((0,c.default)((0,c.default)({},r),{type:t})):("function"==typeof n&&(o=n,n=void 0),e.open({content:r,duration:n,type:t,onClose:o}))}}T.forEach(function(e){return L(N,e)}),N.warn=N.warning,N.useMessage=(0,x.default)(k,S),t.getInstance=function(){return null},t.default=N},10625:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.changeConfirmLocale=function(e){i=e?(0,o.default)((0,o.default)({},i),e):(0,o.default)({},a.default.Modal)},t.getConfirmLocale=function(){return i};var o=n(r(10434)),a=n(r(56350)),i=(0,o.default)({},a.default.Modal)},23298:function(e,t,r){"use strict";var n=r(75263).default,o=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(){var r,n=null,o=(0,u.default)({add:function(e,t){null==n||n.component.add(e,t)}}),f=(0,i.default)(o,2),s=f[0],d=f[1],p=l.useRef({});return p.current.open=function(o){var i=r("notification",o.prefixCls);e((0,a.default)((0,a.default)({},o),{prefixCls:i}),function(e){var r=e.prefixCls;n=e.instance,s(t(o,r))})},["success","info","warning","error"].forEach(function(e){p.current[e]=function(t){return p.current.open((0,a.default)((0,a.default)({},t),{type:e}))}}),[p.current,l.createElement(c.ConfigConsumer,{key:"holder"},function(e){return r=e.getPrefixCls,d})]}};var a=o(r(10434)),i=o(r(27424)),u=o(r(45484)),l=n(r(67294)),c=r(31929)},16318:function(e,t,r){"use strict";var n,o,a,i=r(75263).default,u=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getInstance=t.default=void 0;var l=u(r(17061)),c=u(r(10434)),f=u(r(38416)),s=u(r(67996)),d=u(r(74337)),p=u(r(40753)),v=u(r(67039)),y=u(r(93201)),m=u(r(94184)),g=u(r(91127)),h=i(r(67294)),b=i(r(31929)),x=u(r(23298)),C={},_=4.5,O=24,w=24,P="",M="topRight",j=!1;function k(e,t){var r=e.placement,o=void 0===r?M:r,i=e.top,u=e.bottom,l=e.getContainer,c=void 0===l?n:l,s=e.prefixCls,d=(0,b.globalConfig)(),p=d.getPrefixCls,v=d.getIconPrefixCls,y=p("notification",s||P),h=v(),x="".concat(y,"-").concat(o),_=C[x];if(_){Promise.resolve(_).then(function(e){t({prefixCls:"".concat(y,"-notice"),iconPrefixCls:h,instance:e})});return}var k=(0,m.default)("".concat(y,"-").concat(o),(0,f.default)({},"".concat(y,"-rtl"),!0===j));C[x]=new Promise(function(e){g.default.newInstance({prefixCls:y,className:k,style:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;switch(e){case"top":t={left:"50%",transform:"translateX(-50%)",right:"auto",top:r,bottom:"auto"};break;case"topLeft":t={left:0,top:r,bottom:"auto"};break;case"topRight":t={right:0,top:r,bottom:"auto"};break;case"bottom":t={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":t={left:0,top:"auto",bottom:n};break;default:t={right:0,top:"auto",bottom:n}}return t}(o,i,u),getContainer:c,maxCount:a},function(r){e(r),t({prefixCls:"".concat(y,"-notice"),iconPrefixCls:h,instance:r})})})}var E={success:s.default,info:y.default,error:d.default,warning:v.default};function T(e,t,r){var n=e.duration,a=e.icon,i=e.type,u=e.description,l=e.message,c=e.btn,s=e.onClose,d=e.onClick,v=e.key,y=e.style,g=e.className,x=e.closeIcon,C=e.props,O=void 0===n?_:n,w=null;a?w=h.createElement("span",{className:"".concat(t,"-icon")},e.icon):i&&(w=h.createElement(E[i]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(i)}));var P=h.createElement("span",{className:"".concat(t,"-close-x")},(void 0===x?o:x)||h.createElement(p.default,{className:"".concat(t,"-close-icon")})),M=!u&&w?h.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:h.createElement(b.default,{iconPrefixCls:r},h.createElement("div",{className:w?"".concat(t,"-with-icon"):"",role:"alert"},w,h.createElement("div",{className:"".concat(t,"-message")},M,l),h.createElement("div",{className:"".concat(t,"-description")},u),c?h.createElement("span",{className:"".concat(t,"-btn")},c):null)),duration:O,closable:!0,closeIcon:P,onClose:s,onClick:d,key:v,style:y||{},className:(0,m.default)(g,(0,f.default)({},"".concat(t,"-").concat(i),!!i)),props:C}}var S={open:function(e){k(e,function(t){var r=t.prefixCls,n=t.iconPrefixCls;t.instance.notice(T(e,r,n))})},close:function(e){Object.keys(C).forEach(function(t){return Promise.resolve(C[t]).then(function(t){t.removeNotice(e)})})},config:function(e){var t=e.duration,r=e.placement,i=e.bottom,u=e.top,l=e.getContainer,c=e.closeIcon,f=e.prefixCls;void 0!==f&&(P=f),void 0!==t&&(_=t),void 0!==r?M=r:e.rtl&&(M="topLeft"),void 0!==i&&(w=i),void 0!==u&&(O=u),void 0!==l&&(n=l),void 0!==c&&(o=c),void 0!==e.rtl&&(j=e.rtl),void 0!==e.maxCount&&(a=e.maxCount)},destroy:function(){Object.keys(C).forEach(function(e){Promise.resolve(C[e]).then(function(e){e.destroy()}),delete C[e]})}};["success","info","warning","error"].forEach(function(e){S[e]=function(t){return S.open((0,c.default)((0,c.default)({},t),{type:e}))}}),S.warn=S.warning,S.useNotification=(0,x.default)(k,T),t.getInstance=function(e){var t,r,n,o;return t=void 0,r=void 0,n=void 0,o=(0,l.default)().mark(function e(){return(0,l.default)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}},e)}),new(n||(n=Promise))(function(e,a){function i(e){try{l(o.next(e))}catch(t){a(t)}}function u(e){try{l(o.throw(e))}catch(t){a(t)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(i,u)}l((o=o.apply(t,r||[])).next())})},t.default=S},52040:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},32502:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(10434)),i=n(r(38416)),u=n(r(56690)),l=n(r(89728)),c=n(r(61655)),f=n(r(26389)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),d=n(r(73935)),p=n(r(94184));function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}var y=function(e){(0,c.default)(r,e);var t=(0,f.default)(r);function r(){var e;(0,u.default)(this,r);for(var n=arguments.length,o=Array(n),a=0;a1&&void 0!==arguments[1]?arguments[1]:{},r=d(e,t);r&&c(t).removeChild(r)},t.updateCSS=function(e,t){var r,n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var r=u.get(e);if(!r||!(0,a.default)(document,r)){var n=s("",t),o=n.parentNode;u.set(e,o),e.removeChild(n)}}(c(i),i);var f=d(t,i);if(f)return(null===(r=i.csp)||void 0===r?void 0:r.nonce)&&f.nonce!==(null===(n=i.csp)||void 0===n?void 0:n.nonce)&&(f.nonce=null===(o=i.csp)||void 0===o?void 0:o.nonce),f.innerHTML!==e&&(f.innerHTML=e),f;var p=s(e,i);return p.setAttribute(l(i),t),p};var o=n(r(19158)),a=n(r(32191)),i="data-rc-order",u=new Map;function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function c(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function f(e){return Array.from((u.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.default)())return null;var r=t.csp,n=t.prepend,a=document.createElement("style");a.setAttribute(i,"queue"===n?"prependQueue":n?"prepend":"append"),(null==r?void 0:r.nonce)&&(a.nonce=null==r?void 0:r.nonce),a.innerHTML=e;var u=c(t),l=u.firstChild;if(n){if("queue"===n){var s=f(u).filter(function(e){return["prepend","prependQueue"].includes(e.getAttribute(i))});if(s.length)return u.insertBefore(a,s[s.length-1].nextSibling),a}u.insertBefore(a,l)}else u.appendChild(a);return a}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(c(t)).find(function(r){return r.getAttribute(l(t))===e})}},67265:function(e,t,r){"use strict";var n=r(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var n=o.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value};var o=n(r(67294))},18475:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(0,o.default)({},e);return Array.isArray(t)&&t.forEach(function(e){delete r[e]}),r};var o=n(r(42122))},45520:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.call=a,t.default=void 0,t.note=o,t.noteOnce=function(e,t){a(o,e,t)},t.resetWarned=function(){r={}},t.warning=n,t.warningOnce=i;var r={};function n(e,t){}function o(e,t){}function a(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function i(e,t){a(n,e,t)}t.default=i},73897:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},7071:function(e){e.exports=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},94993:function(e,t,r){var n=r(18698).default,o=r(66115);e.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},17061:function(e,t,r){var n=r(18698).default;function o(){"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(d){s=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o,a,u=Object.create((t&&t.prototype instanceof m?t:m).prototype);return i(u,"_invoke",{value:(o=new j(n||[]),a="suspendedStart",function(t,n){if("executing"===a)throw Error("Generator is already running");if("completed"===a){if("throw"===t)throw n;return E()}for(o.method=t,o.arg=n;;){var i=o.delegate;if(i){var u=function e(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,e(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),y;var a=v(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):i:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,y)}(i,o);if(u){if(u===y)continue;return u}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===a)throw a="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);a="executing";var l=v(e,r,o);if("normal"===l.type){if(a=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(a="completed",o.method="throw",o.arg=l.arg)}})}),u}function v(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=p;var y={};function m(){}function g(){}function h(){}var b={};s(b,l,function(){return this});var x=Object.getPrototypeOf,C=x&&x(x(k([])));C&&C!==r&&a.call(C,l)&&(b=C);var _=h.prototype=m.prototype=Object.create(b);function O(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var r;i(this,"_invoke",{value:function(o,i){function u(){return new t(function(r,u){!function r(o,i,u,l){var c=v(e[o],e,i);if("throw"!==c.type){var f=c.arg,s=f.value;return s&&"object"==n(s)&&a.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,u,l)},function(e){r("throw",e,u,l)}):t.resolve(s).then(function(e){f.value=e,u(f)},function(e){return r("throw",e,u,l)})}l(c.arg)}(o,i,r,u)})}return r=r?r.then(u,u):u()}})}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function k(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(u&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),M(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;M(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:k(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),y}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},27424:function(e,t,r){var n=r(85372),o=r(68872),a=r(86116),i=r(12218);e.exports=function(e,t){return n(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},861:function(e,t,r){var n=r(63405),o=r(79498),a=r(86116),i=r(42281);e.exports=function(e){return n(e)||o(e)||a(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},95036:function(e,t,r){var n=r(18698).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},64062:function(e,t,r){var n=r(18698).default,o=r(95036);e.exports=function(e){var t=o(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},18698:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},86116:function(e,t,r){var n=r(73897);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}},e.exports.__esModule=!0,e.exports.default=e.exports}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1082],{85368:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"}},16976:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"}},67303:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"}},77384:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"}},79203:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"}},78515:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"}},34950:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"}},15369:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"}},20702:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"}},25828:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"}},37431:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(95183))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},67996:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(48138))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},42547:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(86266))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},74337:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(92018))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},40753:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(83482))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},42461:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(77998))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},67039:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(3855))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},94354:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(46564))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},93201:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(34106))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},628:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(4851))&&n.__esModule?n:{default:n};t.default=o,e.exports=o},92074:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=n(r(27424)),u=n(r(38416)),l=n(r(70215)),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),f=n(r(94184)),s=n(r(98399)),d=n(r(95160)),p=r(46768),v=r(72479),y=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}(0,p.setTwoToneColor)("#1890ff");var g=c.forwardRef(function(e,t){var r,n=e.className,o=e.icon,p=e.spin,m=e.rotate,g=e.tabIndex,h=e.onClick,b=e.twoToneColor,x=(0,l.default)(e,y),C=c.useContext(s.default),_=C.prefixCls,O=void 0===_?"anticon":_,w=C.rootClassName,P=(0,f.default)(w,O,(r={},(0,u.default)(r,"".concat(O,"-").concat(o.name),!!o.name),(0,u.default)(r,"".concat(O,"-spin"),!!p||"loading"===o.name),r),n),M=g;void 0===M&&h&&(M=-1);var j=(0,v.normalizeTwoToneColors)(b),k=(0,i.default)(j,2),E=k[0],T=k[1];return c.createElement("span",(0,a.default)((0,a.default)({role:"img","aria-label":o.name},x),{},{ref:t,tabIndex:M,onClick:h,className:P}),c.createElement(d.default,{icon:o,primaryColor:E,secondaryColor:T,style:m?{msTransform:"rotate(".concat(m,"deg)"),transform:"rotate(".concat(m,"deg)")}:void 0}))});g.displayName="AntdIcon",g.getTwoToneColor=p.getTwoToneColor,g.setTwoToneColor=p.setTwoToneColor,t.default=g},98399:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(67294).createContext)({});t.default=n},95160:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(70215)),a=n(r(42122)),i=r(72479),u=["icon","className","onClick","style","primaryColor","secondaryColor"],l={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},c=function(e){var t=e.icon,r=e.className,n=e.onClick,c=e.style,f=e.primaryColor,s=e.secondaryColor,d=(0,o.default)(e,u),p=l;if(f&&(p={primaryColor:f,secondaryColor:s||(0,i.getSecondaryColor)(f)}),(0,i.useInsertStyles)(),(0,i.warning)((0,i.isIconDefinition)(t),"icon should be icon definiton, but got ".concat(t)),!(0,i.isIconDefinition)(t))return null;var v=t;return v&&"function"==typeof v.icon&&(v=(0,a.default)((0,a.default)({},v),{},{icon:v.icon(p.primaryColor,p.secondaryColor)})),(0,i.generate)(v.icon,"svg-".concat(v.name),(0,a.default)({className:r,onClick:n,style:c,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d))};c.displayName="IconReact",c.getTwoToneColors=function(){return(0,a.default)({},l)},c.setTwoToneColors=function(e){var t=e.primaryColor,r=e.secondaryColor;l.primaryColor=t,l.secondaryColor=r||(0,i.getSecondaryColor)(t),l.calculated=!!r},t.default=c},46768:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.getTwoToneColor=function(){var e=a.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},t.setTwoToneColor=function(e){var t=(0,i.normalizeTwoToneColors)(e),r=(0,o.default)(t,2),n=r[0],u=r[1];return a.default.setTwoToneColors({primaryColor:n,secondaryColor:u})};var o=n(r(27424)),a=n(r(95160)),i=r(72479)},95183:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(85368)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="CheckCircleFilled";var s=i.forwardRef(f);t.default=s},48138:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(16976)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="CheckCircleOutlined";var s=i.forwardRef(f);t.default=s},86266:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(67303)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="CloseCircleFilled";var s=i.forwardRef(f);t.default=s},92018:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(77384)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="CloseCircleOutlined";var s=i.forwardRef(f);t.default=s},83482:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(79203)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="CloseOutlined";var s=i.forwardRef(f);t.default=s},77998:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(78515)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="ExclamationCircleFilled";var s=i.forwardRef(f);t.default=s},3855:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(34950)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="ExclamationCircleOutlined";var s=i.forwardRef(f);t.default=s},46564:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(15369)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="InfoCircleFilled";var s=i.forwardRef(f);t.default=s},34106:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(20702)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="InfoCircleOutlined";var s=i.forwardRef(f);t.default=s},4851:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),u=n(r(25828)),l=n(r(92074));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}var f=function(e,t){return i.createElement(l.default,(0,a.default)((0,a.default)({},e),{},{ref:t,icon:u.default}))};f.displayName="LoadingOutlined";var s=i.forwardRef(f);t.default=s},72479:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.generate=function e(t,r,n){return n?l.default.createElement(t.tag,(0,a.default)((0,a.default)({key:r},p(t.attrs)),n),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))})):l.default.createElement(t.tag,(0,a.default)({key:r},p(t.attrs)),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))}))},t.getSecondaryColor=function(e){return(0,u.generate)(e)[0]},t.iconStyles=void 0,t.isIconDefinition=function(e){return"object"===(0,i.default)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,i.default)(e.icon)||"function"==typeof e.icon)},t.normalizeAttrs=p,t.normalizeTwoToneColors=function(e){return e?Array.isArray(e)?e:[e]:[]},t.useInsertStyles=t.svgBaseProps=void 0,t.warning=function(e,t){(0,c.default)(e,"[@ant-design/icons] ".concat(t))};var a=n(r(42122)),i=n(r(18698)),u=r(92138),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=d(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),c=n(r(45520)),f=r(93399),s=n(r(98399));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):t[r]=n,t},{})}t.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var v="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";t.iconStyles=v,t.useInsertStyles=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=(0,l.useContext)(s.default).csp;(0,l.useEffect)(function(){(0,f.updateCSS)(e,"@ant-design-icons",{prepend:!0,csp:t})},[])}},131:function(e,t,r){"use strict";r.r(t),r.d(t,{TinyColor:function(){return n.C},bounds:function(){return m},convertDecimalToHex:function(){return u.Wl},convertHexToDecimal:function(){return u.T6},default:function(){return g},fromRatio:function(){return f},hslToRgb:function(){return u.ve},hsvToRgb:function(){return u.WE},inputToRGB:function(){return d.uA},isReadable:function(){return i},isValidCSSUnit:function(){return d.ky},legacyRandom:function(){return s},mostReadable:function(){return function e(t,r,o){void 0===o&&(o={includeFallbackColors:!1,level:"AA",size:"small"});for(var u=null,l=0,c=o.includeFallbackColors,f=o.level,s=o.size,d=0;dl&&(l=v,u=new n.C(p))}return i(t,u,{level:f,size:s})||!c?u:(o.includeFallbackColors=!1,e(t,["#fff","#000"],o))}},names:function(){return o.R},numberInputToObject:function(){return u.Yt},parseIntFromHex:function(){return u.VD},random:function(){return function e(t){if(void 0===t&&(t={}),void 0!==t.count&&null!==t.count){var r,o,a,i=t.count,u=[];for(t.count=void 0;i>u.length;)t.count=null,t.seed&&(t.seed+=1),u.push(e(t));return t.count=i,u}var l=(r=t.hue,o=t.seed,(a=v(function(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if("string"==typeof e){var r=m.find(function(t){return t.name===e});if(r){var o=y(r);if(o.hueRange)return o.hueRange}var a=new n.C(e);if(a.isValid){var i=a.toHsv().h;return[i,i]}}return[0,360]}(r),o))<0&&(a=360+a),a),c=function(e,t){if("monochrome"===t.hue)return 0;if("random"===t.luminosity)return v([0,100],t.seed);var r=p(e).saturationRange,n=r[0],o=r[1];switch(t.luminosity){case"bright":n=55;break;case"dark":n=o-10;break;case"light":o=55}return v([n,o],t.seed)}(l,t),f=function(e,t,r){var n=function(e,t){for(var r=p(e).lowerBounds,n=0;n=o&&t<=i){var l=(u-a)/(i-o),c=a-l*o;return l*t+c}}return 0}(e,t),o=100;switch(r.luminosity){case"dark":o=n+20;break;case"light":n=(o+n)/2;break;case"random":n=0,o=100}return v([n,o],r.seed)}(l,c,t),s={h:l,s:c,v:f};return void 0!==t.alpha&&(s.a=t.alpha),new n.C(s)}},readability:function(){return a},rgbToHex:function(){return u.vq},rgbToHsl:function(){return u.lC},rgbToHsv:function(){return u.py},rgbToRgb:function(){return u.rW},rgbaToArgbHex:function(){return u.GC},rgbaToHex:function(){return u.s},stringInputToObject:function(){return d.uz},tinycolor:function(){return n.H},toMsFilter:function(){return l}});var n=r(10274),o=r(48701);function a(e,t){var r=new n.C(e),o=new n.C(t);return(Math.max(r.getLuminance(),o.getLuminance())+.05)/(Math.min(r.getLuminance(),o.getLuminance())+.05)}function i(e,t,r){void 0===r&&(r={level:"AA",size:"small"});var n,o,i=a(e,t);switch((null!==(n=r.level)&&void 0!==n?n:"AA")+(null!==(o=r.size)&&void 0!==o?o:"small")){case"AAsmall":case"AAAlarge":return i>=4.5;case"AAlarge":return i>=3;case"AAAsmall":return i>=7;default:return!1}}var u=r(86500);function l(e,t){var r=new n.C(e),o="#"+(0,u.GC)(r.r,r.g,r.b,r.a),a=o,i=r.gradientType?"GradientType = 1, ":"";if(t){var l=new n.C(t);a="#"+(0,u.GC)(l.r,l.g,l.b,l.a)}return"progid:DXImageTransform.Microsoft.gradient(".concat(i,"startColorstr=").concat(o,",endColorstr=").concat(a,")")}var c=r(90279);function f(e,t){var r={r:(0,c.JX)(e.r),g:(0,c.JX)(e.g),b:(0,c.JX)(e.b)};return void 0!==e.a&&(r.a=Number(e.a)),new n.C(r,t)}function s(){return new n.C({r:Math.random(),g:Math.random(),b:Math.random()})}var d=r(1350);function p(e){e>=334&&e<=360&&(e-=360);for(var t=0;t=r.hueRange[0]&&e<=r.hueRange[1])return r}throw Error("Color not found")}function v(e,t){if(void 0===t)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var r=e[1]||1,n=e[0]||0;return Math.floor(n+(t=(9301*t+49297)%233280)/233280*(r-n))}function y(e){var t=e.lowerBounds[0][0],r=e.lowerBounds[e.lowerBounds.length-1][0],n=e.lowerBounds[e.lowerBounds.length-1][1],o=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,r],brightnessRange:[n,o]}}var m=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],g=n.H},13594:function(e,t,r){"use strict";var n=r(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.noop=a,Object.defineProperty(t,"resetWarned",{enumerable:!0,get:function(){return o.resetWarned}});var o=n(r(45520));function a(){}t.default=a},1028:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(25633)).default;t.default=o},93319:function(e,t,r){"use strict";var n=r(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DisabledContextProvider=void 0;var o=n(r(67294)),a=o.createContext(!1);t.DisabledContextProvider=function(e){var t=e.children,r=e.disabled,n=o.useContext(a);return o.createElement(a.Provider,{value:r||n},t)},t.default=a},3236:function(e,t,r){"use strict";var n=r(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SizeContextProvider=void 0;var o=n(r(67294)),a=o.createContext(void 0);t.SizeContextProvider=function(e){var t=e.children,r=e.size;return o.createElement(a.Consumer,null,function(e){return o.createElement(a.Provider,{value:r||e},t)})},t.default=a},7177:function(e,t,r){"use strict";var n=r(75263).default,o=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigContext=t.ConfigConsumer=void 0,t.withConfigConsumer=function(e){return function(t){var r=t.constructor;return r&&r.displayName||t.name,function(r){return i.createElement(l,null,function(n){var o=e.prefixCls,u=(0,n.getPrefixCls)(o,r.prefixCls);return i.createElement(t,(0,a.default)({},n,r,{prefixCls:u}))})}}};var a=o(r(10434)),i=n(r(67294)),u=i.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")}});t.ConfigContext=u;var l=u.Consumer;t.ConfigConsumer=l},56301:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getStyle=c,t.registerTheme=function(e,t){var r=c(e,t);(0,i.default)()&&(0,u.updateCSS)(r,"".concat(l,"-dynamic-theme"))};var o=r(92138),a=r(131),i=n(r(19158)),u=r(93399);n(r(13594));var l="-ant-".concat(Date.now(),"-").concat(Math.random());function c(e,t){var r={},n=function(e,t){var r=e.clone();return(r=(null==t?void 0:t(r))||r).toRgbString()},i=function(e,t){var i=new a.TinyColor(e),u=(0,o.generate)(i.toRgbString());r["".concat(t,"-color")]=n(i),r["".concat(t,"-color-disabled")]=u[1],r["".concat(t,"-color-hover")]=u[4],r["".concat(t,"-color-active")]=u[6],r["".concat(t,"-color-outline")]=i.clone().setAlpha(.2).toRgbString(),r["".concat(t,"-color-deprecated-bg")]=u[0],r["".concat(t,"-color-deprecated-border")]=u[2]};if(t.primaryColor){i(t.primaryColor,"primary");var u=new a.TinyColor(t.primaryColor),l=(0,o.generate)(u.toRgbString());l.forEach(function(e,t){r["primary-".concat(t+1)]=e}),r["primary-color-deprecated-l-35"]=n(u,function(e){return e.lighten(35)}),r["primary-color-deprecated-l-20"]=n(u,function(e){return e.lighten(20)}),r["primary-color-deprecated-t-20"]=n(u,function(e){return e.tint(20)}),r["primary-color-deprecated-t-50"]=n(u,function(e){return e.tint(50)}),r["primary-color-deprecated-f-12"]=n(u,function(e){return e.setAlpha(.12*e.getAlpha())});var c=new a.TinyColor(l[0]);r["primary-color-active-deprecated-f-30"]=n(c,function(e){return e.setAlpha(.3*e.getAlpha())}),r["primary-color-active-deprecated-d-02"]=n(c,function(e){return e.darken(2)})}t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info");var f=Object.keys(r).map(function(t){return"--".concat(e,"-").concat(t,": ").concat(r[t],";")});return"\n :root {\n ".concat(f.join("\n"),"\n }\n ").trim()}},31929:function(e,t,r){"use strict";var n,o,a=r(75263).default,i=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ConfigConsumer",{enumerable:!0,get:function(){return g.ConfigConsumer}}),Object.defineProperty(t,"ConfigContext",{enumerable:!0,get:function(){return g.ConfigContext}}),t.globalConfig=t.defaultPrefixCls=t.defaultIconPrefixCls=t.default=t.configConsumerProps=void 0;var u=i(r(10434)),l=i(r(98399)),c=r(71990),f=i(r(67265)),s=a(r(67294)),d=a(r(53594)),p=i(r(73625)),v=i(r(56350)),y=i(r(11187)),m=i(r(16318)),g=r(7177),h=r(56301),b=r(93319),x=a(r(3236));t.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"];var C=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form"];t.defaultPrefixCls="ant";var _="anticon";function O(){return n||"ant"}function w(){return o||_}t.defaultIconPrefixCls=_,t.globalConfig=function(){return{getPrefixCls:function(e,t){return t||(e?"".concat(O(),"-").concat(e):O())},getIconPrefixCls:w,getRootPrefixCls:function(e,t){return e||n||(t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):O())}}};var P=function(e){var t,r,n=e.children,o=e.csp,a=e.autoInsertSpaceInButton,i=e.form,p=e.locale,y=e.componentSize,m=e.direction,h=e.space,_=e.virtual,O=e.dropdownMatchSelectWidth,w=e.legacyLocale,P=e.parentContext,M=e.iconPrefixCls,j=e.componentDisabled,k=s.useCallback(function(t,r){var n=e.prefixCls;if(r)return r;var o=n||P.getPrefixCls("");return t?"".concat(o,"-").concat(t):o},[P.getPrefixCls,e.prefixCls]),E=(0,u.default)((0,u.default)({},P),{csp:o,autoInsertSpaceInButton:a,locale:p||w,direction:m,space:h,virtual:_,dropdownMatchSelectWidth:O,getPrefixCls:k});C.forEach(function(t){var r=e[t];r&&(E[t]=r)});var T=(0,f.default)(function(){return E},E,function(e,t){var r=Object.keys(e),n=Object.keys(t);return r.length!==n.length||r.some(function(r){return e[r]!==t[r]})}),S=s.useMemo(function(){return{prefixCls:M,csp:o}},[M,o]),N=n,L={};return p&&(L=(null===(t=p.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(r=v.default.Form)||void 0===r?void 0:r.defaultValidateMessages)||{}),i&&i.validateMessages&&(L=(0,u.default)((0,u.default)({},L),i.validateMessages)),Object.keys(L).length>0&&(N=s.createElement(c.FormProvider,{validateMessages:L},n)),p&&(N=s.createElement(d.default,{locale:p,_ANT_MARK__:d.ANT_MARK},N)),(M||o)&&(N=s.createElement(l.default.Provider,{value:S},N)),y&&(N=s.createElement(x.SizeContextProvider,{size:y},N)),void 0!==j&&(N=s.createElement(b.DisabledContextProvider,{disabled:j},N)),s.createElement(g.ConfigContext.Provider,{value:T},N)},M=function(e){return s.useEffect(function(){e.direction&&(y.default.config({rtl:"rtl"===e.direction}),m.default.config({rtl:"rtl"===e.direction}))},[e.direction]),s.createElement(p.default,null,function(t,r,n){return s.createElement(g.ConfigConsumer,null,function(t){return s.createElement(P,(0,u.default)({parentContext:t,legacyLocale:n},e))})})};M.ConfigContext=g.ConfigContext,M.SizeContext=x.default,M.config=function(e){var t=e.prefixCls,r=e.iconPrefixCls,a=e.theme;void 0!==t&&(n=t),void 0!==r&&(o=r),a&&(0,h.registerTheme)(O(),a)},t.default=M},25633:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(10434)),a=n(r(27590)),i=n(r(52040)),u={lang:(0,o.default)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},a.default),timePickerLocale:(0,o.default)({},i.default)};t.default=u},73625:function(e,t,r){"use strict";var n=r(75263).default,o=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.useLocaleReceiver=t.default=void 0;var a=o(r(10434)),i=n(r(67294)),u=o(r(89354)),l=o(r(95209));t.default=function(e){var t=e.componentName,r=void 0===t?"global":t,n=e.defaultLocale,o=e.children,c=i.useContext(u.default);return o(i.useMemo(function(){var e,t=n||l.default[r],o=null!==(e=null==c?void 0:c[r])&&void 0!==e?e:{};return(0,a.default)((0,a.default)({},t instanceof Function?t():t),o||{})},[r,n,c]),i.useMemo(function(){var e=c&&c.locale;return c&&c.exist&&!e?l.default.locale:e},[c]),c)},t.useLocaleReceiver=function(e,t){var r=i.useContext(u.default);return[i.useMemo(function(){var n,o=t||l.default[e],i=null!==(n=null==r?void 0:r[e])&&void 0!==n?n:{};return(0,a.default)((0,a.default)({},"function"==typeof o?o():o),i||{})},[e,t,r])]}},89354:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=(0,r(67294).createContext)(void 0);t.default=n},95209:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(56350)).default;t.default=o},53594:function(e,t,r){"use strict";var n=r(75263).default,o=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ANT_MARK=void 0;var a=o(r(10434)),i=n(r(67294));o(r(13594));var u=r(10625),l=o(r(89354));t.ANT_MARK="internalMark",t.default=function(e){var t=e.locale,r=void 0===t?{}:t,n=e.children;e._ANT_MARK__,i.useEffect(function(){return(0,u.changeConfirmLocale)(r&&r.Modal),function(){(0,u.changeConfirmLocale)()}},[r]);var o=i.useMemo(function(){return(0,a.default)((0,a.default)({},r),{exist:!0})},[r]);return i.createElement(l.default.Provider,{value:o},n)}},56350:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(62273)),a=n(r(1028)),i=n(r(25633)),u=n(r(52040)),l="${label} is not a valid ${type}",c={locale:"en",Pagination:o.default,DatePicker:i.default,TimePicker:u.default,Calendar:a.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:l,method:l,array:l,object:l,number:l,date:l,boolean:l,integer:l,float:l,regexp:l,email:l,url:l,hex:l},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};t.default=c},64333:function(e,t,r){"use strict";var n=r(75263).default,o=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(){var r,n,o=null,s=(0,u.default)({add:function(e,t){null==o||o.component.add(e,t)}}),d=(0,i.default)(s,2),p=d[0],v=d[1],y=l.useRef({});return y.current.open=function(i){var u=r("message",i.prefixCls),l=r(),f=i.key||(0,c.getKeyThenIncreaseKey)(),s=new Promise(function(r){var c=function(){return"function"==typeof i.onClose&&i.onClose(),r(!0)};e((0,a.default)((0,a.default)({},i),{prefixCls:u,rootPrefixCls:l,getPopupContainer:n}),function(e){var r=e.prefixCls;o=e.instance,p(t((0,a.default)((0,a.default)({},i),{key:f,onClose:c}),r))})}),d=function(){o&&o.removeNotice(f)};return d.then=function(e,t){return s.then(e,t)},d.promise=s,d},c.typeList.forEach(function(e){return(0,c.attachTypeApi)(y.current,e)}),[y.current,l.createElement(f.ConfigConsumer,{key:"holder"},function(e){return r=e.getPrefixCls,n=e.getPopupContainer,v})]}};var a=o(r(10434)),i=o(r(27424)),u=o(r(45484)),l=n(r(67294)),c=r(11187),f=r(31929)},11187:function(e,t,r){"use strict";var n,o,a,i,u=r(75263).default,l=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.attachTypeApi=L,t.getInstance=t.default=void 0,t.getKeyThenIncreaseKey=j,t.typeList=void 0;var c=l(r(10434)),f=l(r(38416)),s=l(r(37431)),d=l(r(42547)),p=l(r(42461)),v=l(r(94354)),y=l(r(628)),m=l(r(94184)),g=l(r(91127)),h=u(r(67294)),b=u(r(31929)),x=l(r(64333)),C=3,_=1,O="",w="move-up",P=!1,M=!1;function j(){return _++}function k(e,t){var r=e.prefixCls,u=e.getPopupContainer,l=(0,b.globalConfig)(),c=l.getPrefixCls,f=l.getRootPrefixCls,s=l.getIconPrefixCls,d=c("message",r||O),p=f(e.rootPrefixCls,d),v=s();if(n){t({prefixCls:d,rootPrefixCls:p,iconPrefixCls:v,instance:n});return}var y={prefixCls:d,transitionName:P?w:"".concat(p,"-").concat(w),style:{top:o},getContainer:a||u,maxCount:i};g.default.newInstance(y,function(e){if(n){t({prefixCls:d,rootPrefixCls:p,iconPrefixCls:v,instance:n});return}n=e,t({prefixCls:d,rootPrefixCls:p,iconPrefixCls:v,instance:e})})}var E={info:v.default,success:s.default,error:d.default,warning:p.default,loading:y.default},T=Object.keys(E);function S(e,t,r){var n,o=void 0!==e.duration?e.duration:C,a=E[e.type],i=(0,m.default)("".concat(t,"-custom-content"),(n={},(0,f.default)(n,"".concat(t,"-").concat(e.type),e.type),(0,f.default)(n,"".concat(t,"-rtl"),!0===M),n));return{key:e.key,duration:o,style:e.style||{},className:e.className,content:h.createElement(b.default,{iconPrefixCls:r},h.createElement("div",{className:i},e.icon||a&&h.createElement(a,null),h.createElement("span",null,e.content))),onClose:e.onClose,onClick:e.onClick}}t.typeList=T;var N={open:function(e){var t=e.key||j(),r=new Promise(function(r){var n=function(){return"function"==typeof e.onClose&&e.onClose(),r(!0)};k(e,function(r){var o=r.prefixCls,a=r.iconPrefixCls;r.instance.notice(S((0,c.default)((0,c.default)({},e),{key:t,onClose:n}),o,a))})}),o=function(){n&&n.removeNotice(t)};return o.then=function(e,t){return r.then(e,t)},o.promise=r,o},config:function(e){void 0!==e.top&&(o=e.top,n=null),void 0!==e.duration&&(C=e.duration),void 0!==e.prefixCls&&(O=e.prefixCls),void 0!==e.getContainer&&(a=e.getContainer,n=null),void 0!==e.transitionName&&(w=e.transitionName,n=null,P=!0),void 0!==e.maxCount&&(i=e.maxCount,n=null),void 0!==e.rtl&&(M=e.rtl)},destroy:function(e){n&&(e?(0,n.removeNotice)(e):((0,n.destroy)(),n=null))}};function L(e,t){e[t]=function(r,n,o){return"[object Object]"===Object.prototype.toString.call(r)&&r.content?e.open((0,c.default)((0,c.default)({},r),{type:t})):("function"==typeof n&&(o=n,n=void 0),e.open({content:r,duration:n,type:t,onClose:o}))}}T.forEach(function(e){return L(N,e)}),N.warn=N.warning,N.useMessage=(0,x.default)(k,S),t.getInstance=function(){return null},t.default=N},10625:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.changeConfirmLocale=function(e){i=e?(0,o.default)((0,o.default)({},i),e):(0,o.default)({},a.default.Modal)},t.getConfirmLocale=function(){return i};var o=n(r(10434)),a=n(r(56350)),i=(0,o.default)({},a.default.Modal)},23298:function(e,t,r){"use strict";var n=r(75263).default,o=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(){var r,n=null,o=(0,u.default)({add:function(e,t){null==n||n.component.add(e,t)}}),f=(0,i.default)(o,2),s=f[0],d=f[1],p=l.useRef({});return p.current.open=function(o){var i=r("notification",o.prefixCls);e((0,a.default)((0,a.default)({},o),{prefixCls:i}),function(e){var r=e.prefixCls;n=e.instance,s(t(o,r))})},["success","info","warning","error"].forEach(function(e){p.current[e]=function(t){return p.current.open((0,a.default)((0,a.default)({},t),{type:e}))}}),[p.current,l.createElement(c.ConfigConsumer,{key:"holder"},function(e){return r=e.getPrefixCls,d})]}};var a=o(r(10434)),i=o(r(27424)),u=o(r(45484)),l=n(r(67294)),c=r(31929)},16318:function(e,t,r){"use strict";var n,o,a,i=r(75263).default,u=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getInstance=t.default=void 0;var l=u(r(17061)),c=u(r(10434)),f=u(r(38416)),s=u(r(67996)),d=u(r(74337)),p=u(r(40753)),v=u(r(67039)),y=u(r(93201)),m=u(r(94184)),g=u(r(91127)),h=i(r(67294)),b=i(r(31929)),x=u(r(23298)),C={},_=4.5,O=24,w=24,P="",M="topRight",j=!1;function k(e,t){var r=e.placement,o=void 0===r?M:r,i=e.top,u=e.bottom,l=e.getContainer,c=void 0===l?n:l,s=e.prefixCls,d=(0,b.globalConfig)(),p=d.getPrefixCls,v=d.getIconPrefixCls,y=p("notification",s||P),h=v(),x="".concat(y,"-").concat(o),_=C[x];if(_){Promise.resolve(_).then(function(e){t({prefixCls:"".concat(y,"-notice"),iconPrefixCls:h,instance:e})});return}var k=(0,m.default)("".concat(y,"-").concat(o),(0,f.default)({},"".concat(y,"-rtl"),!0===j));C[x]=new Promise(function(e){g.default.newInstance({prefixCls:y,className:k,style:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;switch(e){case"top":t={left:"50%",transform:"translateX(-50%)",right:"auto",top:r,bottom:"auto"};break;case"topLeft":t={left:0,top:r,bottom:"auto"};break;case"topRight":t={right:0,top:r,bottom:"auto"};break;case"bottom":t={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":t={left:0,top:"auto",bottom:n};break;default:t={right:0,top:"auto",bottom:n}}return t}(o,i,u),getContainer:c,maxCount:a},function(r){e(r),t({prefixCls:"".concat(y,"-notice"),iconPrefixCls:h,instance:r})})})}var E={success:s.default,info:y.default,error:d.default,warning:v.default};function T(e,t,r){var n=e.duration,a=e.icon,i=e.type,u=e.description,l=e.message,c=e.btn,s=e.onClose,d=e.onClick,v=e.key,y=e.style,g=e.className,x=e.closeIcon,C=e.props,O=void 0===n?_:n,w=null;a?w=h.createElement("span",{className:"".concat(t,"-icon")},e.icon):i&&(w=h.createElement(E[i]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(i)}));var P=h.createElement("span",{className:"".concat(t,"-close-x")},(void 0===x?o:x)||h.createElement(p.default,{className:"".concat(t,"-close-icon")})),M=!u&&w?h.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:h.createElement(b.default,{iconPrefixCls:r},h.createElement("div",{className:w?"".concat(t,"-with-icon"):"",role:"alert"},w,h.createElement("div",{className:"".concat(t,"-message")},M,l),h.createElement("div",{className:"".concat(t,"-description")},u),c?h.createElement("span",{className:"".concat(t,"-btn")},c):null)),duration:O,closable:!0,closeIcon:P,onClose:s,onClick:d,key:v,style:y||{},className:(0,m.default)(g,(0,f.default)({},"".concat(t,"-").concat(i),!!i)),props:C}}var S={open:function(e){k(e,function(t){var r=t.prefixCls,n=t.iconPrefixCls;t.instance.notice(T(e,r,n))})},close:function(e){Object.keys(C).forEach(function(t){return Promise.resolve(C[t]).then(function(t){t.removeNotice(e)})})},config:function(e){var t=e.duration,r=e.placement,i=e.bottom,u=e.top,l=e.getContainer,c=e.closeIcon,f=e.prefixCls;void 0!==f&&(P=f),void 0!==t&&(_=t),void 0!==r?M=r:e.rtl&&(M="topLeft"),void 0!==i&&(w=i),void 0!==u&&(O=u),void 0!==l&&(n=l),void 0!==c&&(o=c),void 0!==e.rtl&&(j=e.rtl),void 0!==e.maxCount&&(a=e.maxCount)},destroy:function(){Object.keys(C).forEach(function(e){Promise.resolve(C[e]).then(function(e){e.destroy()}),delete C[e]})}};["success","info","warning","error"].forEach(function(e){S[e]=function(t){return S.open((0,c.default)((0,c.default)({},t),{type:e}))}}),S.warn=S.warning,S.useNotification=(0,x.default)(k,T),t.getInstance=function(e){var t,r,n,o;return t=void 0,r=void 0,n=void 0,o=(0,l.default)().mark(function e(){return(0,l.default)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}},e)}),new(n||(n=Promise))(function(e,a){function i(e){try{l(o.next(e))}catch(t){a(t)}}function u(e){try{l(o.throw(e))}catch(t){a(t)}}function l(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(i,u)}l((o=o.apply(t,r||[])).next())})},t.default=S},52040:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},32502:function(e,t,r){"use strict";var n=r(64836),o=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(r(10434)),i=n(r(38416)),u=n(r(56690)),l=n(r(89728)),c=n(r(61655)),f=n(r(26389)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(n,i,u):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),d=n(r(73935)),p=n(r(94184));function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}var y=function(e){(0,c.default)(r,e);var t=(0,f.default)(r);function r(){var e;(0,u.default)(this,r);for(var n=arguments.length,o=Array(n),a=0;a1&&void 0!==arguments[1]?arguments[1]:{},r=d(e,t);r&&c(t).removeChild(r)},t.updateCSS=function(e,t){var r,n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var r=u.get(e);if(!r||!(0,a.default)(document,r)){var n=s("",t),o=n.parentNode;u.set(e,o),e.removeChild(n)}}(c(i),i);var f=d(t,i);if(f)return(null===(r=i.csp)||void 0===r?void 0:r.nonce)&&f.nonce!==(null===(n=i.csp)||void 0===n?void 0:n.nonce)&&(f.nonce=null===(o=i.csp)||void 0===o?void 0:o.nonce),f.innerHTML!==e&&(f.innerHTML=e),f;var p=s(e,i);return p.setAttribute(l(i),t),p};var o=n(r(19158)),a=n(r(32191)),i="data-rc-order",u=new Map;function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function c(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function f(e){return Array.from((u.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.default)())return null;var r=t.csp,n=t.prepend,a=document.createElement("style");a.setAttribute(i,"queue"===n?"prependQueue":n?"prepend":"append"),(null==r?void 0:r.nonce)&&(a.nonce=null==r?void 0:r.nonce),a.innerHTML=e;var u=c(t),l=u.firstChild;if(n){if("queue"===n){var s=f(u).filter(function(e){return["prepend","prependQueue"].includes(e.getAttribute(i))});if(s.length)return u.insertBefore(a,s[s.length-1].nextSibling),a}u.insertBefore(a,l)}else u.appendChild(a);return a}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(c(t)).find(function(r){return r.getAttribute(l(t))===e})}},67265:function(e,t,r){"use strict";var n=r(75263).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var n=o.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value};var o=n(r(67294))},18475:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(0,o.default)({},e);return Array.isArray(t)&&t.forEach(function(e){delete r[e]}),r};var o=n(r(42122))},45520:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.call=a,t.default=void 0,t.note=o,t.noteOnce=function(e,t){a(o,e,t)},t.resetWarned=function(){r={}},t.warning=n,t.warningOnce=i;var r={};function n(e,t){}function o(e,t){}function a(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function i(e,t){a(n,e,t)}t.default=i},73897:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},7071:function(e){e.exports=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},94993:function(e,t,r){var n=r(18698).default,o=r(66115);e.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},17061:function(e,t,r){var n=r(18698).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(d){s=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o,a,u=Object.create((t&&t.prototype instanceof m?t:m).prototype);return i(u,"_invoke",{value:(o=new j(n||[]),a="suspendedStart",function(t,n){if("executing"===a)throw Error("Generator is already running");if("completed"===a){if("throw"===t)throw n;return E()}for(o.method=t,o.arg=n;;){var i=o.delegate;if(i){var u=function e(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,e(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),y;var a=v(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,y):i:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,y)}(i,o);if(u){if(u===y)continue;return u}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===a)throw a="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);a="executing";var l=v(e,r,o);if("normal"===l.type){if(a=o.done?"completed":"suspendedYield",l.arg===y)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(a="completed",o.method="throw",o.arg=l.arg)}})}),u}function v(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=p;var y={};function m(){}function g(){}function h(){}var b={};s(b,l,function(){return this});var x=Object.getPrototypeOf,C=x&&x(x(k([])));C&&C!==r&&a.call(C,l)&&(b=C);var _=h.prototype=m.prototype=Object.create(b);function O(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var r;i(this,"_invoke",{value:function(o,i){function u(){return new t(function(r,u){!function r(o,i,u,l){var c=v(e[o],e,i);if("throw"!==c.type){var f=c.arg,s=f.value;return s&&"object"==n(s)&&a.call(s,"__await")?t.resolve(s.__await).then(function(e){r("next",e,u,l)},function(e){r("throw",e,u,l)}):t.resolve(s).then(function(e){f.value=e,u(f)},function(e){return r("throw",e,u,l)})}l(c.arg)}(o,i,r,u)})}return r=r?r.then(u,u):u()}})}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function k(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(u&&l){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),M(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;M(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:k(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),y}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},27424:function(e,t,r){var n=r(85372),o=r(68872),a=r(86116),i=r(12218);e.exports=function(e,t){return n(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},861:function(e,t,r){var n=r(63405),o=r(79498),a=r(86116),i=r(42281);e.exports=function(e){return n(e)||o(e)||a(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},95036:function(e,t,r){var n=r(18698).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},64062:function(e,t,r){var n=r(18698).default,o=r(95036);e.exports=function(e){var t=o(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},18698:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},86116:function(e,t,r){var n=r(73897);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}},e.exports.__esModule=!0,e.exports.default=e.exports}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/1943-6d1cab809126a603.js b/static/web/_next/static/chunks/1943-6d1cab809126a603.js deleted file mode 100644 index 5994a4e8d..000000000 --- a/static/web/_next/static/chunks/1943-6d1cab809126a603.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1943],{58909:function(t,e,n){n.d(e,{F:function(){return a}});var i=n(87462),r=n(35524),s=n(47421),o=n(59119),l=t=>{var{theme:e,settings:n,styles:i}=t,r={"&":{backgroundColor:n.background,color:n.foreground},".cm-gutters":{}};n.fontFamily&&(r["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(r[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(r[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(r[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(r[".cm-content"]={caretColor:n.caret},r[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var l={};n.gutterActiveForeground&&(l.color=n.gutterActiveForeground),n.lineHighlight&&(r[".cm-activeLine"]={backgroundColor:n.lineHighlight},l.backgroundColor=n.lineHighlight),r[".cm-activeLineGutter"]=l,n.selection&&(r["&.cm-focused .cm-selectionBackground, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={backgroundColor:n.selection}),n.selectionMatch&&(r["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var a=s.tk.theme(r,{dark:"dark"===e}),h=o.Qf.define(i);return[a,(0,o.nF)(h)]},a=(t=>{var{theme:e="light",settings:n={},styles:s=[]}={};return l({theme:e,settings:(0,i.Z)({background:"#FFFFFF",foreground:"#000000",caret:"#FBAC52",selection:"#FFD420",selectionMatch:"#FFD420",gutterBackground:"#f5f5f5",gutterForeground:"#4D4D4C",gutterBorder:"transparent",lineHighlight:"#00000012"},n),styles:[{tag:[r.pJ.meta,r.pJ.comment],color:"#804000"},{tag:[r.pJ.keyword,r.pJ.strong],color:"#0000FF"},{tag:[r.pJ.number],color:"#FF0080"},{tag:[r.pJ.string],color:"#FF0080"},{tag:[r.pJ.variableName],color:"#006600"},{tag:[r.pJ.escape],color:"#33CC33"},{tag:[r.pJ.tagName],color:"#1C02FF"},{tag:[r.pJ.heading],color:"#0C07FF"},{tag:[r.pJ.quote],color:"#000000"},{tag:[r.pJ.list],color:"#B90690"},{tag:[r.pJ.documentMeta],color:"#888888"},{tag:[r.pJ.function(r.pJ.variableName)],color:"#0000A2"},{tag:[r.pJ.definition(r.pJ.typeName),r.pJ.typeName],color:"#6D79DE"},...s]})})()},87685:function(t,e,n){n.d(e,{ZP:function(){return nF}});var i=n(87462),r=n(63366),s=n(67294),o=n(78120),l=n(47421),a=n(59119),h=n(41113);let c=t=>{let e=m(t.state);return e.line?f(t):!!e.block&&p(t)};function u(t,e){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let r=t(e,n);return!!r&&(i(n.update(r)),!0)}}let f=u(function(t,e,n=e.selection.ranges){let i=[],r=-1;for(let{from:s,to:o}of n){let l=i.length,a=1e9;for(let h=s;h<=o;){let c=e.doc.lineAt(h);if(c.from>r&&(s==o||o>c.from)){r=c.from;let u=m(e,h).line;if(!u)continue;let f=/^\s*/.exec(c.text)[0].length,d=f==c.length,p=c.text.slice(f,f+u.length)==u?f:-1;ft.comment<0&&(!t.empty||t.single))){let k=[];for(let{line:y,token:v,indent:b,empty:O,single:x}of i)(x||!O)&&k.push({from:y.from+b,insert:v+" "});let w=e.changes(k);return{changes:w,selection:e.selection.map(w,1)}}if(1!=t&&i.some(t=>t.comment>=0)){let S=[];for(let{line:P,comment:C,token:A}of i)if(C>=0){let Q=P.from+C,T=Q+A.length;" "==P.text[T-P.from]&&T++,S.push({from:Q,to:T})}return{changes:S}}return null},0),d=u(g,0),p=u((t,e)=>g(t,e,function(t){let e=[];for(let n of t.selection.ranges){let i=t.doc.lineAt(n.from),r=n.to<=i.to?i:t.doc.lineAt(n.to),s=e.length-1;s>=0&&e[s].to>i.from?e[s].to=r.to:e.push({from:i.from,to:r.to})}return e}(e)),0);function m(t,e=t.selection.main.head){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}function g(t,e,n=e.selection.ranges){let i=n.map(t=>m(e,t.from).block);if(!i.every(t=>t))return null;let r=n.map((t,n)=>(function(t,{open:e,close:n},i,r){let s,o,l=t.sliceDoc(i-50,i),a=t.sliceDoc(r,r+50),h=/\s*$/.exec(l)[0].length,c=/^\s*/.exec(a)[0].length,u=l.length-h;if(l.slice(u-e.length,u)==e&&a.slice(c,c+n.length)==n)return{open:{pos:i-h,margin:h&&1},close:{pos:r+c,margin:c&&1}};r-i<=100?s=o=t.sliceDoc(i,r):(s=t.sliceDoc(i,i+50),o=t.sliceDoc(r-50,r));let f=/^\s*/.exec(s)[0].length,d=/\s*$/.exec(o)[0].length,p=o.length-d-n.length;return s.slice(f,f+e.length)==e&&o.slice(p,p+n.length)==n?{open:{pos:i+f+e.length,margin:/\s/.test(s.charAt(f+e.length))?1:0},close:{pos:r-d-n.length,margin:/\s/.test(o.charAt(p-1))?1:0}}:null})(e,i[n],t.from,t.to));if(2!=t&&!r.every(t=>t))return{changes:e.changes(n.map((t,e)=>r[e]?[]:[{from:t.from,insert:i[e].open+" "},{from:t.to,insert:" "+i[e].close}]))};if(1!=t&&r.some(t=>t)){let s=[];for(let o=0,l;o(0,o.BO)(t,{minDepth:100,newGroupDelay:500},{minDepth:Math.max,newGroupDelay:Math.min})}),O=o.QQ.define({create:()=>$.empty,update(t,e){let n=e.state.facet(b),i=e.annotation(k);if(i){var r;let s;let l=e.docChanged?o.jT.single((r=e.changes,s=0,r.iterChangedRanges((t,e)=>s=e),s)):void 0,a=A.fromTransaction(e,l),h=i.side,c=0==h?t.undone:t.done;return c=a?Q(c,c.length,n.minDepth,a):D(c,e.startState.selection),new $(0==h?i.rest:c,0==h?c:i.rest)}let u=e.annotation(y);if(("full"==u||"before"==u)&&(t=t.isolate()),!1===e.annotation(o.YW.addToHistory))return e.changes.empty?t:t.addMapping(e.changes.desc);let f=A.fromTransaction(e),d=e.annotation(o.YW.time),p=e.annotation(o.YW.userEvent);return f?t=t.addChanges(f,d,p,n.newGroupDelay,n.minDepth):e.selection&&(t=t.addSelection(e.startState.selection,d,p,n.newGroupDelay)),("full"==u||"after"==u)&&(t=t.isolate()),t},toJSON:t=>({done:t.done.map(t=>t.toJSON()),undone:t.undone.map(t=>t.toJSON())}),fromJSON:t=>new $(t.done.map(A.fromJSON),t.undone.map(A.fromJSON))});function x(t,e){return function({state:n,dispatch:i}){if(!e&&n.readOnly)return!1;let r=n.field(O,!1);if(!r)return!1;let s=r.pop(t,n,e);return!!s&&(i(s),!0)}}let w=x(0,!1),S=x(1,!1),P=x(0,!0),C=x(1,!0);class A{constructor(t,e,n,i,r){this.changes=t,this.effects=e,this.mapped=n,this.startSelection=i,this.selectionsAfter=r}setSelAfter(t){return new A(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,n;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(t=>t.toJSON())}}static fromJSON(t){return new A(t.changes&&o.as.fromJSON(t.changes),[],t.mapped&&o.n0.fromJSON(t.mapped),t.startSelection&&o.jT.fromJSON(t.startSelection),t.selectionsAfter.map(o.jT.fromJSON))}static fromTransaction(t,e){let n=I;for(let i of t.startState.facet(v)){let r=i(t);r.length&&(n=n.concat(r))}return!n.length&&t.changes.empty?null:new A(t.changes.invert(t.startState.doc),n,void 0,e||t.startState.selection,I)}static selection(t){return new A(void 0,I,void 0,void 0,t)}}function Q(t,e,n,i){let r=t.slice(e+1>n+20?e-n-1:0,e);return r.push(i),r}function T(t,e){return t.length?e.length?t.concat(e):t:e}let I=[];function D(t,e){if(!t.length)return[A.selection([e])];{let n=t[t.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(e)?t:(i.push(e),Q(t,t.length-1,1e9,n.setSelAfter(i)))}}function R(t,e){if(!t.length)return t;let n=t.length,i=I;for(;n;){let r=function(t,e,n){let i=T(t.selectionsAfter.length?t.selectionsAfter.map(t=>t.map(e)):I,n);if(!t.changes)return A.selection(i);let r=t.changes.map(e),s=e.mapDesc(t.changes,!0),l=t.mapped?t.mapped.composeDesc(s):s;return new A(r,o.Py.mapEffects(t.effects,e),l,t.startSelection.map(s),i)}(t[n-1],e,i);if(r.changes&&!r.changes.empty||r.effects.length){let s=t.slice(0,n);return s[n-1]=r,s}e=r.mapped,n--,i=r.selectionsAfter}return i.length?[A.selection(i)]:I}let M=/^(input\.type|delete)($|\.)/;class ${constructor(t,e,n=0,i){this.done=t,this.undone=e,this.prevTime=n,this.prevUserEvent=i}isolate(){return this.prevTime?new $(this.done,this.undone):this}addChanges(t,e,n,i,r){var s,o;let l,a,h=this.done,c=h[h.length-1];return h=c&&c.changes&&!c.changes.empty&&t.changes&&(!n||M.test(n))&&(!c.selectionsAfter.length&&e-this.prevTimel.push(t,e)),o.iterChangedRanges((t,e,n,i)=>{for(let r=0;r=s&&n<=o&&(a=!0)}}),a)||"input.type.compose"==n)?Q(h,h.length-1,r,new A(t.changes.compose(c.changes),T(t.effects,c.effects),c.mapped,c.startSelection,I)):Q(h,h.length,r,t),new $(h,I,e,n)}addSelection(t,e,n,i){var r;let s=this.done.length?this.done[this.done.length-1].selectionsAfter:I;return s.length>0&&e-this.prevTimee.empty!=t.ranges[n].empty).length?this:new $(D(this.done,t),this.undone,e,n)}addMapping(t){return new $(R(this.done,t),R(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,e,n){let i=0==t?this.done:this.undone;if(0==i.length)return null;let r=i[i.length-1];if(n&&r.selectionsAfter.length){var s;let o,l;return e.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:k.of({side:t,rest:(o=(s=i)[s.length-1],(l=s.slice())[s.length-1]=o.setSelAfter(o.selectionsAfter.slice(0,o.selectionsAfter.length-1)),l)}),userEvent:0==t?"select.undo":"select.redo",scrollIntoView:!0})}if(!r.changes)return null;{let a=1==i.length?I:i.slice(0,i.length-1);return r.mapped&&(a=R(a,r.mapped)),e.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:k.of({side:t,rest:a}),filter:!1,userEvent:0==t?"undo":"redo",scrollIntoView:!0})}}}$.empty=new $(I,I);let N=[{key:"Mod-z",run:w,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:S,preventDefault:!0},{linux:"Ctrl-Shift-z",run:S,preventDefault:!0},{key:"Mod-u",run:P,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:C,preventDefault:!0}];function E(t,e){return o.jT.create(t.ranges.map(e),t.mainIndex)}function z(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function B({state:t,dispatch:e},n){let i=E(t.selection,n);return!i.eq(t.selection)&&(e(z(t,i)),!0)}function W(t,e){return o.jT.cursor(e?t.to:t.from)}function J(t,e){return B(t,n=>n.empty?t.moveByChar(n,e):W(n,e))}function L(t){return t.textDirectionAt(t.state.selection.main.head)==l.Nm.LTR}let j=t=>J(t,!L(t)),F=t=>J(t,L(t));function _(t,e){return B(t,n=>n.empty?t.moveByGroup(n,e):W(n,e))}let U=t=>_(t,!L(t)),X=t=>_(t,L(t));function q(t,e,n){let i,r,s=(0,a.qz)(t).resolveInner(e.head),l=n?h.md.closedBy:h.md.openedBy;for(let c=e.head;;){let u=n?s.childAfter(c):s.childBefore(c);if(!u)break;!function(t,e,n){if(e.type.prop(n))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}(t,u,l)?c=n?u.to:u.from:s=u}return r=s.type.prop(l)&&(i=n?(0,a.Um)(t,s.from,1):(0,a.Um)(t,s.to,-1))&&i.matched?n?i.end.to:i.end.from:n?s.to:s.from,o.jT.cursor(r,n?-1:1)}let V=t=>B(t,e=>q(t.state,e,!L(t))),G=t=>B(t,e=>q(t.state,e,L(t)));function Z(t,e){return B(t,n=>{if(!n.empty)return W(n,e);let i=t.moveVertically(n,e);return i.head!=n.head?i:t.moveToLineBoundary(n,e)})}let Y=t=>Z(t,!1),K=t=>Z(t,!0);function H(t){return Math.max(t.defaultLineHeight,Math.min(t.dom.clientHeight,innerHeight)-5)}function tt(t,e){let n,{state:i}=t,r=E(i.selection,n=>n.empty?t.moveVertically(n,e,H(t)):W(n,e));if(r.eq(i.selection))return!1;let s=t.coordsAtPos(i.selection.main.head),o=t.scrollDOM.getBoundingClientRect();return s&&s.top>o.top&&s.bottomtt(t,!1),tn=t=>tt(t,!0);function ti(t,e,n){let i=t.lineBlockAt(e.head),r=t.moveToLineBoundary(e,n);if(r.head==e.head&&r.head!=(n?i.to:i.from)&&(r=t.moveToLineBoundary(e,n,!1)),!n&&r.head==i.from&&i.length){let s=/^\s*/.exec(t.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;s&&e.head!=i.from+s&&(r=o.jT.cursor(i.from+s))}return r}let tr=t=>B(t,e=>ti(t,e,!0)),ts=t=>B(t,e=>ti(t,e,!1)),to=t=>B(t,e=>ti(t,e,!L(t))),tl=t=>B(t,e=>ti(t,e,L(t))),ta=t=>B(t,e=>o.jT.cursor(t.lineBlockAt(e.head).from,1)),th=t=>B(t,e=>o.jT.cursor(t.lineBlockAt(e.head).to,-1)),tc=({state:t,dispatch:e})=>{let n,i;return n=!1,i=E(t.selection,e=>{let i=(0,a.Um)(t,e.head,-1)||(0,a.Um)(t,e.head,1)||e.head>0&&(0,a.Um)(t,e.head-1,1)||e.head{let n=e(t);return o.jT.range(t.anchor,n.head,n.goalColumn)});return!n.eq(t.state.selection)&&(t.dispatch(z(t.state,n)),!0)}function tf(t,e){return tu(t,n=>t.moveByChar(n,e))}let td=t=>tf(t,!L(t)),tp=t=>tf(t,L(t));function tm(t,e){return tu(t,n=>t.moveByGroup(n,e))}let tg=t=>tm(t,!L(t)),tk=t=>tm(t,L(t)),ty=t=>tu(t,e=>q(t.state,e,!L(t))),tv=t=>tu(t,e=>q(t.state,e,L(t)));function tb(t,e){return tu(t,n=>t.moveVertically(n,e))}let tO=t=>tb(t,!1),tx=t=>tb(t,!0);function tw(t,e){return tu(t,n=>t.moveVertically(n,e,H(t)))}let tS=t=>tw(t,!1),tP=t=>tw(t,!0),tC=t=>tu(t,e=>ti(t,e,!0)),tA=t=>tu(t,e=>ti(t,e,!1)),tQ=t=>tu(t,e=>ti(t,e,!L(t))),tT=t=>tu(t,e=>ti(t,e,L(t))),tI=t=>tu(t,e=>o.jT.cursor(t.lineBlockAt(e.head).from)),tD=t=>tu(t,e=>o.jT.cursor(t.lineBlockAt(e.head).to)),tR=({state:t,dispatch:e})=>(e(z(t,{anchor:0})),!0),tM=({state:t,dispatch:e})=>(e(z(t,{anchor:t.doc.length})),!0),t$=({state:t,dispatch:e})=>(e(z(t,{anchor:t.selection.main.anchor,head:0})),!0),tN=({state:t,dispatch:e})=>(e(z(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),tE=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),tz=({state:t,dispatch:e})=>{let n=tK(t).map(({from:e,to:n})=>o.jT.range(e,Math.min(n+1,t.doc.length)));return e(t.update({selection:o.jT.create(n),userEvent:"select"})),!0},tB=({state:t,dispatch:e})=>{let n=E(t.selection,e=>{var n;let i=(0,a.qz)(t).resolveInner(e.head,1);for(;!(i.from=e.to||i.to>e.to&&i.from<=e.from||!(null===(n=i.parent)||void 0===n?void 0:n.parent));)i=i.parent;return o.jT.range(i.to,i.from)});return e(z(t,n)),!0},tW=({state:t,dispatch:e})=>{let n=t.selection,i=null;return n.ranges.length>1?i=o.jT.create([n.main]):n.main.empty||(i=o.jT.create([o.jT.cursor(n.main.head)])),!!i&&(e(z(t,i)),!0)};function tJ(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:i}=t,r=i.changeByRange(i=>{let{from:r,to:s}=i;if(r==s){let l=e(r);lr&&(n="delete.forward",l=tL(t,l,!0)),r=Math.min(r,l),s=Math.max(s,l)}else r=tL(t,r,!1),s=tL(t,s,!0);return r==s?{range:i}:{changes:{from:r,to:s},range:o.jT.cursor(r)}});return!r.changes.empty&&(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?l.tk.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function tL(t,e,n){if(t instanceof l.tk)for(let i of t.state.facet(l.tk.atomicRanges).map(e=>e(t)))i.between(e,e,(t,i)=>{te&&(e=n?i:t)});return e}let tj=(t,e)=>tJ(t,n=>{let{state:i}=t,r=i.doc.lineAt(n),s,l;if(!e&&n>r.from&&ntj(t,!1),t_=t=>tj(t,!0),tU=(t,e)=>tJ(t,n=>{let i=n,{state:r}=t,s=r.doc.lineAt(i),l=r.charCategorizer(i);for(let a=null;;){if(i==(e?s.to:s.from)){i==n&&s.number!=(e?r.doc.lines:1)&&(i+=e?1:-1);break}let h=(0,o.cp)(s.text,i-s.from,e)+s.from,c=s.text.slice(Math.min(i,h)-s.from,Math.max(i,h)-s.from),u=l(c);if(null!=a&&u!=a)break;(" "!=c||i!=n)&&(a=u),i=h}return i}),tX=t=>tU(t,!1),tq=t=>tU(t,!0),tV=t=>tJ(t,e=>{let n=t.lineBlockAt(e).to;return etJ(t,e=>{let n=t.lineBlockAt(e).from;return e>n?n:Math.max(0,e-1)}),tZ=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:o.xv.of(["",""])},range:o.jT.cursor(t.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},tY=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let n=e.from,i=t.doc.lineAt(n),r=n==i.from?n-1:(0,o.cp)(i.text,n-i.from,!1)+i.from,s=n==i.to?n+1:(0,o.cp)(i.text,n-i.from,!0)+i.from;return{changes:{from:r,to:s,insert:t.doc.slice(n,s).append(t.doc.slice(r,n))},range:o.jT.cursor(s)}});return!n.changes.empty&&(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function tK(t){let e=[],n=-1;for(let i of t.selection.ranges){let r=t.doc.lineAt(i.from),s=t.doc.lineAt(i.to);if(i.empty||i.to!=s.from||(s=t.doc.lineAt(i.to-1)),n>=r.number){let o=e[e.length-1];o.to=s.to,o.ranges.push(i)}else e.push({from:r.from,to:s.to,ranges:[i]});n=s.number+1}return e}function tH(t,e,n){if(t.readOnly)return!1;let i=[],r=[];for(let s of tK(t)){if(n?s.to==t.doc.length:0==s.from)continue;let l=t.doc.lineAt(n?s.to+1:s.from-1),a=l.length+1;if(n)for(let h of(i.push({from:s.to,to:l.to},{from:s.from,insert:l.text+t.lineBreak}),s.ranges))r.push(o.jT.range(Math.min(t.doc.length,h.anchor+a),Math.min(t.doc.length,h.head+a)));else for(let c of(i.push({from:l.from,to:s.from},{from:s.to,insert:t.lineBreak+l.text}),s.ranges))r.push(o.jT.range(c.anchor-a,c.head-a))}return!!i.length&&(e(t.update({changes:i,scrollIntoView:!0,selection:o.jT.create(r,t.selection.mainIndex),userEvent:"move.line"})),!0)}let t0=({state:t,dispatch:e})=>tH(t,e,!1),t1=({state:t,dispatch:e})=>tH(t,e,!0);function t2(t,e,n){if(t.readOnly)return!1;let i=[];for(let r of tK(t))n?i.push({from:r.from,insert:t.doc.slice(r.from,r.to)+t.lineBreak}):i.push({from:r.to,insert:t.lineBreak+t.doc.slice(r.from,r.to)});return e(t.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}let t5=({state:t,dispatch:e})=>t2(t,e,!1),t3=({state:t,dispatch:e})=>t2(t,e,!0),t4=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(tK(e).map(({from:t,to:n})=>(t>0?t--:nt.moveVertically(e,!0)).map(n);return t.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0},t9=t8(!1),t6=t8(!0);function t8(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let i=e.changeByRange(n=>{let{from:i,to:r}=n,s=e.doc.lineAt(i),l=!t&&i==r&&function(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=(0,a.qz)(t).resolveInner(e),i=n.childBefore(e),r=n.childAfter(e),s;return i&&r&&i.to<=e&&r.from>=e&&(s=i.type.prop(h.md.closedBy))&&s.indexOf(r.name)>-1&&t.doc.lineAt(i.to).from==t.doc.lineAt(r.from).from?{from:i.to,to:r.from}:null}(e,i);t&&(i=r=(r<=s.to?s:e.doc.lineAt(r)).to);let c=new a.Gn(e,{simulateBreak:i,simulateDoubleBreak:!!l}),u=(0,a.K0)(c,i);for(null==u&&(u=/^\s*/.exec(e.doc.lineAt(i).text)[0].length);rs.from&&i{let r=[];for(let s=i.from;s<=i.to;){let l=t.doc.lineAt(s);l.number>n&&(i.empty||i.to>l.from)&&(e(l,r,i),n=l.number),s=l.to+1}let a=t.changes(r);return{changes:r,range:o.jT.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}})}let et=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),i=new a.Gn(t,{overrideIndentation(t){let e=n[t];return null==e?-1:e}}),r=t7(t,(e,r,s)=>{let o=(0,a.K0)(i,e.from);if(null==o)return;/\S/.test(e.text)||(o=0);let l=/^\s*/.exec(e.text)[0],h=(0,a.SS)(t,o);(l!=h||s.from!t.readOnly&&(e(t.update(t7(t,(e,n)=>{n.push({from:e.from,insert:t.facet(a.c)})}),{userEvent:"input.indent"})),!0),en=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(t7(t,(e,n)=>{let i=/^\s*/.exec(e.text)[0];if(!i)return;let r=(0,o.IS)(i,t.tabSize),s=0,l=(0,a.SS)(t,Math.max(0,r-(0,a.y1)(t)));for(;s({mac:t.key,run:t.run,shift:t.shift}))),er=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:V,shift:ty},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:G,shift:tv},{key:"Alt-ArrowUp",run:t0},{key:"Shift-Alt-ArrowUp",run:t5},{key:"Alt-ArrowDown",run:t1},{key:"Shift-Alt-ArrowDown",run:t3},{key:"Escape",run:tW},{key:"Mod-Enter",run:t6},{key:"Alt-l",mac:"Ctrl-l",run:tz},{key:"Mod-i",run:tB,preventDefault:!0},{key:"Mod-[",run:en},{key:"Mod-]",run:ee},{key:"Mod-Alt-\\",run:et},{key:"Shift-Mod-k",run:t4},{key:"Shift-Mod-\\",run:tc},{key:"Mod-/",run:c},{key:"Alt-A",run:d}].concat(ei),es={key:"Tab",run:ee,shift:en};function eo(){var t=arguments[0];"string"==typeof t&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i];"string"==typeof r?t.setAttribute(i,r):null!=r&&(t[i]=r)}e++}for(;et.normalize("NFKD"):t=>t;class ea{constructor(t,e,n=0,i=t.length,r,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(n,i),this.bufferStart=n,this.normalize=r?t=>r(el(t)):el,this.query=this.normalize(e)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return -1;this.bufferPos=0,this.buffer=this.iter.value}return(0,o.gm)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let e=(0,o.bg)(t),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,o.nZ)(t);let i=this.normalize(e);for(let r=0,s=n;;r++){let l=i.charCodeAt(r),a=this.match(l,s);if(a)return this.value=a,this;if(r==i.length-1)break;s==n&&rthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){let n=this.curLineStart+e.index,i=n+e[0].length;if(this.matchPos=em(this.text,i+(n==i?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,i,e)))return this.value={from:n,to:i,match:e},this;t=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||i.to<=e){let r=new ed(e,t.sliceString(e,n));return ef.set(t,r),r}if(i.from==e&&i.to==n)return i;let{text:s,from:o}=i;return o>e&&(s=t.sliceString(e,o)+s,o=e),i.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==t&&(this.re.lastIndex=t+1,e=this.re.exec(this.flat.text)),e){let n=this.flat.from+e.index,i=n+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,i,e)))return this.value={from:n,to:i,match:e},this.matchPos=em(this.text,i+(n==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=ed.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function em(t,e){if(e>=t.length)return e;let n=t.lineAt(e),i;for(;e=56320&&i<57344;)e++;return e}function eg(t){let e=eo("input",{class:"cm-textfield",name:"line"}),n=eo("form",{class:"cm-gotoLine",onkeydown(e){27==e.keyCode?(e.preventDefault(),t.dispatch({effects:ek.of(!1)}),t.focus()):13==e.keyCode&&(e.preventDefault(),i())},onsubmit(t){t.preventDefault(),i()}},eo("label",t.state.phrase("Go to line"),": ",e)," ",eo("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function i(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(e.value);if(!n)return;let{state:i}=t,r=i.doc.lineAt(i.selection.main.head),[,s,l,a,h]=n,c=a?+a.slice(1):0,u=l?+l:r.number;if(l&&h){let f=u/100;s&&(f=f*("-"==s?-1:1)+r.number/i.doc.lines),u=Math.round(i.doc.lines*f)}else l&&s&&(u=u*("-"==s?-1:1)+r.number);let d=i.doc.line(Math.max(1,Math.min(i.doc.lines,u)));t.dispatch({effects:ek.of(!1),selection:o.jT.cursor(d.from+Math.max(0,Math.min(c,d.length))),scrollIntoView:!0}),t.focus()}return{dom:n}}"undefined"!=typeof Symbol&&(eu.prototype[Symbol.iterator]=ep.prototype[Symbol.iterator]=function(){return this});let ek=o.Py.define(),ey=o.QQ.define({create:()=>!0,update(t,e){for(let n of e.effects)n.is(ek)&&(t=n.value);return t},provide:t=>l.mH.from(t,t=>t?eg:null)}),ev=t=>{let e=(0,l.Sd)(t,eg);if(!e){let n=[ek.of(!0)];null==t.state.field(ey,!1)&&n.push(o.Py.appendConfig.of([ey,eb])),t.dispatch({effects:n}),e=(0,l.Sd)(t,eg)}return e&&e.dom.querySelector("input").focus(),!0},eb=l.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),eO={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},ex=o.r$.define({combine:t=>(0,o.BO)(t,eO,{highlightWordAroundCursor:(t,e)=>t||e,minSelectionLength:Math.min,maxMatches:Math.min})}),ew=l.p.mark({class:"cm-selectionMatch"}),eS=l.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function eP(t,e,n,i){return(0==n||t(e.sliceDoc(n-1,n))!=o.D0.Word)&&(i==e.doc.length||t(e.sliceDoc(i,i+1))!=o.D0.Word)}let eC=l.lg.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(ex),{state:n}=t,i=n.selection;if(i.ranges.length>1)return l.p.none;let r=i.main,s,a=null;if(r.empty){if(!e.highlightWordAroundCursor)return l.p.none;let h=n.wordAt(r.head);if(!h)return l.p.none;a=n.charCategorizer(r.head),s=n.sliceDoc(h.from,h.to)}else{let c=r.to-r.from;if(c200)return l.p.none;if(e.wholeWords){var u,f,d;if(s=n.sliceDoc(r.from,r.to),!(eP(a=n.charCategorizer(r.head),n,r.from,r.to)&&(u=a,f=r.from,d=r.to,u(n.sliceDoc(f,f+1))==o.D0.Word&&u(n.sliceDoc(d-1,d))==o.D0.Word)))return l.p.none}else if(!(s=n.sliceDoc(r.from,r.to).trim()))return l.p.none}let p=[];for(let m of t.visibleRanges){let g=new ea(n.doc,s,m.from,m.to);for(;!g.next().done;){let{from:k,to:y}=g.value;if((!a||eP(a,n,k,y))&&(r.empty&&k<=r.from&&y>=r.to?p.push(eS.range(k,y)):(k>=r.to||y<=r.from)&&p.push(ew.range(k,y)),p.length>e.maxMatches))return l.p.none}}return l.p.set(p)}},{decorations:t=>t.decorations}),eA=l.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),eQ=({state:t,dispatch:e})=>{let{selection:n}=t,i=o.jT.create(n.ranges.map(e=>t.wordAt(e.head)||o.jT.cursor(e.head)),n.mainIndex);return!i.eq(n)&&(e(t.update({selection:i})),!0)},eT=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(t=>t.from===t.to))return eQ({state:t,dispatch:e});let i=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(e=>t.sliceDoc(e.from,e.to)!=i))return!1;let r=function(t,e){let{main:n,ranges:i}=t.selection,r=t.wordAt(n.head),s=r&&r.from==n.from&&r.to==n.to;for(let o=!1,l=new ea(t.doc,e,i[i.length-1].to);;)if(l.next(),l.done){if(o)return null;l=new ea(t.doc,e,0,Math.max(0,i[i.length-1].from-1)),o=!0}else{if(o&&i.some(t=>t.from==l.value.from))continue;if(s){let a=t.wordAt(l.value.from);if(!a||a.from!=l.value.from||a.to!=l.value.to)continue}return l.value}}(t,i);return!!r&&(e(t.update({selection:t.selection.addRange(o.jT.range(r.from,r.to),!1),effects:l.tk.scrollIntoView(r.to)})),!0)},eI=o.r$.define({combine:t=>(0,o.BO)(t,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:t=>new e3(t)})});class eD{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||function(t){try{return RegExp(t,ec),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,(t,e)=>"n"==e?"\n":"r"==e?"\r":"t"==e?" ":"\\")}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord}create(){return this.regexp?new eB(this):new e$(this)}getCursor(t,e=0,n){let i=t.doc?t:o.yy.create({doc:t});return null==n&&(n=i.doc.length),this.regexp?eN(this,i,e,n):eM(this,i,e,n)}}class eR{constructor(t){this.spec=t}}function eM(t,e,n,i){var r,s;return new ea(e.doc,t.unquoted,n,i,t.caseSensitive?void 0:t=>t.toLowerCase(),t.wholeWord?(r=e.doc,s=e.charCategorizer(e.selection.main.head),(t,e,n,i)=>((i>t||i+n.length=e)return null;i.push(n.value)}return i}highlight(t,e,n,i){let r=eM(this.spec,t,Math.max(0,e-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,t.doc.length));for(;!r.next().done;)i(r.value.from,r.value.to)}}function eN(t,e,n,i){var r;return new eu(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(r=e.charCategorizer(e.selection.main.head),(t,e,n)=>!n[0].length||(r(eE(n.input,n.index))!=o.D0.Word||r(ez(n.input,n.index))!=o.D0.Word)&&(r(ez(n.input,n.index+n[0].length))!=o.D0.Word||r(eE(n.input,n.index+n[0].length))!=o.D0.Word)):void 0},n,i)}function eE(t,e){return t.slice((0,o.cp)(t,e,!1),e)}function ez(t,e){return t.slice(e,(0,o.cp)(t,e))}class eB extends eR{nextMatch(t,e,n){let i=eN(this.spec,t,n,t.doc.length).next();return i.done&&(i=eN(this.spec,t,0,e).next()),i.done?null:i.value}prevMatchInRange(t,e,n){for(let i=1;;i++){let r=Math.max(e,n-1e4*i),s=eN(this.spec,t,r,n),o=null;for(;!s.next().done;)o=s.value;if(o&&(r==e||o.from>r+10))return o;if(r==e)return null}}prevMatch(t,e,n){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,n,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,(e,n)=>"$"==n?"$":"&"==n?t.match[0]:"0"!=n&&+n=e)return null;i.push(n.value)}return i}highlight(t,e,n,i){let r=eN(this.spec,t,Math.max(0,e-250),Math.min(n+250,t.doc.length));for(;!r.next().done;)i(r.value.from,r.value.to)}}let eW=o.Py.define(),eJ=o.Py.define(),eL=o.QQ.define({create:t=>new ej(e0(t).create(),null),update(t,e){for(let n of e.effects)n.is(eW)?t=new ej(n.value.create(),t.panel):n.is(eJ)&&(t=new ej(t.query,n.value?eH:null));return t},provide:t=>l.mH.from(t,t=>t.panel)});class ej{constructor(t,e){this.query=t,this.panel=e}}let eF=l.p.mark({class:"cm-searchMatch"}),e_=l.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),eU=l.lg.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(eL))}update(t){let e=t.state.field(eL);(e!=t.startState.field(eL)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return l.p.none;let{view:n}=this,i=new o.f_;for(let r=0,s=n.visibleRanges,a=s.length;rs[r+1].from-500;)c=s[++r].to;t.highlight(n.state,h,c,(t,e)=>{let r=n.state.selection.ranges.some(n=>n.from==t&&n.to==e);i.add(t,e,r?e_:eF)})}return i.finish()}},{decorations:t=>t.decorations});function eX(t){return e=>{let n=e.state.field(eL,!1);return n&&n.query.spec.valid?t(e,n):e1(e)}}let eq=eX((t,{query:e})=>{let{to:n}=t.state.selection.main,i=e.nextMatch(t.state,n,n);return!!i&&(t.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:e6(t,i),userEvent:"select.search"}),!0)}),eV=eX((t,{query:e})=>{let{state:n}=t,{from:i}=n.selection.main,r=e.prevMatch(n,i,i);return!!r&&(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:e6(t,r),userEvent:"select.search"}),!0)}),eG=eX((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!!n&&!!n.length&&(t.dispatch({selection:o.jT.create(n.map(t=>o.jT.range(t.from,t.to))),userEvent:"select.search.matches"}),!0)}),eZ=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:i,to:r}=n.main,s=[],l=0;for(let a=new ea(t.doc,t.sliceDoc(i,r));!a.next().done;){if(s.length>1e3)return!1;a.value.from==i&&(l=s.length),s.push(o.jT.range(a.value.from,a.value.to))}return e(t.update({selection:o.jT.create(s,l),userEvent:"select.search.matches"})),!0},eY=eX((t,{query:e})=>{let{state:n}=t,{from:i,to:r}=n.selection.main;if(n.readOnly)return!1;let s=e.nextMatch(n,i,i);if(!s)return!1;let o=[],a,h,c=[];if(s.from==i&&s.to==r&&(h=n.toText(e.getReplacement(s)),o.push({from:s.from,to:s.to,insert:h}),s=e.nextMatch(n,s.from,s.to),c.push(l.tk.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(i).number)+"."))),s){let u=0==o.length||o[0].from>=s.to?0:s.to-s.from-h.length;a={anchor:s.from-u,head:s.to-u},c.push(e6(t,s))}return t.dispatch({changes:o,selection:a,scrollIntoView:!!a,effects:c,userEvent:"input.replace"}),!0}),eK=eX((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(t=>{let{from:n,to:i}=t;return{from:n,to:i,insert:e.getReplacement(t)}});if(!n.length)return!1;let i=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:l.tk.announce.of(i),userEvent:"input.replace.all"}),!0});function eH(t){return t.state.facet(eI).createPanel(t)}function e0(t,e){var n,i,r,s;let o=t.selection.main,l=o.empty||o.to>o.from+100?"":t.sliceDoc(o.from,o.to);if(e&&!l)return e;let a=t.facet(eI);return new eD({search:(null!==(n=null==e?void 0:e.literal)&&void 0!==n?n:a.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(i=null==e?void 0:e.caseSensitive)&&void 0!==i?i:a.caseSensitive,literal:null!==(r=null==e?void 0:e.literal)&&void 0!==r?r:a.literal,wholeWord:null!==(s=null==e?void 0:e.wholeWord)&&void 0!==s?s:a.wholeWord})}let e1=t=>{let e=t.state.field(eL,!1);if(e&&e.panel){let n=(0,l.Sd)(t,eH);if(!n)return!1;let i=n.dom.querySelector("[main-field]");if(i&&i!=t.root.activeElement){let r=e0(t.state,e.query.spec);r.valid&&t.dispatch({effects:eW.of(r)}),i.focus(),i.select()}}else t.dispatch({effects:[eJ.of(!0),e?eW.of(e0(t.state,e.query.spec)):o.Py.appendConfig.of(e7)]});return!0},e2=t=>{let e=t.state.field(eL,!1);if(!e||!e.panel)return!1;let n=(0,l.Sd)(t,eH);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:eJ.of(!1)}),!0},e5=[{key:"Mod-f",run:e1,scope:"editor search-panel"},{key:"F3",run:eq,shift:eV,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:eq,shift:eV,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:e2,scope:"editor search-panel"},{key:"Mod-Shift-l",run:eZ},{key:"Alt-g",run:ev},{key:"Mod-d",run:eT,preventDefault:!0}];class e3{constructor(t){this.view=t;let e=this.query=t.state.field(eL).query.spec;function n(t,e,n){return eo("button",{class:"cm-button",name:t,onclick:e,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=eo("input",{value:e.search,placeholder:e4(t,"Find"),"aria-label":e4(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=eo("input",{value:e.replace,placeholder:e4(t,"Replace"),"aria-label":e4(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=eo("input",{type:"checkbox",name:"case",form:"",checked:e.caseSensitive,onchange:this.commit}),this.reField=eo("input",{type:"checkbox",name:"re",form:"",checked:e.regexp,onchange:this.commit}),this.wordField=eo("input",{type:"checkbox",name:"word",form:"",checked:e.wholeWord,onchange:this.commit}),this.dom=eo("div",{onkeydown:t=>this.keydown(t),class:"cm-search"},[this.searchField,n("next",()=>eq(t),[e4(t,"next")]),n("prev",()=>eV(t),[e4(t,"previous")]),n("select",()=>eG(t),[e4(t,"all")]),eo("label",null,[this.caseField,e4(t,"match case")]),eo("label",null,[this.reField,e4(t,"regexp")]),eo("label",null,[this.wordField,e4(t,"by word")]),...t.state.readOnly?[]:[eo("br"),this.replaceField,n("replace",()=>eY(t),[e4(t,"replace")]),n("replaceAll",()=>eK(t),[e4(t,"replace all")])],eo("button",{name:"close",onclick:()=>e2(t),"aria-label":e4(t,"close"),type:"button"},["\xd7"])])}commit(){let t=new eD({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:eW.of(t)}))}keydown(t){(0,l.$1)(this.view,t,"search-panel")?t.preventDefault():13==t.keyCode&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?eV:eq)(this.view)):13==t.keyCode&&t.target==this.replaceField&&(t.preventDefault(),eY(this.view))}update(t){for(let e of t.transactions)for(let n of e.effects)n.is(eW)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(eI).top}}function e4(t,e){return t.state.phrase(e)}let e9=/[\s\.,:;?!]/;function e6(t,{from:e,to:n}){let i=t.state.doc.lineAt(e),r=t.state.doc.lineAt(n).to,s=Math.max(i.from,e-30),o=Math.min(r,n+30),a=t.state.sliceDoc(s,o);if(s!=i.from){for(let h=0;h<30;h++)if(!e9.test(a[h+1])&&e9.test(a[h])){a=a.slice(h);break}}if(o!=r){for(let c=a.length-1;c>a.length-30;c--)if(!e9.test(a[c-1])&&e9.test(a[c])){a=a.slice(0,c);break}}return l.tk.announce.of(`${t.state.phrase("current match")}. ${a} ${t.state.phrase("on line")} ${i.number}.`)}let e8=l.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),e7=[eL,o.Wl.lowest(eU),e8];var nt=n(34790);class ne{constructor(t,e,n){this.from=t,this.to=e,this.diagnostic=n}}class nn{constructor(t,e,n){this.diagnostics=t,this.panel=e,this.selected=n}static init(t,e,n){let i=t,r=n.facet(nk).markerFilter;r&&(i=r(i));let s=l.p.set(i.map(t=>t.from==t.to||t.from==t.to-1&&n.doc.lineAt(t.from).to==t.from?l.p.widget({widget:new nb(t),diagnostic:t}).range(t.from):l.p.mark({attributes:{class:"cm-lintRange cm-lintRange-"+t.severity},diagnostic:t}).range(t.from,t.to)),!0);return new nn(s,e,ni(s))}}function ni(t,e=null,n=0){let i=null;return t.between(n,1e9,(t,n,{spec:r})=>{if(!e||r.diagnostic==e)return i=new ne(t,n,r.diagnostic),!1}),i}function nr(t,e){return!!(t.effects.some(t=>t.is(no))||t.changes.touchesRange(e.pos))}function ns(t,e){return t.field(nh,!1)?e:e.concat(o.Py.appendConfig.of([nh,l.tk.decorations.compute([nh],t=>{let{selected:e,panel:n}=t.field(nh);return e&&n&&e.from!=e.to?l.p.set([nc.range(e.from,e.to)]):l.p.none}),(0,l.bF)(nu,{hideOn:nr}),nS]))}let no=o.Py.define(),nl=o.Py.define(),na=o.Py.define(),nh=o.QQ.define({create:()=>new nn(l.p.none,null,null),update(t,e){if(e.docChanged){let n=t.diagnostics.map(e.changes),i=null;if(t.selected){let r=e.changes.mapPos(t.selected.from,1);i=ni(n,t.selected.diagnostic,r)||ni(n,null,r)}t=new nn(n,t.panel,i)}for(let s of e.effects)s.is(no)?t=nn.init(s.value,t.panel,e.state):s.is(nl)?t=new nn(t.diagnostics,s.value?nx.open:null,t.selected):s.is(na)&&(t=new nn(t.diagnostics,t.panel,s.value));return t},provide:t=>[l.mH.from(t,t=>t.panel),l.tk.decorations.from(t,t=>t.diagnostics)]}),nc=l.p.mark({class:"cm-lintRange cm-lintRange-active"});function nu(t,e,n){let{diagnostics:i}=t.state.field(nh),r=[],s=2e8,o=0;i.between(e-(n<0?1:0),e+(n>0?1:0),(t,i,{spec:l})=>{e>=t&&e<=i&&(t==i||(e>t||n>0)&&(e({dom:function(t,e){return eo("ul",{class:"cm-tooltip-lint"},e.map(e=>nv(t,e,!1)))}(t,r)})}:null}let nf=t=>{let e=t.state.field(nh,!1);e&&e.panel||t.dispatch({effects:ns(t.state,[nl.of(!0)])});let n=(0,l.Sd)(t,nx.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},nd=t=>{let e=t.state.field(nh,!1);return!!e&&!!e.panel&&(t.dispatch({effects:nl.of(!1)}),!0)},np=t=>{let e=t.state.field(nh,!1);if(!e)return!1;let n=t.state.selection.main,i=e.diagnostics.iter(n.to+1);return(!!i.value||!!(i=e.diagnostics.iter(0)).value&&(i.from!=n.from||i.to!=n.to))&&(t.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)},nm=[{key:"Mod-Shift-m",run:nf,preventDefault:!0},{key:"F8",run:np}],ng=l.lg.fromClass(class{constructor(t){this.view=t,this.timeout=-1,this.set=!0;let{delay:e}=t.state.facet(nk);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){let t=Date.now();if(tPromise.resolve(t(this.view)))).then(t=>{let n=t.reduce((t,e)=>t.concat(e));this.view.state.doc==e.doc&&this.view.dispatch({effects:ns(this.view.state,[no.of(n)])})},t=>{(0,l.OO)(this.view.state,t)})}}update(t){let e=t.state.facet(nk);(t.docChanged||e!=t.startState.facet(nk))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),nk=o.r$.define({combine:t=>Object.assign({sources:t.map(t=>t.source)},(0,o.BO)(t.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null})),enables:ng});function ny(t){let e=[];if(t)t:for(let{name:n}of t){for(let i=0;it.toLowerCase()==r.toLowerCase())){e.push(r);continue t}}e.push("")}return e}function nv(t,e,n){var i;let r=n?ny(e.actions):[];return eo("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},eo("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),null===(i=e.actions)||void 0===i?void 0:i.map((n,i)=>{let s=i=>{i.preventDefault();let r=ni(t.state.field(nh).diagnostics,e);r&&n.apply(t,r.from,r.to)},{name:o}=n,l=r[i]?o.indexOf(r[i]):-1,a=l<0?o:[o.slice(0,l),eo("u",o.slice(l,l+1)),o.slice(l+1)];return eo("button",{type:"button",class:"cm-diagnosticAction",onclick:s,onmousedown:s,"aria-label":` Action: ${o}${l<0?"":` (access key "${r[i]})"`}.`},a)}),e.source&&eo("div",{class:"cm-diagnosticSource"},e.source))}class nb extends l.l9{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return eo("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class nO{constructor(t,e){this.diagnostic=e,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=nv(t,e,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class nx{constructor(t){this.view=t,this.items=[];let e=e=>{if(27==e.keyCode)nd(this.view),this.view.focus();else if(38==e.keyCode||33==e.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==e.keyCode||34==e.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==e.keyCode)this.moveSelection(0);else if(35==e.keyCode)this.moveSelection(this.items.length-1);else if(13==e.keyCode)this.view.focus();else{if(!(e.keyCode>=65)||!(e.keyCode<=90)||!(this.selectedIndex>=0))return;let{diagnostic:n}=this.items[this.selectedIndex],i=ny(n.actions);for(let r=0;r{for(let e=0;end(this.view)},"\xd7")),this.update()}get selectedIndex(){let t=this.view.state.field(nh).selected;if(!t)return -1;for(let e=0;e{let l=-1,a;for(let h=n;hn&&(this.items.splice(n,l-n),i=!0)),e&&a.diagnostic==e.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),r=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++});n({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:t,panel:e})=>{t.tope.bottom&&(this.list.scrollTop+=t.bottom-e.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let t=this.list.firstChild;function e(){let e=t;t=e.nextSibling,e.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;t!=n.dom;)e();t=n.dom.nextSibling}else this.list.insertBefore(n.dom,t);for(;t;)e()}moveSelection(t){if(this.selectedIndex<0)return;let e=ni(this.view.state.field(nh).diagnostics,this.items[t].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:na.of(e)})}static open(t){return new nx(t)}}function nw(t){return function(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}(``,'width="6" height="3"')}let nS=l.tk.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:nw("#d11")},".cm-lintRange-warning":{backgroundImage:nw("orange")},".cm-lintRange-info":{backgroundImage:nw("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});l.SJ;let nP=o.Py.define();var nC=function(t){void 0===t&&(t={});var e,n=[];!1!==t.closeBracketsKeymap&&(n=n.concat(nt.GA)),!1!==t.defaultKeymap&&(n=n.concat(er)),!1!==t.searchKeymap&&(n=n.concat(e5)),!1!==t.historyKeymap&&(n=n.concat(N)),!1!==t.foldKeymap&&(n=n.concat(a.e7)),!1!==t.completionKeymap&&(n=n.concat(nt.B1)),!1!==t.lintKeymap&&(n=n.concat(nm));var i=[];if(!1!==t.lineNumbers&&i.push((0,l.Eu)()),!1!==t.highlightActiveLineGutter&&i.push((0,l.HQ)()),!1!==t.highlightSpecialChars&&i.push((0,l.AE)()),!1!==t.history&&i.push(function(t={}){return[O,b.of(t),l.tk.domEventHandlers({beforeinput(t,e){let n="historyUndo"==t.inputType?w:"historyRedo"==t.inputType?S:null;return!!n&&(t.preventDefault(),n(e))}})]}()),!1!==t.foldGutter&&i.push((0,a.mi)()),!1!==t.drawSelection&&i.push((0,l.Uw)()),!1!==t.dropCursor&&i.push((0,l.qr)()),!1!==t.allowMultipleSelections&&i.push(o.yy.allowMultipleSelections.of(!0)),!1!==t.indentOnInput&&i.push((0,a.nY)()),!1!==t.syntaxHighlighting&&i.push((0,a.nF)(a.R_,{fallback:!0})),!1!==t.bracketMatching&&i.push((0,a.n$)()),!1!==t.closeBrackets&&i.push((0,nt.vQ)()),!1!==t.autocompletion&&i.push((0,nt.ys)()),!1!==t.rectangularSelection&&i.push((0,l.Zs)()),!1!==t.crosshairCursor&&i.push((0,l.S2)()),!1!==t.highlightActiveLine&&i.push((0,l.ZO)()),!1!==t.highlightSelectionMatches){let r;i.push((r=[eA,eC],e&&r.push(ex.of(e)),r))}return t.tabSize&&"number"==typeof t.tabSize&&i.push(a.c.of(" ".repeat(t.tabSize))),i.concat([l.$f.of(n.flat())]).filter(Boolean)},nA=n(35524);let nQ="#e06c75",nT="#abb2bf",nI="#7d8799",nD="#d19a66",nR="#2c313a",nM="#282c34",n$="#353a42",nN="#528bff",nE=l.tk.theme({"&":{color:nT,backgroundColor:nM},".cm-content":{caretColor:nN},".cm-cursor, .cm-dropCursor":{borderLeftColor:nN},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:nT},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847",outline:"1px solid #515a6b"},".cm-gutters":{backgroundColor:nM,color:nI,border:"none"},".cm-activeLineGutter":{backgroundColor:nR},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:n$},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:n$,borderBottomColor:n$},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:nR,color:nT}}},{dark:!0}),nz=a.Qf.define([{tag:nA.pJ.keyword,color:"#c678dd"},{tag:[nA.pJ.name,nA.pJ.deleted,nA.pJ.character,nA.pJ.propertyName,nA.pJ.macroName],color:nQ},{tag:[nA.pJ.function(nA.pJ.variableName),nA.pJ.labelName],color:"#61afef"},{tag:[nA.pJ.color,nA.pJ.constant(nA.pJ.name),nA.pJ.standard(nA.pJ.name)],color:nD},{tag:[nA.pJ.definition(nA.pJ.name),nA.pJ.separator],color:nT},{tag:[nA.pJ.typeName,nA.pJ.className,nA.pJ.number,nA.pJ.changed,nA.pJ.annotation,nA.pJ.modifier,nA.pJ.self,nA.pJ.namespace],color:"#e5c07b"},{tag:[nA.pJ.operator,nA.pJ.operatorKeyword,nA.pJ.url,nA.pJ.escape,nA.pJ.regexp,nA.pJ.link,nA.pJ.special(nA.pJ.string)],color:"#56b6c2"},{tag:[nA.pJ.meta,nA.pJ.comment],color:nI},{tag:nA.pJ.strong,fontWeight:"bold"},{tag:nA.pJ.emphasis,fontStyle:"italic"},{tag:nA.pJ.strikethrough,textDecoration:"line-through"},{tag:nA.pJ.link,color:nI,textDecoration:"underline"},{tag:nA.pJ.heading,fontWeight:"bold",color:nQ},{tag:[nA.pJ.atom,nA.pJ.bool,nA.pJ.special(nA.pJ.variableName)],color:nD},{tag:[nA.pJ.processingInstruction,nA.pJ.string,nA.pJ.inserted],color:"#98c379"},{tag:nA.pJ.invalid,color:"#ffffff"}]),nB=[nE,(0,a.nF)(nz)];var nW=t=>({line:t.state.doc.lineAt(t.state.selection.main.from),lineCount:t.state.doc.lines,lineBreak:t.state.lineBreak,length:t.state.doc.length,readOnly:t.state.readOnly,tabSize:t.state.tabSize,selection:t.state.selection,selectionAsSingle:t.state.selection.asSingle().main,ranges:t.state.selection.ranges,selectionCode:t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to),selections:t.state.selection.ranges.map(e=>t.state.sliceDoc(e.from,e.to)),selectedText:t.state.selection.ranges.some(t=>!t.empty)}),nJ=n(85893),nL=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],nj=(0,s.forwardRef)((t,e)=>{var{className:n,value:a="",selection:h,extensions:c=[],onChange:u,onStatistics:f,onCreateEditor:d,onUpdate:p,autoFocus:m,theme:g="light",height:k,minHeight:y,maxHeight:v,width:b,minWidth:O,maxWidth:x,basicSetup:w,placeholder:S,indentWithTab:P,editable:C,readOnly:A,root:Q,initialState:T}=t,I=(0,r.Z)(t,nL),D=(0,s.useRef)(null),{state:R,view:M,container:$,setContainer:N}=function(t){var{value:e,selection:n,onChange:i,onStatistics:r,onCreateEditor:a,onUpdate:h,extensions:c=[],autoFocus:u,theme:f="light",height:d="",minHeight:p="",maxHeight:m="",placeholder:g="",width:k="",minWidth:y="",maxWidth:v="",editable:b=!0,readOnly:O=!1,indentWithTab:x=!0,basicSetup:w=!0,root:S,initialState:P}=t,[C,A]=(0,s.useState)(),[Q,T]=(0,s.useState)(),[I,D]=(0,s.useState)(),R=l.tk.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),M=l.tk.theme({"&":{height:d,minHeight:p,maxHeight:m,width:k,minWidth:y,maxWidth:v}}),$=[l.tk.updateListener.of(t=>{t.docChanged&&"function"==typeof i&&i(t.state.doc.toString(),t),r&&r(nW(t))}),M];switch(x&&$.unshift(l.$f.of([es])),w&&("boolean"==typeof w?$.unshift(nC()):$.unshift(nC(w))),g&&$.unshift((0,l.W$)(g)),f){case"light":$.push(R);break;case"dark":$.push(nB);break;case"none":break;default:$.push(f)}return!1===b&&$.push(l.tk.editable.of(!1)),O&&$.push(o.yy.readOnly.of(!0)),h&&"function"==typeof h&&$.push(l.tk.updateListener.of(h)),$=$.concat(c),(0,s.useEffect)(()=>{if(C&&!I){var t={doc:e,selection:n,extensions:$},i=P?o.yy.fromJSON(P.json,t,P.fields):o.yy.create(t);if(D(i),!Q){var r=new l.tk({state:i,parent:C,root:S});T(r),a&&a(r,i)}}return()=>{Q&&(D(void 0),T(void 0))}},[C,I]),(0,s.useEffect)(()=>A(t.container),[t.container]),(0,s.useEffect)(()=>()=>{Q&&(Q.destroy(),T(void 0))},[Q]),(0,s.useEffect)(()=>{u&&Q&&Q.focus()},[u,Q]),(0,s.useEffect)(()=>{Q&&Q.dispatch({effects:o.Py.reconfigure.of($)})},[f,c,d,p,m,k,y,v,g,b,O,x,w,i,h]),(0,s.useEffect)(()=>{var t=Q?Q.state.doc.toString():"";Q&&e!==t&&Q.dispatch({changes:{from:0,to:t.length,insert:e||""}})},[e,Q]),{state:I,setState:D,view:Q,setView:T,container:C,setContainer:A}}({container:D.current,root:Q,value:a,autoFocus:m,theme:g,height:k,minHeight:y,maxHeight:v,width:b,minWidth:O,maxWidth:x,basicSetup:w,placeholder:S,indentWithTab:P,editable:C,readOnly:A,selection:h,onChange:u,onStatistics:f,onCreateEditor:d,onUpdate:p,extensions:c,initialState:T});if((0,s.useImperativeHandle)(e,()=>({editor:D.current,state:R,view:M}),[D,$,R,M]),"string"!=typeof a)throw Error("value must be typeof string but got "+typeof a);return(0,nJ.jsx)("div",(0,i.Z)({ref:D,className:("string"==typeof g?"cm-theme-"+g:"cm-theme")+(n?" "+n:"")},I))});nj.displayName="CodeMirror";var nF=nj},34790:function(t,e,n){n.d(e,{B1:function(){return tC},GA:function(){return tb},Gn:function(){return to},Mb:function(){return a},eC:function(){return h},vQ:function(){return td},ys:function(){return tP}});var i=n(78120),r=n(47421),s=n(59119);class o{constructor(t,e,n){this.state=t,this.pos=e,this.explicit=n,this.abortListeners=[]}tokenBefore(t){let e=(0,s.qz)(this.state).resolveInner(this.pos,-1);for(;e&&0>t.indexOf(e.name);)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),n=Math.max(e.from,this.pos-250),i=e.text.slice(n-e.from,this.pos-e.from),r=i.search(f(t,!1));return r<0?null:{from:n+r,to:this.pos,text:i.slice(r)}}get aborted(){return null==this.abortListeners}addEventListener(t,e){"abort"==t&&this.abortListeners&&this.abortListeners.push(e)}}function l(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function a(t){let e=t.map(t=>"string"==typeof t?{label:t}:t),[n,i]=e.every(t=>/^\w+$/.test(t.label))?[/\w*$/,/\w+$/]:function(t){let e=Object.create(null),n=Object.create(null);for(let{label:i}of t){e[i[0]]=!0;for(let r=1;r{let r=t.matchBefore(i);return r||t.explicit?{from:r?r.from:t.pos,options:e,validFor:n}:null}}function h(t,e){return n=>{for(let i=(0,s.qz)(n.state).resolveInner(n.pos,-1);i;i=i.parent)if(t.indexOf(i.name)>-1)return null;return e(n)}}class c{constructor(t,e,n){this.completion=t,this.source=e,this.match=n}}function u(t){return t.selection.main.head}function f(t,e){var n;let{source:i}=t,r=e&&"^"!=i[0],s="$"!=i[i.length-1];return r||s?RegExp(`${r?"^":""}(?:${i})${s?"$":""}`,null!==(n=t.flags)&&void 0!==n?n:t.ignoreCase?"i":""):t}let d=i.q6.define();function p(t,e){let n=e.completion.apply||e.completion.label,r=e.source;if("string"==typeof n){var s,o,l;t.dispatch(Object.assign(Object.assign({},(s=t.state,o=r.from,l=r.to,Object.assign(Object.assign({},s.changeByRange(t=>{if(t==s.selection.main)return{changes:{from:o,to:l,insert:n},range:i.jT.cursor(o+n.length)};let e=l-o;return!t.empty||e&&s.sliceDoc(t.from-e,t.from)!=s.sliceDoc(o,l)?{range:t}:{changes:{from:t.from-e,to:t.from,insert:n},range:i.jT.cursor(t.from-e+n.length)}})),{userEvent:"input.complete"}))),{annotations:d.of(e.completion)}))}else n(t,e.completion,r.from,r.to)}let m=new WeakMap;function g(t){if(!Array.isArray(t))return t;let e=m.get(t);return e||m.set(t,e=a(t)),e}class k{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[];for(let e=0;e=48&&P<=57||P>=97&&P<=122?2:P>=65&&P<=90?1:0:(C=(0,i.bg)(P))!=C.toLowerCase()?1:C!=C.toUpperCase()?2:0;(!x||1==A&&b||0==S&&0!=A)&&(e[m]==P||n[m]==P&&(g=!0)?o[m++]=x:o.length&&(O=!1)),S=A,x+=(0,i.nZ)(P)}return m==h&&0==o[0]&&O?this.result(-100+(g?-200:0),o,t):k==h&&0==y?[-200-t.length,0,v]:a>-1?[-700-t.length,a,a+this.pattern.length]:k==h?[-900-t.length,y,v]:m==h?this.result(-100+(g?-200:0)+-700+(O?0:-1100),o,t):2==e.length?null:this.result((r[0]?-700:0)+-200+-1100,r,t)}result(t,e,n){let r=[t-n.length],s=1;for(let o of e){let l=o+(this.astral?(0,i.nZ)((0,i.gm)(n,o)):1);s>1&&r[s-1]==o?r[s-1]=l:(r[s++]=o,r[s++]=l)}return r}}let y=i.r$.define({combine:t=>(0,i.BO)(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>n=>v(t(n),e(n)),optionClass:(t,e)=>n=>v(t(n),e(n)),addToOptions:(t,e)=>t.concat(e)})});function v(t,e){return t?e?t+" "+e:t:e}function b(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let i=Math.floor(e/n);return{from:i*n,to:(i+1)*n}}let r=Math.floor((t-e)/n);return{from:t-(r+1)*n,to:t-r*n}}class O{constructor(t,e){let n;this.view=t,this.stateField=e,this.info=null,this.placeInfo={read:()=>this.measureInfo(),write:t=>this.positionInfo(t),key:this},this.space=null,this.currentClass="";let i=t.state.field(e),{options:r,selected:s}=i.open,o=t.state.facet(y);this.optionContent=(n=o.addToOptions.slice(),o.icons&&n.push({render(t){let e=document.createElement("div");return e.classList.add("cm-completionIcon"),t.type&&e.classList.add(...t.type.split(/\s+/g).map(t=>"cm-completionIcon-"+t)),e.setAttribute("aria-hidden","true"),e},position:20}),n.push({render(t,e,n){let i=document.createElement("span");i.className="cm-completionLabel";let{label:r}=t,s=0;for(let o=1;os&&i.appendChild(document.createTextNode(r.slice(s,l)));let h=i.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(r.slice(l,a))),h.className="cm-completionMatchedText",s=a}return st.position-e.position).map(t=>t.render)),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=b(r.length,s,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",e=>{for(let n=e.target,i;n&&n!=this.dom;n=n.parentNode)if("LI"==n.nodeName&&(i=/-(\d+)$/.exec(n.id))&&+i[1]{this.info&&this.view.requestMeasure(this.placeInfo)})}mount(){this.updateSel()}update(t){var e,n,i;let r=t.state.field(this.stateField),s=t.startState.field(this.stateField);this.updateTooltipClass(t.state),r!=s&&(this.updateSel(),(null===(e=r.open)||void 0===e?void 0:e.disabled)!=(null===(n=s.open)||void 0===n?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!(null===(i=r.open)||void 0===i?void 0:i.disabled)))}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let i of e.split(" "))i&&this.dom.classList.add(i);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfo)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected=this.range.to)&&(this.range=b(e.options.length,e.selected,this.view.state.facet(y).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e.options,t.id,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfo)})),this.updateSelectedOption(e.selected)){this.info&&(this.info.remove(),this.info=null);let{completion:n}=e.options[e.selected],{info:i}=n;if(!i)return;let s="string"==typeof i?document.createTextNode(i):i(n);if(!s)return;"then"in s?s.then(e=>{e&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(e)}).catch(t=>(0,r.OO)(this.view.state,t,"completion info")):this.addInfoPane(s)}}addInfoPane(t){let e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo",e.appendChild(t),this.dom.appendChild(e),this.view.requestMeasure(this.placeInfo)}updateSelectedOption(t){var e,n;let i,r,s=null;for(let o=this.list.firstChild,l=this.range.from;o;o=o.nextSibling,l++)l==t?o.hasAttribute("aria-selected")||(o.setAttribute("aria-selected","true"),s=o):o.hasAttribute("aria-selected")&&o.removeAttribute("aria-selected");return s&&(e=this.list,n=s,i=e.getBoundingClientRect(),(r=n.getBoundingClientRect()).topi.bottom&&(e.scrollTop+=r.bottom-i.bottom)),s}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),i=t.getBoundingClientRect(),s=this.space;if(!s){let o=this.dom.ownerDocument.defaultView||window;s={left:0,top:0,right:o.innerWidth,bottom:o.innerHeight}}if(i.top>Math.min(s.bottom,e.bottom)-10||i.bottom=n.height||m>e.top?u=i.bottom-e.top+"px":f=e.bottom-i.top+"px"}return{top:u,bottom:f,maxWidth:c,class:h?l?"left-narrow":"right-narrow":a?"left":"right"}}positionInfo(t){this.info&&(t?(this.info.style.top=t.top,this.info.style.bottom=t.bottom,this.info.style.maxWidth=t.maxWidth,this.info.className="cm-tooltip cm-completionInfo cm-completionInfo-"+t.class):this.info.style.top="-1e6px")}createListBox(t,e,n){let i=document.createElement("ul");i.id=e,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions"));for(let r=n.from;r=this.options.length?this:new w(this.options,C(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,n,i,r){let s=function(t,e){let n=[],i=0;for(let r of t)if(r.hasResult()){if(!1===r.result.filter){let s=r.result.getMatch;for(let o of r.result.options){let l=[1e9-i++];if(s)for(let a of s(o))l.push(a);n.push(new c(o,r,l))}}else{let h=new k(e.sliceDoc(r.from,r.to)),u;for(let f of r.result.options)(u=h.match(f.label))&&(null!=f.boost&&(u[0]+=f.boost),n.push(new c(f,r,u)))}}let d=[],p=null,m=e.facet(y).compareCompletions;for(let g of n.sort((t,e)=>e.match[0]-t.match[0]||m(t.completion,e.completion)))p&&p.label==g.completion.label&&p.detail==g.completion.detail&&(null==p.type||null==g.completion.type||p.type==g.completion.type)&&p.apply==g.completion.apply?x(g.completion)>x(p)&&(d[d.length-1]=g):d.push(g),p=g.completion;return d}(t,e);if(!s.length)return i&&t.some(t=>1==t.state)?new w(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let o=e.facet(y).selectOnOpen?0:-1;if(i&&i.selected!=o&&-1!=i.selected){let l=i.options[i.selected].completion;for(let a=0;ae.hasResult()?Math.min(t,e.from):t,1e8),create:t=>new O(t,N),above:r.aboveCursor},i?i.timestamp:Date.now(),o,!1)}map(t){return new w(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class S{constructor(t,e,n){this.active=t,this.id=e,this.open=n}static start(){return new S(A,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(t){let{state:e}=t,n=e.facet(y),i=(n.override||e.languageDataAt("autocomplete",u(e)).map(g)).map(e=>(this.active.find(t=>t.source==e)||new T(e,this.active.some(t=>0!=t.state)?1:0)).update(t,n));i.length==this.active.length&&i.every((t,e)=>t==this.active[e])&&(i=this.active);let r=this.open;for(let s of(r&&t.docChanged&&(r=r.map(t.changes)),t.selection||i.some(e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to))||!function(t,e){if(t==e)return!0;for(let n=0,i=0;;){for(;n1==t.state)&&(r=null),!r&&i.every(t=>1!=t.state)&&i.some(t=>t.hasResult())&&(i=i.map(t=>t.hasResult()?new T(t.source,0):t)),t.effects))s.is($)&&(r=r&&r.setSelected(s.value,this.id));return i==this.active&&r==this.open?this:new S(i,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:P}}let P={"aria-autocomplete":"list"};function C(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}let A=[];function Q(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class T{constructor(t,e,n=-1){this.source=t,this.state=e,this.explicitPos=n}hasResult(){return!1}update(t,e){let n=Q(t),i=this;for(let r of(n?i=i.handleUserEvent(t,n,e):t.docChanged?i=i.handleChange(t):t.selection&&0!=i.state&&(i=new T(i.source,0)),t.effects))if(r.is(D))i=new T(i.source,1,r.value?u(t.state):-1);else if(r.is(R))i=new T(i.source,0);else if(r.is(M))for(let s of r.value)s.source==i.source&&(i=s);return i}handleUserEvent(t,e,n){return"delete"!=e&&n.activateOnTyping?new T(this.source,1):this.map(t.changes)}handleChange(t){return t.changes.touchesRange(u(t.startState))?new T(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new T(this.source,this.state,t.mapPos(this.explicitPos))}}class I extends T{constructor(t,e,n,i,r){super(t,2,e),this.result=n,this.from=i,this.to=r}hasResult(){return!0}handleUserEvent(t,e,n){var i;let r=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),l=u(t.state);if((this.explicitPos<0?l<=r:ls||"delete"==e&&u(t.startState)==this.from)return new T(this.source,"input"==e&&n.activateOnTyping?1:0);let a=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),h;return!function(t,e,n,i){if(!t)return!1;let r=e.sliceDoc(n,i);return"function"==typeof t?t(r,n,i,e):f(t,!0).test(r)}(this.result.validFor,t.state,r,s)?this.result.update&&(h=this.result.update(this.result,r,s,new o(t.state,l,a>=0)))?new I(this.source,a,h,h.from,null!==(i=h.to)&&void 0!==i?i:u(t.state)):new T(this.source,1,a):new I(this.source,a,this.result,r,s)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new T(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new I(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}let D=i.Py.define(),R=i.Py.define(),M=i.Py.define({map:(t,e)=>t.map(t=>t.map(e))}),$=i.Py.define(),N=i.QQ.define({create:()=>S.start(),update:(t,e)=>t.update(e),provide:t=>[r.hJ.from(t,t=>t.tooltip),r.tk.contentAttributes.from(t,t=>t.attrs)]});function E(t,e="option"){return n=>{let i=n.state.field(N,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+s*(t?1:-1):t?0:l-1;return a<0?a="page"==e?0:l-1:a>=l&&(a="page"==e?l-1:0),n.dispatch({effects:$.of(a)}),!0}}let z=t=>{let e=t.state.field(N,!1);return!(t.state.readOnly||!e||!e.open||e.open.selected<0||Date.now()-e.open.timestamp!!t.state.field(N,!1)&&(t.dispatch({effects:D.of(!0)}),!0),W=t=>{let e=t.state.field(N,!1);return!!(e&&e.active.some(t=>0!=t.state))&&(t.dispatch({effects:R.of(null)}),!0)};class J{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}let L=r.lg.fromClass(class{constructor(t){for(let e of(this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0,t.state.field(N).active))1==e.state&&this.startQuery(e)}update(t){let e=t.state.field(N);if(!t.selectionSet&&!t.docChanged&&t.startState.field(N)==e)return;let n=t.transactions.some(t=>(t.selection||t.docChanged)&&!Q(t));for(let i=0;i50&&Date.now()-s.time>1e3){for(let o of s.context.abortListeners)try{o()}catch(l){(0,r.OO)(this.view.state,l)}s.context.abortListeners=null,this.running.splice(i--,1)}else s.updates.push(...t.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some(t=>1==t.state&&!this.running.some(e=>e.active.source==t.source))?setTimeout(()=>this.startUpdate(),50):-1,0!=this.composing)for(let a of t.transactions)"input"==Q(a)?this.composing=2:2==this.composing&&a.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:t}=this.view;for(let e of t.field(N).active)1!=e.state||this.running.some(t=>t.active.source==e.source)||this.startQuery(e)}startQuery(t){let{state:e}=this.view,n=u(e),i=new o(e,n,t.explicitPos==n),s=new J(t,i);this.running.push(s),Promise.resolve(t.source(i)).then(t=>{s.context.aborted||(s.done=t||null,this.scheduleAccept())},t=>{this.view.dispatch({effects:R.of(null)}),(0,r.OO)(this.view.state,t)})}scheduleAccept(){this.running.every(t=>void 0!==t.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),50))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(y);for(let i=0;it.source==r.active.source);if(l&&1==l.state){if(null==r.done){let a=new T(r.active.source,0);for(let h of r.updates)a=a.update(h,n);1!=a.state&&e.push(a)}else this.startQuery(l)}}e.length&&this.view.dispatch({effects:M.of(e)})}},{eventHandlers:{blur(){let t=this.view.state.field(N,!1);t&&t.tooltip&&this.view.state.facet(y).closeOnBlur&&this.view.dispatch({effects:R.of(null)})},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:D.of(!1)}),20),this.composing=0}}}),j=r.tk.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'\uD835\uDC65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\uD835\uDC36'"}},".cm-completionIcon-type":{"&:after":{content:"'\uD835\uDC61'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\uD83D\uDD11︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class F{constructor(t,e,n,i){this.field=t,this.line=e,this.from=n,this.to=i}}class _{constructor(t,e,n){this.field=t,this.from=e,this.to=n}map(t){let e=t.mapPos(this.from,-1,i.gc.TrackDel),n=t.mapPos(this.to,1,i.gc.TrackDel);return null==e||null==n?null:new _(this.field,e,n)}}class U{constructor(t,e){this.lines=t,this.fieldPositions=e}instantiate(t,e){let n=[],i=[e],r=t.doc.lineAt(e),o=/^\s*/.exec(r.text)[0];for(let l of this.lines){if(n.length){let a=o,h=/^\t*/.exec(l)[0].length;for(let c=0;cnew _(t.field,i[t.line]+t.from,i[t.line]+t.to));return{text:n,ranges:u}}static parse(t){let e=[],n=[],i=[],r;for(let s of t.split(/\r\n?|\n/)){for(;r=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(s);){let o=r[1]?+r[1]:null,l=r[2]||r[3]||"",a=-1;for(let h=0;h=a&&u.field++}i.push(new F(a,n.length,r.index,r.index+l.length)),s=s.slice(0,r.index)+l+s.slice(r.index+r[0].length)}for(let f;f=/\\([{}])/.exec(s);)for(let d of(s=s.slice(0,f.index)+f[1]+s.slice(f.index+f[0].length),i))d.line==n.length&&d.from>f.index&&(d.from--,d.to--);n.push(s)}return new U(n,i)}}let X=r.p.widget({widget:new class extends r.l9{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),q=r.p.mark({class:"cm-snippetField"});class V{constructor(t,e){this.ranges=t,this.active=e,this.deco=r.p.set(t.map(t=>(t.from==t.to?X:q).range(t.from,t.to)))}map(t){let e=[];for(let n of this.ranges){let i=n.map(t);if(!i)return null;e.push(i)}return new V(e,this.active)}selectionInsideField(t){return t.ranges.every(t=>this.ranges.some(e=>e.field==this.active&&e.from<=t.from&&e.to>=t.to))}}let G=i.Py.define({map:(t,e)=>t&&t.map(e)}),Z=i.Py.define(),Y=i.QQ.define({create:()=>null,update(t,e){for(let n of e.effects){if(n.is(G))return n.value;if(n.is(Z)&&t)return new V(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>r.tk.decorations.from(t,t=>t?t.deco:r.p.none)});function K(t,e){return i.jT.create(t.filter(t=>t.field==e).map(t=>i.jT.range(t.from,t.to)))}function H(t){return({state:e,dispatch:n})=>{let i=e.field(Y,!1);if(!i||t<0&&0==i.active)return!1;let r=i.active+t,s=t>0&&!i.ranges.some(e=>e.field==r+t);return n(e.update({selection:K(i.ranges,r),effects:G.of(s?null:new V(i.ranges,r))})),!0}}let tt=({state:t,dispatch:e})=>!!t.field(Y,!1)&&(e(t.update({effects:G.of(null)})),!0),te=H(1),tn=H(-1),ti=[{key:"Tab",run:te,shift:tn},{key:"Escape",run:tt}],tr=i.r$.define({combine:t=>t.length?t[0]:ti}),ts=i.Wl.highest(r.$f.compute([tr],t=>t.facet(tr)));function to(t,e){let n;return Object.assign(Object.assign({},e),{apply:(n=U.parse(t),(t,e,r,s)=>{let{text:o,ranges:l}=n.instantiate(t.state,r),a={changes:{from:r,to:s,insert:i.xv.of(o)},scrollIntoView:!0};if(l.length&&(a.selection=K(l,0)),l.length>1){let h=new V(l,0),c=a.effects=[G.of(h)];void 0===t.state.field(Y,!1)&&c.push(i.Py.appendConfig.of([Y,ts,tl,j]))}t.dispatch(t.state.update(a))})})}let tl=r.tk.domEventHandlers({mousedown(t,e){let n=e.state.field(Y,!1),i;if(!n||null==(i=e.posAtCoords({x:t.clientX,y:t.clientY})))return!1;let r=n.ranges.find(t=>t.from<=i&&t.to>=i);return!!r&&r.field!=n.active&&(e.dispatch({selection:K(n.ranges,r.field),effects:G.of(n.ranges.some(t=>t.field>r.field)?new V(n.ranges,r.field):null)}),!0)}}),ta={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},th=i.Py.define({map(t,e){let n=e.mapPos(t,-1,i.gc.TrackAfter);return null==n?void 0:n}}),tc=i.Py.define({map:(t,e)=>e.mapPos(t)}),tu=new class extends i.uU{};tu.startSide=1,tu.endSide=-1;let tf=i.QQ.define({create:()=>i.Xs.empty,update(t,e){if(e.selection){let n=e.state.doc.lineAt(e.selection.main.head).from,r=e.startState.doc.lineAt(e.startState.selection.main.head).from;n!=e.changes.mapPos(r,-1)&&(t=i.Xs.empty)}for(let s of(t=t.map(e.changes),e.effects))s.is(th)?t=t.update({add:[tu.range(s.value,s.value+1)]}):s.is(tc)&&(t=t.update({filter:t=>t!=s.value}));return t}});function td(){return[ty,tf]}let tp="()[]{}<>";function tm(t){for(let e=0;e{if((tk?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let o=t.state.selection.main;if(r.length>2||2==r.length&&1==(0,i.nZ)((0,i.gm)(r,0))||e!=o.from||n!=o.to)return!1;let l=function(t,e){let n=tg(t,t.selection.main.head),r=n.brackets||ta.brackets;for(let o of r){let l=tm((0,i.gm)(o,0));if(e==o)return l==o?function(t,e,n,r){let o=r.stringPrefixes||ta.stringPrefixes,l=null,a=t.changeByRange(r=>{if(!r.empty)return{changes:[{insert:e,from:r.from},{insert:e,from:r.to}],effects:th.of(r.to+e.length),range:i.jT.range(r.anchor+e.length,r.head+e.length)};let a=r.head,h=tx(t.doc,a),c;if(h==e){if(tw(t,a))return{changes:{insert:e+e,from:a},effects:th.of(a+e.length),range:i.jT.cursor(a+e.length)};if(tO(t,a)){let u=n&&t.sliceDoc(a,a+3*e.length)==e+e+e;return{range:i.jT.cursor(a+e.length*(u?3:1)),effects:tc.of(a)}}}else if(n&&t.sliceDoc(a-2*e.length,a)==e+e&&(c=tS(t,a-2*e.length,o))>-1&&tw(t,c))return{changes:{insert:e+e+e+e,from:a},effects:th.of(a+e.length),range:i.jT.cursor(a+e.length)};else if(t.charCategorizer(a)(h)!=i.D0.Word&&tS(t,a,o)>-1&&!function(t,e,n,i){let r=(0,s.qz)(t).resolveInner(e,-1),o=i.reduce((t,e)=>Math.max(t,e.length),0);for(let l=0;l<5;l++){let a=t.sliceDoc(r.from,Math.min(r.to,r.from+n.length+o)),h=a.indexOf(n);if(!h||h>-1&&i.indexOf(a.slice(0,h))>-1){let c=r.firstChild;for(;c&&c.from==r.from&&c.to-c.from>n.length+h;){if(t.sliceDoc(c.to-n.length,c.to)==n)return!1;c=c.firstChild}return!0}let u=r.to==e&&r.parent;if(!u)break;r=u}return!1}(t,a,e,o))return{changes:{insert:e+e,from:a},effects:th.of(a+e.length),range:i.jT.cursor(a+e.length)};return{range:l=r}});return l?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}(t,o,r.indexOf(o+o+o)>-1,n):function(t,e,n,r){let s=null,o=t.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:n,from:o.to}],effects:th.of(o.to+e.length),range:i.jT.range(o.anchor+e.length,o.head+e.length)};let l=tx(t.doc,o.head);return!l||/\s/.test(l)||r.indexOf(l)>-1?{changes:{insert:e+n,from:o.head},effects:th.of(o.head+e.length),range:i.jT.cursor(o.head+e.length)}:{range:s=o}});return s?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}(t,o,l,n.before||ta.before);if(e==l&&tO(t,t.selection.main.from))return function(t,e,n){let r=null,s=t.selection.ranges.map(e=>e.empty&&tx(t.doc,e.head)==n?i.jT.cursor(e.head+n.length):r=e);return r?null:t.update({selection:i.jT.create(s,t.selection.mainIndex),scrollIntoView:!0,effects:t.selection.ranges.map(({from:t})=>tc.of(t))})}(t,0,l)}return null}(t.state,r);return!!l&&(t.dispatch(l),!0)}),tv=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=tg(t,t.selection.main.head).brackets||ta.brackets,r=null,s=t.changeByRange(e=>{if(e.empty){var s,o;let l;let a=(s=t.doc,o=e.head,l=s.sliceString(o-2,o),(0,i.nZ)((0,i.gm)(l,0))==l.length?l:l.slice(1));for(let h of n)if(h==a&&tx(t.doc,e.head)==tm((0,i.gm)(h,0)))return{changes:{from:e.head-h.length,to:e.head+h.length},range:i.jT.cursor(e.head-h.length)}}return{range:r=e}});return r||e(t.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!r},tb=[{key:"Backspace",run:tv}];function tO(t,e){let n=!1;return t.field(tf).between(0,t.doc.length,t=>{t==e&&(n=!0)}),n}function tx(t,e){let n=t.sliceString(e,e+2);return n.slice(0,(0,i.nZ)((0,i.gm)(n,0)))}function tw(t,e){let n=(0,s.qz)(t).resolveInner(e+1);return n.parent&&n.from==e}function tS(t,e,n){let r=t.charCategorizer(e);if(r(t.sliceDoc(e-1,e))!=i.D0.Word)return e;for(let s of n){let o=e-s.length;if(t.sliceDoc(o,e)==s&&r(t.sliceDoc(o-1,o))!=i.D0.Word)return o}return -1}function tP(t={}){return[N,y.of(t),L,tA,j]}let tC=[{key:"Ctrl-Space",run:B},{key:"Escape",run:W},{key:"ArrowDown",run:E(!0)},{key:"ArrowUp",run:E(!1)},{key:"PageDown",run:E(!0,"page")},{key:"PageUp",run:E(!1,"page")},{key:"Enter",run:z}],tA=i.Wl.highest(r.$f.computeN([y],t=>t.facet(y).defaultKeymap?[tC]:[]))},61426:function(t,e,n){n.r(e),n.d(e,{css:function(){return S},cssCompletionSource:function(){return x},cssLanguage:function(){return w}});var i=n(53105),r=n(35524);let s=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function o(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}let l=new i.Jq((t,e)=>{for(let n=!1,i=0,r=0;;r++){var s;let{next:l}=t;if(o(l)||45==l||95==l||n&&(s=l)>=48&&s<=57)!n&&(45!=l||r>0)&&(n=!0),i===r&&45==l&&i++,t.advance();else{n&&t.acceptToken(40==l?95:2==i&&e.canShift(2)?2:96);break}}}),a=new i.Jq(t=>{if(s.includes(t.peek(-1))){let{next:e}=t;(o(e)||95==e||35==e||46==e||91==e||58==e||45==e)&&t.acceptToken(94)}}),h=new i.Jq(t=>{if(!s.includes(t.peek(-1))){let{next:e}=t;if(37==e&&(t.advance(),t.acceptToken(1)),o(e)){do t.advance();while(o(t.next));t.acceptToken(1)}}}),c=(0,r.Gv)({"AtKeyword import charset namespace keyframes media supports":r.pJ.definitionKeyword,"from to selector":r.pJ.keyword,NamespaceName:r.pJ.namespace,KeyframeName:r.pJ.labelName,TagName:r.pJ.tagName,ClassName:r.pJ.className,PseudoClassName:r.pJ.constant(r.pJ.className),IdName:r.pJ.labelName,"FeatureName PropertyName":r.pJ.propertyName,AttributeName:r.pJ.attributeName,NumberLiteral:r.pJ.number,KeywordQuery:r.pJ.keyword,UnaryQueryOp:r.pJ.operatorKeyword,"CallTag ValueName":r.pJ.atom,VariableName:r.pJ.variableName,Callee:r.pJ.operatorKeyword,Unit:r.pJ.unit,"UniversalSelector NestingSelector":r.pJ.definitionOperator,MatchOp:r.pJ.compareOperator,"ChildOp SiblingOp, LogicOp":r.pJ.logicOperator,BinOp:r.pJ.arithmeticOperator,Important:r.pJ.modifier,Comment:r.pJ.blockComment,ParenthesizedContent:r.pJ.special(r.pJ.name),ColorLiteral:r.pJ.color,StringLiteral:r.pJ.string,":":r.pJ.punctuation,"PseudoOp #":r.pJ.derefOperator,"; ,":r.pJ.separator,"( )":r.pJ.paren,"[ ]":r.pJ.squareBracket,"{ }":r.pJ.brace}),u={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},f={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},d={__proto__:null,not:128,only:128,from:158,to:160},p=i.WQ.deserialize({version:14,states:"7WQYQ[OOO#_Q[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO#fQ[O'#CfO$YQXO'#CaO$aQ[O'#ChO$lQ[O'#DPO$qQ[O'#DTOOQP'#Ed'#EdO$vQdO'#DeO%bQ[O'#DrO$vQdO'#DtO%sQ[O'#DvO&OQ[O'#DyO&TQ[O'#EPO&cQ[O'#EROOQS'#Ec'#EcOOQS'#ET'#ETQYQ[OOO&jQXO'#CdO'_QWO'#DaO'dQWO'#EjO'oQ[O'#EjQOQWOOOOQP'#Cg'#CgOOQP,59Q,59QO#fQ[O,59QO'yQ[O'#EWO(eQWO,58{O(mQ[O,59SO$lQ[O,59kO$qQ[O,59oO'yQ[O,59sO'yQ[O,59uO'yQ[O,59vO(xQ[O'#D`OOQS,58{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`%^!`!aFw!a;'S%^;'S;=`%o<%lO%^XGOS|PoWOy%^z;'S%^;'S;=`%o<%lO%^XG_WOy%^z!c%^!c!}Gw!}#T%^#T#oGw#o;'S%^;'S;=`%o<%lO%^XHO[!YPoWOy%^z}%^}!OGw!O!Q%^!Q![Gw![!c%^!c!}Gw!}#T%^#T#oGw#o;'S%^;'S;=`%o<%lO%^XHySxPOy%^z;'S%^;'S;=`%o<%lO%^^I[SvUOy%^z;'S%^;'S;=`%o<%lO%^XIkUOy%^z#b%^#b#cI}#c;'S%^;'S;=`%o<%lO%^XJSUoWOy%^z#W%^#W#XJf#X;'S%^;'S;=`%o<%lO%^XJmS!`PoWOy%^z;'S%^;'S;=`%o<%lO%^XJ|UOy%^z#f%^#f#gJf#g;'S%^;'S;=`%o<%lO%^XKeS!RPOy%^z;'S%^;'S;=`%o<%lO%^_KvS!QVOy%^z;'S%^;'S;=`%o<%lO%^ZLXU!PPOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^WLnP;=`<%l$}",tokenizers:[a,h,l,0,1,2,3],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:95,get:t=>u[t]||-1},{term:56,get:t=>f[t]||-1},{term:96,get:t=>d[t]||-1}],tokenPrec:1123});var m=n(59119);let g=null;function k(){if(!g&&"object"==typeof document&&document.body){let t=[];for(let e in document.body.style)/[A-Z]|^-|^(item|length)$/.test(e)||t.push(e);g=t.sort().map(t=>({type:"property",label:t}))}return g||[]}let y=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),v=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),b=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),O=/^[\w-]*/,x=t=>{let{state:e,pos:n}=t,i=(0,m.qz)(e).resolveInner(n,-1);if("PropertyName"==i.name)return{from:i.from,options:k(),validFor:O};if("ValueName"==i.name)return{from:i.from,options:v,validFor:O};if("PseudoClassName"==i.name)return{from:i.from,options:y,validFor:O};if("TagName"==i.name){for(let{parent:r}=i;r;r=r.parent)if("Block"==r.name)return{from:i.from,options:k(),validFor:O};return{from:i.from,options:b,validFor:O}}if(!t.explicit)return null;let s=i.resolve(n),o=s.childBefore(n);return o&&":"==o.name&&"PseudoClassSelector"==s.name?{from:n,options:y,validFor:O}:o&&":"==o.name&&"Declaration"==s.name||"ArgList"==s.name?{from:n,options:v,validFor:O}:"Block"==s.name?{from:n,options:k(),validFor:O}:null},w=m.qp.define({name:"css",parser:p.configure({props:[m.uj.add({Declaration:(0,m.tC)()}),m.x0.add({Block:m.Dv})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function S(){return new m.ri(w,w.data.of({autocomplete:x}))}},59119:function(t,e,n){n.d(e,{Be:function(){return k},Dv:function(){return F},Gn:function(){return D},K0:function(){return I},Qf:function(){return tf},R_:function(){return ty},SQ:function(){return u},SS:function(){return T},Um:function(){return tT},c:function(){return A},c6:function(){return P},e7:function(){return ti},il:function(){return tM},kU:function(){return c},mi:function(){return tc},n$:function(){return tA},nF:function(){return tg},nY:function(){return J},pp:function(){return h},qp:function(){return d},qz:function(){return p},ri:function(){return S},tC:function(){return W},uj:function(){return R},vw:function(){return E},x0:function(){return j},y1:function(){return Q},ze:function(){return B}});var i,r=n(41113),s=n(78120),o=n(47421),l=n(35524),a=n(28699);let h=new r.md;function c(t){return s.r$.define({combine:t?e=>e.concat(t):void 0})}class u{constructor(t,e,n=[],i=""){this.data=t,this.name=i,s.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(s.yy.prototype,"tree",{get(){return p(this)}}),this.parser=e,this.extension=[w.of(this),s.yy.languageData.of((t,e,n)=>t.facet(f(t,e,n)))].concat(n)}isActiveAt(t,e,n=-1){return f(t,e,n)==this.data}findRegions(t){let e=t.facet(w);if((null==e?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let n=[],i=(t,e)=>{if(t.prop(h)==this.data){n.push({from:e,to:e+t.length});return}let s=t.prop(r.md.mounted);if(s){if(s.tree.prop(h)==this.data){if(s.overlay)for(let o of s.overlay)n.push({from:o.from+e,to:o.to+e});else n.push({from:e,to:e+t.length});return}if(s.overlay){let l=n.length;if(i(s.tree,s.overlay[0].from+e),n.length>l)return}}for(let a=0;at.isTop?e:void 0)]}),t.name)}configure(t,e){return new d(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function p(t){let e=t.field(u.state,!1);return e?e.tree:r.mp.empty}class m{constructor(t,e=t.length){this.doc=t,this.length=e,this.cursorPos=0,this.string="",this.cursor=t.iter()}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let n=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}}let g=null;class k{constructor(t,e,n=[],i,r,s,o,l){this.parser=t,this.state=e,this.fragments=n,this.tree=i,this.treeLen=r,this.viewport=s,this.skipped=o,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,e,n){return new k(t,e,[],r.mp.empty,0,n,[],null)}startParse(){return this.parser.startParse(new m(this.state.doc),this.fragments)}work(t,e){return(null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=r.mp.empty&&this.isDone(null!=e?e:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof t){let i=Date.now()+t;t=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),null!=e&&(null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(r.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=g;g=this;try{return t()}finally{g=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=y(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:i,treeLen:s,viewport:o,skipped:l}=this;if(this.takeTree(),!t.empty){let a=[];if(t.iterChangedRanges((t,e,n,i)=>a.push({fromA:t,toA:e,fromB:n,toB:i})),n=r.i9.applyChanges(n,a),i=r.mp.empty,s=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length)for(let h of(l=[],this.skipped)){let c=t.mapPos(h.from,1),u=t.mapPos(h.to,-1);ct.from&&(this.fragments=y(this.fragments,i,r),this.skipped.splice(n--,1))}return!(this.skipped.length>=e)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends r._b{createParse(e,n,i){let s=i[0].from,o=i[i.length-1].to;return{parsedPos:s,advance(){let e=g;if(e){for(let n of i)e.tempSkipped.push(n);t&&(e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t)}return this.parsedPos=o,new r.mp(r.Jq.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return g}}function y(t,e,n){return r.i9.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class v{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),n=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,n)||e.takeTree(),new v(e)}static init(t){let e=Math.min(3e3,t.doc.length),n=k.create(t.facet(w).parser,t,{from:0,to:e});return n.work(20,e)||n.takeTree(),new v(n)}}u.state=s.QQ.define({create:v.init,update(t,e){for(let n of e.effects)if(n.is(u.setState))return n.value;return e.startState.facet(w)!=e.state.facet(w)?v.init(e.state):t.apply(e)}});let b=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};"undefined"!=typeof requestIdleCallback&&(b=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});let O="undefined"!=typeof navigator&&(null===(i=navigator.scheduling)||void 0===i?void 0:i.isInputPending)?()=>navigator.scheduling.isInputPending():null,x=o.lg.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(u.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),t.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(u.state);e.tree==e.context.tree&&e.context.isDone(t.doc.length)||(this.working=b(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEndi+1e3,l=r.context.work(()=>O&&O()||Date.now()>s,i+(o?0:1e5));this.chunkBudget-=Date.now()-e,(l||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:u.setState.of(new v(r.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(t=>(0,o.OO)(this.view.state,t)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),w=s.r$.define({combine:t=>t.length?t[0]:null,enables:t=>[u.state,x,o.tk.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class S{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}class P{constructor(t,e,n,i,r,s){this.name=t,this.alias=e,this.extensions=n,this.filename=i,this.loadFunc=r,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:e,support:n}=t;if(!e){if(!n)throw RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");e=()=>Promise.resolve(n)}return new P(t.name,(t.alias||[]).concat(t.name).map(t=>t.toLowerCase()),t.extensions||[],t.filename,e,n)}static matchFilename(t,e){for(let n of t)if(n.filename&&n.filename.test(e))return n;let i=/\.([^.]+)$/.exec(e);if(i){for(let r of t)if(r.extensions.indexOf(i[1])>-1)return r}return null}static matchLanguageName(t,e,n=!0){for(let i of(e=e.toLowerCase(),t))if(i.alias.some(t=>t==e))return i;if(n)for(let r of t)for(let s of r.alias){let o=e.indexOf(s);if(o>-1&&(s.length>2||!/\w/.test(e[o-1])&&!/\w/.test(e[o+s.length])))return r}return null}}let C=s.r$.define(),A=s.r$.define({combine(t){if(!t.length)return" ";if(!/^(?: +|\t+)$/.test(t[0]))throw Error("Invalid indent unit: "+JSON.stringify(t[0]));return t[0]}});function Q(t){let e=t.facet(A);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function T(t,e){let n="",i=t.tabSize;if(9==t.facet(A).charCodeAt(0))for(;e>=i;)n+=" ",e-=i;for(let r=0;r=n.from&&i<=n.to?r&&i==t?{text:"",from:t}:(e<0?i-1&&(r+=s-this.countColumn(n,n.search(/\S|$/))),r}countColumn(t,e=t.length){return(0,s.IS)(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:n,from:i}=this.lineAt(t,e),r=this.options.overrideIndentation;if(r){let s=r(i);if(s>-1)return s}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let R=new r.md;function M(t,e,n){for(;t;t=t.parent){let i=function(t){let e=t.type.prop(R);if(e)return e;let n=t.firstChild,i;if(n&&(i=n.type.prop(r.md.closedBy))){let s=t.lastChild,o=s&&i.indexOf(s.name)>-1;return t=>z(t,!0,1,void 0,o&&!(t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak)?s.from:void 0)}return null==t.parent?$:null}(t);if(i)return i(N.create(n,e,t))}return null}function $(){return 0}class N extends D{constructor(t,e,n){super(t.state,t.options),this.base=t,this.pos=e,this.node=n}static create(t,e,n){return new N(t,e,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let t=this.state.doc.lineAt(this.node.from);for(;;){let e=this.node.resolve(t.from);for(;e.parent&&e.parent.from==e.from;)e=e.parent;if(function(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}(e,this.node))break;t=this.state.doc.lineAt(e.from)}return this.lineIndent(t.from)}continue(){let t=this.node.parent;return t?M(t,this.pos,this.base):0}}function E({closing:t,align:e=!0,units:n=1}){return i=>z(i,e,n,t)}function z(t,e,n,i,r){let s=t.textAfter,o=s.match(/^\s*/)[0].length,l=i&&s.slice(o,o+i.length)==i||r==t.pos+o,a=e?function(t){let e=t.node,n=e.childAfter(e.from),i=e.lastChild;if(!n)return null;let r=t.options.simulateBreak,s=t.state.doc.lineAt(n.from),o=null==r||r<=s.from?s.to:Math.min(s.to,r);for(let l=n.to;;){let a=e.childAfter(l);if(!a||a==i)return null;if(!a.type.isSkipped)return a.fromt.baseIndent;function W({except:t,units:e=1}={}){return n=>{let i=t&&t.test(n.textAfter);return n.baseIndent+(i?0:e*n.unit)}}function J(){return s.yy.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:i}=t.newSelection.main,r=n.lineAt(i);if(i>r.from+200)return t;let s=n.sliceString(r.from,i);if(!e.some(t=>t.test(s)))return t;let{state:o}=t,l=-1,a=[];for(let{head:h}of o.selection.ranges){let c=o.doc.lineAt(h);if(c.from==l)continue;l=c.from;let u=I(o,c.from);if(null==u)continue;let f=/^\s*/.exec(c.text)[0],d=T(o,u);f!=d&&a.push({from:c.from,to:c.from+f.length,insert:d})}return a.length?[t,{changes:a,sequential:!0}]:t})}let L=s.r$.define(),j=new r.md;function F(t){let e=t.firstChild,n=t.lastChild;return e&&e.ton)continue;if(s&&o.from=e&&a.to>n&&(s=a)}}return s}(t,e,n)}function U(t,e){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);return n>=i?void 0:{from:n,to:i}}let X=s.Py.define({map:U}),q=s.Py.define({map:U});function V(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(t=>t.from<=n&&t.to>=n)||e.push(t.lineBlockAt(n));return e}let G=s.QQ.define({create:()=>o.p.none,update(t,e){for(let n of(t=t.map(e.changes),e.effects))n.is(X)&&!function(t,e,n){let i=!1;return t.between(e,e,(t,r)=>{t==e&&r==n&&(i=!0)}),i}(t,n.value.from,n.value.to)?t=t.update({add:[tl.range(n.value.from,n.value.to)]}):n.is(q)&&(t=t.update({filter:(t,e)=>n.value.from!=t||n.value.to!=e,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let i=!1,{head:r}=e.selection.main;t.between(r,r,(t,e)=>{tr&&(i=!0)}),i&&(t=t.update({filterFrom:r,filterTo:r,filter:(t,e)=>e<=r||t>=r}))}return t},provide:t=>o.tk.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(t,e)=>{n.push(t,e)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n{(!r||r.from>t)&&(r={from:t,to:e})}),r}function Y(t,e){return t.field(G,!1)?e:e.concat(s.Py.appendConfig.of(to()))}let K=t=>{for(let e of V(t)){let n=_(t.state,e.from,e.to);if(n)return t.dispatch({effects:Y(t.state,[X.of(n),tt(t,n)])}),!0}return!1},H=t=>{if(!t.state.field(G,!1))return!1;let e=[];for(let n of V(t)){let i=Z(t.state,n.from,n.to);i&&e.push(q.of(i),tt(t,i,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function tt(t,e,n=!0){let i=t.state.doc.lineAt(e.from).number,r=t.state.doc.lineAt(e.to).number;return o.tk.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${i} ${t.state.phrase("to")} ${r}.`)}let te=t=>{let{state:e}=t,n=[];for(let i=0;i{let e=t.state.field(G,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(t,e)=>{n.push(q.of({from:t,to:e}))}),t.dispatch({effects:n}),!0},ti=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:K},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:H},{key:"Ctrl-Alt-[",run:te},{key:"Ctrl-Alt-]",run:tn}],tr={placeholderDOM:null,placeholderText:"…"},ts=s.r$.define({combine:t=>(0,s.BO)(t,tr)});function to(t){let e=[G,tu];return t&&e.push(ts.of(t)),e}let tl=o.p.replace({widget:new class extends o.l9{toDOM(t){let{state:e}=t,n=e.facet(ts),i=e=>{let n=t.lineBlockAt(t.posAtDOM(e.target)),i=Z(t.state,n.from,n.to);i&&t.dispatch({effects:q.of(i)}),e.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(t,i);let r=document.createElement("span");return r.textContent=n.placeholderText,r.setAttribute("aria-label",e.phrase("folded code")),r.title=e.phrase("unfold"),r.className="cm-foldPlaceholder",r.onclick=i,r}}}),ta={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class th extends o.SJ{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function tc(t={}){let e=Object.assign(Object.assign({},ta),t),n=new th(e,!0),i=new th(e,!1),r=o.lg.fromClass(class{constructor(t){this.from=t.viewport.from,this.markers=this.buildMarkers(t)}update(t){(t.docChanged||t.viewportChanged||t.startState.facet(w)!=t.state.facet(w)||t.startState.field(G,!1)!=t.state.field(G,!1)||p(t.startState)!=p(t.state)||e.foldingChanged(t))&&(this.markers=this.buildMarkers(t.view))}buildMarkers(t){let e=new s.f_;for(let r of t.viewportLineBlocks){let o=Z(t.state,r.from,r.to)?i:_(t.state,r.from,r.to)?n:null;o&&e.add(r.from,r.from,o)}return e.finish()}}),{domEventHandlers:l}=e;return[r,(0,o.v5)({class:"cm-foldGutter",markers(t){var e;return(null===(e=t.plugin(r))||void 0===e?void 0:e.markers)||s.Xs.empty},initialSpacer:()=>new th(e,!1),domEventHandlers:Object.assign(Object.assign({},l),{click(t,e,n){if(l.click&&l.click(t,e,n))return!0;let i=Z(t.state,e.from,e.to);if(i)return t.dispatch({effects:q.of(i)}),!0;let r=_(t.state,e.from,e.to);return!!r&&(t.dispatch({effects:X.of(r)}),!0)}})}),to()]}let tu=o.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class tf{constructor(t,e){let n;function i(t){let e=a.V.newName();return(n||(n=Object.create(null)))["."+e]=t,e}this.specs=t;let r="string"==typeof e.all?e.all:e.all?i(e.all):void 0,s=e.scope;this.scope=s instanceof u?t=>t.prop(h)==s.data:s?t=>t==s:void 0,this.style=(0,l.QR)(t.map(t=>({tag:t.tag,class:t.class||i(Object.assign({},t,{tag:null}))})),{all:r}).style,this.module=n?new a.V(n):null,this.themeType=e.themeType}static define(t,e){return new tf(t,e||{})}}let td=s.r$.define(),tp=s.r$.define({combine:t=>t.length?[t[0]]:null});function tm(t){let e=t.facet(td);return e.length?e:t.facet(tp)}function tg(t,e){let n=[tk],i;return t instanceof tf&&(t.module&&n.push(o.tk.styleModule.of(t.module)),i=t.themeType),(null==e?void 0:e.fallback)?n.push(tp.of(t)):i?n.push(td.computeN([o.tk.darkTheme],e=>e.facet(o.tk.darkTheme)==("dark"==i)?[t]:[])):n.push(td.of(t)),n}let tk=s.Wl.high(o.lg.fromClass(class{constructor(t){this.markCache=Object.create(null),this.tree=p(t.state),this.decorations=this.buildDeco(t,tm(t.state))}update(t){let e=p(t.state),n=tm(t.state),i=n!=tm(t.startState);e.length{n.add(t,e,this.markCache[i]||(this.markCache[i]=o.p.mark({class:i})))},i,r);return n.finish()}},{decorations:t=>t.decorations})),ty=tf.define([{tag:l.pJ.meta,color:"#404740"},{tag:l.pJ.link,textDecoration:"underline"},{tag:l.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:l.pJ.emphasis,fontStyle:"italic"},{tag:l.pJ.strong,fontWeight:"bold"},{tag:l.pJ.strikethrough,textDecoration:"line-through"},{tag:l.pJ.keyword,color:"#708"},{tag:[l.pJ.atom,l.pJ.bool,l.pJ.url,l.pJ.contentSeparator,l.pJ.labelName],color:"#219"},{tag:[l.pJ.literal,l.pJ.inserted],color:"#164"},{tag:[l.pJ.string,l.pJ.deleted],color:"#a11"},{tag:[l.pJ.regexp,l.pJ.escape,l.pJ.special(l.pJ.string)],color:"#e40"},{tag:l.pJ.definition(l.pJ.variableName),color:"#00f"},{tag:l.pJ.local(l.pJ.variableName),color:"#30a"},{tag:[l.pJ.typeName,l.pJ.namespace],color:"#085"},{tag:l.pJ.className,color:"#167"},{tag:[l.pJ.special(l.pJ.variableName),l.pJ.macroName],color:"#256"},{tag:l.pJ.definition(l.pJ.propertyName),color:"#00c"},{tag:l.pJ.comment,color:"#940"},{tag:l.pJ.invalid,color:"#f00"}]),tv=o.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),tb="()[]{}",tO=s.r$.define({combine:t=>(0,s.BO)(t,{afterCursor:!0,brackets:tb,maxScanDistance:1e4,renderMatch:tS})}),tx=o.p.mark({class:"cm-matchingBracket"}),tw=o.p.mark({class:"cm-nonmatchingBracket"});function tS(t){let e=[],n=t.matched?tx:tw;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}let tP=s.QQ.define({create:()=>o.p.none,update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],i=e.state.facet(tO);for(let r of e.state.selection.ranges){if(!r.empty)continue;let s=tT(e.state,r.head,-1,i)||r.head>0&&tT(e.state,r.head-1,1,i)||i.afterCursor&&(tT(e.state,r.head,1,i)||r.heado.tk.decorations.from(t)}),tC=[tP,tv];function tA(t={}){return[tO.of(t),tC]}function tQ(t,e,n){let i=t.prop(e<0?r.md.openedBy:r.md.closedBy);if(i)return i;if(1==t.name.length){let s=n.indexOf(t.name);if(s>-1&&s%2==(e<0?1:0))return[n[s+e]]}return null}function tT(t,e,n,i={}){let r=i.maxScanDistance||1e4,s=i.brackets||tb,o=p(t),l=o.resolveInner(e,n);for(let a=l;a;a=a.parent){let h=tQ(a.type,n,s);if(h&&a.from=i.to){if(0==a&&r.indexOf(h.type.name)>-1&&h.from0)return null;let h={from:n<0?e-1:e,to:n>0?e+1:e},c=t.doc.iterRange(e,n>0?t.doc.length:0),u=0;for(let f=0;!c.next().done&&f<=s;){let d=c.value;n<0&&(f+=d.length);let p=e+f*n;for(let m=n>0?0:d.length-1,g=n>0?d.length:-1;m!=g;m+=n){let k=o.indexOf(d[m]);if(!(k<0)&&i.resolveInner(p+m,1).type==r){if(k%2==0==n>0)u++;else{if(1==u)return{start:h,end:{from:p+m,to:p+m+1},matched:k>>1==a>>1};u--}}}n>0&&(f+=d.length)}return c.done?{start:h,matched:!1}:null}(t,e,n,o,l.type,r,s)}function tI(t,e,n,i=0,r=0){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);let s=r;for(let o=i;o=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pose}eatSpace(){let t=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length}skipTo(t){let e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0}backUp(t){this.pos-=t}column(){return this.lastColumnPosn?t.toLowerCase():t;return i(this.string.substr(this.pos,t.length))==i(t)?(!1!==e&&(this.pos+=t.length),!0):null}{let r=this.string.slice(this.pos).match(t);return r&&r.index>0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}}current(){return this.string.slice(this.start,this.pos)}}function tR(t){if("object"!=typeof t)return t;let e={};for(let n in t){let i=t[n];e[n]=i instanceof Array?i.slice():i}return e}class tM extends u{constructor(t){let e,n=c(t.languageData),i={name:t.name||"",token:t.token,blankLine:t.blankLine||(()=>{}),startState:t.startState||(()=>!0),copyState:t.copyState||tR,indent:t.indent||(()=>null),languageData:t.languageData||{},tokenTable:t.tokenTable||tz},s;super(n,new class extends r._b{createParse(t,e,n){return new tN(s,t,e,n)}},[C.of((t,e)=>this.getIndent(t,e))],t.name),this.topNode=(e=r.Jq.define({id:tB.length,name:"Document",props:[h.add(()=>n)]}),tB.push(e),e),s=this,this.streamParser=i,this.stateAfter=new r.md({perNode:!0}),this.tokenTable=t.tokenTable?new t_(i.tokenTable):tU}static define(t){return new tM(t)}getIndent(t,e){let n=p(t.state),i=n.resolve(e);for(;i&&i.type!=this.topNode;)i=i.parent;if(!i)return null;let r=t$(this,n,0,i.from,e),s,o;if(r?(o=r.state,s=r.pos+1):(o=this.streamParser.startState(t.unit),s=0),e-s>1e4)return null;for(;s=i&&n+e.length<=s&&e.prop(t.stateAfter);if(o)return{state:t.streamParser.copyState(o),pos:n+e.length};for(let l=e.children.length-1;l>=0;l--){let a=e.children[l],h=n+e.positions[l],c=a instanceof r.mp&&hn&&t$(t,s.tree,0-s.offset,n,l),h;if(a&&(h=function t(e,n,i,s,o){if(o&&i<=0&&s>=n.length)return n;o||n.type!=e.topNode||(o=!0);for(let l=n.children.length-1;l>=0;l--){let a=n.positions[l],h=n.children[l],c;if(a=e)?this.finish():t&&this.parsedPos>=t.viewport.to?(t.skipUntilInView(this.parsedPos,e),this.finish()):null}stopAt(t){this.stoppedAt=t}lineAfter(t){let e=this.input.chunk(t);if(this.input.lineChunks)"\n"==e&&(e="");else{let n=e.indexOf("\n");n>-1&&(e=e.slice(0,n))}return t+e.length<=this.to?e:e.slice(0,this.to-t)}nextLine(){let t=this.parsedPos,e=this.lineAfter(t),n=t+e.length;for(let i=this.rangeIndex;;){let r=this.ranges[i].to;if(r>=n||(e=e.slice(0,r-(n-e.length)),++i==this.ranges.length))break;let s=this.ranges[i].from,o=this.lineAfter(s);e+=o,n=s+o.length}return{line:e,end:n}}skipGapsTo(t,e,n){for(;;){let i=this.ranges[this.rangeIndex].to,r=t+e;if(n>0?i>r:i>=r)break;e+=this.ranges[++this.rangeIndex].from-i}return e}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){r=this.skipGapsTo(e,r,1),e+=r;let s=this.chunk.length;r=this.skipGapsTo(n,r,-1),n+=r,i+=this.chunk.length-s}return this.chunk.push(t,e,n,i),r}parseLine(t){let{line:e,end:n}=this.nextLine(),i=0,{streamParser:r}=this.lang,s=new tD(e,t?t.state.tabSize:4,t?Q(t.state):2);if(s.eol())r.blankLine(this.state,s.indentUnit);else for(;!s.eol();){let o=tE(r.token,s,this.state);if(o&&(i=this.emitToken(this.lang.tokenTable.resolve(o),this.parsedPos+s.start,this.parsedPos+s.pos,4,i)),s.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPose.start)return r}throw Error("Stream parser failed to advance stream.")}let tz=Object.create(null),tB=[r.Jq.none],tW=new r.Lj(tB),tJ=[],tL=Object.create(null);for(let[tj,tF]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])tL[tj]=tq(tz,tF);class t_{constructor(t){this.extra=t,this.table=Object.assign(Object.create(null),tL)}resolve(t){return t?this.table[t]||(this.table[t]=tq(this.extra,t)):0}}let tU=new t_(tz);function tX(t,e){tJ.indexOf(t)>-1||(tJ.push(t),console.warn(e))}function tq(t,e){let n=null;for(let i of e.split(".")){let s=t[i]||l.pJ[i];s?"function"==typeof s?n?n=s(n):tX(i,`Modifier ${i} used at start of tag`):n?tX(i,`Tag ${i} used as modifier`):n=s:tX(i,`Unknown highlighting tag ${i}`)}if(!n)return 0;let o=e.replace(/ /g,"_"),a=r.Jq.define({id:tB.length,name:o,props:[(0,l.Gv)({[o]:n})]});return tB.push(a),a.id}},78120:function(t,e,n){let i;n.d(e,{BO:function(){return tO},D0:function(){return tk},Gz:function(){return tW},IS:function(){return tB},Py:function(){return tu},QQ:function(){return U},Wl:function(){return V},Xs:function(){return tC},YW:function(){return tf},as:function(){return Q},bg:function(){return O},cp:function(){return m},f_:function(){return tA},gc:function(){return C},gm:function(){return b},jT:function(){return E},n0:function(){return A},nZ:function(){return x},q6:function(){return ta},r$:function(){return W},uU:function(){return tx},xv:function(){return r},yy:function(){return tb}});class r{constructor(){}lineAt(t){if(t<0||t>this.length)throw RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,n){let i=[];return this.decompose(0,t,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(e,this.length,i,1),o.from(i,this.length-(e-t)+n.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){let n=[];return this.decompose(t,e,n,0),o.from(n,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),n=this.length-this.scanIdentical(t,-1),i=new a(this),r=new a(t);for(let s=e,o=e;;){if(i.next(s),r.next(s),s=0,i.lineBreak!=r.lineBreak||i.done!=r.done||i.value!=r.value)return!1;if(o+=i.value.length,i.done||o>=n)return!0}}iter(t=1){return new a(this,t)}iterRange(t,e=this.length){return new h(this,t,e)}iterLines(t,e){let n;if(null==t)n=this.iter();else{null==e&&(e=this.lines+1);let i=this.line(t).from;n=this.iterRange(i,Math.max(i,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new c(n)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}static of(t){if(0==t.length)throw RangeError("A document must have at least one line");return 1!=t.length||t[0]?t.length<=32?new s(t):o.from(s.split(t,[])):r.empty}}class s extends r{constructor(t,e=function(t){let e=-1;for(let n of t)e+=n.length+1;return e}(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,n,i){for(let r=0;;r++){let s=this.text[r],o=i+s.length;if((e?n:o)>=t)return new u(i,o,n,s);i=o+1,n++}}decompose(t,e,n,i){let r=t<=0&&e>=this.length?this:new s(l(this.text,[""],t,e),Math.min(e,this.length)-Math.max(0,t));if(1&i){let o=n.pop(),a=l(r.text,o.text.slice(),0,r.length);if(a.length<=32)n.push(new s(a,o.length+r.length));else{let h=a.length>>1;n.push(new s(a.slice(0,h)),new s(a.slice(h)))}}else n.push(r)}replace(t,e,n){if(!(n instanceof s))return super.replace(t,e,n);let i=l(this.text,l(n.text,l(this.text,[""],0,t)),e),r=this.length+n.length-(e-t);return i.length<=32?new s(i,r):o.from(s.split(i,[]),r)}sliceString(t,e=this.length,n="\n"){let i="";for(let r=0,s=0;r<=e&&st&&s&&(i+=n),tr&&(i+=o.slice(Math.max(0,t-r),e-r)),r=l+1}return i}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let n=[],i=-1;for(let r of t)n.push(r),i+=r.length+1,32==n.length&&(e.push(new s(n,i)),n=[],i=-1);return i>-1&&e.push(new s(n,i)),e}}class o extends r{constructor(t,e){for(let n of(super(),this.children=t,this.length=e,this.lines=0,t))this.lines+=n.lines}lineInner(t,e,n,i){for(let r=0;;r++){let s=this.children[r],o=i+s.length,l=n+s.lines-1;if((e?l:o)>=t)return s.lineInner(t,e,n,i);i=o+1,n=l+1}}decompose(t,e,n,i){for(let r=0,s=0;s<=e&&r=s){let a=i&((s<=t?1:0)|(l>=e?2:0));s>=t&&l<=e&&!a?n.push(o):o.decompose(t-s,e-s,n,a)}s=l+1}}replace(t,e,n){if(n.lines=r&&e<=l){let a=s.replace(t-r,e-r,n),h=this.lines-s.lines+a.lines;if(a.lines>4&&a.lines>h>>6){let c=this.children.slice();return c[i]=a,new o(c,this.length-(e-t)+n.length)}return super.replace(r,l,a)}r=l+1}return super.replace(t,e,n)}sliceString(t,e=this.length,n="\n"){let i="";for(let r=0,s=0;rt&&r&&(i+=n),ts&&(i+=o.sliceString(t-s,e-s,n)),s=l+1}return i}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof o))return 0;let n=0,[i,r,s,l]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=e,r+=e){if(i==s||r==l)return n;let a=this.children[i],h=t.children[r];if(a!=h)return n+a.scanIdentical(h,e);n+=a.length+1}}static from(t,e=t.reduce((t,e)=>t+e.length+1,-1)){let n=0;for(let i of t)n+=i.lines;if(n<32){let r=[];for(let l of t)l.flatten(r);return new s(r,e)}let a=Math.max(32,n>>5),h=a<<1,c=a>>1,u=[],f=0,d=-1,p=[];function m(){0!=f&&(u.push(1==p.length?p[0]:o.from(p,d)),d=-1,f=p.length=0)}for(let g of t)!function t(e){let n;if(e.lines>h&&e instanceof o)for(let i of e.children)t(i);else e.lines>c&&(f>c||!f)?(m(),u.push(e)):e instanceof s&&f&&(n=p[p.length-1])instanceof s&&e.lines+n.lines<=32?(f+=e.lines,d+=e.length+1,p[p.length-1]=new s(n.text.concat(e.text),n.length+1+e.length)):(f+e.lines>a&&m(),f+=e.lines,d+=e.length+1,p.push(e))}(g);return m(),1==u.length?u[0]:new o(u,e)}}function l(t,e,n=0,i=1e9){for(let r=0,s=0,o=!0;s=n&&(a>i&&(l=l.slice(0,i-r)),r0?1:(t instanceof s?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],r=this.offsets[n],o=r>>1,l=i instanceof s?i.text.length:i.children.length;if(o==(e>0?l:0)){if(0==n)return this.done=!0,this.value="",this;e>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(e>0?0:1)){if(this.offsets[n]+=e,0==t)return this.lineBreak=!0,this.value="\n",this;t--}else if(i instanceof s){let a=i.text[o+(e<0?-1:0)];if(this.offsets[n]+=e,a.length>Math.max(0,t))return this.value=0==t?a:e>0?a.slice(t):a.slice(0,a.length-t),this;t-=a.length}else{let h=i.children[o+(e<0?-1:0)];t>h.length?(t-=h.length,this.offsets[n]+=e):(e<0&&this.offsets[n]--,this.nodes.push(h),this.offsets.push(e>0?1:(h instanceof s?h.text.length:h.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class h{constructor(t,e,n){this.value="",this.done=!1,this.cursor=new a(t,e>n?-1:1),this.pos=e>n?t.length:0,this.from=Math.min(e,n),this.to=Math.max(e,n)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let n=e<0?this.pos-this.from:this.to-this.pos;t>n&&(t=n),n-=t;let{value:i}=this.cursor.next(t);return this.pos+=(i.length+t)*e,this.value=i.length<=n?i:e<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class c{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:n,value:i}=this.inner.next(t);return e?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.iter()},a.prototype[Symbol.iterator]=h.prototype[Symbol.iterator]=c.prototype[Symbol.iterator]=function(){return this});class u{constructor(t,e,n,i){this.from=t,this.to=e,this.number=n,this.text=i}get length(){return this.to-this.from}}let f="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let d=1;d=127462&&t<=127487}function m(t,e,n=!0,i=!0){return(n?g:k)(t,e,i)}function g(t,e,n){if(e==t.length)return e;e&&y(t.charCodeAt(e))&&v(t.charCodeAt(e-1))&&e--;let i=b(t,e);for(e+=x(i);et)return f[e-1]<=t;return!1}(r))e+=x(r),i=r;else if(p(r)){let s=0,o=e-2;for(;o>=0&&p(b(t,o));)s++,o-=2;if(s%2==0)break;e+=2}else break}return e}function k(t,e,n){for(;e>0;){let i=g(t,e-2,n);if(i=56320&&t<57344}function v(t){return t>=55296&&t<56320}function b(t,e){let n=t.charCodeAt(e);if(!v(n)||e+1==t.length)return n;let i=t.charCodeAt(e+1);return y(i)?(n-55296<<10)+(i-56320)+65536:n}function O(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10)+55296,(1023&t)+56320)}function x(t){return t<65536?1:2}let w=/\r\n?|\n/;var S,P,C=((S=C||(C={}))[S.Simple=0]="Simple",S[S.TrackDel=1]="TrackDel",S[S.TrackBefore=2]="TrackBefore",S[S.TrackAfter=3]="TrackAfter",S);class A{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;et)return r+(t-i);r+=o}else{if(n!=C.Simple&&a>=t&&(n==C.TrackDel&&it||n==C.TrackBefore&&it))return null;if(a>t||a==t&&e<0&&!o)return t==i||e<0?r:r+l;r+=l}i=a}if(t>i)throw RangeError(`Position ${t} is out of range for changeset of length ${i}`);return r}touchesRange(t,e=t){for(let n=0,i=0;n=0&&i<=e&&o>=t)return!(ie)||"cover";i=o}return!1}toString(){let t="";for(let e=0;e=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(t=>"number"!=typeof t))throw RangeError("Invalid JSON representation of ChangeDesc");return new A(t)}static create(t){return new A(t)}}class Q extends A{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw RangeError("Applying change set to a document with the wrong length");return D(this,(e,n,i,r,s)=>t=t.replace(i,i+(n-e),s),!1),t}mapDesc(t,e=!1){return R(this,t,e,!0)}invert(t){let e=this.sections.slice(),n=[];for(let i=0,s=0;i=0){e[i]=l,e[i+1]=o;let a=i>>1;for(;n.length0&&I(n,e,r.text),r.forward(a),o+=a}let c=t[s++];for(;o>1].toJSON()))}return t}static of(t,e,n){let i=[],s=[],o=0,l=null;function a(t=!1){if(!t&&!i.length)return;of||u<0||f>e)throw RangeError(`Invalid change range ${u} to ${f} (in doc of length ${e})`);let p=d?"string"==typeof d?r.of(d.split(n||w)):d:r.empty,m=p.length;if(u==f&&0==m)return;uo&&T(i,u-o,-1),T(i,f-u,m),I(s,i,p),o=f}}(t),a(!l),l}static empty(t){return new Q(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw RangeError("Invalid JSON representation of ChangeSet");let e=[],n=[];for(let i=0;ie&&"string"!=typeof t))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==s.length)e.push(s[0],0);else{for(;n.length=0&&n<=0&&n==t[r+1]?t[r]+=e:0==e&&0==t[r]?t[r+1]+=n:i?(t[r]+=e,t[r+1]+=n):t.push(e,n)}function I(t,e,n){if(0==n.length)return;let i=e.length-2>>1;if(i>1])),!n&&l!=t.sections.length&&!(t.sections[l+1]<0);)a=t.sections[l++],h=t.sections[l++];e(s,c,o,u,f),s=c,o=u}}}function R(t,e,n,i=!1){let r=[],s=i?[]:null,o=new $(t),l=new $(e);for(let a=-1;;)if(-1==o.ins&&-1==l.ins){let h=Math.min(o.len,l.len);T(r,h,-1),o.forward(h),l.forward(h)}else if(l.ins>=0&&(o.ins<0||a==o.i||0==o.off&&(l.len=0&&a=0){let f=0,d=o.len;for(;d;)if(-1==l.ins){let p=Math.min(d,l.len);f+=p,d-=p,l.forward(p)}else if(0==l.ins&&l.lena||o.ins>=0&&o.len>a)&&(l||i.length>h),s.forward2(a),o.forward(a)}}else T(i,0,o.ins,l),r&&I(r,i,o.text),o.next()}}class ${constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return e>=t.length?r.empty:t[e]}textBit(t){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length&&!t?r.empty:e[n].slice(this.off,null==t?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class N{constructor(t,e,n){this.from=t,this.to=e,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let t=3&this.flags;return 3==t?null:t}get goalColumn(){let t=this.flags>>5;return 33554431==t?void 0:t}map(t,e=-1){let n,i;return this.empty?n=i=t.mapPos(this.from,e):(n=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new N(n,i,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return E.range(t,e);let n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return E.range(this.anchor,n)}eq(t){return this.anchor==t.anchor&&this.head==t.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid JSON representation for SelectionRange");return E.range(t.anchor,t.head)}static create(t,e,n){return new N(t,e,n)}}class E{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:E.create(this.ranges.map(n=>n.map(t,e)),this.mainIndex)}eq(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let e=0;et.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||"number"!=typeof t.main||t.main>=t.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new E(t.ranges.map(t=>N.fromJSON(t)),t.main)}static single(t,e=t){return new E([E.range(t,e)],0)}static create(t,e=0){if(0==t.length)throw RangeError("A selection needs at least one range");for(let n=0,i=0;it?4:0))}static normalized(t,e=0){let n=t[e];t.sort((t,e)=>t.from-e.from),e=t.indexOf(n);for(let i=1;ir.head?E.range(l,o):E.range(o,l))}}return new E(t,e)}}function z(t,e){for(let n of t.ranges)if(n.to>e)throw RangeError("Selection points outside of document")}let B=0;class W{constructor(t,e,n,i,r){this.combine=t,this.compareInput=e,this.compare=n,this.isStatic=i,this.id=B++,this.default=t([]),this.extensions="function"==typeof r?r(this):r}static define(t={}){return new W(t.combine||(t=>t),t.compareInput||((t,e)=>t===e),t.compare||(t.combine?(t,e)=>t===e:J),!!t.static,t.enables)}of(t){return new L([],this,0,t)}compute(t,e){if(this.isStatic)throw Error("Can't compute a static facet");return new L(t,this,1,e)}computeN(t,e){if(this.isStatic)throw Error("Can't compute a static facet");return new L(t,this,2,e)}from(t,e){return e||(e=t=>t),this.compute([t],n=>e(n.field(t)))}}function J(t,e){return t==e||t.length==e.length&&t.every((t,n)=>t===e[n])}class L{constructor(t,e,n,i){this.dependencies=t,this.facet=e,this.type=n,this.value=i,this.id=B++}dynamicSlot(t){var e;let n=this.value,i=this.facet.compareInput,r=this.id,s=t[r]>>1,o=2==this.type,l=!1,a=!1,h=[];for(let c of this.dependencies)"doc"==c?l=!0:"selection"==c?a=!0:((null!==(e=t[c.id])&&void 0!==e?e:1)&1)==0&&h.push(t[c.id]);return{create:t=>(t.values[s]=n(t),1),update(t,e){if(l&&e.docChanged||a&&(e.docChanged||e.selection)||F(t,h)){let r=n(t);if(o?!j(r,t.values[s],i):!i(r,t.values[s]))return t.values[s]=r,1}return 0},reconfigure:(t,e)=>{let l,a=e.config.address[r];if(null!=a){let h=tt(e,a);if(this.dependencies.every(n=>n instanceof W?e.facet(n)===t.facet(n):!(n instanceof U)||e.field(n,!1)==t.field(n,!1))||(o?j(l=n(t),h,i):i(l=n(t),h)))return t.values[s]=h,0}else l=n(t);return t.values[s]=l,1}}}}function j(t,e,n){if(t.length!=e.length)return!1;for(let i=0;it===e),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(_).find(t=>t.field==this);return((null==e?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:t=>(t.values[e]=this.create(t),1),update:(t,n)=>{let i=t.values[e],r=this.updateF(i,n);return this.compareF(i,r)?0:(t.values[e]=r,1)},reconfigure:(t,n)=>null!=n.config.address[this.id]?(t.values[e]=n.field(this),0):(t.values[e]=this.create(t),1)}}init(t){return[this,_.of({field:this,create:t})]}get extension(){return this}}let X={lowest:4,low:3,default:2,high:1,highest:0};function q(t){return e=>new G(e,t)}let V={highest:q(X.highest),high:q(X.high),default:q(X.default),low:q(X.low),lowest:q(X.lowest)};class G{constructor(t,e){this.inner=t,this.prec=e}}class Z{of(t){return new Y(this,t)}reconfigure(t){return Z.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class Y{constructor(t,e){this.compartment=t,this.inner=e}}class K{constructor(t,e,n,i,r,s){for(this.base=t,this.compartments=e,this.dynamicSlots=n,this.address=i,this.staticValues=r,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,e,n){let i,r,s=[],o=Object.create(null),l=new Map;for(let a of(i=[[],[],[],[],[]],r=new Map,!function t(n,s){let o=r.get(n);if(null!=o){if(o<=s)return;let a=i[o].indexOf(n);a>-1&&i[o].splice(a,1),n instanceof Y&&l.delete(n.compartment)}if(r.set(n,s),Array.isArray(n))for(let h of n)t(h,s);else if(n instanceof Y){if(l.has(n.compartment))throw RangeError("Duplicate use of compartment in extensions");let c=e.get(n.compartment)||n.inner;l.set(n.compartment,c),t(c,s)}else if(n instanceof G)t(n.inner,n.prec);else if(n instanceof U)i[s].push(n),n.provides&&t(n.provides,s);else if(n instanceof L)i[s].push(n),n.facet.extensions&&t(n.facet.extensions,X.default);else{let u=n.extension;if(!u)throw Error(`Unrecognized extension value in extension set (${n}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);t(u,s)}}(t,X.default),i.reduce((t,e)=>t.concat(e))))a instanceof U?s.push(a):(o[a.facet.id]||(o[a.facet.id]=[])).push(a);let h=Object.create(null),c=[],u=[];for(let f of s)h[f.id]=u.length<<1,u.push(t=>f.slot(t));let d=null==n?void 0:n.config.facets;for(let p in o){let m=o[p],g=m[0].facet,k=d&&d[p]||[];if(m.every(t=>0==t.type)){if(h[g.id]=c.length<<1|1,J(k,m))c.push(n.facet(g));else{let y=g.combine(m.map(t=>t.value));c.push(n&&g.compare(y,n.facet(g))?n.facet(g):y)}}else{for(let v of m)0==v.type?(h[v.id]=c.length<<1|1,c.push(v.value)):(h[v.id]=u.length<<1,u.push(t=>v.dynamicSlot(t)));h[g.id]=u.length<<1,u.push(t=>(function(t,e,n){let i=n.map(e=>t[e.id]),r=n.map(t=>t.type),s=i.filter(t=>!(1&t)),o=t[e.id]>>1;function l(t){let n=[];for(let s=0;st(h));return new K(t,l,b,h,c,o)}}function H(t,e){if(1&e)return 2;let n=e>>1,i=t.status[n];if(4==i)throw Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[n]=4;let r=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|r}function tt(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}let te=W.define(),tn=W.define({combine:t=>t.some(t=>t),static:!0}),ti=W.define({combine:t=>t.length?t[0]:void 0,static:!0}),tr=W.define(),ts=W.define(),to=W.define(),tl=W.define({combine:t=>!!t.length&&t[0]});class ta{constructor(t,e){this.type=t,this.value=e}static define(){return new th}}class th{of(t){return new ta(this,t)}}class tc{constructor(t){this.map=t}of(t){return new tu(this,t)}}class tu{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return void 0===e?void 0:e==this.value?this:new tu(this.type,e)}is(t){return this.type==t}static define(t={}){return new tc(t.map||(t=>t))}static mapEffects(t,e){if(!t.length)return t;let n=[];for(let i of t){let r=i.map(e);r&&n.push(r)}return n}}tu.reconfigure=tu.define(),tu.appendConfig=tu.define();class tf{constructor(t,e,n,i,r,s){this.startState=t,this.changes=e,this.selection=n,this.effects=i,this.annotations=r,this.scrollIntoView=s,this._doc=null,this._state=null,n&&z(n,e.newLength),r.some(t=>t.type==tf.time)||(this.annotations=r.concat(tf.time.of(Date.now())))}static create(t,e,n,i,r,s){return new tf(t,e,n,i,r,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(tf.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&"."==e[t.length]))}}function td(t,e,n){var i;let r,s,o;return n?(r=e.changes,s=Q.empty(e.changes.length),o=t.changes.compose(e.changes)):(r=e.changes.map(t.changes),s=t.changes.mapDesc(e.changes,!0),o=t.changes.compose(r)),{changes:o,selection:e.selection?e.selection.map(s):null===(i=t.selection)||void 0===i?void 0:i.map(r),effects:tu.mapEffects(t.effects,r).concat(tu.mapEffects(e.effects,s)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function tp(t,e,n){let i=e.selection,r=tg(e.annotations);return e.userEvent&&(r=r.concat(tf.userEvent.of(e.userEvent))),{changes:e.changes instanceof Q?e.changes:Q.of(e.changes||[],n,t.facet(ti)),selection:i&&(i instanceof E?i:E.single(i.anchor,i.head)),effects:tg(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}tf.time=ta.define(),tf.userEvent=ta.define(),tf.addToHistory=ta.define(),tf.remote=ta.define();let tm=[];function tg(t){return null==t?tm:Array.isArray(t)?t:[t]}var tk=((P=tk||(tk={}))[P.Word=0]="Word",P[P.Space=1]="Space",P[P.Other=2]="Other",P);let ty=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{i=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(tv){}class tb{constructor(t,e,n,i,r,s){this.config=t,this.doc=e,this.selection=n,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=r,s&&(s._state=this);for(let o=0;o=0;r--){let s=n[r](t);s&&Object.keys(s).length&&(i=td(i,tp(e,s,t.changes.newLength),!0))}return i==t?t:tf.create(e,t.changes,t.selection,i.effects,i.annotations,i.scrollIntoView)}(i?function(e){let n=e.startState,i=!0;for(let r of n.facet(tr)){let s=r(e);if(!1===s){i=!1;break}Array.isArray(s)&&(i=!0===i?s:function(t,e){let n=[];for(let i=0,r=0;;){let s,o;if(i=t[i]))s=t[i++],o=t[i++];else{if(!(r=0;c--){let u=h[c](e);e=u instanceof tf?u:Array.isArray(u)&&1==u.length&&u[0]instanceof tf?u[0]:t(n,tg(u),!1)}return e}(l):l)}(this,t,!0)}applyTransaction(t){let e,n=this.config,{base:i,compartments:r}=n;for(let s of t.effects)s.is(Z.reconfigure)?(n&&(r=new Map,n.compartments.forEach((t,e)=>r.set(e,t)),n=null),r.set(s.value.compartment,s.value.extension)):s.is(tu.reconfigure)?(n=null,i=s.value):s.is(tu.appendConfig)&&(n=null,i=tg(i).concat(s.value));n?e=t.startState.values.slice():(n=K.resolve(i,r,this),e=new tb(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(t,e)=>e.reconfigure(t,this),null).values),new tb(n,t.newDoc,t.newSelection,e,(e,n)=>n.update(e,t),t)}replaceSelection(t){return"string"==typeof t&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:E.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,n=t(e.ranges[0]),i=this.changes(n.changes),r=[n.range],s=tg(n.effects);for(let o=1;os.spec.fromJSON(o,t)))}}return tb.create({doc:t.doc,selection:E.fromJSON(t.selection),extensions:e.extensions?i.concat([e.extensions]):i})}static create(t={}){let e=K.resolve(t.extensions||[],new Map),n=t.doc instanceof r?t.doc:r.of((t.doc||"").split(e.staticFacet(tb.lineSeparator)||w)),i=t.selection?t.selection instanceof E?t.selection:E.single(t.selection.anchor,t.selection.head):E.single(0);return z(i,n.length),e.staticFacet(tn)||(i=i.asSingle()),new tb(e,n,i,e.dynamicSlots.map(()=>null),(t,e)=>e.create(t),null)}get tabSize(){return this.facet(tb.tabSize)}get lineBreak(){return this.facet(tb.lineSeparator)||"\n"}get readOnly(){return this.facet(tl)}phrase(t,...e){for(let n of this.facet(tb.phrases))if(Object.prototype.hasOwnProperty.call(n,t)){t=n[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,(t,n)=>{if("$"==n)return"$";let i=+(n||1);return!i||i>e.length?t:e[i-1]})),t}languageDataAt(t,e,n=-1){let i=[];for(let r of this.facet(te))for(let s of r(this,e,n))Object.prototype.hasOwnProperty.call(s,t)&&i.push(s[t]);return i}charCategorizer(t){var e;return e=this.languageDataAt("wordChars",t).join(""),t=>{if(!/\S/.test(t))return tk.Space;if(function(t){if(i)return i.test(t);for(let e=0;e"\x80"&&(n.toUpperCase()!=n.toLowerCase()||ty.test(n)))return!0}return!1}(t))return tk.Word;for(let n=0;n-1)return tk.Word;return tk.Other}}wordAt(t){let{text:e,from:n,length:i}=this.doc.lineAt(t),r=this.charCategorizer(t),s=t-n,o=t-n;for(;s>0;){let l=m(e,s,!1);if(r(e.slice(l,s))!=tk.Word)break;s=l}for(;ot.length?t[0]:4}),tb.lineSeparator=ti,tb.readOnly=tl,tb.phrases=W.define({compare(t,e){let n=Object.keys(t),i=Object.keys(e);return n.length==i.length&&n.every(n=>t[n]==e[n])}}),tb.languageData=te,tb.changeFilter=tr,tb.transactionFilter=ts,tb.transactionExtender=to,Z.reconfigure=tu.define();class tx{eq(t){return this==t}range(t,e=t){return tw.create(t,e,this)}}tx.prototype.startSide=tx.prototype.endSide=0,tx.prototype.point=!1,tx.prototype.mapMode=C.TrackDel;class tw{constructor(t,e,n){this.from=t,this.to=e,this.value=n}static create(t,e,n){return new tw(t,e,n)}}function tS(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class tP{constructor(t,e,n,i){this.from=t,this.to=e,this.value=n,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(t,e,n,i=0){let r=n?this.to:this.from;for(let s=i,o=r.length;;){if(s==o)return s;let l=s+o>>1,a=r[l]-t||(n?this.value[l].endSide:this.value[l].startSide)-e;if(l==s)return a>=0?s:o;a>=0?o=l:s=l+1}}between(t,e,n,i){for(let r=this.findIndex(e,-1e9,!0),s=this.findIndex(n,1e9,!1,r);r(f=e.mapPos(c,a.endSide))||u==f&&a.startSide>0&&a.endSide<=0)continue;0>(f-u||a.endSide-a.startSide)||(s<0&&(s=u),a.point&&(o=Math.max(o,f-u)),n.push(a),i.push(u-s),r.push(f-s))}return{mapped:n.length?new tP(i,r,n,o):null,pos:s}}}class tC{constructor(t,e,n,i){this.chunkPos=t,this.chunk=e,this.nextLayer=n,this.maxPoint=i}static create(t,e,n,i){return new tC(t,e,n,i)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:n=!1,filterFrom:i=0,filterTo:r=this.length}=t,s=t.filter;if(0==e.length&&!s)return this;if(n&&(e=e.slice().sort(tS)),this.isEmpty)return e.length?tC.of(e):this;let o=new tT(this,null,-1).goto(0),l=0,a=[],h=new tA;for(;o.value||l=0){let c=e[l++];h.addInner(c.from,c.to,c.value)||a.push(c)}else 1==o.rangeIndex&&o.chunkIndexthis.chunkEnd(o.chunkIndex)||ro.to||r=r&&t<=r+s.length&&!1===s.between(r,t-r,e-r,n))return}this.nextLayer.between(t,e,n)}}iter(t=0){return tI.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return tI.from(t).goto(e)}static compare(t,e,n,i,r=-1){let s=t.filter(t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=r),o=e.filter(t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=r),l=tQ(s,o,n),a=new tR(s,l,r),h=new tR(o,l,r);n.iterGaps((t,e,n)=>tM(a,t,h,e,n,i)),n.empty&&0==n.length&&tM(a,0,h,0,0,i)}static eq(t,e,n=0,i){null==i&&(i=999999999);let r=t.filter(t=>!t.isEmpty&&0>e.indexOf(t)),s=e.filter(e=>!e.isEmpty&&0>t.indexOf(e));if(r.length!=s.length)return!1;if(!r.length)return!0;let o=tQ(r,s),l=new tR(r,o,0).goto(n),a=new tR(s,o,0).goto(n);for(;;){if(l.to!=a.to||!t$(l.active,a.active)||l.point&&(!a.point||!l.point.eq(a.point)))return!1;if(l.to>i)return!0;l.next(),a.next()}}static spans(t,e,n,i,r=-1){let s=new tR(t,null,r).goto(e),o=e,l=s.openStart;for(;;){let a=Math.min(s.to,n);if(s.point){let h=s.activeForPoint(s.to),c=s.pointFromo&&(i.span(o,a,s.active,l),l=s.openEnd(a));if(s.to>n)return l+(s.point&&s.to>n?1:0);o=s.to,s.next()}}static of(t,e=!1){let n=new tA;for(let i of t instanceof tw?[t]:e?function(t){if(t.length>1)for(let e=t[0],n=1;n0)return t.slice().sort(tS);e=i}return t}(t):t)n.add(i.from,i.to,i.value);return n.finish()}}tC.empty=new tC([],[],null,-1),tC.empty.nextLayer=tC.empty;class tA{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(t){this.chunks.push(new tP(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}add(t,e,n){this.addInner(t,e,n)||(this.nextLayer||(this.nextLayer=new tA)).add(t,e,n)}addInner(t,e,n){let i=t-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&0>(t-this.lastFrom||n.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(i<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=n,this.lastFrom=t,this.lastTo=e,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}addChunk(t,e){if(0>(t-this.lastTo||e.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let n=e.value.length-1;return this.last=e.value[n],this.lastFrom=e.from[n]+t,this.lastTo=e.to[n]+t,!0}finish(){return this.finishInner(tC.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return t;let e=tC.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function tQ(t,e,n){let i=new Map;for(let r of t)for(let s=0;s(this.to-t||this.endSide-e)&&this.gotoInner(t,e,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let t=this.layer.chunkPos[this.chunkIndex],e=this.layer.chunk[this.chunkIndex],n=t+e.from[this.rangeIndex];if(this.from=n,this.to=t+e.to[this.rangeIndex],this.value=e.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&i.push(new tT(s,e,n,r));return 1==i.length?i[0]:new tI(i)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let n of this.heap)n.goto(t,e);for(let i=this.heap.length>>1;i>=0;i--)tD(this.heap,i);return this.next(),this}forward(t,e){for(let n of this.heap)n.forward(t,e);for(let i=this.heap.length>>1;i>=0;i--)tD(this.heap,i);0>(this.to-t||this.value.endSide-e)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),tD(this.heap,0)}}}function tD(t,e){for(let n=t[e];;){let i=(e<<1)+1;if(i>=t.length)break;let r=t[i];if(i+1=0&&(r=t[i+1],i++),0>n.compare(r))break;t[i]=n,t[e]=r,e=i}}class tR{constructor(t,e,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=tI.from(t,e,n)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e);)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){tN(this.active,t),tN(this.activeTo,t),tN(this.activeRank,t),this.minActive=tz(this.active,this.activeTo)}addActive(t){let e=0,{value:n,to:i,rank:r}=this.cursor;for(;e-1&&0>(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)){if(this.activeTo[i]>t){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&tN(n,i)}else if(this.cursor.value){if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let r=this.cursor.value;if(r.point){if(e&&this.cursor.to==this.to&&this.cursor.from=0&&n[s]=0&&!(this.activeRank[n]t||this.activeTo[n]==t&&this.active[n].endSide>=this.point.endSide)&&e.push(this.active[n]);return e.reverse()}openEnd(t){let e=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>t;n--)e++;return e}}function tM(t,e,n,i,r,s){t.goto(e),n.goto(i);let o=i+r,l=i,a=i-e;for(;;){let h=t.to+a-n.to||t.endSide-n.endSide,c=h<0?t.to+a:n.to,u=Math.min(c,o);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&t$(t.activeForPoint(t.to+a),n.activeForPoint(n.to))||s.comparePoint(l,u,t.point,n.point):u>l&&!t$(t.active,n.active)&&s.compareRange(l,u,t.active,n.active),c>o)break;l=c,h<=0&&t.next(),h>=0&&n.next()}}function t$(t,e){if(t.length!=e.length)return!1;for(let n=0;n=e;i--)t[i+1]=t[i];t[e]=n}function tz(t,e){let n=-1,i=1e9;for(let r=0;r(e[r]-i||t[r].endSide-t[n].endSide)&&(n=r,i=e[r]);return n}function tB(t,e,n=t.length){let i=0;for(let r=0;r=e)return r;if(r==t.length)break;s+=9==t.charCodeAt(r)?n-s%n:1,r=m(t,r)}return!0===i?-1:t.length}},41113:function(t,e,n){var i,r;n.d(e,{FE:function(){return N},Jq:function(){return u},L3:function(){return s},Lj:function(){return f},_b:function(){return M},hr:function(){return D},i9:function(){return R},md:function(){return a},mp:function(){return m},vj:function(){return i}});let s=1024,o=0;class l{constructor(t,e){this.from=t,this.to=e}}class a{constructor(t={}){this.id=o++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=u.match(t)),e=>{let n=t(e);return void 0===n?null:[this,n]}}}a.closedBy=new a({deserialize:t=>t.split(" ")}),a.openedBy=new a({deserialize:t=>t.split(" ")}),a.group=new a({deserialize:t=>t.split(" ")}),a.contextHash=new a({perNode:!0}),a.lookAhead=new a({perNode:!0}),a.mounted=new a({perNode:!0});class h{constructor(t,e,n){this.tree=t,this.overlay=e,this.parser=n}}let c=Object.create(null);class u{constructor(t,e,n,i=0){this.name=t,this.props=e,this.id=n,this.flags=i}static define(t){let e=t.props&&t.props.length?Object.create(null):c,n=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(null==t.name?8:0),i=new u(t.name||"",e,t.id,n);if(t.props){for(let r of t.props)if(Array.isArray(r)||(r=r(i)),r){if(r[0].perNode)throw RangeError("Can't store a per-node prop on a node type");e[r[0].id]=r[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(t){if("string"==typeof t){if(this.name==t)return!0;let e=this.prop(a.group);return!!e&&e.indexOf(t)>-1}return this.id==t}static match(t){let e=Object.create(null);for(let n in t)for(let i of n.split(" "))e[i]=t[n];return t=>{for(let n=t.prop(a.group),i=-1;i<(n?n.length:0);i++){let r=e[i<0?t.name:n[i]];if(r)return r}}}}u.none=new u("",Object.create(null),0,8);class f{constructor(t){this.types=t;for(let e=0;e=r&&(o.type.isAnonymous||!1!==e(o))){if(o.firstChild())continue;l=!0}for(;l&&n&&!o.type.isAnonymous&&n(o),!o.nextSibling();){if(!o.parent())return;l=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:I(u.none,this.children,this.positions,0,this.children.length,0,this.length,(t,e,n)=>new m(this.type,t,e,n,this.propValues),t.makeTree||((t,e,n)=>new m(u.none,t,e,n)))}static build(t){return function(t){var e;let{buffer:n,nodeSet:i,maxBufferLength:r=s,reused:o=[],minRepeatType:l=i.types.length}=t,h=Array.isArray(n)?new g(n,n.length):n,c=i.types,u=0,f=0;function d(t,e,n,r,s,o,l,a){let h=[],c=[];for(;t.length>r;)h.push(t.pop()),c.push(e.pop()+n-s);t.push(p(i.types[l],h,c,o-s,a-o)),e.push(s-n)}function p(t,e,n,i,r=0,s){if(u){let o=[a.contextHash,u];s=s?[o].concat(s):[o]}if(r>25){let l=[a.lookAhead,r];s=s?[l].concat(s):[l]}return new m(t,e,n,i,s)}let y=[],v=[];for(;h.pos>0;)!function t(e,n,s,g,y){let{id:v,start:b,end:O,size:x}=h,w=f;for(;x<0;){if(h.next(),-1==x){let S=o[v];s.push(S),g.push(b-e);return}if(-3==x){u=v;return}if(-4==x){f=v;return}throw RangeError(`Unrecognized record size: ${x}`)}let P=c[v],C,A,Q=b-e;if(O-b<=r&&(A=function(t,e){let n=h.fork(),i=0,s=0,o=0,a=n.end-r,c={size:0,start:0,skip:0};n:for(let u=n.pos-t;n.pos>u;){let f=n.size;if(n.id==e&&f>=0){c.size=i,c.start=s,c.skip=o,o+=4,i+=4,n.next();continue}let d=n.pos-f;if(f<0||d=l?4:0,m=n.start;for(n.next();n.pos>d;){if(n.size<0){if(-3==n.size)p+=4;else break n}else n.id>=l&&(p+=4);n.next()}s=m,i+=f,o+=p}return(e<0||i==t)&&(c.size=i,c.start=s,c.skip=o),c.size>4?c:void 0}(h.pos-n,y))){let T=new Uint16Array(A.size-A.skip),D=h.pos-A.size,R=T.length;for(;h.pos>D;)R=function t(e,n,i){let{id:r,start:s,end:o,size:a}=h;if(h.next(),a>=0&&r4){let d=h.pos-(a-4);for(;h.pos>d;)i=t(e,n,i)}n[--i]=c,n[--i]=o-e,n[--i]=s-e,n[--i]=r}else -3==a?u=r:-4==a&&(f=r);return i}(A.start,T,R);C=new k(T,O-A.start,i),Q=A.start-e}else{let M=h.pos-x;h.next();let $=[],N=[],E=v>=l?v:-1,z=0,B=O;for(;h.pos>M;)E>=0&&h.id==E&&h.size>=0?(h.end<=B-r&&(d($,N,b,z,h.end,B,E,w),z=$.length,B=h.end),h.next()):t(b,M,$,N,E);if(E>=0&&z>0&&z<$.length&&d($,N,b,z,b,B,E,w),$.reverse(),N.reverse(),E>-1&&z>0){let W=function(t){return(e,n,i)=>{let r=0,s=e.length-1,o,l;if(s>=0&&(o=e[s])instanceof m){if(!s&&o.type==t&&o.length==i)return o;(l=o.prop(a.lookAhead))&&(r=n[s]+o.length+l)}return p(t,e,n,i,r)}}(P);C=I(P,$,N,0,$.length,0,O-b,W,W)}else C=p(P,$,N,O-b,w-O)}s.push(C),g.push(Q)}(t.start||0,t.bufferStart||0,y,v,-1);let b=null!==(e=t.length)&&void 0!==e?e:y.length?v[0]+y[0].length:0;return new m(c[t.topID],y.reverse(),v.reverse(),b)}(t)}}m.empty=new m(u.none,[],[],0);class g{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new g(this.buffer,this.index)}}class k{constructor(t,e,n){this.buffer=t,this.length=e,this.set=n}get type(){return u.none}toString(){let t=[];for(let e=0;e0)));l=s[l+3]);return o}slice(t,e,n){let i=this.buffer,r=new Uint16Array(e-t),s=0;for(let o=t,l=0;o=e&&ne;case 1:return n<=e&&i>e;case 2:return i>e;case 4:return!0}}function v(t,e){let n=t.childBefore(e);for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(t=n,n=i.prevSibling):n=i}return t}function b(t,e,n,r){for(var s;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to0?l.length:-1;t!=c;t+=e){let u=l[t],f=h[t]+o.from;if(y(r,n,f,f+u.length)){if(u instanceof k){if(s&i.ExcludeBuffers)continue;let d=u.findChild(0,u.buffer.length,e,n-f,r);if(d>-1)return new P(new S(o,u,t,f),null,d)}else if(s&i.IncludeAnonymous||!u.type.isAnonymous||A(u)){let p;if(!(s&i.IgnoreMounts)&&u.props&&(p=u.prop(a.mounted))&&!p.overlay)return new O(p.tree,f,t,o);let m=new O(u,f,t,o);return s&i.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(e<0?u.children.length-1:0,e,n,r)}}}if(s&i.IncludeAnonymous||!o.type.isAnonymous||(t=o.index>=0?o.index+e:e<0?-1:o._parent._tree.children.length,!(o=o._parent)))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,e,n=0){let r;if(!(n&i.IgnoreOverlays)&&(r=this._tree.prop(a.mounted))&&r.overlay){let s=t-this.from;for(let{from:o,to:l}of r.overlay)if((e>0?o<=s:o=s:l>s))return new O(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,n)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(t=0){return new C(this,t)}get tree(){return this._tree}toTree(){return this._tree}resolve(t,e=0){return b(this,t,e,!1)}resolveInner(t,e=0){return b(this,t,e,!0)}enterUnfinishedNodesBefore(t){return v(this,t)}getChild(t,e=null,n=null){let i=x(this,t,e,n);return i.length?i[0]:null}getChildren(t,e=null,n=null){return x(this,t,e,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(t){return w(this,t)}}function x(t,e,n,i){let r=t.cursor(),s=[];if(!r.firstChild())return s;if(null!=n){for(;!r.type.is(n);)if(!r.nextSibling())return s}for(;;){if(null!=i&&r.type.is(i))return s;if(r.type.is(e)&&s.push(r.node),!r.nextSibling())return null==i?s:[]}}function w(t,e,n=e.length-1){for(let i=t.parent;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[n]&&e[n]!=i.name)return!1;n--}}return!0}class S{constructor(t,e,n,i){this.parent=t,this.buffer=e,this.index=n,this.start=i}}class P{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,n){this.context=t,this._parent=e,this.index=n,this.type=t.buffer.set.types[t.buffer.buffer[n]]}child(t,e,n){let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],t,e-this.context.start,n);return r<0?null:new P(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,e,n=0){if(n&i.ExcludeBuffers)return null;let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return s<0?null:new P(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new P(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new P(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}cursor(t=0){return new C(this,t)}get tree(){return null}toTree(){let t=[],e=[],{buffer:n}=this.context,i=this.index+4,r=n.buffer[this.index+3];if(r>i){let s=n.buffer[this.index+1];t.push(n.slice(i,r,s)),e.push(0)}return new m(this.type,t,e,this.to-this.from)}resolve(t,e=0){return b(this,t,e,!1)}resolveInner(t,e=0){return b(this,t,e,!0)}enterUnfinishedNodesBefore(t){return v(this,t)}toString(){return this.context.buffer.childString(this.index)}getChild(t,e=null,n=null){let i=x(this,t,e,n);return i.length?i[0]:null}getChildren(t,e=null,n=null){return x(this,t,e,n)}get node(){return this}matchContext(t){return w(this,t)}}class C{get name(){return this.type.name}constructor(t,e=0){if(this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof O)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let n=t._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return!!t&&(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0)}yieldBuf(t,e){this.index=t;let{start:n,buffer:i}=this.buffer;return this.type=e||i.set.types[i.buffer[t]],this.from=n+i.buffer[t+1],this.to=n+i.buffer[t+2],!0}yield(t){return!!t&&(t instanceof O?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,n){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,n,this.mode));let{buffer:i}=this.buffer,r=i.findChild(this.index+4,i.buffer[this.index+3],t,e-this.buffer.start,n);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,n=this.mode){return this.buffer?!(n&i.ExcludeBuffers)&&this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&i.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&i.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode));let{buffer:e}=this.buffer,n=this.stack.length-1;if(t<0){let i=n<0?0:this.stack[n]+4;if(this.index!=i)return this.yieldBuf(e.findChild(i,this.index,-1,0,4))}else{let r=e.buffer[this.index+3];if(r<(n<0?e.buffer.length:e.buffer[this.stack[n]+3]))return this.yieldBuf(r)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,n,{buffer:r}=this;if(r){if(t>0){if(this.index-1)for(let o=e+t,l=t<0?-1:n._tree.children.length;o!=l;o+=t){let a=n._tree.children[o];if(this.mode&i.IncludeAnonymous||a instanceof k||!a.type.isAnonymous||A(a))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to=0;){for(let s=t;s;s=s._parent)if(s.index==i){if(i==this.index)return s;e=s,n=r+1;break n}i=this.stack[--r]}for(let o=n;o=0;r--){if(r<0)return w(this.node,t,i);let s=n[e.buffer[this.stack[r]]];if(!s.isAnonymous){if(t[i]&&t[i]!=s.name)return!1;i--}}return!0}}function A(t){return t.children.some(t=>t instanceof k||!t.type.isAnonymous||A(t))}let Q=new WeakMap;function T(t,e){if(!t.isAnonymous||e instanceof k||e.type!=t)return 1;let n=Q.get(e);if(null==n){for(let i of(n=1,e.children)){if(i.type!=t||!(i instanceof m)){n=1;break}n+=T(t,i)}Q.set(e,n)}return n}function I(t,e,n,i,r,s,o,l,a){let h=0;for(let c=i;c=u)break;m+=g}if(h==c+1){if(m>u){let k=n[c];e(k.children,k.positions,0,k.children.length,i[c]+l);continue}f.push(n[c])}else{let y=i[h-1]+n[h-1].length-p;f.push(I(t,n,i,c,h,p,y,null,a))}d.push(p+l-s)}}(e,n,i,r,0),(l||a)(f,d,o)}class D{constructor(){this.map=new WeakMap}setBuffer(t,e,n){let i=this.map.get(t);i||this.map.set(t,i=new Map),i.set(e,n)}getBuffer(t,e){let n=this.map.get(t);return n&&n.get(e)}set(t,e){t instanceof P?this.setBuffer(t.context.buffer,t.index,e):t instanceof O&&this.map.set(t.tree,e)}get(t){return t instanceof P?this.getBuffer(t.context.buffer,t.index):t instanceof O?this.map.get(t.tree):void 0}cursorSet(t,e){t.buffer?this.setBuffer(t.buffer.buffer,t.index,e):this.map.set(t.tree,e)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class R{constructor(t,e,n,i,r=!1,s=!1){this.from=t,this.to=e,this.tree=n,this.offset=i,this.open=(r?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(t,e=[],n=!1){let i=[new R(0,t.length,t,0,!1,n)];for(let r of e)r.to>t.length&&i.push(r);return i}static applyChanges(t,e,n=128){if(!e.length)return t;let i=[],r=1,s=t.length?t[0]:null;for(let o=0,l=0,a=0;;o++){let h=o=n)for(;s&&s.from=u.from||c<=u.to||a){let f=Math.max(u.from,l)-a,d=Math.min(u.to,c)-a;u=f>=d?null:new R(f,d,u.tree,u.offset+a,o>0,!!h)}if(u&&i.push(u),s.to>c)break;s=rnew l(t.from,t.to)):[new l(0,0)]:[new l(0,t.length)],this.createParse(t,e||[],n)}parse(t,e,n){let i=this.startParse(t,e,n);for(;;){let r=i.advance();if(r)return r}}}class ${constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}function N(t){return(e,n,i,r)=>new W(e,t,n,i,r)}class E{constructor(t,e,n,i,r){this.parser=t,this.parse=e,this.overlay=n,this.target=i,this.ranges=r}}class z{constructor(t,e,n,i,r,s,o){this.parser=t,this.predicate=e,this.mounts=n,this.index=i,this.start=r,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}let B=new a({perNode:!0});class W{constructor(t,e,n,i,r){this.nest=e,this.input=n,this.fragments=i,this.ranges=r,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let t=this.baseParse.advance();if(!t)return null;if(this.baseParse=null,this.baseTree=t,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return null!=this.stoppedAt&&(n=new m(n.type,n.children,n.positions,n.length,n.propValues.concat([[B,this.stoppedAt]]))),n}let i=this.inner[this.innerDone],r=i.parse.advance();if(r){this.innerDone++;let s=Object.assign(Object.create(null),i.target.props);s[a.mounted.id]=new h(r,i.overlay,i.parser),i.target.props=s}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let e=this.innerDone;et.frag.from<=r.from&&t.frag.to>=r.to&&t.mount.overlay);if(c)for(let f of c.mount.overlay){let d=f.from+c.pos,p=f.to+c.pos;d>=r.from&&p<=r.to&&!e.ranges.some(t=>t.fromd)&&e.ranges.push({from:d,to:p})}}a=!1}else if(n&&(o=function(t,e,n){for(let i of t){if(i.from>=n)break;if(i.to>e)return i.from<=e&&i.to>=n?2:1}return 0}(n.ranges,r.from,r.to)))a=2!=o;else if(!r.type.isAnonymous&&r.from=e.to);i++);let o=r.children[i],l=o.buffer;r.children[i]=function t(n,i,r,a,h){let c=n;for(;l[c+2]+s<=e.from;)c=l[c+3];let u=[],f=[];J(o,n,c,u,f,a);let d=l[c+1],p=l[c+2],g=d+s==e.from&&p+s==e.to&&l[c]==e.type.id;return u.push(g?e.toTree():t(c+4,l[c+3],o.set.types[l[c]],d,p-d)),f.push(d-a),J(o,l[c+3],i,u,f,a),new m(r,u,f,h)}(0,l.length,u.none,0,o.length);for(let a=0;a<=n;a++)t.childAfter(e.from)}(r);let g=t.findMounts(r.from,s.parser);if("function"==typeof s.overlay)e=new z(s.parser,s.overlay,g,this.inner.length,r.from,r.tree,e);else{let k=F(this.ranges,s.overlay||[new l(r.from,r.to)]);k.length&&this.inner.push(new E(s.parser,s.parser.startParse(this.input,_(g,k),k),s.overlay?s.overlay.map(t=>new l(t.from-r.from,t.to-r.from)):null,r.tree,k)),s.overlay?k.length&&(n={ranges:k,depth:0,prev:n}):a=!1}}else e&&(h=e.predicate(r))&&(!0===h&&(h=new l(r.from,r.to)),h.fromnew l(t.from-e.start,t.to-e.start)),e.target,y)),e=e.prev}!n||--n.depth||(n=n.prev)}}}}function J(t,e,n,i,r,s){if(e=t&&e.enter(n,1,i.IgnoreOverlays|i.ExcludeBuffers)||e.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let e=this.cursor.tree;;){if(e==t.tree)return!0;if(e.children.length&&0==e.positions[0]&&e.children[0]instanceof m)e=e.children[0];else break}return!1}}class j{constructor(t){var e;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let n=this.curFrag=t[0];this.curTo=null!==(e=n.tree.prop(B))&&void 0!==e?e:n.to,this.inner=new L(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let e=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(t=e.tree.prop(B))&&void 0!==t?t:e.to,this.inner=new L(e.tree,-e.offset)}}findMounts(t,e){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let r=this.inner.cursor.node;r;r=r.parent){let s=null===(n=r.tree)||void 0===n?void 0:n.prop(a.mounted);if(s&&s.parser==e)for(let o=this.fragI;o=r.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:r.from-l.offset,mount:s})}}}return i}}function F(t,e){let n=null,i=e;for(let r=1,s=0;r=a)break;!(h.to<=o)&&(n||(i=n=e.slice()),h.froma&&n.splice(s+1,0,new l(a,h.to))):h.to>a?n[s--]=new l(a,h.to):n.splice(s--,1))}}return i}function _(t,e){let n=[];for(let{pos:i,mount:r,frag:s}of t){let o=i+(r.overlay?r.overlay[0].from:0),a=o+r.tree.length,h=Math.max(s.from,o),c=Math.min(s.to,a);if(r.overlay){let u=function(t,e,n,i){let r=0,s=0,o=!1,a=!1,h=-1e9,c=[];for(;;){let u=r==t.length?1e9:o?t[r].to:t[r].from,f=s==e.length?1e9:a?e[s].to:e[s].from;if(o!=a){let d=Math.max(h,n),p=Math.min(u,f,i);dnew l(t.from+i,t.to+i)),h,c);for(let f=0,d=h;;f++){let p=f==u.length,m=p?c:u[f].from;if(m>d&&n.push(new R(d,m,r.tree,-o,s.from>=d||s.openStart,s.to<=m||s.openEnd)),p)break;d=u[f].to}}else n.push(new R(h,c,r.tree,-o,s.from>=o||s.openStart,s.to<=a||s.openEnd))}return n}},35524:function(t,e,n){n.d(e,{Gv:function(){return a},QR:function(){return u},Vp:function(){return s},bW:function(){return f},pJ:function(){return T}});var i=n(41113);let r=0;class s{constructor(t,e,n){this.set=t,this.base=e,this.modified=n,this.id=r++}static define(t){if(null==t?void 0:t.base)throw Error("Can not derive from a modified tag");let e=new s([],null,[]);if(e.set.push(e),t)for(let n of t.set)e.set.push(n);return e}static defineModifier(){let t=new l;return e=>e.modified.indexOf(t)>-1?e:l.get(e.base||e,e.modified.concat(t).sort((t,e)=>t.id-e.id))}}let o=0;class l{constructor(){this.instances=[],this.id=o++}static get(t,e){if(!e.length)return t;let n=e[0].instances.find(n=>{var i;return n.base==t&&(i=n.modified,e.length==i.length&&e.every((t,e)=>t==i[e]))});if(n)return n;let i=[],r=new s(i,t,e);for(let o of e)o.instances.push(r);let a=function(t){let e=[[]];for(let n=0;ne.length-t.length)}(e);for(let h of t.set)if(!h.modified.length)for(let c of a)i.push(l.get(h,c));return r}}function a(t){let e=Object.create(null);for(let n in t){let i=t[n];for(let r of(Array.isArray(i)||(i=[i]),n.split(" ")))if(r){let s=[],o=2,l=r;for(let a=0;;){if("..."==l&&a>0&&a+3==r.length){o=1;break}let u=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!u)throw RangeError("Invalid path: "+r);if(s.push("*"==u[0]?"":'"'==u[0][0]?JSON.parse(u[0]):u[0]),(a+=u[0].length)==r.length)break;let f=r[a++];if(a==r.length&&"!"==f){o=0;break}if("/"!=f)throw RangeError("Invalid path: "+r);l=r.slice(a)}let d=s.length-1,p=s[d];if(!p)throw RangeError("Invalid path: "+r);let m=new c(i,o,d>0?s.slice(0,d):null);e[p]=m.sort(e[p])}}return h.add(e)}let h=new i.md;class c{constructor(t,e,n,i){this.tags=t,this.mode=e,this.context=n,this.next=i}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(t){return!t||t.depththis.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,n,r,s){let{type:o,from:l,to:a}=t;if(l>=n||a<=e)return;o.isTop&&(s=this.highlighters.filter(t=>!t.scope||t.scope(o)));let u=r,f=function(t){let e=t.type.prop(h);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}(t)||c.empty,d=function(t,e){let n=null;for(let i of t){let r=i.style(e);r&&(n=n?n+" "+r:r)}return n}(s,f.tags);if(d&&(u&&(u+=" "),u+=d,1==f.mode&&(r+=(r?" ":"")+d)),this.startSpan(t.from,u),f.opaque)return;let p=t.tree&&t.tree.prop(i.md.mounted);if(p&&p.overlay){let m=t.node.enter(p.overlay[0].from+l,1),g=this.highlighters.filter(t=>!t.scope||t.scope(p.tree.type)),k=t.firstChild();for(let y=0,v=l;;y++){let b=y=O)&&t.nextSibling()););if(!b||O>n)break;(v=b.to+l)>e&&(this.highlightRange(m.cursor(),Math.max(e,b.from+l),Math.min(n,v),r,g),this.startSpan(v,u))}k&&t.parent()}else if(t.firstChild()){do{if(t.to<=e)continue;if(t.from>=n)break;this.highlightRange(t,e,n,r,s),this.startSpan(Math.min(n,t.to),u)}while(t.nextSibling());t.parent()}}}let p=s.define,m=p(),g=p(),k=p(g),y=p(g),v=p(),b=p(v),O=p(v),x=p(),w=p(x),S=p(),P=p(),C=p(),A=p(C),Q=p(),T={comment:m,lineComment:p(m),blockComment:p(m),docComment:p(m),name:g,variableName:p(g),typeName:k,tagName:p(k),propertyName:y,attributeName:p(y),className:p(g),labelName:p(g),namespace:p(g),macroName:p(g),literal:v,string:b,docString:p(b),character:p(b),attributeValue:p(b),number:O,integer:p(O),float:p(O),bool:p(v),regexp:p(v),escape:p(v),color:p(v),url:p(v),keyword:S,self:p(S),null:p(S),atom:p(S),unit:p(S),modifier:p(S),operatorKeyword:p(S),controlKeyword:p(S),definitionKeyword:p(S),moduleKeyword:p(S),operator:P,derefOperator:p(P),arithmeticOperator:p(P),logicOperator:p(P),bitwiseOperator:p(P),compareOperator:p(P),updateOperator:p(P),definitionOperator:p(P),typeOperator:p(P),controlOperator:p(P),punctuation:C,separator:p(C),bracket:A,angleBracket:p(A),squareBracket:p(A),paren:p(A),brace:p(A),content:x,heading:w,heading1:p(w),heading2:p(w),heading3:p(w),heading4:p(w),heading5:p(w),heading6:p(w),contentSeparator:p(x),list:p(x),quote:p(x),emphasis:p(x),strong:p(x),link:p(x),monospace:p(x),strikethrough:p(x),inserted:p(),deleted:p(),changed:p(),invalid:p(),meta:Q,documentMeta:p(Q),annotation:p(Q),processingInstruction:p(Q),definition:s.defineModifier(),constant:s.defineModifier(),function:s.defineModifier(),standard:s.defineModifier(),local:s.defineModifier(),special:s.defineModifier()};u([{tag:T.link,class:"tok-link"},{tag:T.heading,class:"tok-heading"},{tag:T.emphasis,class:"tok-emphasis"},{tag:T.strong,class:"tok-strong"},{tag:T.keyword,class:"tok-keyword"},{tag:T.atom,class:"tok-atom"},{tag:T.bool,class:"tok-bool"},{tag:T.url,class:"tok-url"},{tag:T.labelName,class:"tok-labelName"},{tag:T.inserted,class:"tok-inserted"},{tag:T.deleted,class:"tok-deleted"},{tag:T.literal,class:"tok-literal"},{tag:T.string,class:"tok-string"},{tag:T.number,class:"tok-number"},{tag:[T.regexp,T.escape,T.special(T.string)],class:"tok-string2"},{tag:T.variableName,class:"tok-variableName"},{tag:T.local(T.variableName),class:"tok-variableName tok-local"},{tag:T.definition(T.variableName),class:"tok-variableName tok-definition"},{tag:T.special(T.variableName),class:"tok-variableName2"},{tag:T.definition(T.propertyName),class:"tok-propertyName tok-definition"},{tag:T.typeName,class:"tok-typeName"},{tag:T.namespace,class:"tok-namespace"},{tag:T.className,class:"tok-className"},{tag:T.macroName,class:"tok-macroName"},{tag:T.propertyName,class:"tok-propertyName"},{tag:T.operator,class:"tok-operator"},{tag:T.comment,class:"tok-comment"},{tag:T.meta,class:"tok-meta"},{tag:T.invalid,class:"tok-invalid"},{tag:T.punctuation,class:"tok-punctuation"}])},53105:function(t,e,n){n.d(e,{IK:function(){return I},Jq:function(){return v},WQ:function(){return D}});var i,r,s,o,l,a,h=n(41113),c=n(34155);class u{constructor(t,e,n,i,r,s,o,l,a,h=0,c){this.p=t,this.stack=e,this.state=n,this.reducePos=i,this.pos=r,this.score=s,this.buffer=o,this.bufferBase=l,this.curContext=a,this.lookAhead=h,this.parent=c}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,n=0){let i=t.parser.context;return new u(t,[],e,n,n,0,[],0,i?new f(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){let e=t>>19,n=65535&t,{parser:i}=this.p,r=i.dynamicPrecedence(n);if(r&&(this.score+=r),0==e){this.pushState(i.getGoto(this.state,n,!0),this.reducePos),ns;)this.stack.pop();this.reduceContext(n,o)}storeNode(t,e,n,i=4,r=!1){if(0==t&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[o-4]&&s.buffer[o-1]>-1){if(e==n)return;if(s.buffer[o-2]>=e){s.buffer[o-2]=n;return}}}if(r&&this.pos!=n){let l=this.buffer.length;if(l>0&&0!=this.buffer[l-4])for(;l>0&&this.buffer[l-2]>n;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,i>4&&(i-=4);this.buffer[l]=t,this.buffer[l+1]=e,this.buffer[l+2]=n,this.buffer[l+3]=i}else this.buffer.push(t,e,n,i)}shift(t,e,n){let i=this.pos;if(131072&t)this.pushState(65535&t,this.pos);else if((262144&t)==0){let{parser:r}=this.p;(n>this.pos||e<=r.maxNode)&&(this.pos=n,r.stateFlag(t,1)||(this.reducePos=n)),this.pushState(t,i),this.shiftContext(e,i),e<=r.maxNode&&this.buffer.push(e,i,n,4)}else this.pos=n,this.shiftContext(e,i),e<=this.p.parser.maxNode&&this.buffer.push(e,i,n,4)}apply(t,e,n){65536&t?this.reduce(t):this.shift(t,e,n)}useNode(t,e){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=t)&&(this.p.reused.push(t),n++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let n=t.buffer.slice(e),i=t.bufferBase+e;for(;t&&i==t.bufferBase;)t=t.parent;return new u(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let n=t<=this.p.parser.maxNode;n&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,n?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new d(this);;){let n=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(0==n)return!1;if((65536&n)==0)return!0;e.reduce(n)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let n=[];for(let i=0,r;i1&e&&t==o)||n.push(e[s],o)}e=n}let l=[];for(let a=0;a>19);if(n<0||0>e.getGoto(this.stack[n],65535&t,!1))return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:t}=this.p;return 65535==t.data[t.stateSlot(this.state,1)]&&!t.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class f{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}(i=o||(o={}))[i.Insert=200]="Insert",i[i.Delete=190]="Delete",i[i.Reduce=100]="Reduce",i[i.MaxNext=4]="MaxNext",i[i.MaxInsertStackDepth=300]="MaxInsertStackDepth",i[i.DampenInsertStackDepth=120]="DampenInsertStackDepth";class d{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t>>19;0==e?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(e-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],65535&t,!0);this.state=n}}class p{constructor(t,e,n){this.stack=t,this.pos=e,this.index=n,this.buffer=t.buffer,0==this.index&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new p(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;null!=t&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new p(this.stack,this.pos,this.index)}}class m{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}let g=new m;class k{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=g,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let n=this.range,i=this.rangeIndex,r=this.pos+t;for(;rn.to:r>=n.to;){if(i==this.ranges.length-1)return null;let o=this.ranges[++i];r+=o.from-n.to,n=o}return r}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,n,i;if(e>=0&&e=this.chunk2Pos&&no.to&&(this.chunk2=this.chunk2.slice(0,o.to-n)),i=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),i}acceptToken(t,e=0){let n=e?this.resolveOffset(e,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?n.slice(0,this.range.to-this.pos):n,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=g,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let n="";for(let i of this.ranges){if(i.from>=e)break;i.to>t&&(n+=this.input.read(Math.max(i.from,t),Math.min(i.to,e)))}return n}}class y{constructor(t,e){this.data=t,this.id=e}token(t,e){!function(t,e,n,i){let r=0,s=1<0){let c=t[h];if(l.allows(c)&&(-1==e.token.value||e.token.value==c||o.overrides(c,e.token.value))){e.acceptToken(c);break}}let u=e.next,f=0,d=t[r+2];if(e.next<0&&d>f&&65535==t[a+3*d-3]&&65535==t[a+3*d-3]){r=t[a+3*d-1];continue n}for(;f>1,m=a+p+(p<<1),g=t[m],k=t[m+1]||65536;if(u=k)f=p+1;else{r=t[m+2],e.advance();continue n}}break}}(this.data,t,e,this.id)}}y.prototype.contextual=y.prototype.fallback=y.prototype.extend=!1;class v{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function b(t,e=Uint16Array){if("string"!=typeof t)return t;let n=null;for(let i=0,r=0;i=92&&o--,o>=34&&o--;let a=o-32;if(a>=46&&(a-=46,l=!0),s+=a,l)break;s*=46}n?n[r++]=s:n=new e(s)}return n}let O=void 0!==c&&c.env&&/\bparse\b/.test(c.env.LOG),x=null;function w(t,e,n){let i=t.cursor(h.vj.IncludeAnonymous);for(i.moveTo(e);;)if(!(n<0?i.childBefore(e):i.childAfter(e)))for(;;){if((n<0?i.toe)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:t.length}}(r=l||(l={}))[r.Margin=25]="Margin";class S{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?w(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?w(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=s,null;if(r instanceof h.mp){if(s==t){if(s=Math.max(this.safeFrom,t)&&(this.trees.push(r),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+r.length}}}class P{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(t=>new m)}getActions(t){let e=0,n=null,{parser:i}=t.p,{tokenizers:r}=i,s=i.stateSlot(t.state,3),o=t.curContext?t.curContext.hash:0,l=0;for(let a=0;ac.end+25&&(l=Math.max(c.lookAhead,l)),0!=c.value)){let u=e;if(c.extended>-1&&(e=this.addActions(t,c.extended,c.end,e)),e=this.addActions(t,c.value,c.end,e),!h.extend&&(n=c,e>u))break}}for(;this.actions.length>e;)this.actions.pop();return l&&t.setLookAhead(l),n||t.pos!=this.stream.end||((n=new m).value=t.p.parser.eofTerm,n.start=n.end=t.pos,e=this.addActions(t,n.value,n.end,e)),this.mainToken=n,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new m,{pos:n,p:i}=t;return e.start=n,e.end=Math.min(n+1,i.stream.end),e.value=n==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,n){let i=this.stream.clipPos(n.pos);if(e.token(this.stream.reset(i,t),n),t.value>-1){let{parser:r}=n.p;for(let s=0;s=0&&n.p.parser.dialect.allows(o>>1)){(1&o)==0?t.value=o>>1:t.extended=o>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,n,i){for(let r=0;r4*t.bufferLength?new S(n,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t,e,n=this.stacks,i=this.minStackPos,r=this.stacks=[];for(let s=0;si)r.push(o);else{if(this.advanceStack(o,r,n))continue;t||(t=[],e=[]),t.push(o);let l=this.tokens.getMainToken(o);e.push(l.value,l.end)}break}}if(!r.length){let a=t&&function(t){let e=null;for(let n of t){let i=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=i&&n.pos>i)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.scorethis.stoppedAt?t[0]:this.runRecovery(t,e,r);if(h)return this.stackToTree(h.forceAll())}if(this.recovering){let c=1==this.recovering?1:3*this.recovering;if(r.length>c)for(r.sort((t,e)=>e.score-t.score);r.length>c;)r.pop();r.some(t=>t.reducePos>i)&&this.recovering--}else if(r.length>1)i:for(let u=0;u500&&p.buffer.length>500){if((f.score-p.score||f.buffer.length-p.buffer.length)>0)r.splice(d--,1);else{r.splice(u--,1);continue i}}}}this.minStackPos=r[0].pos;for(let m=1;m ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let o=t.curContext&&t.curContext.tracker.strict,l=o?t.curContext.hash:0;for(let a=this.fragments.nodeAt(i);a;){let c=this.parser.nodeSet.types[a.type.id]==a.type?r.getGoto(t.state,a.type.id):-1;if(c>-1&&a.length&&(!o||(a.prop(h.md.contextHash)||0)==l))return t.useNode(a,c),O&&console.log(s+this.stackID(t)+` (via reuse of ${r.getName(a.type.id)})`),!0;if(!(a instanceof h.mp)||0==a.children.length||a.positions[0]>0)break;let u=a.children[0];if(u instanceof h.mp&&0==a.positions[0])a=u;else break}}let f=r.stateSlot(t.state,4);if(f>0)return t.reduce(f),O&&console.log(s+this.stackID(t)+` (via always-reduce ${r.getName(65535&f)})`),!0;if(t.stack.length>=15e3)for(;t.stack.length>9e3&&t.forceReduce(););let d=this.tokens.getActions(t);for(let p=0;pi?e.push(v):n.push(v)}return!1}advanceFully(t,e){let n=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>n)return A(t,e),!0}}runRecovery(t,e,n){let i=null,r=!1;for(let s=0;s ":"";if(o.deadEnd&&(r||(r=!0,o.restart(),O&&console.log(h+this.stackID(o)+" (restarted)"),this.advanceFully(o,n))))continue;let c=o.split(),u=h;for(let f=0;c.forceReduce()&&f<10&&(O&&console.log(u+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,n));f++)O&&(u=this.stackID(c)+" -> ");for(let d of o.recoverByInsert(l))O&&console.log(h+this.stackID(d)+" (via recover-insert)"),this.advanceFully(d,n);this.stream.end>o.pos?(a==o.pos&&(a++,l=0),o.recoverByDelete(l,a),O&&console.log(h+this.stackID(o)+` (via recover-delete ${this.parser.getName(l)})`),A(o,n)):(!i||i.scoret;class I{constructor(t){this.start=t.start,this.shift=t.shift||T,this.reduce=t.reduce||T,this.reuse=t.reuse||T,this.hash=t.hash||(()=>0),this.strict=!1!==t.strict}}class D extends h._b{constructor(t){if(super(),this.wrappers=[],14!=t.version)throw RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;nt.topRules[e][1]),r=[];for(let s=0;s=0)o(u,a,l[c++]);else{let f=l[c+-u];for(let d=-u;d>0;d--)o(l[c++],a,f);c++}}}this.nodeSet=new h.Lj(e.map((e,n)=>h.Jq.define({name:n>=this.minRepeatTerm?void 0:e,id:n,props:r[n],top:i.indexOf(n)>-1,error:0==n,skipped:t.skippedNodes&&t.skippedNodes.indexOf(n)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=h.L3;let p=b(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let m=0;m"number"==typeof t?new y(p,t):t),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,n){let i=new C(this,t,e,n);for(let r of this.wrappers)i=r(i,t,e,n);return i}getGoto(t,e,n=!1){let i=this.goto;if(e>=i[0])return -1;for(let r=i[e+1];;){let s=i[r++],o=1&s,l=i[r++];if(o&&n)return l;for(let a=r+(s>>1);r0}validAction(t,e){if(e==this.stateSlot(t,4))return!0;for(let n=this.stateSlot(t,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])return!1;n=R(this.data,n+2)}if(e==R(this.data,n+1))return!0}}nextStates(t){let e=[];for(let n=this.stateSlot(t,1);;n+=3){if(65535==this.data[n]){if(1==this.data[n+1])n=R(this.data,n+2);else break}if((1&this.data[n+2])==0){let i=this.data[n+1];e.some((t,e)=>1&e&&t==i)||e.push(this.data[n],i)}}return e}overrides(t,e){let n=M(this.data,this.tokenPrecTable,e);return n<0||M(this.data,this.tokenPrecTable,t){let n=t.tokenizers.find(t=>t.from==e);return n?n.to:e})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((n,i)=>{let r=t.specializers.find(t=>t.from==n.external);if(!r)return n;let s=Object.assign(Object.assign({},n),{external:r.to});return e.specializers[i]=$(s),s})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),null!=t.strict&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),null!=t.bufferLength&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return null==e?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),n=e.map(()=>!1);if(t)for(let i of t.split(" ")){let r=e.indexOf(i);r>=0&&(n[r]=!0)}let s=null;for(let o=0;ot.external(n,i)<<1|e}return t.get}},28699:function(t,e,n){n.d(e,{V:function(){return o}});let i="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),r="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class o{constructor(t,e){this.rules=[];let{finish:n}=e||{};function i(t){return/^@/.test(t)?[t]:t.split(/,\s*/)}for(let r in t)!function t(e,r,s,o){let l=[],a=/^@(\w+)\b/.exec(e[0]),h=a&&"keyframes"==a[1];if(a&&null==r)return s.push(e[0]+";");for(let c in r){let u=r[c];if(/&/.test(c))t(c.split(/,\s*/).map(t=>e.map(e=>t.replace(/&/,e))).reduce((t,e)=>t.concat(e)),u,s);else if(u&&"object"==typeof u){if(!a)throw RangeError("The value of a property ("+c+") should be a primitive value.");t(i(c),u,l,h)}else null!=u&&l.push(c.replace(/_.*/,"").replace(/[A-Z]/g,t=>"-"+t.toLowerCase())+": "+u+";")}(l.length||h)&&s.push((!n||a||o?e:e.map(n)).join(", ")+" {"+l.join(" ")+"}")}(i(r),t[r],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let t=s[i]||1;return s[i]=t+1,"ͼ"+t.toString(36)}static mount(t,e){(t[r]||new a(t)).mount(Array.isArray(e)?e:[e])}}let l=null;class a{constructor(t){if(!t.head&&t.adoptedStyleSheets&&"undefined"!=typeof CSSStyleSheet){if(l)return t.adoptedStyleSheets=[l.sheet].concat(t.adoptedStyleSheets),t[r]=l;this.sheet=new CSSStyleSheet,t.adoptedStyleSheets=[this.sheet].concat(t.adoptedStyleSheets),l=this}else{this.styleTag=(t.ownerDocument||t).createElement("style");let e=t.head||t;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],t[r]=this}mount(t){let e=this.sheet,n=0,i=0;for(let r=0;r-1&&(this.modules.splice(o,1),i--,o=-1),-1==o){if(this.modules.splice(i++,0,s),e)for(let l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent);"undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent);for(var o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=o||s&&57>+s[1],h=0;h<10;h++)i[48+h]=i[96+h]=String(h);for(var h=1;h<=24;h++)i[h+111]="F"+h;for(var h=65;h<=90;h++)i[h]=String.fromCharCode(h+32),r[h]=String.fromCharCode(h);for(var c in i)r.hasOwnProperty(c)||(r[c]=i[c]);function u(t){var e=!(a&&(t.ctrlKey||t.altKey||t.metaKey)||l&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?r:i)[t.keyCode]||t.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/1943-7c4b99dc445d2392.js b/static/web/_next/static/chunks/1943-7c4b99dc445d2392.js new file mode 100644 index 000000000..ae1d074ea --- /dev/null +++ b/static/web/_next/static/chunks/1943-7c4b99dc445d2392.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1943],{58909:function(t,e,n){n.d(e,{F:function(){return a}});var i=n(87462),r=n(35524),s=n(47421),o=n(59119),l=t=>{var{theme:e,settings:n,styles:i}=t,r={"&":{backgroundColor:n.background,color:n.foreground},".cm-gutters":{}};n.fontFamily&&(r["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(r[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(r[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(r[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(r[".cm-content"]={caretColor:n.caret},r[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var l={};n.gutterActiveForeground&&(l.color=n.gutterActiveForeground),n.lineHighlight&&(r[".cm-activeLine"]={backgroundColor:n.lineHighlight},l.backgroundColor=n.lineHighlight),r[".cm-activeLineGutter"]=l,n.selection&&(r["&.cm-focused .cm-selectionBackground, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={backgroundColor:n.selection}),n.selectionMatch&&(r["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var a=s.tk.theme(r,{dark:"dark"===e}),h=o.Qf.define(i);return[a,(0,o.nF)(h)]},a=(t=>{var{theme:e="light",settings:n={},styles:s=[]}={};return l({theme:e,settings:(0,i.Z)({background:"#FFFFFF",foreground:"#000000",caret:"#FBAC52",selection:"#FFD420",selectionMatch:"#FFD420",gutterBackground:"#f5f5f5",gutterForeground:"#4D4D4C",gutterBorder:"transparent",lineHighlight:"#00000012"},n),styles:[{tag:[r.pJ.meta,r.pJ.comment],color:"#804000"},{tag:[r.pJ.keyword,r.pJ.strong],color:"#0000FF"},{tag:[r.pJ.number],color:"#FF0080"},{tag:[r.pJ.string],color:"#FF0080"},{tag:[r.pJ.variableName],color:"#006600"},{tag:[r.pJ.escape],color:"#33CC33"},{tag:[r.pJ.tagName],color:"#1C02FF"},{tag:[r.pJ.heading],color:"#0C07FF"},{tag:[r.pJ.quote],color:"#000000"},{tag:[r.pJ.list],color:"#B90690"},{tag:[r.pJ.documentMeta],color:"#888888"},{tag:[r.pJ.function(r.pJ.variableName)],color:"#0000A2"},{tag:[r.pJ.definition(r.pJ.typeName),r.pJ.typeName],color:"#6D79DE"},...s]})})()},87685:function(t,e,n){n.d(e,{ZP:function(){return nF}});var i=n(87462),r=n(63366),s=n(67294),o=n(78120),l=n(47421),a=n(59119),h=n(41113);let c=t=>{let e=m(t.state);return e.line?f(t):!!e.block&&p(t)};function u(t,e){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let r=t(e,n);return!!r&&(i(n.update(r)),!0)}}let f=u(function(t,e,n=e.selection.ranges){let i=[],r=-1;for(let{from:s,to:o}of n){let l=i.length,a=1e9;for(let h=s;h<=o;){let c=e.doc.lineAt(h);if(c.from>r&&(s==o||o>c.from)){r=c.from;let u=m(e,h).line;if(!u)continue;let f=/^\s*/.exec(c.text)[0].length,d=f==c.length,p=c.text.slice(f,f+u.length)==u?f:-1;ft.comment<0&&(!t.empty||t.single))){let k=[];for(let{line:y,token:v,indent:b,empty:O,single:x}of i)(x||!O)&&k.push({from:y.from+b,insert:v+" "});let w=e.changes(k);return{changes:w,selection:e.selection.map(w,1)}}if(1!=t&&i.some(t=>t.comment>=0)){let S=[];for(let{line:P,comment:C,token:A}of i)if(C>=0){let Q=P.from+C,T=Q+A.length;" "==P.text[T-P.from]&&T++,S.push({from:Q,to:T})}return{changes:S}}return null},0),d=u(g,0),p=u((t,e)=>g(t,e,function(t){let e=[];for(let n of t.selection.ranges){let i=t.doc.lineAt(n.from),r=n.to<=i.to?i:t.doc.lineAt(n.to),s=e.length-1;s>=0&&e[s].to>i.from?e[s].to=r.to:e.push({from:i.from,to:r.to})}return e}(e)),0);function m(t,e=t.selection.main.head){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}function g(t,e,n=e.selection.ranges){let i=n.map(t=>m(e,t.from).block);if(!i.every(t=>t))return null;let r=n.map((t,n)=>(function(t,{open:e,close:n},i,r){let s,o,l=t.sliceDoc(i-50,i),a=t.sliceDoc(r,r+50),h=/\s*$/.exec(l)[0].length,c=/^\s*/.exec(a)[0].length,u=l.length-h;if(l.slice(u-e.length,u)==e&&a.slice(c,c+n.length)==n)return{open:{pos:i-h,margin:h&&1},close:{pos:r+c,margin:c&&1}};r-i<=100?s=o=t.sliceDoc(i,r):(s=t.sliceDoc(i,i+50),o=t.sliceDoc(r-50,r));let f=/^\s*/.exec(s)[0].length,d=/\s*$/.exec(o)[0].length,p=o.length-d-n.length;return s.slice(f,f+e.length)==e&&o.slice(p,p+n.length)==n?{open:{pos:i+f+e.length,margin:/\s/.test(s.charAt(f+e.length))?1:0},close:{pos:r-d-n.length,margin:/\s/.test(o.charAt(p-1))?1:0}}:null})(e,i[n],t.from,t.to));if(2!=t&&!r.every(t=>t))return{changes:e.changes(n.map((t,e)=>r[e]?[]:[{from:t.from,insert:i[e].open+" "},{from:t.to,insert:" "+i[e].close}]))};if(1!=t&&r.some(t=>t)){let s=[];for(let o=0,l;o(0,o.BO)(t,{minDepth:100,newGroupDelay:500},{minDepth:Math.max,newGroupDelay:Math.min})}),O=o.QQ.define({create:()=>$.empty,update(t,e){let n=e.state.facet(b),i=e.annotation(k);if(i){var r;let s;let l=e.docChanged?o.jT.single((r=e.changes,s=0,r.iterChangedRanges((t,e)=>s=e),s)):void 0,a=A.fromTransaction(e,l),h=i.side,c=0==h?t.undone:t.done;return c=a?Q(c,c.length,n.minDepth,a):D(c,e.startState.selection),new $(0==h?i.rest:c,0==h?c:i.rest)}let u=e.annotation(y);if(("full"==u||"before"==u)&&(t=t.isolate()),!1===e.annotation(o.YW.addToHistory))return e.changes.empty?t:t.addMapping(e.changes.desc);let f=A.fromTransaction(e),d=e.annotation(o.YW.time),p=e.annotation(o.YW.userEvent);return f?t=t.addChanges(f,d,p,n.newGroupDelay,n.minDepth):e.selection&&(t=t.addSelection(e.startState.selection,d,p,n.newGroupDelay)),("full"==u||"after"==u)&&(t=t.isolate()),t},toJSON:t=>({done:t.done.map(t=>t.toJSON()),undone:t.undone.map(t=>t.toJSON())}),fromJSON:t=>new $(t.done.map(A.fromJSON),t.undone.map(A.fromJSON))});function x(t,e){return function({state:n,dispatch:i}){if(!e&&n.readOnly)return!1;let r=n.field(O,!1);if(!r)return!1;let s=r.pop(t,n,e);return!!s&&(i(s),!0)}}let w=x(0,!1),S=x(1,!1),P=x(0,!0),C=x(1,!0);class A{constructor(t,e,n,i,r){this.changes=t,this.effects=e,this.mapped=n,this.startSelection=i,this.selectionsAfter=r}setSelAfter(t){return new A(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,n;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(t=>t.toJSON())}}static fromJSON(t){return new A(t.changes&&o.as.fromJSON(t.changes),[],t.mapped&&o.n0.fromJSON(t.mapped),t.startSelection&&o.jT.fromJSON(t.startSelection),t.selectionsAfter.map(o.jT.fromJSON))}static fromTransaction(t,e){let n=I;for(let i of t.startState.facet(v)){let r=i(t);r.length&&(n=n.concat(r))}return!n.length&&t.changes.empty?null:new A(t.changes.invert(t.startState.doc),n,void 0,e||t.startState.selection,I)}static selection(t){return new A(void 0,I,void 0,void 0,t)}}function Q(t,e,n,i){let r=t.slice(e+1>n+20?e-n-1:0,e);return r.push(i),r}function T(t,e){return t.length?e.length?t.concat(e):t:e}let I=[];function D(t,e){if(!t.length)return[A.selection([e])];{let n=t[t.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(e)?t:(i.push(e),Q(t,t.length-1,1e9,n.setSelAfter(i)))}}function R(t,e){if(!t.length)return t;let n=t.length,i=I;for(;n;){let r=function(t,e,n){let i=T(t.selectionsAfter.length?t.selectionsAfter.map(t=>t.map(e)):I,n);if(!t.changes)return A.selection(i);let r=t.changes.map(e),s=e.mapDesc(t.changes,!0),l=t.mapped?t.mapped.composeDesc(s):s;return new A(r,o.Py.mapEffects(t.effects,e),l,t.startSelection.map(s),i)}(t[n-1],e,i);if(r.changes&&!r.changes.empty||r.effects.length){let s=t.slice(0,n);return s[n-1]=r,s}e=r.mapped,n--,i=r.selectionsAfter}return i.length?[A.selection(i)]:I}let M=/^(input\.type|delete)($|\.)/;class ${constructor(t,e,n=0,i){this.done=t,this.undone=e,this.prevTime=n,this.prevUserEvent=i}isolate(){return this.prevTime?new $(this.done,this.undone):this}addChanges(t,e,n,i,r){var s,o;let l,a,h=this.done,c=h[h.length-1];return h=c&&c.changes&&!c.changes.empty&&t.changes&&(!n||M.test(n))&&(!c.selectionsAfter.length&&e-this.prevTimel.push(t,e)),o.iterChangedRanges((t,e,n,i)=>{for(let r=0;r=s&&n<=o&&(a=!0)}}),a)||"input.type.compose"==n)?Q(h,h.length-1,r,new A(t.changes.compose(c.changes),T(t.effects,c.effects),c.mapped,c.startSelection,I)):Q(h,h.length,r,t),new $(h,I,e,n)}addSelection(t,e,n,i){var r;let s=this.done.length?this.done[this.done.length-1].selectionsAfter:I;return s.length>0&&e-this.prevTimee.empty!=t.ranges[n].empty).length?this:new $(D(this.done,t),this.undone,e,n)}addMapping(t){return new $(R(this.done,t),R(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,e,n){let i=0==t?this.done:this.undone;if(0==i.length)return null;let r=i[i.length-1];if(n&&r.selectionsAfter.length){var s;let o,l;return e.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:k.of({side:t,rest:(o=(s=i)[s.length-1],(l=s.slice())[s.length-1]=o.setSelAfter(o.selectionsAfter.slice(0,o.selectionsAfter.length-1)),l)}),userEvent:0==t?"select.undo":"select.redo",scrollIntoView:!0})}if(!r.changes)return null;{let a=1==i.length?I:i.slice(0,i.length-1);return r.mapped&&(a=R(a,r.mapped)),e.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:k.of({side:t,rest:a}),filter:!1,userEvent:0==t?"undo":"redo",scrollIntoView:!0})}}}$.empty=new $(I,I);let N=[{key:"Mod-z",run:w,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:S,preventDefault:!0},{linux:"Ctrl-Shift-z",run:S,preventDefault:!0},{key:"Mod-u",run:P,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:C,preventDefault:!0}];function E(t,e){return o.jT.create(t.ranges.map(e),t.mainIndex)}function z(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function B({state:t,dispatch:e},n){let i=E(t.selection,n);return!i.eq(t.selection)&&(e(z(t,i)),!0)}function W(t,e){return o.jT.cursor(e?t.to:t.from)}function J(t,e){return B(t,n=>n.empty?t.moveByChar(n,e):W(n,e))}function L(t){return t.textDirectionAt(t.state.selection.main.head)==l.Nm.LTR}let j=t=>J(t,!L(t)),F=t=>J(t,L(t));function _(t,e){return B(t,n=>n.empty?t.moveByGroup(n,e):W(n,e))}let U=t=>_(t,!L(t)),X=t=>_(t,L(t));function q(t,e,n){let i,r,s=(0,a.qz)(t).resolveInner(e.head),l=n?h.md.closedBy:h.md.openedBy;for(let c=e.head;;){let u=n?s.childAfter(c):s.childBefore(c);if(!u)break;!function(t,e,n){if(e.type.prop(n))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}(t,u,l)?c=n?u.to:u.from:s=u}return r=s.type.prop(l)&&(i=n?(0,a.Um)(t,s.from,1):(0,a.Um)(t,s.to,-1))&&i.matched?n?i.end.to:i.end.from:n?s.to:s.from,o.jT.cursor(r,n?-1:1)}let V=t=>B(t,e=>q(t.state,e,!L(t))),G=t=>B(t,e=>q(t.state,e,L(t)));function Z(t,e){return B(t,n=>{if(!n.empty)return W(n,e);let i=t.moveVertically(n,e);return i.head!=n.head?i:t.moveToLineBoundary(n,e)})}let Y=t=>Z(t,!1),K=t=>Z(t,!0);function H(t){return Math.max(t.defaultLineHeight,Math.min(t.dom.clientHeight,innerHeight)-5)}function tt(t,e){let n,{state:i}=t,r=E(i.selection,n=>n.empty?t.moveVertically(n,e,H(t)):W(n,e));if(r.eq(i.selection))return!1;let s=t.coordsAtPos(i.selection.main.head),o=t.scrollDOM.getBoundingClientRect();return s&&s.top>o.top&&s.bottomtt(t,!1),tn=t=>tt(t,!0);function ti(t,e,n){let i=t.lineBlockAt(e.head),r=t.moveToLineBoundary(e,n);if(r.head==e.head&&r.head!=(n?i.to:i.from)&&(r=t.moveToLineBoundary(e,n,!1)),!n&&r.head==i.from&&i.length){let s=/^\s*/.exec(t.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;s&&e.head!=i.from+s&&(r=o.jT.cursor(i.from+s))}return r}let tr=t=>B(t,e=>ti(t,e,!0)),ts=t=>B(t,e=>ti(t,e,!1)),to=t=>B(t,e=>ti(t,e,!L(t))),tl=t=>B(t,e=>ti(t,e,L(t))),ta=t=>B(t,e=>o.jT.cursor(t.lineBlockAt(e.head).from,1)),th=t=>B(t,e=>o.jT.cursor(t.lineBlockAt(e.head).to,-1)),tc=({state:t,dispatch:e})=>{let n,i;return n=!1,i=E(t.selection,e=>{let i=(0,a.Um)(t,e.head,-1)||(0,a.Um)(t,e.head,1)||e.head>0&&(0,a.Um)(t,e.head-1,1)||e.head{let n=e(t);return o.jT.range(t.anchor,n.head,n.goalColumn)});return!n.eq(t.state.selection)&&(t.dispatch(z(t.state,n)),!0)}function tf(t,e){return tu(t,n=>t.moveByChar(n,e))}let td=t=>tf(t,!L(t)),tp=t=>tf(t,L(t));function tm(t,e){return tu(t,n=>t.moveByGroup(n,e))}let tg=t=>tm(t,!L(t)),tk=t=>tm(t,L(t)),ty=t=>tu(t,e=>q(t.state,e,!L(t))),tv=t=>tu(t,e=>q(t.state,e,L(t)));function tb(t,e){return tu(t,n=>t.moveVertically(n,e))}let tO=t=>tb(t,!1),tx=t=>tb(t,!0);function tw(t,e){return tu(t,n=>t.moveVertically(n,e,H(t)))}let tS=t=>tw(t,!1),tP=t=>tw(t,!0),tC=t=>tu(t,e=>ti(t,e,!0)),tA=t=>tu(t,e=>ti(t,e,!1)),tQ=t=>tu(t,e=>ti(t,e,!L(t))),tT=t=>tu(t,e=>ti(t,e,L(t))),tI=t=>tu(t,e=>o.jT.cursor(t.lineBlockAt(e.head).from)),tD=t=>tu(t,e=>o.jT.cursor(t.lineBlockAt(e.head).to)),tR=({state:t,dispatch:e})=>(e(z(t,{anchor:0})),!0),tM=({state:t,dispatch:e})=>(e(z(t,{anchor:t.doc.length})),!0),t$=({state:t,dispatch:e})=>(e(z(t,{anchor:t.selection.main.anchor,head:0})),!0),tN=({state:t,dispatch:e})=>(e(z(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),tE=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),tz=({state:t,dispatch:e})=>{let n=tK(t).map(({from:e,to:n})=>o.jT.range(e,Math.min(n+1,t.doc.length)));return e(t.update({selection:o.jT.create(n),userEvent:"select"})),!0},tB=({state:t,dispatch:e})=>{let n=E(t.selection,e=>{var n;let i=(0,a.qz)(t).resolveInner(e.head,1);for(;!(i.from=e.to||i.to>e.to&&i.from<=e.from||!(null===(n=i.parent)||void 0===n?void 0:n.parent));)i=i.parent;return o.jT.range(i.to,i.from)});return e(z(t,n)),!0},tW=({state:t,dispatch:e})=>{let n=t.selection,i=null;return n.ranges.length>1?i=o.jT.create([n.main]):n.main.empty||(i=o.jT.create([o.jT.cursor(n.main.head)])),!!i&&(e(z(t,i)),!0)};function tJ(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:i}=t,r=i.changeByRange(i=>{let{from:r,to:s}=i;if(r==s){let l=e(r);lr&&(n="delete.forward",l=tL(t,l,!0)),r=Math.min(r,l),s=Math.max(s,l)}else r=tL(t,r,!1),s=tL(t,s,!0);return r==s?{range:i}:{changes:{from:r,to:s},range:o.jT.cursor(r)}});return!r.changes.empty&&(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?l.tk.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function tL(t,e,n){if(t instanceof l.tk)for(let i of t.state.facet(l.tk.atomicRanges).map(e=>e(t)))i.between(e,e,(t,i)=>{te&&(e=n?i:t)});return e}let tj=(t,e)=>tJ(t,n=>{let{state:i}=t,r=i.doc.lineAt(n),s,l;if(!e&&n>r.from&&ntj(t,!1),t_=t=>tj(t,!0),tU=(t,e)=>tJ(t,n=>{let i=n,{state:r}=t,s=r.doc.lineAt(i),l=r.charCategorizer(i);for(let a=null;;){if(i==(e?s.to:s.from)){i==n&&s.number!=(e?r.doc.lines:1)&&(i+=e?1:-1);break}let h=(0,o.cp)(s.text,i-s.from,e)+s.from,c=s.text.slice(Math.min(i,h)-s.from,Math.max(i,h)-s.from),u=l(c);if(null!=a&&u!=a)break;(" "!=c||i!=n)&&(a=u),i=h}return i}),tX=t=>tU(t,!1),tq=t=>tU(t,!0),tV=t=>tJ(t,e=>{let n=t.lineBlockAt(e).to;return etJ(t,e=>{let n=t.lineBlockAt(e).from;return e>n?n:Math.max(0,e-1)}),tZ=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:o.xv.of(["",""])},range:o.jT.cursor(t.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},tY=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let n=e.from,i=t.doc.lineAt(n),r=n==i.from?n-1:(0,o.cp)(i.text,n-i.from,!1)+i.from,s=n==i.to?n+1:(0,o.cp)(i.text,n-i.from,!0)+i.from;return{changes:{from:r,to:s,insert:t.doc.slice(n,s).append(t.doc.slice(r,n))},range:o.jT.cursor(s)}});return!n.changes.empty&&(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function tK(t){let e=[],n=-1;for(let i of t.selection.ranges){let r=t.doc.lineAt(i.from),s=t.doc.lineAt(i.to);if(i.empty||i.to!=s.from||(s=t.doc.lineAt(i.to-1)),n>=r.number){let o=e[e.length-1];o.to=s.to,o.ranges.push(i)}else e.push({from:r.from,to:s.to,ranges:[i]});n=s.number+1}return e}function tH(t,e,n){if(t.readOnly)return!1;let i=[],r=[];for(let s of tK(t)){if(n?s.to==t.doc.length:0==s.from)continue;let l=t.doc.lineAt(n?s.to+1:s.from-1),a=l.length+1;if(n)for(let h of(i.push({from:s.to,to:l.to},{from:s.from,insert:l.text+t.lineBreak}),s.ranges))r.push(o.jT.range(Math.min(t.doc.length,h.anchor+a),Math.min(t.doc.length,h.head+a)));else for(let c of(i.push({from:l.from,to:s.from},{from:s.to,insert:t.lineBreak+l.text}),s.ranges))r.push(o.jT.range(c.anchor-a,c.head-a))}return!!i.length&&(e(t.update({changes:i,scrollIntoView:!0,selection:o.jT.create(r,t.selection.mainIndex),userEvent:"move.line"})),!0)}let t0=({state:t,dispatch:e})=>tH(t,e,!1),t1=({state:t,dispatch:e})=>tH(t,e,!0);function t2(t,e,n){if(t.readOnly)return!1;let i=[];for(let r of tK(t))n?i.push({from:r.from,insert:t.doc.slice(r.from,r.to)+t.lineBreak}):i.push({from:r.to,insert:t.lineBreak+t.doc.slice(r.from,r.to)});return e(t.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}let t5=({state:t,dispatch:e})=>t2(t,e,!1),t3=({state:t,dispatch:e})=>t2(t,e,!0),t4=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(tK(e).map(({from:t,to:n})=>(t>0?t--:nt.moveVertically(e,!0)).map(n);return t.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0},t9=t8(!1),t6=t8(!0);function t8(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let i=e.changeByRange(n=>{let{from:i,to:r}=n,s=e.doc.lineAt(i),l=!t&&i==r&&function(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=(0,a.qz)(t).resolveInner(e),i=n.childBefore(e),r=n.childAfter(e),s;return i&&r&&i.to<=e&&r.from>=e&&(s=i.type.prop(h.md.closedBy))&&s.indexOf(r.name)>-1&&t.doc.lineAt(i.to).from==t.doc.lineAt(r.from).from?{from:i.to,to:r.from}:null}(e,i);t&&(i=r=(r<=s.to?s:e.doc.lineAt(r)).to);let c=new a.Gn(e,{simulateBreak:i,simulateDoubleBreak:!!l}),u=(0,a.K0)(c,i);for(null==u&&(u=/^\s*/.exec(e.doc.lineAt(i).text)[0].length);rs.from&&i{let r=[];for(let s=i.from;s<=i.to;){let l=t.doc.lineAt(s);l.number>n&&(i.empty||i.to>l.from)&&(e(l,r,i),n=l.number),s=l.to+1}let a=t.changes(r);return{changes:r,range:o.jT.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}})}let et=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),i=new a.Gn(t,{overrideIndentation:t=>{let e=n[t];return null==e?-1:e}}),r=t7(t,(e,r,s)=>{let o=(0,a.K0)(i,e.from);if(null==o)return;/\S/.test(e.text)||(o=0);let l=/^\s*/.exec(e.text)[0],h=(0,a.SS)(t,o);(l!=h||s.from!t.readOnly&&(e(t.update(t7(t,(e,n)=>{n.push({from:e.from,insert:t.facet(a.c)})}),{userEvent:"input.indent"})),!0),en=({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(t7(t,(e,n)=>{let i=/^\s*/.exec(e.text)[0];if(!i)return;let r=(0,o.IS)(i,t.tabSize),s=0,l=(0,a.SS)(t,Math.max(0,r-(0,a.y1)(t)));for(;s({mac:t.key,run:t.run,shift:t.shift}))),er=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:V,shift:ty},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:G,shift:tv},{key:"Alt-ArrowUp",run:t0},{key:"Shift-Alt-ArrowUp",run:t5},{key:"Alt-ArrowDown",run:t1},{key:"Shift-Alt-ArrowDown",run:t3},{key:"Escape",run:tW},{key:"Mod-Enter",run:t6},{key:"Alt-l",mac:"Ctrl-l",run:tz},{key:"Mod-i",run:tB,preventDefault:!0},{key:"Mod-[",run:en},{key:"Mod-]",run:ee},{key:"Mod-Alt-\\",run:et},{key:"Shift-Mod-k",run:t4},{key:"Shift-Mod-\\",run:tc},{key:"Mod-/",run:c},{key:"Alt-A",run:d}].concat(ei),es={key:"Tab",run:ee,shift:en};function eo(){var t=arguments[0];"string"==typeof t&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i];"string"==typeof r?t.setAttribute(i,r):null!=r&&(t[i]=r)}e++}for(;et.normalize("NFKD"):t=>t;class ea{constructor(t,e,n=0,i=t.length,r,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(n,i),this.bufferStart=n,this.normalize=r?t=>r(el(t)):el,this.query=this.normalize(e)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return -1;this.bufferPos=0,this.buffer=this.iter.value}return(0,o.gm)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let e=(0,o.bg)(t),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,o.nZ)(t);let i=this.normalize(e);for(let r=0,s=n;;r++){let l=i.charCodeAt(r),a=this.match(l,s);if(a)return this.value=a,this;if(r==i.length-1)break;s==n&&rthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){let n=this.curLineStart+e.index,i=n+e[0].length;if(this.matchPos=em(this.text,i+(n==i?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,i,e)))return this.value={from:n,to:i,match:e},this;t=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||i.to<=e){let r=new ed(e,t.sliceString(e,n));return ef.set(t,r),r}if(i.from==e&&i.to==n)return i;let{text:s,from:o}=i;return o>e&&(s=t.sliceString(e,o)+s,o=e),i.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==t&&(this.re.lastIndex=t+1,e=this.re.exec(this.flat.text)),e){let n=this.flat.from+e.index,i=n+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,i,e)))return this.value={from:n,to:i,match:e},this.matchPos=em(this.text,i+(n==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=ed.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function em(t,e){if(e>=t.length)return e;let n=t.lineAt(e),i;for(;e=56320&&i<57344;)e++;return e}function eg(t){let e=eo("input",{class:"cm-textfield",name:"line"}),n=eo("form",{class:"cm-gotoLine",onkeydown:e=>{27==e.keyCode?(e.preventDefault(),t.dispatch({effects:ek.of(!1)}),t.focus()):13==e.keyCode&&(e.preventDefault(),i())},onsubmit:t=>{t.preventDefault(),i()}},eo("label",t.state.phrase("Go to line"),": ",e)," ",eo("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function i(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(e.value);if(!n)return;let{state:i}=t,r=i.doc.lineAt(i.selection.main.head),[,s,l,a,h]=n,c=a?+a.slice(1):0,u=l?+l:r.number;if(l&&h){let f=u/100;s&&(f=f*("-"==s?-1:1)+r.number/i.doc.lines),u=Math.round(i.doc.lines*f)}else l&&s&&(u=u*("-"==s?-1:1)+r.number);let d=i.doc.line(Math.max(1,Math.min(i.doc.lines,u)));t.dispatch({effects:ek.of(!1),selection:o.jT.cursor(d.from+Math.max(0,Math.min(c,d.length))),scrollIntoView:!0}),t.focus()}return{dom:n}}"undefined"!=typeof Symbol&&(eu.prototype[Symbol.iterator]=ep.prototype[Symbol.iterator]=function(){return this});let ek=o.Py.define(),ey=o.QQ.define({create:()=>!0,update(t,e){for(let n of e.effects)n.is(ek)&&(t=n.value);return t},provide:t=>l.mH.from(t,t=>t?eg:null)}),ev=t=>{let e=(0,l.Sd)(t,eg);if(!e){let n=[ek.of(!0)];null==t.state.field(ey,!1)&&n.push(o.Py.appendConfig.of([ey,eb])),t.dispatch({effects:n}),e=(0,l.Sd)(t,eg)}return e&&e.dom.querySelector("input").focus(),!0},eb=l.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),eO={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},ex=o.r$.define({combine:t=>(0,o.BO)(t,eO,{highlightWordAroundCursor:(t,e)=>t||e,minSelectionLength:Math.min,maxMatches:Math.min})}),ew=l.p.mark({class:"cm-selectionMatch"}),eS=l.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function eP(t,e,n,i){return(0==n||t(e.sliceDoc(n-1,n))!=o.D0.Word)&&(i==e.doc.length||t(e.sliceDoc(i,i+1))!=o.D0.Word)}let eC=l.lg.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(ex),{state:n}=t,i=n.selection;if(i.ranges.length>1)return l.p.none;let r=i.main,s,a=null;if(r.empty){if(!e.highlightWordAroundCursor)return l.p.none;let h=n.wordAt(r.head);if(!h)return l.p.none;a=n.charCategorizer(r.head),s=n.sliceDoc(h.from,h.to)}else{let c=r.to-r.from;if(c200)return l.p.none;if(e.wholeWords){var u,f,d;if(s=n.sliceDoc(r.from,r.to),!(eP(a=n.charCategorizer(r.head),n,r.from,r.to)&&(u=a,f=r.from,d=r.to,u(n.sliceDoc(f,f+1))==o.D0.Word&&u(n.sliceDoc(d-1,d))==o.D0.Word)))return l.p.none}else if(!(s=n.sliceDoc(r.from,r.to).trim()))return l.p.none}let p=[];for(let m of t.visibleRanges){let g=new ea(n.doc,s,m.from,m.to);for(;!g.next().done;){let{from:k,to:y}=g.value;if((!a||eP(a,n,k,y))&&(r.empty&&k<=r.from&&y>=r.to?p.push(eS.range(k,y)):(k>=r.to||y<=r.from)&&p.push(ew.range(k,y)),p.length>e.maxMatches))return l.p.none}}return l.p.set(p)}},{decorations:t=>t.decorations}),eA=l.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),eQ=({state:t,dispatch:e})=>{let{selection:n}=t,i=o.jT.create(n.ranges.map(e=>t.wordAt(e.head)||o.jT.cursor(e.head)),n.mainIndex);return!i.eq(n)&&(e(t.update({selection:i})),!0)},eT=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(t=>t.from===t.to))return eQ({state:t,dispatch:e});let i=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(e=>t.sliceDoc(e.from,e.to)!=i))return!1;let r=function(t,e){let{main:n,ranges:i}=t.selection,r=t.wordAt(n.head),s=r&&r.from==n.from&&r.to==n.to;for(let o=!1,l=new ea(t.doc,e,i[i.length-1].to);;)if(l.next(),l.done){if(o)return null;l=new ea(t.doc,e,0,Math.max(0,i[i.length-1].from-1)),o=!0}else{if(o&&i.some(t=>t.from==l.value.from))continue;if(s){let a=t.wordAt(l.value.from);if(!a||a.from!=l.value.from||a.to!=l.value.to)continue}return l.value}}(t,i);return!!r&&(e(t.update({selection:t.selection.addRange(o.jT.range(r.from,r.to),!1),effects:l.tk.scrollIntoView(r.to)})),!0)},eI=o.r$.define({combine:t=>(0,o.BO)(t,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:t=>new e3(t)})});class eD{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||function(t){try{return RegExp(t,ec),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,(t,e)=>"n"==e?"\n":"r"==e?"\r":"t"==e?" ":"\\")}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord}create(){return this.regexp?new eB(this):new e$(this)}getCursor(t,e=0,n){let i=t.doc?t:o.yy.create({doc:t});return null==n&&(n=i.doc.length),this.regexp?eN(this,i,e,n):eM(this,i,e,n)}}class eR{constructor(t){this.spec=t}}function eM(t,e,n,i){var r,s;return new ea(e.doc,t.unquoted,n,i,t.caseSensitive?void 0:t=>t.toLowerCase(),t.wholeWord?(r=e.doc,s=e.charCategorizer(e.selection.main.head),(t,e,n,i)=>((i>t||i+n.length=e)return null;i.push(n.value)}return i}highlight(t,e,n,i){let r=eM(this.spec,t,Math.max(0,e-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,t.doc.length));for(;!r.next().done;)i(r.value.from,r.value.to)}}function eN(t,e,n,i){var r;return new eu(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?(r=e.charCategorizer(e.selection.main.head),(t,e,n)=>!n[0].length||(r(eE(n.input,n.index))!=o.D0.Word||r(ez(n.input,n.index))!=o.D0.Word)&&(r(ez(n.input,n.index+n[0].length))!=o.D0.Word||r(eE(n.input,n.index+n[0].length))!=o.D0.Word)):void 0},n,i)}function eE(t,e){return t.slice((0,o.cp)(t,e,!1),e)}function ez(t,e){return t.slice(e,(0,o.cp)(t,e))}class eB extends eR{nextMatch(t,e,n){let i=eN(this.spec,t,n,t.doc.length).next();return i.done&&(i=eN(this.spec,t,0,e).next()),i.done?null:i.value}prevMatchInRange(t,e,n){for(let i=1;;i++){let r=Math.max(e,n-1e4*i),s=eN(this.spec,t,r,n),o=null;for(;!s.next().done;)o=s.value;if(o&&(r==e||o.from>r+10))return o;if(r==e)return null}}prevMatch(t,e,n){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,n,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,(e,n)=>"$"==n?"$":"&"==n?t.match[0]:"0"!=n&&+n=e)return null;i.push(n.value)}return i}highlight(t,e,n,i){let r=eN(this.spec,t,Math.max(0,e-250),Math.min(n+250,t.doc.length));for(;!r.next().done;)i(r.value.from,r.value.to)}}let eW=o.Py.define(),eJ=o.Py.define(),eL=o.QQ.define({create:t=>new ej(e0(t).create(),null),update(t,e){for(let n of e.effects)n.is(eW)?t=new ej(n.value.create(),t.panel):n.is(eJ)&&(t=new ej(t.query,n.value?eH:null));return t},provide:t=>l.mH.from(t,t=>t.panel)});class ej{constructor(t,e){this.query=t,this.panel=e}}let eF=l.p.mark({class:"cm-searchMatch"}),e_=l.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),eU=l.lg.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(eL))}update(t){let e=t.state.field(eL);(e!=t.startState.field(eL)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return l.p.none;let{view:n}=this,i=new o.f_;for(let r=0,s=n.visibleRanges,a=s.length;rs[r+1].from-500;)c=s[++r].to;t.highlight(n.state,h,c,(t,e)=>{let r=n.state.selection.ranges.some(n=>n.from==t&&n.to==e);i.add(t,e,r?e_:eF)})}return i.finish()}},{decorations:t=>t.decorations});function eX(t){return e=>{let n=e.state.field(eL,!1);return n&&n.query.spec.valid?t(e,n):e1(e)}}let eq=eX((t,{query:e})=>{let{to:n}=t.state.selection.main,i=e.nextMatch(t.state,n,n);return!!i&&(t.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:e6(t,i),userEvent:"select.search"}),!0)}),eV=eX((t,{query:e})=>{let{state:n}=t,{from:i}=n.selection.main,r=e.prevMatch(n,i,i);return!!r&&(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:e6(t,r),userEvent:"select.search"}),!0)}),eG=eX((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!!n&&!!n.length&&(t.dispatch({selection:o.jT.create(n.map(t=>o.jT.range(t.from,t.to))),userEvent:"select.search.matches"}),!0)}),eZ=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:i,to:r}=n.main,s=[],l=0;for(let a=new ea(t.doc,t.sliceDoc(i,r));!a.next().done;){if(s.length>1e3)return!1;a.value.from==i&&(l=s.length),s.push(o.jT.range(a.value.from,a.value.to))}return e(t.update({selection:o.jT.create(s,l),userEvent:"select.search.matches"})),!0},eY=eX((t,{query:e})=>{let{state:n}=t,{from:i,to:r}=n.selection.main;if(n.readOnly)return!1;let s=e.nextMatch(n,i,i);if(!s)return!1;let o=[],a,h,c=[];if(s.from==i&&s.to==r&&(h=n.toText(e.getReplacement(s)),o.push({from:s.from,to:s.to,insert:h}),s=e.nextMatch(n,s.from,s.to),c.push(l.tk.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(i).number)+"."))),s){let u=0==o.length||o[0].from>=s.to?0:s.to-s.from-h.length;a={anchor:s.from-u,head:s.to-u},c.push(e6(t,s))}return t.dispatch({changes:o,selection:a,scrollIntoView:!!a,effects:c,userEvent:"input.replace"}),!0}),eK=eX((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(t=>{let{from:n,to:i}=t;return{from:n,to:i,insert:e.getReplacement(t)}});if(!n.length)return!1;let i=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:l.tk.announce.of(i),userEvent:"input.replace.all"}),!0});function eH(t){return t.state.facet(eI).createPanel(t)}function e0(t,e){var n,i,r,s;let o=t.selection.main,l=o.empty||o.to>o.from+100?"":t.sliceDoc(o.from,o.to);if(e&&!l)return e;let a=t.facet(eI);return new eD({search:(null!==(n=null==e?void 0:e.literal)&&void 0!==n?n:a.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(i=null==e?void 0:e.caseSensitive)&&void 0!==i?i:a.caseSensitive,literal:null!==(r=null==e?void 0:e.literal)&&void 0!==r?r:a.literal,wholeWord:null!==(s=null==e?void 0:e.wholeWord)&&void 0!==s?s:a.wholeWord})}let e1=t=>{let e=t.state.field(eL,!1);if(e&&e.panel){let n=(0,l.Sd)(t,eH);if(!n)return!1;let i=n.dom.querySelector("[main-field]");if(i&&i!=t.root.activeElement){let r=e0(t.state,e.query.spec);r.valid&&t.dispatch({effects:eW.of(r)}),i.focus(),i.select()}}else t.dispatch({effects:[eJ.of(!0),e?eW.of(e0(t.state,e.query.spec)):o.Py.appendConfig.of(e7)]});return!0},e2=t=>{let e=t.state.field(eL,!1);if(!e||!e.panel)return!1;let n=(0,l.Sd)(t,eH);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:eJ.of(!1)}),!0},e5=[{key:"Mod-f",run:e1,scope:"editor search-panel"},{key:"F3",run:eq,shift:eV,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:eq,shift:eV,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:e2,scope:"editor search-panel"},{key:"Mod-Shift-l",run:eZ},{key:"Alt-g",run:ev},{key:"Mod-d",run:eT,preventDefault:!0}];class e3{constructor(t){this.view=t;let e=this.query=t.state.field(eL).query.spec;function n(t,e,n){return eo("button",{class:"cm-button",name:t,onclick:e,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=eo("input",{value:e.search,placeholder:e4(t,"Find"),"aria-label":e4(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=eo("input",{value:e.replace,placeholder:e4(t,"Replace"),"aria-label":e4(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=eo("input",{type:"checkbox",name:"case",form:"",checked:e.caseSensitive,onchange:this.commit}),this.reField=eo("input",{type:"checkbox",name:"re",form:"",checked:e.regexp,onchange:this.commit}),this.wordField=eo("input",{type:"checkbox",name:"word",form:"",checked:e.wholeWord,onchange:this.commit}),this.dom=eo("div",{onkeydown:t=>this.keydown(t),class:"cm-search"},[this.searchField,n("next",()=>eq(t),[e4(t,"next")]),n("prev",()=>eV(t),[e4(t,"previous")]),n("select",()=>eG(t),[e4(t,"all")]),eo("label",null,[this.caseField,e4(t,"match case")]),eo("label",null,[this.reField,e4(t,"regexp")]),eo("label",null,[this.wordField,e4(t,"by word")]),...t.state.readOnly?[]:[eo("br"),this.replaceField,n("replace",()=>eY(t),[e4(t,"replace")]),n("replaceAll",()=>eK(t),[e4(t,"replace all")])],eo("button",{name:"close",onclick:()=>e2(t),"aria-label":e4(t,"close"),type:"button"},["\xd7"])])}commit(){let t=new eD({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:eW.of(t)}))}keydown(t){(0,l.$1)(this.view,t,"search-panel")?t.preventDefault():13==t.keyCode&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?eV:eq)(this.view)):13==t.keyCode&&t.target==this.replaceField&&(t.preventDefault(),eY(this.view))}update(t){for(let e of t.transactions)for(let n of e.effects)n.is(eW)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(eI).top}}function e4(t,e){return t.state.phrase(e)}let e9=/[\s\.,:;?!]/;function e6(t,{from:e,to:n}){let i=t.state.doc.lineAt(e),r=t.state.doc.lineAt(n).to,s=Math.max(i.from,e-30),o=Math.min(r,n+30),a=t.state.sliceDoc(s,o);if(s!=i.from){for(let h=0;h<30;h++)if(!e9.test(a[h+1])&&e9.test(a[h])){a=a.slice(h);break}}if(o!=r){for(let c=a.length-1;c>a.length-30;c--)if(!e9.test(a[c-1])&&e9.test(a[c])){a=a.slice(0,c);break}}return l.tk.announce.of(`${t.state.phrase("current match")}. ${a} ${t.state.phrase("on line")} ${i.number}.`)}let e8=l.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),e7=[eL,o.Wl.lowest(eU),e8];var nt=n(34790);class ne{constructor(t,e,n){this.from=t,this.to=e,this.diagnostic=n}}class nn{constructor(t,e,n){this.diagnostics=t,this.panel=e,this.selected=n}static init(t,e,n){let i=t,r=n.facet(nk).markerFilter;r&&(i=r(i));let s=l.p.set(i.map(t=>t.from==t.to||t.from==t.to-1&&n.doc.lineAt(t.from).to==t.from?l.p.widget({widget:new nb(t),diagnostic:t}).range(t.from):l.p.mark({attributes:{class:"cm-lintRange cm-lintRange-"+t.severity},diagnostic:t}).range(t.from,t.to)),!0);return new nn(s,e,ni(s))}}function ni(t,e=null,n=0){let i=null;return t.between(n,1e9,(t,n,{spec:r})=>{if(!e||r.diagnostic==e)return i=new ne(t,n,r.diagnostic),!1}),i}function nr(t,e){return!!(t.effects.some(t=>t.is(no))||t.changes.touchesRange(e.pos))}function ns(t,e){return t.field(nh,!1)?e:e.concat(o.Py.appendConfig.of([nh,l.tk.decorations.compute([nh],t=>{let{selected:e,panel:n}=t.field(nh);return e&&n&&e.from!=e.to?l.p.set([nc.range(e.from,e.to)]):l.p.none}),(0,l.bF)(nu,{hideOn:nr}),nS]))}let no=o.Py.define(),nl=o.Py.define(),na=o.Py.define(),nh=o.QQ.define({create:()=>new nn(l.p.none,null,null),update(t,e){if(e.docChanged){let n=t.diagnostics.map(e.changes),i=null;if(t.selected){let r=e.changes.mapPos(t.selected.from,1);i=ni(n,t.selected.diagnostic,r)||ni(n,null,r)}t=new nn(n,t.panel,i)}for(let s of e.effects)s.is(no)?t=nn.init(s.value,t.panel,e.state):s.is(nl)?t=new nn(t.diagnostics,s.value?nx.open:null,t.selected):s.is(na)&&(t=new nn(t.diagnostics,t.panel,s.value));return t},provide:t=>[l.mH.from(t,t=>t.panel),l.tk.decorations.from(t,t=>t.diagnostics)]}),nc=l.p.mark({class:"cm-lintRange cm-lintRange-active"});function nu(t,e,n){let{diagnostics:i}=t.state.field(nh),r=[],s=2e8,o=0;i.between(e-(n<0?1:0),e+(n>0?1:0),(t,i,{spec:l})=>{e>=t&&e<=i&&(t==i||(e>t||n>0)&&(e({dom:function(t,e){return eo("ul",{class:"cm-tooltip-lint"},e.map(e=>nv(t,e,!1)))}(t,r)})}:null}let nf=t=>{let e=t.state.field(nh,!1);e&&e.panel||t.dispatch({effects:ns(t.state,[nl.of(!0)])});let n=(0,l.Sd)(t,nx.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},nd=t=>{let e=t.state.field(nh,!1);return!!e&&!!e.panel&&(t.dispatch({effects:nl.of(!1)}),!0)},np=t=>{let e=t.state.field(nh,!1);if(!e)return!1;let n=t.state.selection.main,i=e.diagnostics.iter(n.to+1);return(!!i.value||!!(i=e.diagnostics.iter(0)).value&&(i.from!=n.from||i.to!=n.to))&&(t.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)},nm=[{key:"Mod-Shift-m",run:nf,preventDefault:!0},{key:"F8",run:np}],ng=l.lg.fromClass(class{constructor(t){this.view=t,this.timeout=-1,this.set=!0;let{delay:e}=t.state.facet(nk);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){let t=Date.now();if(tPromise.resolve(t(this.view)))).then(t=>{let n=t.reduce((t,e)=>t.concat(e));this.view.state.doc==e.doc&&this.view.dispatch({effects:ns(this.view.state,[no.of(n)])})},t=>{(0,l.OO)(this.view.state,t)})}}update(t){let e=t.state.facet(nk);(t.docChanged||e!=t.startState.facet(nk))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),nk=o.r$.define({combine:t=>Object.assign({sources:t.map(t=>t.source)},(0,o.BO)(t.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null})),enables:ng});function ny(t){let e=[];if(t)t:for(let{name:n}of t){for(let i=0;it.toLowerCase()==r.toLowerCase())){e.push(r);continue t}}e.push("")}return e}function nv(t,e,n){var i;let r=n?ny(e.actions):[];return eo("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},eo("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),null===(i=e.actions)||void 0===i?void 0:i.map((n,i)=>{let s=i=>{i.preventDefault();let r=ni(t.state.field(nh).diagnostics,e);r&&n.apply(t,r.from,r.to)},{name:o}=n,l=r[i]?o.indexOf(r[i]):-1,a=l<0?o:[o.slice(0,l),eo("u",o.slice(l,l+1)),o.slice(l+1)];return eo("button",{type:"button",class:"cm-diagnosticAction",onclick:s,onmousedown:s,"aria-label":` Action: ${o}${l<0?"":` (access key "${r[i]})"`}.`},a)}),e.source&&eo("div",{class:"cm-diagnosticSource"},e.source))}class nb extends l.l9{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return eo("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class nO{constructor(t,e){this.diagnostic=e,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=nv(t,e,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class nx{constructor(t){this.view=t,this.items=[];let e=e=>{if(27==e.keyCode)nd(this.view),this.view.focus();else if(38==e.keyCode||33==e.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==e.keyCode||34==e.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==e.keyCode)this.moveSelection(0);else if(35==e.keyCode)this.moveSelection(this.items.length-1);else if(13==e.keyCode)this.view.focus();else{if(!(e.keyCode>=65)||!(e.keyCode<=90)||!(this.selectedIndex>=0))return;let{diagnostic:n}=this.items[this.selectedIndex],i=ny(n.actions);for(let r=0;r{for(let e=0;end(this.view)},"\xd7")),this.update()}get selectedIndex(){let t=this.view.state.field(nh).selected;if(!t)return -1;for(let e=0;e{let l=-1,a;for(let h=n;hn&&(this.items.splice(n,l-n),i=!0)),e&&a.diagnostic==e.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),r=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++});n({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:t,panel:e})=>{t.tope.bottom&&(this.list.scrollTop+=t.bottom-e.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let t=this.list.firstChild;function e(){let e=t;t=e.nextSibling,e.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;t!=n.dom;)e();t=n.dom.nextSibling}else this.list.insertBefore(n.dom,t);for(;t;)e()}moveSelection(t){if(this.selectedIndex<0)return;let e=ni(this.view.state.field(nh).diagnostics,this.items[t].diagnostic);e&&this.view.dispatch({selection:{anchor:e.from,head:e.to},scrollIntoView:!0,effects:na.of(e)})}static open(t){return new nx(t)}}function nw(t){return function(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}(``,'width="6" height="3"')}let nS=l.tk.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:nw("#d11")},".cm-lintRange-warning":{backgroundImage:nw("orange")},".cm-lintRange-info":{backgroundImage:nw("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});l.SJ;let nP=o.Py.define();var nC=function(t){void 0===t&&(t={});var e,n=[];!1!==t.closeBracketsKeymap&&(n=n.concat(nt.GA)),!1!==t.defaultKeymap&&(n=n.concat(er)),!1!==t.searchKeymap&&(n=n.concat(e5)),!1!==t.historyKeymap&&(n=n.concat(N)),!1!==t.foldKeymap&&(n=n.concat(a.e7)),!1!==t.completionKeymap&&(n=n.concat(nt.B1)),!1!==t.lintKeymap&&(n=n.concat(nm));var i=[];if(!1!==t.lineNumbers&&i.push((0,l.Eu)()),!1!==t.highlightActiveLineGutter&&i.push((0,l.HQ)()),!1!==t.highlightSpecialChars&&i.push((0,l.AE)()),!1!==t.history&&i.push(function(t={}){return[O,b.of(t),l.tk.domEventHandlers({beforeinput(t,e){let n="historyUndo"==t.inputType?w:"historyRedo"==t.inputType?S:null;return!!n&&(t.preventDefault(),n(e))}})]}()),!1!==t.foldGutter&&i.push((0,a.mi)()),!1!==t.drawSelection&&i.push((0,l.Uw)()),!1!==t.dropCursor&&i.push((0,l.qr)()),!1!==t.allowMultipleSelections&&i.push(o.yy.allowMultipleSelections.of(!0)),!1!==t.indentOnInput&&i.push((0,a.nY)()),!1!==t.syntaxHighlighting&&i.push((0,a.nF)(a.R_,{fallback:!0})),!1!==t.bracketMatching&&i.push((0,a.n$)()),!1!==t.closeBrackets&&i.push((0,nt.vQ)()),!1!==t.autocompletion&&i.push((0,nt.ys)()),!1!==t.rectangularSelection&&i.push((0,l.Zs)()),!1!==t.crosshairCursor&&i.push((0,l.S2)()),!1!==t.highlightActiveLine&&i.push((0,l.ZO)()),!1!==t.highlightSelectionMatches){let r;i.push((r=[eA,eC],e&&r.push(ex.of(e)),r))}return t.tabSize&&"number"==typeof t.tabSize&&i.push(a.c.of(" ".repeat(t.tabSize))),i.concat([l.$f.of(n.flat())]).filter(Boolean)},nA=n(35524);let nQ="#e06c75",nT="#abb2bf",nI="#7d8799",nD="#d19a66",nR="#2c313a",nM="#282c34",n$="#353a42",nN="#528bff",nE=l.tk.theme({"&":{color:nT,backgroundColor:nM},".cm-content":{caretColor:nN},".cm-cursor, .cm-dropCursor":{borderLeftColor:nN},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:nT},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847",outline:"1px solid #515a6b"},".cm-gutters":{backgroundColor:nM,color:nI,border:"none"},".cm-activeLineGutter":{backgroundColor:nR},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:n$},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:n$,borderBottomColor:n$},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:nR,color:nT}}},{dark:!0}),nz=a.Qf.define([{tag:nA.pJ.keyword,color:"#c678dd"},{tag:[nA.pJ.name,nA.pJ.deleted,nA.pJ.character,nA.pJ.propertyName,nA.pJ.macroName],color:nQ},{tag:[nA.pJ.function(nA.pJ.variableName),nA.pJ.labelName],color:"#61afef"},{tag:[nA.pJ.color,nA.pJ.constant(nA.pJ.name),nA.pJ.standard(nA.pJ.name)],color:nD},{tag:[nA.pJ.definition(nA.pJ.name),nA.pJ.separator],color:nT},{tag:[nA.pJ.typeName,nA.pJ.className,nA.pJ.number,nA.pJ.changed,nA.pJ.annotation,nA.pJ.modifier,nA.pJ.self,nA.pJ.namespace],color:"#e5c07b"},{tag:[nA.pJ.operator,nA.pJ.operatorKeyword,nA.pJ.url,nA.pJ.escape,nA.pJ.regexp,nA.pJ.link,nA.pJ.special(nA.pJ.string)],color:"#56b6c2"},{tag:[nA.pJ.meta,nA.pJ.comment],color:nI},{tag:nA.pJ.strong,fontWeight:"bold"},{tag:nA.pJ.emphasis,fontStyle:"italic"},{tag:nA.pJ.strikethrough,textDecoration:"line-through"},{tag:nA.pJ.link,color:nI,textDecoration:"underline"},{tag:nA.pJ.heading,fontWeight:"bold",color:nQ},{tag:[nA.pJ.atom,nA.pJ.bool,nA.pJ.special(nA.pJ.variableName)],color:nD},{tag:[nA.pJ.processingInstruction,nA.pJ.string,nA.pJ.inserted],color:"#98c379"},{tag:nA.pJ.invalid,color:"#ffffff"}]),nB=[nE,(0,a.nF)(nz)];var nW=t=>({line:t.state.doc.lineAt(t.state.selection.main.from),lineCount:t.state.doc.lines,lineBreak:t.state.lineBreak,length:t.state.doc.length,readOnly:t.state.readOnly,tabSize:t.state.tabSize,selection:t.state.selection,selectionAsSingle:t.state.selection.asSingle().main,ranges:t.state.selection.ranges,selectionCode:t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to),selections:t.state.selection.ranges.map(e=>t.state.sliceDoc(e.from,e.to)),selectedText:t.state.selection.ranges.some(t=>!t.empty)}),nJ=n(85893),nL=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],nj=(0,s.forwardRef)((t,e)=>{var{className:n,value:a="",selection:h,extensions:c=[],onChange:u,onStatistics:f,onCreateEditor:d,onUpdate:p,autoFocus:m,theme:g="light",height:k,minHeight:y,maxHeight:v,width:b,minWidth:O,maxWidth:x,basicSetup:w,placeholder:S,indentWithTab:P,editable:C,readOnly:A,root:Q,initialState:T}=t,I=(0,r.Z)(t,nL),D=(0,s.useRef)(null),{state:R,view:M,container:$,setContainer:N}=function(t){var{value:e,selection:n,onChange:i,onStatistics:r,onCreateEditor:a,onUpdate:h,extensions:c=[],autoFocus:u,theme:f="light",height:d="",minHeight:p="",maxHeight:m="",placeholder:g="",width:k="",minWidth:y="",maxWidth:v="",editable:b=!0,readOnly:O=!1,indentWithTab:x=!0,basicSetup:w=!0,root:S,initialState:P}=t,[C,A]=(0,s.useState)(),[Q,T]=(0,s.useState)(),[I,D]=(0,s.useState)(),R=l.tk.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),M=l.tk.theme({"&":{height:d,minHeight:p,maxHeight:m,width:k,minWidth:y,maxWidth:v}}),$=[l.tk.updateListener.of(t=>{t.docChanged&&"function"==typeof i&&i(t.state.doc.toString(),t),r&&r(nW(t))}),M];switch(x&&$.unshift(l.$f.of([es])),w&&("boolean"==typeof w?$.unshift(nC()):$.unshift(nC(w))),g&&$.unshift((0,l.W$)(g)),f){case"light":$.push(R);break;case"dark":$.push(nB);break;case"none":break;default:$.push(f)}return!1===b&&$.push(l.tk.editable.of(!1)),O&&$.push(o.yy.readOnly.of(!0)),h&&"function"==typeof h&&$.push(l.tk.updateListener.of(h)),$=$.concat(c),(0,s.useEffect)(()=>{if(C&&!I){var t={doc:e,selection:n,extensions:$},i=P?o.yy.fromJSON(P.json,t,P.fields):o.yy.create(t);if(D(i),!Q){var r=new l.tk({state:i,parent:C,root:S});T(r),a&&a(r,i)}}return()=>{Q&&(D(void 0),T(void 0))}},[C,I]),(0,s.useEffect)(()=>A(t.container),[t.container]),(0,s.useEffect)(()=>()=>{Q&&(Q.destroy(),T(void 0))},[Q]),(0,s.useEffect)(()=>{u&&Q&&Q.focus()},[u,Q]),(0,s.useEffect)(()=>{Q&&Q.dispatch({effects:o.Py.reconfigure.of($)})},[f,c,d,p,m,k,y,v,g,b,O,x,w,i,h]),(0,s.useEffect)(()=>{var t=Q?Q.state.doc.toString():"";Q&&e!==t&&Q.dispatch({changes:{from:0,to:t.length,insert:e||""}})},[e,Q]),{state:I,setState:D,view:Q,setView:T,container:C,setContainer:A}}({container:D.current,root:Q,value:a,autoFocus:m,theme:g,height:k,minHeight:y,maxHeight:v,width:b,minWidth:O,maxWidth:x,basicSetup:w,placeholder:S,indentWithTab:P,editable:C,readOnly:A,selection:h,onChange:u,onStatistics:f,onCreateEditor:d,onUpdate:p,extensions:c,initialState:T});if((0,s.useImperativeHandle)(e,()=>({editor:D.current,state:R,view:M}),[D,$,R,M]),"string"!=typeof a)throw Error("value must be typeof string but got "+typeof a);return(0,nJ.jsx)("div",(0,i.Z)({ref:D,className:("string"==typeof g?"cm-theme-"+g:"cm-theme")+(n?" "+n:"")},I))});nj.displayName="CodeMirror";var nF=nj},34790:function(t,e,n){n.d(e,{B1:function(){return tC},GA:function(){return tb},Gn:function(){return to},Mb:function(){return a},eC:function(){return h},vQ:function(){return td},ys:function(){return tP}});var i=n(78120),r=n(47421),s=n(59119);class o{constructor(t,e,n){this.state=t,this.pos=e,this.explicit=n,this.abortListeners=[]}tokenBefore(t){let e=(0,s.qz)(this.state).resolveInner(this.pos,-1);for(;e&&0>t.indexOf(e.name);)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),n=Math.max(e.from,this.pos-250),i=e.text.slice(n-e.from,this.pos-e.from),r=i.search(f(t,!1));return r<0?null:{from:n+r,to:this.pos,text:i.slice(r)}}get aborted(){return null==this.abortListeners}addEventListener(t,e){"abort"==t&&this.abortListeners&&this.abortListeners.push(e)}}function l(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function a(t){let e=t.map(t=>"string"==typeof t?{label:t}:t),[n,i]=e.every(t=>/^\w+$/.test(t.label))?[/\w*$/,/\w+$/]:function(t){let e=Object.create(null),n=Object.create(null);for(let{label:i}of t){e[i[0]]=!0;for(let r=1;r{let r=t.matchBefore(i);return r||t.explicit?{from:r?r.from:t.pos,options:e,validFor:n}:null}}function h(t,e){return n=>{for(let i=(0,s.qz)(n.state).resolveInner(n.pos,-1);i;i=i.parent)if(t.indexOf(i.name)>-1)return null;return e(n)}}class c{constructor(t,e,n){this.completion=t,this.source=e,this.match=n}}function u(t){return t.selection.main.head}function f(t,e){var n;let{source:i}=t,r=e&&"^"!=i[0],s="$"!=i[i.length-1];return r||s?RegExp(`${r?"^":""}(?:${i})${s?"$":""}`,null!==(n=t.flags)&&void 0!==n?n:t.ignoreCase?"i":""):t}let d=i.q6.define();function p(t,e){let n=e.completion.apply||e.completion.label,r=e.source;if("string"==typeof n){var s,o,l;t.dispatch(Object.assign(Object.assign({},(s=t.state,o=r.from,l=r.to,Object.assign(Object.assign({},s.changeByRange(t=>{if(t==s.selection.main)return{changes:{from:o,to:l,insert:n},range:i.jT.cursor(o+n.length)};let e=l-o;return!t.empty||e&&s.sliceDoc(t.from-e,t.from)!=s.sliceDoc(o,l)?{range:t}:{changes:{from:t.from-e,to:t.from,insert:n},range:i.jT.cursor(t.from-e+n.length)}})),{userEvent:"input.complete"}))),{annotations:d.of(e.completion)}))}else n(t,e.completion,r.from,r.to)}let m=new WeakMap;function g(t){if(!Array.isArray(t))return t;let e=m.get(t);return e||m.set(t,e=a(t)),e}class k{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[];for(let e=0;e=48&&P<=57||P>=97&&P<=122?2:P>=65&&P<=90?1:0:(C=(0,i.bg)(P))!=C.toLowerCase()?1:C!=C.toUpperCase()?2:0;(!x||1==A&&b||0==S&&0!=A)&&(e[m]==P||n[m]==P&&(g=!0)?o[m++]=x:o.length&&(O=!1)),S=A,x+=(0,i.nZ)(P)}return m==h&&0==o[0]&&O?this.result(-100+(g?-200:0),o,t):k==h&&0==y?[-200-t.length,0,v]:a>-1?[-700-t.length,a,a+this.pattern.length]:k==h?[-900-t.length,y,v]:m==h?this.result(-100+(g?-200:0)+-700+(O?0:-1100),o,t):2==e.length?null:this.result((r[0]?-700:0)+-200+-1100,r,t)}result(t,e,n){let r=[t-n.length],s=1;for(let o of e){let l=o+(this.astral?(0,i.nZ)((0,i.gm)(n,o)):1);s>1&&r[s-1]==o?r[s-1]=l:(r[s++]=o,r[s++]=l)}return r}}let y=i.r$.define({combine:t=>(0,i.BO)(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>n=>v(t(n),e(n)),optionClass:(t,e)=>n=>v(t(n),e(n)),addToOptions:(t,e)=>t.concat(e)})});function v(t,e){return t?e?t+" "+e:t:e}function b(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let i=Math.floor(e/n);return{from:i*n,to:(i+1)*n}}let r=Math.floor((t-e)/n);return{from:t-(r+1)*n,to:t-r*n}}class O{constructor(t,e){let n;this.view=t,this.stateField=e,this.info=null,this.placeInfo={read:()=>this.measureInfo(),write:t=>this.positionInfo(t),key:this},this.space=null,this.currentClass="";let i=t.state.field(e),{options:r,selected:s}=i.open,o=t.state.facet(y);this.optionContent=(n=o.addToOptions.slice(),o.icons&&n.push({render(t){let e=document.createElement("div");return e.classList.add("cm-completionIcon"),t.type&&e.classList.add(...t.type.split(/\s+/g).map(t=>"cm-completionIcon-"+t)),e.setAttribute("aria-hidden","true"),e},position:20}),n.push({render(t,e,n){let i=document.createElement("span");i.className="cm-completionLabel";let{label:r}=t,s=0;for(let o=1;os&&i.appendChild(document.createTextNode(r.slice(s,l)));let h=i.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(r.slice(l,a))),h.className="cm-completionMatchedText",s=a}return st.position-e.position).map(t=>t.render)),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=b(r.length,s,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",e=>{for(let n=e.target,i;n&&n!=this.dom;n=n.parentNode)if("LI"==n.nodeName&&(i=/-(\d+)$/.exec(n.id))&&+i[1]{this.info&&this.view.requestMeasure(this.placeInfo)})}mount(){this.updateSel()}update(t){var e,n,i;let r=t.state.field(this.stateField),s=t.startState.field(this.stateField);this.updateTooltipClass(t.state),r!=s&&(this.updateSel(),(null===(e=r.open)||void 0===e?void 0:e.disabled)!=(null===(n=s.open)||void 0===n?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!(null===(i=r.open)||void 0===i?void 0:i.disabled)))}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let i of e.split(" "))i&&this.dom.classList.add(i);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfo)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected=this.range.to)&&(this.range=b(e.options.length,e.selected,this.view.state.facet(y).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e.options,t.id,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfo)})),this.updateSelectedOption(e.selected)){this.info&&(this.info.remove(),this.info=null);let{completion:n}=e.options[e.selected],{info:i}=n;if(!i)return;let s="string"==typeof i?document.createTextNode(i):i(n);if(!s)return;"then"in s?s.then(e=>{e&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(e)}).catch(t=>(0,r.OO)(this.view.state,t,"completion info")):this.addInfoPane(s)}}addInfoPane(t){let e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo",e.appendChild(t),this.dom.appendChild(e),this.view.requestMeasure(this.placeInfo)}updateSelectedOption(t){var e,n;let i,r,s=null;for(let o=this.list.firstChild,l=this.range.from;o;o=o.nextSibling,l++)l==t?o.hasAttribute("aria-selected")||(o.setAttribute("aria-selected","true"),s=o):o.hasAttribute("aria-selected")&&o.removeAttribute("aria-selected");return s&&(e=this.list,n=s,i=e.getBoundingClientRect(),(r=n.getBoundingClientRect()).topi.bottom&&(e.scrollTop+=r.bottom-i.bottom)),s}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),i=t.getBoundingClientRect(),s=this.space;if(!s){let o=this.dom.ownerDocument.defaultView||window;s={left:0,top:0,right:o.innerWidth,bottom:o.innerHeight}}if(i.top>Math.min(s.bottom,e.bottom)-10||i.bottom=n.height||m>e.top?u=i.bottom-e.top+"px":f=e.bottom-i.top+"px"}return{top:u,bottom:f,maxWidth:c,class:h?l?"left-narrow":"right-narrow":a?"left":"right"}}positionInfo(t){this.info&&(t?(this.info.style.top=t.top,this.info.style.bottom=t.bottom,this.info.style.maxWidth=t.maxWidth,this.info.className="cm-tooltip cm-completionInfo cm-completionInfo-"+t.class):this.info.style.top="-1e6px")}createListBox(t,e,n){let i=document.createElement("ul");i.id=e,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions"));for(let r=n.from;r=this.options.length?this:new w(this.options,C(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,n,i,r){let s=function(t,e){let n=[],i=0;for(let r of t)if(r.hasResult()){if(!1===r.result.filter){let s=r.result.getMatch;for(let o of r.result.options){let l=[1e9-i++];if(s)for(let a of s(o))l.push(a);n.push(new c(o,r,l))}}else{let h=new k(e.sliceDoc(r.from,r.to)),u;for(let f of r.result.options)(u=h.match(f.label))&&(null!=f.boost&&(u[0]+=f.boost),n.push(new c(f,r,u)))}}let d=[],p=null,m=e.facet(y).compareCompletions;for(let g of n.sort((t,e)=>e.match[0]-t.match[0]||m(t.completion,e.completion)))p&&p.label==g.completion.label&&p.detail==g.completion.detail&&(null==p.type||null==g.completion.type||p.type==g.completion.type)&&p.apply==g.completion.apply?x(g.completion)>x(p)&&(d[d.length-1]=g):d.push(g),p=g.completion;return d}(t,e);if(!s.length)return i&&t.some(t=>1==t.state)?new w(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let o=e.facet(y).selectOnOpen?0:-1;if(i&&i.selected!=o&&-1!=i.selected){let l=i.options[i.selected].completion;for(let a=0;ae.hasResult()?Math.min(t,e.from):t,1e8),create:t=>new O(t,N),above:r.aboveCursor},i?i.timestamp:Date.now(),o,!1)}map(t){return new w(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class S{constructor(t,e,n){this.active=t,this.id=e,this.open=n}static start(){return new S(A,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(t){let{state:e}=t,n=e.facet(y),i=(n.override||e.languageDataAt("autocomplete",u(e)).map(g)).map(e=>(this.active.find(t=>t.source==e)||new T(e,this.active.some(t=>0!=t.state)?1:0)).update(t,n));i.length==this.active.length&&i.every((t,e)=>t==this.active[e])&&(i=this.active);let r=this.open;for(let s of(r&&t.docChanged&&(r=r.map(t.changes)),t.selection||i.some(e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to))||!function(t,e){if(t==e)return!0;for(let n=0,i=0;;){for(;n1==t.state)&&(r=null),!r&&i.every(t=>1!=t.state)&&i.some(t=>t.hasResult())&&(i=i.map(t=>t.hasResult()?new T(t.source,0):t)),t.effects))s.is($)&&(r=r&&r.setSelected(s.value,this.id));return i==this.active&&r==this.open?this:new S(i,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:P}}let P={"aria-autocomplete":"list"};function C(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}let A=[];function Q(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class T{constructor(t,e,n=-1){this.source=t,this.state=e,this.explicitPos=n}hasResult(){return!1}update(t,e){let n=Q(t),i=this;for(let r of(n?i=i.handleUserEvent(t,n,e):t.docChanged?i=i.handleChange(t):t.selection&&0!=i.state&&(i=new T(i.source,0)),t.effects))if(r.is(D))i=new T(i.source,1,r.value?u(t.state):-1);else if(r.is(R))i=new T(i.source,0);else if(r.is(M))for(let s of r.value)s.source==i.source&&(i=s);return i}handleUserEvent(t,e,n){return"delete"!=e&&n.activateOnTyping?new T(this.source,1):this.map(t.changes)}handleChange(t){return t.changes.touchesRange(u(t.startState))?new T(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new T(this.source,this.state,t.mapPos(this.explicitPos))}}class I extends T{constructor(t,e,n,i,r){super(t,2,e),this.result=n,this.from=i,this.to=r}hasResult(){return!0}handleUserEvent(t,e,n){var i;let r=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),l=u(t.state);if((this.explicitPos<0?l<=r:ls||"delete"==e&&u(t.startState)==this.from)return new T(this.source,"input"==e&&n.activateOnTyping?1:0);let a=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),h;return!function(t,e,n,i){if(!t)return!1;let r=e.sliceDoc(n,i);return"function"==typeof t?t(r,n,i,e):f(t,!0).test(r)}(this.result.validFor,t.state,r,s)?this.result.update&&(h=this.result.update(this.result,r,s,new o(t.state,l,a>=0)))?new I(this.source,a,h,h.from,null!==(i=h.to)&&void 0!==i?i:u(t.state)):new T(this.source,1,a):new I(this.source,a,this.result,r,s)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new T(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new I(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}let D=i.Py.define(),R=i.Py.define(),M=i.Py.define({map:(t,e)=>t.map(t=>t.map(e))}),$=i.Py.define(),N=i.QQ.define({create:()=>S.start(),update:(t,e)=>t.update(e),provide:t=>[r.hJ.from(t,t=>t.tooltip),r.tk.contentAttributes.from(t,t=>t.attrs)]});function E(t,e="option"){return n=>{let i=n.state.field(N,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+s*(t?1:-1):t?0:l-1;return a<0?a="page"==e?0:l-1:a>=l&&(a="page"==e?l-1:0),n.dispatch({effects:$.of(a)}),!0}}let z=t=>{let e=t.state.field(N,!1);return!(t.state.readOnly||!e||!e.open||e.open.selected<0||Date.now()-e.open.timestamp!!t.state.field(N,!1)&&(t.dispatch({effects:D.of(!0)}),!0),W=t=>{let e=t.state.field(N,!1);return!!(e&&e.active.some(t=>0!=t.state))&&(t.dispatch({effects:R.of(null)}),!0)};class J{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}let L=r.lg.fromClass(class{constructor(t){for(let e of(this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0,t.state.field(N).active))1==e.state&&this.startQuery(e)}update(t){let e=t.state.field(N);if(!t.selectionSet&&!t.docChanged&&t.startState.field(N)==e)return;let n=t.transactions.some(t=>(t.selection||t.docChanged)&&!Q(t));for(let i=0;i50&&Date.now()-s.time>1e3){for(let o of s.context.abortListeners)try{o()}catch(l){(0,r.OO)(this.view.state,l)}s.context.abortListeners=null,this.running.splice(i--,1)}else s.updates.push(...t.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some(t=>1==t.state&&!this.running.some(e=>e.active.source==t.source))?setTimeout(()=>this.startUpdate(),50):-1,0!=this.composing)for(let a of t.transactions)"input"==Q(a)?this.composing=2:2==this.composing&&a.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:t}=this.view;for(let e of t.field(N).active)1!=e.state||this.running.some(t=>t.active.source==e.source)||this.startQuery(e)}startQuery(t){let{state:e}=this.view,n=u(e),i=new o(e,n,t.explicitPos==n),s=new J(t,i);this.running.push(s),Promise.resolve(t.source(i)).then(t=>{s.context.aborted||(s.done=t||null,this.scheduleAccept())},t=>{this.view.dispatch({effects:R.of(null)}),(0,r.OO)(this.view.state,t)})}scheduleAccept(){this.running.every(t=>void 0!==t.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),50))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(y);for(let i=0;it.source==r.active.source);if(l&&1==l.state){if(null==r.done){let a=new T(r.active.source,0);for(let h of r.updates)a=a.update(h,n);1!=a.state&&e.push(a)}else this.startQuery(l)}}e.length&&this.view.dispatch({effects:M.of(e)})}},{eventHandlers:{blur(){let t=this.view.state.field(N,!1);t&&t.tooltip&&this.view.state.facet(y).closeOnBlur&&this.view.dispatch({effects:R.of(null)})},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:D.of(!1)}),20),this.composing=0}}}),j=r.tk.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'\uD835\uDC65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\uD835\uDC36'"}},".cm-completionIcon-type":{"&:after":{content:"'\uD835\uDC61'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\uD83D\uDD11︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class F{constructor(t,e,n,i){this.field=t,this.line=e,this.from=n,this.to=i}}class _{constructor(t,e,n){this.field=t,this.from=e,this.to=n}map(t){let e=t.mapPos(this.from,-1,i.gc.TrackDel),n=t.mapPos(this.to,1,i.gc.TrackDel);return null==e||null==n?null:new _(this.field,e,n)}}class U{constructor(t,e){this.lines=t,this.fieldPositions=e}instantiate(t,e){let n=[],i=[e],r=t.doc.lineAt(e),o=/^\s*/.exec(r.text)[0];for(let l of this.lines){if(n.length){let a=o,h=/^\t*/.exec(l)[0].length;for(let c=0;cnew _(t.field,i[t.line]+t.from,i[t.line]+t.to));return{text:n,ranges:u}}static parse(t){let e=[],n=[],i=[],r;for(let s of t.split(/\r\n?|\n/)){for(;r=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(s);){let o=r[1]?+r[1]:null,l=r[2]||r[3]||"",a=-1;for(let h=0;h=a&&u.field++}i.push(new F(a,n.length,r.index,r.index+l.length)),s=s.slice(0,r.index)+l+s.slice(r.index+r[0].length)}for(let f;f=/\\([{}])/.exec(s);)for(let d of(s=s.slice(0,f.index)+f[1]+s.slice(f.index+f[0].length),i))d.line==n.length&&d.from>f.index&&(d.from--,d.to--);n.push(s)}return new U(n,i)}}let X=r.p.widget({widget:new class extends r.l9{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),q=r.p.mark({class:"cm-snippetField"});class V{constructor(t,e){this.ranges=t,this.active=e,this.deco=r.p.set(t.map(t=>(t.from==t.to?X:q).range(t.from,t.to)))}map(t){let e=[];for(let n of this.ranges){let i=n.map(t);if(!i)return null;e.push(i)}return new V(e,this.active)}selectionInsideField(t){return t.ranges.every(t=>this.ranges.some(e=>e.field==this.active&&e.from<=t.from&&e.to>=t.to))}}let G=i.Py.define({map:(t,e)=>t&&t.map(e)}),Z=i.Py.define(),Y=i.QQ.define({create:()=>null,update(t,e){for(let n of e.effects){if(n.is(G))return n.value;if(n.is(Z)&&t)return new V(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>r.tk.decorations.from(t,t=>t?t.deco:r.p.none)});function K(t,e){return i.jT.create(t.filter(t=>t.field==e).map(t=>i.jT.range(t.from,t.to)))}function H(t){return({state:e,dispatch:n})=>{let i=e.field(Y,!1);if(!i||t<0&&0==i.active)return!1;let r=i.active+t,s=t>0&&!i.ranges.some(e=>e.field==r+t);return n(e.update({selection:K(i.ranges,r),effects:G.of(s?null:new V(i.ranges,r))})),!0}}let tt=({state:t,dispatch:e})=>!!t.field(Y,!1)&&(e(t.update({effects:G.of(null)})),!0),te=H(1),tn=H(-1),ti=[{key:"Tab",run:te,shift:tn},{key:"Escape",run:tt}],tr=i.r$.define({combine:t=>t.length?t[0]:ti}),ts=i.Wl.highest(r.$f.compute([tr],t=>t.facet(tr)));function to(t,e){let n;return Object.assign(Object.assign({},e),{apply:(n=U.parse(t),(t,e,r,s)=>{let{text:o,ranges:l}=n.instantiate(t.state,r),a={changes:{from:r,to:s,insert:i.xv.of(o)},scrollIntoView:!0};if(l.length&&(a.selection=K(l,0)),l.length>1){let h=new V(l,0),c=a.effects=[G.of(h)];void 0===t.state.field(Y,!1)&&c.push(i.Py.appendConfig.of([Y,ts,tl,j]))}t.dispatch(t.state.update(a))})})}let tl=r.tk.domEventHandlers({mousedown(t,e){let n=e.state.field(Y,!1),i;if(!n||null==(i=e.posAtCoords({x:t.clientX,y:t.clientY})))return!1;let r=n.ranges.find(t=>t.from<=i&&t.to>=i);return!!r&&r.field!=n.active&&(e.dispatch({selection:K(n.ranges,r.field),effects:G.of(n.ranges.some(t=>t.field>r.field)?new V(n.ranges,r.field):null)}),!0)}}),ta={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},th=i.Py.define({map(t,e){let n=e.mapPos(t,-1,i.gc.TrackAfter);return null==n?void 0:n}}),tc=i.Py.define({map:(t,e)=>e.mapPos(t)}),tu=new class extends i.uU{};tu.startSide=1,tu.endSide=-1;let tf=i.QQ.define({create:()=>i.Xs.empty,update(t,e){if(e.selection){let n=e.state.doc.lineAt(e.selection.main.head).from,r=e.startState.doc.lineAt(e.startState.selection.main.head).from;n!=e.changes.mapPos(r,-1)&&(t=i.Xs.empty)}for(let s of(t=t.map(e.changes),e.effects))s.is(th)?t=t.update({add:[tu.range(s.value,s.value+1)]}):s.is(tc)&&(t=t.update({filter:t=>t!=s.value}));return t}});function td(){return[ty,tf]}let tp="()[]{}<>";function tm(t){for(let e=0;e{if((tk?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let o=t.state.selection.main;if(r.length>2||2==r.length&&1==(0,i.nZ)((0,i.gm)(r,0))||e!=o.from||n!=o.to)return!1;let l=function(t,e){let n=tg(t,t.selection.main.head),r=n.brackets||ta.brackets;for(let o of r){let l=tm((0,i.gm)(o,0));if(e==o)return l==o?function(t,e,n,r){let o=r.stringPrefixes||ta.stringPrefixes,l=null,a=t.changeByRange(r=>{if(!r.empty)return{changes:[{insert:e,from:r.from},{insert:e,from:r.to}],effects:th.of(r.to+e.length),range:i.jT.range(r.anchor+e.length,r.head+e.length)};let a=r.head,h=tx(t.doc,a),c;if(h==e){if(tw(t,a))return{changes:{insert:e+e,from:a},effects:th.of(a+e.length),range:i.jT.cursor(a+e.length)};if(tO(t,a)){let u=n&&t.sliceDoc(a,a+3*e.length)==e+e+e;return{range:i.jT.cursor(a+e.length*(u?3:1)),effects:tc.of(a)}}}else if(n&&t.sliceDoc(a-2*e.length,a)==e+e&&(c=tS(t,a-2*e.length,o))>-1&&tw(t,c))return{changes:{insert:e+e+e+e,from:a},effects:th.of(a+e.length),range:i.jT.cursor(a+e.length)};else if(t.charCategorizer(a)(h)!=i.D0.Word&&tS(t,a,o)>-1&&!function(t,e,n,i){let r=(0,s.qz)(t).resolveInner(e,-1),o=i.reduce((t,e)=>Math.max(t,e.length),0);for(let l=0;l<5;l++){let a=t.sliceDoc(r.from,Math.min(r.to,r.from+n.length+o)),h=a.indexOf(n);if(!h||h>-1&&i.indexOf(a.slice(0,h))>-1){let c=r.firstChild;for(;c&&c.from==r.from&&c.to-c.from>n.length+h;){if(t.sliceDoc(c.to-n.length,c.to)==n)return!1;c=c.firstChild}return!0}let u=r.to==e&&r.parent;if(!u)break;r=u}return!1}(t,a,e,o))return{changes:{insert:e+e,from:a},effects:th.of(a+e.length),range:i.jT.cursor(a+e.length)};return{range:l=r}});return l?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}(t,o,r.indexOf(o+o+o)>-1,n):function(t,e,n,r){let s=null,o=t.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:n,from:o.to}],effects:th.of(o.to+e.length),range:i.jT.range(o.anchor+e.length,o.head+e.length)};let l=tx(t.doc,o.head);return!l||/\s/.test(l)||r.indexOf(l)>-1?{changes:{insert:e+n,from:o.head},effects:th.of(o.head+e.length),range:i.jT.cursor(o.head+e.length)}:{range:s=o}});return s?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}(t,o,l,n.before||ta.before);if(e==l&&tO(t,t.selection.main.from))return function(t,e,n){let r=null,s=t.selection.ranges.map(e=>e.empty&&tx(t.doc,e.head)==n?i.jT.cursor(e.head+n.length):r=e);return r?null:t.update({selection:i.jT.create(s,t.selection.mainIndex),scrollIntoView:!0,effects:t.selection.ranges.map(({from:t})=>tc.of(t))})}(t,0,l)}return null}(t.state,r);return!!l&&(t.dispatch(l),!0)}),tv=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=tg(t,t.selection.main.head).brackets||ta.brackets,r=null,s=t.changeByRange(e=>{if(e.empty){var s,o;let l;let a=(s=t.doc,o=e.head,l=s.sliceString(o-2,o),(0,i.nZ)((0,i.gm)(l,0))==l.length?l:l.slice(1));for(let h of n)if(h==a&&tx(t.doc,e.head)==tm((0,i.gm)(h,0)))return{changes:{from:e.head-h.length,to:e.head+h.length},range:i.jT.cursor(e.head-h.length)}}return{range:r=e}});return r||e(t.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!r},tb=[{key:"Backspace",run:tv}];function tO(t,e){let n=!1;return t.field(tf).between(0,t.doc.length,t=>{t==e&&(n=!0)}),n}function tx(t,e){let n=t.sliceString(e,e+2);return n.slice(0,(0,i.nZ)((0,i.gm)(n,0)))}function tw(t,e){let n=(0,s.qz)(t).resolveInner(e+1);return n.parent&&n.from==e}function tS(t,e,n){let r=t.charCategorizer(e);if(r(t.sliceDoc(e-1,e))!=i.D0.Word)return e;for(let s of n){let o=e-s.length;if(t.sliceDoc(o,e)==s&&r(t.sliceDoc(o-1,o))!=i.D0.Word)return o}return -1}function tP(t={}){return[N,y.of(t),L,tA,j]}let tC=[{key:"Ctrl-Space",run:B},{key:"Escape",run:W},{key:"ArrowDown",run:E(!0)},{key:"ArrowUp",run:E(!1)},{key:"PageDown",run:E(!0,"page")},{key:"PageUp",run:E(!1,"page")},{key:"Enter",run:z}],tA=i.Wl.highest(r.$f.computeN([y],t=>t.facet(y).defaultKeymap?[tC]:[]))},61426:function(t,e,n){n.r(e),n.d(e,{css:function(){return S},cssCompletionSource:function(){return x},cssLanguage:function(){return w}});var i=n(53105),r=n(35524);let s=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function o(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}let l=new i.Jq((t,e)=>{for(let n=!1,i=0,r=0;;r++){var s;let{next:l}=t;if(o(l)||45==l||95==l||n&&(s=l)>=48&&s<=57)!n&&(45!=l||r>0)&&(n=!0),i===r&&45==l&&i++,t.advance();else{n&&t.acceptToken(40==l?95:2==i&&e.canShift(2)?2:96);break}}}),a=new i.Jq(t=>{if(s.includes(t.peek(-1))){let{next:e}=t;(o(e)||95==e||35==e||46==e||91==e||58==e||45==e)&&t.acceptToken(94)}}),h=new i.Jq(t=>{if(!s.includes(t.peek(-1))){let{next:e}=t;if(37==e&&(t.advance(),t.acceptToken(1)),o(e)){do t.advance();while(o(t.next));t.acceptToken(1)}}}),c=(0,r.Gv)({"AtKeyword import charset namespace keyframes media supports":r.pJ.definitionKeyword,"from to selector":r.pJ.keyword,NamespaceName:r.pJ.namespace,KeyframeName:r.pJ.labelName,TagName:r.pJ.tagName,ClassName:r.pJ.className,PseudoClassName:r.pJ.constant(r.pJ.className),IdName:r.pJ.labelName,"FeatureName PropertyName":r.pJ.propertyName,AttributeName:r.pJ.attributeName,NumberLiteral:r.pJ.number,KeywordQuery:r.pJ.keyword,UnaryQueryOp:r.pJ.operatorKeyword,"CallTag ValueName":r.pJ.atom,VariableName:r.pJ.variableName,Callee:r.pJ.operatorKeyword,Unit:r.pJ.unit,"UniversalSelector NestingSelector":r.pJ.definitionOperator,MatchOp:r.pJ.compareOperator,"ChildOp SiblingOp, LogicOp":r.pJ.logicOperator,BinOp:r.pJ.arithmeticOperator,Important:r.pJ.modifier,Comment:r.pJ.blockComment,ParenthesizedContent:r.pJ.special(r.pJ.name),ColorLiteral:r.pJ.color,StringLiteral:r.pJ.string,":":r.pJ.punctuation,"PseudoOp #":r.pJ.derefOperator,"; ,":r.pJ.separator,"( )":r.pJ.paren,"[ ]":r.pJ.squareBracket,"{ }":r.pJ.brace}),u={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},f={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},d={__proto__:null,not:128,only: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1},{term:56,get:t=>f[t]||-1},{term:96,get:t=>d[t]||-1}],tokenPrec:1123});var m=n(59119);let g=null;function k(){if(!g&&"object"==typeof document&&document.body){let t=[];for(let e in document.body.style)/[A-Z]|^-|^(item|length)$/.test(e)||t.push(e);g=t.sort().map(t=>({type:"property",label:t}))}return g||[]}let y=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),v=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),b=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),O=/^[\w-]*/,x=t=>{let{state:e,pos:n}=t,i=(0,m.qz)(e).resolveInner(n,-1);if("PropertyName"==i.name)return{from:i.from,options:k(),validFor:O};if("ValueName"==i.name)return{from:i.from,options:v,validFor:O};if("PseudoClassName"==i.name)return{from:i.from,options:y,validFor:O};if("TagName"==i.name){for(let{parent:r}=i;r;r=r.parent)if("Block"==r.name)return{from:i.from,options:k(),validFor:O};return{from:i.from,options:b,validFor:O}}if(!t.explicit)return null;let s=i.resolve(n),o=s.childBefore(n);return o&&":"==o.name&&"PseudoClassSelector"==s.name?{from:n,options:y,validFor:O}:o&&":"==o.name&&"Declaration"==s.name||"ArgList"==s.name?{from:n,options:v,validFor:O}:"Block"==s.name?{from:n,options:k(),validFor:O}:null},w=m.qp.define({name:"css",parser:p.configure({props:[m.uj.add({Declaration:(0,m.tC)()}),m.x0.add({Block:m.Dv})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function S(){return new m.ri(w,w.data.of({autocomplete:x}))}},59119:function(t,e,n){n.d(e,{Be:function(){return k},Dv:function(){return F},Gn:function(){return D},K0:function(){return I},Qf:function(){return tf},R_:function(){return ty},SQ:function(){return u},SS:function(){return T},Um:function(){return tT},c:function(){return A},c6:function(){return P},e7:function(){return ti},il:function(){return tM},kU:function(){return c},mi:function(){return tc},n$:function(){return tA},nF:function(){return tg},nY:function(){return J},pp:function(){return h},qp:function(){return d},qz:function(){return p},ri:function(){return S},tC:function(){return W},uj:function(){return R},vw:function(){return E},x0:function(){return j},y1:function(){return Q},ze:function(){return B}});var i,r=n(41113),s=n(78120),o=n(47421),l=n(35524),a=n(28699);let h=new r.md;function c(t){return s.r$.define({combine:t?e=>e.concat(t):void 0})}class u{constructor(t,e,n=[],i=""){this.data=t,this.name=i,s.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(s.yy.prototype,"tree",{get(){return p(this)}}),this.parser=e,this.extension=[w.of(this),s.yy.languageData.of((t,e,n)=>t.facet(f(t,e,n)))].concat(n)}isActiveAt(t,e,n=-1){return f(t,e,n)==this.data}findRegions(t){let e=t.facet(w);if((null==e?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let n=[],i=(t,e)=>{if(t.prop(h)==this.data){n.push({from:e,to:e+t.length});return}let s=t.prop(r.md.mounted);if(s){if(s.tree.prop(h)==this.data){if(s.overlay)for(let o of s.overlay)n.push({from:o.from+e,to:o.to+e});else n.push({from:e,to:e+t.length});return}if(s.overlay){let l=n.length;if(i(s.tree,s.overlay[0].from+e),n.length>l)return}}for(let a=0;at.isTop?e:void 0)]}),t.name)}configure(t,e){return new d(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function p(t){let e=t.field(u.state,!1);return e?e.tree:r.mp.empty}class m{constructor(t,e=t.length){this.doc=t,this.length=e,this.cursorPos=0,this.string="",this.cursor=t.iter()}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let n=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}}let g=null;class k{constructor(t,e,n=[],i,r,s,o,l){this.parser=t,this.state=e,this.fragments=n,this.tree=i,this.treeLen=r,this.viewport=s,this.skipped=o,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,e,n){return new k(t,e,[],r.mp.empty,0,n,[],null)}startParse(){return this.parser.startParse(new m(this.state.doc),this.fragments)}work(t,e){return(null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=r.mp.empty&&this.isDone(null!=e?e:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof t){let i=Date.now()+t;t=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),null!=e&&(null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&e=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(r.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=g;g=this;try{return t()}finally{g=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=y(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:i,treeLen:s,viewport:o,skipped:l}=this;if(this.takeTree(),!t.empty){let a=[];if(t.iterChangedRanges((t,e,n,i)=>a.push({fromA:t,toA:e,fromB:n,toB:i})),n=r.i9.applyChanges(n,a),i=r.mp.empty,s=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length)for(let h of(l=[],this.skipped)){let c=t.mapPos(h.from,1),u=t.mapPos(h.to,-1);ct.from&&(this.fragments=y(this.fragments,i,r),this.skipped.splice(n--,1))}return!(this.skipped.length>=e)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends r._b{createParse(e,n,i){let s=i[0].from,o=i[i.length-1].to;return{parsedPos:s,advance(){let e=g;if(e){for(let n of i)e.tempSkipped.push(n);t&&(e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t)}return this.parsedPos=o,new r.mp(r.Jq.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return g}}function y(t,e,n){return r.i9.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class v{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),n=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,n)||e.takeTree(),new v(e)}static init(t){let e=Math.min(3e3,t.doc.length),n=k.create(t.facet(w).parser,t,{from:0,to:e});return n.work(20,e)||n.takeTree(),new v(n)}}u.state=s.QQ.define({create:v.init,update(t,e){for(let n of e.effects)if(n.is(u.setState))return n.value;return e.startState.facet(w)!=e.state.facet(w)?v.init(e.state):t.apply(e)}});let b=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};"undefined"!=typeof requestIdleCallback&&(b=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});let O="undefined"!=typeof navigator&&(null===(i=navigator.scheduling)||void 0===i?void 0:i.isInputPending)?()=>navigator.scheduling.isInputPending():null,x=o.lg.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(u.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),t.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(u.state);e.tree==e.context.tree&&e.context.isDone(t.doc.length)||(this.working=b(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEndi+1e3,l=r.context.work(()=>O&&O()||Date.now()>s,i+(o?0:1e5));this.chunkBudget-=Date.now()-e,(l||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:u.setState.of(new v(r.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(t=>(0,o.OO)(this.view.state,t)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),w=s.r$.define({combine:t=>t.length?t[0]:null,enables:t=>[u.state,x,o.tk.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class S{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}class P{constructor(t,e,n,i,r,s){this.name=t,this.alias=e,this.extensions=n,this.filename=i,this.loadFunc=r,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:e,support:n}=t;if(!e){if(!n)throw RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");e=()=>Promise.resolve(n)}return new P(t.name,(t.alias||[]).concat(t.name).map(t=>t.toLowerCase()),t.extensions||[],t.filename,e,n)}static matchFilename(t,e){for(let n of t)if(n.filename&&n.filename.test(e))return n;let i=/\.([^.]+)$/.exec(e);if(i){for(let r of t)if(r.extensions.indexOf(i[1])>-1)return r}return null}static matchLanguageName(t,e,n=!0){for(let i of(e=e.toLowerCase(),t))if(i.alias.some(t=>t==e))return i;if(n)for(let r of t)for(let s of r.alias){let o=e.indexOf(s);if(o>-1&&(s.length>2||!/\w/.test(e[o-1])&&!/\w/.test(e[o+s.length])))return r}return null}}let C=s.r$.define(),A=s.r$.define({combine:t=>{if(!t.length)return" ";if(!/^(?: +|\t+)$/.test(t[0]))throw Error("Invalid indent unit: "+JSON.stringify(t[0]));return t[0]}});function Q(t){let e=t.facet(A);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function T(t,e){let n="",i=t.tabSize;if(9==t.facet(A).charCodeAt(0))for(;e>=i;)n+=" ",e-=i;for(let r=0;r=n.from&&i<=n.to?r&&i==t?{text:"",from:t}:(e<0?i-1&&(r+=s-this.countColumn(n,n.search(/\S|$/))),r}countColumn(t,e=t.length){return(0,s.IS)(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:n,from:i}=this.lineAt(t,e),r=this.options.overrideIndentation;if(r){let s=r(i);if(s>-1)return s}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let R=new r.md;function M(t,e,n){for(;t;t=t.parent){let i=function(t){let e=t.type.prop(R);if(e)return e;let n=t.firstChild,i;if(n&&(i=n.type.prop(r.md.closedBy))){let s=t.lastChild,o=s&&i.indexOf(s.name)>-1;return t=>z(t,!0,1,void 0,o&&!(t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak)?s.from:void 0)}return null==t.parent?$:null}(t);if(i)return i(N.create(n,e,t))}return null}function $(){return 0}class N extends D{constructor(t,e,n){super(t.state,t.options),this.base=t,this.pos=e,this.node=n}static create(t,e,n){return new N(t,e,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let t=this.state.doc.lineAt(this.node.from);for(;;){let e=this.node.resolve(t.from);for(;e.parent&&e.parent.from==e.from;)e=e.parent;if(function(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}(e,this.node))break;t=this.state.doc.lineAt(e.from)}return this.lineIndent(t.from)}continue(){let t=this.node.parent;return t?M(t,this.pos,this.base):0}}function E({closing:t,align:e=!0,units:n=1}){return i=>z(i,e,n,t)}function z(t,e,n,i,r){let s=t.textAfter,o=s.match(/^\s*/)[0].length,l=i&&s.slice(o,o+i.length)==i||r==t.pos+o,a=e?function(t){let e=t.node,n=e.childAfter(e.from),i=e.lastChild;if(!n)return null;let r=t.options.simulateBreak,s=t.state.doc.lineAt(n.from),o=null==r||r<=s.from?s.to:Math.min(s.to,r);for(let l=n.to;;){let a=e.childAfter(l);if(!a||a==i)return null;if(!a.type.isSkipped)return a.fromt.baseIndent;function W({except:t,units:e=1}={}){return n=>{let i=t&&t.test(n.textAfter);return n.baseIndent+(i?0:e*n.unit)}}function J(){return s.yy.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:i}=t.newSelection.main,r=n.lineAt(i);if(i>r.from+200)return t;let s=n.sliceString(r.from,i);if(!e.some(t=>t.test(s)))return t;let{state:o}=t,l=-1,a=[];for(let{head:h}of o.selection.ranges){let c=o.doc.lineAt(h);if(c.from==l)continue;l=c.from;let u=I(o,c.from);if(null==u)continue;let f=/^\s*/.exec(c.text)[0],d=T(o,u);f!=d&&a.push({from:c.from,to:c.from+f.length,insert:d})}return a.length?[t,{changes:a,sequential:!0}]:t})}let L=s.r$.define(),j=new r.md;function F(t){let e=t.firstChild,n=t.lastChild;return e&&e.ton)continue;if(s&&o.from=e&&a.to>n&&(s=a)}}return s}(t,e,n)}function U(t,e){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);return n>=i?void 0:{from:n,to:i}}let X=s.Py.define({map:U}),q=s.Py.define({map:U});function V(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(t=>t.from<=n&&t.to>=n)||e.push(t.lineBlockAt(n));return e}let G=s.QQ.define({create:()=>o.p.none,update(t,e){for(let n of(t=t.map(e.changes),e.effects))n.is(X)&&!function(t,e,n){let i=!1;return t.between(e,e,(t,r)=>{t==e&&r==n&&(i=!0)}),i}(t,n.value.from,n.value.to)?t=t.update({add:[tl.range(n.value.from,n.value.to)]}):n.is(q)&&(t=t.update({filter:(t,e)=>n.value.from!=t||n.value.to!=e,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let i=!1,{head:r}=e.selection.main;t.between(r,r,(t,e)=>{tr&&(i=!0)}),i&&(t=t.update({filterFrom:r,filterTo:r,filter:(t,e)=>e<=r||t>=r}))}return t},provide:t=>o.tk.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(t,e)=>{n.push(t,e)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n{(!r||r.from>t)&&(r={from:t,to:e})}),r}function Y(t,e){return t.field(G,!1)?e:e.concat(s.Py.appendConfig.of(to()))}let K=t=>{for(let e of V(t)){let n=_(t.state,e.from,e.to);if(n)return t.dispatch({effects:Y(t.state,[X.of(n),tt(t,n)])}),!0}return!1},H=t=>{if(!t.state.field(G,!1))return!1;let e=[];for(let n of V(t)){let i=Z(t.state,n.from,n.to);i&&e.push(q.of(i),tt(t,i,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function tt(t,e,n=!0){let i=t.state.doc.lineAt(e.from).number,r=t.state.doc.lineAt(e.to).number;return o.tk.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${i} ${t.state.phrase("to")} ${r}.`)}let te=t=>{let{state:e}=t,n=[];for(let i=0;i{let e=t.state.field(G,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(t,e)=>{n.push(q.of({from:t,to:e}))}),t.dispatch({effects:n}),!0},ti=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:K},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:H},{key:"Ctrl-Alt-[",run:te},{key:"Ctrl-Alt-]",run:tn}],tr={placeholderDOM:null,placeholderText:"…"},ts=s.r$.define({combine:t=>(0,s.BO)(t,tr)});function to(t){let e=[G,tu];return t&&e.push(ts.of(t)),e}let tl=o.p.replace({widget:new class extends o.l9{toDOM(t){let{state:e}=t,n=e.facet(ts),i=e=>{let n=t.lineBlockAt(t.posAtDOM(e.target)),i=Z(t.state,n.from,n.to);i&&t.dispatch({effects:q.of(i)}),e.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(t,i);let r=document.createElement("span");return r.textContent=n.placeholderText,r.setAttribute("aria-label",e.phrase("folded code")),r.title=e.phrase("unfold"),r.className="cm-foldPlaceholder",r.onclick=i,r}}}),ta={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class th extends o.SJ{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function tc(t={}){let e=Object.assign(Object.assign({},ta),t),n=new th(e,!0),i=new th(e,!1),r=o.lg.fromClass(class{constructor(t){this.from=t.viewport.from,this.markers=this.buildMarkers(t)}update(t){(t.docChanged||t.viewportChanged||t.startState.facet(w)!=t.state.facet(w)||t.startState.field(G,!1)!=t.state.field(G,!1)||p(t.startState)!=p(t.state)||e.foldingChanged(t))&&(this.markers=this.buildMarkers(t.view))}buildMarkers(t){let e=new s.f_;for(let r of t.viewportLineBlocks){let o=Z(t.state,r.from,r.to)?i:_(t.state,r.from,r.to)?n:null;o&&e.add(r.from,r.from,o)}return e.finish()}}),{domEventHandlers:l}=e;return[r,(0,o.v5)({class:"cm-foldGutter",markers(t){var e;return(null===(e=t.plugin(r))||void 0===e?void 0:e.markers)||s.Xs.empty},initialSpacer:()=>new th(e,!1),domEventHandlers:Object.assign(Object.assign({},l),{click:(t,e,n)=>{if(l.click&&l.click(t,e,n))return!0;let i=Z(t.state,e.from,e.to);if(i)return t.dispatch({effects:q.of(i)}),!0;let r=_(t.state,e.from,e.to);return!!r&&(t.dispatch({effects:X.of(r)}),!0)}})}),to()]}let tu=o.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class tf{constructor(t,e){let n;function i(t){let e=a.V.newName();return(n||(n=Object.create(null)))["."+e]=t,e}this.specs=t;let r="string"==typeof e.all?e.all:e.all?i(e.all):void 0,s=e.scope;this.scope=s instanceof u?t=>t.prop(h)==s.data:s?t=>t==s:void 0,this.style=(0,l.QR)(t.map(t=>({tag:t.tag,class:t.class||i(Object.assign({},t,{tag:null}))})),{all:r}).style,this.module=n?new a.V(n):null,this.themeType=e.themeType}static define(t,e){return new tf(t,e||{})}}let td=s.r$.define(),tp=s.r$.define({combine:t=>t.length?[t[0]]:null});function tm(t){let e=t.facet(td);return e.length?e:t.facet(tp)}function tg(t,e){let n=[tk],i;return t instanceof tf&&(t.module&&n.push(o.tk.styleModule.of(t.module)),i=t.themeType),(null==e?void 0:e.fallback)?n.push(tp.of(t)):i?n.push(td.computeN([o.tk.darkTheme],e=>e.facet(o.tk.darkTheme)==("dark"==i)?[t]:[])):n.push(td.of(t)),n}let tk=s.Wl.high(o.lg.fromClass(class{constructor(t){this.markCache=Object.create(null),this.tree=p(t.state),this.decorations=this.buildDeco(t,tm(t.state))}update(t){let e=p(t.state),n=tm(t.state),i=n!=tm(t.startState);e.length{n.add(t,e,this.markCache[i]||(this.markCache[i]=o.p.mark({class:i})))},i,r);return n.finish()}},{decorations:t=>t.decorations})),ty=tf.define([{tag:l.pJ.meta,color:"#404740"},{tag:l.pJ.link,textDecoration:"underline"},{tag:l.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:l.pJ.emphasis,fontStyle:"italic"},{tag:l.pJ.strong,fontWeight:"bold"},{tag:l.pJ.strikethrough,textDecoration:"line-through"},{tag:l.pJ.keyword,color:"#708"},{tag:[l.pJ.atom,l.pJ.bool,l.pJ.url,l.pJ.contentSeparator,l.pJ.labelName],color:"#219"},{tag:[l.pJ.literal,l.pJ.inserted],color:"#164"},{tag:[l.pJ.string,l.pJ.deleted],color:"#a11"},{tag:[l.pJ.regexp,l.pJ.escape,l.pJ.special(l.pJ.string)],color:"#e40"},{tag:l.pJ.definition(l.pJ.variableName),color:"#00f"},{tag:l.pJ.local(l.pJ.variableName),color:"#30a"},{tag:[l.pJ.typeName,l.pJ.namespace],color:"#085"},{tag:l.pJ.className,color:"#167"},{tag:[l.pJ.special(l.pJ.variableName),l.pJ.macroName],color:"#256"},{tag:l.pJ.definition(l.pJ.propertyName),color:"#00c"},{tag:l.pJ.comment,color:"#940"},{tag:l.pJ.invalid,color:"#f00"}]),tv=o.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),tb="()[]{}",tO=s.r$.define({combine:t=>(0,s.BO)(t,{afterCursor:!0,brackets:tb,maxScanDistance:1e4,renderMatch:tS})}),tx=o.p.mark({class:"cm-matchingBracket"}),tw=o.p.mark({class:"cm-nonmatchingBracket"});function tS(t){let e=[],n=t.matched?tx:tw;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}let tP=s.QQ.define({create:()=>o.p.none,update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],i=e.state.facet(tO);for(let r of e.state.selection.ranges){if(!r.empty)continue;let s=tT(e.state,r.head,-1,i)||r.head>0&&tT(e.state,r.head-1,1,i)||i.afterCursor&&(tT(e.state,r.head,1,i)||r.heado.tk.decorations.from(t)}),tC=[tP,tv];function tA(t={}){return[tO.of(t),tC]}function tQ(t,e,n){let i=t.prop(e<0?r.md.openedBy:r.md.closedBy);if(i)return i;if(1==t.name.length){let s=n.indexOf(t.name);if(s>-1&&s%2==(e<0?1:0))return[n[s+e]]}return null}function tT(t,e,n,i={}){let r=i.maxScanDistance||1e4,s=i.brackets||tb,o=p(t),l=o.resolveInner(e,n);for(let a=l;a;a=a.parent){let h=tQ(a.type,n,s);if(h&&a.from=i.to){if(0==a&&r.indexOf(h.type.name)>-1&&h.from0)return null;let h={from:n<0?e-1:e,to:n>0?e+1:e},c=t.doc.iterRange(e,n>0?t.doc.length:0),u=0;for(let f=0;!c.next().done&&f<=s;){let d=c.value;n<0&&(f+=d.length);let p=e+f*n;for(let m=n>0?0:d.length-1,g=n>0?d.length:-1;m!=g;m+=n){let k=o.indexOf(d[m]);if(!(k<0)&&i.resolveInner(p+m,1).type==r){if(k%2==0==n>0)u++;else{if(1==u)return{start:h,end:{from:p+m,to:p+m+1},matched:k>>1==a>>1};u--}}}n>0&&(f+=d.length)}return c.done?{start:h,matched:!1}:null}(t,e,n,o,l.type,r,s)}function tI(t,e,n,i=0,r=0){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);let s=r;for(let o=i;o=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pose}eatSpace(){let t=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length}skipTo(t){let e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0}backUp(t){this.pos-=t}column(){return this.lastColumnPosn?t.toLowerCase():t;return i(this.string.substr(this.pos,t.length))==i(t)?(!1!==e&&(this.pos+=t.length),!0):null}{let r=this.string.slice(this.pos).match(t);return r&&r.index>0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}}current(){return this.string.slice(this.start,this.pos)}}function tR(t){if("object"!=typeof t)return t;let e={};for(let n in t){let i=t[n];e[n]=i instanceof Array?i.slice():i}return e}class tM extends u{constructor(t){let e,n=c(t.languageData),i={name:t.name||"",token:t.token,blankLine:t.blankLine||(()=>{}),startState:t.startState||(()=>!0),copyState:t.copyState||tR,indent:t.indent||(()=>null),languageData:t.languageData||{},tokenTable:t.tokenTable||tz},s;super(n,new class extends r._b{createParse(t,e,n){return new tN(s,t,e,n)}},[C.of((t,e)=>this.getIndent(t,e))],t.name),this.topNode=(e=r.Jq.define({id:tB.length,name:"Document",props:[h.add(()=>n)]}),tB.push(e),e),s=this,this.streamParser=i,this.stateAfter=new r.md({perNode:!0}),this.tokenTable=t.tokenTable?new t_(i.tokenTable):tU}static define(t){return new tM(t)}getIndent(t,e){let n=p(t.state),i=n.resolve(e);for(;i&&i.type!=this.topNode;)i=i.parent;if(!i)return null;let r=t$(this,n,0,i.from,e),s,o;if(r?(o=r.state,s=r.pos+1):(o=this.streamParser.startState(t.unit),s=0),e-s>1e4)return null;for(;s=i&&n+e.length<=s&&e.prop(t.stateAfter);if(o)return{state:t.streamParser.copyState(o),pos:n+e.length};for(let l=e.children.length-1;l>=0;l--){let a=e.children[l],h=n+e.positions[l],c=a instanceof r.mp&&hn&&t$(t,s.tree,0-s.offset,n,l),h;if(a&&(h=function t(e,n,i,s,o){if(o&&i<=0&&s>=n.length)return n;o||n.type!=e.topNode||(o=!0);for(let l=n.children.length-1;l>=0;l--){let a=n.positions[l],h=n.children[l],c;if(a=e)?this.finish():t&&this.parsedPos>=t.viewport.to?(t.skipUntilInView(this.parsedPos,e),this.finish()):null}stopAt(t){this.stoppedAt=t}lineAfter(t){let e=this.input.chunk(t);if(this.input.lineChunks)"\n"==e&&(e="");else{let n=e.indexOf("\n");n>-1&&(e=e.slice(0,n))}return t+e.length<=this.to?e:e.slice(0,this.to-t)}nextLine(){let t=this.parsedPos,e=this.lineAfter(t),n=t+e.length;for(let i=this.rangeIndex;;){let r=this.ranges[i].to;if(r>=n||(e=e.slice(0,r-(n-e.length)),++i==this.ranges.length))break;let s=this.ranges[i].from,o=this.lineAfter(s);e+=o,n=s+o.length}return{line:e,end:n}}skipGapsTo(t,e,n){for(;;){let i=this.ranges[this.rangeIndex].to,r=t+e;if(n>0?i>r:i>=r)break;e+=this.ranges[++this.rangeIndex].from-i}return e}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){r=this.skipGapsTo(e,r,1),e+=r;let s=this.chunk.length;r=this.skipGapsTo(n,r,-1),n+=r,i+=this.chunk.length-s}return this.chunk.push(t,e,n,i),r}parseLine(t){let{line:e,end:n}=this.nextLine(),i=0,{streamParser:r}=this.lang,s=new tD(e,t?t.state.tabSize:4,t?Q(t.state):2);if(s.eol())r.blankLine(this.state,s.indentUnit);else for(;!s.eol();){let o=tE(r.token,s,this.state);if(o&&(i=this.emitToken(this.lang.tokenTable.resolve(o),this.parsedPos+s.start,this.parsedPos+s.pos,4,i)),s.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPose.start)return r}throw Error("Stream parser failed to advance stream.")}let tz=Object.create(null),tB=[r.Jq.none],tW=new r.Lj(tB),tJ=[],tL=Object.create(null);for(let[tj,tF]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])tL[tj]=tq(tz,tF);class t_{constructor(t){this.extra=t,this.table=Object.assign(Object.create(null),tL)}resolve(t){return t?this.table[t]||(this.table[t]=tq(this.extra,t)):0}}let tU=new t_(tz);function tX(t,e){tJ.indexOf(t)>-1||(tJ.push(t),console.warn(e))}function tq(t,e){let n=null;for(let i of e.split(".")){let s=t[i]||l.pJ[i];s?"function"==typeof s?n?n=s(n):tX(i,`Modifier ${i} used at start of tag`):n?tX(i,`Tag ${i} used as modifier`):n=s:tX(i,`Unknown highlighting tag ${i}`)}if(!n)return 0;let o=e.replace(/ /g,"_"),a=r.Jq.define({id:tB.length,name:o,props:[(0,l.Gv)({[o]:n})]});return tB.push(a),a.id}},78120:function(t,e,n){let i;n.d(e,{BO:function(){return tO},D0:function(){return tk},Gz:function(){return tW},IS:function(){return tB},Py:function(){return tu},QQ:function(){return U},Wl:function(){return V},Xs:function(){return tC},YW:function(){return tf},as:function(){return Q},bg:function(){return O},cp:function(){return m},f_:function(){return tA},gc:function(){return C},gm:function(){return b},jT:function(){return E},n0:function(){return A},nZ:function(){return x},q6:function(){return ta},r$:function(){return W},uU:function(){return tx},xv:function(){return r},yy:function(){return tb}});class r{constructor(){}lineAt(t){if(t<0||t>this.length)throw RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,n){let i=[];return this.decompose(0,t,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(e,this.length,i,1),o.from(i,this.length-(e-t)+n.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){let n=[];return this.decompose(t,e,n,0),o.from(n,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),n=this.length-this.scanIdentical(t,-1),i=new a(this),r=new a(t);for(let s=e,o=e;;){if(i.next(s),r.next(s),s=0,i.lineBreak!=r.lineBreak||i.done!=r.done||i.value!=r.value)return!1;if(o+=i.value.length,i.done||o>=n)return!0}}iter(t=1){return new a(this,t)}iterRange(t,e=this.length){return new h(this,t,e)}iterLines(t,e){let n;if(null==t)n=this.iter();else{null==e&&(e=this.lines+1);let i=this.line(t).from;n=this.iterRange(i,Math.max(i,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new c(n)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}static of(t){if(0==t.length)throw RangeError("A document must have at least one line");return 1!=t.length||t[0]?t.length<=32?new s(t):o.from(s.split(t,[])):r.empty}}class s extends r{constructor(t,e=function(t){let e=-1;for(let n of t)e+=n.length+1;return e}(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,n,i){for(let r=0;;r++){let s=this.text[r],o=i+s.length;if((e?n:o)>=t)return new u(i,o,n,s);i=o+1,n++}}decompose(t,e,n,i){let r=t<=0&&e>=this.length?this:new s(l(this.text,[""],t,e),Math.min(e,this.length)-Math.max(0,t));if(1&i){let o=n.pop(),a=l(r.text,o.text.slice(),0,r.length);if(a.length<=32)n.push(new s(a,o.length+r.length));else{let h=a.length>>1;n.push(new s(a.slice(0,h)),new s(a.slice(h)))}}else n.push(r)}replace(t,e,n){if(!(n instanceof s))return super.replace(t,e,n);let i=l(this.text,l(n.text,l(this.text,[""],0,t)),e),r=this.length+n.length-(e-t);return i.length<=32?new s(i,r):o.from(s.split(i,[]),r)}sliceString(t,e=this.length,n="\n"){let i="";for(let r=0,s=0;r<=e&&st&&s&&(i+=n),tr&&(i+=o.slice(Math.max(0,t-r),e-r)),r=l+1}return i}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let n=[],i=-1;for(let r of t)n.push(r),i+=r.length+1,32==n.length&&(e.push(new s(n,i)),n=[],i=-1);return i>-1&&e.push(new s(n,i)),e}}class o extends r{constructor(t,e){for(let n of(super(),this.children=t,this.length=e,this.lines=0,t))this.lines+=n.lines}lineInner(t,e,n,i){for(let r=0;;r++){let s=this.children[r],o=i+s.length,l=n+s.lines-1;if((e?l:o)>=t)return s.lineInner(t,e,n,i);i=o+1,n=l+1}}decompose(t,e,n,i){for(let r=0,s=0;s<=e&&r=s){let a=i&((s<=t?1:0)|(l>=e?2:0));s>=t&&l<=e&&!a?n.push(o):o.decompose(t-s,e-s,n,a)}s=l+1}}replace(t,e,n){if(n.lines=r&&e<=l){let a=s.replace(t-r,e-r,n),h=this.lines-s.lines+a.lines;if(a.lines>4&&a.lines>h>>6){let c=this.children.slice();return c[i]=a,new o(c,this.length-(e-t)+n.length)}return super.replace(r,l,a)}r=l+1}return super.replace(t,e,n)}sliceString(t,e=this.length,n="\n"){let i="";for(let r=0,s=0;rt&&r&&(i+=n),ts&&(i+=o.sliceString(t-s,e-s,n)),s=l+1}return i}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof o))return 0;let n=0,[i,r,s,l]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=e,r+=e){if(i==s||r==l)return n;let a=this.children[i],h=t.children[r];if(a!=h)return n+a.scanIdentical(h,e);n+=a.length+1}}static from(t,e=t.reduce((t,e)=>t+e.length+1,-1)){let n=0;for(let i of t)n+=i.lines;if(n<32){let r=[];for(let l of t)l.flatten(r);return new s(r,e)}let a=Math.max(32,n>>5),h=a<<1,c=a>>1,u=[],f=0,d=-1,p=[];function m(){0!=f&&(u.push(1==p.length?p[0]:o.from(p,d)),d=-1,f=p.length=0)}for(let g of t)!function t(e){let n;if(e.lines>h&&e instanceof o)for(let i of e.children)t(i);else e.lines>c&&(f>c||!f)?(m(),u.push(e)):e instanceof s&&f&&(n=p[p.length-1])instanceof s&&e.lines+n.lines<=32?(f+=e.lines,d+=e.length+1,p[p.length-1]=new s(n.text.concat(e.text),n.length+1+e.length)):(f+e.lines>a&&m(),f+=e.lines,d+=e.length+1,p.push(e))}(g);return m(),1==u.length?u[0]:new o(u,e)}}function l(t,e,n=0,i=1e9){for(let r=0,s=0,o=!0;s=n&&(a>i&&(l=l.slice(0,i-r)),r0?1:(t instanceof s?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],r=this.offsets[n],o=r>>1,l=i instanceof s?i.text.length:i.children.length;if(o==(e>0?l:0)){if(0==n)return this.done=!0,this.value="",this;e>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(e>0?0:1)){if(this.offsets[n]+=e,0==t)return this.lineBreak=!0,this.value="\n",this;t--}else if(i instanceof s){let a=i.text[o+(e<0?-1:0)];if(this.offsets[n]+=e,a.length>Math.max(0,t))return this.value=0==t?a:e>0?a.slice(t):a.slice(0,a.length-t),this;t-=a.length}else{let h=i.children[o+(e<0?-1:0)];t>h.length?(t-=h.length,this.offsets[n]+=e):(e<0&&this.offsets[n]--,this.nodes.push(h),this.offsets.push(e>0?1:(h instanceof s?h.text.length:h.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class h{constructor(t,e,n){this.value="",this.done=!1,this.cursor=new a(t,e>n?-1:1),this.pos=e>n?t.length:0,this.from=Math.min(e,n),this.to=Math.max(e,n)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let n=e<0?this.pos-this.from:this.to-this.pos;t>n&&(t=n),n-=t;let{value:i}=this.cursor.next(t);return this.pos+=(i.length+t)*e,this.value=i.length<=n?i:e<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class c{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:n,value:i}=this.inner.next(t);return e?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.iter()},a.prototype[Symbol.iterator]=h.prototype[Symbol.iterator]=c.prototype[Symbol.iterator]=function(){return this});class u{constructor(t,e,n,i){this.from=t,this.to=e,this.number=n,this.text=i}get length(){return this.to-this.from}}let f="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t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i=!0){return(n?g:k)(t,e,i)}function g(t,e,n){if(e==t.length)return e;e&&y(t.charCodeAt(e))&&v(t.charCodeAt(e-1))&&e--;let i=b(t,e);for(e+=x(i);et)return f[e-1]<=t;return!1}(r))e+=x(r),i=r;else if(p(r)){let s=0,o=e-2;for(;o>=0&&p(b(t,o));)s++,o-=2;if(s%2==0)break;e+=2}else break}return e}function k(t,e,n){for(;e>0;){let i=g(t,e-2,n);if(i=56320&&t<57344}function v(t){return t>=55296&&t<56320}function b(t,e){let n=t.charCodeAt(e);if(!v(n)||e+1==t.length)return n;let i=t.charCodeAt(e+1);return y(i)?(n-55296<<10)+(i-56320)+65536:n}function O(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10)+55296,(1023&t)+56320)}function x(t){return t<65536?1:2}let w=/\r\n?|\n/;var S,P,C=((S=C||(C={}))[S.Simple=0]="Simple",S[S.TrackDel=1]="TrackDel",S[S.TrackBefore=2]="TrackBefore",S[S.TrackAfter=3]="TrackAfter",S);class A{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;et)return r+(t-i);r+=o}else{if(n!=C.Simple&&a>=t&&(n==C.TrackDel&&it||n==C.TrackBefore&&it))return null;if(a>t||a==t&&e<0&&!o)return t==i||e<0?r:r+l;r+=l}i=a}if(t>i)throw RangeError(`Position ${t} is out of range for changeset of length ${i}`);return r}touchesRange(t,e=t){for(let n=0,i=0;n=0&&i<=e&&o>=t)return!(ie)||"cover";i=o}return!1}toString(){let t="";for(let e=0;e=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(t=>"number"!=typeof t))throw RangeError("Invalid JSON representation of ChangeDesc");return new A(t)}static create(t){return new A(t)}}class Q extends A{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw RangeError("Applying change set to a document with the wrong length");return D(this,(e,n,i,r,s)=>t=t.replace(i,i+(n-e),s),!1),t}mapDesc(t,e=!1){return R(this,t,e,!0)}invert(t){let e=this.sections.slice(),n=[];for(let i=0,s=0;i=0){e[i]=l,e[i+1]=o;let a=i>>1;for(;n.length0&&I(n,e,r.text),r.forward(a),o+=a}let c=t[s++];for(;o>1].toJSON()))}return t}static of(t,e,n){let i=[],s=[],o=0,l=null;function a(t=!1){if(!t&&!i.length)return;of||u<0||f>e)throw RangeError(`Invalid change range ${u} to ${f} (in doc of length ${e})`);let p=d?"string"==typeof d?r.of(d.split(n||w)):d:r.empty,m=p.length;if(u==f&&0==m)return;uo&&T(i,u-o,-1),T(i,f-u,m),I(s,i,p),o=f}}(t),a(!l),l}static empty(t){return new Q(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw RangeError("Invalid JSON representation of ChangeSet");let e=[],n=[];for(let i=0;ie&&"string"!=typeof t))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==s.length)e.push(s[0],0);else{for(;n.length=0&&n<=0&&n==t[r+1]?t[r]+=e:0==e&&0==t[r]?t[r+1]+=n:i?(t[r]+=e,t[r+1]+=n):t.push(e,n)}function I(t,e,n){if(0==n.length)return;let i=e.length-2>>1;if(i>1])),!n&&l!=t.sections.length&&!(t.sections[l+1]<0);)a=t.sections[l++],h=t.sections[l++];e(s,c,o,u,f),s=c,o=u}}}function R(t,e,n,i=!1){let r=[],s=i?[]:null,o=new $(t),l=new $(e);for(let a=-1;;)if(-1==o.ins&&-1==l.ins){let h=Math.min(o.len,l.len);T(r,h,-1),o.forward(h),l.forward(h)}else if(l.ins>=0&&(o.ins<0||a==o.i||0==o.off&&(l.len=0&&a=0){let f=0,d=o.len;for(;d;)if(-1==l.ins){let p=Math.min(d,l.len);f+=p,d-=p,l.forward(p)}else if(0==l.ins&&l.lena||o.ins>=0&&o.len>a)&&(l||i.length>h),s.forward2(a),o.forward(a)}}else T(i,0,o.ins,l),r&&I(r,i,o.text),o.next()}}class ${constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return e>=t.length?r.empty:t[e]}textBit(t){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length&&!t?r.empty:e[n].slice(this.off,null==t?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class N{constructor(t,e,n){this.from=t,this.to=e,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let t=3&this.flags;return 3==t?null:t}get goalColumn(){let t=this.flags>>5;return 33554431==t?void 0:t}map(t,e=-1){let n,i;return this.empty?n=i=t.mapPos(this.from,e):(n=t.mapPos(this.from,1),i=t.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new N(n,i,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return E.range(t,e);let n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return E.range(this.anchor,n)}eq(t){return this.anchor==t.anchor&&this.head==t.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw RangeError("Invalid JSON representation for SelectionRange");return E.range(t.anchor,t.head)}static create(t,e,n){return new N(t,e,n)}}class E{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:E.create(this.ranges.map(n=>n.map(t,e)),this.mainIndex)}eq(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let e=0;et.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||"number"!=typeof t.main||t.main>=t.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new E(t.ranges.map(t=>N.fromJSON(t)),t.main)}static single(t,e=t){return new E([E.range(t,e)],0)}static create(t,e=0){if(0==t.length)throw RangeError("A selection needs at least one range");for(let n=0,i=0;it?4:0))}static normalized(t,e=0){let n=t[e];t.sort((t,e)=>t.from-e.from),e=t.indexOf(n);for(let i=1;ir.head?E.range(l,o):E.range(o,l))}}return new E(t,e)}}function z(t,e){for(let n of t.ranges)if(n.to>e)throw RangeError("Selection points outside of document")}let B=0;class W{constructor(t,e,n,i,r){this.combine=t,this.compareInput=e,this.compare=n,this.isStatic=i,this.id=B++,this.default=t([]),this.extensions="function"==typeof r?r(this):r}static define(t={}){return new W(t.combine||(t=>t),t.compareInput||((t,e)=>t===e),t.compare||(t.combine?(t,e)=>t===e:J),!!t.static,t.enables)}of(t){return new L([],this,0,t)}compute(t,e){if(this.isStatic)throw Error("Can't compute a static facet");return new L(t,this,1,e)}computeN(t,e){if(this.isStatic)throw Error("Can't compute a static facet");return new L(t,this,2,e)}from(t,e){return e||(e=t=>t),this.compute([t],n=>e(n.field(t)))}}function J(t,e){return t==e||t.length==e.length&&t.every((t,n)=>t===e[n])}class L{constructor(t,e,n,i){this.dependencies=t,this.facet=e,this.type=n,this.value=i,this.id=B++}dynamicSlot(t){var e;let n=this.value,i=this.facet.compareInput,r=this.id,s=t[r]>>1,o=2==this.type,l=!1,a=!1,h=[];for(let c of this.dependencies)"doc"==c?l=!0:"selection"==c?a=!0:((null!==(e=t[c.id])&&void 0!==e?e:1)&1)==0&&h.push(t[c.id]);return{create:t=>(t.values[s]=n(t),1),update(t,e){if(l&&e.docChanged||a&&(e.docChanged||e.selection)||F(t,h)){let r=n(t);if(o?!j(r,t.values[s],i):!i(r,t.values[s]))return t.values[s]=r,1}return 0},reconfigure:(t,e)=>{let l,a=e.config.address[r];if(null!=a){let h=tt(e,a);if(this.dependencies.every(n=>n instanceof W?e.facet(n)===t.facet(n):!(n instanceof U)||e.field(n,!1)==t.field(n,!1))||(o?j(l=n(t),h,i):i(l=n(t),h)))return t.values[s]=h,0}else l=n(t);return t.values[s]=l,1}}}}function j(t,e,n){if(t.length!=e.length)return!1;for(let i=0;it===e),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(_).find(t=>t.field==this);return((null==e?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:t=>(t.values[e]=this.create(t),1),update:(t,n)=>{let i=t.values[e],r=this.updateF(i,n);return this.compareF(i,r)?0:(t.values[e]=r,1)},reconfigure:(t,n)=>null!=n.config.address[this.id]?(t.values[e]=n.field(this),0):(t.values[e]=this.create(t),1)}}init(t){return[this,_.of({field:this,create:t})]}get extension(){return this}}let X={lowest:4,low:3,default:2,high:1,highest:0};function q(t){return e=>new G(e,t)}let V={highest:q(X.highest),high:q(X.high),default:q(X.default),low:q(X.low),lowest:q(X.lowest)};class G{constructor(t,e){this.inner=t,this.prec=e}}class Z{of(t){return new Y(this,t)}reconfigure(t){return Z.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class Y{constructor(t,e){this.compartment=t,this.inner=e}}class K{constructor(t,e,n,i,r,s){for(this.base=t,this.compartments=e,this.dynamicSlots=n,this.address=i,this.staticValues=r,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,e,n){let i,r,s=[],o=Object.create(null),l=new Map;for(let a of(i=[[],[],[],[],[]],r=new Map,!function t(n,s){let o=r.get(n);if(null!=o){if(o<=s)return;let a=i[o].indexOf(n);a>-1&&i[o].splice(a,1),n instanceof Y&&l.delete(n.compartment)}if(r.set(n,s),Array.isArray(n))for(let h of n)t(h,s);else if(n instanceof Y){if(l.has(n.compartment))throw RangeError("Duplicate use of compartment in extensions");let c=e.get(n.compartment)||n.inner;l.set(n.compartment,c),t(c,s)}else if(n instanceof G)t(n.inner,n.prec);else if(n instanceof U)i[s].push(n),n.provides&&t(n.provides,s);else if(n instanceof L)i[s].push(n),n.facet.extensions&&t(n.facet.extensions,X.default);else{let u=n.extension;if(!u)throw Error(`Unrecognized extension value in extension set (${n}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);t(u,s)}}(t,X.default),i.reduce((t,e)=>t.concat(e))))a instanceof U?s.push(a):(o[a.facet.id]||(o[a.facet.id]=[])).push(a);let h=Object.create(null),c=[],u=[];for(let f of s)h[f.id]=u.length<<1,u.push(t=>f.slot(t));let d=null==n?void 0:n.config.facets;for(let p in o){let m=o[p],g=m[0].facet,k=d&&d[p]||[];if(m.every(t=>0==t.type)){if(h[g.id]=c.length<<1|1,J(k,m))c.push(n.facet(g));else{let y=g.combine(m.map(t=>t.value));c.push(n&&g.compare(y,n.facet(g))?n.facet(g):y)}}else{for(let v of m)0==v.type?(h[v.id]=c.length<<1|1,c.push(v.value)):(h[v.id]=u.length<<1,u.push(t=>v.dynamicSlot(t)));h[g.id]=u.length<<1,u.push(t=>(function(t,e,n){let i=n.map(e=>t[e.id]),r=n.map(t=>t.type),s=i.filter(t=>!(1&t)),o=t[e.id]>>1;function l(t){let n=[];for(let s=0;st(h));return new K(t,l,b,h,c,o)}}function H(t,e){if(1&e)return 2;let n=e>>1,i=t.status[n];if(4==i)throw Error("Cyclic dependency between fields and/or facets");if(2&i)return i;t.status[n]=4;let r=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|r}function tt(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}let te=W.define(),tn=W.define({combine:t=>t.some(t=>t),static:!0}),ti=W.define({combine:t=>t.length?t[0]:void 0,static:!0}),tr=W.define(),ts=W.define(),to=W.define(),tl=W.define({combine:t=>!!t.length&&t[0]});class ta{constructor(t,e){this.type=t,this.value=e}static define(){return new th}}class th{of(t){return new ta(this,t)}}class tc{constructor(t){this.map=t}of(t){return new tu(this,t)}}class tu{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return void 0===e?void 0:e==this.value?this:new tu(this.type,e)}is(t){return this.type==t}static define(t={}){return new tc(t.map||(t=>t))}static mapEffects(t,e){if(!t.length)return t;let n=[];for(let i of t){let r=i.map(e);r&&n.push(r)}return n}}tu.reconfigure=tu.define(),tu.appendConfig=tu.define();class tf{constructor(t,e,n,i,r,s){this.startState=t,this.changes=e,this.selection=n,this.effects=i,this.annotations=r,this.scrollIntoView=s,this._doc=null,this._state=null,n&&z(n,e.newLength),r.some(t=>t.type==tf.time)||(this.annotations=r.concat(tf.time.of(Date.now())))}static create(t,e,n,i,r,s){return new tf(t,e,n,i,r,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(tf.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&"."==e[t.length]))}}function td(t,e,n){var i;let r,s,o;return n?(r=e.changes,s=Q.empty(e.changes.length),o=t.changes.compose(e.changes)):(r=e.changes.map(t.changes),s=t.changes.mapDesc(e.changes,!0),o=t.changes.compose(r)),{changes:o,selection:e.selection?e.selection.map(s):null===(i=t.selection)||void 0===i?void 0:i.map(r),effects:tu.mapEffects(t.effects,r).concat(tu.mapEffects(e.effects,s)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function tp(t,e,n){let i=e.selection,r=tg(e.annotations);return e.userEvent&&(r=r.concat(tf.userEvent.of(e.userEvent))),{changes:e.changes instanceof Q?e.changes:Q.of(e.changes||[],n,t.facet(ti)),selection:i&&(i instanceof E?i:E.single(i.anchor,i.head)),effects:tg(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}tf.time=ta.define(),tf.userEvent=ta.define(),tf.addToHistory=ta.define(),tf.remote=ta.define();let tm=[];function tg(t){return null==t?tm:Array.isArray(t)?t:[t]}var tk=((P=tk||(tk={}))[P.Word=0]="Word",P[P.Space=1]="Space",P[P.Other=2]="Other",P);let ty=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{i=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(tv){}class tb{constructor(t,e,n,i,r,s){this.config=t,this.doc=e,this.selection=n,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=r,s&&(s._state=this);for(let o=0;o=0;r--){let s=n[r](t);s&&Object.keys(s).length&&(i=td(i,tp(e,s,t.changes.newLength),!0))}return i==t?t:tf.create(e,t.changes,t.selection,i.effects,i.annotations,i.scrollIntoView)}(i?function(e){let n=e.startState,i=!0;for(let r of n.facet(tr)){let s=r(e);if(!1===s){i=!1;break}Array.isArray(s)&&(i=!0===i?s:function(t,e){let n=[];for(let i=0,r=0;;){let s,o;if(i=t[i]))s=t[i++],o=t[i++];else{if(!(r=0;c--){let u=h[c](e);e=u instanceof tf?u:Array.isArray(u)&&1==u.length&&u[0]instanceof tf?u[0]:t(n,tg(u),!1)}return e}(l):l)}(this,t,!0)}applyTransaction(t){let e,n=this.config,{base:i,compartments:r}=n;for(let s of t.effects)s.is(Z.reconfigure)?(n&&(r=new Map,n.compartments.forEach((t,e)=>r.set(e,t)),n=null),r.set(s.value.compartment,s.value.extension)):s.is(tu.reconfigure)?(n=null,i=s.value):s.is(tu.appendConfig)&&(n=null,i=tg(i).concat(s.value));n?e=t.startState.values.slice():(n=K.resolve(i,r,this),e=new tb(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(t,e)=>e.reconfigure(t,this),null).values),new tb(n,t.newDoc,t.newSelection,e,(e,n)=>n.update(e,t),t)}replaceSelection(t){return"string"==typeof t&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:E.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,n=t(e.ranges[0]),i=this.changes(n.changes),r=[n.range],s=tg(n.effects);for(let o=1;os.spec.fromJSON(o,t)))}}return tb.create({doc:t.doc,selection:E.fromJSON(t.selection),extensions:e.extensions?i.concat([e.extensions]):i})}static create(t={}){let e=K.resolve(t.extensions||[],new Map),n=t.doc instanceof r?t.doc:r.of((t.doc||"").split(e.staticFacet(tb.lineSeparator)||w)),i=t.selection?t.selection instanceof E?t.selection:E.single(t.selection.anchor,t.selection.head):E.single(0);return z(i,n.length),e.staticFacet(tn)||(i=i.asSingle()),new tb(e,n,i,e.dynamicSlots.map(()=>null),(t,e)=>e.create(t),null)}get tabSize(){return this.facet(tb.tabSize)}get lineBreak(){return this.facet(tb.lineSeparator)||"\n"}get readOnly(){return this.facet(tl)}phrase(t,...e){for(let n of this.facet(tb.phrases))if(Object.prototype.hasOwnProperty.call(n,t)){t=n[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,(t,n)=>{if("$"==n)return"$";let i=+(n||1);return!i||i>e.length?t:e[i-1]})),t}languageDataAt(t,e,n=-1){let i=[];for(let r of this.facet(te))for(let s of r(this,e,n))Object.prototype.hasOwnProperty.call(s,t)&&i.push(s[t]);return i}charCategorizer(t){var e;return e=this.languageDataAt("wordChars",t).join(""),t=>{if(!/\S/.test(t))return tk.Space;if(function(t){if(i)return i.test(t);for(let e=0;e"\x80"&&(n.toUpperCase()!=n.toLowerCase()||ty.test(n)))return!0}return!1}(t))return tk.Word;for(let n=0;n-1)return tk.Word;return tk.Other}}wordAt(t){let{text:e,from:n,length:i}=this.doc.lineAt(t),r=this.charCategorizer(t),s=t-n,o=t-n;for(;s>0;){let l=m(e,s,!1);if(r(e.slice(l,s))!=tk.Word)break;s=l}for(;ot.length?t[0]:4}),tb.lineSeparator=ti,tb.readOnly=tl,tb.phrases=W.define({compare(t,e){let n=Object.keys(t),i=Object.keys(e);return n.length==i.length&&n.every(n=>t[n]==e[n])}}),tb.languageData=te,tb.changeFilter=tr,tb.transactionFilter=ts,tb.transactionExtender=to,Z.reconfigure=tu.define();class tx{eq(t){return this==t}range(t,e=t){return tw.create(t,e,this)}}tx.prototype.startSide=tx.prototype.endSide=0,tx.prototype.point=!1,tx.prototype.mapMode=C.TrackDel;class tw{constructor(t,e,n){this.from=t,this.to=e,this.value=n}static create(t,e,n){return new tw(t,e,n)}}function tS(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class tP{constructor(t,e,n,i){this.from=t,this.to=e,this.value=n,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(t,e,n,i=0){let r=n?this.to:this.from;for(let s=i,o=r.length;;){if(s==o)return s;let l=s+o>>1,a=r[l]-t||(n?this.value[l].endSide:this.value[l].startSide)-e;if(l==s)return a>=0?s:o;a>=0?o=l:s=l+1}}between(t,e,n,i){for(let r=this.findIndex(e,-1e9,!0),s=this.findIndex(n,1e9,!1,r);r(f=e.mapPos(c,a.endSide))||u==f&&a.startSide>0&&a.endSide<=0)continue;0>(f-u||a.endSide-a.startSide)||(s<0&&(s=u),a.point&&(o=Math.max(o,f-u)),n.push(a),i.push(u-s),r.push(f-s))}return{mapped:n.length?new tP(i,r,n,o):null,pos:s}}}class tC{constructor(t,e,n,i){this.chunkPos=t,this.chunk=e,this.nextLayer=n,this.maxPoint=i}static create(t,e,n,i){return new tC(t,e,n,i)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:n=!1,filterFrom:i=0,filterTo:r=this.length}=t,s=t.filter;if(0==e.length&&!s)return this;if(n&&(e=e.slice().sort(tS)),this.isEmpty)return e.length?tC.of(e):this;let o=new tT(this,null,-1).goto(0),l=0,a=[],h=new tA;for(;o.value||l=0){let c=e[l++];h.addInner(c.from,c.to,c.value)||a.push(c)}else 1==o.rangeIndex&&o.chunkIndexthis.chunkEnd(o.chunkIndex)||ro.to||r=r&&t<=r+s.length&&!1===s.between(r,t-r,e-r,n))return}this.nextLayer.between(t,e,n)}}iter(t=0){return tI.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return tI.from(t).goto(e)}static compare(t,e,n,i,r=-1){let s=t.filter(t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=r),o=e.filter(t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=r),l=tQ(s,o,n),a=new tR(s,l,r),h=new tR(o,l,r);n.iterGaps((t,e,n)=>tM(a,t,h,e,n,i)),n.empty&&0==n.length&&tM(a,0,h,0,0,i)}static eq(t,e,n=0,i){null==i&&(i=999999999);let r=t.filter(t=>!t.isEmpty&&0>e.indexOf(t)),s=e.filter(e=>!e.isEmpty&&0>t.indexOf(e));if(r.length!=s.length)return!1;if(!r.length)return!0;let o=tQ(r,s),l=new tR(r,o,0).goto(n),a=new tR(s,o,0).goto(n);for(;;){if(l.to!=a.to||!t$(l.active,a.active)||l.point&&(!a.point||!l.point.eq(a.point)))return!1;if(l.to>i)return!0;l.next(),a.next()}}static spans(t,e,n,i,r=-1){let s=new tR(t,null,r).goto(e),o=e,l=s.openStart;for(;;){let a=Math.min(s.to,n);if(s.point){let h=s.activeForPoint(s.to),c=s.pointFromo&&(i.span(o,a,s.active,l),l=s.openEnd(a));if(s.to>n)return l+(s.point&&s.to>n?1:0);o=s.to,s.next()}}static of(t,e=!1){let n=new tA;for(let i of t instanceof tw?[t]:e?function(t){if(t.length>1)for(let e=t[0],n=1;n0)return t.slice().sort(tS);e=i}return t}(t):t)n.add(i.from,i.to,i.value);return n.finish()}}tC.empty=new tC([],[],null,-1),tC.empty.nextLayer=tC.empty;class tA{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(t){this.chunks.push(new tP(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}add(t,e,n){this.addInner(t,e,n)||(this.nextLayer||(this.nextLayer=new tA)).add(t,e,n)}addInner(t,e,n){let i=t-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&0>(t-this.lastFrom||n.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(i<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=n,this.lastFrom=t,this.lastTo=e,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}addChunk(t,e){if(0>(t-this.lastTo||e.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let n=e.value.length-1;return this.last=e.value[n],this.lastFrom=e.from[n]+t,this.lastTo=e.to[n]+t,!0}finish(){return this.finishInner(tC.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return t;let e=tC.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function tQ(t,e,n){let i=new Map;for(let r of t)for(let s=0;s(this.to-t||this.endSide-e)&&this.gotoInner(t,e,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let t=this.layer.chunkPos[this.chunkIndex],e=this.layer.chunk[this.chunkIndex],n=t+e.from[this.rangeIndex];if(this.from=n,this.to=t+e.to[this.rangeIndex],this.value=e.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&i.push(new tT(s,e,n,r));return 1==i.length?i[0]:new tI(i)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let n of this.heap)n.goto(t,e);for(let i=this.heap.length>>1;i>=0;i--)tD(this.heap,i);return this.next(),this}forward(t,e){for(let n of this.heap)n.forward(t,e);for(let i=this.heap.length>>1;i>=0;i--)tD(this.heap,i);0>(this.to-t||this.value.endSide-e)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),tD(this.heap,0)}}}function tD(t,e){for(let n=t[e];;){let i=(e<<1)+1;if(i>=t.length)break;let r=t[i];if(i+1=0&&(r=t[i+1],i++),0>n.compare(r))break;t[i]=n,t[e]=r,e=i}}class tR{constructor(t,e,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=tI.from(t,e,n)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e);)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){tN(this.active,t),tN(this.activeTo,t),tN(this.activeRank,t),this.minActive=tz(this.active,this.activeTo)}addActive(t){let e=0,{value:n,to:i,rank:r}=this.cursor;for(;e-1&&0>(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)){if(this.activeTo[i]>t){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&tN(n,i)}else if(this.cursor.value){if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let r=this.cursor.value;if(r.point){if(e&&this.cursor.to==this.to&&this.cursor.from=0&&n[s]=0&&!(this.activeRank[n]t||this.activeTo[n]==t&&this.active[n].endSide>=this.point.endSide)&&e.push(this.active[n]);return e.reverse()}openEnd(t){let e=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>t;n--)e++;return e}}function tM(t,e,n,i,r,s){t.goto(e),n.goto(i);let o=i+r,l=i,a=i-e;for(;;){let h=t.to+a-n.to||t.endSide-n.endSide,c=h<0?t.to+a:n.to,u=Math.min(c,o);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&t$(t.activeForPoint(t.to+a),n.activeForPoint(n.to))||s.comparePoint(l,u,t.point,n.point):u>l&&!t$(t.active,n.active)&&s.compareRange(l,u,t.active,n.active),c>o)break;l=c,h<=0&&t.next(),h>=0&&n.next()}}function t$(t,e){if(t.length!=e.length)return!1;for(let n=0;n=e;i--)t[i+1]=t[i];t[e]=n}function tz(t,e){let n=-1,i=1e9;for(let r=0;r(e[r]-i||t[r].endSide-t[n].endSide)&&(n=r,i=e[r]);return n}function tB(t,e,n=t.length){let i=0;for(let r=0;r=e)return r;if(r==t.length)break;s+=9==t.charCodeAt(r)?n-s%n:1,r=m(t,r)}return!0===i?-1:t.length}},41113:function(t,e,n){var i,r;n.d(e,{FE:function(){return N},Jq:function(){return u},L3:function(){return s},Lj:function(){return f},_b:function(){return M},hr:function(){return D},i9:function(){return R},md:function(){return a},mp:function(){return m},vj:function(){return i}});let s=1024,o=0;class l{constructor(t,e){this.from=t,this.to=e}}class a{constructor(t={}){this.id=o++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=u.match(t)),e=>{let n=t(e);return void 0===n?null:[this,n]}}}a.closedBy=new a({deserialize:t=>t.split(" ")}),a.openedBy=new a({deserialize:t=>t.split(" ")}),a.group=new a({deserialize:t=>t.split(" ")}),a.contextHash=new a({perNode:!0}),a.lookAhead=new a({perNode:!0}),a.mounted=new a({perNode:!0});class h{constructor(t,e,n){this.tree=t,this.overlay=e,this.parser=n}}let c=Object.create(null);class u{constructor(t,e,n,i=0){this.name=t,this.props=e,this.id=n,this.flags=i}static define(t){let e=t.props&&t.props.length?Object.create(null):c,n=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(null==t.name?8:0),i=new u(t.name||"",e,t.id,n);if(t.props){for(let r of t.props)if(Array.isArray(r)||(r=r(i)),r){if(r[0].perNode)throw RangeError("Can't store a per-node prop on a node type");e[r[0].id]=r[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(t){if("string"==typeof t){if(this.name==t)return!0;let e=this.prop(a.group);return!!e&&e.indexOf(t)>-1}return this.id==t}static match(t){let e=Object.create(null);for(let n in t)for(let i of n.split(" "))e[i]=t[n];return t=>{for(let n=t.prop(a.group),i=-1;i<(n?n.length:0);i++){let r=e[i<0?t.name:n[i]];if(r)return r}}}}u.none=new u("",Object.create(null),0,8);class f{constructor(t){this.types=t;for(let e=0;e=r&&(o.type.isAnonymous||!1!==e(o))){if(o.firstChild())continue;l=!0}for(;l&&n&&!o.type.isAnonymous&&n(o),!o.nextSibling();){if(!o.parent())return;l=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:I(u.none,this.children,this.positions,0,this.children.length,0,this.length,(t,e,n)=>new m(this.type,t,e,n,this.propValues),t.makeTree||((t,e,n)=>new m(u.none,t,e,n)))}static build(t){return function(t){var e;let{buffer:n,nodeSet:i,maxBufferLength:r=s,reused:o=[],minRepeatType:l=i.types.length}=t,h=Array.isArray(n)?new g(n,n.length):n,c=i.types,u=0,f=0;function d(t,e,n,r,s,o,l,a){let h=[],c=[];for(;t.length>r;)h.push(t.pop()),c.push(e.pop()+n-s);t.push(p(i.types[l],h,c,o-s,a-o)),e.push(s-n)}function p(t,e,n,i,r=0,s){if(u){let o=[a.contextHash,u];s=s?[o].concat(s):[o]}if(r>25){let l=[a.lookAhead,r];s=s?[l].concat(s):[l]}return new m(t,e,n,i,s)}let y=[],v=[];for(;h.pos>0;)!function t(e,n,s,g,y){let{id:v,start:b,end:O,size:x}=h,w=f;for(;x<0;){if(h.next(),-1==x){let S=o[v];s.push(S),g.push(b-e);return}if(-3==x){u=v;return}if(-4==x){f=v;return}throw RangeError(`Unrecognized record size: ${x}`)}let P=c[v],C,A,Q=b-e;if(O-b<=r&&(A=function(t,e){let n=h.fork(),i=0,s=0,o=0,a=n.end-r,c={size:0,start:0,skip:0};n:for(let u=n.pos-t;n.pos>u;){let f=n.size;if(n.id==e&&f>=0){c.size=i,c.start=s,c.skip=o,o+=4,i+=4,n.next();continue}let d=n.pos-f;if(f<0||d=l?4:0,m=n.start;for(n.next();n.pos>d;){if(n.size<0){if(-3==n.size)p+=4;else break n}else n.id>=l&&(p+=4);n.next()}s=m,i+=f,o+=p}return(e<0||i==t)&&(c.size=i,c.start=s,c.skip=o),c.size>4?c:void 0}(h.pos-n,y))){let T=new Uint16Array(A.size-A.skip),D=h.pos-A.size,R=T.length;for(;h.pos>D;)R=function t(e,n,i){let{id:r,start:s,end:o,size:a}=h;if(h.next(),a>=0&&r4){let d=h.pos-(a-4);for(;h.pos>d;)i=t(e,n,i)}n[--i]=c,n[--i]=o-e,n[--i]=s-e,n[--i]=r}else -3==a?u=r:-4==a&&(f=r);return i}(A.start,T,R);C=new k(T,O-A.start,i),Q=A.start-e}else{let M=h.pos-x;h.next();let $=[],N=[],E=v>=l?v:-1,z=0,B=O;for(;h.pos>M;)E>=0&&h.id==E&&h.size>=0?(h.end<=B-r&&(d($,N,b,z,h.end,B,E,w),z=$.length,B=h.end),h.next()):t(b,M,$,N,E);if(E>=0&&z>0&&z<$.length&&d($,N,b,z,b,B,E,w),$.reverse(),N.reverse(),E>-1&&z>0){let W=function(t){return(e,n,i)=>{let r=0,s=e.length-1,o,l;if(s>=0&&(o=e[s])instanceof m){if(!s&&o.type==t&&o.length==i)return o;(l=o.prop(a.lookAhead))&&(r=n[s]+o.length+l)}return p(t,e,n,i,r)}}(P);C=I(P,$,N,0,$.length,0,O-b,W,W)}else C=p(P,$,N,O-b,w-O)}s.push(C),g.push(Q)}(t.start||0,t.bufferStart||0,y,v,-1);let b=null!==(e=t.length)&&void 0!==e?e:y.length?v[0]+y[0].length:0;return new m(c[t.topID],y.reverse(),v.reverse(),b)}(t)}}m.empty=new m(u.none,[],[],0);class g{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new g(this.buffer,this.index)}}class k{constructor(t,e,n){this.buffer=t,this.length=e,this.set=n}get type(){return u.none}toString(){let t=[];for(let e=0;e0)));l=s[l+3]);return o}slice(t,e,n){let i=this.buffer,r=new Uint16Array(e-t),s=0;for(let o=t,l=0;o=e&&ne;case 1:return n<=e&&i>e;case 2:return i>e;case 4:return!0}}function v(t,e){let n=t.childBefore(e);for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(t=n,n=i.prevSibling):n=i}return t}function b(t,e,n,r){for(var s;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to0?l.length:-1;t!=c;t+=e){let u=l[t],f=h[t]+o.from;if(y(r,n,f,f+u.length)){if(u instanceof k){if(s&i.ExcludeBuffers)continue;let d=u.findChild(0,u.buffer.length,e,n-f,r);if(d>-1)return new P(new S(o,u,t,f),null,d)}else if(s&i.IncludeAnonymous||!u.type.isAnonymous||A(u)){let p;if(!(s&i.IgnoreMounts)&&u.props&&(p=u.prop(a.mounted))&&!p.overlay)return new O(p.tree,f,t,o);let m=new O(u,f,t,o);return s&i.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(e<0?u.children.length-1:0,e,n,r)}}}if(s&i.IncludeAnonymous||!o.type.isAnonymous||(t=o.index>=0?o.index+e:e<0?-1:o._parent._tree.children.length,!(o=o._parent)))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,e,n=0){let r;if(!(n&i.IgnoreOverlays)&&(r=this._tree.prop(a.mounted))&&r.overlay){let s=t-this.from;for(let{from:o,to:l}of r.overlay)if((e>0?o<=s:o=s:l>s))return new O(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,n)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(t=0){return new C(this,t)}get tree(){return this._tree}toTree(){return this._tree}resolve(t,e=0){return b(this,t,e,!1)}resolveInner(t,e=0){return b(this,t,e,!0)}enterUnfinishedNodesBefore(t){return v(this,t)}getChild(t,e=null,n=null){let i=x(this,t,e,n);return i.length?i[0]:null}getChildren(t,e=null,n=null){return x(this,t,e,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(t){return w(this,t)}}function x(t,e,n,i){let r=t.cursor(),s=[];if(!r.firstChild())return s;if(null!=n){for(;!r.type.is(n);)if(!r.nextSibling())return s}for(;;){if(null!=i&&r.type.is(i))return s;if(r.type.is(e)&&s.push(r.node),!r.nextSibling())return null==i?s:[]}}function w(t,e,n=e.length-1){for(let i=t.parent;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[n]&&e[n]!=i.name)return!1;n--}}return!0}class S{constructor(t,e,n,i){this.parent=t,this.buffer=e,this.index=n,this.start=i}}class P{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,n){this.context=t,this._parent=e,this.index=n,this.type=t.buffer.set.types[t.buffer.buffer[n]]}child(t,e,n){let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],t,e-this.context.start,n);return r<0?null:new P(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,e,n=0){if(n&i.ExcludeBuffers)return null;let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return s<0?null:new P(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new P(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new P(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}cursor(t=0){return new C(this,t)}get tree(){return null}toTree(){let t=[],e=[],{buffer:n}=this.context,i=this.index+4,r=n.buffer[this.index+3];if(r>i){let s=n.buffer[this.index+1];t.push(n.slice(i,r,s)),e.push(0)}return new m(this.type,t,e,this.to-this.from)}resolve(t,e=0){return b(this,t,e,!1)}resolveInner(t,e=0){return b(this,t,e,!0)}enterUnfinishedNodesBefore(t){return v(this,t)}toString(){return this.context.buffer.childString(this.index)}getChild(t,e=null,n=null){let i=x(this,t,e,n);return i.length?i[0]:null}getChildren(t,e=null,n=null){return x(this,t,e,n)}get node(){return this}matchContext(t){return w(this,t)}}class C{get name(){return this.type.name}constructor(t,e=0){if(this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof O)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let n=t._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return!!t&&(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0)}yieldBuf(t,e){this.index=t;let{start:n,buffer:i}=this.buffer;return this.type=e||i.set.types[i.buffer[t]],this.from=n+i.buffer[t+1],this.to=n+i.buffer[t+2],!0}yield(t){return!!t&&(t instanceof O?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,n){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,n,this.mode));let{buffer:i}=this.buffer,r=i.findChild(this.index+4,i.buffer[this.index+3],t,e-this.buffer.start,n);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,n=this.mode){return this.buffer?!(n&i.ExcludeBuffers)&&this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&i.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&i.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode));let{buffer:e}=this.buffer,n=this.stack.length-1;if(t<0){let i=n<0?0:this.stack[n]+4;if(this.index!=i)return this.yieldBuf(e.findChild(i,this.index,-1,0,4))}else{let r=e.buffer[this.index+3];if(r<(n<0?e.buffer.length:e.buffer[this.stack[n]+3]))return this.yieldBuf(r)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,n,{buffer:r}=this;if(r){if(t>0){if(this.index-1)for(let o=e+t,l=t<0?-1:n._tree.children.length;o!=l;o+=t){let a=n._tree.children[o];if(this.mode&i.IncludeAnonymous||a instanceof k||!a.type.isAnonymous||A(a))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to=0;){for(let s=t;s;s=s._parent)if(s.index==i){if(i==this.index)return s;e=s,n=r+1;break n}i=this.stack[--r]}for(let o=n;o=0;r--){if(r<0)return w(this.node,t,i);let s=n[e.buffer[this.stack[r]]];if(!s.isAnonymous){if(t[i]&&t[i]!=s.name)return!1;i--}}return!0}}function A(t){return t.children.some(t=>t instanceof k||!t.type.isAnonymous||A(t))}let Q=new WeakMap;function T(t,e){if(!t.isAnonymous||e instanceof k||e.type!=t)return 1;let n=Q.get(e);if(null==n){for(let i of(n=1,e.children)){if(i.type!=t||!(i instanceof m)){n=1;break}n+=T(t,i)}Q.set(e,n)}return n}function I(t,e,n,i,r,s,o,l,a){let h=0;for(let c=i;c=u)break;m+=g}if(h==c+1){if(m>u){let k=n[c];e(k.children,k.positions,0,k.children.length,i[c]+l);continue}f.push(n[c])}else{let y=i[h-1]+n[h-1].length-p;f.push(I(t,n,i,c,h,p,y,null,a))}d.push(p+l-s)}}(e,n,i,r,0),(l||a)(f,d,o)}class D{constructor(){this.map=new WeakMap}setBuffer(t,e,n){let i=this.map.get(t);i||this.map.set(t,i=new Map),i.set(e,n)}getBuffer(t,e){let n=this.map.get(t);return n&&n.get(e)}set(t,e){t instanceof P?this.setBuffer(t.context.buffer,t.index,e):t instanceof O&&this.map.set(t.tree,e)}get(t){return t instanceof P?this.getBuffer(t.context.buffer,t.index):t instanceof O?this.map.get(t.tree):void 0}cursorSet(t,e){t.buffer?this.setBuffer(t.buffer.buffer,t.index,e):this.map.set(t.tree,e)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class R{constructor(t,e,n,i,r=!1,s=!1){this.from=t,this.to=e,this.tree=n,this.offset=i,this.open=(r?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(t,e=[],n=!1){let i=[new R(0,t.length,t,0,!1,n)];for(let r of e)r.to>t.length&&i.push(r);return i}static applyChanges(t,e,n=128){if(!e.length)return t;let i=[],r=1,s=t.length?t[0]:null;for(let o=0,l=0,a=0;;o++){let h=o=n)for(;s&&s.from=u.from||c<=u.to||a){let f=Math.max(u.from,l)-a,d=Math.min(u.to,c)-a;u=f>=d?null:new R(f,d,u.tree,u.offset+a,o>0,!!h)}if(u&&i.push(u),s.to>c)break;s=rnew l(t.from,t.to)):[new l(0,0)]:[new l(0,t.length)],this.createParse(t,e||[],n)}parse(t,e,n){let i=this.startParse(t,e,n);for(;;){let r=i.advance();if(r)return r}}}class ${constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}function N(t){return(e,n,i,r)=>new W(e,t,n,i,r)}class E{constructor(t,e,n,i,r){this.parser=t,this.parse=e,this.overlay=n,this.target=i,this.ranges=r}}class z{constructor(t,e,n,i,r,s,o){this.parser=t,this.predicate=e,this.mounts=n,this.index=i,this.start=r,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}let B=new a({perNode:!0});class W{constructor(t,e,n,i,r){this.nest=e,this.input=n,this.fragments=i,this.ranges=r,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let t=this.baseParse.advance();if(!t)return null;if(this.baseParse=null,this.baseTree=t,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return null!=this.stoppedAt&&(n=new m(n.type,n.children,n.positions,n.length,n.propValues.concat([[B,this.stoppedAt]]))),n}let i=this.inner[this.innerDone],r=i.parse.advance();if(r){this.innerDone++;let s=Object.assign(Object.create(null),i.target.props);s[a.mounted.id]=new h(r,i.overlay,i.parser),i.target.props=s}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let e=this.innerDone;et.frag.from<=r.from&&t.frag.to>=r.to&&t.mount.overlay);if(c)for(let f of c.mount.overlay){let d=f.from+c.pos,p=f.to+c.pos;d>=r.from&&p<=r.to&&!e.ranges.some(t=>t.fromd)&&e.ranges.push({from:d,to:p})}}a=!1}else if(n&&(o=function(t,e,n){for(let i of t){if(i.from>=n)break;if(i.to>e)return i.from<=e&&i.to>=n?2:1}return 0}(n.ranges,r.from,r.to)))a=2!=o;else if(!r.type.isAnonymous&&r.from=e.to);i++);let o=r.children[i],l=o.buffer;r.children[i]=function t(n,i,r,a,h){let c=n;for(;l[c+2]+s<=e.from;)c=l[c+3];let u=[],f=[];J(o,n,c,u,f,a);let d=l[c+1],p=l[c+2],g=d+s==e.from&&p+s==e.to&&l[c]==e.type.id;return u.push(g?e.toTree():t(c+4,l[c+3],o.set.types[l[c]],d,p-d)),f.push(d-a),J(o,l[c+3],i,u,f,a),new m(r,u,f,h)}(0,l.length,u.none,0,o.length);for(let a=0;a<=n;a++)t.childAfter(e.from)}(r);let g=t.findMounts(r.from,s.parser);if("function"==typeof s.overlay)e=new z(s.parser,s.overlay,g,this.inner.length,r.from,r.tree,e);else{let k=F(this.ranges,s.overlay||[new l(r.from,r.to)]);k.length&&this.inner.push(new E(s.parser,s.parser.startParse(this.input,_(g,k),k),s.overlay?s.overlay.map(t=>new l(t.from-r.from,t.to-r.from)):null,r.tree,k)),s.overlay?k.length&&(n={ranges:k,depth:0,prev:n}):a=!1}}else e&&(h=e.predicate(r))&&(!0===h&&(h=new l(r.from,r.to)),h.fromnew l(t.from-e.start,t.to-e.start)),e.target,y)),e=e.prev}!n||--n.depth||(n=n.prev)}}}}function J(t,e,n,i,r,s){if(e=t&&e.enter(n,1,i.IgnoreOverlays|i.ExcludeBuffers)||e.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let e=this.cursor.tree;;){if(e==t.tree)return!0;if(e.children.length&&0==e.positions[0]&&e.children[0]instanceof m)e=e.children[0];else break}return!1}}class j{constructor(t){var e;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let n=this.curFrag=t[0];this.curTo=null!==(e=n.tree.prop(B))&&void 0!==e?e:n.to,this.inner=new L(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let e=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(t=e.tree.prop(B))&&void 0!==t?t:e.to,this.inner=new L(e.tree,-e.offset)}}findMounts(t,e){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let r=this.inner.cursor.node;r;r=r.parent){let s=null===(n=r.tree)||void 0===n?void 0:n.prop(a.mounted);if(s&&s.parser==e)for(let o=this.fragI;o=r.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:r.from-l.offset,mount:s})}}}return i}}function F(t,e){let n=null,i=e;for(let r=1,s=0;r=a)break;!(h.to<=o)&&(n||(i=n=e.slice()),h.froma&&n.splice(s+1,0,new l(a,h.to))):h.to>a?n[s--]=new l(a,h.to):n.splice(s--,1))}}return i}function _(t,e){let n=[];for(let{pos:i,mount:r,frag:s}of t){let o=i+(r.overlay?r.overlay[0].from:0),a=o+r.tree.length,h=Math.max(s.from,o),c=Math.min(s.to,a);if(r.overlay){let u=function(t,e,n,i){let r=0,s=0,o=!1,a=!1,h=-1e9,c=[];for(;;){let u=r==t.length?1e9:o?t[r].to:t[r].from,f=s==e.length?1e9:a?e[s].to:e[s].from;if(o!=a){let d=Math.max(h,n),p=Math.min(u,f,i);dnew l(t.from+i,t.to+i)),h,c);for(let f=0,d=h;;f++){let p=f==u.length,m=p?c:u[f].from;if(m>d&&n.push(new R(d,m,r.tree,-o,s.from>=d||s.openStart,s.to<=m||s.openEnd)),p)break;d=u[f].to}}else n.push(new R(h,c,r.tree,-o,s.from>=o||s.openStart,s.to<=a||s.openEnd))}return n}},35524:function(t,e,n){n.d(e,{Gv:function(){return a},QR:function(){return u},Vp:function(){return s},bW:function(){return f},pJ:function(){return T}});var i=n(41113);let r=0;class s{constructor(t,e,n){this.set=t,this.base=e,this.modified=n,this.id=r++}static define(t){if(null==t?void 0:t.base)throw Error("Can not derive from a modified tag");let e=new s([],null,[]);if(e.set.push(e),t)for(let n of t.set)e.set.push(n);return e}static defineModifier(){let t=new l;return e=>e.modified.indexOf(t)>-1?e:l.get(e.base||e,e.modified.concat(t).sort((t,e)=>t.id-e.id))}}let o=0;class l{constructor(){this.instances=[],this.id=o++}static get(t,e){if(!e.length)return t;let n=e[0].instances.find(n=>{var i;return n.base==t&&(i=n.modified,e.length==i.length&&e.every((t,e)=>t==i[e]))});if(n)return n;let i=[],r=new s(i,t,e);for(let o of e)o.instances.push(r);let a=function(t){let e=[[]];for(let n=0;ne.length-t.length)}(e);for(let h of t.set)if(!h.modified.length)for(let c of a)i.push(l.get(h,c));return r}}function a(t){let e=Object.create(null);for(let n in t){let i=t[n];for(let r of(Array.isArray(i)||(i=[i]),n.split(" ")))if(r){let s=[],o=2,l=r;for(let a=0;;){if("..."==l&&a>0&&a+3==r.length){o=1;break}let u=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!u)throw RangeError("Invalid path: "+r);if(s.push("*"==u[0]?"":'"'==u[0][0]?JSON.parse(u[0]):u[0]),(a+=u[0].length)==r.length)break;let f=r[a++];if(a==r.length&&"!"==f){o=0;break}if("/"!=f)throw RangeError("Invalid path: "+r);l=r.slice(a)}let d=s.length-1,p=s[d];if(!p)throw RangeError("Invalid path: "+r);let m=new c(i,o,d>0?s.slice(0,d):null);e[p]=m.sort(e[p])}}return h.add(e)}let h=new i.md;class c{constructor(t,e,n,i){this.tags=t,this.mode=e,this.context=n,this.next=i}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(t){return!t||t.depth{let e=o;for(let i of t)for(let r of i.set){let s=n[r.id];if(s){e=e?e+" "+s:s;break}}return e},scope:s}}function f(t,e,n,i=0,r=t.length){let s=new d(i,Array.isArray(e)?e:[e],n);s.highlightRange(t.cursor(),i,r,"",s.highlighters),s.flush(r)}c.empty=new c([],2,null);class d{constructor(t,e,n){this.at=t,this.highlighters=e,this.span=n,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,n,r,s){let{type:o,from:l,to:a}=t;if(l>=n||a<=e)return;o.isTop&&(s=this.highlighters.filter(t=>!t.scope||t.scope(o)));let u=r,f=function(t){let e=t.type.prop(h);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}(t)||c.empty,d=function(t,e){let n=null;for(let i of t){let r=i.style(e);r&&(n=n?n+" "+r:r)}return n}(s,f.tags);if(d&&(u&&(u+=" "),u+=d,1==f.mode&&(r+=(r?" ":"")+d)),this.startSpan(t.from,u),f.opaque)return;let p=t.tree&&t.tree.prop(i.md.mounted);if(p&&p.overlay){let m=t.node.enter(p.overlay[0].from+l,1),g=this.highlighters.filter(t=>!t.scope||t.scope(p.tree.type)),k=t.firstChild();for(let y=0,v=l;;y++){let b=y=O)&&t.nextSibling()););if(!b||O>n)break;(v=b.to+l)>e&&(this.highlightRange(m.cursor(),Math.max(e,b.from+l),Math.min(n,v),r,g),this.startSpan(v,u))}k&&t.parent()}else if(t.firstChild()){do{if(t.to<=e)continue;if(t.from>=n)break;this.highlightRange(t,e,n,r,s),this.startSpan(Math.min(n,t.to),u)}while(t.nextSibling());t.parent()}}}let p=s.define,m=p(),g=p(),k=p(g),y=p(g),v=p(),b=p(v),O=p(v),x=p(),w=p(x),S=p(),P=p(),C=p(),A=p(C),Q=p(),T={comment:m,lineComment:p(m),blockComment:p(m),docComment:p(m),name:g,variableName:p(g),typeName:k,tagName:p(k),propertyName:y,attributeName:p(y),className:p(g),labelName:p(g),namespace:p(g),macroName:p(g),literal:v,string:b,docString:p(b),character:p(b),attributeValue:p(b),number:O,integer:p(O),float:p(O),bool:p(v),regexp:p(v),escape:p(v),color:p(v),url:p(v),keyword:S,self:p(S),null:p(S),atom:p(S),unit:p(S),modifier:p(S),operatorKeyword:p(S),controlKeyword:p(S),definitionKeyword:p(S),moduleKeyword:p(S),operator:P,derefOperator:p(P),arithmeticOperator:p(P),logicOperator:p(P),bitwiseOperator:p(P),compareOperator:p(P),updateOperator:p(P),definitionOperator:p(P),typeOperator:p(P),controlOperator:p(P),punctuation:C,separator:p(C),bracket:A,angleBracket:p(A),squareBracket:p(A),paren:p(A),brace:p(A),content:x,heading:w,heading1:p(w),heading2:p(w),heading3:p(w),heading4:p(w),heading5:p(w),heading6:p(w),contentSeparator:p(x),list:p(x),quote:p(x),emphasis:p(x),strong:p(x),link:p(x),monospace:p(x),strikethrough:p(x),inserted:p(),deleted:p(),changed:p(),invalid:p(),meta:Q,documentMeta:p(Q),annotation:p(Q),processingInstruction:p(Q),definition:s.defineModifier(),constant:s.defineModifier(),function:s.defineModifier(),standard:s.defineModifier(),local:s.defineModifier(),special:s.defineModifier()};u([{tag:T.link,class:"tok-link"},{tag:T.heading,class:"tok-heading"},{tag:T.emphasis,class:"tok-emphasis"},{tag:T.strong,class:"tok-strong"},{tag:T.keyword,class:"tok-keyword"},{tag:T.atom,class:"tok-atom"},{tag:T.bool,class:"tok-bool"},{tag:T.url,class:"tok-url"},{tag:T.labelName,class:"tok-labelName"},{tag:T.inserted,class:"tok-inserted"},{tag:T.deleted,class:"tok-deleted"},{tag:T.literal,class:"tok-literal"},{tag:T.string,class:"tok-string"},{tag:T.number,class:"tok-number"},{tag:[T.regexp,T.escape,T.special(T.string)],class:"tok-string2"},{tag:T.variableName,class:"tok-variableName"},{tag:T.local(T.variableName),class:"tok-variableName tok-local"},{tag:T.definition(T.variableName),class:"tok-variableName tok-definition"},{tag:T.special(T.variableName),class:"tok-variableName2"},{tag:T.definition(T.propertyName),class:"tok-propertyName tok-definition"},{tag:T.typeName,class:"tok-typeName"},{tag:T.namespace,class:"tok-namespace"},{tag:T.className,class:"tok-className"},{tag:T.macroName,class:"tok-macroName"},{tag:T.propertyName,class:"tok-propertyName"},{tag:T.operator,class:"tok-operator"},{tag:T.comment,class:"tok-comment"},{tag:T.meta,class:"tok-meta"},{tag:T.invalid,class:"tok-invalid"},{tag:T.punctuation,class:"tok-punctuation"}])},53105:function(t,e,n){n.d(e,{IK:function(){return I},Jq:function(){return v},WQ:function(){return D}});var i,r,s,o,l,a,h=n(41113),c=n(34155);class u{constructor(t,e,n,i,r,s,o,l,a,h=0,c){this.p=t,this.stack=e,this.state=n,this.reducePos=i,this.pos=r,this.score=s,this.buffer=o,this.bufferBase=l,this.curContext=a,this.lookAhead=h,this.parent=c}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,n=0){let i=t.parser.context;return new u(t,[],e,n,n,0,[],0,i?new f(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){let e=t>>19,n=65535&t,{parser:i}=this.p,r=i.dynamicPrecedence(n);if(r&&(this.score+=r),0==e){this.pushState(i.getGoto(this.state,n,!0),this.reducePos),ns;)this.stack.pop();this.reduceContext(n,o)}storeNode(t,e,n,i=4,r=!1){if(0==t&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==s.buffer[o-4]&&s.buffer[o-1]>-1){if(e==n)return;if(s.buffer[o-2]>=e){s.buffer[o-2]=n;return}}}if(r&&this.pos!=n){let l=this.buffer.length;if(l>0&&0!=this.buffer[l-4])for(;l>0&&this.buffer[l-2]>n;)this.buffer[l]=this.buffer[l-4],this.buffer[l+1]=this.buffer[l-3],this.buffer[l+2]=this.buffer[l-2],this.buffer[l+3]=this.buffer[l-1],l-=4,i>4&&(i-=4);this.buffer[l]=t,this.buffer[l+1]=e,this.buffer[l+2]=n,this.buffer[l+3]=i}else this.buffer.push(t,e,n,i)}shift(t,e,n){let i=this.pos;if(131072&t)this.pushState(65535&t,this.pos);else if((262144&t)==0){let{parser:r}=this.p;(n>this.pos||e<=r.maxNode)&&(this.pos=n,r.stateFlag(t,1)||(this.reducePos=n)),this.pushState(t,i),this.shiftContext(e,i),e<=r.maxNode&&this.buffer.push(e,i,n,4)}else this.pos=n,this.shiftContext(e,i),e<=this.p.parser.maxNode&&this.buffer.push(e,i,n,4)}apply(t,e,n){65536&t?this.reduce(t):this.shift(t,e,n)}useNode(t,e){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=t)&&(this.p.reused.push(t),n++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(e,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let n=t.buffer.slice(e),i=t.bufferBase+e;for(;t&&i==t.bufferBase;)t=t.parent;return new u(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let n=t<=this.p.parser.maxNode;n&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,n?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new d(this);;){let n=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(0==n)return!1;if((65536&n)==0)return!0;e.reduce(n)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let n=[];for(let i=0,r;i1&e&&t==o)||n.push(e[s],o)}e=n}let l=[];for(let a=0;a>19);if(n<0||0>e.getGoto(this.stack[n],65535&t,!1))return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:t}=this.p;return 65535==t.data[t.stateSlot(this.state,1)]&&!t.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class f{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}(i=o||(o={}))[i.Insert=200]="Insert",i[i.Delete=190]="Delete",i[i.Reduce=100]="Reduce",i[i.MaxNext=4]="MaxNext",i[i.MaxInsertStackDepth=300]="MaxInsertStackDepth",i[i.DampenInsertStackDepth=120]="DampenInsertStackDepth";class d{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t>>19;0==e?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(e-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],65535&t,!0);this.state=n}}class p{constructor(t,e,n){this.stack=t,this.pos=e,this.index=n,this.buffer=t.buffer,0==this.index&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new p(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;null!=t&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new p(this.stack,this.pos,this.index)}}class m{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}let g=new m;class k{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=g,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let n=this.range,i=this.rangeIndex,r=this.pos+t;for(;rn.to:r>=n.to;){if(i==this.ranges.length-1)return null;let o=this.ranges[++i];r+=o.from-n.to,n=o}return r}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,n,i;if(e>=0&&e=this.chunk2Pos&&no.to&&(this.chunk2=this.chunk2.slice(0,o.to-n)),i=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),i}acceptToken(t,e=0){let n=e?this.resolveOffset(e,-1):this.pos;if(null==n||n=this.chunk2Pos&&this.posthis.range.to?n.slice(0,this.range.to-this.pos):n,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=g,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let n="";for(let i of this.ranges){if(i.from>=e)break;i.to>t&&(n+=this.input.read(Math.max(i.from,t),Math.min(i.to,e)))}return n}}class y{constructor(t,e){this.data=t,this.id=e}token(t,e){!function(t,e,n,i){let r=0,s=1<0){let c=t[h];if(l.allows(c)&&(-1==e.token.value||e.token.value==c||o.overrides(c,e.token.value))){e.acceptToken(c);break}}let u=e.next,f=0,d=t[r+2];if(e.next<0&&d>f&&65535==t[a+3*d-3]&&65535==t[a+3*d-3]){r=t[a+3*d-1];continue n}for(;f>1,m=a+p+(p<<1),g=t[m],k=t[m+1]||65536;if(u=k)f=p+1;else{r=t[m+2],e.advance();continue n}}break}}(this.data,t,e,this.id)}}y.prototype.contextual=y.prototype.fallback=y.prototype.extend=!1;class v{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function b(t,e=Uint16Array){if("string"!=typeof t)return t;let n=null;for(let i=0,r=0;i=92&&o--,o>=34&&o--;let a=o-32;if(a>=46&&(a-=46,l=!0),s+=a,l)break;s*=46}n?n[r++]=s:n=new e(s)}return n}let O=void 0!==c&&c.env&&/\bparse\b/.test(c.env.LOG),x=null;function w(t,e,n){let i=t.cursor(h.vj.IncludeAnonymous);for(i.moveTo(e);;)if(!(n<0?i.childBefore(e):i.childAfter(e)))for(;;){if((n<0?i.toe)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:t.length}}(r=l||(l={}))[r.Margin=25]="Margin";class S{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?w(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?w(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=s,null;if(r instanceof h.mp){if(s==t){if(s=Math.max(this.safeFrom,t)&&(this.trees.push(r),this.start.push(s),this.index.push(0))}else this.index[e]++,this.nextStart=s+r.length}}}class P{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(t=>new m)}getActions(t){let e=0,n=null,{parser:i}=t.p,{tokenizers:r}=i,s=i.stateSlot(t.state,3),o=t.curContext?t.curContext.hash:0,l=0;for(let a=0;ac.end+25&&(l=Math.max(c.lookAhead,l)),0!=c.value)){let u=e;if(c.extended>-1&&(e=this.addActions(t,c.extended,c.end,e)),e=this.addActions(t,c.value,c.end,e),!h.extend&&(n=c,e>u))break}}for(;this.actions.length>e;)this.actions.pop();return l&&t.setLookAhead(l),n||t.pos!=this.stream.end||((n=new m).value=t.p.parser.eofTerm,n.start=n.end=t.pos,e=this.addActions(t,n.value,n.end,e)),this.mainToken=n,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new m,{pos:n,p:i}=t;return e.start=n,e.end=Math.min(n+1,i.stream.end),e.value=n==i.stream.end?i.parser.eofTerm:0,e}updateCachedToken(t,e,n){let i=this.stream.clipPos(n.pos);if(e.token(this.stream.reset(i,t),n),t.value>-1){let{parser:r}=n.p;for(let s=0;s=0&&n.p.parser.dialect.allows(o>>1)){(1&o)==0?t.value=o>>1:t.extended=o>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,e,n,i){for(let r=0;r4*t.bufferLength?new S(n,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t,e,n=this.stacks,i=this.minStackPos,r=this.stacks=[];for(let s=0;si)r.push(o);else{if(this.advanceStack(o,r,n))continue;t||(t=[],e=[]),t.push(o);let l=this.tokens.getMainToken(o);e.push(l.value,l.end)}break}}if(!r.length){let a=t&&function(t){let e=null;for(let n of t){let i=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=i&&n.pos>i)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.scorethis.stoppedAt?t[0]:this.runRecovery(t,e,r);if(h)return this.stackToTree(h.forceAll())}if(this.recovering){let c=1==this.recovering?1:3*this.recovering;if(r.length>c)for(r.sort((t,e)=>e.score-t.score);r.length>c;)r.pop();r.some(t=>t.reducePos>i)&&this.recovering--}else if(r.length>1)i:for(let u=0;u500&&p.buffer.length>500){if((f.score-p.score||f.buffer.length-p.buffer.length)>0)r.splice(d--,1);else{r.splice(u--,1);continue i}}}}this.minStackPos=r[0].pos;for(let m=1;m ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let o=t.curContext&&t.curContext.tracker.strict,l=o?t.curContext.hash:0;for(let a=this.fragments.nodeAt(i);a;){let c=this.parser.nodeSet.types[a.type.id]==a.type?r.getGoto(t.state,a.type.id):-1;if(c>-1&&a.length&&(!o||(a.prop(h.md.contextHash)||0)==l))return t.useNode(a,c),O&&console.log(s+this.stackID(t)+` (via reuse of ${r.getName(a.type.id)})`),!0;if(!(a instanceof h.mp)||0==a.children.length||a.positions[0]>0)break;let u=a.children[0];if(u instanceof h.mp&&0==a.positions[0])a=u;else break}}let f=r.stateSlot(t.state,4);if(f>0)return t.reduce(f),O&&console.log(s+this.stackID(t)+` (via always-reduce ${r.getName(65535&f)})`),!0;if(t.stack.length>=15e3)for(;t.stack.length>9e3&&t.forceReduce(););let d=this.tokens.getActions(t);for(let p=0;pi?e.push(v):n.push(v)}return!1}advanceFully(t,e){let n=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>n)return A(t,e),!0}}runRecovery(t,e,n){let i=null,r=!1;for(let s=0;s ":"";if(o.deadEnd&&(r||(r=!0,o.restart(),O&&console.log(h+this.stackID(o)+" (restarted)"),this.advanceFully(o,n))))continue;let c=o.split(),u=h;for(let f=0;c.forceReduce()&&f<10&&(O&&console.log(u+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,n));f++)O&&(u=this.stackID(c)+" -> ");for(let d of o.recoverByInsert(l))O&&console.log(h+this.stackID(d)+" (via recover-insert)"),this.advanceFully(d,n);this.stream.end>o.pos?(a==o.pos&&(a++,l=0),o.recoverByDelete(l,a),O&&console.log(h+this.stackID(o)+` (via recover-delete ${this.parser.getName(l)})`),A(o,n)):(!i||i.scoret;class I{constructor(t){this.start=t.start,this.shift=t.shift||T,this.reduce=t.reduce||T,this.reuse=t.reuse||T,this.hash=t.hash||(()=>0),this.strict=!1!==t.strict}}class D extends h._b{constructor(t){if(super(),this.wrappers=[],14!=t.version)throw RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let n=0;nt.topRules[e][1]),r=[];for(let s=0;s=0)o(u,a,l[c++]);else{let f=l[c+-u];for(let d=-u;d>0;d--)o(l[c++],a,f);c++}}}this.nodeSet=new h.Lj(e.map((e,n)=>h.Jq.define({name:n>=this.minRepeatTerm?void 0:e,id:n,props:r[n],top:i.indexOf(n)>-1,error:0==n,skipped:t.skippedNodes&&t.skippedNodes.indexOf(n)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=h.L3;let p=b(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let m=0;m"number"==typeof t?new y(p,t):t),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,n){let i=new C(this,t,e,n);for(let r of this.wrappers)i=r(i,t,e,n);return i}getGoto(t,e,n=!1){let i=this.goto;if(e>=i[0])return -1;for(let r=i[e+1];;){let s=i[r++],o=1&s,l=i[r++];if(o&&n)return l;for(let a=r+(s>>1);r0}validAction(t,e){if(e==this.stateSlot(t,4))return!0;for(let n=this.stateSlot(t,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])return!1;n=R(this.data,n+2)}if(e==R(this.data,n+1))return!0}}nextStates(t){let e=[];for(let n=this.stateSlot(t,1);;n+=3){if(65535==this.data[n]){if(1==this.data[n+1])n=R(this.data,n+2);else break}if((1&this.data[n+2])==0){let i=this.data[n+1];e.some((t,e)=>1&e&&t==i)||e.push(this.data[n],i)}}return e}overrides(t,e){let n=M(this.data,this.tokenPrecTable,e);return n<0||M(this.data,this.tokenPrecTable,t){let n=t.tokenizers.find(t=>t.from==e);return n?n.to:e})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((n,i)=>{let r=t.specializers.find(t=>t.from==n.external);if(!r)return n;let s=Object.assign(Object.assign({},n),{external:r.to});return e.specializers[i]=$(s),s})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),null!=t.strict&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),null!=t.bufferLength&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return null==e?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),n=e.map(()=>!1);if(t)for(let i of t.split(" ")){let r=e.indexOf(i);r>=0&&(n[r]=!0)}let s=null;for(let o=0;ot.external(n,i)<<1|e}return t.get}},28699:function(t,e,n){n.d(e,{V:function(){return o}});let i="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),r="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class o{constructor(t,e){this.rules=[];let{finish:n}=e||{};function i(t){return/^@/.test(t)?[t]:t.split(/,\s*/)}for(let r in t)!function t(e,r,s,o){let l=[],a=/^@(\w+)\b/.exec(e[0]),h=a&&"keyframes"==a[1];if(a&&null==r)return s.push(e[0]+";");for(let c in r){let u=r[c];if(/&/.test(c))t(c.split(/,\s*/).map(t=>e.map(e=>t.replace(/&/,e))).reduce((t,e)=>t.concat(e)),u,s);else if(u&&"object"==typeof u){if(!a)throw RangeError("The value of a property ("+c+") should be a primitive value.");t(i(c),u,l,h)}else null!=u&&l.push(c.replace(/_.*/,"").replace(/[A-Z]/g,t=>"-"+t.toLowerCase())+": "+u+";")}(l.length||h)&&s.push((!n||a||o?e:e.map(n)).join(", ")+" {"+l.join(" ")+"}")}(i(r),t[r],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let t=s[i]||1;return s[i]=t+1,"ͼ"+t.toString(36)}static mount(t,e){(t[r]||new a(t)).mount(Array.isArray(e)?e:[e])}}let l=null;class a{constructor(t){if(!t.head&&t.adoptedStyleSheets&&"undefined"!=typeof CSSStyleSheet){if(l)return t.adoptedStyleSheets=[l.sheet].concat(t.adoptedStyleSheets),t[r]=l;this.sheet=new CSSStyleSheet,t.adoptedStyleSheets=[this.sheet].concat(t.adoptedStyleSheets),l=this}else{this.styleTag=(t.ownerDocument||t).createElement("style");let e=t.head||t;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],t[r]=this}mount(t){let e=this.sheet,n=0,i=0;for(let r=0;r-1&&(this.modules.splice(o,1),i--,o=-1),-1==o){if(this.modules.splice(i++,0,s),e)for(let l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent);"undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent);for(var o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=o||s&&57>+s[1],h=0;h<10;h++)i[48+h]=i[96+h]=String(h);for(var h=1;h<=24;h++)i[h+111]="F"+h;for(var h=65;h<=90;h++)i[h]=String.fromCharCode(h+32),r[h]=String.fromCharCode(h);for(var c in i)r.hasOwnProperty(c)||(r[c]=i[c]);function u(t){var e=!(a&&(t.ctrlKey||t.altKey||t.metaKey)||l&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?r:i)[t.keyCode]||t.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/2069-adb358898adcf95c.js b/static/web/_next/static/chunks/2069-adb358898adcf95c.js new file mode 100644 index 000000000..30329b76b --- /dev/null +++ b/static/web/_next/static/chunks/2069-adb358898adcf95c.js @@ -0,0 +1,14 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2069],{94470:function(e){"use strict";var n=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(e){if(!e||"[object Object]"!==t.call(e))return!1;var r,l=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!l&&!i)return!1;for(r in e);return void 0===r||n.call(e,r)},u=function(e,n){r&&"__proto__"===n.name?r(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},a=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(l)return l(e,t).value}return e[t]};e.exports=function e(){var n,t,r,l,s,c,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p + * @license MIT + */e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},62705:function(e,n,t){var r=t(55639).Symbol;e.exports=r},44239:function(e,n,t){var r=t(62705),l=t(89607),i=t(2333),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?l(e):i(e)}},27561:function(e,n,t){var r=t(67990),l=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(l,""):e}},31957:function(e,n,t){var r="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g;e.exports=r},89607:function(e,n,t){var r=t(62705),l=Object.prototype,i=l.hasOwnProperty,o=l.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var n=i.call(e,u),t=e[u];try{e[u]=void 0;var r=!0}catch(l){}var a=o.call(e);return r&&(n?e[u]=t:delete e[u]),a}},2333:function(e){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},55639:function(e,n,t){var r=t(31957),l="object"==typeof self&&self&&self.Object===Object&&self,i=r||l||Function("return this")();e.exports=i},67990:function(e){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},23279:function(e,n,t){var r=t(13218),l=t(7771),i=t(14841),o=Math.max,u=Math.min;e.exports=function(e,n,t){var a,s,c,f,p,d,h=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function x(n){var t=a,r=s;return a=s=void 0,h=n,f=e.apply(r,t)}function k(e){var t=e-d,r=e-h;return void 0===d||t>=n||t<0||g&&r>=c}function v(){var e,t,r,i=l();if(k(i))return b(i);p=setTimeout(v,(e=i-d,t=i-h,r=n-e,g?u(r,c-t):r))}function b(e){return(p=void 0,y&&a)?x(e):(a=s=void 0,f)}function S(){var e,t=l(),r=k(t);if(a=arguments,s=this,d=t,r){if(void 0===p)return h=e=d,p=setTimeout(v,n),m?x(e):f;if(g)return clearTimeout(p),p=setTimeout(v,n),x(d)}return void 0===p&&(p=setTimeout(v,n)),f}return n=i(n)||0,r(t)&&(m=!!t.leading,c=(g="maxWait"in t)?o(i(t.maxWait)||0,n):c,y="trailing"in t?!!t.trailing:y),S.cancel=function(){void 0!==p&&clearTimeout(p),h=0,a=d=s=p=void 0},S.flush=function(){return void 0===p?f:b(l())},S}},13218:function(e){e.exports=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,n,t){var r=t(44239),l=t(37005);e.exports=function(e){return"symbol"==typeof e||l(e)&&"[object Symbol]"==r(e)}},7771:function(e,n,t){var r=t(55639);e.exports=function(){return r.Date.now()}},14841:function(e,n,t){var r=t(27561),l=t(13218),i=t(33448),o=0/0,u=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(l(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=l(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=a.test(e);return t||s.test(e)?c(e.slice(2),t?2:8):u.test(e)?o:+e}},71471:function(e,n){"use strict";/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var t,r=Symbol.for("react.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case r:switch(e=e.type){case i:case u:case o:case p:case d:return e;default:switch(e=e&&e.$$typeof){case c:case s:case f:case m:case h:case a:return e;default:return n}}case l:return n}}}t=Symbol.for("react.module.reference"),n.ContextConsumer=s,n.ContextProvider=a,n.Element=r,n.ForwardRef=f,n.Fragment=i,n.Lazy=m,n.Memo=h,n.Portal=l,n.Profiler=u,n.StrictMode=o,n.Suspense=p,n.SuspenseList=d,n.isAsyncMode=function(){return!1},n.isConcurrentMode=function(){return!1},n.isContextConsumer=function(e){return y(e)===s},n.isContextProvider=function(e){return y(e)===a},n.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},n.isForwardRef=function(e){return y(e)===f},n.isFragment=function(e){return y(e)===i},n.isLazy=function(e){return y(e)===m},n.isMemo=function(e){return y(e)===h},n.isPortal=function(e){return y(e)===l},n.isProfiler=function(e){return y(e)===u},n.isStrictMode=function(e){return y(e)===o},n.isSuspense=function(e){return y(e)===p},n.isSuspenseList=function(e){return y(e)===d},n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===u||e===o||e===p||e===d||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===f||e.$$typeof===t||void 0!==e.getModuleId)},n.typeOf=y},82143:function(e,n,t){"use strict";e.exports=t(71471)},57848:function(e,n,t){var r=t(18139);e.exports=function(e,n){var t,l,i,o=null;if(!e||"string"!=typeof e)return o;for(var u=r(e),a="function"==typeof n,s=0,c=u.length;se.length){for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else l<0&&(t=!0,l=i+1);return l<0?"":e.slice(r,l)}if(n===e)return"";let o=-1,u=n.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else o<0&&(t=!0,o=i+1),u>-1&&(e.charCodeAt(i)===n.charCodeAt(u--)?u<0&&(l=i):(u=-1,l=o));return r===l?l=o:l<0&&(l=e.length),e.slice(r,l)},dirname:function(e){let n;if(d(e),0===e.length)return".";let t=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(n){t=r;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},extname:function(e){let n;d(e);let t=e.length,r=-1,l=0,i=-1,o=0;for(;t--;){let u=e.charCodeAt(t);if(47===u){if(n){l=t+1;break}continue}r<0&&(n=!0,r=t+1),46===u?i<0?i=t:1!==o&&(o=1):i>-1&&(o=-1)}return i<0||r<0||0===o||1===o&&i===r-1&&i===l+1?"":e.slice(i,r)},join:function(...e){let n,t=-1;for(;++t2){if((r=l.lastIndexOf("/"))!==l.length-1){r<0?(l="",i=0):i=(l=l.slice(0,r)).length-1-l.lastIndexOf("/"),o=a,u=0;continue}}else if(l.length>0){l="",i=0,o=a,u=0;continue}}n&&(l=l.length>0?l+"/..":"..",i=2)}else l.length>0?l+="/"+e.slice(o+1,a):l=e.slice(o+1,a),i=a-o-1;o=a,u=0}else 46===t&&u>-1?u++:u=-1}return l}(e,!n);return 0!==t.length||n||(t="."),t.length>0&&47===e.charCodeAt(e.length-1)&&(t+="/"),n?"/"+t:t}(n)},sep:"/"};function d(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let h={cwd:function(){return"/"}};function m(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}let g=["history","path","basename","stem","extname","dirname"];class y{constructor(e){let n,t;n=e?"string"==typeof e||o(e)?{value:e}:m(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=h.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++rn.length;o&&n.push(r);try{i=e.apply(this,n)}catch(u){if(o&&t)throw u;return r(u)}o||(i instanceof Promise?i.then(l,r):i instanceof Error?r(i):l(i))};function r(e,...r){t||(t=!0,n(e,...r))}function l(e){r(null,e)}})(u,l)(...o):r(null,...o)}(null,...n)},use:function(t){if("function"!=typeof t)throw TypeError("Expected `middelware` to be a function, not "+t);return e.push(t),n}};return n}(),r=[],l={},i=-1;return u.data=function(e,t){return"string"==typeof e?2==arguments.length?(P("data",n),l[e]=t,u):E.call(l,e)&&l[e]||null:e?(P("data",n),l=e,u):l},u.Parser=void 0,u.Compiler=void 0,u.freeze=function(){if(n)return u;for(;++i{if(!e&&n&&t){let r=u.stringify(n,t);null==r||("string"==typeof r||o(r)?t.value=r:t.result=r),i(e,t)}else i(e)})}t(null,n)},u.processSync=function(e){let n;u.freeze(),F("processSync",u.Parser),T("processSync",u.Compiler);let t=I(e);return u.process(t,function(e){n=!0,b(e)}),L("processSync","process",n),t},u;function u(){let n=e(),t=-1;for(;++ti?0:i+n:n>i?i:n,t=t>0?t:0,r.length<1e4)(l=Array.from(r)).unshift(n,t),[].splice.apply(e,l);else for(t&&[].splice.apply(e,[n,t]);o0?(M(e,e.length,0,n),e):n}let R={}.hasOwnProperty,B=X(/[A-Za-z]/),_=X(/\d/),N=X(/[\dA-Fa-f]/),H=X(/[\dA-Za-z]/),U=X(/[!-/:-@[-`{-~]/),V=X(/[#-'*+\--9=?A-Z^-~]/);function q(e){return null!==e&&(e<32||127===e)}function $(e){return null!==e&&(e<0||32===e)}function W(e){return null!==e&&e<-2}function Q(e){return -2===e||-1===e||32===e}let Y=X(/\s/),K=X(/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/);function X(e){return function(n){return null!==n&&e.test(String.fromCharCode(n))}}function Z(e,n,t,r){let l=r?r-1:Number.POSITIVE_INFINITY,i=0;return function(r){return Q(r)?(e.enter(t),function r(o){return Q(o)&&i++r))return;let f=l.events.length,p=f;for(;p--;)if("exit"===l.events[p][0]&&"chunkFlow"===l.events[p][1].type){if(a){s=l.events[p][1].end;break}a=!0}for(g(o),c=f;cn;){let r=i[t];l.containerState=r[1],r[0].exit.call(l,e)}i.length=n}function y(){n.write([null]),t=void 0,n=void 0,l.containerState._closeFlow=void 0}}},ee={tokenize:function(e,n,t){return Z(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},en={tokenize:function(e,n,t){return Z(e,function(e){return null===e||W(e)?n(e):t(e)},"linePrefix")},partial:!0};function et(e){let n,t,r,l,i,o,u;let a={},s=-1;for(;++s=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}},partial:!0},ei={tokenize:function(e){let n=this,t=e.attempt(en,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t},e.attempt(this.parser.constructs.flowInitial,r,Z(e,e.attempt(this.parser.constructs.flow,r,e.attempt(er,r)),"linePrefix")));return t;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n.currentConstruct=void 0,t}}},eo={resolveAll:ec()},eu=es("string"),ea=es("text");function es(e){return{tokenize:function(n){let t=this,r=this.parser.constructs[e],l=n.attempt(r,i,o);return i;function i(e){return a(e)?l(e):o(e)}function o(e){if(null===e){n.consume(e);return}return n.enter("data"),n.consume(e),u}function u(e){return a(e)?(n.exit("data"),l(e)):(n.consume(e),u)}function a(e){if(null===e)return!0;let n=r[e],l=-1;if(n)for(;++ls?t(l):(e.consume(l),h):41===l?c--?(e.consume(l),h):(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),n(l)):null===l||$(l)?c?t(l):(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),n(l)):q(l)?t(l):(e.consume(l),92===l?m:h)}function m(n){return 40===n||41===n||92===n?(e.consume(n),h):h(n)}}function ek(e,n,t,r,l,i){let o;let u=this,a=0;return function(n){return e.enter(r),e.enter(l),e.consume(n),e.exit(l),e.enter(i),s};function s(f){return null===f||91===f||93===f&&!o||94===f&&!a&&"_hiddenFootnoteSupport"in u.parser.constructs||a>999?t(f):93===f?(e.exit(i),e.enter(l),e.consume(f),e.exit(l),e.exit(r),n):W(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(n){return null===n||91===n||93===n||W(n)||a++>999?(e.exit("chunkString"),s(n)):(e.consume(n),o=o||!Q(n),92===n?f:c)}function f(n){return 91===n||92===n||93===n?(e.consume(n),a++,c):c(n)}}function ev(e,n,t,r,l,i){let o;return function(n){return e.enter(r),e.enter(l),e.consume(n),e.exit(l),o=40===n?41:n,u};function u(t){return t===o?(e.enter(l),e.consume(t),e.exit(l),e.exit(r),n):(e.enter(i),a(t))}function a(n){return n===o?(e.exit(i),u(o)):null===n?t(n):W(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Z(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(n))}function s(n){return n===o||null===n||W(n)?(e.exit("chunkString"),a(n)):(e.consume(n),92===n?c:s)}function c(n){return n===o||92===n?(e.consume(n),s):s(n)}}function eb(e,n){let t;return function r(l){return W(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t=!0,r):Q(l)?Z(e,r,t?"linePrefix":"lineSuffix")(l):n(l)}}function eS(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let ew={tokenize:function(e,n,t){return function(n){return $(n)?eb(e,r)(n):t(n)};function r(n){return 34===n||39===n||40===n?ev(e,Z(e,l,"whitespace"),t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n):t(n)}function l(e){return null===e||W(e)?n(e):t(e)}},partial:!0},eC={name:"codeIndented",tokenize:function(e,n,t){let r=this;return function(n){return e.enter("codeIndented"),Z(e,l,"linePrefix",5)(n)};function l(n){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?function n(t){return null===t?i(t):W(t)?e.attempt(eE,n,i)(t):(e.enter("codeFlowValue"),function t(r){return null===r||W(r)?(e.exit("codeFlowValue"),n(r)):(e.consume(r),t)}(t))}(n):t(n)}function i(t){return e.exit("codeIndented"),n(t)}}},eE={tokenize:function(e,n,t){let r=this;return l;function l(n){return r.parser.lazy[r.now().line]?t(n):W(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),l):Z(e,i,"linePrefix",5)(n)}function i(e){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?n(e):W(e)?l(e):t(e)}},partial:!0},eA={name:"setextUnderline",tokenize:function(e,n,t){let r;let l=this,i=l.events.length;for(;i--;)if("lineEnding"!==l.events[i][1].type&&"linePrefix"!==l.events[i][1].type&&"content"!==l.events[i][1].type){r="paragraph"===l.events[i][1].type;break}return function(n){return!l.parser.lazy[l.now().line]&&(l.interrupt||r)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),function t(r){return r===n?(e.consume(r),t):(e.exit("setextHeadingLineSequence"),Z(e,o,"lineSuffix")(r))}(n)):t(n)};function o(r){return null===r||W(r)?(e.exit("setextHeadingLine"),n(r)):t(r)}},resolveTo:function(e,n){let t,r,l,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){t=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),l||"definition"!==e[i][1].type||(l=i);let o={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",l?(e.splice(r,0,["enter",o,n]),e.splice(l+1,0,["exit",e[t][1],n]),e[t][1].end=Object.assign({},e[l][1].end)):e[t][1]=o,e.push(["exit",o,n]),e}},eF=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],eT=["pre","script","style","textarea"],eP={tokenize:function(e,n,t){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(en,n,t)}},partial:!0},eO={name:"codeFenced",tokenize:function(e,n,t){let r;let l=this,i={tokenize:function(e,n,t){let l=0;return Z(e,function(n){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function n(o){return o===r?(e.consume(o),l++,n):l1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let f=Object.assign({},e[t][1].end),p=Object.assign({},e[c][1].start);eV(f,-u),eV(p,u),i={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[t][1].end)},o={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:p},l={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[t][1].end),end:Object.assign({},e[c][1].start)},r={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},o.end)},e[t][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},o.end),a=[],e[t][1].end.offset-e[t][1].start.offset&&(a=j(a,[["enter",e[t][1],n],["exit",e[t][1],n]])),a=j(a,[["enter",r,n],["enter",i,n],["exit",i,n],["enter",l,n]]),a=j(a,ep(n.parser.constructs.insideSpan.null,e.slice(t+1,c),n)),a=j(a,[["exit",l,n],["enter",o,n],["exit",o,n],["exit",r,n]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,a=j(a,[["enter",e[c][1],n],["exit",e[c][1],n]])):s=0,M(e,t-1,c-t+3,a),c=t+a.length-s-2;break}}for(c=-1;++ci&&"whitespace"===e[l][1].type&&(l-=2),"atxHeadingSequence"===e[l][1].type&&(i===l-1||l-4>i&&"whitespace"===e[l-2][1].type)&&(l-=i+1===l?2:4),l>i&&(t={type:"atxHeadingText",start:e[i][1].start,end:e[l][1].end},r={type:"chunkText",start:e[i][1].start,end:e[l][1].end,contentType:"text"},M(e,i,l-i+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]])),e}},42:ed,45:[eA,ed],60:{name:"htmlFlow",tokenize:function(e,n,t){let r,l,i,o,u;let a=this;return function(n){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),s};function s(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),d):63===o?(e.consume(o),r=3,a.interrupt?n:L):B(o)?(e.consume(o),i=String.fromCharCode(o),l=!0,h):t(o)}function c(l){return 45===l?(e.consume(l),r=2,f):91===l?(e.consume(l),r=5,i="CDATA[",o=0,p):B(l)?(e.consume(l),r=4,a.interrupt?n:L):t(l)}function f(r){return 45===r?(e.consume(r),a.interrupt?n:L):t(r)}function p(r){return r===i.charCodeAt(o++)?(e.consume(r),o===i.length?a.interrupt?n:C:p):t(r)}function d(n){return B(n)?(e.consume(n),i=String.fromCharCode(n),h):t(n)}function h(o){return null===o||47===o||62===o||$(o)?47!==o&&l&&eT.includes(i.toLowerCase())?(r=1,a.interrupt?n(o):C(o)):eF.includes(i.toLowerCase())?(r=6,47===o)?(e.consume(o),m):a.interrupt?n(o):C(o):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?t(o):l?g(o):function n(t){return Q(t)?(e.consume(t),n):S(t)}(o)):45===o||H(o)?(e.consume(o),i+=String.fromCharCode(o),h):t(o)}function m(r){return 62===r?(e.consume(r),a.interrupt?n:C):t(r)}function g(n){return 47===n?(e.consume(n),S):58===n||95===n||B(n)?(e.consume(n),y):Q(n)?(e.consume(n),g):S(n)}function y(n){return 45===n||46===n||58===n||95===n||H(n)?(e.consume(n),y):x(n)}function x(n){return 61===n?(e.consume(n),k):Q(n)?(e.consume(n),x):g(n)}function k(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),u=n,v):Q(n)?(e.consume(n),k):(u=null,function n(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||$(t)?x(t):(e.consume(t),n)}(n))}function v(n){return null===n||W(n)?t(n):n===u?(e.consume(n),b):(e.consume(n),v)}function b(e){return 47===e||62===e||Q(e)?g(e):t(e)}function S(n){return 62===n?(e.consume(n),w):t(n)}function w(n){return Q(n)?(e.consume(n),w):null===n||W(n)?C(n):t(n)}function C(n){return 45===n&&2===r?(e.consume(n),F):60===n&&1===r?(e.consume(n),T):62===n&&4===r?(e.consume(n),I):63===n&&3===r?(e.consume(n),L):93===n&&5===r?(e.consume(n),O):W(n)&&(6===r||7===r)?e.check(eP,I,E)(n):null===n||W(n)?E(n):(e.consume(n),C)}function E(n){return e.exit("htmlFlowData"),function n(t){return null===t?D(t):W(t)?e.attempt({tokenize:A,partial:!0},n,D)(t):(e.enter("htmlFlowData"),C(t))}(n)}function A(e,n,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r};function r(e){return a.parser.lazy[a.now().line]?t(e):n(e)}}function F(n){return 45===n?(e.consume(n),L):C(n)}function T(n){return 47===n?(e.consume(n),i="",P):C(n)}function P(n){return 62===n&&eT.includes(i.toLowerCase())?(e.consume(n),I):B(n)&&i.length<8?(e.consume(n),i+=String.fromCharCode(n),P):C(n)}function O(n){return 93===n?(e.consume(n),L):C(n)}function L(n){return 62===n?(e.consume(n),I):45===n&&2===r?(e.consume(n),L):C(n)}function I(n){return null===n||W(n)?(e.exit("htmlFlowData"),D(n)):(e.consume(n),I)}function D(t){return e.exit("htmlFlow"),n(t)}},resolveTo:function(e){let n=e.length;for(;n--&&("enter"!==e[n][0]||"htmlFlow"!==e[n][1].type););return n>1&&"linePrefix"===e[n-2][1].type&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e},concrete:!0},61:eA,95:ed,96:eO,126:eO},eK={38:eD,92:ez},eX={[-5]:eM,[-4]:eM,[-3]:eM,33:eN,38:eD,42:eU,60:[{name:"autolink",tokenize:function(e,n,t){let r=1;return function(n){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l};function l(n){return B(n)?(e.consume(n),i):V(n)?u(n):t(n)}function i(n){return 43===n||45===n||46===n||H(n)?function n(t){return 58===t?(e.consume(t),o):(43===t||45===t||46===t||H(t))&&r++<32?(e.consume(t),n):u(t)}(n):u(n)}function o(n){return 62===n?(e.exit("autolinkProtocol"),s(n)):null===n||32===n||60===n||q(n)?t(n):(e.consume(n),o)}function u(n){return 64===n?(e.consume(n),r=0,a):V(n)?(e.consume(n),u):t(n)}function a(n){return H(n)?function n(l){return 46===l?(e.consume(l),r=0,a):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",s(l)):function l(i){return(45===i||H(i))&&r++<63?(e.consume(i),45===i?l:n):t(i)}(l)}(n):t(n)}function s(t){return e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.exit("autolink"),n}}},{name:"htmlText",tokenize:function(e,n,t){let r,l,i,o;let u=this;return function(n){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(n),a};function a(n){return 33===n?(e.consume(n),s):47===n?(e.consume(n),S):63===n?(e.consume(n),v):B(n)?(e.consume(n),C):t(n)}function s(n){return 45===n?(e.consume(n),c):91===n?(e.consume(n),l="CDATA[",i=0,m):B(n)?(e.consume(n),k):t(n)}function c(n){return 45===n?(e.consume(n),f):t(n)}function f(n){return null===n||62===n?t(n):45===n?(e.consume(n),p):d(n)}function p(e){return null===e||62===e?t(e):d(e)}function d(n){return null===n?t(n):45===n?(e.consume(n),h):W(n)?(o=d,L(n)):(e.consume(n),d)}function h(n){return 45===n?(e.consume(n),D):d(n)}function m(n){return n===l.charCodeAt(i++)?(e.consume(n),i===l.length?g:m):t(n)}function g(n){return null===n?t(n):93===n?(e.consume(n),y):W(n)?(o=g,L(n)):(e.consume(n),g)}function y(n){return 93===n?(e.consume(n),x):g(n)}function x(n){return 62===n?D(n):93===n?(e.consume(n),x):g(n)}function k(n){return null===n||62===n?D(n):W(n)?(o=k,L(n)):(e.consume(n),k)}function v(n){return null===n?t(n):63===n?(e.consume(n),b):W(n)?(o=v,L(n)):(e.consume(n),v)}function b(e){return 62===e?D(e):v(e)}function S(n){return B(n)?(e.consume(n),w):t(n)}function w(n){return 45===n||H(n)?(e.consume(n),w):function n(t){return W(t)?(o=n,L(t)):Q(t)?(e.consume(t),n):D(t)}(n)}function C(n){return 45===n||H(n)?(e.consume(n),C):47===n||62===n||$(n)?E(n):t(n)}function E(n){return 47===n?(e.consume(n),D):58===n||95===n||B(n)?(e.consume(n),A):W(n)?(o=E,L(n)):Q(n)?(e.consume(n),E):D(n)}function A(n){return 45===n||46===n||58===n||95===n||H(n)?(e.consume(n),A):function n(t){return 61===t?(e.consume(t),F):W(t)?(o=n,L(t)):Q(t)?(e.consume(t),n):E(t)}(n)}function F(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),r=n,T):W(n)?(o=F,L(n)):Q(n)?(e.consume(n),F):(e.consume(n),r=void 0,O)}function T(n){return n===r?(e.consume(n),P):null===n?t(n):W(n)?(o=T,L(n)):(e.consume(n),T)}function P(e){return 62===e||47===e||$(e)?E(e):t(e)}function O(n){return null===n||34===n||39===n||60===n||61===n||96===n?t(n):62===n||$(n)?E(n):(e.consume(n),O)}function L(n){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Z(e,I,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function I(n){return e.enter("htmlTextData"),o(n)}function D(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),n):t(r)}}}],91:eq,92:[{name:"hardBreakEscape",tokenize:function(e,n,t){return function(n){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(n),r};function r(r){return W(r)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),n(r)):t(r)}}},ez],93:ej,95:eU,96:{name:"codeText",tokenize:function(e,n,t){let r,l,i=0;return function(n){return e.enter("codeText"),e.enter("codeTextSequence"),function n(t){return 96===t?(e.consume(t),i++,n):(e.exit("codeTextSequence"),o(t))}(n)};function o(a){return null===a?t(a):96===a?(l=e.enter("codeTextSequence"),r=0,function t(o){return 96===o?(e.consume(o),r++,t):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(o)):(l.type="codeTextData",u(o))}(a)):32===a?(e.enter("space"),e.consume(a),e.exit("space"),o):W(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):(e.enter("codeTextData"),u(a))}function u(n){return null===n||32===n||96===n||W(n)?(e.exit("codeTextData"),o(n)):(e.consume(n),u)}},resolve:function(e){let n,t,r=e.length-4,l=3;if(("lineEnding"===e[3][1].type||"space"===e[l][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(n=l;++n13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(65535&t)==65535||(65535&t)==65534||t>1114111?"�":String.fromCharCode(t)}let e2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function e4(e,n,t){if(n)return n;let r=t.charCodeAt(0);if(35===r){let l=t.charCodeAt(1),i=120===l||88===l;return e0(t.slice(i?2:1),i?16:10)}return eI(t)||e}let e3={}.hasOwnProperty,e6=function(e,n,t){let l,i,o,a;return"string"!=typeof n&&(t=n,n=void 0),(function(e={}){let n=function e(n,t){let r=-1;for(;++r0){let y=u[u.length-1],x=y[1]||e5;x.call(d,void 0,y[0])}for(t.position={start:i(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:i(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h-1&&(t[0]=t[0].slice(l)),o>0&&t.push(e[i].slice(0,o))),t}(o,e)}function p(){return Object.assign({},r)}function d(e,n){n.restore()}function h(e,n){return function(t,l,i){let o,c,f,d;return Array.isArray(t)?h(t):"tokenize"in t?h([t]):function(e){let n=null!==e&&t[e],r=null!==e&&t.null,l=[...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]];return h(l)(e)};function h(e){return(o=e,c=0,0===e.length)?i:m(e[c])}function m(e){return function(t){return(d=function(){let e=p(),n=s.previous,t=s.currentConstruct,l=s.events.length,i=Array.from(u);return{restore:function(){r=e,s.previous=n,s.currentConstruct=t,s.events.length=l,u=i,g()},from:l}}(),f=e,e.partial||(s.currentConstruct=e),e.name&&s.parser.constructs.disable.null.includes(e.name))?x(t):e.tokenize.call(n?Object.assign(Object.create(s),n):s,a,y,x)(t)}}function y(n){return e(f,d),l}function x(e){return(d.restore(),++c{let t=this.data("settings");return e6(n,Object.assign({},t,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))};Object.assign(this,{Parser:n})},e7=function(e,n,t){var r={type:String(e)};return null==t&&("string"==typeof n||Array.isArray(n))?t=n:Object.assign(r,n),Array.isArray(t)?r.children=t:null!=t&&(r.value=String(t)),r};let e8=function(e){if(null==e)return nn;if("string"==typeof e)return ne(function(n){return n&&n.type===e});if("object"==typeof e)return Array.isArray(e)?function(e){let n=[],t=-1;for(;++t":"")+")"})),f;function f(){var s;let c,f,p,d=[];if((!n||l(o,u,a[a.length-1]||null))&&!1===(d=Array.isArray(s=t(o,a))?s:"number"==typeof s?[!0,s]:[s])[0])return d;if(o.children&&"skip"!==d[0])for(f=(r?o.children.length:-1)+i,p=a.concat(o);f>-1&&f-1?t.offset:null}}}let nu={}.hasOwnProperty;function na(e){return String(e||"").toUpperCase()}let ns={}.hasOwnProperty;function nc(e,n){let t=n.data||{};return"value"in n&&!(ns.call(t,"hName")||ns.call(t,"hProperties")||ns.call(t,"hChildren"))?e.augment(n,e7("text",n.value)):e(n,"div",nd(e,n))}function nf(e,n,t){let r;let l=n&&n.type;if(!l)throw Error("Expected node, got `"+n+"`");return("function"==typeof(r=ns.call(e.handlers,l)?e.handlers[l]:e.passThrough&&e.passThrough.includes(l)?np:e.unknownHandler)?r:nc)(e,n,t)}function np(e,n){return"children"in n?{...n,children:nd(e,n)}:n}function nd(e,n){let t=[];if("children"in n){let r=n.children,l=-1;for(;++l55295&&i<57344){let u=e.charCodeAt(t+1);i<56320&&u>56319&&u<57344?(o=String.fromCharCode(i,u),l=1):o="�"}else o=String.fromCharCode(i);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+l+1,o=""),l&&(t+=l,l=0)}return n.join("")+e.slice(r)}function nm(e,n){let t=[],r=-1;for(n&&t.push(e7("text","\n"));++r0&&t.push(e7("text","\n")),t}function ng(e,n){let t;let r=String(n.identifier),l=nh(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);-1===i?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,t=e.footnoteOrder.length):(e.footnoteCounts[r]++,t=i+1);let o=e.footnoteCounts[r];return e(n,"sup",[e(n.position,"a",{href:"#"+e.clobberPrefix+"fn-"+l,id:e.clobberPrefix+"fnref-"+l+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[e7("text",String(t))])])}function ny(e,n){let t=n.referenceType,r="]";if("collapsed"===t?r+="[]":"full"===t&&(r+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type)return e7("text","!["+n.alt+r);let l=nd(e,n),i=l[0];i&&"text"===i.type?i.value="["+i.value:l.unshift(e7("text","["));let o=l[l.length-1];return o&&"text"===o.type?o.value+=r:l.push(e7("text",r)),l}function nx(e){let n=e.spread;return null==n?e.children.length>1:n}function nk(e,n,t){let r=0,l=e.length;if(n){let i=e.codePointAt(r);for(;9===i||32===i;)r++,i=e.codePointAt(r)}if(t){let o=e.codePointAt(l-1);for(;9===o||32===o;)l--,o=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}let nv={blockquote:function(e,n){return e(n,"blockquote",nm(nd(e,n),!0))},break:function(e,n){return[e(n,"br"),e7("text","\n")]},code:function(e,n){let t=n.value?n.value+"\n":"",r=n.lang&&n.lang.match(/^[^ \t]+(?=[ \t]|$)/),l={};r&&(l.className=["language-"+r]);let i=e(n,"code",l,[e7("text",t)]);return n.meta&&(i.data={meta:n.meta}),e(n.position,"pre",[i])},delete:function(e,n){return e(n,"del",nd(e,n))},emphasis:function(e,n){return e(n,"em",nd(e,n))},footnoteReference:ng,footnote:function(e,n){let t=e.footnoteById,r=1;for(;(r in t);)r++;let l=String(r);return t[l]={type:"footnoteDefinition",identifier:l,children:[{type:"paragraph",children:n.children}],position:n.position},ng(e,{type:"footnoteReference",identifier:l,position:n.position})},heading:function(e,n){return e(n,"h"+n.depth,nd(e,n))},html:function(e,n){return e.dangerous?e.augment(n,e7("raw",n.value)):null},imageReference:function(e,n){let t=e.definition(n.identifier);if(!t)return ny(e,n);let r={src:nh(t.url||""),alt:n.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"img",r)},image:function(e,n){let t={src:nh(n.url),alt:n.alt};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"img",t)},inlineCode:function(e,n){return e(n,"code",[e7("text",n.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,n){let t=e.definition(n.identifier);if(!t)return ny(e,n);let r={href:nh(t.url||"")};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"a",r,nd(e,n))},link:function(e,n){let t={href:nh(n.url)};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"a",t,nd(e,n))},listItem:function(e,n,t){let r=nd(e,n),l=t?function(e){let n=e.spread,t=e.children,r=-1;for(;!n&&++r0&&u.children.unshift(e7("text"," ")),u.children.unshift(e(null,"input",{type:"checkbox",checked:n.checked,disabled:!0})),i.className=["task-list-item"]}let a=-1;for(;++a0,!0),r[0]),l=r.index+r[0].length,r=t.exec(n);return i.push(nk(n.slice(l),l>0,!1)),i.join("")}(String(n.value))))},thematicBreak:function(e,n){return e(n,"hr")},toml:nb,yaml:nb,definition:nb,footnoteDefinition:nb};function nb(){return null}let nS={}.hasOwnProperty;function nw(e,n){let t=function(e,n){let t=n||{},r=t.allowDangerousHtml||!1,l={};return o.dangerous=r,o.clobberPrefix=void 0===t.clobberPrefix||null===t.clobberPrefix?"user-content-":t.clobberPrefix,o.footnoteLabel=t.footnoteLabel||"Footnotes",o.footnoteLabelTagName=t.footnoteLabelTagName||"h2",o.footnoteLabelProperties=t.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=t.footnoteBackLabel||"Back to content",o.definition=function(e){let n=Object.create(null);if(!e||!e.type)throw Error("mdast-util-definitions expected node");return nr(e,"definition",e=>{let t=na(e.identifier);t&&!nu.call(n,t)&&(n[t]=e)}),function(e){let t=na(e);return t&&nu.call(n,t)?n[t]:null}}(e),o.footnoteById=l,o.footnoteOrder=[],o.footnoteCounts={},o.augment=i,o.handlers={...nv,...t.handlers},o.unknownHandler=t.unknownHandler,o.passThrough=t.passThrough,nr(e,"footnoteDefinition",e=>{let n=String(e.identifier).toUpperCase();nS.call(l,n)||(l[n]=e)}),o;function i(e,n){if(e&&"data"in e&&e.data){let t=e.data;t.hName&&("element"!==n.type&&(n={type:"element",tagName:"",properties:{},children:[]}),n.tagName=t.hName),"element"===n.type&&t.hProperties&&(n.properties={...n.properties,...t.hProperties}),"children"in n&&n.children&&t.hChildren&&(n.children=t.hChildren)}if(e){let r="type"in e?e:{position:e};!r||!r.position||!r.position.start||!r.position.start.line||!r.position.start.column||!r.position.end||!r.position.end.line||!r.position.end.column||(n.position={start:nl(r),end:ni(r)})}return n}function o(e,n,t,r){return Array.isArray(t)&&(r=t,t={}),i(e,{type:"element",tagName:n,properties:t||{},children:r||[]})}}(e,n),r=nf(t,e,null),l=function(e){let n=-1,t=[];for(;++n1?"-"+u:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};u>1&&s.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(u)}]}),a.length>0&&a.push({type:"text",value:" "}),a.push(s)}let c=l[l.length-1];if(c&&"element"===c.type&&"p"===c.tagName){let f=c.children[c.children.length-1];f&&"text"===f.type?f.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...a)}else l.push(...a);let p={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:nm(l,!0)};r.position&&(p.position=r.position),t.push(p)}return 0===t.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[e7("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:nm(t,!0)},{type:"text",value:"\n"}]}}(t);return l&&r.children.push(e7("text","\n"),l),Array.isArray(r)?{type:"root",children:r}:r}var nC=function(e,n){var t;return e&&"run"in e?(t,r,l)=>{e.run(nw(t,n),r,e=>{l(e)})}:(t=e||n,e=>nw(e,t))},nE=t(45697);class nA{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}}function nF(e,n){let t={},r={},l=-1;for(;++l"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),nq=nU({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function n$(e,n){return n in e?e[n]:n}function nW(e,n){return n$(e,n.toLowerCase())}let nQ=nU({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:nW,properties:{xmlns:null,xmlnsXLink:null}}),nY=nU({transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:nI,ariaAutoComplete:null,ariaBusy:nI,ariaChecked:nI,ariaColCount:nz,ariaColIndex:nz,ariaColSpan:nz,ariaControls:nM,ariaCurrent:null,ariaDescribedBy:nM,ariaDetails:null,ariaDisabled:nI,ariaDropEffect:nM,ariaErrorMessage:null,ariaExpanded:nI,ariaFlowTo:nM,ariaGrabbed:nI,ariaHasPopup:null,ariaHidden:nI,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nM,ariaLevel:nz,ariaLive:null,ariaModal:nI,ariaMultiLine:nI,ariaMultiSelectable:nI,ariaOrientation:null,ariaOwns:nM,ariaPlaceholder:null,ariaPosInSet:nz,ariaPressed:nI,ariaReadOnly:nI,ariaRelevant:null,ariaRequired:nI,ariaRoleDescription:nM,ariaRowCount:nz,ariaRowIndex:nz,ariaRowSpan:nz,ariaSelected:nI,ariaSetSize:nz,ariaSort:null,ariaValueMax:nz,ariaValueMin:nz,ariaValueNow:nz,ariaValueText:null,role:null}}),nK=nU({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:nW,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nj,acceptCharset:nM,accessKey:nM,action:null,allow:null,allowFullScreen:nL,allowPaymentRequest:nL,allowUserMedia:nL,alt:null,as:null,async:nL,autoCapitalize:null,autoComplete:nM,autoFocus:nL,autoPlay:nL,capture:nL,charSet:null,checked:nL,cite:null,className:nM,cols:nz,colSpan:null,content:null,contentEditable:nI,controls:nL,controlsList:nM,coords:nz|nj,crossOrigin:null,data:null,dateTime:null,decoding:null,default:nL,defer:nL,dir:null,dirName:null,disabled:nL,download:nD,draggable:nI,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:nL,formTarget:null,headers:nM,height:nz,hidden:nL,high:nz,href:null,hrefLang:null,htmlFor:nM,httpEquiv:nM,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:nL,itemId:null,itemProp:nM,itemRef:nM,itemScope:nL,itemType:nM,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:nL,low:nz,manifest:null,max:null,maxLength:nz,media:null,method:null,min:null,minLength:nz,multiple:nL,muted:nL,name:null,nonce:null,noModule:nL,noValidate:nL,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:nL,optimum:nz,pattern:null,ping:nM,placeholder:null,playsInline:nL,poster:null,preload:null,readOnly:nL,referrerPolicy:null,rel:nM,required:nL,reversed:nL,rows:nz,rowSpan:nz,sandbox:nM,scope:null,scoped:nL,seamless:nL,selected:nL,shape:null,size:nz,sizes:null,slot:null,span:nz,spellCheck:nI,src:null,srcDoc:null,srcLang:null,srcSet:null,start:nz,step:null,style:null,tabIndex:nz,target:null,title:null,translate:null,type:null,typeMustMatch:nL,useMap:null,value:nI,width:nz,wrap:null,align:null,aLink:null,archive:nM,axis:null,background:null,bgColor:null,border:nz,borderColor:null,bottomMargin:nz,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:nL,declare:nL,event:null,face:null,frame:null,frameBorder:null,hSpace:nz,leftMargin:nz,link:null,longDesc:null,lowSrc:null,marginHeight:nz,marginWidth:nz,noResize:nL,noHref:nL,noShade:nL,noWrap:nL,object:null,profile:null,prompt:null,rev:null,rightMargin:nz,rules:null,scheme:null,scrolling:nI,standby:null,summary:null,text:null,topMargin:nz,valueType:null,version:null,vAlign:null,vLink:null,vSpace:nz,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:nL,disableRemotePlayback:nL,prefix:null,property:null,results:nz,security:null,unselectable:null}}),nX=nU({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:n$,properties:{about:nR,accentHeight:nz,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:nz,amplitude:nz,arabicForm:null,ascent:nz,attributeName:null,attributeType:null,azimuth:nz,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:nz,by:null,calcMode:null,capHeight:nz,className:nM,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:nz,diffuseConstant:nz,direction:null,display:null,dur:null,divisor:nz,dominantBaseline:null,download:nL,dx:null,dy:null,edgeMode:null,editable:null,elevation:nz,enableBackground:null,end:null,event:null,exponent:nz,externalResourcesRequired:null,fill:null,fillOpacity:nz,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:nj,g2:nj,glyphName:nj,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:nz,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:nz,horizOriginX:nz,horizOriginY:nz,id:null,ideographic:nz,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:nz,k:nz,k1:nz,k2:nz,k3:nz,k4:nz,kernelMatrix:nR,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:nz,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:nz,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:nz,overlineThickness:nz,paintOrder:null,panose1:null,path:null,pathLength:nz,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nM,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:nz,pointsAtY:nz,pointsAtZ:nz,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nR,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nR,rev:nR,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nR,requiredFeatures:nR,requiredFonts:nR,requiredFormats:nR,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:nz,specularExponent:nz,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:nz,strikethroughThickness:nz,string:null,stroke:null,strokeDashArray:nR,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:nz,strokeOpacity:nz,strokeWidth:null,style:null,surfaceScale:nz,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nR,tabIndex:nz,tableValues:null,target:null,targetX:nz,targetY:nz,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nR,to:null,transform:null,u1:null,u2:null,underlinePosition:nz,underlineThickness:nz,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:nz,values:null,vAlphabetic:nz,vMathematical:nz,vectorEffect:null,vHanging:nz,vIdeographic:nz,version:null,vertAdvY:nz,vertOriginX:nz,vertOriginY:nz,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:nz,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),nZ=nF([nq,nV,nQ,nY,nK],"html"),nJ=nF([nq,nV,nQ,nY,nX],"svg"),nG=function(e){if(null==e)return n0;if("string"==typeof e)return n1(function(n){return n&&n.type===e});if("object"==typeof e)return Array.isArray(e)?function(e){let n=[],t=-1;for(;++t":"")+")"})),f;function f(){var s;let c,f,p,d=[];if((!n||l(o,u,a[a.length-1]||null))&&!1===(d=Array.isArray(s=t(o,a))?s:"number"==typeof s?[!0,s]:[s])[0])return d;if(o.children&&"skip"!==d[0])for(f=(r?o.children.length:-1)+i,p=a.concat(o);f>-1&&f{n4(n,"element",(n,t,r)=>{let l;if(e.allowedElements?l=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(l=e.disallowedElements.includes(n.tagName)),!l&&e.allowElement&&"number"==typeof t&&(l=!e.allowElement(n,t,r)),l&&"number"==typeof t)return e.unwrapDisallowed&&n.children?r.children.splice(t,1,...n.children):r.children.splice(t,1),t})}}let n6=["http","https","mailto","tel"];var n5=t(82143);let n9=/^data[-\w.:]+$/i,n7=/-[a-z]/g,n8=/[A-Z]/g;function te(e){return"-"+e.toLowerCase()}function tn(e){return e.charAt(1).toUpperCase()}let tt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var tr=t(57848);let tl={}.hasOwnProperty,ti=new Set(["table","thead","tbody","tfoot","tr"]);function to(e,n){let t=-1,r=0;for(;++t for more info)`),delete ts[n]}let r=C().use(e9).use(e.remarkPlugins||[]).use(nC,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(n3,e),l=new y;"string"==typeof e.children?l.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);let o=r.runSync(r.parse(l),l);if("root"!==o.type)throw TypeError("Expected a `root` node");let u=i.createElement(i.Fragment,{},function e(n,t){let r;let l=[],o=-1;for(;++o4&&"data"===t.slice(0,4)&&n9.test(n)){if("-"===n.charAt(4)){let i=n.slice(5).replace(n7,tn);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{let o=n.slice(4);if(!n7.test(o)){let u=o.replace(n8,te);"-"!==u.charAt(0)&&(u="-"+u),n="data"+u}}l=nN}return new l(r,n)}(r.schema,n),i=t;null!=i&&i==i&&(Array.isArray(i)&&(i=l.commaSeparated?function(e,n){let t={},r=""===e[e.length-1]?[...e,""]:e;return r.join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(i):i.join(" ").trim()),"style"===l.property&&"string"==typeof i&&(i=function(e){let n={};try{tr(e,function(e,t){let r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;n[r.replace(/-([a-z])/g,tu)]=t})}catch{}return n}(i)),l.space&&l.property?e[tl.call(tt,l.property)?tt[l.property]:l.property]=i:l.attribute&&(e[l.attribute]=i))}(c,o,t.properties[o],n);("ol"===s||"ul"===s)&&n.listDepth++;let p=e(n,t);("ol"===s||"ul"===s)&&n.listDepth--,n.schema=a;let d=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},h=u.components&&tl.call(u.components,s)?u.components[s]:s,m="string"==typeof h||h===i.Fragment;if(!n5.isValidElementType(h))throw TypeError(`Component for name \`${s}\` not defined or is not renderable`);if(c.key=[s,d.start.line,d.start.column,r].join("-"),"a"===s&&u.linkTarget&&(c.target="function"==typeof u.linkTarget?u.linkTarget(String(c.href||""),t.children,"string"==typeof c.title?c.title:null):u.linkTarget),"a"===s&&u.transformLinkUri&&(c.href=u.transformLinkUri(String(c.href||""),t.children,"string"==typeof c.title?c.title:null)),m||"code"!==s||"element"!==l.type||"pre"===l.tagName||(c.inline=!0),m||"h1"!==s&&"h2"!==s&&"h3"!==s&&"h4"!==s&&"h5"!==s&&"h6"!==s||(c.level=Number.parseInt(s.charAt(1),10)),"img"===s&&u.transformImageUri&&(c.src=u.transformImageUri(String(c.src||""),String(c.alt||""),"string"==typeof c.title?c.title:null)),!m&&"li"===s&&"element"===l.type){let g=function(e){let n=-1;for(;++n0?i.createElement(h,c,p):i.createElement(h,c)}(n,r,o,t)):"text"===r.type?"element"===t.type&&ti.has(t.tagName)&&function(e){var n=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof n&&""===n.replace(/[ \t\n\f\r]/g,"")}(r)||l.push(r.value):"raw"!==r.type||n.options.skipHtml||l.push(r.value);return l}({options:e,schema:nZ,listDepth:0},o));return e.className&&(u=i.createElement("div",{className:e.className},u)),u}tc.defaultProps={transformLinkUri:function(e){let n=(e||"").trim(),t=n.charAt(0);if("#"===t||"/"===t)return n;let r=n.indexOf(":");if(-1===r)return n;let l=-1;for(;++ll||-1!==(l=n.indexOf("#"))&&r>l?n:"javascript:void(0)"}},tc.propTypes={children:nE.string,className:nE.string,allowElement:nE.func,allowedElements:nE.arrayOf(nE.string),disallowedElements:nE.arrayOf(nE.string),unwrapDisallowed:nE.bool,remarkPlugins:nE.arrayOf(nE.oneOfType([nE.object,nE.func,nE.arrayOf(nE.oneOfType([nE.bool,nE.string,nE.object,nE.func,nE.arrayOf(nE.any)]))])),rehypePlugins:nE.arrayOf(nE.oneOfType([nE.object,nE.func,nE.arrayOf(nE.oneOfType([nE.bool,nE.string,nE.object,nE.func,nE.arrayOf(nE.any)]))])),sourcePos:nE.bool,rawSourcePos:nE.bool,skipHtml:nE.bool,includeElementIndex:nE.bool,transformLinkUri:nE.oneOfType([nE.func,nE.bool]),linkTarget:nE.oneOfType([nE.func,nE.string]),transformImageUri:nE.func,components:nE.object}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/2069-d9f139bc73aea8db.js b/static/web/_next/static/chunks/2069-d9f139bc73aea8db.js deleted file mode 100644 index bd4212408..000000000 --- a/static/web/_next/static/chunks/2069-d9f139bc73aea8db.js +++ /dev/null @@ -1,14 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2069],{94470:function(e){"use strict";var n=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(e){if(!e||"[object Object]"!==t.call(e))return!1;var r,l=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!l&&!i)return!1;for(r in e);return void 0===r||n.call(e,r)},u=function(e,n){r&&"__proto__"===n.name?r(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},a=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(l)return l(e,t).value}return e[t]};e.exports=function e(){var n,t,r,l,s,c,f=arguments[0],p=1,d=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},p=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});p - * @license MIT - */ e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},62705:function(e,n,t){var r=t(55639).Symbol;e.exports=r},44239:function(e,n,t){var r=t(62705),l=t(89607),i=t(2333),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?l(e):i(e)}},27561:function(e,n,t){var r=t(67990),l=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(l,""):e}},31957:function(e,n,t){var r="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g;e.exports=r},89607:function(e,n,t){var r=t(62705),l=Object.prototype,i=l.hasOwnProperty,o=l.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var n=i.call(e,u),t=e[u];try{e[u]=void 0;var r=!0}catch(l){}var a=o.call(e);return r&&(n?e[u]=t:delete e[u]),a}},2333:function(e){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},55639:function(e,n,t){var r=t(31957),l="object"==typeof self&&self&&self.Object===Object&&self,i=r||l||Function("return this")();e.exports=i},67990:function(e){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},23279:function(e,n,t){var r=t(13218),l=t(7771),i=t(14841),o=Math.max,u=Math.min;e.exports=function(e,n,t){var a,s,c,f,p,d,h=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function x(n){var t=a,r=s;return a=s=void 0,h=n,f=e.apply(r,t)}function k(e){var t=e-d,r=e-h;return void 0===d||t>=n||t<0||g&&r>=c}function v(){var e,t,r,i=l();if(k(i))return b(i);p=setTimeout(v,(e=i-d,t=i-h,r=n-e,g?u(r,c-t):r))}function b(e){return(p=void 0,y&&a)?x(e):(a=s=void 0,f)}function S(){var e,t=l(),r=k(t);if(a=arguments,s=this,d=t,r){if(void 0===p)return h=e=d,p=setTimeout(v,n),m?x(e):f;if(g)return clearTimeout(p),p=setTimeout(v,n),x(d)}return void 0===p&&(p=setTimeout(v,n)),f}return n=i(n)||0,r(t)&&(m=!!t.leading,c=(g="maxWait"in t)?o(i(t.maxWait)||0,n):c,y="trailing"in t?!!t.trailing:y),S.cancel=function(){void 0!==p&&clearTimeout(p),h=0,a=d=s=p=void 0},S.flush=function(){return void 0===p?f:b(l())},S}},13218:function(e){e.exports=function(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,n,t){var r=t(44239),l=t(37005);e.exports=function(e){return"symbol"==typeof e||l(e)&&"[object Symbol]"==r(e)}},7771:function(e,n,t){var r=t(55639);e.exports=function(){return r.Date.now()}},14841:function(e,n,t){var r=t(27561),l=t(13218),i=t(33448),o=0/0,u=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(l(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=l(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=a.test(e);return t||s.test(e)?c(e.slice(2),t?2:8):u.test(e)?o:+e}},71471:function(e,n){"use strict";/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ var t,r=Symbol.for("react.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var n=e.$$typeof;switch(n){case r:switch(e=e.type){case i:case u:case o:case p:case d:return e;default:switch(e=e&&e.$$typeof){case c:case s:case f:case m:case h:case a:return e;default:return n}}case l:return n}}}t=Symbol.for("react.module.reference"),n.ContextConsumer=s,n.ContextProvider=a,n.Element=r,n.ForwardRef=f,n.Fragment=i,n.Lazy=m,n.Memo=h,n.Portal=l,n.Profiler=u,n.StrictMode=o,n.Suspense=p,n.SuspenseList=d,n.isAsyncMode=function(){return!1},n.isConcurrentMode=function(){return!1},n.isContextConsumer=function(e){return y(e)===s},n.isContextProvider=function(e){return y(e)===a},n.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},n.isForwardRef=function(e){return y(e)===f},n.isFragment=function(e){return y(e)===i},n.isLazy=function(e){return y(e)===m},n.isMemo=function(e){return y(e)===h},n.isPortal=function(e){return y(e)===l},n.isProfiler=function(e){return y(e)===u},n.isStrictMode=function(e){return y(e)===o},n.isSuspense=function(e){return y(e)===p},n.isSuspenseList=function(e){return y(e)===d},n.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===u||e===o||e===p||e===d||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===f||e.$$typeof===t||void 0!==e.getModuleId)},n.typeOf=y},82143:function(e,n,t){"use strict";e.exports=t(71471)},57848:function(e,n,t){var r=t(18139);e.exports=function(e,n){var t,l,i,o=null;if(!e||"string"!=typeof e)return o;for(var u=r(e),a="function"==typeof n,s=0,c=u.length;se.length){for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else l<0&&(t=!0,l=i+1);return l<0?"":e.slice(r,l)}if(n===e)return"";let o=-1,u=n.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(t){r=i+1;break}}else o<0&&(t=!0,o=i+1),u>-1&&(e.charCodeAt(i)===n.charCodeAt(u--)?u<0&&(l=i):(u=-1,l=o));return r===l?l=o:l<0&&(l=e.length),e.slice(r,l)},dirname:function(e){let n;if(d(e),0===e.length)return".";let t=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(n){t=r;break}}else n||(n=!0);return t<0?47===e.charCodeAt(0)?"/":".":1===t&&47===e.charCodeAt(0)?"//":e.slice(0,t)},extname:function(e){let n;d(e);let t=e.length,r=-1,l=0,i=-1,o=0;for(;t--;){let u=e.charCodeAt(t);if(47===u){if(n){l=t+1;break}continue}r<0&&(n=!0,r=t+1),46===u?i<0?i=t:1!==o&&(o=1):i>-1&&(o=-1)}return i<0||r<0||0===o||1===o&&i===r-1&&i===l+1?"":e.slice(i,r)},join:function(...e){let n,t=-1;for(;++t2){if((r=l.lastIndexOf("/"))!==l.length-1){r<0?(l="",i=0):i=(l=l.slice(0,r)).length-1-l.lastIndexOf("/"),o=a,u=0;continue}}else if(l.length>0){l="",i=0,o=a,u=0;continue}}n&&(l=l.length>0?l+"/..":"..",i=2)}else l.length>0?l+="/"+e.slice(o+1,a):l=e.slice(o+1,a),i=a-o-1;o=a,u=0}else 46===t&&u>-1?u++:u=-1}return l}(e,!n);return 0!==t.length||n||(t="."),t.length>0&&47===e.charCodeAt(e.length-1)&&(t+="/"),n?"/"+t:t}(n)},sep:"/"};function d(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let h={cwd:function(){return"/"}};function m(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}let g=["history","path","basename","stem","extname","dirname"];class y{constructor(e){let n,t;n=e?"string"==typeof e||o(e)?{value:e}:m(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=h.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++rn.length;o&&n.push(r);try{i=e.apply(this,n)}catch(u){if(o&&t)throw u;return r(u)}o||(i instanceof Promise?i.then(l,r):i instanceof Error?r(i):l(i))};function r(e,...r){t||(t=!0,n(e,...r))}function l(e){r(null,e)}})(u,l)(...o):r(null,...o)}(null,...n)},use:function(t){if("function"!=typeof t)throw TypeError("Expected `middelware` to be a function, not "+t);return e.push(t),n}};return n}(),r=[],l={},i=-1;return u.data=function(e,t){return"string"==typeof e?2==arguments.length?(P("data",n),l[e]=t,u):E.call(l,e)&&l[e]||null:e?(P("data",n),l=e,u):l},u.Parser=void 0,u.Compiler=void 0,u.freeze=function(){if(n)return u;for(;++i{if(!e&&n&&t){let r=u.stringify(n,t);null==r||("string"==typeof r||o(r)?t.value=r:t.result=r),i(e,t)}else i(e)})}t(null,n)},u.processSync=function(e){let n;u.freeze(),F("processSync",u.Parser),T("processSync",u.Compiler);let t=I(e);return u.process(t,function(e){n=!0,b(e)}),L("processSync","process",n),t},u;function u(){let n=e(),t=-1;for(;++ti?0:i+n:n>i?i:n,t=t>0?t:0,r.length<1e4)(l=Array.from(r)).unshift(n,t),[].splice.apply(e,l);else for(t&&[].splice.apply(e,[n,t]);o0?(M(e,e.length,0,n),e):n}let R={}.hasOwnProperty,B=X(/[A-Za-z]/),_=X(/\d/),N=X(/[\dA-Fa-f]/),H=X(/[\dA-Za-z]/),U=X(/[!-/:-@[-`{-~]/),V=X(/[#-'*+\--9=?A-Z^-~]/);function q(e){return null!==e&&(e<32||127===e)}function $(e){return null!==e&&(e<0||32===e)}function W(e){return null!==e&&e<-2}function Q(e){return -2===e||-1===e||32===e}let Y=X(/\s/),K=X(/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/);function X(e){return function(n){return null!==n&&e.test(String.fromCharCode(n))}}function Z(e,n,t,r){let l=r?r-1:Number.POSITIVE_INFINITY,i=0;return function(r){return Q(r)?(e.enter(t),function r(o){return Q(o)&&i++r))return;let f=l.events.length,p=f;for(;p--;)if("exit"===l.events[p][0]&&"chunkFlow"===l.events[p][1].type){if(a){s=l.events[p][1].end;break}a=!0}for(g(o),c=f;cn;){let r=i[t];l.containerState=r[1],r[0].exit.call(l,e)}i.length=n}function y(){n.write([null]),t=void 0,n=void 0,l.containerState._closeFlow=void 0}}},ee={tokenize:function(e,n,t){return Z(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},en={tokenize:function(e,n,t){return Z(e,function(e){return null===e||W(e)?n(e):t(e)},"linePrefix")},partial:!0};function et(e){let n,t,r,l,i,o,u;let a={},s=-1;for(;++s=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}},partial:!0},ei={tokenize:function(e){let n=this,t=e.attempt(en,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t},e.attempt(this.parser.constructs.flowInitial,r,Z(e,e.attempt(this.parser.constructs.flow,r,e.attempt(er,r)),"linePrefix")));return t;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n.currentConstruct=void 0,t}}},eo={resolveAll:ec()},eu=es("string"),ea=es("text");function es(e){return{tokenize:function(n){let t=this,r=this.parser.constructs[e],l=n.attempt(r,i,o);return i;function i(e){return a(e)?l(e):o(e)}function o(e){if(null===e){n.consume(e);return}return n.enter("data"),n.consume(e),u}function u(e){return a(e)?(n.exit("data"),l(e)):(n.consume(e),u)}function a(e){if(null===e)return!0;let n=r[e],l=-1;if(n)for(;++ls?t(l):(e.consume(l),h):41===l?c--?(e.consume(l),h):(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),n(l)):null===l||$(l)?c?t(l):(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),n(l)):q(l)?t(l):(e.consume(l),92===l?m:h)}function m(n){return 40===n||41===n||92===n?(e.consume(n),h):h(n)}}function ek(e,n,t,r,l,i){let o;let u=this,a=0;return function(n){return e.enter(r),e.enter(l),e.consume(n),e.exit(l),e.enter(i),s};function s(f){return null===f||91===f||93===f&&!o||94===f&&!a&&"_hiddenFootnoteSupport"in u.parser.constructs||a>999?t(f):93===f?(e.exit(i),e.enter(l),e.consume(f),e.exit(l),e.exit(r),n):W(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(n){return null===n||91===n||93===n||W(n)||a++>999?(e.exit("chunkString"),s(n)):(e.consume(n),o=o||!Q(n),92===n?f:c)}function f(n){return 91===n||92===n||93===n?(e.consume(n),a++,c):c(n)}}function ev(e,n,t,r,l,i){let o;return function(n){return e.enter(r),e.enter(l),e.consume(n),e.exit(l),o=40===n?41:n,u};function u(t){return t===o?(e.enter(l),e.consume(t),e.exit(l),e.exit(r),n):(e.enter(i),a(t))}function a(n){return n===o?(e.exit(i),u(o)):null===n?t(n):W(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Z(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(n))}function s(n){return n===o||null===n||W(n)?(e.exit("chunkString"),a(n)):(e.consume(n),92===n?c:s)}function c(n){return n===o||92===n?(e.consume(n),s):s(n)}}function eb(e,n){let t;return function r(l){return W(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t=!0,r):Q(l)?Z(e,r,t?"linePrefix":"lineSuffix")(l):n(l)}}function eS(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let ew={tokenize:function(e,n,t){return function(n){return $(n)?eb(e,r)(n):t(n)};function r(n){return 34===n||39===n||40===n?ev(e,Z(e,l,"whitespace"),t,"definitionTitle","definitionTitleMarker","definitionTitleString")(n):t(n)}function l(e){return null===e||W(e)?n(e):t(e)}},partial:!0},eC={name:"codeIndented",tokenize:function(e,n,t){let r=this;return function(n){return e.enter("codeIndented"),Z(e,l,"linePrefix",5)(n)};function l(n){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?function n(t){return null===t?i(t):W(t)?e.attempt(eE,n,i)(t):(e.enter("codeFlowValue"),function t(r){return null===r||W(r)?(e.exit("codeFlowValue"),n(r)):(e.consume(r),t)}(t))}(n):t(n)}function i(t){return e.exit("codeIndented"),n(t)}}},eE={tokenize:function(e,n,t){let r=this;return l;function l(n){return r.parser.lazy[r.now().line]?t(n):W(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),l):Z(e,i,"linePrefix",5)(n)}function i(e){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?n(e):W(e)?l(e):t(e)}},partial:!0},eA={name:"setextUnderline",tokenize:function(e,n,t){let r;let l=this,i=l.events.length;for(;i--;)if("lineEnding"!==l.events[i][1].type&&"linePrefix"!==l.events[i][1].type&&"content"!==l.events[i][1].type){r="paragraph"===l.events[i][1].type;break}return function(n){return!l.parser.lazy[l.now().line]&&(l.interrupt||r)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),function t(r){return r===n?(e.consume(r),t):(e.exit("setextHeadingLineSequence"),Z(e,o,"lineSuffix")(r))}(n)):t(n)};function o(r){return null===r||W(r)?(e.exit("setextHeadingLine"),n(r)):t(r)}},resolveTo:function(e,n){let t,r,l,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){t=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),l||"definition"!==e[i][1].type||(l=i);let o={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",l?(e.splice(r,0,["enter",o,n]),e.splice(l+1,0,["exit",e[t][1],n]),e[t][1].end=Object.assign({},e[l][1].end)):e[t][1]=o,e.push(["exit",o,n]),e}},eF=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],eT=["pre","script","style","textarea"],eP={tokenize:function(e,n,t){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(en,n,t)}},partial:!0},eO={name:"codeFenced",tokenize:function(e,n,t){let r;let l=this,i={tokenize:function(e,n,t){let l=0;return Z(e,function(n){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function n(o){return o===r?(e.consume(o),l++,n):l1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let f=Object.assign({},e[t][1].end),p=Object.assign({},e[c][1].start);eV(f,-u),eV(p,u),i={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[t][1].end)},o={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:p},l={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[t][1].end),end:Object.assign({},e[c][1].start)},r={type:u>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},o.end)},e[t][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},o.end),a=[],e[t][1].end.offset-e[t][1].start.offset&&(a=j(a,[["enter",e[t][1],n],["exit",e[t][1],n]])),a=j(a,[["enter",r,n],["enter",i,n],["exit",i,n],["enter",l,n]]),a=j(a,ep(n.parser.constructs.insideSpan.null,e.slice(t+1,c),n)),a=j(a,[["exit",l,n],["enter",o,n],["exit",o,n],["exit",r,n]]),e[c][1].end.offset-e[c][1].start.offset?(s=2,a=j(a,[["enter",e[c][1],n],["exit",e[c][1],n]])):s=0,M(e,t-1,c-t+3,a),c=t+a.length-s-2;break}}for(c=-1;++ci&&"whitespace"===e[l][1].type&&(l-=2),"atxHeadingSequence"===e[l][1].type&&(i===l-1||l-4>i&&"whitespace"===e[l-2][1].type)&&(l-=i+1===l?2:4),l>i&&(t={type:"atxHeadingText",start:e[i][1].start,end:e[l][1].end},r={type:"chunkText",start:e[i][1].start,end:e[l][1].end,contentType:"text"},M(e,i,l-i+1,[["enter",t,n],["enter",r,n],["exit",r,n],["exit",t,n]])),e}},42:ed,45:[eA,ed],60:{name:"htmlFlow",tokenize:function(e,n,t){let r,l,i,o,u;let a=this;return function(n){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),s};function s(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),d):63===o?(e.consume(o),r=3,a.interrupt?n:L):B(o)?(e.consume(o),i=String.fromCharCode(o),l=!0,h):t(o)}function c(l){return 45===l?(e.consume(l),r=2,f):91===l?(e.consume(l),r=5,i="CDATA[",o=0,p):B(l)?(e.consume(l),r=4,a.interrupt?n:L):t(l)}function f(r){return 45===r?(e.consume(r),a.interrupt?n:L):t(r)}function p(r){return r===i.charCodeAt(o++)?(e.consume(r),o===i.length?a.interrupt?n:C:p):t(r)}function d(n){return B(n)?(e.consume(n),i=String.fromCharCode(n),h):t(n)}function h(o){return null===o||47===o||62===o||$(o)?47!==o&&l&&eT.includes(i.toLowerCase())?(r=1,a.interrupt?n(o):C(o)):eF.includes(i.toLowerCase())?(r=6,47===o)?(e.consume(o),m):a.interrupt?n(o):C(o):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?t(o):l?g(o):function n(t){return Q(t)?(e.consume(t),n):S(t)}(o)):45===o||H(o)?(e.consume(o),i+=String.fromCharCode(o),h):t(o)}function m(r){return 62===r?(e.consume(r),a.interrupt?n:C):t(r)}function g(n){return 47===n?(e.consume(n),S):58===n||95===n||B(n)?(e.consume(n),y):Q(n)?(e.consume(n),g):S(n)}function y(n){return 45===n||46===n||58===n||95===n||H(n)?(e.consume(n),y):x(n)}function x(n){return 61===n?(e.consume(n),k):Q(n)?(e.consume(n),x):g(n)}function k(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),u=n,v):Q(n)?(e.consume(n),k):(u=null,function n(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||$(t)?x(t):(e.consume(t),n)}(n))}function v(n){return null===n||W(n)?t(n):n===u?(e.consume(n),b):(e.consume(n),v)}function b(e){return 47===e||62===e||Q(e)?g(e):t(e)}function S(n){return 62===n?(e.consume(n),w):t(n)}function w(n){return Q(n)?(e.consume(n),w):null===n||W(n)?C(n):t(n)}function C(n){return 45===n&&2===r?(e.consume(n),F):60===n&&1===r?(e.consume(n),T):62===n&&4===r?(e.consume(n),I):63===n&&3===r?(e.consume(n),L):93===n&&5===r?(e.consume(n),O):W(n)&&(6===r||7===r)?e.check(eP,I,E)(n):null===n||W(n)?E(n):(e.consume(n),C)}function E(n){return e.exit("htmlFlowData"),function n(t){return null===t?D(t):W(t)?e.attempt({tokenize:A,partial:!0},n,D)(t):(e.enter("htmlFlowData"),C(t))}(n)}function A(e,n,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r};function r(e){return a.parser.lazy[a.now().line]?t(e):n(e)}}function F(n){return 45===n?(e.consume(n),L):C(n)}function T(n){return 47===n?(e.consume(n),i="",P):C(n)}function P(n){return 62===n&&eT.includes(i.toLowerCase())?(e.consume(n),I):B(n)&&i.length<8?(e.consume(n),i+=String.fromCharCode(n),P):C(n)}function O(n){return 93===n?(e.consume(n),L):C(n)}function L(n){return 62===n?(e.consume(n),I):45===n&&2===r?(e.consume(n),L):C(n)}function I(n){return null===n||W(n)?(e.exit("htmlFlowData"),D(n)):(e.consume(n),I)}function D(t){return e.exit("htmlFlow"),n(t)}},resolveTo:function(e){let n=e.length;for(;n--&&("enter"!==e[n][0]||"htmlFlow"!==e[n][1].type););return n>1&&"linePrefix"===e[n-2][1].type&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e},concrete:!0},61:eA,95:ed,96:eO,126:eO},eK={38:eD,92:ez},eX={[-5]:eM,[-4]:eM,[-3]:eM,33:eN,38:eD,42:eU,60:[{name:"autolink",tokenize:function(e,n,t){let r=1;return function(n){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l};function l(n){return B(n)?(e.consume(n),i):V(n)?u(n):t(n)}function i(n){return 43===n||45===n||46===n||H(n)?function n(t){return 58===t?(e.consume(t),o):(43===t||45===t||46===t||H(t))&&r++<32?(e.consume(t),n):u(t)}(n):u(n)}function o(n){return 62===n?(e.exit("autolinkProtocol"),s(n)):null===n||32===n||60===n||q(n)?t(n):(e.consume(n),o)}function u(n){return 64===n?(e.consume(n),r=0,a):V(n)?(e.consume(n),u):t(n)}function a(n){return H(n)?function n(l){return 46===l?(e.consume(l),r=0,a):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",s(l)):function l(i){return(45===i||H(i))&&r++<63?(e.consume(i),45===i?l:n):t(i)}(l)}(n):t(n)}function s(t){return e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.exit("autolink"),n}}},{name:"htmlText",tokenize:function(e,n,t){let r,l,i,o;let u=this;return function(n){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(n),a};function a(n){return 33===n?(e.consume(n),s):47===n?(e.consume(n),S):63===n?(e.consume(n),v):B(n)?(e.consume(n),C):t(n)}function s(n){return 45===n?(e.consume(n),c):91===n?(e.consume(n),l="CDATA[",i=0,m):B(n)?(e.consume(n),k):t(n)}function c(n){return 45===n?(e.consume(n),f):t(n)}function f(n){return null===n||62===n?t(n):45===n?(e.consume(n),p):d(n)}function p(e){return null===e||62===e?t(e):d(e)}function d(n){return null===n?t(n):45===n?(e.consume(n),h):W(n)?(o=d,L(n)):(e.consume(n),d)}function h(n){return 45===n?(e.consume(n),D):d(n)}function m(n){return n===l.charCodeAt(i++)?(e.consume(n),i===l.length?g:m):t(n)}function g(n){return null===n?t(n):93===n?(e.consume(n),y):W(n)?(o=g,L(n)):(e.consume(n),g)}function y(n){return 93===n?(e.consume(n),x):g(n)}function x(n){return 62===n?D(n):93===n?(e.consume(n),x):g(n)}function k(n){return null===n||62===n?D(n):W(n)?(o=k,L(n)):(e.consume(n),k)}function v(n){return null===n?t(n):63===n?(e.consume(n),b):W(n)?(o=v,L(n)):(e.consume(n),v)}function b(e){return 62===e?D(e):v(e)}function S(n){return B(n)?(e.consume(n),w):t(n)}function w(n){return 45===n||H(n)?(e.consume(n),w):function n(t){return W(t)?(o=n,L(t)):Q(t)?(e.consume(t),n):D(t)}(n)}function C(n){return 45===n||H(n)?(e.consume(n),C):47===n||62===n||$(n)?E(n):t(n)}function E(n){return 47===n?(e.consume(n),D):58===n||95===n||B(n)?(e.consume(n),A):W(n)?(o=E,L(n)):Q(n)?(e.consume(n),E):D(n)}function A(n){return 45===n||46===n||58===n||95===n||H(n)?(e.consume(n),A):function n(t){return 61===t?(e.consume(t),F):W(t)?(o=n,L(t)):Q(t)?(e.consume(t),n):E(t)}(n)}function F(n){return null===n||60===n||61===n||62===n||96===n?t(n):34===n||39===n?(e.consume(n),r=n,T):W(n)?(o=F,L(n)):Q(n)?(e.consume(n),F):(e.consume(n),r=void 0,O)}function T(n){return n===r?(e.consume(n),P):null===n?t(n):W(n)?(o=T,L(n)):(e.consume(n),T)}function P(e){return 62===e||47===e||$(e)?E(e):t(e)}function O(n){return null===n||34===n||39===n||60===n||61===n||96===n?t(n):62===n||$(n)?E(n):(e.consume(n),O)}function L(n){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Z(e,I,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function I(n){return e.enter("htmlTextData"),o(n)}function D(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),n):t(r)}}}],91:eq,92:[{name:"hardBreakEscape",tokenize:function(e,n,t){return function(n){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(n),r};function r(r){return W(r)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),n(r)):t(r)}}},ez],93:ej,95:eU,96:{name:"codeText",tokenize:function(e,n,t){let r,l,i=0;return function(n){return e.enter("codeText"),e.enter("codeTextSequence"),function n(t){return 96===t?(e.consume(t),i++,n):(e.exit("codeTextSequence"),o(t))}(n)};function o(a){return null===a?t(a):96===a?(l=e.enter("codeTextSequence"),r=0,function t(o){return 96===o?(e.consume(o),r++,t):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(o)):(l.type="codeTextData",u(o))}(a)):32===a?(e.enter("space"),e.consume(a),e.exit("space"),o):W(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):(e.enter("codeTextData"),u(a))}function u(n){return null===n||32===n||96===n||W(n)?(e.exit("codeTextData"),o(n)):(e.consume(n),u)}},resolve:function(e){let n,t,r=e.length-4,l=3;if(("lineEnding"===e[3][1].type||"space"===e[l][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(n=l;++n13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(65535&t)==65535||(65535&t)==65534||t>1114111?"�":String.fromCharCode(t)}let e2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function e4(e,n,t){if(n)return n;let r=t.charCodeAt(0);if(35===r){let l=t.charCodeAt(1),i=120===l||88===l;return e0(t.slice(i?2:1),i?16:10)}return eI(t)||e}let e3={}.hasOwnProperty,e6=function(e,n,t){let l,i,o,a;return"string"!=typeof n&&(t=n,n=void 0),(function(e={}){let n=function e(n,t){let r=-1;for(;++r0){let y=u[u.length-1],x=y[1]||e5;x.call(d,void 0,y[0])}for(t.position={start:i(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:i(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h-1&&(t[0]=t[0].slice(l)),o>0&&t.push(e[i].slice(0,o))),t}(o,e)}function p(){return Object.assign({},r)}function d(e,n){n.restore()}function h(e,n){return function(t,l,i){let o,c,f,d;return Array.isArray(t)?h(t):"tokenize"in t?h([t]):function(e){let n=null!==e&&t[e],r=null!==e&&t.null,l=[...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]];return h(l)(e)};function h(e){return(o=e,c=0,0===e.length)?i:m(e[c])}function m(e){return function(t){return(d=function(){let e=p(),n=s.previous,t=s.currentConstruct,l=s.events.length,i=Array.from(u);return{restore:function(){r=e,s.previous=n,s.currentConstruct=t,s.events.length=l,u=i,g()},from:l}}(),f=e,e.partial||(s.currentConstruct=e),e.name&&s.parser.constructs.disable.null.includes(e.name))?x(t):e.tokenize.call(n?Object.assign(Object.create(s),n):s,a,y,x)(t)}}function y(n){return e(f,d),l}function x(e){return(d.restore(),++c{let t=this.data("settings");return e6(n,Object.assign({},t,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))};Object.assign(this,{Parser:n})},e7=function(e,n,t){var r={type:String(e)};return null==t&&("string"==typeof n||Array.isArray(n))?t=n:Object.assign(r,n),Array.isArray(t)?r.children=t:null!=t&&(r.value=String(t)),r};let e8=function(e){if(null==e)return nn;if("string"==typeof e)return ne(function(n){return n&&n.type===e});if("object"==typeof e)return Array.isArray(e)?function(e){let n=[],t=-1;for(;++t":"")+")"})),f;function f(){var s;let c,f,p,d=[];if((!n||l(o,u,a[a.length-1]||null))&&!1===(d=Array.isArray(s=t(o,a))?s:"number"==typeof s?[!0,s]:[s])[0])return d;if(o.children&&"skip"!==d[0])for(f=(r?o.children.length:-1)+i,p=a.concat(o);f>-1&&f-1?t.offset:null}}}let nu={}.hasOwnProperty;function na(e){return String(e||"").toUpperCase()}let ns={}.hasOwnProperty;function nc(e,n){let t=n.data||{};return"value"in n&&!(ns.call(t,"hName")||ns.call(t,"hProperties")||ns.call(t,"hChildren"))?e.augment(n,e7("text",n.value)):e(n,"div",nd(e,n))}function nf(e,n,t){let r;let l=n&&n.type;if(!l)throw Error("Expected node, got `"+n+"`");return("function"==typeof(r=ns.call(e.handlers,l)?e.handlers[l]:e.passThrough&&e.passThrough.includes(l)?np:e.unknownHandler)?r:nc)(e,n,t)}function np(e,n){return"children"in n?{...n,children:nd(e,n)}:n}function nd(e,n){let t=[];if("children"in n){let r=n.children,l=-1;for(;++l55295&&i<57344){let u=e.charCodeAt(t+1);i<56320&&u>56319&&u<57344?(o=String.fromCharCode(i,u),l=1):o="�"}else o=String.fromCharCode(i);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+l+1,o=""),l&&(t+=l,l=0)}return n.join("")+e.slice(r)}function nm(e,n){let t=[],r=-1;for(n&&t.push(e7("text","\n"));++r0&&t.push(e7("text","\n")),t}function ng(e,n){let t;let r=String(n.identifier),l=nh(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);-1===i?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,t=e.footnoteOrder.length):(e.footnoteCounts[r]++,t=i+1);let o=e.footnoteCounts[r];return e(n,"sup",[e(n.position,"a",{href:"#"+e.clobberPrefix+"fn-"+l,id:e.clobberPrefix+"fnref-"+l+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[e7("text",String(t))])])}function ny(e,n){let t=n.referenceType,r="]";if("collapsed"===t?r+="[]":"full"===t&&(r+="["+(n.label||n.identifier)+"]"),"imageReference"===n.type)return e7("text","!["+n.alt+r);let l=nd(e,n),i=l[0];i&&"text"===i.type?i.value="["+i.value:l.unshift(e7("text","["));let o=l[l.length-1];return o&&"text"===o.type?o.value+=r:l.push(e7("text",r)),l}function nx(e){let n=e.spread;return null==n?e.children.length>1:n}function nk(e,n,t){let r=0,l=e.length;if(n){let i=e.codePointAt(r);for(;9===i||32===i;)r++,i=e.codePointAt(r)}if(t){let o=e.codePointAt(l-1);for(;9===o||32===o;)l--,o=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}let nv={blockquote:function(e,n){return e(n,"blockquote",nm(nd(e,n),!0))},break:function(e,n){return[e(n,"br"),e7("text","\n")]},code:function(e,n){let t=n.value?n.value+"\n":"",r=n.lang&&n.lang.match(/^[^ \t]+(?=[ \t]|$)/),l={};r&&(l.className=["language-"+r]);let i=e(n,"code",l,[e7("text",t)]);return n.meta&&(i.data={meta:n.meta}),e(n.position,"pre",[i])},delete:function(e,n){return e(n,"del",nd(e,n))},emphasis:function(e,n){return e(n,"em",nd(e,n))},footnoteReference:ng,footnote:function(e,n){let t=e.footnoteById,r=1;for(;(r in t);)r++;let l=String(r);return t[l]={type:"footnoteDefinition",identifier:l,children:[{type:"paragraph",children:n.children}],position:n.position},ng(e,{type:"footnoteReference",identifier:l,position:n.position})},heading:function(e,n){return e(n,"h"+n.depth,nd(e,n))},html:function(e,n){return e.dangerous?e.augment(n,e7("raw",n.value)):null},imageReference:function(e,n){let t=e.definition(n.identifier);if(!t)return ny(e,n);let r={src:nh(t.url||""),alt:n.alt};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"img",r)},image:function(e,n){let t={src:nh(n.url),alt:n.alt};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"img",t)},inlineCode:function(e,n){return e(n,"code",[e7("text",n.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,n){let t=e.definition(n.identifier);if(!t)return ny(e,n);let r={href:nh(t.url||"")};return null!==t.title&&void 0!==t.title&&(r.title=t.title),e(n,"a",r,nd(e,n))},link:function(e,n){let t={href:nh(n.url)};return null!==n.title&&void 0!==n.title&&(t.title=n.title),e(n,"a",t,nd(e,n))},listItem:function(e,n,t){let r=nd(e,n),l=t?function(e){let n=e.spread,t=e.children,r=-1;for(;!n&&++r0&&u.children.unshift(e7("text"," ")),u.children.unshift(e(null,"input",{type:"checkbox",checked:n.checked,disabled:!0})),i.className=["task-list-item"]}let a=-1;for(;++a0,!0),r[0]),l=r.index+r[0].length,r=t.exec(n);return i.push(nk(n.slice(l),l>0,!1)),i.join("")}(String(n.value))))},thematicBreak:function(e,n){return e(n,"hr")},toml:nb,yaml:nb,definition:nb,footnoteDefinition:nb};function nb(){return null}let nS={}.hasOwnProperty;function nw(e,n){let t=function(e,n){let t=n||{},r=t.allowDangerousHtml||!1,l={};return o.dangerous=r,o.clobberPrefix=void 0===t.clobberPrefix||null===t.clobberPrefix?"user-content-":t.clobberPrefix,o.footnoteLabel=t.footnoteLabel||"Footnotes",o.footnoteLabelTagName=t.footnoteLabelTagName||"h2",o.footnoteLabelProperties=t.footnoteLabelProperties||{className:["sr-only"]},o.footnoteBackLabel=t.footnoteBackLabel||"Back to content",o.definition=function(e){let n=Object.create(null);if(!e||!e.type)throw Error("mdast-util-definitions expected node");return nr(e,"definition",e=>{let t=na(e.identifier);t&&!nu.call(n,t)&&(n[t]=e)}),function(e){let t=na(e);return t&&nu.call(n,t)?n[t]:null}}(e),o.footnoteById=l,o.footnoteOrder=[],o.footnoteCounts={},o.augment=i,o.handlers={...nv,...t.handlers},o.unknownHandler=t.unknownHandler,o.passThrough=t.passThrough,nr(e,"footnoteDefinition",e=>{let n=String(e.identifier).toUpperCase();nS.call(l,n)||(l[n]=e)}),o;function i(e,n){if(e&&"data"in e&&e.data){let t=e.data;t.hName&&("element"!==n.type&&(n={type:"element",tagName:"",properties:{},children:[]}),n.tagName=t.hName),"element"===n.type&&t.hProperties&&(n.properties={...n.properties,...t.hProperties}),"children"in n&&n.children&&t.hChildren&&(n.children=t.hChildren)}if(e){let r="type"in e?e:{position:e};!r||!r.position||!r.position.start||!r.position.start.line||!r.position.start.column||!r.position.end||!r.position.end.line||!r.position.end.column||(n.position={start:nl(r),end:ni(r)})}return n}function o(e,n,t,r){return Array.isArray(t)&&(r=t,t={}),i(e,{type:"element",tagName:n,properties:t||{},children:r||[]})}}(e,n),r=nf(t,e,null),l=function(e){let n=-1,t=[];for(;++n1?"-"+u:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};u>1&&s.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(u)}]}),a.length>0&&a.push({type:"text",value:" "}),a.push(s)}let c=l[l.length-1];if(c&&"element"===c.type&&"p"===c.tagName){let f=c.children[c.children.length-1];f&&"text"===f.type?f.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...a)}else l.push(...a);let p={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+o},children:nm(l,!0)};r.position&&(p.position=r.position),t.push(p)}return 0===t.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[e7("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:nm(t,!0)},{type:"text",value:"\n"}]}}(t);return l&&r.children.push(e7("text","\n"),l),Array.isArray(r)?{type:"root",children:r}:r}var nC=function(e,n){var t;return e&&"run"in e?(t,r,l)=>{e.run(nw(t,n),r,e=>{l(e)})}:(t=e||n,e=>nw(e,t))},nE=t(45697);class nA{constructor(e,n,t){this.property=e,this.normal=n,t&&(this.space=t)}}function nF(e,n){let t={},r={},l=-1;for(;++l"xlink:"+n.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),nq=nU({space:"xml",transform:(e,n)=>"xml:"+n.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function n$(e,n){return n in e?e[n]:n}function nW(e,n){return n$(e,n.toLowerCase())}let nQ=nU({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:nW,properties:{xmlns:null,xmlnsXLink:null}}),nY=nU({transform:(e,n)=>"role"===n?n:"aria-"+n.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:nI,ariaAutoComplete:null,ariaBusy:nI,ariaChecked:nI,ariaColCount:nz,ariaColIndex:nz,ariaColSpan:nz,ariaControls:nM,ariaCurrent:null,ariaDescribedBy:nM,ariaDetails:null,ariaDisabled:nI,ariaDropEffect:nM,ariaErrorMessage:null,ariaExpanded:nI,ariaFlowTo:nM,ariaGrabbed:nI,ariaHasPopup:null,ariaHidden:nI,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nM,ariaLevel:nz,ariaLive:null,ariaModal:nI,ariaMultiLine:nI,ariaMultiSelectable:nI,ariaOrientation:null,ariaOwns:nM,ariaPlaceholder:null,ariaPosInSet:nz,ariaPressed:nI,ariaReadOnly:nI,ariaRelevant:null,ariaRequired:nI,ariaRoleDescription:nM,ariaRowCount:nz,ariaRowIndex:nz,ariaRowSpan:nz,ariaSelected:nI,ariaSetSize:nz,ariaSort:null,ariaValueMax:nz,ariaValueMin:nz,ariaValueNow:nz,ariaValueText:null,role:null}}),nK=nU({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:nW,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nj,acceptCharset:nM,accessKey:nM,action:null,allow:null,allowFullScreen:nL,allowPaymentRequest:nL,allowUserMedia:nL,alt:null,as:null,async:nL,autoCapitalize:null,autoComplete:nM,autoFocus:nL,autoPlay:nL,capture:nL,charSet:null,checked:nL,cite:null,className:nM,cols:nz,colSpan:null,content:null,contentEditable:nI,controls:nL,controlsList:nM,coords:nz|nj,crossOrigin:null,data:null,dateTime:null,decoding:null,default:nL,defer:nL,dir:null,dirName:null,disabled:nL,download:nD,draggable:nI,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:nL,formTarget:null,headers:nM,height:nz,hidden:nL,high:nz,href:null,hrefLang:null,htmlFor:nM,httpEquiv:nM,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:nL,itemId:null,itemProp:nM,itemRef:nM,itemScope:nL,itemType:nM,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:nL,low:nz,manifest:null,max:null,maxLength:nz,media:null,method:null,min:null,minLength:nz,multiple:nL,muted:nL,name:null,nonce:null,noModule:nL,noValidate:nL,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:nL,optimum:nz,pattern:null,ping:nM,placeholder:null,playsInline:nL,poster:null,preload:null,readOnly:nL,referrerPolicy:null,rel:nM,required:nL,reversed:nL,rows:nz,rowSpan:nz,sandbox:nM,scope:null,scoped:nL,seamless:nL,selected:nL,shape:null,size:nz,sizes:null,slot:null,span:nz,spellCheck:nI,src:null,srcDoc:null,srcLang:null,srcSet:null,start:nz,step:null,style:null,tabIndex:nz,target:null,title:null,translate:null,type:null,typeMustMatch:nL,useMap:null,value:nI,width:nz,wrap:null,align:null,aLink:null,archive:nM,axis:null,background:null,bgColor:null,border:nz,borderColor:null,bottomMargin:nz,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:nL,declare:nL,event:null,face:null,frame:null,frameBorder:null,hSpace:nz,leftMargin:nz,link:null,longDesc:null,lowSrc:null,marginHeight:nz,marginWidth:nz,noResize:nL,noHref:nL,noShade:nL,noWrap:nL,object:null,profile:null,prompt:null,rev:null,rightMargin:nz,rules:null,scheme:null,scrolling:nI,standby:null,summary:null,text:null,topMargin:nz,valueType:null,version:null,vAlign:null,vLink:null,vSpace:nz,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:nL,disableRemotePlayback:nL,prefix:null,property:null,results:nz,security:null,unselectable:null}}),nX=nU({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:n$,properties:{about:nR,accentHeight:nz,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:nz,amplitude:nz,arabicForm:null,ascent:nz,attributeName:null,attributeType:null,azimuth:nz,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:nz,by:null,calcMode:null,capHeight:nz,className:nM,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:nz,diffuseConstant:nz,direction:null,display:null,dur:null,divisor:nz,dominantBaseline:null,download:nL,dx:null,dy:null,edgeMode:null,editable:null,elevation:nz,enableBackground:null,end:null,event:null,exponent:nz,externalResourcesRequired:null,fill:null,fillOpacity:nz,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:nj,g2:nj,glyphName:nj,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:nz,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:nz,horizOriginX:nz,horizOriginY:nz,id:null,ideographic:nz,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:nz,k:nz,k1:nz,k2:nz,k3:nz,k4:nz,kernelMatrix:nR,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:nz,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:nz,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:nz,overlineThickness:nz,paintOrder:null,panose1:null,path:null,pathLength:nz,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nM,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:nz,pointsAtY:nz,pointsAtZ:nz,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nR,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nR,rev:nR,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nR,requiredFeatures:nR,requiredFonts:nR,requiredFormats:nR,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:nz,specularExponent:nz,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:nz,strikethroughThickness:nz,string:null,stroke:null,strokeDashArray:nR,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:nz,strokeOpacity:nz,strokeWidth:null,style:null,surfaceScale:nz,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nR,tabIndex:nz,tableValues:null,target:null,targetX:nz,targetY:nz,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nR,to:null,transform:null,u1:null,u2:null,underlinePosition:nz,underlineThickness:nz,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:nz,values:null,vAlphabetic:nz,vMathematical:nz,vectorEffect:null,vHanging:nz,vIdeographic:nz,version:null,vertAdvY:nz,vertOriginX:nz,vertOriginY:nz,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:nz,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),nZ=nF([nq,nV,nQ,nY,nK],"html"),nJ=nF([nq,nV,nQ,nY,nX],"svg"),nG=function(e){if(null==e)return n0;if("string"==typeof e)return n1(function(n){return n&&n.type===e});if("object"==typeof e)return Array.isArray(e)?function(e){let n=[],t=-1;for(;++t":"")+")"})),f;function f(){var s;let c,f,p,d=[];if((!n||l(o,u,a[a.length-1]||null))&&!1===(d=Array.isArray(s=t(o,a))?s:"number"==typeof s?[!0,s]:[s])[0])return d;if(o.children&&"skip"!==d[0])for(f=(r?o.children.length:-1)+i,p=a.concat(o);f>-1&&f{n4(n,"element",(n,t,r)=>{let l;if(e.allowedElements?l=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(l=e.disallowedElements.includes(n.tagName)),!l&&e.allowElement&&"number"==typeof t&&(l=!e.allowElement(n,t,r)),l&&"number"==typeof t)return e.unwrapDisallowed&&n.children?r.children.splice(t,1,...n.children):r.children.splice(t,1),t})}}let n6=["http","https","mailto","tel"];var n5=t(82143);let n9=/^data[-\w.:]+$/i,n7=/-[a-z]/g,n8=/[A-Z]/g;function te(e){return"-"+e.toLowerCase()}function tn(e){return e.charAt(1).toUpperCase()}let tt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var tr=t(57848);let tl={}.hasOwnProperty,ti=new Set(["table","thead","tbody","tfoot","tr"]);function to(e,n){let t=-1,r=0;for(;++t for more info)`),delete ts[n]}let r=C().use(e9).use(e.remarkPlugins||[]).use(nC,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(n3,e),l=new y;"string"==typeof e.children?l.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);let o=r.runSync(r.parse(l),l);if("root"!==o.type)throw TypeError("Expected a `root` node");let u=i.createElement(i.Fragment,{},function e(n,t){let r;let l=[],o=-1;for(;++o4&&"data"===t.slice(0,4)&&n9.test(n)){if("-"===n.charAt(4)){let i=n.slice(5).replace(n7,tn);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{let o=n.slice(4);if(!n7.test(o)){let u=o.replace(n8,te);"-"!==u.charAt(0)&&(u="-"+u),n="data"+u}}l=nN}return new l(r,n)}(r.schema,n),i=t;null!=i&&i==i&&(Array.isArray(i)&&(i=l.commaSeparated?function(e,n){let t={},r=""===e[e.length-1]?[...e,""]:e;return r.join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(i):i.join(" ").trim()),"style"===l.property&&"string"==typeof i&&(i=function(e){let n={};try{tr(e,function(e,t){let r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;n[r.replace(/-([a-z])/g,tu)]=t})}catch{}return n}(i)),l.space&&l.property?e[tl.call(tt,l.property)?tt[l.property]:l.property]=i:l.attribute&&(e[l.attribute]=i))}(c,o,t.properties[o],n);("ol"===s||"ul"===s)&&n.listDepth++;let p=e(n,t);("ol"===s||"ul"===s)&&n.listDepth--,n.schema=a;let d=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},h=u.components&&tl.call(u.components,s)?u.components[s]:s,m="string"==typeof h||h===i.Fragment;if(!n5.isValidElementType(h))throw TypeError(`Component for name \`${s}\` not defined or is not renderable`);if(c.key=[s,d.start.line,d.start.column,r].join("-"),"a"===s&&u.linkTarget&&(c.target="function"==typeof u.linkTarget?u.linkTarget(String(c.href||""),t.children,"string"==typeof c.title?c.title:null):u.linkTarget),"a"===s&&u.transformLinkUri&&(c.href=u.transformLinkUri(String(c.href||""),t.children,"string"==typeof c.title?c.title:null)),m||"code"!==s||"element"!==l.type||"pre"===l.tagName||(c.inline=!0),m||"h1"!==s&&"h2"!==s&&"h3"!==s&&"h4"!==s&&"h5"!==s&&"h6"!==s||(c.level=Number.parseInt(s.charAt(1),10)),"img"===s&&u.transformImageUri&&(c.src=u.transformImageUri(String(c.src||""),String(c.alt||""),"string"==typeof c.title?c.title:null)),!m&&"li"===s&&"element"===l.type){let g=function(e){let n=-1;for(;++n0?i.createElement(h,c,p):i.createElement(h,c)}(n,r,o,t)):"text"===r.type?"element"===t.type&&ti.has(t.tagName)&&function(e){var n=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof n&&""===n.replace(/[ \t\n\f\r]/g,"")}(r)||l.push(r.value):"raw"!==r.type||n.options.skipHtml||l.push(r.value);return l}({options:e,schema:nZ,listDepth:0},o));return e.className&&(u=i.createElement("div",{className:e.className},u)),u}tc.defaultProps={transformLinkUri:function(e){let n=(e||"").trim(),t=n.charAt(0);if("#"===t||"/"===t)return n;let r=n.indexOf(":");if(-1===r)return n;let l=-1;for(;++ll||-1!==(l=n.indexOf("#"))&&r>l?n:"javascript:void(0)"}},tc.propTypes={children:nE.string,className:nE.string,allowElement:nE.func,allowedElements:nE.arrayOf(nE.string),disallowedElements:nE.arrayOf(nE.string),unwrapDisallowed:nE.bool,remarkPlugins:nE.arrayOf(nE.oneOfType([nE.object,nE.func,nE.arrayOf(nE.oneOfType([nE.bool,nE.string,nE.object,nE.func,nE.arrayOf(nE.any)]))])),rehypePlugins:nE.arrayOf(nE.oneOfType([nE.object,nE.func,nE.arrayOf(nE.oneOfType([nE.bool,nE.string,nE.object,nE.func,nE.arrayOf(nE.any)]))])),sourcePos:nE.bool,rawSourcePos:nE.bool,skipHtml:nE.bool,includeElementIndex:nE.bool,transformLinkUri:nE.oneOfType([nE.func,nE.bool]),linkTarget:nE.oneOfType([nE.func,nE.string]),transformImageUri:nE.func,components:nE.object}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/2206-53aea32a26a350a8.js b/static/web/_next/static/chunks/2206-53aea32a26a350a8.js deleted file mode 100644 index 05312a84c..000000000 --- a/static/web/_next/static/chunks/2206-53aea32a26a350a8.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2206],{10010:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var r=t(1413),o=t(67294),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},i=t(42135),l=function(e,n){return o.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:n,icon:a}))};l.displayName="CaretUpOutlined";var c=o.forwardRef(l)},32808:function(e,n,t){"use strict";t.d(n,{Z:function(){return b}});var r=t(4942),o=t(87462),a=t(94184),i=t.n(a),l=t(50132),c=t(67294),s=t(53124),u=t(65223),d=t(74902),f=t(97685),p=t(98423),v=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},h=c.createContext(null),y=c.forwardRef(function(e,n){var t=e.defaultValue,a=e.children,l=e.options,u=void 0===l?[]:l,y=e.prefixCls,m=e.className,g=e.style,x=e.onChange,E=v(e,["defaultValue","children","options","prefixCls","className","style","onChange"]),b=c.useContext(s.E_),k=b.getPrefixCls,Z=b.direction,w=c.useState(E.value||t||[]),N=(0,f.Z)(w,2),S=N[0],K=N[1],O=c.useState([]),P=(0,f.Z)(O,2),D=P[0],_=P[1];c.useEffect(function(){"value"in E&&K(E.value||[])},[E.value]);var R=function(){return u.map(function(e){return"string"==typeof e||"number"==typeof e?{label:e,value:e}:e})},M=k("checkbox",y),L="".concat(M,"-group"),T=(0,p.Z)(E,["value","disabled"]);u&&u.length>0&&(a=R().map(function(e){return c.createElement(C,{prefixCls:M,key:e.value.toString(),disabled:"disabled"in e?e.disabled:E.disabled,value:e.value,checked:S.includes(e.value),onChange:e.onChange,className:"".concat(L,"-item"),style:e.style},e.label)}));var I={toggleOption:function(e){var n=S.indexOf(e.value),t=(0,d.Z)(S);-1===n?t.push(e.value):t.splice(n,1),"value"in E||K(t);var r=R();null==x||x(t.filter(function(e){return D.includes(e)}).sort(function(e,n){return r.findIndex(function(n){return n.value===e})-r.findIndex(function(e){return e.value===n})}))},value:S,disabled:E.disabled,name:E.name,registerValue:function(e){_(function(n){return[].concat((0,d.Z)(n),[e])})},cancelValue:function(e){_(function(n){return n.filter(function(n){return n!==e})})}},j=i()(L,(0,r.Z)({},"".concat(L,"-rtl"),"rtl"===Z),m);return c.createElement("div",(0,o.Z)({className:j,style:g},T,{ref:n}),c.createElement(h.Provider,{value:I},a))}),m=c.memo(y),g=t(98866),x=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},C=c.forwardRef(function(e,n){var t,a,d=e.prefixCls,f=e.className,p=e.children,v=e.indeterminate,y=void 0!==v&&v,m=e.style,C=e.onMouseEnter,E=e.onMouseLeave,b=e.skipGroup,k=void 0!==b&&b,Z=e.disabled,w=x(e,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),N=c.useContext(s.E_),S=N.getPrefixCls,K=N.direction,O=c.useContext(h),P=(0,c.useContext)(u.aM).isFormItemInput,D=(0,c.useContext)(g.Z),_=null!==(a=(null==O?void 0:O.disabled)||Z)&&void 0!==a?a:D,R=c.useRef(w.value);c.useEffect(function(){null==O||O.registerValue(w.value)},[]),c.useEffect(function(){if(!k)return w.value!==R.current&&(null==O||O.cancelValue(R.current),null==O||O.registerValue(w.value),R.current=w.value),function(){return null==O?void 0:O.cancelValue(w.value)}},[w.value]);var M=S("checkbox",d),L=(0,o.Z)({},w);O&&!k&&(L.onChange=function(){w.onChange&&w.onChange.apply(w,arguments),O.toggleOption&&O.toggleOption({label:p,value:w.value})},L.name=O.name,L.checked=O.value.includes(w.value));var T=i()((t={},(0,r.Z)(t,"".concat(M,"-wrapper"),!0),(0,r.Z)(t,"".concat(M,"-rtl"),"rtl"===K),(0,r.Z)(t,"".concat(M,"-wrapper-checked"),L.checked),(0,r.Z)(t,"".concat(M,"-wrapper-disabled"),_),(0,r.Z)(t,"".concat(M,"-wrapper-in-form-item"),P),t),f),I=i()((0,r.Z)({},"".concat(M,"-indeterminate"),y));return c.createElement("label",{className:T,style:m,onMouseEnter:C,onMouseLeave:E},c.createElement(l.Z,(0,o.Z)({"aria-checked":y?"mixed":void 0},L,{prefixCls:M,className:I,disabled:_,ref:n})),void 0!==p&&c.createElement("span",null,p))}),E=C;E.Group=m,E.__ANT_CHECKBOX=!0;var b=E},52206:function(e,n,t){"use strict";t.d(n,{Z:function(){return t2}});var r,o,a,i=t(71002),l=t(4942),c=t(87462),s=t(97685),u=t(94184),d=t.n(u),f=t(1413),p=t(74902),v=t(67294),h=t(5110),y=t(64217),m=t(79370),g=t(96774),x=t.n(g),C=t(80334),E=t(48555),b=t(74204),k=t(45987),Z=t(42550);function w(e){return null==e?[]:Array.isArray(e)?e:[e]}function N(e,n){if(!n&&"number"!=typeof n)return e;for(var t=w(n),r=e,o=0;o=n);return{onHover:null==e?void 0:e.onHover,hovering:t}}),a=(o=(r=v.useContext(null==D?void 0:D.Context))||{}).listeners,i=o.getValue,l=v.useState(function(){return t(r?i():null)}),d=(u=(0,s.Z)(l,2))[0],f=u[1],(0,O.Z)(function(){if(r)return a.add(e),function(){a.delete(e)};function e(e){f(function(n){var r=t(e);return x()(n,r)?n:r})}},[r]),d),Z=k.onHover,w=k.hovering;return v.createElement(j,(0,c.Z)({},e,{colSpan:null!=m?m:C,rowSpan:b,hovering:w,ref:n,onHover:Z}))});A.displayName="WrappedCell";var z=v.createContext(null);function H(e,n,t,r,o){var a,i,l=t[e]||{},c=t[n]||{};"left"===l.fixed?a=r.left[e]:"right"===c.fixed&&(i=r.right[n]);var s=!1,u=!1,d=!1,f=!1,p=t[n+1],v=t[e-1];return"rtl"===o?void 0!==a?f=!(v&&"left"===v.fixed):void 0!==i&&(d=!(p&&"right"===p.fixed)):void 0!==a?s=!(p&&"left"===p.fixed):void 0!==i&&(u=!(v&&"right"===v.fixed)),{fixLeft:a,fixRight:i,lastFixLeft:s,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}function F(e){var n,t=e.cells,r=e.stickyOffsets,o=e.flattenColumns,a=e.rowComponent,i=e.cellComponent,l=e.onHeaderRow,s=e.index,u=v.useContext(z),d=u.prefixCls,f=u.direction;l&&(n=l(t.map(function(e){return e.column}),s));var p=S(t.map(function(e){return e.column}));return v.createElement(a,n,t.map(function(e,n){var t,a=e.column,l=H(e.colStart,e.colEnd,o,r,f);return a&&a.onHeaderCell&&(t=e.column.onHeaderCell(a)),v.createElement(A,(0,c.Z)({},e,{ellipsis:a.ellipsis,align:a.align,component:i,prefixCls:d,key:p[n]},l,{additionalProps:t,rowType:"header"}))}))}F.displayName="HeaderRow";var B=function(e){var n=e.stickyOffsets,t=e.columns,r=e.flattenColumns,o=e.onHeaderRow,a=v.useContext(z),i=a.prefixCls,l=a.getComponent,c=v.useMemo(function(){return function(e){var n=[];!function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n[o]=n[o]||[];var a=r;return t.filter(Boolean).map(function(t){var r={key:t.key,className:t.className||"",children:t.title,column:t,colStart:a},i=1,l=t.children;return l&&l.length>0&&(i=e(l,a,o+1).reduce(function(e,n){return e+n},0),r.hasSubColumns=!0),"colSpan"in t&&(i=t.colSpan),"rowSpan"in t&&(r.rowSpan=t.rowSpan),r.colSpan=i,r.colEnd=r.colStart+i-1,n[o].push(r),a+=i,i})}(e,0);for(var t=n.length,r=function(e){n[e].forEach(function(n){("rowSpan"in n)||n.hasSubColumns||(n.rowSpan=t-e)})},o=0;o1?t-1:0),o=1;o0?[].concat((0,p.Z)(e),(0,p.Z)(eo(o).map(function(e){return(0,f.Z)({fixed:r},e)}))):[].concat((0,p.Z)(e),[(0,f.Z)((0,f.Z)({},n),{},{fixed:r})])},[])}var ea=function(e,n){var t=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,i=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,p=e.rowExpandable,h=e.expandIconColumnIndex,y=e.direction,m=e.expandRowByClick,g=e.columnWidth,x=e.fixed,C=v.useMemo(function(){return r||er(o)},[r,o]),E=v.useMemo(function(){if(a){var e,n,r=C.slice();if(!r.includes(ee)){var o=h||0;o>=0&&r.splice(o,0,ee)}var f=r.indexOf(ee);r=r.filter(function(e,n){return e!==ee||n===f});var y=C[f];n=("left"===x||x)&&!h?"left":("right"===x||x)&&h===C.length?"right":y?y.fixed:null;var E=(e={},(0,l.Z)(e,Q,{className:"".concat(t,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,l.Z)(e,"title",c),(0,l.Z)(e,"fixed",n),(0,l.Z)(e,"className","".concat(t,"-row-expand-icon-cell")),(0,l.Z)(e,"width",g),(0,l.Z)(e,"render",function(e,n,r){var o=s(n,r),a=d({prefixCls:t,expanded:i.has(o),expandable:!p||p(n),record:n,onExpand:u});return m?v.createElement("span",{onClick:function(e){return e.stopPropagation()}},a):a}),e);return r.map(function(e){return e===ee?E:e})}return C.filter(function(e){return e!==ee})},[a,C,s,i,d,y]),b=v.useMemo(function(){var e=E;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e},[n,E,y]),Z=v.useMemo(function(){return"rtl"===y?eo(b).map(function(e){var n=e.fixed,t=(0,k.Z)(e,et),r=n;return"left"===n?r="right":"right"===n&&(r="left"),(0,f.Z)({fixed:r},t)}):eo(b)},[b,y]);return[b,Z]};function ei(e){var n=(0,v.useRef)(e),t=(0,v.useState)({}),r=(0,s.Z)(t,2)[1],o=(0,v.useRef)(null),a=(0,v.useRef)([]);return(0,v.useEffect)(function(){return function(){o.current=null}},[]),[n.current,function(e){a.current.push(e);var t=Promise.resolve();o.current=t,t.then(function(){if(o.current===t){var e=a.current,i=n.current;a.current=[],e.forEach(function(e){n.current=e(n.current)}),o.current=null,i!==n.current&&r({})}})}]}var el=["columnType"],ec=function(e){for(var n=e.colWidths,t=e.columns,r=e.columCount,o=[],a=r||t.length,i=!1,l=a-1;l>=0;l-=1){var s=n[l],u=t&&t[l],d=u&&u[Q];if(s||d||i){var f=d||{},p=(f.columnType,(0,k.Z)(f,el));o.unshift(v.createElement("col",(0,c.Z)({key:l,style:{width:s}},p))),i=!0}}return v.createElement("colgroup",null,o)},es=function(e){var n=e.className,t=e.children;return v.createElement("div",{className:n},t)},eu=v.createContext({}),ed=["children"];function ef(e){return e.children}ef.Row=function(e){var n=e.children,t=(0,k.Z)(e,ed);return v.createElement("tr",t,n)},ef.Cell=function(e){var n=e.className,t=e.index,r=e.children,o=e.colSpan,a=void 0===o?1:o,i=e.rowSpan,l=e.align,s=v.useContext(z),u=s.prefixCls,d=s.direction,f=v.useContext(eu),p=f.scrollColumnIndex,h=f.stickyOffsets,y=f.flattenColumns,m=t+a-1+1===p?a+1:a,g=H(t,t+m-1,y,h,d);return v.createElement(A,(0,c.Z)({className:n,index:t,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:m,rowSpan:i,render:function(){return r}},g))};var ep=function(e){var n=e.children,t=e.stickyOffsets,r=e.flattenColumns,o=v.useContext(z).prefixCls,a=r.length-1,i=r[a],l=v.useMemo(function(){return{stickyOffsets:t,flattenColumns:r,scrollColumnIndex:(null==i?void 0:i.scrollbar)?a:null}},[i,r,a,t]);return v.createElement(eu.Provider,{value:l},v.createElement("tfoot",{className:"".concat(o,"-summary")},n))};function ev(e){var n,t=e.prefixCls,r=e.record,o=e.onExpand,a=e.expanded,i=e.expandable,c="".concat(t,"-row-expand-icon");return i?v.createElement("span",{className:d()(c,(n={},(0,l.Z)(n,"".concat(t,"-row-expanded"),a),(0,l.Z)(n,"".concat(t,"-row-collapsed"),!a),n)),onClick:function(e){o(r,e),e.stopPropagation()}}):v.createElement("span",{className:d()(c,"".concat(t,"-row-spaced"))})}var eh=t(64019),ey=t(27678),em=v.forwardRef(function(e,n){var t,r,o=e.scrollBodyRef,a=e.onScroll,i=e.offsetScroll,c=e.container,u=v.useContext(z).prefixCls,p=(null===(t=o.current)||void 0===t?void 0:t.scrollWidth)||0,h=(null===(r=o.current)||void 0===r?void 0:r.clientWidth)||0,y=p&&h*(h/p),m=v.useRef(),g=ei({scrollLeft:0,isHiddenScrollBar:!1}),x=(0,s.Z)(g,2),C=x[0],E=x[1],k=v.useRef({delta:0,x:0}),Z=v.useState(!1),w=(0,s.Z)(Z,2),N=w[0],S=w[1],K=function(){S(!1)},O=function(e){var n,t=(e||(null===(n=window)||void 0===n?void 0:n.event)).buttons;if(!N||0===t){N&&S(!1);return}var r=k.current.x+e.pageX-k.current.x-k.current.delta;r<=0&&(r=0),r+y>=h&&(r=h-y),a({scrollLeft:r/h*(p+2)}),k.current.x=e.pageX},P=function(){if(o.current){var e=(0,ey.os)(o.current).top,n=e+o.current.offsetHeight,t=c===window?document.documentElement.scrollTop+window.innerHeight:(0,ey.os)(c).top+c.clientHeight;n-(0,b.Z)()<=t||e>=t-i?E(function(e){return(0,f.Z)((0,f.Z)({},e),{},{isHiddenScrollBar:!0})}):E(function(e){return(0,f.Z)((0,f.Z)({},e),{},{isHiddenScrollBar:!1})})}},D=function(e){E(function(n){return(0,f.Z)((0,f.Z)({},n),{},{scrollLeft:e/p*h||0})})};return(v.useImperativeHandle(n,function(){return{setScrollLeft:D}}),v.useEffect(function(){var e=(0,eh.Z)(document.body,"mouseup",K,!1),n=(0,eh.Z)(document.body,"mousemove",O,!1);return P(),function(){e.remove(),n.remove()}},[y,N]),v.useEffect(function(){var e=(0,eh.Z)(c,"scroll",P,!1),n=(0,eh.Z)(window,"resize",P,!1);return function(){e.remove(),n.remove()}},[c]),v.useEffect(function(){C.isHiddenScrollBar||E(function(e){var n=o.current;return n?(0,f.Z)((0,f.Z)({},e),{},{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):e})},[C.isHiddenScrollBar]),p<=h||!y||C.isHiddenScrollBar)?null:v.createElement("div",{style:{height:(0,b.Z)(),width:h,bottom:i},className:"".concat(u,"-sticky-scroll")},v.createElement("div",{onMouseDown:function(e){e.persist(),k.current.delta=e.pageX-C.scrollLeft,k.current.x=0,S(!0),e.preventDefault()},ref:m,className:d()("".concat(u,"-sticky-scroll-bar"),(0,l.Z)({},"".concat(u,"-sticky-scroll-bar-active"),N)),style:{width:"".concat(y,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))}),eg=(0,t(98924).Z)()?window:null,ex=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],eC=v.forwardRef(function(e,n){var t=e.className,r=e.noData,o=e.columns,a=e.flattenColumns,i=e.colWidths,c=e.columCount,s=e.stickyOffsets,u=e.direction,h=e.fixHeader,y=e.stickyTopOffset,m=e.stickyBottomOffset,g=e.stickyClassName,x=e.onScroll,C=e.maxContentScroll,E=e.children,b=(0,k.Z)(e,ex),w=v.useContext(z),N=w.prefixCls,S=w.scrollbarSize,K=w.isSticky,O=K&&!h?0:S,P=v.useRef(null),D=v.useCallback(function(e){(0,Z.mH)(n,e),(0,Z.mH)(P,e)},[]);v.useEffect(function(){var e;function n(e){var n=e.currentTarget,t=e.deltaX;t&&(x({currentTarget:n,scrollLeft:n.scrollLeft+t}),e.preventDefault())}return null===(e=P.current)||void 0===e||e.addEventListener("wheel",n),function(){var e;null===(e=P.current)||void 0===e||e.removeEventListener("wheel",n)}},[]);var _=v.useMemo(function(){return a.every(function(e){return e.width>=0})},[a]),R=a[a.length-1],M={fixed:R?R.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(N,"-cell-scrollbar")}}},L=(0,v.useMemo)(function(){return O?[].concat((0,p.Z)(o),[M]):o},[O,o]),T=(0,v.useMemo)(function(){return O?[].concat((0,p.Z)(a),[M]):a},[O,a]),I=(0,v.useMemo)(function(){var e=s.right,n=s.left;return(0,f.Z)((0,f.Z)({},s),{},{left:"rtl"===u?[].concat((0,p.Z)(n.map(function(e){return e+O})),[0]):n,right:"rtl"===u?e:[].concat((0,p.Z)(e.map(function(e){return e+O})),[0]),isSticky:K})},[O,s,K]),j=(0,v.useMemo)(function(){for(var e=[],n=0;n0)):(e0(o>0),e3(on.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},e5=v.forwardRef(function(e,n){var t,r=v.useContext(eQ),o=v.useContext(e1),a=v.useContext(eS.E_),i=a.getPrefixCls,s=a.direction,u=v.useRef(),f=(0,Z.sQ)(n,u),p=(0,v.useContext)(e6.aM).isFormItemInput,h=e.prefixCls,y=e.className,m=e.children,g=e.style,x=e.disabled,C=e8(e,["prefixCls","className","children","style","disabled"]),E=i("radio",h),b="button"===((null==r?void 0:r.optionType)||o)?"".concat(E,"-button"):E,k=(0,c.Z)({},C),w=v.useContext(e3.Z);k.disabled=x||w,r&&(k.name=r.name,k.onChange=function(n){var t,o;null===(t=e.onChange)||void 0===t||t.call(e,n),null===(o=null==r?void 0:r.onChange)||void 0===o||o.call(r,n)},k.checked=e.value===r.value,k.disabled=k.disabled||r.disabled);var N=d()("".concat(b,"-wrapper"),(t={},(0,l.Z)(t,"".concat(b,"-wrapper-checked"),k.checked),(0,l.Z)(t,"".concat(b,"-wrapper-disabled"),k.disabled),(0,l.Z)(t,"".concat(b,"-wrapper-rtl"),"rtl"===s),(0,l.Z)(t,"".concat(b,"-wrapper-in-form-item"),p),t),y);return v.createElement("label",{className:N,style:g,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},v.createElement(e4.Z,(0,c.Z)({},k,{type:"radio",prefixCls:b,ref:f})),void 0!==m?v.createElement("span",null,m):null)}),e7=v.forwardRef(function(e,n){var t,r=v.useContext(eS.E_),o=r.getPrefixCls,a=r.direction,i=v.useContext(eO.Z),u=(0,eY.Z)(e.defaultValue,{value:e.value}),f=(0,s.Z)(u,2),p=f[0],h=f[1],y=e.prefixCls,m=e.className,g=e.options,x=e.buttonStyle,C=e.disabled,E=e.children,b=e.size,k=e.style,Z=e.id,w=e.onMouseEnter,N=e.onMouseLeave,S=e.onFocus,K=e.onBlur,O=o("radio",y),P="".concat(O,"-group"),D=E;g&&g.length>0&&(D=g.map(function(e){return"string"==typeof e||"number"==typeof e?v.createElement(e5,{key:e.toString(),prefixCls:O,disabled:C,value:e,checked:p===e},e):v.createElement(e5,{key:"radio-group-value-options-".concat(e.value),prefixCls:O,disabled:e.disabled||C,value:e.value,checked:p===e.value,style:e.style},e.label)}));var _=b||i,R=d()(P,"".concat(P,"-").concat(void 0===x?"outline":x),(t={},(0,l.Z)(t,"".concat(P,"-").concat(_),_),(0,l.Z)(t,"".concat(P,"-rtl"),"rtl"===a),t),void 0===m?"":m);return v.createElement("div",(0,c.Z)({},(0,eJ.Z)(e),{className:R,style:k,onMouseEnter:w,onMouseLeave:N,onFocus:S,onBlur:K,id:Z,ref:n}),v.createElement(e0,{value:{onChange:function(n){var t=n.target.value;"value"in e||h(t);var r=e.onChange;r&&t!==p&&r(n)},value:p,disabled:e.disabled,name:e.name,optionType:e.optionType}},D))}),e9=v.memo(e7),ne=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},nn=v.forwardRef(function(e,n){var t=v.useContext(eS.E_).getPrefixCls,r=e.prefixCls,o=ne(e,["prefixCls"]),a=t("radio",r);return v.createElement(e2,{value:"button"},v.createElement(e5,(0,c.Z)({prefixCls:a},o,{type:"radio",ref:n})))}),nt=e5;nt.Button=nn,nt.Group=e9,nt.__ANT_RADIO=!0;var nr=t(15671),no=t(43144),na=t(97326),ni=t(60136),nl=t(33643),nc=t(15105),ns=v.createContext(null),nu=v.memo(function(e){for(var n,t=e.prefixCls,r=e.level,o=e.isStart,a=e.isEnd,i="".concat(t,"-indent-unit"),c=[],s=0;s1&&void 0!==arguments[1]?arguments[1]:null;return t.map(function(s,u){for(var d,v=nS(r?r.pos:"0",u),h=nf(s[a],v),y=0;y1&&void 0!==arguments[1]?arguments[1]:{},v=f.initWrapper,h=f.processEntity,y=f.onProcessFinished,m=f.externalGetKey,g=f.childrenPropName,x=f.fieldNames,C=arguments.length>2?arguments[2]:void 0,E={},b={},k={posEntities:E,keyEntities:b};return v&&(k=v(k)||k),n=function(e){var n=e.node,t=e.index,r=e.pos,o=e.key,a=e.parentPos,i=e.level,l={node:n,nodes:e.nodes,index:t,key:o,pos:r,level:i},c=nf(o,r);E[r]=l,b[c]=l,l.parent=E[a],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),h&&h(l,k)},t={externalGetKey:m||C,childrenPropName:g,fieldNames:x},a=(o=("object"===(0,i.Z)(t)?t:{externalGetKey:t})||{}).childrenPropName,l=o.externalGetKey,s=(c=np(o.fieldNames)).key,u=c.children,d=a||u,l?"string"==typeof l?r=function(e){return e[l]}:"function"==typeof l&&(r=function(e){return l(e)}):r=function(e,n){return nf(e[s],n)},function t(o,a,i,l){var c=o?o[d]:e,s=o?nS(i.pos,a):"0",u=o?[].concat((0,p.Z)(l),[o]):[];if(o){var f=r(o,s);n({node:o,index:a,pos:s,key:f,parentPos:i.node?i.pos:null,level:i.level+1,nodes:u})}c&&c.forEach(function(e,n){t(e,n,{node:o,pos:s,level:i?i.level+1:-1},u)})}(null),y&&y(k),k}function nm(e,n){var t=n.expandedKeys,r=n.selectedKeys,o=n.loadedKeys,a=n.loadingKeys,i=n.checkedKeys,l=n.halfCheckedKeys,c=n.dragOverNodeKey,s=n.dropPosition,u=n.keyEntities[e];return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function ng(e){var n=e.data,t=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,l=e.halfChecked,c=e.dragOver,s=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,p=e.active,v=e.eventKey,h=(0,f.Z)((0,f.Z)({},n),{},{expanded:t,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:c,dragOverGapTop:s,dragOverGapBottom:u,pos:d,active:p,key:v});return"props"in h||Object.defineProperty(h,"props",{get:function(){return(0,C.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}var nx=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],nC="open",nE="close",nb=function(e){(0,ni.Z)(t,e);var n=(0,nl.Z)(t);function t(){var e;(0,nr.Z)(this,t);for(var r=arguments.length,o=Array(r),a=0;a=0&&t.splice(r,1),t}function nw(e,n){var t=(e||[]).slice();return -1===t.indexOf(n)&&t.push(n),t}function nN(e){return e.split("-")}function nS(e,n){return"".concat(e,"-").concat(n)}function nK(e,n,t,r,o,a,i,l,c,s){var u,d,f=e.clientX,p=e.clientY,v=e.target.getBoundingClientRect(),h=v.top,y=v.height,m=(("rtl"===s?-1:1)*(((null==o?void 0:o.x)||0)-f)-12)/r,g=l[t.props.eventKey];if(p-1.5?a({dragNode:N,dropNode:S,dropPosition:1})?k=1:K=!1:a({dragNode:N,dropNode:S,dropPosition:0})?k=0:a({dragNode:N,dropNode:S,dropPosition:1})?k=1:K=!1:a({dragNode:N,dropNode:S,dropPosition:1})?k=1:K=!1,{dropPosition:k,dropLevelOffset:Z,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:b,dropContainerKey:0===k?null:(null===(d=g.parent)||void 0===d?void 0:d.key)||null,dropAllowed:K}}function nO(e,n){if(e)return n.multiple?e.slice():e.length?[e[0]]:e}function nP(e){var n;if(!e)return null;if(Array.isArray(e))n={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,i.Z)(e))return(0,C.ZP)(!1,"`checkedKeys` is not an array or an object"),null;n={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return n}function nD(e,n){var t=new Set;return(e||[]).forEach(function(e){!function e(r){if(!t.has(r)){var o=n[r];if(o){t.add(r);var a=o.parent;!o.node.disabled&&a&&e(a.key)}}}(e)}),(0,p.Z)(t)}function n_(e){if(null==e)throw TypeError("Cannot destructure "+e)}nk.displayName="TreeNode",nk.defaultProps={title:"---"},nk.isTreeNode=1;var nR=t(73453),nM=t(62874),nL=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],nT=function(e,n){var t=e.className,r=e.style,o=e.motion,a=e.motionNodes,i=e.motionType,l=e.onMotionStart,u=e.onMotionEnd,f=e.active,p=e.treeNodeRequiredProps,h=(0,k.Z)(e,nL),y=v.useState(!0),m=(0,s.Z)(y,2),g=m[0],x=m[1],C=v.useContext(ns).prefixCls,E=v.useRef(!1),b=function(){E.current||u(),E.current=!0};return((0,v.useEffect)(function(){a&&"hide"===i&&g&&x(!1)},[a]),(0,v.useEffect)(function(){return a&&l(),function(){a&&b()}},[]),a)?v.createElement(nM.Z,(0,c.Z)({ref:n,visible:g},o,{motionAppear:"show"===i,onAppearEnd:b,onLeaveEnd:b}),function(e,n){var t=e.className,r=e.style;return v.createElement("div",{ref:n,className:d()("".concat(C,"-treenode-motion"),t),style:r},a.map(function(e){var n=(0,c.Z)({},(n_(e.data),e.data)),t=e.title,r=e.key,o=e.isStart,a=e.isEnd;delete n.children;var i=nm(r,p);return v.createElement(nk,(0,c.Z)({},n,i,{title:t,active:f,data:e.data,key:r,isStart:o,isEnd:a}))}))}):v.createElement(nk,(0,c.Z)({domRef:n,className:t,style:r},h,{active:f}))};nT.displayName="MotionTreeNode";var nI=v.forwardRef(nT);function nj(e,n,t){var r=e[e.findIndex(function(e){return e.key===t})+1],o=n.findIndex(function(e){return e.key===t});if(r){var a=n.findIndex(function(e){return e.key===r.key});return n.slice(o+1,a)}return n.slice(o+1)}var nA=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],nz={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},nH=function(){},nF="RC_TREE_MOTION_".concat(Math.random()),nB={key:nF},nV={key:nF,level:0,index:0,pos:"0",node:nB,nodes:[nB]},nW={parent:null,children:[],pos:nV.pos,data:nB,title:null,key:nF,isStart:[],isEnd:[]};function nU(e,n,t,r){return!1!==n&&t?e.slice(0,Math.ceil(t/r)+1):e}function nG(e){return nf(e.key,e.pos)}var nq=v.forwardRef(function(e,n){var t=e.prefixCls,r=e.data,o=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,i=e.checkedKeys,l=e.loadedKeys,u=e.loadingKeys,d=e.halfCheckedKeys,f=e.keyEntities,p=e.disabled,h=e.dragging,y=e.dragOverNodeKey,m=e.dropPosition,g=e.motion,x=e.height,C=e.itemHeight,E=e.virtual,b=e.focusable,Z=e.activeItem,w=e.focused,N=e.tabIndex,S=e.onKeyDown,K=e.onFocus,O=e.onBlur,P=e.onActiveChange,D=e.onListChangeStart,_=e.onListChangeEnd,R=(0,k.Z)(e,nA),M=v.useRef(null),L=v.useRef(null);v.useImperativeHandle(n,function(){return{scrollTo:function(e){M.current.scrollTo(e)},getIndentWidth:function(){return L.current.offsetWidth}}});var T=v.useState(o),I=(0,s.Z)(T,2),j=I[0],A=I[1],z=v.useState(r),H=(0,s.Z)(z,2),F=H[0],B=H[1],V=v.useState(r),W=(0,s.Z)(V,2),U=W[0],G=W[1],q=v.useState([]),X=(0,s.Z)(q,2),$=X[0],Y=X[1],J=v.useState(null),Q=(0,s.Z)(J,2),ee=Q[0],en=Q[1],et=v.useRef(r);function er(){var e=et.current;B(e),G(e),Y([]),en(null),_()}et.current=r,v.useEffect(function(){A(o);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=e.length,r=n.length;if(1!==Math.abs(t-r))return{add:!1,key:null};function o(e,n){var t=new Map;e.forEach(function(e){t.set(e,!0)});var r=n.filter(function(e){return!t.has(e)});return 1===r.length?r[0]:null}return t ").concat(n);return n}(Z)),v.createElement("div",null,v.createElement("input",{style:nz,disabled:!1===b||p,tabIndex:!1!==b?N:null,onKeyDown:S,onFocus:K,onBlur:O,value:"",onChange:nH,"aria-label":"for screen reader"})),v.createElement("div",{className:"".concat(t,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},v.createElement("div",{className:"".concat(t,"-indent")},v.createElement("div",{ref:L,className:"".concat(t,"-indent-unit")}))),v.createElement(nR.Z,(0,c.Z)({},R,{data:g?U:r,itemKey:nG,height:x,fullHeight:!1,virtual:E,itemHeight:C,prefixCls:"".concat(t,"-list"),ref:M,onVisibleChange:function(e,n){var t=new Set(e);n.filter(function(e){return!t.has(e)}).some(function(e){return nG(e)===nF})&&er()}}),function(e){var n=e.pos,t=(0,c.Z)({},(n_(e.data),e.data)),r=e.title,o=e.key,a=e.isStart,i=e.isEnd,l=nf(o,n);delete t.key,delete t.children;var s=nm(l,eo);return v.createElement(nI,(0,c.Z)({},t,s,{title:r,active:!!Z&&o===Z.key,pos:n,data:e.data,isStart:a,isEnd:i,motion:g,motionNodes:o===nF?$:null,motionType:ee,onMotionStart:D,onMotionEnd:er,treeNodeRequiredProps:eo,onMouseMove:function(){P(null)}}))}))});function nX(e,n){var t=new Set;return e.forEach(function(e){n.has(e)||t.add(e)}),t}function n$(e){var n=e||{},t=n.disabled,r=n.disableCheckbox,o=n.checkable;return!!(t||r)||!1===o}function nY(e,n,t,r){var o,a=[];o=r||n$;var i=new Set(e.filter(function(e){var n=!!t[e];return n||a.push(e),n})),l=new Map,c=0;return Object.keys(t).forEach(function(e){var n=t[e],r=n.level,o=l.get(r);o||(o=new Set,l.set(r,o)),o.add(n),c=Math.max(c,r)}),(0,C.ZP)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),!0===n?function(e,n,t,r){for(var o=new Set(e),a=new Set,i=0;i<=t;i+=1)(n.get(i)||new Set).forEach(function(e){var n=e.key,t=e.node,a=e.children,i=void 0===a?[]:a;o.has(n)&&!r(t)&&i.filter(function(e){return!r(e.node)}).forEach(function(e){o.add(e.key)})});for(var l=new Set,c=t;c>=0;c-=1)(n.get(c)||new Set).forEach(function(e){var n=e.parent;if(!(r(e.node)||!e.parent||l.has(e.parent.key))){if(r(e.parent.node)){l.add(n.key);return}var t=!0,i=!1;(n.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var n=e.key,r=o.has(n);t&&!r&&(t=!1),!i&&(r||a.has(n))&&(i=!0)}),t&&o.add(n.key),i&&a.add(n.key),l.add(n.key)}});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(nX(a,o))}}(i,l,c,o):function(e,n,t,r,o){for(var a=new Set(e),i=new Set(n),l=0;l<=r;l+=1)(t.get(l)||new Set).forEach(function(e){var n=e.key,t=e.node,r=e.children,l=void 0===r?[]:r;a.has(n)||i.has(n)||o(t)||l.filter(function(e){return!o(e.node)}).forEach(function(e){a.delete(e.key)})});i=new Set;for(var c=new Set,s=r;s>=0;s-=1)(t.get(s)||new Set).forEach(function(e){var n=e.parent;if(!(o(e.node)||!e.parent||c.has(e.parent.key))){if(o(e.parent.node)){c.add(n.key);return}var t=!0,r=!1;(n.children||[]).filter(function(e){return!o(e.node)}).forEach(function(e){var n=e.key,o=a.has(n);t&&!o&&(t=!1),!r&&(o||i.has(n))&&(r=!0)}),t||a.delete(n.key),r&&i.add(n.key),c.add(n.key)}});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(nX(i,a))}}(i,n.halfCheckedKeys,l,c,o)}nq.displayName="NodeList";var nJ=function(e){(0,ni.Z)(t,e);var n=(0,nl.Z)(t);function t(){var e;(0,nr.Z)(this,t);for(var r=arguments.length,o=Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:[];n.forEach(function(n){var t=n.key,o=n.children;r.push(t),e(o)})}(i[c].children),r),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(s),window.addEventListener("dragend",e.onWindowDragEnd),null==l||l({event:n,node:ng(t.props)})},e.onNodeDragEnter=function(n,t){var r=e.state,o=r.expandedKeys,a=r.keyEntities,i=r.dragChildrenKeys,l=r.flattenNodes,c=r.indent,s=e.props,u=s.onDragEnter,d=s.onExpand,f=s.allowDrop,v=s.direction,h=t.props,y=h.pos,m=h.eventKey,g=(0,na.Z)(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==m&&(e.currentMouseOverDroppableNodeKey=m),!g){e.resetDragState();return}var x=nK(n,g,t,c,e.dragStartMousePosition,f,l,a,o,v),C=x.dropPosition,E=x.dropLevelOffset,b=x.dropTargetKey,k=x.dropContainerKey,Z=x.dropTargetPos,w=x.dropAllowed,N=x.dragOverNodeKey;if(-1!==i.indexOf(b)||!w||(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function(n){clearTimeout(e.delayedDragEnterLogic[n])}),g.props.eventKey!==t.props.eventKey&&(n.persist(),e.delayedDragEnterLogic[y]=window.setTimeout(function(){if(null!==e.state.draggingNodeKey){var r=(0,p.Z)(o),i=a[t.props.eventKey];i&&(i.children||[]).length&&(r=nw(o,t.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(r),null==d||d(r,{node:ng(t.props),expanded:!0,nativeEvent:n.nativeEvent})}},800)),g.props.eventKey===b&&0===E)){e.resetDragState();return}e.setState({dragOverNodeKey:N,dropPosition:C,dropLevelOffset:E,dropTargetKey:b,dropContainerKey:k,dropTargetPos:Z,dropAllowed:w}),null==u||u({event:n,node:ng(t.props),expandedKeys:o})},e.onNodeDragOver=function(n,t){var r=e.state,o=r.dragChildrenKeys,a=r.flattenNodes,i=r.keyEntities,l=r.expandedKeys,c=r.indent,s=e.props,u=s.onDragOver,d=s.allowDrop,f=s.direction,p=(0,na.Z)(e).dragNode;if(p){var v=nK(n,p,t,c,e.dragStartMousePosition,d,a,i,l,f),h=v.dropPosition,y=v.dropLevelOffset,m=v.dropTargetKey,g=v.dropContainerKey,x=v.dropAllowed,C=v.dropTargetPos,E=v.dragOverNodeKey;-1===o.indexOf(m)&&x&&(p.props.eventKey===m&&0===y?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():h===e.state.dropPosition&&y===e.state.dropLevelOffset&&m===e.state.dropTargetKey&&g===e.state.dropContainerKey&&C===e.state.dropTargetPos&&x===e.state.dropAllowed&&E===e.state.dragOverNodeKey||e.setState({dropPosition:h,dropLevelOffset:y,dropTargetKey:m,dropContainerKey:g,dropTargetPos:C,dropAllowed:x,dragOverNodeKey:E}),null==u||u({event:n,node:ng(t.props)}))}},e.onNodeDragLeave=function(n,t){e.currentMouseOverDroppableNodeKey!==t.props.eventKey||n.currentTarget.contains(n.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var r=e.props.onDragLeave;null==r||r({event:n,node:ng(t.props)})},e.onWindowDragEnd=function(n){e.onNodeDragEnd(n,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(n,t){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==r||r({event:n,node:ng(t.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDrop=function(n,t){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.state,i=a.dragChildrenKeys,l=a.dropPosition,c=a.dropTargetKey,s=a.dropTargetPos;if(a.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var d=(0,f.Z)((0,f.Z)({},nm(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===c,data:e.state.keyEntities[c].node}),p=-1!==i.indexOf(c);(0,C.ZP)(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var v=nN(s),h={event:n,node:ng(d),dragNode:e.dragNode?ng(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(i),dropToGap:0!==l,dropPosition:l+Number(v[v.length-1])};o||null==u||u(h),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(n,t){var r=e.state,o=r.expandedKeys,a=r.flattenNodes,i=t.expanded,l=t.key;if(!t.isLeaf&&!n.shiftKey&&!n.metaKey&&!n.ctrlKey){var c=a.filter(function(e){return e.key===l})[0],s=ng((0,f.Z)((0,f.Z)({},nm(l,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(i?nZ(o,l):nw(o,l)),e.onNodeExpand(n,s)}},e.onNodeClick=function(n,t){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(n,t),null==o||o(n,t)},e.onNodeDoubleClick=function(n,t){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(n,t),null==o||o(n,t)},e.onNodeSelect=function(n,t){var r=e.state.selectedKeys,o=e.state,a=o.keyEntities,i=o.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=t.selected,d=t[i.key],f=!u,p=(r=f?s?nw(r,d):[d]:nZ(r,d)).map(function(e){var n=a[e];return n?n.node:null}).filter(function(e){return e});e.setUncontrolledState({selectedKeys:r}),null==c||c(r,{event:"select",selected:f,node:t,selectedNodes:p,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,t,r){var o,a=e.state,i=a.keyEntities,l=a.checkedKeys,c=a.halfCheckedKeys,s=e.props,u=s.checkStrictly,d=s.onCheck,f=t.key,v={event:"check",node:t,checked:r,nativeEvent:n.nativeEvent};if(u){var h=r?nw(l,f):nZ(l,f);o={checked:h,halfChecked:nZ(c,f)},v.checkedNodes=h.map(function(e){return i[e]}).filter(function(e){return e}).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:h})}else{var y=nY([].concat((0,p.Z)(l),[f]),!0,i),m=y.checkedKeys,g=y.halfCheckedKeys;if(!r){var x=new Set(m);x.delete(f);var C=nY(Array.from(x),{checked:!1,halfCheckedKeys:g},i);m=C.checkedKeys,g=C.halfCheckedKeys}o=m,v.checkedNodes=[],v.checkedNodesPositions=[],v.halfCheckedKeys=g,m.forEach(function(e){var n=i[e];if(n){var t=n.node,r=n.pos;v.checkedNodes.push(t),v.checkedNodesPositions.push({node:t,pos:r})}}),e.setUncontrolledState({checkedKeys:m},!1,{halfCheckedKeys:g})}null==d||d(o,v)},e.onNodeLoad=function(n){var t=n.key,r=new Promise(function(r,o){e.setState(function(a){var i=a.loadedKeys,l=a.loadingKeys,c=void 0===l?[]:l,s=e.props,u=s.loadData,d=s.onLoad;return u&&-1===(void 0===i?[]:i).indexOf(t)&&-1===c.indexOf(t)?(u(n).then(function(){var o=nw(e.state.loadedKeys,t);null==d||d(o,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:o}),e.setState(function(e){return{loadingKeys:nZ(e.loadingKeys,t)}}),r()}).catch(function(n){if(e.setState(function(e){return{loadingKeys:nZ(e.loadingKeys,t)}}),e.loadingRetryTimes[t]=(e.loadingRetryTimes[t]||0)+1,e.loadingRetryTimes[t]>=10){var a=e.state.loadedKeys;(0,C.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:nw(a,t)}),r()}o(n)}),{loadingKeys:nw(c,t)}):null})});return r.catch(function(){}),r},e.onNodeMouseEnter=function(n,t){var r=e.props.onMouseEnter;null==r||r({event:n,node:t})},e.onNodeMouseLeave=function(n,t){var r=e.props.onMouseLeave;null==r||r({event:n,node:t})},e.onNodeContextMenu=function(n,t){var r=e.props.onRightClick;r&&(n.preventDefault(),r({event:n,node:t}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var t=arguments.length,r=Array(t),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,a=!0,i={};Object.keys(n).forEach(function(t){if(t in e.props){a=!1;return}o=!0,i[t]=n[t]}),o&&(!t||a)&&e.setState((0,f.Z)((0,f.Z)({},i),r))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,no.Z)(t,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,n,t=this.state,r=t.focused,o=t.flattenNodes,a=t.keyEntities,s=t.draggingNodeKey,u=t.activeKey,f=t.dropLevelOffset,p=t.dropContainerKey,h=t.dropTargetKey,m=t.dropPosition,g=t.dragOverNodeKey,x=t.indent,C=this.props,E=C.prefixCls,b=C.className,k=C.style,Z=C.showLine,w=C.focusable,N=C.tabIndex,S=C.selectable,K=C.showIcon,O=C.icon,P=C.switcherIcon,D=C.draggable,_=C.checkable,R=C.checkStrictly,M=C.disabled,L=C.motion,T=C.loadData,I=C.filterTreeNode,j=C.height,A=C.itemHeight,z=C.virtual,H=C.titleRender,F=C.dropIndicatorRender,B=C.onContextMenu,V=C.onScroll,W=C.direction,U=C.rootClassName,G=C.rootStyle,q=(0,y.Z)(this.props,{aria:!0,data:!0});return D&&(n="object"===(0,i.Z)(D)?D:"function"==typeof D?{nodeDraggable:D}:{}),v.createElement(ns.Provider,{value:{prefixCls:E,selectable:S,showIcon:K,icon:O,switcherIcon:P,draggable:n,draggingNodeKey:s,checkable:_,checkStrictly:R,disabled:M,keyEntities:a,dropLevelOffset:f,dropContainerKey:p,dropTargetKey:h,dropPosition:m,dragOverNodeKey:g,indent:x,direction:W,dropIndicatorRender:F,loadData:T,filterTreeNode:I,titleRender:H,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},v.createElement("div",{role:"tree",className:d()(E,b,U,(e={},(0,l.Z)(e,"".concat(E,"-show-line"),Z),(0,l.Z)(e,"".concat(E,"-focused"),r),(0,l.Z)(e,"".concat(E,"-active-focused"),null!==u),e)),style:G},v.createElement(nq,(0,c.Z)({ref:this.listRef,prefixCls:E,style:k,data:o,disabled:M,selectable:S,checkable:!!_,motion:L,dragging:null!==s,height:j,itemHeight:A,virtual:z,focusable:w,focused:r,tabIndex:void 0===N?0:N,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:B,onScroll:V},this.getTreeNodeRequiredProps(),q))))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t,r,o=n.prevProps,a={prevProps:e};function i(n){return!o&&n in e||o&&o[n]!==e[n]}var c=n.fieldNames;if(i("fieldNames")&&(c=np(e.fieldNames),a.fieldNames=c),i("treeData")?t=e.treeData:i("children")&&((0,C.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),t=nv(e.children)),t){a.treeData=t;var s=ny(t,{fieldNames:c});a.keyEntities=(0,f.Z)((0,l.Z)({},nF,nV),s.keyEntities)}var u=a.keyEntities||n.keyEntities;if(i("expandedKeys")||o&&i("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?nD(e.expandedKeys,u):e.expandedKeys;else if(!o&&e.defaultExpandAll){var d=(0,f.Z)({},u);delete d[nF],a.expandedKeys=Object.keys(d).map(function(e){return d[e].key})}else!o&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?nD(e.defaultExpandedKeys,u):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,t||a.expandedKeys){var p=nh(t||n.treeData,a.expandedKeys||n.expandedKeys,c);a.flattenNodes=p}if(e.selectable&&(i("selectedKeys")?a.selectedKeys=nO(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(a.selectedKeys=nO(e.defaultSelectedKeys,e))),e.checkable&&(i("checkedKeys")?r=nP(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?r=nP(e.defaultCheckedKeys)||{}:t&&(r=nP(e.checkedKeys)||{checkedKeys:n.checkedKeys,halfCheckedKeys:n.halfCheckedKeys}),r)){var v=r,h=v.checkedKeys,y=void 0===h?[]:h,m=v.halfCheckedKeys,g=void 0===m?[]:m;if(!e.checkStrictly){var x=nY(y,!0,u);y=x.checkedKeys,g=x.halfCheckedKeys}a.checkedKeys=y,a.halfCheckedKeys=g}return i("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),t}(v.Component);nJ.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var n=e.dropPosition,t=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case -1:o.top=0,o.left=-t*r;break;case 1:o.bottom=0,o.left=-t*r;break;case 0:o.bottom=0,o.left=r}return v.createElement("div",{style:o})},allowDrop:function(){return!0},expandAction:!1},nJ.TreeNode=nk;var nQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},n0=function(e,n){return v.createElement(ez.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:n,icon:nQ}))};n0.displayName="HolderOutlined";var n1=v.forwardRef(n0),n2=t(33603);function n4(e){var n,t=e.dropPosition,r=e.dropLevelOffset,o=e.prefixCls,a=e.indent,i=e.direction,c=void 0===i?"ltr":i,s="ltr"===c?"left":"right",u=(n={},(0,l.Z)(n,s,-r*a+4),(0,l.Z)(n,"ltr"===c?"right":"left",0),n);switch(t){case -1:u.top=-3;break;case 1:u.bottom=-3;break;default:u.bottom=-3,u[s]=a+4}return v.createElement("div",{style:u,className:"".concat(o,"-drop-indicator")})}var n3={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},n6=function(e,n){return v.createElement(ez.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:n,icon:n3}))};n6.displayName="CaretDownFilled";var n8=v.forwardRef(n6),n5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},n7=function(e,n){return v.createElement(ez.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:n,icon:n5}))};n7.displayName="FileOutlined";var n9=v.forwardRef(n7),te=t(50888),tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},tt=function(e,n){return v.createElement(ez.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:n,icon:tn}))};tt.displayName="MinusSquareOutlined";var tr=v.forwardRef(tt),to={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},ta=function(e,n){return v.createElement(ez.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:n,icon:to}))};ta.displayName="PlusSquareOutlined";var ti=v.forwardRef(ta),tl=t(96159),tc=v.forwardRef(function(e,n){var t,r=v.useContext(eS.E_),o=r.getPrefixCls,a=r.direction,s=r.virtual,u=e.prefixCls,f=e.className,p=e.showIcon,h=void 0!==p&&p,y=e.showLine,m=e.switcherIcon,g=e.blockNode,x=void 0!==g&&g,C=e.children,E=e.checkable,b=void 0!==E&&E,k=e.selectable,Z=void 0===k||k,w=e.draggable,N=e.motion,S=void 0===N?(0,c.Z)((0,c.Z)({},n2.ZP),{motionAppear:!1}):N,K=o("tree",u),O=(0,c.Z)((0,c.Z)({},e),{checkable:b,selectable:Z,showIcon:h,motion:S,blockNode:x,showLine:Boolean(y),dropIndicatorRender:n4}),P=v.useMemo(function(){if(!w)return!1;var e={};switch((0,i.Z)(w)){case"function":e.nodeDraggable=w;break;case"object":e=(0,c.Z)({},w)}return!1!==e.icon&&(e.icon=e.icon||v.createElement(n1,null)),e},[w]);return v.createElement(nJ,(0,c.Z)({itemHeight:20,ref:n,virtual:s},O,{prefixCls:K,className:d()((t={},(0,l.Z)(t,"".concat(K,"-icon-hide"),!h),(0,l.Z)(t,"".concat(K,"-block-node"),x),(0,l.Z)(t,"".concat(K,"-unselectable"),!Z),(0,l.Z)(t,"".concat(K,"-rtl"),"rtl"===a),t),f),direction:a,checkable:b?v.createElement("span",{className:"".concat(K,"-checkbox-inner")}):b,selectable:Z,switcherIcon:function(e){return function(e,n,t,r){var o,a=r.isLeaf,l=r.expanded;if(r.loading)return v.createElement(te.Z,{className:"".concat(e,"-switcher-loading-icon")});if(t&&"object"===(0,i.Z)(t)&&(o=t.showLeafIcon),a){if(!t)return null;if("boolean"!=typeof o&&o){var c="function"==typeof o?o(r):o;return(0,tl.l$)(c)?(0,tl.Tm)(c,{className:d()(c.props.className||"","".concat(e,"-switcher-line-custom-icon"))}):c}return o?v.createElement(n9,{className:"".concat(e,"-switcher-line-icon")}):v.createElement("span",{className:"".concat(e,"-switcher-leaf-line")})}var s="".concat(e,"-switcher-icon"),u="function"==typeof n?n(r):n;return(0,tl.l$)(u)?(0,tl.Tm)(u,{className:d()(u.props.className||"",s)}):u||(t?l?v.createElement(tr,{className:"".concat(e,"-switcher-line-icon")}):v.createElement(ti,{className:"".concat(e,"-switcher-line-icon")}):v.createElement(n8,{className:s}))}(K,m,y,e)},draggable:P}),C)}),ts={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},tu=function(e,n){return v.createElement(ez.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:n,icon:ts}))};tu.displayName="FolderOpenOutlined";var td=v.forwardRef(tu),tf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},tp=function(e,n){return v.createElement(ez.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:n,icon:tf}))};tp.displayName="FolderOutlined";var tv=v.forwardRef(tp);function th(e,n){e.forEach(function(e){var t=e.key,r=e.children;!1!==n(t,e)&&th(r||[],n)})}function ty(e,n){var t=(0,p.Z)(n),r=[];return th(e,function(e,n){var o=t.indexOf(e);return -1!==o&&(r.push(n),t.splice(o,1)),!!t.length}),r}(o=a||(a={}))[o.None=0]="None",o[o.Start=1]="Start",o[o.End=2]="End";var tm=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};function tg(e){var n=e.isLeaf,t=e.expanded;return n?v.createElement(n9,null):t?v.createElement(td,null):v.createElement(tv,null)}function tx(e){var n=e.treeData,t=e.children;return n||nv(t)}var tC=v.forwardRef(function(e,n){var t=e.defaultExpandAll,r=e.defaultExpandParent,o=e.defaultExpandedKeys,i=tm(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),u=v.useRef(),f=v.useRef(),h=function(){var e=ny(tx(i)).keyEntities;return t?Object.keys(e):r?nD(i.expandedKeys||o||[],e):i.expandedKeys||o},y=v.useState(i.selectedKeys||i.defaultSelectedKeys||[]),m=(0,s.Z)(y,2),g=m[0],x=m[1],C=v.useState(function(){return h()}),E=(0,s.Z)(C,2),b=E[0],k=E[1];v.useEffect(function(){"selectedKeys"in i&&x(i.selectedKeys)},[i.selectedKeys]),v.useEffect(function(){"expandedKeys"in i&&k(i.expandedKeys)},[i.expandedKeys]);var Z=v.useContext(eS.E_),w=Z.getPrefixCls,N=Z.direction,S=i.prefixCls,K=i.className,O=i.showIcon,P=i.expandAction,D=tm(i,["prefixCls","className","showIcon","expandAction"]),_=w("tree",S),R=d()("".concat(_,"-directory"),(0,l.Z)({},"".concat(_,"-directory-rtl"),"rtl"===N),K);return v.createElement(tc,(0,c.Z)({icon:tg,ref:n,blockNode:!0},D,{showIcon:void 0===O||O,expandAction:void 0===P?"click":P,prefixCls:_,className:R,expandedKeys:b,selectedKeys:g,onSelect:function(e,n){var t,r,o,l,s,d,v,h,y,m=i.multiple,g=n.node,C=n.nativeEvent,E=g.key,k=void 0===E?"":E,Z=tx(i),w=(0,c.Z)((0,c.Z)({},n),{selected:!0}),N=(null==C?void 0:C.ctrlKey)||(null==C?void 0:C.metaKey),S=null==C?void 0:C.shiftKey;m&&N?(y=e,u.current=k,f.current=y,w.selectedNodes=ty(Z,y)):m&&S?(y=Array.from(new Set([].concat((0,p.Z)(f.current||[]),(0,p.Z)((r=(t={treeData:Z,expandedKeys:b,startKey:k,endKey:u.current}).treeData,o=t.expandedKeys,l=t.startKey,s=t.endKey,d=[],v=a.None,l&&l===s?[l]:l&&s?(th(r,function(e){if(v===a.End)return!1;if(e===l||e===s){if(d.push(e),v===a.None)v=a.Start;else if(v===a.Start)return v=a.End,!1}else v===a.Start&&d.push(e);return o.includes(e)}),d):[]))))),w.selectedNodes=ty(Z,y)):(y=[k],u.current=k,f.current=y,w.selectedNodes=ty(Z,y)),null===(h=i.onSelect)||void 0===h||h.call(i,y,w),"selectedKeys"in i||x(y)},onExpand:function(e,n){var t;return"expandedKeys"in i||k(e),null===(t=i.onExpand)||void 0===t?void 0:t.call(i,e,n)}}))}),tE=tc;tE.DirectoryTree=tC,tE.TreeNode=nk;var tb=t(57838),tk=t(68795),tZ=t(69677),tw=function(e){var n=e.value,t=e.onChange,r=e.filterSearch,o=e.tablePrefixCls,a=e.locale;return r?v.createElement("div",{className:"".concat(o,"-filter-dropdown-search")},v.createElement(tZ.Z,{prefix:v.createElement(tk.Z,null),placeholder:a.filterSearchPlaceholder,onChange:t,value:n,htmlSize:1,className:"".concat(o,"-filter-dropdown-search-input")})):null},tN=function(e){e.keyCode===nc.Z.ENTER&&e.stopPropagation()},tS=function(e){return v.createElement("div",{className:e.className,onClick:function(e){return e.stopPropagation()},onKeyDown:tN},e.children)};function tK(e,n){return("string"==typeof n||"number"==typeof n)&&(null==n?void 0:n.toString().toLowerCase().includes(e.trim().toLowerCase()))}var tO=function(e){var n,t,r,o,a,i,u=e.tablePrefixCls,f=e.prefixCls,p=e.column,h=e.dropdownPrefixCls,y=e.columnKey,m=e.filterMultiple,g=e.filterMode,x=e.filterSearch,C=void 0!==x&&x,E=e.filterState,b=e.triggerFilter,k=e.locale,Z=e.children,w=e.getPopupContainer,N=p.filterDropdownOpen,S=p.onFilterDropdownOpenChange,K=p.filterDropdownVisible,O=p.onFilterDropdownVisibleChange,P=p.filterResetToDefaultFilteredValue,D=p.defaultFilteredValue,_=v.useState(!1),R=(0,s.Z)(_,2),M=R[0],L=R[1],T=!!(E&&((null===(r=E.filteredKeys)||void 0===r?void 0:r.length)||E.forceFiltered)),I=function(e){L(e),null==S||S(e),null==O||O(e)};o="boolean"==typeof N?N:"boolean"==typeof K?K:M;var j=null==E?void 0:E.filteredKeys,A=(n=v.useRef(j||[]),t=(0,tb.Z)(),[function(){return n.current},function(e){n.current=e,t()}]),z=(0,s.Z)(A,2),H=z[0],F=z[1],B=function(e){F(e.selectedKeys)};v.useEffect(function(){M&&B({selectedKeys:j||[]})},[j]);var V=v.useState([]),W=(0,s.Z)(V,2),U=W[0],G=W[1],q=v.useState(""),X=(0,s.Z)(q,2),$=X[0],Y=X[1],J=function(e){Y(e.target.value)};v.useEffect(function(){M||Y("")},[M]);var Q=function(e){var n=e&&e.length?e:null;if(null===n&&(!E||!E.filteredKeys)||eV()(n,null==E?void 0:E.filteredKeys))return null;b({column:p,key:y,filteredKeys:n})},ee=function(){I(!1),Q(H())},en=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1},n=e.confirm,t=e.closeDropdown;n&&Q([]),t&&I(!1),Y(""),P?F((D||[]).map(function(e){return String(e)})):F([])},et=d()((0,l.Z)({},"".concat(h,"-menu-without-submenu"),!(p.filters||[]).some(function(e){return e.children}))),er=function e(n){var t;return(0,c.Z)((0,c.Z)({},n),{text:n.title,value:n.key,children:(null===(t=n.children)||void 0===t?void 0:t.map(function(n){return e(n)}))||[]})};if("function"==typeof p.filterDropdown)a=p.filterDropdown({prefixCls:"".concat(h,"-custom"),setSelectedKeys:function(e){return B({selectedKeys:e})},selectedKeys:H(),confirm:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e.closeDropdown&&I(!1),Q(H())},clearFilters:en,filters:p.filters,visible:o,close:function(){I(!1)}});else if(p.filterDropdown)a=p.filterDropdown;else{var eo=H()||[];a=v.createElement(v.Fragment,null,0===(p.filters||[]).length?v.createElement(eq.Z,{image:eq.Z.PRESENTED_IMAGE_SIMPLE,description:k.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===(void 0===g?"menu":g)?v.createElement(v.Fragment,null,v.createElement(tw,{filterSearch:C,value:$,onChange:J,tablePrefixCls:u,locale:k}),v.createElement("div",{className:"".concat(u,"-filter-dropdown-tree")},m?v.createElement(eU.Z,{checked:eo.length===tD(p.filters).length,indeterminate:eo.length>0&&eo.lengthn.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},tT=t(84506),tI=t(80882),tj={},tA="SELECT_ALL",tz="SELECT_INVERT",tH="SELECT_NONE",tF=[],tB=t(39398),tV=t(10010),tW=t(94199),tU="ascend",tG="descend";function tq(e){return"object"===(0,i.Z)(e.sorter)&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function tX(e){return"function"==typeof e?e:!!e&&"object"===(0,i.Z)(e)&&!!e.compare&&e.compare}function t$(e,n,t){var r=[];function o(e,n){r.push({column:e,key:eT(e,n),multiplePriority:tq(e),sortOrder:e.sortOrder})}return(e||[]).forEach(function(e,a){var i=eI(a,t);e.children?("sortOrder"in e&&o(e,i),r=[].concat((0,p.Z)(r),(0,p.Z)(t$(e.children,n,i)))):e.sorter&&("sortOrder"in e?o(e,i):n&&e.defaultSortOrder&&r.push({column:e,key:eT(e,i),multiplePriority:tq(e),sortOrder:e.defaultSortOrder}))}),r}function tY(e){var n=e.column;return{column:n,order:e.sortOrder,field:n.dataIndex,columnKey:n.key}}function tJ(e){var n=e.filter(function(e){return e.sortOrder}).map(tY);return 0===n.length&&e.length?(0,c.Z)((0,c.Z)({},tY(e[e.length-1])),{column:void 0}):n.length<=1?n[0]||{}:n}function tQ(e,n,t){var r=n.slice().sort(function(e,n){return n.multiplePriority-e.multiplePriority}),o=e.slice(),a=r.filter(function(e){var n=e.column.sorter,t=e.sortOrder;return tX(n)&&t});return a.length?o.sort(function(e,n){for(var t=0;t2&&void 0!==arguments[2]&&arguments[2],r=(0,c.Z)((0,c.Z)({},eu),e);t&&(eu.resetPagination(),r.pagination.current&&(r.pagination.current=1),m&&m.onChange&&m.onChange(1,r.pagination.pageSize)),R&&!1!==R.scrollToFirstRowOnChange&&ei.body.current&&function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.getContainer,r=n.callback,o=n.duration,a=void 0===o?450:o,i=(void 0===t?function(){return window}:t)(),l=function(e,n){if("undefined"==typeof window)return 0;var t,r,o=n?"scrollTop":"scrollLeft",a=0;return eL(e)?a=e[n?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:e instanceof HTMLElement?a=e[o]:e&&(a=e[o]),e&&!eL(e)&&"number"!=typeof a&&(a=null===(r=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===r?void 0:r[o]),a}(i,!0),c=Date.now();(0,eM.Z)(function e(){var n,t,o=Date.now()-c,s=(n=o>a?a:o,t=0-l,(n/=a/2)<1?t/2*n*n*n+l:t/2*((n-=2)*n*n+2)+l);eL(i)?i.scrollTo(window.pageXOffset,s):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=s:i.scrollTop=s,o0?e5:e4}),na=Math.ceil((e5||e4)/no.pageSize),no.current>na&&(no.current=na||1),ni=function(e,n){nr({current:null!=e?e:1,pageSize:n||no.pageSize})},!1===m?[{},function(){}]:[(0,c.Z)((0,c.Z)({},no),{onChange:function(e,n){var t;m&&(null===(t=m.onChange)||void 0===t||t.call(m,e,n)),ni(e,n),e3(e,n||(null==no?void 0:no.pageSize))}}),ni]),eB=(0,s.Z)(eF,2),eV=eB[0],eW=eB[1];eu.pagination=!1===m?{}:(nl=m,nu={current:(ns=eV).current,pageSize:ns.pageSize},Object.keys(nl&&"object"===(0,i.Z)(nl)?nl:{}).forEach(function(e){var n=ns[e];"function"!=typeof n&&(nu[e]=n)}),nu),eu.resetPagination=eW;var eq=v.useMemo(function(){if(!1===m||!eV.pageSize)return eA;var e=eV.current,n=void 0===e?1:e,t=eV.total,r=eV.pageSize,o=void 0===r?10:r;return eA.lengtho?eA.slice((n-1)*o,n*o):eA:eA.slice((n-1)*o,n*o)},[!!m,eA,eV&&eV.current,eV&&eV.pageSize,eV&&eV.total]),eX=(nd={prefixCls:J,data:eA,pageData:eq,getRowKey:el,getRecordByKey:es,expandType:ea,childrenColumnName:eo,locale:X,getPopupContainer:N},np=(nf=g||{}).preserveSelectedRowKeys,nv=nf.selectedRowKeys,nh=nf.defaultSelectedRowKeys,nm=nf.getCheckboxProps,ng=nf.onChange,nx=nf.onSelect,nC=nf.onSelectAll,nE=nf.onSelectInvert,nb=nf.onSelectNone,nk=nf.onSelectMultiple,nN=nf.columnWidth,nS=nf.type,nK=nf.selections,nO=nf.fixed,nP=nf.renderCell,nD=nf.hideSelectAll,nR=void 0===(n_=nf.checkStrictly)||n_,nM=nd.prefixCls,nL=nd.data,nT=nd.pageData,nI=nd.getRecordByKey,nj=nd.getRowKey,nA=nd.expandType,nz=nd.childrenColumnName,nH=nd.locale,nF=nd.getPopupContainer,nB=(0,eY.Z)(nv||nh||tF,{value:nv}),nW=(nV=(0,s.Z)(nB,2))[0],nU=nV[1],nG=v.useRef(new Map),nq=(0,v.useCallback)(function(e){if(np){var n=new Map;e.forEach(function(e){var t=nI(e);!t&&nG.current.has(e)&&(t=nG.current.get(e)),n.set(e,t)}),nG.current=n}},[nI,np]),v.useEffect(function(){nq(nW)},[nW]),nX=(0,v.useMemo)(function(){return nR?{keyEntities:null}:ny(nL,{externalGetKey:nj,childrenPropName:nz})},[nL,nj,nR,nz]).keyEntities,n$=(0,v.useMemo)(function(){return function e(n,t){var r=[];return(n||[]).forEach(function(n){r.push(n),n&&"object"===(0,i.Z)(n)&&t in n&&(r=[].concat((0,p.Z)(r),(0,p.Z)(e(n[t],t))))}),r}(nT,nz)},[nT,nz]),nJ=(0,v.useMemo)(function(){var e=new Map;return n$.forEach(function(n,t){var r=nj(n,t),o=(nm?nm(n):null)||{};e.set(r,o)}),e},[n$,nj,nm]),nQ=(0,v.useCallback)(function(e){var n;return!!(null===(n=nJ.get(nj(e)))||void 0===n?void 0:n.disabled)},[nJ,nj]),n0=(0,v.useMemo)(function(){if(nR)return[nW||[],[]];var e=nY(nW,!0,nX,nQ);return[e.checkedKeys||[],e.halfCheckedKeys]},[nW,nR,nX,nQ]),n2=(n1=(0,s.Z)(n0,2))[0],n4=n1[1],n3=(0,v.useMemo)(function(){var e="radio"===nS?n2.slice(0,1):n2;return new Set(e)},[n2,nS]),n6=(0,v.useMemo)(function(){return"radio"===nS?new Set:new Set(n4)},[n4,nS]),n8=(0,v.useState)(null),n7=(n5=(0,s.Z)(n8,2))[0],n9=n5[1],v.useEffect(function(){g||nU(tF)},[!!g]),te=(0,v.useCallback)(function(e,n){var t,r;nq(e),np?(t=e,r=e.map(function(e){return nG.current.get(e)})):(t=[],r=[],e.forEach(function(e){var n=nI(e);void 0!==n&&(t.push(e),r.push(n))})),nU(t),null==ng||ng(t,r,{type:n})},[nU,nI,ng,np]),tn=(0,v.useCallback)(function(e,n,t,r){if(nx){var o=t.map(function(e){return nI(e)});nx(nI(e),n,o,r)}te(t,"single")},[nx,nI,te]),tt=(0,v.useMemo)(function(){return!nK||nD?null:(!0===nK?[tA,tz,tH]:nK).map(function(e){return e===tA?{key:"all",text:nH.selectionAll,onSelect:function(){te(nL.map(function(e,n){return nj(e,n)}).filter(function(e){var n=nJ.get(e);return!(null==n?void 0:n.disabled)||n3.has(e)}),"all")}}:e===tz?{key:"invert",text:nH.selectInvert,onSelect:function(){var e=new Set(n3);nT.forEach(function(n,t){var r=nj(n,t),o=nJ.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))});var n=Array.from(e);nE&&nE(n),te(n,"invert")}}:e===tH?{key:"none",text:nH.selectNone,onSelect:function(){null==nb||nb(),te(Array.from(n3).filter(function(e){var n=nJ.get(e);return null==n?void 0:n.disabled}),"none")}}:e}).map(function(e){return(0,c.Z)((0,c.Z)({},e),{onSelect:function(){for(var n,t=arguments.length,r=Array(t),o=0;o0&&g&&(en.expandIconColumnIndex-=1),"number"!=typeof en.indentSize&&(en.indentSize="number"==typeof _?_:15);var e0=v.useCallback(function(e){return eH(eJ(eE(ev(e))))},[ev,eE,eJ]);if(!1!==m&&(null==eV?void 0:eV.total)){tl=eV.size?eV.size:"small"===q||"middle"===q?"small":void 0;var e1,e2,e4,e3,e6,e8,e5,e7,e9,ne,nn,nr,no,na,ni,nl,ns,nu,nd,nf,np,nv,nh,nm,ng,nx,nC,nE,nb,nk,nN,nS,nK,nO,nP,nD,n_,nR,nM,nL,nT,nI,nj,nA,nz,nH,nF,nB,nV,nW,nU,nG,nq,nX,n$,nJ,nQ,n0,n1,n2,n4,n3,n6,n8,n5,n7,n9,te,tn,tt,tr,to,ta,ti,tl,tc=function(e){return v.createElement(e_.Z,(0,c.Z)({},eV,{className:d()("".concat(J,"-pagination ").concat(J,"-pagination-").concat(e),eV.className),size:tl}))},ts="rtl"===G?"left":"right",tu=eV.position;if(null!==tu&&Array.isArray(tu)){var td=tu.find(function(e){return e.includes("top")}),tf=tu.find(function(e){return e.includes("bottom")}),tp=tu.every(function(e){return"none"==="".concat(e)});td||tf||tp||(ti=tc(ts)),td&&(ta=tc(td.toLowerCase().replace("top",""))),tf&&(ti=tc(tf.toLowerCase().replace("bottom","")))}else ti=tc(ts)}"boolean"==typeof S?t={spinning:S}:"object"===(0,i.Z)(S)&&(t=(0,c.Z)({spinning:!0},S));var tv=d()("".concat(J,"-wrapper"),(0,l.Z)({},"".concat(J,"-wrapper-rtl"),"rtl"===G),o);return v.createElement("div",{ref:n,className:tv,style:a},v.createElement(eR.Z,(0,c.Z)({spinning:!1},t),ta,v.createElement(ew,(0,c.Z)({},H,{columns:z,direction:G,expandable:en,prefixCls:J,className:d()((to={},(0,l.Z)(to,"".concat(J,"-middle"),"middle"===q),(0,l.Z)(to,"".concat(J,"-small"),"small"===q),(0,l.Z)(to,"".concat(J,"-bordered"),f),(0,l.Z)(to,"".concat(J,"-empty"),0===$.length),to)),data:eq,rowKey:el,rowClassName:function(e,n,t){var r;return r="function"==typeof E?d()(E(e,n,t)):d()(E),d()((0,l.Z)({},"".concat(J,"-row-selected"),eQ.has(el(e,n))),r)},emptyText:L&&L.emptyText||(U||eK.Z)("Table"),internalHooks:ek,internalRefs:ei,transformColumns:e0})),ti))});t1.SELECTION_COLUMN=tj,t1.EXPAND_COLUMN=ew.EXPAND_COLUMN,t1.SELECTION_ALL=tA,t1.SELECTION_INVERT=tz,t1.SELECTION_NONE=tH,t1.Column=function(e){return null},t1.ColumnGroup=function(e){return null},t1.Summary=ef;var t2=t1},18552:function(e,n,t){var r=t(10852)(t(55639),"DataView");e.exports=r},1989:function(e,n,t){var r=t(51789),o=t(80401),a=t(57667),i=t(21327),l=t(81866);function c(e){var n=-1,t=null==e?0:e.length;for(this.clear();++nu))return!1;var f=c.get(e),p=c.get(n);if(f&&p)return f==n&&p==e;var v=-1,h=!0,y=2&t?new r:void 0;for(c.set(e,n),c.set(n,e);++v-1&&e%1==0&&e-1}},54705:function(e,n,t){var r=t(18470);e.exports=function(e,n){var t=this.__data__,o=r(t,e);return o<0?(++this.size,t.push([e,n])):t[o][1]=n,this}},24785:function(e,n,t){var r=t(1989),o=t(38407),a=t(57071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},11285:function(e,n,t){var r=t(45050);e.exports=function(e){var n=r(this,e).delete(e);return this.size-=n?1:0,n}},96e3:function(e,n,t){var r=t(45050);e.exports=function(e){return r(this,e).get(e)}},49916:function(e,n,t){var r=t(45050);e.exports=function(e){return r(this,e).has(e)}},95265:function(e,n,t){var r=t(45050);e.exports=function(e,n){var t=r(this,e),o=t.size;return t.set(e,n),this.size+=t.size==o?0:1,this}},68776:function(e){e.exports=function(e){var n=-1,t=Array(e.size);return e.forEach(function(e,r){t[++n]=[r,e]}),t}},94536:function(e,n,t){var r=t(10852)(Object,"create");e.exports=r},86916:function(e,n,t){var r=t(5569)(Object.keys,Object);e.exports=r},31167:function(e,n,t){e=t.nmd(e);var r=t(31957),o=n&&!n.nodeType&&n,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return i&&i.binding&&i.binding("util")}catch(n){}}();e.exports=l},5569:function(e){e.exports=function(e,n){return function(t){return e(n(t))}}},90619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:function(e){e.exports=function(e){return this.__data__.has(e)}},21814:function(e){e.exports=function(e){var n=-1,t=Array(e.size);return e.forEach(function(e){t[++n]=e}),t}},37465:function(e,n,t){var r=t(38407);e.exports=function(){this.__data__=new r,this.size=0}},63779:function(e){e.exports=function(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,n,t){var r=t(38407),o=t(57071),a=t(83369);e.exports=function(e,n){var t=this.__data__;if(t instanceof r){var i=t.__data__;if(!o||i.length<199)return i.push([e,n]),this.size=++t.size,this;t=this.__data__=new a(i)}return t.set(e,n),this.size=t.size,this}},80346:function(e){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(r){}}return""}},77813:function(e){e.exports=function(e,n){return e===n||e!=e&&n!=n}},35694:function(e,n,t){var r=t(9454),o=t(37005),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=c},1469:function(e){var n=Array.isArray;e.exports=n},98612:function(e,n,t){var r=t(23560),o=t(41780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},44144:function(e,n,t){e=t.nmd(e);var r=t(55639),o=t(95062),a=n&&!n.nodeType&&n,i=a&&e&&!e.nodeType&&e,l=i&&i.exports===a?r.Buffer:void 0,c=l?l.isBuffer:void 0;e.exports=c||o},18446:function(e,n,t){var r=t(90939);e.exports=function(e,n){return r(e,n)}},23560:function(e,n,t){var r=t(44239),o=t(13218);e.exports=function(e){if(!o(e))return!1;var n=r(e);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},36719:function(e,n,t){var r=t(38749),o=t(7518),a=t(31167),i=a&&a.isTypedArray,l=i?o(i):r;e.exports=l},3674:function(e,n,t){var r=t(14636),o=t(280),a=t(98612);e.exports=function(e){return a(e)?r(e):o(e)}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},50132:function(e,n,t){"use strict";var r=t(87462),o=t(4942),a=t(45987),i=t(1413),l=t(15671),c=t(43144),s=t(60136),u=t(33643),d=t(67294),f=t(94184),p=t.n(f),v=function(e){(0,s.Z)(t,e);var n=(0,u.Z)(t);function t(e){(0,l.Z)(this,t),(r=n.call(this,e)).handleChange=function(e){var n=r.props,t=n.disabled,o=n.onChange;!t&&("checked"in r.props||r.setState({checked:e.target.checked}),o&&o({target:(0,i.Z)((0,i.Z)({},r.props),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var r,o="checked"in e?e.checked:e.defaultChecked;return r.state={checked:o},r}return(0,c.Z)(t,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e,n=this.props,t=n.prefixCls,i=n.className,l=n.style,c=n.name,s=n.id,u=n.type,f=n.disabled,v=n.readOnly,h=n.tabIndex,y=n.onClick,m=n.onFocus,g=n.onBlur,x=n.onKeyDown,C=n.onKeyPress,E=n.onKeyUp,b=n.autoFocus,k=n.value,Z=n.required,w=(0,a.Z)(n,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),N=Object.keys(w).reduce(function(e,n){return("aria-"===n.substr(0,5)||"data-"===n.substr(0,5)||"role"===n)&&(e[n]=w[n]),e},{}),S=this.state.checked,K=p()(t,i,(e={},(0,o.Z)(e,"".concat(t,"-checked"),S),(0,o.Z)(e,"".concat(t,"-disabled"),f),e));return d.createElement("span",{className:K,style:l},d.createElement("input",(0,r.Z)({name:c,id:s,type:u,required:Z,readOnly:v,disabled:f,tabIndex:h,className:"".concat(t,"-input"),checked:!!S,onClick:y,onFocus:m,onBlur:g,onKeyUp:E,onKeyDown:x,onKeyPress:C,onChange:this.handleChange,autoFocus:b,ref:this.saveInput,value:k},N)),d.createElement("span",{className:"".concat(t,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(e,n){return"checked"in e?(0,i.Z)((0,i.Z)({},n),{},{checked:e.checked}):null}}]),t}(d.Component);v.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}},n.Z=v}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/2206-af1def5073377327.js b/static/web/_next/static/chunks/2206-af1def5073377327.js new file mode 100644 index 000000000..8dc770af7 --- /dev/null +++ b/static/web/_next/static/chunks/2206-af1def5073377327.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2206],{10010:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var r=t(1413),o=t(67294),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},i=t(42135),l=function(e,n){return o.createElement(i.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:n,icon:a}))};l.displayName="CaretUpOutlined";var c=o.forwardRef(l)},32808:function(e,n,t){"use strict";t.d(n,{Z:function(){return b}});var r=t(4942),o=t(87462),a=t(94184),i=t.n(a),l=t(50132),c=t(67294),s=t(53124),u=t(65223),d=t(74902),f=t(97685),p=t(98423),v=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},h=c.createContext(null),y=c.forwardRef(function(e,n){var t=e.defaultValue,a=e.children,l=e.options,u=void 0===l?[]:l,y=e.prefixCls,m=e.className,g=e.style,x=e.onChange,E=v(e,["defaultValue","children","options","prefixCls","className","style","onChange"]),b=c.useContext(s.E_),k=b.getPrefixCls,Z=b.direction,w=c.useState(E.value||t||[]),N=(0,f.Z)(w,2),S=N[0],K=N[1],O=c.useState([]),P=(0,f.Z)(O,2),D=P[0],_=P[1];c.useEffect(function(){"value"in E&&K(E.value||[])},[E.value]);var R=function(){return u.map(function(e){return"string"==typeof e||"number"==typeof e?{label:e,value:e}:e})},M=k("checkbox",y),L="".concat(M,"-group"),T=(0,p.Z)(E,["value","disabled"]);u&&u.length>0&&(a=R().map(function(e){return c.createElement(C,{prefixCls:M,key:e.value.toString(),disabled:"disabled"in e?e.disabled:E.disabled,value:e.value,checked:S.includes(e.value),onChange:e.onChange,className:"".concat(L,"-item"),style:e.style},e.label)}));var I={toggleOption:function(e){var n=S.indexOf(e.value),t=(0,d.Z)(S);-1===n?t.push(e.value):t.splice(n,1),"value"in E||K(t);var r=R();null==x||x(t.filter(function(e){return D.includes(e)}).sort(function(e,n){return r.findIndex(function(n){return n.value===e})-r.findIndex(function(e){return e.value===n})}))},value:S,disabled:E.disabled,name:E.name,registerValue:function(e){_(function(n){return[].concat((0,d.Z)(n),[e])})},cancelValue:function(e){_(function(n){return n.filter(function(n){return n!==e})})}},j=i()(L,(0,r.Z)({},"".concat(L,"-rtl"),"rtl"===Z),m);return c.createElement("div",(0,o.Z)({className:j,style:g},T,{ref:n}),c.createElement(h.Provider,{value:I},a))}),m=c.memo(y),g=t(98866),x=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},C=c.forwardRef(function(e,n){var t,a,d=e.prefixCls,f=e.className,p=e.children,v=e.indeterminate,y=void 0!==v&&v,m=e.style,C=e.onMouseEnter,E=e.onMouseLeave,b=e.skipGroup,k=void 0!==b&&b,Z=e.disabled,w=x(e,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),N=c.useContext(s.E_),S=N.getPrefixCls,K=N.direction,O=c.useContext(h),P=(0,c.useContext)(u.aM).isFormItemInput,D=(0,c.useContext)(g.Z),_=null!==(a=(null==O?void 0:O.disabled)||Z)&&void 0!==a?a:D,R=c.useRef(w.value);c.useEffect(function(){null==O||O.registerValue(w.value)},[]),c.useEffect(function(){if(!k)return w.value!==R.current&&(null==O||O.cancelValue(R.current),null==O||O.registerValue(w.value),R.current=w.value),function(){return null==O?void 0:O.cancelValue(w.value)}},[w.value]);var M=S("checkbox",d),L=(0,o.Z)({},w);O&&!k&&(L.onChange=function(){w.onChange&&w.onChange.apply(w,arguments),O.toggleOption&&O.toggleOption({label:p,value:w.value})},L.name=O.name,L.checked=O.value.includes(w.value));var T=i()((t={},(0,r.Z)(t,"".concat(M,"-wrapper"),!0),(0,r.Z)(t,"".concat(M,"-rtl"),"rtl"===K),(0,r.Z)(t,"".concat(M,"-wrapper-checked"),L.checked),(0,r.Z)(t,"".concat(M,"-wrapper-disabled"),_),(0,r.Z)(t,"".concat(M,"-wrapper-in-form-item"),P),t),f),I=i()((0,r.Z)({},"".concat(M,"-indeterminate"),y));return c.createElement("label",{className:T,style:m,onMouseEnter:C,onMouseLeave:E},c.createElement(l.Z,(0,o.Z)({"aria-checked":y?"mixed":void 0},L,{prefixCls:M,className:I,disabled:_,ref:n})),void 0!==p&&c.createElement("span",null,p))}),E=C;E.Group=m,E.__ANT_CHECKBOX=!0;var b=E},52206:function(e,n,t){"use strict";t.d(n,{Z:function(){return t2}});var r,o,a,i=t(71002),l=t(4942),c=t(87462),s=t(97685),u=t(94184),d=t.n(u),f=t(1413),p=t(74902),v=t(67294),h=t(5110),y=t(64217),m=t(79370),g=t(96774),x=t.n(g),C=t(80334),E=t(48555),b=t(74204),k=t(45987),Z=t(42550);function w(e){return null==e?[]:Array.isArray(e)?e:[e]}function N(e,n){if(!n&&"number"!=typeof n)return e;for(var t=w(n),r=e,o=0;o=n);return{onHover:null==e?void 0:e.onHover,hovering:t}}),a=(o=(r=v.useContext(null==D?void 0:D.Context))||{}).listeners,i=o.getValue,l=v.useState(function(){return t(r?i():null)}),d=(u=(0,s.Z)(l,2))[0],f=u[1],(0,O.Z)(function(){if(r)return a.add(e),function(){a.delete(e)};function e(e){f(function(n){var r=t(e);return x()(n,r)?n:r})}},[r]),d),Z=k.onHover,w=k.hovering;return v.createElement(j,(0,c.Z)({},e,{colSpan:null!=m?m:C,rowSpan:b,hovering:w,ref:n,onHover:Z}))});A.displayName="WrappedCell";var z=v.createContext(null);function H(e,n,t,r,o){var a,i,l=t[e]||{},c=t[n]||{};"left"===l.fixed?a=r.left[e]:"right"===c.fixed&&(i=r.right[n]);var s=!1,u=!1,d=!1,f=!1,p=t[n+1],v=t[e-1];return"rtl"===o?void 0!==a?f=!(v&&"left"===v.fixed):void 0!==i&&(d=!(p&&"right"===p.fixed)):void 0!==a?s=!(p&&"left"===p.fixed):void 0!==i&&(u=!(v&&"right"===v.fixed)),{fixLeft:a,fixRight:i,lastFixLeft:s,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}function F(e){var n,t=e.cells,r=e.stickyOffsets,o=e.flattenColumns,a=e.rowComponent,i=e.cellComponent,l=e.onHeaderRow,s=e.index,u=v.useContext(z),d=u.prefixCls,f=u.direction;l&&(n=l(t.map(function(e){return e.column}),s));var p=S(t.map(function(e){return e.column}));return v.createElement(a,n,t.map(function(e,n){var t,a=e.column,l=H(e.colStart,e.colEnd,o,r,f);return a&&a.onHeaderCell&&(t=e.column.onHeaderCell(a)),v.createElement(A,(0,c.Z)({},e,{ellipsis:a.ellipsis,align:a.align,component:i,prefixCls:d,key:p[n]},l,{additionalProps:t,rowType:"header"}))}))}F.displayName="HeaderRow";var B=function(e){var n=e.stickyOffsets,t=e.columns,r=e.flattenColumns,o=e.onHeaderRow,a=v.useContext(z),i=a.prefixCls,l=a.getComponent,c=v.useMemo(function(){return function(e){var n=[];!function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n[o]=n[o]||[];var a=r;return t.filter(Boolean).map(function(t){var r={key:t.key,className:t.className||"",children:t.title,column:t,colStart:a},i=1,l=t.children;return l&&l.length>0&&(i=e(l,a,o+1).reduce(function(e,n){return e+n},0),r.hasSubColumns=!0),"colSpan"in t&&(i=t.colSpan),"rowSpan"in t&&(r.rowSpan=t.rowSpan),r.colSpan=i,r.colEnd=r.colStart+i-1,n[o].push(r),a+=i,i})}(e,0);for(var t=n.length,r=function(e){n[e].forEach(function(n){("rowSpan"in n)||n.hasSubColumns||(n.rowSpan=t-e)})},o=0;o1?t-1:0),o=1;o0?[].concat((0,p.Z)(e),(0,p.Z)(eo(o).map(function(e){return(0,f.Z)({fixed:r},e)}))):[].concat((0,p.Z)(e),[(0,f.Z)((0,f.Z)({},n),{},{fixed:r})])},[])}var ea=function(e,n){var t=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,i=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,p=e.rowExpandable,h=e.expandIconColumnIndex,y=e.direction,m=e.expandRowByClick,g=e.columnWidth,x=e.fixed,C=v.useMemo(function(){return r||er(o)},[r,o]),E=v.useMemo(function(){if(a){var e,n,r=C.slice();if(!r.includes(ee)){var o=h||0;o>=0&&r.splice(o,0,ee)}var f=r.indexOf(ee);r=r.filter(function(e,n){return e!==ee||n===f});var y=C[f];n=("left"===x||x)&&!h?"left":("right"===x||x)&&h===C.length?"right":y?y.fixed:null;var E=(e={},(0,l.Z)(e,Q,{className:"".concat(t,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,l.Z)(e,"title",c),(0,l.Z)(e,"fixed",n),(0,l.Z)(e,"className","".concat(t,"-row-expand-icon-cell")),(0,l.Z)(e,"width",g),(0,l.Z)(e,"render",function(e,n,r){var o=s(n,r),a=d({prefixCls:t,expanded:i.has(o),expandable:!p||p(n),record:n,onExpand:u});return m?v.createElement("span",{onClick:function(e){return e.stopPropagation()}},a):a}),e);return r.map(function(e){return e===ee?E:e})}return C.filter(function(e){return e!==ee})},[a,C,s,i,d,y]),b=v.useMemo(function(){var e=E;return n&&(e=n(e)),e.length||(e=[{render:function(){return null}}]),e},[n,E,y]),Z=v.useMemo(function(){return"rtl"===y?eo(b).map(function(e){var n=e.fixed,t=(0,k.Z)(e,et),r=n;return"left"===n?r="right":"right"===n&&(r="left"),(0,f.Z)({fixed:r},t)}):eo(b)},[b,y]);return[b,Z]};function ei(e){var n=(0,v.useRef)(e),t=(0,v.useState)({}),r=(0,s.Z)(t,2)[1],o=(0,v.useRef)(null),a=(0,v.useRef)([]);return(0,v.useEffect)(function(){return function(){o.current=null}},[]),[n.current,function(e){a.current.push(e);var t=Promise.resolve();o.current=t,t.then(function(){if(o.current===t){var e=a.current,i=n.current;a.current=[],e.forEach(function(e){n.current=e(n.current)}),o.current=null,i!==n.current&&r({})}})}]}var el=["columnType"],ec=function(e){for(var n=e.colWidths,t=e.columns,r=e.columCount,o=[],a=r||t.length,i=!1,l=a-1;l>=0;l-=1){var s=n[l],u=t&&t[l],d=u&&u[Q];if(s||d||i){var f=d||{},p=(f.columnType,(0,k.Z)(f,el));o.unshift(v.createElement("col",(0,c.Z)({key:l,style:{width:s}},p))),i=!0}}return v.createElement("colgroup",null,o)},es=function(e){var n=e.className,t=e.children;return v.createElement("div",{className:n},t)},eu=v.createContext({}),ed=["children"];function ef(e){return e.children}ef.Row=function(e){var n=e.children,t=(0,k.Z)(e,ed);return v.createElement("tr",t,n)},ef.Cell=function(e){var n=e.className,t=e.index,r=e.children,o=e.colSpan,a=void 0===o?1:o,i=e.rowSpan,l=e.align,s=v.useContext(z),u=s.prefixCls,d=s.direction,f=v.useContext(eu),p=f.scrollColumnIndex,h=f.stickyOffsets,y=f.flattenColumns,m=t+a-1+1===p?a+1:a,g=H(t,t+m-1,y,h,d);return v.createElement(A,(0,c.Z)({className:n,index:t,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:m,rowSpan:i,render:function(){return r}},g))};var ep=function(e){var n=e.children,t=e.stickyOffsets,r=e.flattenColumns,o=v.useContext(z).prefixCls,a=r.length-1,i=r[a],l=v.useMemo(function(){return{stickyOffsets:t,flattenColumns:r,scrollColumnIndex:(null==i?void 0:i.scrollbar)?a:null}},[i,r,a,t]);return v.createElement(eu.Provider,{value:l},v.createElement("tfoot",{className:"".concat(o,"-summary")},n))};function ev(e){var n,t=e.prefixCls,r=e.record,o=e.onExpand,a=e.expanded,i=e.expandable,c="".concat(t,"-row-expand-icon");return i?v.createElement("span",{className:d()(c,(n={},(0,l.Z)(n,"".concat(t,"-row-expanded"),a),(0,l.Z)(n,"".concat(t,"-row-collapsed"),!a),n)),onClick:function(e){o(r,e),e.stopPropagation()}}):v.createElement("span",{className:d()(c,"".concat(t,"-row-spaced"))})}var eh=t(64019),ey=t(27678),em=v.forwardRef(function(e,n){var t,r,o=e.scrollBodyRef,a=e.onScroll,i=e.offsetScroll,c=e.container,u=v.useContext(z).prefixCls,p=(null===(t=o.current)||void 0===t?void 0:t.scrollWidth)||0,h=(null===(r=o.current)||void 0===r?void 0:r.clientWidth)||0,y=p&&h*(h/p),m=v.useRef(),g=ei({scrollLeft:0,isHiddenScrollBar:!1}),x=(0,s.Z)(g,2),C=x[0],E=x[1],k=v.useRef({delta:0,x:0}),Z=v.useState(!1),w=(0,s.Z)(Z,2),N=w[0],S=w[1],K=function(){S(!1)},O=function(e){var n,t=(e||(null===(n=window)||void 0===n?void 0:n.event)).buttons;if(!N||0===t){N&&S(!1);return}var r=k.current.x+e.pageX-k.current.x-k.current.delta;r<=0&&(r=0),r+y>=h&&(r=h-y),a({scrollLeft:r/h*(p+2)}),k.current.x=e.pageX},P=function(){if(o.current){var e=(0,ey.os)(o.current).top,n=e+o.current.offsetHeight,t=c===window?document.documentElement.scrollTop+window.innerHeight:(0,ey.os)(c).top+c.clientHeight;n-(0,b.Z)()<=t||e>=t-i?E(function(e){return(0,f.Z)((0,f.Z)({},e),{},{isHiddenScrollBar:!0})}):E(function(e){return(0,f.Z)((0,f.Z)({},e),{},{isHiddenScrollBar:!1})})}},D=function(e){E(function(n){return(0,f.Z)((0,f.Z)({},n),{},{scrollLeft:e/p*h||0})})};return(v.useImperativeHandle(n,function(){return{setScrollLeft:D}}),v.useEffect(function(){var e=(0,eh.Z)(document.body,"mouseup",K,!1),n=(0,eh.Z)(document.body,"mousemove",O,!1);return P(),function(){e.remove(),n.remove()}},[y,N]),v.useEffect(function(){var e=(0,eh.Z)(c,"scroll",P,!1),n=(0,eh.Z)(window,"resize",P,!1);return function(){e.remove(),n.remove()}},[c]),v.useEffect(function(){C.isHiddenScrollBar||E(function(e){var n=o.current;return n?(0,f.Z)((0,f.Z)({},e),{},{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):e})},[C.isHiddenScrollBar]),p<=h||!y||C.isHiddenScrollBar)?null:v.createElement("div",{style:{height:(0,b.Z)(),width:h,bottom:i},className:"".concat(u,"-sticky-scroll")},v.createElement("div",{onMouseDown:function(e){e.persist(),k.current.delta=e.pageX-C.scrollLeft,k.current.x=0,S(!0),e.preventDefault()},ref:m,className:d()("".concat(u,"-sticky-scroll-bar"),(0,l.Z)({},"".concat(u,"-sticky-scroll-bar-active"),N)),style:{width:"".concat(y,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))}),eg=(0,t(98924).Z)()?window:null,ex=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"],eC=v.forwardRef(function(e,n){var t=e.className,r=e.noData,o=e.columns,a=e.flattenColumns,i=e.colWidths,c=e.columCount,s=e.stickyOffsets,u=e.direction,h=e.fixHeader,y=e.stickyTopOffset,m=e.stickyBottomOffset,g=e.stickyClassName,x=e.onScroll,C=e.maxContentScroll,E=e.children,b=(0,k.Z)(e,ex),w=v.useContext(z),N=w.prefixCls,S=w.scrollbarSize,K=w.isSticky,O=K&&!h?0:S,P=v.useRef(null),D=v.useCallback(function(e){(0,Z.mH)(n,e),(0,Z.mH)(P,e)},[]);v.useEffect(function(){var e;function n(e){var n=e.currentTarget,t=e.deltaX;t&&(x({currentTarget:n,scrollLeft:n.scrollLeft+t}),e.preventDefault())}return null===(e=P.current)||void 0===e||e.addEventListener("wheel",n),function(){var e;null===(e=P.current)||void 0===e||e.removeEventListener("wheel",n)}},[]);var _=v.useMemo(function(){return a.every(function(e){return e.width>=0})},[a]),R=a[a.length-1],M={fixed:R?R.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(N,"-cell-scrollbar")}}},L=(0,v.useMemo)(function(){return O?[].concat((0,p.Z)(o),[M]):o},[O,o]),T=(0,v.useMemo)(function(){return O?[].concat((0,p.Z)(a),[M]):a},[O,a]),I=(0,v.useMemo)(function(){var e=s.right,n=s.left;return(0,f.Z)((0,f.Z)({},s),{},{left:"rtl"===u?[].concat((0,p.Z)(n.map(function(e){return e+O})),[0]):n,right:"rtl"===u?e:[].concat((0,p.Z)(e.map(function(e){return e+O})),[0]),isSticky:K})},[O,s,K]),j=(0,v.useMemo)(function(){for(var e=[],n=0;n0)):(e0(o>0),e3(on.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},e5=v.forwardRef(function(e,n){var t,r=v.useContext(eQ),o=v.useContext(e1),a=v.useContext(eS.E_),i=a.getPrefixCls,s=a.direction,u=v.useRef(),f=(0,Z.sQ)(n,u),p=(0,v.useContext)(e6.aM).isFormItemInput,h=e.prefixCls,y=e.className,m=e.children,g=e.style,x=e.disabled,C=e8(e,["prefixCls","className","children","style","disabled"]),E=i("radio",h),b="button"===((null==r?void 0:r.optionType)||o)?"".concat(E,"-button"):E,k=(0,c.Z)({},C),w=v.useContext(e3.Z);k.disabled=x||w,r&&(k.name=r.name,k.onChange=function(n){var t,o;null===(t=e.onChange)||void 0===t||t.call(e,n),null===(o=null==r?void 0:r.onChange)||void 0===o||o.call(r,n)},k.checked=e.value===r.value,k.disabled=k.disabled||r.disabled);var N=d()("".concat(b,"-wrapper"),(t={},(0,l.Z)(t,"".concat(b,"-wrapper-checked"),k.checked),(0,l.Z)(t,"".concat(b,"-wrapper-disabled"),k.disabled),(0,l.Z)(t,"".concat(b,"-wrapper-rtl"),"rtl"===s),(0,l.Z)(t,"".concat(b,"-wrapper-in-form-item"),p),t),y);return v.createElement("label",{className:N,style:g,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},v.createElement(e4.Z,(0,c.Z)({},k,{type:"radio",prefixCls:b,ref:f})),void 0!==m?v.createElement("span",null,m):null)}),e7=v.forwardRef(function(e,n){var t,r=v.useContext(eS.E_),o=r.getPrefixCls,a=r.direction,i=v.useContext(eO.Z),u=(0,eY.Z)(e.defaultValue,{value:e.value}),f=(0,s.Z)(u,2),p=f[0],h=f[1],y=e.prefixCls,m=e.className,g=e.options,x=e.buttonStyle,C=e.disabled,E=e.children,b=e.size,k=e.style,Z=e.id,w=e.onMouseEnter,N=e.onMouseLeave,S=e.onFocus,K=e.onBlur,O=o("radio",y),P="".concat(O,"-group"),D=E;g&&g.length>0&&(D=g.map(function(e){return"string"==typeof e||"number"==typeof e?v.createElement(e5,{key:e.toString(),prefixCls:O,disabled:C,value:e,checked:p===e},e):v.createElement(e5,{key:"radio-group-value-options-".concat(e.value),prefixCls:O,disabled:e.disabled||C,value:e.value,checked:p===e.value,style:e.style},e.label)}));var _=b||i,R=d()(P,"".concat(P,"-").concat(void 0===x?"outline":x),(t={},(0,l.Z)(t,"".concat(P,"-").concat(_),_),(0,l.Z)(t,"".concat(P,"-rtl"),"rtl"===a),t),void 0===m?"":m);return v.createElement("div",(0,c.Z)({},(0,eJ.Z)(e),{className:R,style:k,onMouseEnter:w,onMouseLeave:N,onFocus:S,onBlur:K,id:Z,ref:n}),v.createElement(e0,{value:{onChange:function(n){var t=n.target.value;"value"in e||h(t);var r=e.onChange;r&&t!==p&&r(n)},value:p,disabled:e.disabled,name:e.name,optionType:e.optionType}},D))}),e9=v.memo(e7),ne=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},nn=v.forwardRef(function(e,n){var t=v.useContext(eS.E_).getPrefixCls,r=e.prefixCls,o=ne(e,["prefixCls"]),a=t("radio",r);return v.createElement(e2,{value:"button"},v.createElement(e5,(0,c.Z)({prefixCls:a},o,{type:"radio",ref:n})))}),nt=e5;nt.Button=nn,nt.Group=e9,nt.__ANT_RADIO=!0;var nr=t(15671),no=t(43144),na=t(97326),ni=t(60136),nl=t(33643),nc=t(15105),ns=v.createContext(null),nu=v.memo(function(e){for(var n,t=e.prefixCls,r=e.level,o=e.isStart,a=e.isEnd,i="".concat(t,"-indent-unit"),c=[],s=0;s1&&void 0!==arguments[1]?arguments[1]:null;return t.map(function(s,u){for(var d,v=nS(r?r.pos:"0",u),h=nf(s[a],v),y=0;y1&&void 0!==arguments[1]?arguments[1]:{},v=f.initWrapper,h=f.processEntity,y=f.onProcessFinished,m=f.externalGetKey,g=f.childrenPropName,x=f.fieldNames,C=arguments.length>2?arguments[2]:void 0,E={},b={},k={posEntities:E,keyEntities:b};return v&&(k=v(k)||k),n=function(e){var n=e.node,t=e.index,r=e.pos,o=e.key,a=e.parentPos,i=e.level,l={node:n,nodes:e.nodes,index:t,key:o,pos:r,level:i},c=nf(o,r);E[r]=l,b[c]=l,l.parent=E[a],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),h&&h(l,k)},t={externalGetKey:m||C,childrenPropName:g,fieldNames:x},a=(o=("object"===(0,i.Z)(t)?t:{externalGetKey:t})||{}).childrenPropName,l=o.externalGetKey,s=(c=np(o.fieldNames)).key,u=c.children,d=a||u,l?"string"==typeof l?r=function(e){return e[l]}:"function"==typeof l&&(r=function(e){return l(e)}):r=function(e,n){return nf(e[s],n)},function t(o,a,i,l){var c=o?o[d]:e,s=o?nS(i.pos,a):"0",u=o?[].concat((0,p.Z)(l),[o]):[];if(o){var f=r(o,s);n({node:o,index:a,pos:s,key:f,parentPos:i.node?i.pos:null,level:i.level+1,nodes:u})}c&&c.forEach(function(e,n){t(e,n,{node:o,pos:s,level:i?i.level+1:-1},u)})}(null),y&&y(k),k}function nm(e,n){var t=n.expandedKeys,r=n.selectedKeys,o=n.loadedKeys,a=n.loadingKeys,i=n.checkedKeys,l=n.halfCheckedKeys,c=n.dragOverNodeKey,s=n.dropPosition,u=n.keyEntities[e];return{eventKey:e,expanded:-1!==t.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function ng(e){var n=e.data,t=e.expanded,r=e.selected,o=e.checked,a=e.loaded,i=e.loading,l=e.halfChecked,c=e.dragOver,s=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,p=e.active,v=e.eventKey,h=(0,f.Z)((0,f.Z)({},n),{},{expanded:t,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:c,dragOverGapTop:s,dragOverGapBottom:u,pos:d,active:p,key:v});return"props"in h||Object.defineProperty(h,"props",{get:function(){return(0,C.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}var nx=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],nC="open",nE="close",nb=function(e){(0,ni.Z)(t,e);var n=(0,nl.Z)(t);function t(){var e;(0,nr.Z)(this,t);for(var r=arguments.length,o=Array(r),a=0;a=0&&t.splice(r,1),t}function nw(e,n){var t=(e||[]).slice();return -1===t.indexOf(n)&&t.push(n),t}function nN(e){return e.split("-")}function nS(e,n){return"".concat(e,"-").concat(n)}function nK(e,n,t,r,o,a,i,l,c,s){var u,d,f=e.clientX,p=e.clientY,v=e.target.getBoundingClientRect(),h=v.top,y=v.height,m=(("rtl"===s?-1:1)*(((null==o?void 0:o.x)||0)-f)-12)/r,g=l[t.props.eventKey];if(p-1.5?a({dragNode:N,dropNode:S,dropPosition:1})?k=1:K=!1:a({dragNode:N,dropNode:S,dropPosition:0})?k=0:a({dragNode:N,dropNode:S,dropPosition:1})?k=1:K=!1:a({dragNode:N,dropNode:S,dropPosition:1})?k=1:K=!1,{dropPosition:k,dropLevelOffset:Z,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:b,dropContainerKey:0===k?null:(null===(d=g.parent)||void 0===d?void 0:d.key)||null,dropAllowed:K}}function nO(e,n){if(e)return n.multiple?e.slice():e.length?[e[0]]:e}function nP(e){var n;if(!e)return null;if(Array.isArray(e))n={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,i.Z)(e))return(0,C.ZP)(!1,"`checkedKeys` is not an array or an object"),null;n={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return n}function nD(e,n){var t=new Set;return(e||[]).forEach(function(e){!function e(r){if(!t.has(r)){var o=n[r];if(o){t.add(r);var a=o.parent;!o.node.disabled&&a&&e(a.key)}}}(e)}),(0,p.Z)(t)}function n_(e){if(null==e)throw TypeError("Cannot destructure "+e)}nk.displayName="TreeNode",nk.defaultProps={title:"---"},nk.isTreeNode=1;var nR=t(73453),nM=t(62874),nL=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],nT=function(e,n){var t=e.className,r=e.style,o=e.motion,a=e.motionNodes,i=e.motionType,l=e.onMotionStart,u=e.onMotionEnd,f=e.active,p=e.treeNodeRequiredProps,h=(0,k.Z)(e,nL),y=v.useState(!0),m=(0,s.Z)(y,2),g=m[0],x=m[1],C=v.useContext(ns).prefixCls,E=v.useRef(!1),b=function(){E.current||u(),E.current=!0};return((0,v.useEffect)(function(){a&&"hide"===i&&g&&x(!1)},[a]),(0,v.useEffect)(function(){return a&&l(),function(){a&&b()}},[]),a)?v.createElement(nM.Z,(0,c.Z)({ref:n,visible:g},o,{motionAppear:"show"===i,onAppearEnd:b,onLeaveEnd:b}),function(e,n){var t=e.className,r=e.style;return v.createElement("div",{ref:n,className:d()("".concat(C,"-treenode-motion"),t),style:r},a.map(function(e){var n=(0,c.Z)({},(n_(e.data),e.data)),t=e.title,r=e.key,o=e.isStart,a=e.isEnd;delete n.children;var i=nm(r,p);return v.createElement(nk,(0,c.Z)({},n,i,{title:t,active:f,data:e.data,key:r,isStart:o,isEnd:a}))}))}):v.createElement(nk,(0,c.Z)({domRef:n,className:t,style:r},h,{active:f}))};nT.displayName="MotionTreeNode";var nI=v.forwardRef(nT);function nj(e,n,t){var r=e.findIndex(function(e){return e.key===t}),o=e[r+1],a=n.findIndex(function(e){return e.key===t});if(o){var i=n.findIndex(function(e){return e.key===o.key});return n.slice(a+1,i)}return n.slice(a+1)}var nA=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],nz={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},nH=function(){},nF="RC_TREE_MOTION_".concat(Math.random()),nB={key:nF},nV={key:nF,level:0,index:0,pos:"0",node:nB,nodes:[nB]},nW={parent:null,children:[],pos:nV.pos,data:nB,title:null,key:nF,isStart:[],isEnd:[]};function nU(e,n,t,r){return!1!==n&&t?e.slice(0,Math.ceil(t/r)+1):e}function nG(e){return nf(e.key,e.pos)}var nq=v.forwardRef(function(e,n){var t=e.prefixCls,r=e.data,o=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,i=e.checkedKeys,l=e.loadedKeys,u=e.loadingKeys,d=e.halfCheckedKeys,f=e.keyEntities,p=e.disabled,h=e.dragging,y=e.dragOverNodeKey,m=e.dropPosition,g=e.motion,x=e.height,C=e.itemHeight,E=e.virtual,b=e.focusable,Z=e.activeItem,w=e.focused,N=e.tabIndex,S=e.onKeyDown,K=e.onFocus,O=e.onBlur,P=e.onActiveChange,D=e.onListChangeStart,_=e.onListChangeEnd,R=(0,k.Z)(e,nA),M=v.useRef(null),L=v.useRef(null);v.useImperativeHandle(n,function(){return{scrollTo:function(e){M.current.scrollTo(e)},getIndentWidth:function(){return L.current.offsetWidth}}});var T=v.useState(o),I=(0,s.Z)(T,2),j=I[0],A=I[1],z=v.useState(r),H=(0,s.Z)(z,2),F=H[0],B=H[1],V=v.useState(r),W=(0,s.Z)(V,2),U=W[0],G=W[1],q=v.useState([]),X=(0,s.Z)(q,2),$=X[0],Y=X[1],J=v.useState(null),Q=(0,s.Z)(J,2),ee=Q[0],en=Q[1],et=v.useRef(r);function er(){var e=et.current;B(e),G(e),Y([]),en(null),_()}et.current=r,v.useEffect(function(){A(o);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=e.length,r=n.length;if(1!==Math.abs(t-r))return{add:!1,key:null};function o(e,n){var t=new Map;e.forEach(function(e){t.set(e,!0)});var r=n.filter(function(e){return!t.has(e)});return 1===r.length?r[0]:null}return t ").concat(n);return n}(Z)),v.createElement("div",null,v.createElement("input",{style:nz,disabled:!1===b||p,tabIndex:!1!==b?N:null,onKeyDown:S,onFocus:K,onBlur:O,value:"",onChange:nH,"aria-label":"for screen reader"})),v.createElement("div",{className:"".concat(t,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},v.createElement("div",{className:"".concat(t,"-indent")},v.createElement("div",{ref:L,className:"".concat(t,"-indent-unit")}))),v.createElement(nR.Z,(0,c.Z)({},R,{data:g?U:r,itemKey:nG,height:x,fullHeight:!1,virtual:E,itemHeight:C,prefixCls:"".concat(t,"-list"),ref:M,onVisibleChange:function(e,n){var t=new Set(e);n.filter(function(e){return!t.has(e)}).some(function(e){return nG(e)===nF})&&er()}}),function(e){var n=e.pos,t=(0,c.Z)({},(n_(e.data),e.data)),r=e.title,o=e.key,a=e.isStart,i=e.isEnd,l=nf(o,n);delete t.key,delete t.children;var s=nm(l,eo);return v.createElement(nI,(0,c.Z)({},t,s,{title:r,active:!!Z&&o===Z.key,pos:n,data:e.data,isStart:a,isEnd:i,motion:g,motionNodes:o===nF?$:null,motionType:ee,onMotionStart:D,onMotionEnd:er,treeNodeRequiredProps:eo,onMouseMove:function(){P(null)}}))}))});function nX(e,n){var t=new Set;return e.forEach(function(e){n.has(e)||t.add(e)}),t}function n$(e){var n=e||{},t=n.disabled,r=n.disableCheckbox,o=n.checkable;return!!(t||r)||!1===o}function nY(e,n,t,r){var o,a=[];o=r||n$;var i=new Set(e.filter(function(e){var n=!!t[e];return n||a.push(e),n})),l=new Map,c=0;return Object.keys(t).forEach(function(e){var n=t[e],r=n.level,o=l.get(r);o||(o=new Set,l.set(r,o)),o.add(n),c=Math.max(c,r)}),(0,C.ZP)(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),!0===n?function(e,n,t,r){for(var o=new Set(e),a=new Set,i=0;i<=t;i+=1)(n.get(i)||new Set).forEach(function(e){var n=e.key,t=e.node,a=e.children,i=void 0===a?[]:a;o.has(n)&&!r(t)&&i.filter(function(e){return!r(e.node)}).forEach(function(e){o.add(e.key)})});for(var l=new Set,c=t;c>=0;c-=1)(n.get(c)||new Set).forEach(function(e){var n=e.parent;if(!(r(e.node)||!e.parent||l.has(e.parent.key))){if(r(e.parent.node)){l.add(n.key);return}var t=!0,i=!1;(n.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var n=e.key,r=o.has(n);t&&!r&&(t=!1),!i&&(r||a.has(n))&&(i=!0)}),t&&o.add(n.key),i&&a.add(n.key),l.add(n.key)}});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(nX(a,o))}}(i,l,c,o):function(e,n,t,r,o){for(var a=new Set(e),i=new Set(n),l=0;l<=r;l+=1)(t.get(l)||new Set).forEach(function(e){var n=e.key,t=e.node,r=e.children,l=void 0===r?[]:r;a.has(n)||i.has(n)||o(t)||l.filter(function(e){return!o(e.node)}).forEach(function(e){a.delete(e.key)})});i=new Set;for(var c=new Set,s=r;s>=0;s-=1)(t.get(s)||new Set).forEach(function(e){var n=e.parent;if(!(o(e.node)||!e.parent||c.has(e.parent.key))){if(o(e.parent.node)){c.add(n.key);return}var t=!0,r=!1;(n.children||[]).filter(function(e){return!o(e.node)}).forEach(function(e){var n=e.key,o=a.has(n);t&&!o&&(t=!1),!r&&(o||i.has(n))&&(r=!0)}),t||a.delete(n.key),r&&i.add(n.key),c.add(n.key)}});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(nX(i,a))}}(i,n.halfCheckedKeys,l,c,o)}nq.displayName="NodeList";var nJ=function(e){(0,ni.Z)(t,e);var n=(0,nl.Z)(t);function t(){var e;(0,nr.Z)(this,t);for(var r=arguments.length,o=Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:[];n.forEach(function(n){var t=n.key,o=n.children;r.push(t),e(o)})}(i[c].children),r),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(s),window.addEventListener("dragend",e.onWindowDragEnd),null==l||l({event:n,node:ng(t.props)})},e.onNodeDragEnter=function(n,t){var r=e.state,o=r.expandedKeys,a=r.keyEntities,i=r.dragChildrenKeys,l=r.flattenNodes,c=r.indent,s=e.props,u=s.onDragEnter,d=s.onExpand,f=s.allowDrop,v=s.direction,h=t.props,y=h.pos,m=h.eventKey,g=(0,na.Z)(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==m&&(e.currentMouseOverDroppableNodeKey=m),!g){e.resetDragState();return}var x=nK(n,g,t,c,e.dragStartMousePosition,f,l,a,o,v),C=x.dropPosition,E=x.dropLevelOffset,b=x.dropTargetKey,k=x.dropContainerKey,Z=x.dropTargetPos,w=x.dropAllowed,N=x.dragOverNodeKey;if(-1!==i.indexOf(b)||!w||(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function(n){clearTimeout(e.delayedDragEnterLogic[n])}),g.props.eventKey!==t.props.eventKey&&(n.persist(),e.delayedDragEnterLogic[y]=window.setTimeout(function(){if(null!==e.state.draggingNodeKey){var r=(0,p.Z)(o),i=a[t.props.eventKey];i&&(i.children||[]).length&&(r=nw(o,t.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(r),null==d||d(r,{node:ng(t.props),expanded:!0,nativeEvent:n.nativeEvent})}},800)),g.props.eventKey===b&&0===E)){e.resetDragState();return}e.setState({dragOverNodeKey:N,dropPosition:C,dropLevelOffset:E,dropTargetKey:b,dropContainerKey:k,dropTargetPos:Z,dropAllowed:w}),null==u||u({event:n,node:ng(t.props),expandedKeys:o})},e.onNodeDragOver=function(n,t){var r=e.state,o=r.dragChildrenKeys,a=r.flattenNodes,i=r.keyEntities,l=r.expandedKeys,c=r.indent,s=e.props,u=s.onDragOver,d=s.allowDrop,f=s.direction,p=(0,na.Z)(e).dragNode;if(p){var v=nK(n,p,t,c,e.dragStartMousePosition,d,a,i,l,f),h=v.dropPosition,y=v.dropLevelOffset,m=v.dropTargetKey,g=v.dropContainerKey,x=v.dropAllowed,C=v.dropTargetPos,E=v.dragOverNodeKey;-1===o.indexOf(m)&&x&&(p.props.eventKey===m&&0===y?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():h===e.state.dropPosition&&y===e.state.dropLevelOffset&&m===e.state.dropTargetKey&&g===e.state.dropContainerKey&&C===e.state.dropTargetPos&&x===e.state.dropAllowed&&E===e.state.dragOverNodeKey||e.setState({dropPosition:h,dropLevelOffset:y,dropTargetKey:m,dropContainerKey:g,dropTargetPos:C,dropAllowed:x,dragOverNodeKey:E}),null==u||u({event:n,node:ng(t.props)}))}},e.onNodeDragLeave=function(n,t){e.currentMouseOverDroppableNodeKey!==t.props.eventKey||n.currentTarget.contains(n.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var r=e.props.onDragLeave;null==r||r({event:n,node:ng(t.props)})},e.onWindowDragEnd=function(n){e.onNodeDragEnd(n,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(n,t){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==r||r({event:n,node:ng(t.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDrop=function(n,t){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.state,i=a.dragChildrenKeys,l=a.dropPosition,c=a.dropTargetKey,s=a.dropTargetPos;if(a.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var d=(0,f.Z)((0,f.Z)({},nm(c,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===c,data:e.state.keyEntities[c].node}),p=-1!==i.indexOf(c);(0,C.ZP)(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var v=nN(s),h={event:n,node:ng(d),dragNode:e.dragNode?ng(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(i),dropToGap:0!==l,dropPosition:l+Number(v[v.length-1])};o||null==u||u(h),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(n,t){var r=e.state,o=r.expandedKeys,a=r.flattenNodes,i=t.expanded,l=t.key;if(!t.isLeaf&&!n.shiftKey&&!n.metaKey&&!n.ctrlKey){var c=a.filter(function(e){return e.key===l})[0],s=ng((0,f.Z)((0,f.Z)({},nm(l,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(i?nZ(o,l):nw(o,l)),e.onNodeExpand(n,s)}},e.onNodeClick=function(n,t){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(n,t),null==o||o(n,t)},e.onNodeDoubleClick=function(n,t){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(n,t),null==o||o(n,t)},e.onNodeSelect=function(n,t){var r=e.state.selectedKeys,o=e.state,a=o.keyEntities,i=o.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=t.selected,d=t[i.key],f=!u,p=(r=f?s?nw(r,d):[d]:nZ(r,d)).map(function(e){var n=a[e];return n?n.node:null}).filter(function(e){return e});e.setUncontrolledState({selectedKeys:r}),null==c||c(r,{event:"select",selected:f,node:t,selectedNodes:p,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,t,r){var o,a=e.state,i=a.keyEntities,l=a.checkedKeys,c=a.halfCheckedKeys,s=e.props,u=s.checkStrictly,d=s.onCheck,f=t.key,v={event:"check",node:t,checked:r,nativeEvent:n.nativeEvent};if(u){var h=r?nw(l,f):nZ(l,f);o={checked:h,halfChecked:nZ(c,f)},v.checkedNodes=h.map(function(e){return i[e]}).filter(function(e){return e}).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:h})}else{var y=nY([].concat((0,p.Z)(l),[f]),!0,i),m=y.checkedKeys,g=y.halfCheckedKeys;if(!r){var x=new Set(m);x.delete(f);var C=nY(Array.from(x),{checked:!1,halfCheckedKeys:g},i);m=C.checkedKeys,g=C.halfCheckedKeys}o=m,v.checkedNodes=[],v.checkedNodesPositions=[],v.halfCheckedKeys=g,m.forEach(function(e){var n=i[e];if(n){var t=n.node,r=n.pos;v.checkedNodes.push(t),v.checkedNodesPositions.push({node:t,pos:r})}}),e.setUncontrolledState({checkedKeys:m},!1,{halfCheckedKeys:g})}null==d||d(o,v)},e.onNodeLoad=function(n){var t=n.key,r=new Promise(function(r,o){e.setState(function(a){var i=a.loadedKeys,l=a.loadingKeys,c=void 0===l?[]:l,s=e.props,u=s.loadData,d=s.onLoad;return u&&-1===(void 0===i?[]:i).indexOf(t)&&-1===c.indexOf(t)?(u(n).then(function(){var o=nw(e.state.loadedKeys,t);null==d||d(o,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:o}),e.setState(function(e){return{loadingKeys:nZ(e.loadingKeys,t)}}),r()}).catch(function(n){if(e.setState(function(e){return{loadingKeys:nZ(e.loadingKeys,t)}}),e.loadingRetryTimes[t]=(e.loadingRetryTimes[t]||0)+1,e.loadingRetryTimes[t]>=10){var a=e.state.loadedKeys;(0,C.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:nw(a,t)}),r()}o(n)}),{loadingKeys:nw(c,t)}):null})});return r.catch(function(){}),r},e.onNodeMouseEnter=function(n,t){var r=e.props.onMouseEnter;null==r||r({event:n,node:t})},e.onNodeMouseLeave=function(n,t){var r=e.props.onMouseLeave;null==r||r({event:n,node:t})},e.onNodeContextMenu=function(n,t){var r=e.props.onRightClick;r&&(n.preventDefault(),r({event:n,node:t}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var t=arguments.length,r=Array(t),o=0;o1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,a=!0,i={};Object.keys(n).forEach(function(t){if(t in e.props){a=!1;return}o=!0,i[t]=n[t]}),o&&(!t||a)&&e.setState((0,f.Z)((0,f.Z)({},i),r))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,no.Z)(t,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,n,t=this.state,r=t.focused,o=t.flattenNodes,a=t.keyEntities,s=t.draggingNodeKey,u=t.activeKey,f=t.dropLevelOffset,p=t.dropContainerKey,h=t.dropTargetKey,m=t.dropPosition,g=t.dragOverNodeKey,x=t.indent,C=this.props,E=C.prefixCls,b=C.className,k=C.style,Z=C.showLine,w=C.focusable,N=C.tabIndex,S=C.selectable,K=C.showIcon,O=C.icon,P=C.switcherIcon,D=C.draggable,_=C.checkable,R=C.checkStrictly,M=C.disabled,L=C.motion,T=C.loadData,I=C.filterTreeNode,j=C.height,A=C.itemHeight,z=C.virtual,H=C.titleRender,F=C.dropIndicatorRender,B=C.onContextMenu,V=C.onScroll,W=C.direction,U=C.rootClassName,G=C.rootStyle,q=(0,y.Z)(this.props,{aria:!0,data:!0});return D&&(n="object"===(0,i.Z)(D)?D:"function"==typeof D?{nodeDraggable:D}:{}),v.createElement(ns.Provider,{value:{prefixCls:E,selectable:S,showIcon:K,icon:O,switcherIcon:P,draggable:n,draggingNodeKey:s,checkable:_,checkStrictly:R,disabled:M,keyEntities:a,dropLevelOffset:f,dropContainerKey:p,dropTargetKey:h,dropPosition:m,dragOverNodeKey:g,indent:x,direction:W,dropIndicatorRender:F,loadData:T,filterTreeNode:I,titleRender:H,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},v.createElement("div",{role:"tree",className:d()(E,b,U,(e={},(0,l.Z)(e,"".concat(E,"-show-line"),Z),(0,l.Z)(e,"".concat(E,"-focused"),r),(0,l.Z)(e,"".concat(E,"-active-focused"),null!==u),e)),style:G},v.createElement(nq,(0,c.Z)({ref:this.listRef,prefixCls:E,style:k,data:o,disabled:M,selectable:S,checkable:!!_,motion:L,dragging:null!==s,height:j,itemHeight:A,virtual:z,focusable:w,focused:r,tabIndex:void 0===N?0:N,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:B,onScroll:V},this.getTreeNodeRequiredProps(),q))))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var t,r,o=n.prevProps,a={prevProps:e};function i(n){return!o&&n in e||o&&o[n]!==e[n]}var c=n.fieldNames;if(i("fieldNames")&&(c=np(e.fieldNames),a.fieldNames=c),i("treeData")?t=e.treeData:i("children")&&((0,C.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),t=nv(e.children)),t){a.treeData=t;var s=ny(t,{fieldNames:c});a.keyEntities=(0,f.Z)((0,l.Z)({},nF,nV),s.keyEntities)}var u=a.keyEntities||n.keyEntities;if(i("expandedKeys")||o&&i("autoExpandParent"))a.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?nD(e.expandedKeys,u):e.expandedKeys;else if(!o&&e.defaultExpandAll){var d=(0,f.Z)({},u);delete d[nF],a.expandedKeys=Object.keys(d).map(function(e){return d[e].key})}else!o&&e.defaultExpandedKeys&&(a.expandedKeys=e.autoExpandParent||e.defaultExpandParent?nD(e.defaultExpandedKeys,u):e.defaultExpandedKeys);if(a.expandedKeys||delete a.expandedKeys,t||a.expandedKeys){var p=nh(t||n.treeData,a.expandedKeys||n.expandedKeys,c);a.flattenNodes=p}if(e.selectable&&(i("selectedKeys")?a.selectedKeys=nO(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(a.selectedKeys=nO(e.defaultSelectedKeys,e))),e.checkable&&(i("checkedKeys")?r=nP(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?r=nP(e.defaultCheckedKeys)||{}:t&&(r=nP(e.checkedKeys)||{checkedKeys:n.checkedKeys,halfCheckedKeys:n.halfCheckedKeys}),r)){var v=r,h=v.checkedKeys,y=void 0===h?[]:h,m=v.halfCheckedKeys,g=void 0===m?[]:m;if(!e.checkStrictly){var x=nY(y,!0,u);y=x.checkedKeys,g=x.halfCheckedKeys}a.checkedKeys=y,a.halfCheckedKeys=g}return i("loadedKeys")&&(a.loadedKeys=e.loadedKeys),a}}]),t}(v.Component);nJ.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var n=e.dropPosition,t=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case -1:o.top=0,o.left=-t*r;break;case 1:o.bottom=0,o.left=-t*r;break;case 0:o.bottom=0,o.left=r}return v.createElement("div",{style:o})},allowDrop:function(){return!0},expandAction:!1},nJ.TreeNode=nk;var nQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},n0=function(e,n){return v.createElement(ez.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:n,icon:nQ}))};n0.displayName="HolderOutlined";var n1=v.forwardRef(n0),n2=t(33603);function n4(e){var n,t=e.dropPosition,r=e.dropLevelOffset,o=e.prefixCls,a=e.indent,i=e.direction,c=void 0===i?"ltr":i,s="ltr"===c?"left":"right",u=(n={},(0,l.Z)(n,s,-r*a+4),(0,l.Z)(n,"ltr"===c?"right":"left",0),n);switch(t){case -1:u.top=-3;break;case 1:u.bottom=-3;break;default:u.bottom=-3,u[s]=a+4}return v.createElement("div",{style:u,className:"".concat(o,"-drop-indicator")})}var n3={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},n6=function(e,n){return v.createElement(ez.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:n,icon:n3}))};n6.displayName="CaretDownFilled";var n8=v.forwardRef(n6),n5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},n7=function(e,n){return v.createElement(ez.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:n,icon:n5}))};n7.displayName="FileOutlined";var n9=v.forwardRef(n7),te=t(50888),tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},tt=function(e,n){return v.createElement(ez.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:n,icon:tn}))};tt.displayName="MinusSquareOutlined";var tr=v.forwardRef(tt),to={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},ta=function(e,n){return v.createElement(ez.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:n,icon:to}))};ta.displayName="PlusSquareOutlined";var ti=v.forwardRef(ta),tl=t(96159),tc=v.forwardRef(function(e,n){var t,r=v.useContext(eS.E_),o=r.getPrefixCls,a=r.direction,s=r.virtual,u=e.prefixCls,f=e.className,p=e.showIcon,h=void 0!==p&&p,y=e.showLine,m=e.switcherIcon,g=e.blockNode,x=void 0!==g&&g,C=e.children,E=e.checkable,b=void 0!==E&&E,k=e.selectable,Z=void 0===k||k,w=e.draggable,N=e.motion,S=void 0===N?(0,c.Z)((0,c.Z)({},n2.ZP),{motionAppear:!1}):N,K=o("tree",u),O=(0,c.Z)((0,c.Z)({},e),{checkable:b,selectable:Z,showIcon:h,motion:S,blockNode:x,showLine:Boolean(y),dropIndicatorRender:n4}),P=v.useMemo(function(){if(!w)return!1;var e={};switch((0,i.Z)(w)){case"function":e.nodeDraggable=w;break;case"object":e=(0,c.Z)({},w)}return!1!==e.icon&&(e.icon=e.icon||v.createElement(n1,null)),e},[w]);return v.createElement(nJ,(0,c.Z)({itemHeight:20,ref:n,virtual:s},O,{prefixCls:K,className:d()((t={},(0,l.Z)(t,"".concat(K,"-icon-hide"),!h),(0,l.Z)(t,"".concat(K,"-block-node"),x),(0,l.Z)(t,"".concat(K,"-unselectable"),!Z),(0,l.Z)(t,"".concat(K,"-rtl"),"rtl"===a),t),f),direction:a,checkable:b?v.createElement("span",{className:"".concat(K,"-checkbox-inner")}):b,selectable:Z,switcherIcon:function(e){return function(e,n,t,r){var o,a=r.isLeaf,l=r.expanded;if(r.loading)return v.createElement(te.Z,{className:"".concat(e,"-switcher-loading-icon")});if(t&&"object"===(0,i.Z)(t)&&(o=t.showLeafIcon),a){if(!t)return null;if("boolean"!=typeof o&&o){var c="function"==typeof o?o(r):o;return(0,tl.l$)(c)?(0,tl.Tm)(c,{className:d()(c.props.className||"","".concat(e,"-switcher-line-custom-icon"))}):c}return o?v.createElement(n9,{className:"".concat(e,"-switcher-line-icon")}):v.createElement("span",{className:"".concat(e,"-switcher-leaf-line")})}var s="".concat(e,"-switcher-icon"),u="function"==typeof n?n(r):n;return(0,tl.l$)(u)?(0,tl.Tm)(u,{className:d()(u.props.className||"",s)}):u||(t?l?v.createElement(tr,{className:"".concat(e,"-switcher-line-icon")}):v.createElement(ti,{className:"".concat(e,"-switcher-line-icon")}):v.createElement(n8,{className:s}))}(K,m,y,e)},draggable:P}),C)}),ts={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},tu=function(e,n){return v.createElement(ez.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:n,icon:ts}))};tu.displayName="FolderOpenOutlined";var td=v.forwardRef(tu),tf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},tp=function(e,n){return v.createElement(ez.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:n,icon:tf}))};tp.displayName="FolderOutlined";var tv=v.forwardRef(tp);function th(e,n){e.forEach(function(e){var t=e.key,r=e.children;!1!==n(t,e)&&th(r||[],n)})}function ty(e,n){var t=(0,p.Z)(n),r=[];return th(e,function(e,n){var o=t.indexOf(e);return -1!==o&&(r.push(n),t.splice(o,1)),!!t.length}),r}(o=a||(a={}))[o.None=0]="None",o[o.Start=1]="Start",o[o.End=2]="End";var tm=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t};function tg(e){var n=e.isLeaf,t=e.expanded;return n?v.createElement(n9,null):t?v.createElement(td,null):v.createElement(tv,null)}function tx(e){var n=e.treeData,t=e.children;return n||nv(t)}var tC=v.forwardRef(function(e,n){var t=e.defaultExpandAll,r=e.defaultExpandParent,o=e.defaultExpandedKeys,i=tm(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),u=v.useRef(),f=v.useRef(),h=function(){var e=ny(tx(i)).keyEntities;return t?Object.keys(e):r?nD(i.expandedKeys||o||[],e):i.expandedKeys||o},y=v.useState(i.selectedKeys||i.defaultSelectedKeys||[]),m=(0,s.Z)(y,2),g=m[0],x=m[1],C=v.useState(function(){return h()}),E=(0,s.Z)(C,2),b=E[0],k=E[1];v.useEffect(function(){"selectedKeys"in i&&x(i.selectedKeys)},[i.selectedKeys]),v.useEffect(function(){"expandedKeys"in i&&k(i.expandedKeys)},[i.expandedKeys]);var Z=v.useContext(eS.E_),w=Z.getPrefixCls,N=Z.direction,S=i.prefixCls,K=i.className,O=i.showIcon,P=i.expandAction,D=tm(i,["prefixCls","className","showIcon","expandAction"]),_=w("tree",S),R=d()("".concat(_,"-directory"),(0,l.Z)({},"".concat(_,"-directory-rtl"),"rtl"===N),K);return v.createElement(tc,(0,c.Z)({icon:tg,ref:n,blockNode:!0},D,{showIcon:void 0===O||O,expandAction:void 0===P?"click":P,prefixCls:_,className:R,expandedKeys:b,selectedKeys:g,onSelect:function(e,n){var t,r,o,l,s,d,v,h,y,m=i.multiple,g=n.node,C=n.nativeEvent,E=g.key,k=void 0===E?"":E,Z=tx(i),w=(0,c.Z)((0,c.Z)({},n),{selected:!0}),N=(null==C?void 0:C.ctrlKey)||(null==C?void 0:C.metaKey),S=null==C?void 0:C.shiftKey;m&&N?(y=e,u.current=k,f.current=y,w.selectedNodes=ty(Z,y)):m&&S?(y=Array.from(new Set([].concat((0,p.Z)(f.current||[]),(0,p.Z)((r=(t={treeData:Z,expandedKeys:b,startKey:k,endKey:u.current}).treeData,o=t.expandedKeys,l=t.startKey,s=t.endKey,d=[],v=a.None,l&&l===s?[l]:l&&s?(th(r,function(e){if(v===a.End)return!1;if(e===l||e===s){if(d.push(e),v===a.None)v=a.Start;else if(v===a.Start)return v=a.End,!1}else v===a.Start&&d.push(e);return o.includes(e)}),d):[]))))),w.selectedNodes=ty(Z,y)):(y=[k],u.current=k,f.current=y,w.selectedNodes=ty(Z,y)),null===(h=i.onSelect)||void 0===h||h.call(i,y,w),"selectedKeys"in i||x(y)},onExpand:function(e,n){var t;return"expandedKeys"in i||k(e),null===(t=i.onExpand)||void 0===t?void 0:t.call(i,e,n)}}))}),tE=tc;tE.DirectoryTree=tC,tE.TreeNode=nk;var tb=t(57838),tk=t(68795),tZ=t(69677),tw=function(e){var n=e.value,t=e.onChange,r=e.filterSearch,o=e.tablePrefixCls,a=e.locale;return r?v.createElement("div",{className:"".concat(o,"-filter-dropdown-search")},v.createElement(tZ.Z,{prefix:v.createElement(tk.Z,null),placeholder:a.filterSearchPlaceholder,onChange:t,value:n,htmlSize:1,className:"".concat(o,"-filter-dropdown-search-input")})):null},tN=function(e){e.keyCode===nc.Z.ENTER&&e.stopPropagation()},tS=function(e){return v.createElement("div",{className:e.className,onClick:function(e){return e.stopPropagation()},onKeyDown:tN},e.children)};function tK(e,n){return("string"==typeof n||"number"==typeof n)&&(null==n?void 0:n.toString().toLowerCase().includes(e.trim().toLowerCase()))}var tO=function(e){var n,t,r,o,a,i,u=e.tablePrefixCls,f=e.prefixCls,p=e.column,h=e.dropdownPrefixCls,y=e.columnKey,m=e.filterMultiple,g=e.filterMode,x=e.filterSearch,C=void 0!==x&&x,E=e.filterState,b=e.triggerFilter,k=e.locale,Z=e.children,w=e.getPopupContainer,N=p.filterDropdownOpen,S=p.onFilterDropdownOpenChange,K=p.filterDropdownVisible,O=p.onFilterDropdownVisibleChange,P=p.filterResetToDefaultFilteredValue,D=p.defaultFilteredValue,_=v.useState(!1),R=(0,s.Z)(_,2),M=R[0],L=R[1],T=!!(E&&((null===(r=E.filteredKeys)||void 0===r?void 0:r.length)||E.forceFiltered)),I=function(e){L(e),null==S||S(e),null==O||O(e)};o="boolean"==typeof N?N:"boolean"==typeof K?K:M;var j=null==E?void 0:E.filteredKeys,A=(n=v.useRef(j||[]),t=(0,tb.Z)(),[function(){return n.current},function(e){n.current=e,t()}]),z=(0,s.Z)(A,2),H=z[0],F=z[1],B=function(e){F(e.selectedKeys)};v.useEffect(function(){M&&B({selectedKeys:j||[]})},[j]);var V=v.useState([]),W=(0,s.Z)(V,2),U=W[0],G=W[1],q=v.useState(""),X=(0,s.Z)(q,2),$=X[0],Y=X[1],J=function(e){Y(e.target.value)};v.useEffect(function(){M||Y("")},[M]);var Q=function(e){var n=e&&e.length?e:null;if(null===n&&(!E||!E.filteredKeys)||eV()(n,null==E?void 0:E.filteredKeys))return null;b({column:p,key:y,filteredKeys:n})},ee=function(){I(!1),Q(H())},en=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1},n=e.confirm,t=e.closeDropdown;n&&Q([]),t&&I(!1),Y(""),P?F((D||[]).map(function(e){return String(e)})):F([])},et=d()((0,l.Z)({},"".concat(h,"-menu-without-submenu"),!(p.filters||[]).some(function(e){return e.children}))),er=function e(n){var t;return(0,c.Z)((0,c.Z)({},n),{text:n.title,value:n.key,children:(null===(t=n.children)||void 0===t?void 0:t.map(function(n){return e(n)}))||[]})};if("function"==typeof p.filterDropdown)a=p.filterDropdown({prefixCls:"".concat(h,"-custom"),setSelectedKeys:function(e){return B({selectedKeys:e})},selectedKeys:H(),confirm:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e.closeDropdown&&I(!1),Q(H())},clearFilters:en,filters:p.filters,visible:o,close:function(){I(!1)}});else if(p.filterDropdown)a=p.filterDropdown;else{var eo=H()||[];a=v.createElement(v.Fragment,null,0===(p.filters||[]).length?v.createElement(eq.Z,{image:eq.Z.PRESENTED_IMAGE_SIMPLE,description:k.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===(void 0===g?"menu":g)?v.createElement(v.Fragment,null,v.createElement(tw,{filterSearch:C,value:$,onChange:J,tablePrefixCls:u,locale:k}),v.createElement("div",{className:"".concat(u,"-filter-dropdown-tree")},m?v.createElement(eU.Z,{checked:eo.length===tD(p.filters).length,indeterminate:eo.length>0&&eo.lengthn.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);on.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t},tT=t(84506),tI=t(80882),tj={},tA="SELECT_ALL",tz="SELECT_INVERT",tH="SELECT_NONE",tF=[],tB=t(39398),tV=t(10010),tW=t(94199),tU="ascend",tG="descend";function tq(e){return"object"===(0,i.Z)(e.sorter)&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function tX(e){return"function"==typeof e?e:!!e&&"object"===(0,i.Z)(e)&&!!e.compare&&e.compare}function t$(e,n,t){var r=[];function o(e,n){r.push({column:e,key:eT(e,n),multiplePriority:tq(e),sortOrder:e.sortOrder})}return(e||[]).forEach(function(e,a){var i=eI(a,t);e.children?("sortOrder"in e&&o(e,i),r=[].concat((0,p.Z)(r),(0,p.Z)(t$(e.children,n,i)))):e.sorter&&("sortOrder"in e?o(e,i):n&&e.defaultSortOrder&&r.push({column:e,key:eT(e,i),multiplePriority:tq(e),sortOrder:e.defaultSortOrder}))}),r}function tY(e){var n=e.column;return{column:n,order:e.sortOrder,field:n.dataIndex,columnKey:n.key}}function tJ(e){var n=e.filter(function(e){return e.sortOrder}).map(tY);return 0===n.length&&e.length?(0,c.Z)((0,c.Z)({},tY(e[e.length-1])),{column:void 0}):n.length<=1?n[0]||{}:n}function tQ(e,n,t){var r=n.slice().sort(function(e,n){return n.multiplePriority-e.multiplePriority}),o=e.slice(),a=r.filter(function(e){var n=e.column.sorter,t=e.sortOrder;return tX(n)&&t});return a.length?o.sort(function(e,n){for(var t=0;t2&&void 0!==arguments[2]&&arguments[2],r=(0,c.Z)((0,c.Z)({},eu),e);t&&(eu.resetPagination(),r.pagination.current&&(r.pagination.current=1),m&&m.onChange&&m.onChange(1,r.pagination.pageSize)),R&&!1!==R.scrollToFirstRowOnChange&&ei.body.current&&function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.getContainer,r=n.callback,o=n.duration,a=void 0===o?450:o,i=(void 0===t?function(){return window}:t)(),l=function(e,n){if("undefined"==typeof window)return 0;var t,r,o=n?"scrollTop":"scrollLeft",a=0;return eL(e)?a=e[n?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:e instanceof HTMLElement?a=e[o]:e&&(a=e[o]),e&&!eL(e)&&"number"!=typeof a&&(a=null===(r=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===r?void 0:r[o]),a}(i,!0),c=Date.now();(0,eM.Z)(function e(){var n,t,o=Date.now()-c,s=(n=o>a?a:o,t=0-l,(n/=a/2)<1?t/2*n*n*n+l:t/2*((n-=2)*n*n+2)+l);eL(i)?i.scrollTo(window.pageXOffset,s):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=s:i.scrollTop=s,o0?e5:e4}),na=Math.ceil((e5||e4)/no.pageSize),no.current>na&&(no.current=na||1),ni=function(e,n){nr({current:null!=e?e:1,pageSize:n||no.pageSize})},!1===m?[{},function(){}]:[(0,c.Z)((0,c.Z)({},no),{onChange:function(e,n){var t;m&&(null===(t=m.onChange)||void 0===t||t.call(m,e,n)),ni(e,n),e3(e,n||(null==no?void 0:no.pageSize))}}),ni]),eB=(0,s.Z)(eF,2),eV=eB[0],eW=eB[1];eu.pagination=!1===m?{}:(nl=m,nu={current:(ns=eV).current,pageSize:ns.pageSize},Object.keys(nl&&"object"===(0,i.Z)(nl)?nl:{}).forEach(function(e){var n=ns[e];"function"!=typeof n&&(nu[e]=n)}),nu),eu.resetPagination=eW;var eq=v.useMemo(function(){if(!1===m||!eV.pageSize)return eA;var e=eV.current,n=void 0===e?1:e,t=eV.total,r=eV.pageSize,o=void 0===r?10:r;return eA.lengtho?eA.slice((n-1)*o,n*o):eA:eA.slice((n-1)*o,n*o)},[!!m,eA,eV&&eV.current,eV&&eV.pageSize,eV&&eV.total]),eX=(nd={prefixCls:J,data:eA,pageData:eq,getRowKey:el,getRecordByKey:es,expandType:ea,childrenColumnName:eo,locale:X,getPopupContainer:N},np=(nf=g||{}).preserveSelectedRowKeys,nv=nf.selectedRowKeys,nh=nf.defaultSelectedRowKeys,nm=nf.getCheckboxProps,ng=nf.onChange,nx=nf.onSelect,nC=nf.onSelectAll,nE=nf.onSelectInvert,nb=nf.onSelectNone,nk=nf.onSelectMultiple,nN=nf.columnWidth,nS=nf.type,nK=nf.selections,nO=nf.fixed,nP=nf.renderCell,nD=nf.hideSelectAll,nR=void 0===(n_=nf.checkStrictly)||n_,nM=nd.prefixCls,nL=nd.data,nT=nd.pageData,nI=nd.getRecordByKey,nj=nd.getRowKey,nA=nd.expandType,nz=nd.childrenColumnName,nH=nd.locale,nF=nd.getPopupContainer,nB=(0,eY.Z)(nv||nh||tF,{value:nv}),nW=(nV=(0,s.Z)(nB,2))[0],nU=nV[1],nG=v.useRef(new Map),nq=(0,v.useCallback)(function(e){if(np){var n=new Map;e.forEach(function(e){var t=nI(e);!t&&nG.current.has(e)&&(t=nG.current.get(e)),n.set(e,t)}),nG.current=n}},[nI,np]),v.useEffect(function(){nq(nW)},[nW]),nX=(0,v.useMemo)(function(){return nR?{keyEntities:null}:ny(nL,{externalGetKey:nj,childrenPropName:nz})},[nL,nj,nR,nz]).keyEntities,n$=(0,v.useMemo)(function(){return function e(n,t){var r=[];return(n||[]).forEach(function(n){r.push(n),n&&"object"===(0,i.Z)(n)&&t in n&&(r=[].concat((0,p.Z)(r),(0,p.Z)(e(n[t],t))))}),r}(nT,nz)},[nT,nz]),nJ=(0,v.useMemo)(function(){var e=new Map;return n$.forEach(function(n,t){var r=nj(n,t),o=(nm?nm(n):null)||{};e.set(r,o)}),e},[n$,nj,nm]),nQ=(0,v.useCallback)(function(e){var n;return!!(null===(n=nJ.get(nj(e)))||void 0===n?void 0:n.disabled)},[nJ,nj]),n0=(0,v.useMemo)(function(){if(nR)return[nW||[],[]];var e=nY(nW,!0,nX,nQ);return[e.checkedKeys||[],e.halfCheckedKeys]},[nW,nR,nX,nQ]),n2=(n1=(0,s.Z)(n0,2))[0],n4=n1[1],n3=(0,v.useMemo)(function(){var e="radio"===nS?n2.slice(0,1):n2;return new Set(e)},[n2,nS]),n6=(0,v.useMemo)(function(){return"radio"===nS?new Set:new Set(n4)},[n4,nS]),n8=(0,v.useState)(null),n7=(n5=(0,s.Z)(n8,2))[0],n9=n5[1],v.useEffect(function(){g||nU(tF)},[!!g]),te=(0,v.useCallback)(function(e,n){var t,r;nq(e),np?(t=e,r=e.map(function(e){return nG.current.get(e)})):(t=[],r=[],e.forEach(function(e){var n=nI(e);void 0!==n&&(t.push(e),r.push(n))})),nU(t),null==ng||ng(t,r,{type:n})},[nU,nI,ng,np]),tn=(0,v.useCallback)(function(e,n,t,r){if(nx){var o=t.map(function(e){return nI(e)});nx(nI(e),n,o,r)}te(t,"single")},[nx,nI,te]),tt=(0,v.useMemo)(function(){return!nK||nD?null:(!0===nK?[tA,tz,tH]:nK).map(function(e){return e===tA?{key:"all",text:nH.selectionAll,onSelect:function(){te(nL.map(function(e,n){return nj(e,n)}).filter(function(e){var n=nJ.get(e);return!(null==n?void 0:n.disabled)||n3.has(e)}),"all")}}:e===tz?{key:"invert",text:nH.selectInvert,onSelect:function(){var e=new Set(n3);nT.forEach(function(n,t){var r=nj(n,t),o=nJ.get(r);(null==o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))});var n=Array.from(e);nE&&nE(n),te(n,"invert")}}:e===tH?{key:"none",text:nH.selectNone,onSelect:function(){null==nb||nb(),te(Array.from(n3).filter(function(e){var n=nJ.get(e);return null==n?void 0:n.disabled}),"none")}}:e}).map(function(e){return(0,c.Z)((0,c.Z)({},e),{onSelect:function(){for(var n,t=arguments.length,r=Array(t),o=0;o0&&g&&(en.expandIconColumnIndex-=1),"number"!=typeof en.indentSize&&(en.indentSize="number"==typeof _?_:15);var e0=v.useCallback(function(e){return eH(eJ(eE(ev(e))))},[ev,eE,eJ]);if(!1!==m&&(null==eV?void 0:eV.total)){tl=eV.size?eV.size:"small"===q||"middle"===q?"small":void 0;var e1,e2,e4,e3,e6,e8,e5,e7,e9,ne,nn,nr,no,na,ni,nl,ns,nu,nd,nf,np,nv,nh,nm,ng,nx,nC,nE,nb,nk,nN,nS,nK,nO,nP,nD,n_,nR,nM,nL,nT,nI,nj,nA,nz,nH,nF,nB,nV,nW,nU,nG,nq,nX,n$,nJ,nQ,n0,n1,n2,n4,n3,n6,n8,n5,n7,n9,te,tn,tt,tr,to,ta,ti,tl,tc=function(e){return v.createElement(e_.Z,(0,c.Z)({},eV,{className:d()("".concat(J,"-pagination ").concat(J,"-pagination-").concat(e),eV.className),size:tl}))},ts="rtl"===G?"left":"right",tu=eV.position;if(null!==tu&&Array.isArray(tu)){var td=tu.find(function(e){return e.includes("top")}),tf=tu.find(function(e){return e.includes("bottom")}),tp=tu.every(function(e){return"none"==="".concat(e)});td||tf||tp||(ti=tc(ts)),td&&(ta=tc(td.toLowerCase().replace("top",""))),tf&&(ti=tc(tf.toLowerCase().replace("bottom","")))}else ti=tc(ts)}"boolean"==typeof S?t={spinning:S}:"object"===(0,i.Z)(S)&&(t=(0,c.Z)({spinning:!0},S));var tv=d()("".concat(J,"-wrapper"),(0,l.Z)({},"".concat(J,"-wrapper-rtl"),"rtl"===G),o);return v.createElement("div",{ref:n,className:tv,style:a},v.createElement(eR.Z,(0,c.Z)({spinning:!1},t),ta,v.createElement(ew,(0,c.Z)({},H,{columns:z,direction:G,expandable:en,prefixCls:J,className:d()((to={},(0,l.Z)(to,"".concat(J,"-middle"),"middle"===q),(0,l.Z)(to,"".concat(J,"-small"),"small"===q),(0,l.Z)(to,"".concat(J,"-bordered"),f),(0,l.Z)(to,"".concat(J,"-empty"),0===$.length),to)),data:eq,rowKey:el,rowClassName:function(e,n,t){var r;return r="function"==typeof E?d()(E(e,n,t)):d()(E),d()((0,l.Z)({},"".concat(J,"-row-selected"),eQ.has(el(e,n))),r)},emptyText:L&&L.emptyText||(U||eK.Z)("Table"),internalHooks:ek,internalRefs:ei,transformColumns:e0})),ti))});t1.SELECTION_COLUMN=tj,t1.EXPAND_COLUMN=ew.EXPAND_COLUMN,t1.SELECTION_ALL=tA,t1.SELECTION_INVERT=tz,t1.SELECTION_NONE=tH,t1.Column=function(e){return null},t1.ColumnGroup=function(e){return null},t1.Summary=ef;var t2=t1},18552:function(e,n,t){var r=t(10852)(t(55639),"DataView");e.exports=r},1989:function(e,n,t){var r=t(51789),o=t(80401),a=t(57667),i=t(21327),l=t(81866);function c(e){var n=-1,t=null==e?0:e.length;for(this.clear();++nu))return!1;var f=c.get(e),p=c.get(n);if(f&&p)return f==n&&p==e;var v=-1,h=!0,y=2&t?new r:void 0;for(c.set(e,n),c.set(n,e);++v-1&&e%1==0&&e-1}},54705:function(e,n,t){var r=t(18470);e.exports=function(e,n){var t=this.__data__,o=r(t,e);return o<0?(++this.size,t.push([e,n])):t[o][1]=n,this}},24785:function(e,n,t){var r=t(1989),o=t(38407),a=t(57071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},11285:function(e,n,t){var r=t(45050);e.exports=function(e){var n=r(this,e).delete(e);return this.size-=n?1:0,n}},96e3:function(e,n,t){var r=t(45050);e.exports=function(e){return r(this,e).get(e)}},49916:function(e,n,t){var r=t(45050);e.exports=function(e){return r(this,e).has(e)}},95265:function(e,n,t){var r=t(45050);e.exports=function(e,n){var t=r(this,e),o=t.size;return t.set(e,n),this.size+=t.size==o?0:1,this}},68776:function(e){e.exports=function(e){var n=-1,t=Array(e.size);return e.forEach(function(e,r){t[++n]=[r,e]}),t}},94536:function(e,n,t){var r=t(10852)(Object,"create");e.exports=r},86916:function(e,n,t){var r=t(5569)(Object.keys,Object);e.exports=r},31167:function(e,n,t){e=t.nmd(e);var r=t(31957),o=n&&!n.nodeType&&n,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return i&&i.binding&&i.binding("util")}catch(n){}}();e.exports=l},5569:function(e){e.exports=function(e,n){return function(t){return e(n(t))}}},90619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:function(e){e.exports=function(e){return this.__data__.has(e)}},21814:function(e){e.exports=function(e){var n=-1,t=Array(e.size);return e.forEach(function(e){t[++n]=e}),t}},37465:function(e,n,t){var r=t(38407);e.exports=function(){this.__data__=new r,this.size=0}},63779:function(e){e.exports=function(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,n,t){var r=t(38407),o=t(57071),a=t(83369);e.exports=function(e,n){var t=this.__data__;if(t instanceof r){var i=t.__data__;if(!o||i.length<199)return i.push([e,n]),this.size=++t.size,this;t=this.__data__=new a(i)}return t.set(e,n),this.size=t.size,this}},80346:function(e){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(r){}}return""}},77813:function(e){e.exports=function(e,n){return e===n||e!=e&&n!=n}},35694:function(e,n,t){var r=t(9454),o=t(37005),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=c},1469:function(e){var n=Array.isArray;e.exports=n},98612:function(e,n,t){var r=t(23560),o=t(41780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},44144:function(e,n,t){e=t.nmd(e);var r=t(55639),o=t(95062),a=n&&!n.nodeType&&n,i=a&&e&&!e.nodeType&&e,l=i&&i.exports===a?r.Buffer:void 0,c=l?l.isBuffer:void 0;e.exports=c||o},18446:function(e,n,t){var r=t(90939);e.exports=function(e,n){return r(e,n)}},23560:function(e,n,t){var r=t(44239),o=t(13218);e.exports=function(e){if(!o(e))return!1;var n=r(e);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},36719:function(e,n,t){var r=t(38749),o=t(7518),a=t(31167),i=a&&a.isTypedArray,l=i?o(i):r;e.exports=l},3674:function(e,n,t){var r=t(14636),o=t(280),a=t(98612);e.exports=function(e){return a(e)?r(e):o(e)}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},50132:function(e,n,t){"use strict";var r=t(87462),o=t(4942),a=t(45987),i=t(1413),l=t(15671),c=t(43144),s=t(60136),u=t(33643),d=t(67294),f=t(94184),p=t.n(f),v=function(e){(0,s.Z)(t,e);var n=(0,u.Z)(t);function t(e){(0,l.Z)(this,t),(r=n.call(this,e)).handleChange=function(e){var n=r.props,t=n.disabled,o=n.onChange;!t&&("checked"in r.props||r.setState({checked:e.target.checked}),o&&o({target:(0,i.Z)((0,i.Z)({},r.props),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var r,o="checked"in e?e.checked:e.defaultChecked;return r.state={checked:o},r}return(0,c.Z)(t,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e,n=this.props,t=n.prefixCls,i=n.className,l=n.style,c=n.name,s=n.id,u=n.type,f=n.disabled,v=n.readOnly,h=n.tabIndex,y=n.onClick,m=n.onFocus,g=n.onBlur,x=n.onKeyDown,C=n.onKeyPress,E=n.onKeyUp,b=n.autoFocus,k=n.value,Z=n.required,w=(0,a.Z)(n,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),N=Object.keys(w).reduce(function(e,n){return("aria-"===n.substr(0,5)||"data-"===n.substr(0,5)||"role"===n)&&(e[n]=w[n]),e},{}),S=this.state.checked,K=p()(t,i,(e={},(0,o.Z)(e,"".concat(t,"-checked"),S),(0,o.Z)(e,"".concat(t,"-disabled"),f),e));return d.createElement("span",{className:K,style:l},d.createElement("input",(0,r.Z)({name:c,id:s,type:u,required:Z,readOnly:v,disabled:f,tabIndex:h,className:"".concat(t,"-input"),checked:!!S,onClick:y,onFocus:m,onBlur:g,onKeyUp:E,onKeyDown:x,onKeyPress:C,onChange:this.handleChange,autoFocus:b,ref:this.saveInput,value:k},N)),d.createElement("span",{className:"".concat(t,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(e,n){return"checked"in e?(0,i.Z)((0,i.Z)({},n),{},{checked:e.checked}):null}}]),t}(d.Component);v.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}},n.Z=v}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/2386.4cae8b3c19475466.js b/static/web/_next/static/chunks/2386.8dbe7cec444dc12b.js similarity index 98% rename from static/web/_next/static/chunks/2386.4cae8b3c19475466.js rename to static/web/_next/static/chunks/2386.8dbe7cec444dc12b.js index 56dcd18f0..dfad21cd3 100644 --- a/static/web/_next/static/chunks/2386.4cae8b3c19475466.js +++ b/static/web/_next/static/chunks/2386.8dbe7cec444dc12b.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2386],{12386:function(O,$,Q){Q.r($),Q.d($,{php:function(){return u},phpLanguage:function(){return V}});var i=Q(53105),y=Q(35524);let a={abstract:4,and:5,array:6,as:7,true:8,false:8,break:9,case:10,catch:11,clone:12,const:13,continue:14,declare:16,default:15,do:17,echo:18,else:19,elseif:20,enddeclare:21,endfor:22,endforeach:23,endif:24,endswitch:25,endwhile:26,enum:27,extends:28,final:29,finally:30,fn:31,for:32,foreach:33,from:34,function:35,global:36,goto:37,if:38,implements:39,include:40,include_once:41,instanceof:42,insteadof:43,interface:44,list:45,match:46,namespace:47,new:48,null:49,or:50,print:51,require:52,require_once:53,return:54,switch:55,throw:56,trait:57,try:58,unset:59,use:60,var:61,public:62,private:62,protected:62,while:63,xor:64,yield:65,__proto__:null};function S(O){return 9==O||10==O||13==O||32==O}function z(O){return O>=97&&O<=122||O>=65&&O<=90}function P(O){return 95==O||O>=128||z(O)}function t(O){return O>=48&&O<=55||O>=97&&O<=102||O>=65&&O<=70}let T={int:!0,integer:!0,bool:!0,boolean:!0,float:!0,double:!0,real:!0,string:!0,array:!0,object:!0,unset:!0,__proto__:null},W=new i.Jq(O=>{if(40==O.next){O.advance();let $=0;for(;S(O.peek($));)$++;let Q="",i;for(;z(i=O.peek($));)Q+=String.fromCharCode(i),$++;for(;S(O.peek($));)$++;41==O.peek($)&&T[Q.toLowerCase()]&&O.acceptToken(1)}else if(60==O.next&&60==O.peek(1)&&60==O.peek(2)){for(let y=0;y<3;y++)O.advance();for(;32==O.next||9==O.next;)O.advance();let a=39==O.next;if(a&&O.advance(),!P(O.next))return;let t=String.fromCharCode(O.next);for(;O.advance(),P(O.next)||O.next>=48&&O.next<=55;)t+=String.fromCharCode(O.next);if(a){if(39!=O.next)return;O.advance()}if(10!=O.next&&13!=O.next)return;for(;;){let W=10==O.next||13==O.next;if(O.advance(),O.next<0)return;if(W){for(;32==O.next||9==O.next;)O.advance();let e=!0;for(let n=0;n{O.next<0&&O.acceptToken(266)}),n=new i.Jq((O,$)=>{63==O.next&&$.canShift(265)&&62==O.peek(1)&&O.acceptToken(265)}),s=new i.Jq((O,$)=>{let Q=!1;for(;!(34==O.next||O.next<0||36==O.next&&(P(O.peek(1))||123==O.peek(1)))&&(123!=O.next||36!=O.peek(1));Q=!0){if(92==O.next){let i=function(O){let $=O.peek(1);if(110==$||114==$||116==$||118==$||101==$||102==$||92==$||36==$||34==$||123==$)return 2;if($>=48&&$<=55){let Q=2,i;for(;Q<5&&(i=O.peek(Q))>=48&&i<=55;)Q++;return Q}if(120==$&&t(O.peek(2)))return t(O.peek(3))?4:3;if(117==$&&123==O.peek(2))for(let y=3;;y++){let a=O.peek(y);if(125==a)return 2==y?0:y+1;if(!t(a))break}return 0}(O);if(i){if(!Q)return O.acceptToken(3,i);break}}else if(!Q&&(91==O.next||45==O.next&&62==O.peek(1)&&P(O.peek(2))||63==O.next&&45==O.peek(1)&&62==O.peek(2)&&P(O.peek(3)))&&$.canShift(264))break;O.advance()}Q&&O.acceptToken(263)}),q=(0,y.Gv)({"Visibility abstract final static":y.pJ.modifier,"for foreach while do if else elseif switch try catch finally return throw break continue default case":y.pJ.controlKeyword,"endif endfor endforeach endswitch endwhile declare enddeclare goto match":y.pJ.controlKeyword,"and or xor yield unset clone instanceof insteadof":y.pJ.operatorKeyword,"function fn class trait implements extends const enum global interface use var":y.pJ.definitionKeyword,"include include_once require require_once namespace":y.pJ.moduleKeyword,"new from echo print array list as":y.pJ.keyword,null:y.pJ.null,Boolean:y.pJ.bool,VariableName:y.pJ.variableName,"NamespaceName/...":y.pJ.namespace,"NamedType/...":y.pJ.typeName,Name:y.pJ.name,"CallExpression/Name":y.pJ.function(y.pJ.variableName),"LabelStatement/Name":y.pJ.labelName,"MemberExpression/Name":y.pJ.propertyName,"MemberExpression/VariableName":y.pJ.special(y.pJ.propertyName),"ScopedExpression/ClassMemberName/Name":y.pJ.propertyName,"ScopedExpression/ClassMemberName/VariableName":y.pJ.special(y.pJ.propertyName),"CallExpression/MemberExpression/Name":y.pJ.function(y.pJ.propertyName),"CallExpression/ScopedExpression/ClassMemberName/Name":y.pJ.function(y.pJ.propertyName),"MethodDeclaration/Name":y.pJ.function(y.pJ.definition(y.pJ.variableName)),"FunctionDefinition/Name":y.pJ.function(y.pJ.definition(y.pJ.variableName)),"ClassDeclaration/Name":y.pJ.definition(y.pJ.className),UpdateOp:y.pJ.updateOperator,ArithOp:y.pJ.arithmeticOperator,LogicOp:y.pJ.logicOperator,BitOp:y.pJ.bitwiseOperator,CompareOp:y.pJ.compareOperator,ControlOp:y.pJ.controlOperator,AssignOp:y.pJ.definitionOperator,"$ ConcatOp":y.pJ.operator,LineComment:y.pJ.lineComment,BlockComment:y.pJ.blockComment,Integer:y.pJ.integer,Float:y.pJ.float,String:y.pJ.string,ShellExpression:y.pJ.special(y.pJ.string),"=> ->":y.pJ.punctuation,"( )":y.pJ.paren,"#[ [ ]":y.pJ.squareBracket,"${ { }":y.pJ.brace,"-> ?->":y.pJ.derefOperator,", ; :: : \\":y.pJ.separator,"PhpOpen PhpClose":y.pJ.processingInstruction}),X={__proto__:null,static:311,STATIC:311,class:333,CLASS:333},d=i.WQ.deserialize({version:14,states:"$GSQ`OWOOQhQaOOP%oO`OOOOO#t'#H_'#H_O%tO#|O'#DtOOO#u'#Dw'#DwQ&SOWO'#DwO&XO$VOOOOQ#u'#Dx'#DxO&lQaO'#D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r'^Q%k!eS%o!f%rQ)b%pU+X(R(S+dQ,p)_Q,t)cQ/Z,uQ/{-|R0p/[|vPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1a#U#i[bklmnopxyz!W!X!Y!{#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b$R$S$U$y%}&S'Y(O)p+P-z/x0e1R2[2]6x6yd+^(T)W+]+`+g,g,h,k.Q/O!t6w'U2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3z3|4O4Q4S4U5v5w!x;b3u3v3x3y3{3}4P4R4T4V4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t$O=z_j!]!g#k#n#o#s#t%R%T&p&s&t&w'O'z(l({)P)i*P*U,V,X-R6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6z6{6|7X7l7o7r7w7|8T8U8X8Z8[8f8g8h8i#|>]!y!z!}%c&W)t)v*T*o,T-d-k.t/c/i/m0d0v4W6T7i7s7u7z8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9Z9[9]9h9y9}:O:R:Y:Z:_:a:b;c;d=Z=m=n!v>^+z-Q9V9X:d:e:f:g:h:j:k:m:o:p:r:t:v:x:z:|;O;Q;S;U;W;Y;[;^;`;e;g;i;t_0V1]9W:i:l:n:q:s:u:w:y:{:};P;R;T;V;X;Z;];_;a;f;h;u AssignmentExpression ArrayExpression ValueList & VariadicUnpacking ... Pair [ ] ListExpression ValueList Pair Pair SubscriptExpression MemberExpression -> ?-> VariableName DynamicVariable $ ${ CallExpression ArgList NamedArgument SpreadArgument CastExpression UnionType LogicOp OptionalType NamedType QualifiedName \\ NamespaceName ScopedExpression :: ClassMemberName AssignOp UpdateExpression UpdateOp YieldExpression BinaryExpression LogicOp LogicOp LogicOp BitOp BitOp BitOp CompareOp CompareOp BitOp ArithOp ConcatOp ArithOp ArithOp IncludeExpression RequireExpression CloneExpression UnaryExpression ControlOp LogicOp PrintIntrinsic FunctionExpression static ParamList Parameter #[ Attributes Attribute VariadicParameter PropertyParameter UseList ArrowFunction NewExpression class BaseClause ClassInterfaceClause DeclarationList ConstDeclaration VariableDeclarator PropertyDeclaration VariableDeclarator MethodDeclaration UseDeclaration UseList UseInsteadOfClause UseAsClause UpdateExpression ArithOp ShellExpression ThrowExpression Integer Float String MemberExpression SubscriptExpression UnaryExpression ArithOp Interpolation String IfStatement ColonBlock SwitchStatement Block CaseStatement DefaultStatement ColonBlock WhileStatement EmptyStatement DoStatement ForStatement ForSpec SequenceExpression ForeachStatement ForSpec Pair GotoStatement ContinueStatement BreakStatement ReturnStatement TryStatement CatchDeclarator DeclareStatement EchoStatement UnsetStatement ConstDeclaration FunctionDefinition ClassDeclaration InterfaceDeclaration TraitDeclaration EnumDeclaration EnumBody EnumCase NamespaceDefinition NamespaceUseDeclaration UseGroup UseClause UseClause GlobalDeclaration FunctionStaticDeclaration Program",maxTerm:304,nodeProps:[["group",-36,2,8,49,81,83,85,88,93,94,102,106,107,110,111,114,118,123,126,130,132,133,147,148,149,150,153,154,164,165,179,181,182,183,184,185,191,"Expression",-28,74,78,80,82,192,194,199,201,202,205,208,209,210,211,212,214,215,216,217,218,219,220,221,222,225,226,230,231,"Statement",-3,119,121,122,"Type"],["openedBy",69,"phpOpen",76,"{",86,"(",101,"#["],["closedBy",71,"phpClose",77,"}",87,")",158,"]"]],propSources:[q],skippedNodes:[0],repeatNodeCount:29,tokenData:"!5h_R!ZOX$tXY%nYZ&}Z]$t]^%n^p$tpq%nqr(]rs)wst*atu/nuv2_vw3`wx4gxy8Oyz8fz{8|{|:W|};_}!O;u!O!P=R!P!QBl!Q!RFr!R![Hn![!]Nz!]!^!!O!^!_!!f!_!`!%R!`!a!&V!a!b!'Z!b!c!*T!c!d!*k!d!e!+q!e!}!*k!}#O!-k#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^!_%_!_~$t",tokenizers:[W,s,n,0,1,2,3,e],topRules:{Template:[0,72],Program:[1,232]},dynamicPrecedences:{284:1},specialized:[{term:81,get(O,$){let Q;return(null==(Q=a[O.toLowerCase()])?-1:Q)<<1}},{term:81,get:O=>X[O]||-1}],tokenPrec:29354});var o=Q(41113),x=Q(13804),R=Q(59119);let V=R.qp.define({name:"php",parser:d.configure({props:[R.uj.add({IfStatement:(0,R.tC)({except:/^\s*({|else\b|elseif\b|endif\b)/}),TryStatement:(0,R.tC)({except:/^\s*({|catch\b|finally\b)/}),SwitchBody(O){let $=O.textAfter,Q=/^\s*\}/.test($),i=/^\s*(case|default)\b/.test($);return O.baseIndent+(Q?0:i?1:2)*O.unit},ColonBlock:O=>O.baseIndent+O.unit,"Block EnumBody DeclarationList":(0,R.vw)({closing:"}"}),ArrowFunction:O=>O.baseIndent+O.unit,"String BlockComment":()=>null,Statement:(0,R.tC)({except:/^({|end(for|foreach|switch|while)\b)/})}),R.x0.add({"Block EnumBody DeclarationList SwitchBody ArrayExpression ValueList":R.Dv,ColonBlock:O=>({from:O.from+1,to:O.to}),BlockComment:O=>({from:O.from+2,to:O.to-2})})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*(?:case |default:|end(?:if|for(?:each)?|switch|while)|else(?:if)?|\{|\})$/,wordChars:"$",closeBrackets:{stringPrefixes:["b","B"]}}});function u(O={}){let $=[],Q;if(null===O.baseLanguage);else if(O.baseLanguage)Q=O.baseLanguage;else{let i=(0,x.html)({matchClosingTags:!1});$.push(i.support),Q=i.language}return new R.ri(V.configure({wrap:Q&&(0,o.FE)(O=>O.type.isTop?{parser:Q.parser,overlay:O=>"Text"==O.name}:null),top:O.plain?"Program":"Template"}),$)}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2386],{12386:function(O,$,Q){Q.r($),Q.d($,{php:function(){return u},phpLanguage:function(){return V}});var i=Q(53105),y=Q(35524);let a={abstract:4,and:5,array:6,as:7,true:8,false:8,break:9,case:10,catch:11,clone:12,const:13,continue:14,declare:16,default:15,do:17,echo:18,else:19,elseif:20,enddeclare:21,endfor:22,endforeach:23,endif:24,endswitch:25,endwhile:26,enum:27,extends:28,final:29,finally:30,fn:31,for:32,foreach:33,from:34,function:35,global:36,goto:37,if:38,implements:39,include:40,include_once:41,instanceof:42,insteadof:43,interface:44,list:45,match:46,namespace:47,new:48,null:49,or:50,print:51,require:52,require_once:53,return:54,switch:55,throw:56,trait:57,try:58,unset:59,use:60,var:61,public:62,private:62,protected:62,while:63,xor:64,yield:65,__proto__:null};function S(O){return 9==O||10==O||13==O||32==O}function z(O){return O>=97&&O<=122||O>=65&&O<=90}function P(O){return 95==O||O>=128||z(O)}function t(O){return O>=48&&O<=55||O>=97&&O<=102||O>=65&&O<=70}let T={int:!0,integer:!0,bool:!0,boolean:!0,float:!0,double:!0,real:!0,string:!0,array:!0,object:!0,unset:!0,__proto__:null},W=new i.Jq(O=>{if(40==O.next){O.advance();let $=0;for(;S(O.peek($));)$++;let Q="",i;for(;z(i=O.peek($));)Q+=String.fromCharCode(i),$++;for(;S(O.peek($));)$++;41==O.peek($)&&T[Q.toLowerCase()]&&O.acceptToken(1)}else if(60==O.next&&60==O.peek(1)&&60==O.peek(2)){for(let y=0;y<3;y++)O.advance();for(;32==O.next||9==O.next;)O.advance();let a=39==O.next;if(a&&O.advance(),!P(O.next))return;let t=String.fromCharCode(O.next);for(;O.advance(),P(O.next)||O.next>=48&&O.next<=55;)t+=String.fromCharCode(O.next);if(a){if(39!=O.next)return;O.advance()}if(10!=O.next&&13!=O.next)return;for(;;){let W=10==O.next||13==O.next;if(O.advance(),O.next<0)return;if(W){for(;32==O.next||9==O.next;)O.advance();let e=!0;for(let n=0;n{O.next<0&&O.acceptToken(266)}),n=new i.Jq((O,$)=>{63==O.next&&$.canShift(265)&&62==O.peek(1)&&O.acceptToken(265)}),s=new i.Jq((O,$)=>{let Q=!1;for(;!(34==O.next||O.next<0||36==O.next&&(P(O.peek(1))||123==O.peek(1)))&&(123!=O.next||36!=O.peek(1));Q=!0){if(92==O.next){let i=function(O){let $=O.peek(1);if(110==$||114==$||116==$||118==$||101==$||102==$||92==$||36==$||34==$||123==$)return 2;if($>=48&&$<=55){let Q=2,i;for(;Q<5&&(i=O.peek(Q))>=48&&i<=55;)Q++;return Q}if(120==$&&t(O.peek(2)))return t(O.peek(3))?4:3;if(117==$&&123==O.peek(2))for(let y=3;;y++){let a=O.peek(y);if(125==a)return 2==y?0:y+1;if(!t(a))break}return 0}(O);if(i){if(!Q)return O.acceptToken(3,i);break}}else if(!Q&&(91==O.next||45==O.next&&62==O.peek(1)&&P(O.peek(2))||63==O.next&&45==O.peek(1)&&62==O.peek(2)&&P(O.peek(3)))&&$.canShift(264))break;O.advance()}Q&&O.acceptToken(263)}),q=(0,y.Gv)({"Visibility abstract final static":y.pJ.modifier,"for foreach while do if else elseif switch try catch finally return throw break continue default case":y.pJ.controlKeyword,"endif endfor endforeach endswitch endwhile declare enddeclare goto match":y.pJ.controlKeyword,"and or xor yield unset clone instanceof insteadof":y.pJ.operatorKeyword,"function fn class trait implements extends const enum global interface use var":y.pJ.definitionKeyword,"include include_once require require_once namespace":y.pJ.moduleKeyword,"new from echo print array list as":y.pJ.keyword,null:y.pJ.null,Boolean:y.pJ.bool,VariableName:y.pJ.variableName,"NamespaceName/...":y.pJ.namespace,"NamedType/...":y.pJ.typeName,Name:y.pJ.name,"CallExpression/Name":y.pJ.function(y.pJ.variableName),"LabelStatement/Name":y.pJ.labelName,"MemberExpression/Name":y.pJ.propertyName,"MemberExpression/VariableName":y.pJ.special(y.pJ.propertyName),"ScopedExpression/ClassMemberName/Name":y.pJ.propertyName,"ScopedExpression/ClassMemberName/VariableName":y.pJ.special(y.pJ.propertyName),"CallExpression/MemberExpression/Name":y.pJ.function(y.pJ.propertyName),"CallExpression/ScopedExpression/ClassMemberName/Name":y.pJ.function(y.pJ.propertyName),"MethodDeclaration/Name":y.pJ.function(y.pJ.definition(y.pJ.variableName)),"FunctionDefinition/Name":y.pJ.function(y.pJ.definition(y.pJ.variableName)),"ClassDeclaration/Name":y.pJ.definition(y.pJ.className),UpdateOp:y.pJ.updateOperator,ArithOp:y.pJ.arithmeticOperator,LogicOp:y.pJ.logicOperator,BitOp:y.pJ.bitwiseOperator,CompareOp:y.pJ.compareOperator,ControlOp:y.pJ.controlOperator,AssignOp:y.pJ.definitionOperator,"$ ConcatOp":y.pJ.operator,LineComment:y.pJ.lineComment,BlockComment:y.pJ.blockComment,Integer:y.pJ.integer,Float:y.pJ.float,String:y.pJ.string,ShellExpression:y.pJ.special(y.pJ.string),"=> ->":y.pJ.punctuation,"( )":y.pJ.paren,"#[ [ ]":y.pJ.squareBracket,"${ { }":y.pJ.brace,"-> ?->":y.pJ.derefOperator,", ; :: : \\":y.pJ.separator,"PhpOpen PhpClose":y.pJ.processingInstruction}),X={__proto__:null,static:311,STATIC:311,class:333,CLASS:333},d=i.WQ.deserialize({version:14,states:"$GSQ`OWOOQhQaOOP%oO`OOOOO#t'#H_'#H_O%tO#|O'#DtOOO#u'#Dw'#DwQ&SOWO'#DwO&XO$VOOOOQ#u'#Dx'#DxO&lQaO'#D|O(mQdO'#E}O(tQdO'#EQO*kQaO'#EWO,zQ`O'#ETO-PQ`O'#E^O/nQaO'#E^O/uQ`O'#EfO/zQ`O'#EoO*kQaO'#EoO0VQ`O'#HhO0[Q`O'#E{O0[Q`O'#E{OOQS'#Ic'#IcO0aQ`O'#EvOOQS'#IZ'#IZO2oQdO'#IWO6tQeO'#FUO*kQaO'#FeO*kQaO'#FfO*kQaO'#FgO*kQaO'#FhO*kQaO'#FhO*kQaO'#FkOOQO'#Id'#IdO7RQ`O'#FqOOQO'#Hi'#HiO7ZQ`O'#HOO7uQ`O'#FlO8QQ`O'#H]O8]Q`O'#FvO8eQaO'#FwO*kQaO'#GVO*kQaO'#GYO8}OrO'#G]OOQS'#Iq'#IqOOQS'#Ip'#IpOO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5p5q5t$O=z_j!]!g#k#n#o#s#t%R%T&p&s&t&w'O'z(l({)P)i*P*U,V,X-R6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6z6{6|7X7l7o7r7w7|8T8U8X8Z8[8f8g8h8i#|>]!y!z!}%c&W)t)v*T*o,T-d-k.t/c/i/m0d0v4W6T7i7s7u7z8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9Z9[9]9h9y9}:O:R:Y:Z:_:a:b;c;d=Z=m=n!v>^+z-Q9V9X:d:e:f:g:h:j:k:m:o:p:r:t:v:x:z:|;O;Q;S;U;W;Y;[;^;`;e;g;i;t_0V1]9W:i:l:n:q:s:u:w:y:{:};P;R;T;V;X;Z;];_;a;f;h;u AssignmentExpression ArrayExpression ValueList & VariadicUnpacking ... Pair [ ] ListExpression ValueList Pair Pair SubscriptExpression MemberExpression -> ?-> VariableName DynamicVariable $ ${ CallExpression ArgList NamedArgument SpreadArgument CastExpression UnionType LogicOp OptionalType NamedType QualifiedName \\ NamespaceName ScopedExpression :: ClassMemberName AssignOp UpdateExpression UpdateOp YieldExpression BinaryExpression LogicOp LogicOp LogicOp BitOp BitOp BitOp CompareOp CompareOp BitOp ArithOp ConcatOp ArithOp ArithOp IncludeExpression RequireExpression CloneExpression UnaryExpression ControlOp LogicOp PrintIntrinsic FunctionExpression static ParamList Parameter #[ Attributes Attribute VariadicParameter PropertyParameter UseList ArrowFunction NewExpression class BaseClause ClassInterfaceClause DeclarationList ConstDeclaration VariableDeclarator PropertyDeclaration VariableDeclarator MethodDeclaration UseDeclaration UseList UseInsteadOfClause UseAsClause UpdateExpression ArithOp ShellExpression ThrowExpression Integer Float String MemberExpression SubscriptExpression UnaryExpression ArithOp Interpolation String IfStatement ColonBlock SwitchStatement Block CaseStatement DefaultStatement ColonBlock WhileStatement EmptyStatement DoStatement ForStatement ForSpec SequenceExpression ForeachStatement ForSpec Pair GotoStatement ContinueStatement BreakStatement ReturnStatement TryStatement CatchDeclarator DeclareStatement EchoStatement UnsetStatement ConstDeclaration FunctionDefinition ClassDeclaration InterfaceDeclaration TraitDeclaration EnumDeclaration EnumBody EnumCase NamespaceDefinition NamespaceUseDeclaration UseGroup UseClause UseClause GlobalDeclaration FunctionStaticDeclaration Program",maxTerm:304,nodeProps:[["group",-36,2,8,49,81,83,85,88,93,94,102,106,107,110,111,114,118,123,126,130,132,133,147,148,149,150,153,154,164,165,179,181,182,183,184,185,191,"Expression",-28,74,78,80,82,192,194,199,201,202,205,208,209,210,211,212,214,215,216,217,218,219,220,221,222,225,226,230,231,"Statement",-3,119,121,122,"Type"],["openedBy",69,"phpOpen",76,"{",86,"(",101,"#["],["closedBy",71,"phpClose",77,"}",87,")",158,"]"]],propSources:[q],skippedNodes:[0],repeatNodeCount:29,tokenData:"!5h_R!ZOX$tXY%nYZ&}Z]$t]^%n^p$tpq%nqr(]rs)wst*atu/nuv2_vw3`wx4gxy8Oyz8fz{8|{|:W|};_}!O;u!O!P=R!P!QBl!Q!RFr!R![Hn![!]Nz!]!^!!O!^!_!!f!_!`!%R!`!a!&V!a!b!'Z!b!c!*T!c!d!*k!d!e!+q!e!}!*k!}#O!-k#O#P!.R#P#Q!.i#Q#R!/P#R#S!*k#S#T!/j#T#U!*k#U#V!+q#V#o!*k#o#p!2y#p#q!3a#q#r!4j#r#s!5Q#s$f$t$f$g%n$g&j!*k&j$I_$t$I_$I`%n$I`$KW$t$KW$KX%n$KX?HT$t?HT?HU%n?HU~$tP$yT&wPOY$tYZ%YZ!^$t!^!_%_!_~$tP%_O&wPP%bSOY$tYZ%YZ!a$t!b~$tV%ub&wP&vUOX$tXY%nYZ&}Z]$t]^%n^p$tpq%nq!^$t!^!_%_!_$f$t$f$g%n$g$I_$t$I_$I`%n$I`$KW$t$KW$KX%n$KX?HT$t?HT?HU%n?HU~$tV'UW&wP&vUXY'nYZ'n]^'npq'n$f$g'n$I_$I`'n$KW$KX'n?HT?HU'n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tV!.YT#pU&wPOY$tYZ%YZ!^$t!^!_%_!_~$tR!.pT#XQ&wPOY$tYZ%YZ!^$t!^!_%_!_~$tR!/WU$OQ&wPOY$tYZ%YZ!^$t!^!_%_!_!`2x!`~$tR!/oX&wPOY!/jYZ!0[Z!^!/j!^!_!1_!_#O!/j#O#P!1}#P#S!/j#S#T!2c#T~!/jR!0aT&wPO#O!0p#O#P!1S#P#S!0p#S#T!1Y#T~!0pQ!0sTO#O!0p#O#P!1S#P#S!0p#S#T!1Y#T~!0pQ!1VPO~!0pQ!1_O${QR!1bXOY!/jYZ!0[Z!a!/j!a!b!0p!b#O!/j#O#P!1}#P#S!/j#S#T!2c#T~!/jR!2ST&wPOY!/jYZ!0[Z!^!/j!^!_!1_!_~!/jR!2jT${Q&wPOY$tYZ%YZ!^$t!^!_%_!_~$tV!3QT!oU&wPOY$tYZ%YZ!^$t!^!_%_!_~$tV!3jW#}Q#lS&wPOY$tYZ%YZ!^$t!^!_%_!_!`2x!`#p$t#p#q!4S#q~$tR!4ZT#{Q&wPOY$tYZ%YZ!^$t!^!_%_!_~$tR!4qT!nQ&wPOY$tYZ%YZ!^$t!^!_%_!_~$tR!5XT$^Q&wPOY$tYZ%YZ!^$t!^!_%_!_~$t",tokenizers:[W,s,n,0,1,2,3,e],topRules:{Template:[0,72],Program:[1,232]},dynamicPrecedences:{284:1},specialized:[{term:81,get:(O,$)=>{let Q;return(null==(Q=a[O.toLowerCase()])?-1:Q)<<1}},{term:81,get:O=>X[O]||-1}],tokenPrec:29354});var o=Q(41113),x=Q(13804),R=Q(59119);let V=R.qp.define({name:"php",parser:d.configure({props:[R.uj.add({IfStatement:(0,R.tC)({except:/^\s*({|else\b|elseif\b|endif\b)/}),TryStatement:(0,R.tC)({except:/^\s*({|catch\b|finally\b)/}),SwitchBody:O=>{let $=O.textAfter,Q=/^\s*\}/.test($),i=/^\s*(case|default)\b/.test($);return O.baseIndent+(Q?0:i?1:2)*O.unit},ColonBlock:O=>O.baseIndent+O.unit,"Block EnumBody DeclarationList":(0,R.vw)({closing:"}"}),ArrowFunction:O=>O.baseIndent+O.unit,"String BlockComment":()=>null,Statement:(0,R.tC)({except:/^({|end(for|foreach|switch|while)\b)/})}),R.x0.add({"Block EnumBody DeclarationList SwitchBody ArrayExpression ValueList":R.Dv,ColonBlock:O=>({from:O.from+1,to:O.to}),BlockComment:O=>({from:O.from+2,to:O.to-2})})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*(?:case |default:|end(?:if|for(?:each)?|switch|while)|else(?:if)?|\{|\})$/,wordChars:"$",closeBrackets:{stringPrefixes:["b","B"]}}});function u(O={}){let $=[],Q;if(null===O.baseLanguage);else if(O.baseLanguage)Q=O.baseLanguage;else{let i=(0,x.html)({matchClosingTags:!1});$.push(i.support),Q=i.language}return new R.ri(V.configure({wrap:Q&&(0,o.FE)(O=>O.type.isTop?{parser:Q.parser,overlay:O=>"Text"==O.name}:null),top:O.plain?"Program":"Template"}),$)}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/3729-e88e6289f5436bb5.js b/static/web/_next/static/chunks/3729-505fb6d311751b3c.js similarity index 99% rename from static/web/_next/static/chunks/3729-e88e6289f5436bb5.js rename to static/web/_next/static/chunks/3729-505fb6d311751b3c.js index c5d1b76d6..9d0e066e9 100644 --- a/static/web/_next/static/chunks/3729-e88e6289f5436bb5.js +++ b/static/web/_next/static/chunks/3729-505fb6d311751b3c.js @@ -3,4 +3,4 @@ * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */ function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function n(e){var r,t;return!1!==o(e)&&(void 0===(r=e.constructor)||!1!==o(t=r.prototype)&&!1!==t.hasOwnProperty("isPrototypeOf"))}t.d(r,{P:function(){return n}})}}]); \ No newline at end of file + */function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function n(e){var r,t;return!1!==o(e)&&(void 0===(r=e.constructor)||!1!==o(t=r.prototype)&&!1!==t.hasOwnProperty("isPrototypeOf"))}t.d(r,{P:function(){return n}})}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/4388-802d880fcfce7112.js b/static/web/_next/static/chunks/4388-802d880fcfce7112.js new file mode 100644 index 000000000..77bd5dd34 --- /dev/null +++ b/static/web/_next/static/chunks/4388-802d880fcfce7112.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4388],{94149:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},a=n(42135),l=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};l.displayName="LockOutlined";var c=o.forwardRef(l)},87547:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},a=n(42135),l=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};l.displayName="UserOutlined";var c=o.forwardRef(l)},81643:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(e){return e?"function"==typeof e?e():e:null}},55241:function(e,t,n){"use strict";var r=n(87462),o=n(67294),i=n(53124),a=n(94199),l=n(81643),c=n(33603),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},s=function(e){var t=e.title,n=e.content,r=e.prefixCls;return t||n?o.createElement(o.Fragment,null,t&&o.createElement("div",{className:"".concat(r,"-title")},(0,l.Z)(t)),o.createElement("div",{className:"".concat(r,"-inner-content")},(0,l.Z)(n))):null},f=o.forwardRef(function(e,t){var n=e.prefixCls,l=e.title,f=e.content,d=e._overlay,p=e.placement,y=e.trigger,v=e.mouseEnterDelay,h=e.mouseLeaveDelay,m=e.overlayStyle,b=u(e,["prefixCls","title","content","_overlay","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),g=o.useContext(i.E_).getPrefixCls,O=g("popover",n),_=g();return o.createElement(a.Z,(0,r.Z)({placement:void 0===p?"top":p,trigger:void 0===y?"hover":y,mouseEnterDelay:void 0===v?.1:v,mouseLeaveDelay:void 0===h?.1:h,overlayStyle:void 0===m?{}:m},b,{prefixCls:O,ref:t,overlay:d||o.createElement(s,{prefixCls:O,title:l,content:f}),transitionName:(0,c.mL)(_,"zoom-big",b.transitionName)}))});t.Z=f},20550:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(4942),o=n(87462),i=n(97685),a=n(97937),l=n(94184),c=n.n(l),u=n(98423),s=n(67294),f=n(53124),d=n(98787),p=n(68349),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},h=RegExp("^(".concat(d.Y.join("|"),")(-inverse)?$")),m=RegExp("^(".concat(d.E.join("|"),")$")),b=s.forwardRef(function(e,t){var n,l=e.prefixCls,d=e.className,y=e.style,b=e.children,g=e.icon,O=e.color,_=e.onClose,E=e.closeIcon,w=e.closable,k=v(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),x=s.useContext(f.E_),C=x.getPrefixCls,j=x.direction,S=s.useState(!0),P=(0,i.Z)(S,2),Z=P[0],T=P[1];s.useEffect(function(){"visible"in k&&T(k.visible)},[k.visible]);var N=function(){return!!O&&(h.test(O)||m.test(O))},K=(0,o.Z)({backgroundColor:O&&!N()?O:void 0},y),D=N(),L=C("tag",l),A=c()(L,(n={},(0,r.Z)(n,"".concat(L,"-").concat(O),D),(0,r.Z)(n,"".concat(L,"-has-color"),O&&!D),(0,r.Z)(n,"".concat(L,"-hidden"),!Z),(0,r.Z)(n,"".concat(L,"-rtl"),"rtl"===j),n),d),M=function(e){e.stopPropagation(),null==_||_(e),!e.defaultPrevented&&("visible"in k||T(!1))},R="onClick"in k||b&&"a"===b.type,I=(0,u.Z)(k,["visible"]),z=g||null,V=z?s.createElement(s.Fragment,null,z,s.createElement("span",null,b)):b,B=s.createElement("span",(0,o.Z)({},I,{ref:t,className:A,style:K}),V,void 0!==w&&w?E?s.createElement("span",{className:"".concat(L,"-close-icon"),onClick:M},E):s.createElement(a.Z,{className:"".concat(L,"-close-icon"),onClick:M}):null);return R?s.createElement(p.Z,null,B):B});b.CheckableTag=function(e){var t,n=e.prefixCls,i=e.className,a=e.checked,l=e.onChange,u=e.onClick,d=y(e,["prefixCls","className","checked","onChange","onClick"]),p=(0,s.useContext(f.E_).getPrefixCls)("tag",n),v=c()(p,(t={},(0,r.Z)(t,"".concat(p,"-checkable"),!0),(0,r.Z)(t,"".concat(p,"-checkable-checked"),a),t),i);return s.createElement("span",(0,o.Z)({},d,{className:v,onClick:function(e){null==l||l(!a),null==u||u(e)}}))};var g=b},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(o){}var c=a.call(e);return r&&(t?e[l]=n:delete e[l]),c}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},23279:function(e,t,n){var r=n(13218),o=n(7771),i=n(14841),a=Math.max,l=Math.min;e.exports=function(e,t,n){var c,u,s,f,d,p,y=0,v=!1,h=!1,m=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var n=c,r=u;return c=u=void 0,y=t,f=e.apply(r,n)}function g(e){var n=e-p,r=e-y;return void 0===p||n>=t||n<0||h&&r>=s}function O(){var e,n,r,i=o();if(g(i))return _(i);d=setTimeout(O,(e=i-p,n=i-y,r=t-e,h?l(r,s-n):r))}function _(e){return(d=void 0,m&&c)?b(e):(c=u=void 0,f)}function E(){var e,n=o(),r=g(n);if(c=arguments,u=this,p=n,r){if(void 0===d)return y=e=p,d=setTimeout(O,t),v?b(e):f;if(h)return clearTimeout(d),d=setTimeout(O,t),b(p)}return void 0===d&&(d=setTimeout(O,t)),f}return t=i(t)||0,r(n)&&(v=!!n.leading,s=(h="maxWait"in n)?a(i(n.maxWait)||0,t):s,m="trailing"in n?!!n.trailing:m),E.cancel=function(){void 0!==d&&clearTimeout(d),y=0,c=p=u=d=void 0},E.flush=function(){return void 0===d?f:_(o())},E}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),a=0/0,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||u.test(e)?s(e.slice(2),n?2:8):l.test(e)?a:+e}},54564:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{children:t}=e;return t},t.suspense=function(){let e=Error(r.NEXT_DYNAMIC_NO_SSR_CODE);throw e.digest=r.NEXT_DYNAMIC_NO_SSR_CODE,e},(0,n(92648).Z)(n(67294));var r=n(92983)},37645:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=a.default,o={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?o.loader=()=>e:"function"==typeof e?o.loader=e:"object"==typeof e&&(o=r({},o,e)),o=r({},o,t);let i=o.loader,l=()=>i().then(c);if(o.loadableGenerated&&delete(o=r({},o,o.loadableGenerated,{loader:l})).loadableGenerated,"boolean"==typeof o.ssr){if(!o.ssr)return delete o.ssr,u(l,o);delete o.ssr}return n(o)},t.noSSR=u;var r=n(6495).Z,o=n(92648).Z,i=(0,n(91598).Z)(n(67294)),a=o(n(14588)),l=o(n(54564));function c(e){return{default:e.default||e}}function u(e,t){delete t.webpack,delete t.modules;let n=i.lazy(e),r=t.loading,o=i.default.createElement(r,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1});return e=>i.default.createElement(i.Suspense,{fallback:o},i.default.createElement(l.default,null,i.default.createElement(n,Object.assign({},e))))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33644:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var r=(0,n(92648).Z)(n(67294));let o=r.default.createContext(null);t.LoadableContext=o},14588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(6495).Z,o=(0,n(92648).Z)(n(67294)),i=n(33644);let a=[],l=[],c=!1;function u(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class s{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state=r({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function f(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t);n.lazy=o.default.lazy(n.loader);let r=null;function a(){if(!r){let t=new s(e,n);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!c){let u=n.webpack?n.webpack():n.modules;u&&l.push(e=>{for(let t of u)if(-1!==e.indexOf(t))return a()})}function f(e){!function(){a();let e=o.default.useContext(i.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let t=o.default.createElement(n.loading,{isLoading:!0,pastDelay:!0,error:null});return o.default.createElement(o.default.Suspense,{fallback:t},o.default.createElement(n.lazy,e))}return f.preload=()=>a(),f.displayName="LoadableComponent",f}(u,e)}function d(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return d(e,t)})}f.preloadAll=()=>new Promise((e,t)=>{d(a).then(e,t)}),f.preloadReady=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(t=>{let n=()=>(c=!0,t());d(l,e).then(n,n)})},window.__NEXT_PRELOADREADY=f.preloadReady,t.default=f},5152:function(e,t,n){e.exports=n(37645)},49218:function(e,t,n){"use strict";n.d(t,{y1:function(){return P}});var r="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function o(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function i(e,t){for(var n=t.slice(0,t.length-1),r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var l={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"[":219,"]":221,"\\":220},c={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},u={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},s={16:!1,18:!1,17:!1,91:!1},f={},d=1;d<20;d++)l["f".concat(d)]=111+d;var p=[],y=!1,v="all",h=[],m=function(e){return l[e.toLowerCase()]||c[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function b(e){v=e||"all"}function g(){return v||"all"}var O=function(e){var t=e.key,n=e.scope,r=e.method,o=e.splitKey,l=void 0===o?"+":o;a(t).forEach(function(e){var t=e.split(l),o=t.length,a=t[o-1],u="*"===a?"*":m(a);if(f[u]){n||(n=g());var s=o>1?i(c,t):[];f[u]=f[u].filter(function(e){return!((!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,i=0;i0,s)Object.prototype.hasOwnProperty.call(s,i)&&(!s[i]&&t.mods.indexOf(+i)>-1||s[i]&&-1===t.mods.indexOf(+i))&&(o=!1);(0!==t.mods.length||s[16]||s[18]||s[17]||s[91])&&!o&&"*"!==t.shortcut||!1!==t.method(e,t)||(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function E(e,t){var n=f["*"],r=e.keyCode||e.which||e.charCode;if(w.filter.call(this,e)){if((93===r||224===r)&&(r=91),-1===p.indexOf(r)&&229!==r&&p.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(t){var n=u[t];e[t]&&-1===p.indexOf(n)?p.push(n):!e[t]&&p.indexOf(n)>-1?p.splice(p.indexOf(n),1):"metaKey"===t&&e[t]&&3===p.length&&!(e.ctrlKey||e.shiftKey||e.altKey)&&(p=p.slice(p.indexOf(n)))}),r in s){for(var o in s[r]=!0,c)c[o]===r&&(w[o]=!0);if(!n)return}for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(s[i]=e[u[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),s[17]=!0,s[18]=!0);var a=g();if(n)for(var l=0;l1&&(u=i(c,e)),(e="*"===(e=e[e.length-1])?"*":m(e))in f||(f[e]=[]),f[e].push({keyup:g,keydown:O,scope:d,mods:u,shortcut:l[b],method:n,key:l[b],splitKey:_,element:v});void 0!==v&&(r=v,!(h.indexOf(r)>-1))&&window&&(h.push(v),o(v,"keydown",function(e){E(e,v)},k),y||(y=!0,o(window,"focus",function(){p=[]},k)),o(v,"keyup",function(e){E(e,v),function(e){var t=e.keyCode||e.which||e.charCode,n=p.indexOf(t);if(n>=0&&p.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&p.splice(0,p.length),(93===t||224===t)&&(t=91),t in s)for(var r in s[t]=!1,c)c[r]===t&&(w[r]=!1)}(e)},k))}var k={setScope:b,getScope:g,deleteScope:function(e,t){var n,r;for(var o in e||(e=g()),f)if(Object.prototype.hasOwnProperty.call(f,o))for(r=0,n=f[o];r1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(f).forEach(function(n){var r=f[n].find(function(n){return n.scope===t&&n.shortcut===e});r&&r.method&&r.method()})},unbind:function(e){if(void 0===e)Object.keys(f).forEach(function(e){return delete f[e]});else if(Array.isArray(e))e.forEach(function(e){e.key&&O(e)});else if("object"==typeof e)e.key&&O(e);else if("string"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},s=function(e){var t=e.title,n=e.content,r=e.prefixCls;return t||n?o.createElement(o.Fragment,null,t&&o.createElement("div",{className:"".concat(r,"-title")},(0,l.Z)(t)),o.createElement("div",{className:"".concat(r,"-inner-content")},(0,l.Z)(n))):null},f=o.forwardRef(function(e,t){var n=e.prefixCls,l=e.title,f=e.content,d=e._overlay,p=e.placement,y=e.trigger,v=e.mouseEnterDelay,m=e.mouseLeaveDelay,h=e.overlayStyle,g=u(e,["prefixCls","title","content","_overlay","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),b=o.useContext(i.E_).getPrefixCls,O=b("popover",n),_=b();return o.createElement(a.Z,(0,r.Z)({placement:void 0===p?"top":p,trigger:void 0===y?"hover":y,mouseEnterDelay:void 0===v?.1:v,mouseLeaveDelay:void 0===m?.1:m,overlayStyle:void 0===h?{}:h},g,{prefixCls:O,ref:t,overlay:d||o.createElement(s,{prefixCls:O,title:l,content:f}),transitionName:(0,c.mL)(_,"zoom-big",g.transitionName)}))});t.Z=f},20550:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(4942),o=n(87462),i=n(97685),a=n(97937),l=n(94184),c=n.n(l),u=n(98423),s=n(67294),f=n(53124),d=n(98787),p=n(68349),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},m=RegExp("^(".concat(d.Y.join("|"),")(-inverse)?$")),h=RegExp("^(".concat(d.E.join("|"),")$")),g=s.forwardRef(function(e,t){var n,l=e.prefixCls,d=e.className,y=e.style,g=e.children,b=e.icon,O=e.color,_=e.onClose,w=e.closeIcon,x=e.closable,k=v(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),E=s.useContext(f.E_),C=E.getPrefixCls,j=E.direction,P=s.useState(!0),S=(0,i.Z)(P,2),Z=S[0],T=S[1];s.useEffect(function(){"visible"in k&&T(k.visible)},[k.visible]);var K=function(){return!!O&&(m.test(O)||h.test(O))},N=(0,o.Z)({backgroundColor:O&&!K()?O:void 0},y),L=K(),A=C("tag",l),M=c()(A,(n={},(0,r.Z)(n,"".concat(A,"-").concat(O),L),(0,r.Z)(n,"".concat(A,"-has-color"),O&&!L),(0,r.Z)(n,"".concat(A,"-hidden"),!Z),(0,r.Z)(n,"".concat(A,"-rtl"),"rtl"===j),n),d),D=function(e){e.stopPropagation(),null==_||_(e),!e.defaultPrevented&&("visible"in k||T(!1))},R="onClick"in k||g&&"a"===g.type,I=(0,u.Z)(k,["visible"]),z=b||null,V=z?s.createElement(s.Fragment,null,z,s.createElement("span",null,g)):g,B=s.createElement("span",(0,o.Z)({},I,{ref:t,className:M,style:N}),V,void 0!==x&&x?w?s.createElement("span",{className:"".concat(A,"-close-icon"),onClick:D},w):s.createElement(a.Z,{className:"".concat(A,"-close-icon"),onClick:D}):null);return R?s.createElement(p.Z,null,B):B});g.CheckableTag=function(e){var t,n=e.prefixCls,i=e.className,a=e.checked,l=e.onChange,u=e.onClick,d=y(e,["prefixCls","className","checked","onChange","onClick"]),p=(0,s.useContext(f.E_).getPrefixCls)("tag",n),v=c()(p,(t={},(0,r.Z)(t,"".concat(p,"-checkable"),!0),(0,r.Z)(t,"".concat(p,"-checkable-checked"),a),t),i);return s.createElement("span",(0,o.Z)({},d,{className:v,onClick:function(e){null==l||l(!a),null==u||u(e)}}))};var b=g},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},44239:function(e,t,n){var r=n(62705),o=n(89607),i=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},27561:function(e,t,n){var r=n(67990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},89607:function(e,t,n){var r=n(62705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(o){}var c=a.call(e);return r&&(t?e[l]=n:delete e[l]),c}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},23279:function(e,t,n){var r=n(13218),o=n(7771),i=n(14841),a=Math.max,l=Math.min;e.exports=function(e,t,n){var c,u,s,f,d,p,y=0,v=!1,m=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function g(t){var n=c,r=u;return c=u=void 0,y=t,f=e.apply(r,n)}function b(e){var n=e-p,r=e-y;return void 0===p||n>=t||n<0||m&&r>=s}function O(){var e,n,r,i=o();if(b(i))return _(i);d=setTimeout(O,(e=i-p,n=i-y,r=t-e,m?l(r,s-n):r))}function _(e){return(d=void 0,h&&c)?g(e):(c=u=void 0,f)}function w(){var e,n=o(),r=b(n);if(c=arguments,u=this,p=n,r){if(void 0===d)return y=e=p,d=setTimeout(O,t),v?g(e):f;if(m)return clearTimeout(d),d=setTimeout(O,t),g(p)}return void 0===d&&(d=setTimeout(O,t)),f}return t=i(t)||0,r(n)&&(v=!!n.leading,s=(m="maxWait"in n)?a(i(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),w.cancel=function(){void 0!==d&&clearTimeout(d),y=0,c=p=u=d=void 0},w.flush=function(){return void 0===d?f:_(o())},w}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,n){var r=n(44239),o=n(37005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},14841:function(e,t,n){var r=n(27561),o=n(13218),i=n(33448),a=0/0,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=c.test(e);return n||u.test(e)?s(e.slice(2),n?2:8):l.test(e)?a:+e}},37645:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=i.default,o=(null==t?void 0:t.suspense)?{}:{loading(e){let{error:t,isLoading:n,pastDelay:r}=e;return null}};if(e instanceof Promise?o.loader=()=>e:"function"==typeof e?o.loader=e:"object"==typeof e&&(o=r({},o,e)),(o=r({},o,t)).suspense&&(delete o.ssr,delete o.loading),o.loadableGenerated&&delete(o=r({},o,o.loadableGenerated)).loadableGenerated,"boolean"==typeof o.ssr&&!o.suspense){if(!o.ssr)return delete o.ssr,a(n,o);delete o.ssr}return n(o)},t.noSSR=a;var r=n(6495).Z,o=n(92648).Z,i=(o(n(67294)),o(n(14588)));function a(e,t){return delete t.webpack,delete t.modules,e(t)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33644:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var r=(0,n(92648).Z)(n(67294));let o=r.default.createContext(null);t.LoadableContext=o},14588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(6495).Z,o=(0,n(91598).Z)(n(67294)),i=n(33644);let a=[],l=[],c=!1;function u(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class s{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state=r({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function f(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},t);n.suspense&&(n.lazy=o.default.lazy(n.loader));let a=null;function u(){if(!a){let t=new s(e,n);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!c){let f=n.webpack?n.webpack():n.modules;f&&l.push(e=>{for(let t of f)if(-1!==e.indexOf(t))return u()})}function d(){u();let e=o.default.useContext(i.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}let p=n.suspense?function(e,t){return d(),o.default.createElement(n.lazy,r({},e,{ref:t}))}:function(e,t){d();let r=o.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return o.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),o.default.useMemo(()=>{var t;return r.loading||r.error?o.default.createElement(n.loading,{isLoading:r.loading,pastDelay:r.pastDelay,timedOut:r.timedOut,error:r.error,retry:a.retry}):r.loaded?o.default.createElement((t=r.loaded)&&t.__esModule?t.default:t,e):null},[e,r])};return p.preload=()=>u(),p.displayName="LoadableComponent",o.default.forwardRef(p)}(u,e)}function d(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return d(e,t)})}f.preloadAll=()=>new Promise((e,t)=>{d(a).then(e,t)}),f.preloadReady=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(t=>{let n=()=>(c=!0,t());d(l,e).then(n,n)})},window.__NEXT_PRELOADREADY=f.preloadReady,t.default=f},5152:function(e,t,n){e.exports=n(37645)},49218:function(e,t,n){"use strict";n.d(t,{y1:function(){return S}});var r="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function o(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function i(e,t){for(var n=t.slice(0,t.length-1),r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var l={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"[":219,"]":221,"\\":220},c={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},u={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},s={16:!1,18:!1,17:!1,91:!1},f={},d=1;d<20;d++)l["f".concat(d)]=111+d;var p=[],y=!1,v="all",m=[],h=function(e){return l[e.toLowerCase()]||c[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function g(e){v=e||"all"}function b(){return v||"all"}var O=function(e){var t=e.key,n=e.scope,r=e.method,o=e.splitKey,l=void 0===o?"+":o;a(t).forEach(function(e){var t=e.split(l),o=t.length,a=t[o-1],u="*"===a?"*":h(a);if(f[u]){n||(n=b());var s=o>1?i(c,t):[];f[u]=f[u].filter(function(e){return!((!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,i=0;i0,s)Object.prototype.hasOwnProperty.call(s,i)&&(!s[i]&&t.mods.indexOf(+i)>-1||s[i]&&-1===t.mods.indexOf(+i))&&(o=!1);(0!==t.mods.length||s[16]||s[18]||s[17]||s[91])&&!o&&"*"!==t.shortcut||!1!==t.method(e,t)||(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function w(e,t){var n=f["*"],r=e.keyCode||e.which||e.charCode;if(x.filter.call(this,e)){if((93===r||224===r)&&(r=91),-1===p.indexOf(r)&&229!==r&&p.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(t){var n=u[t];e[t]&&-1===p.indexOf(n)?p.push(n):!e[t]&&p.indexOf(n)>-1?p.splice(p.indexOf(n),1):"metaKey"===t&&e[t]&&3===p.length&&!(e.ctrlKey||e.shiftKey||e.altKey)&&(p=p.slice(p.indexOf(n)))}),r in s){for(var o in s[r]=!0,c)c[o]===r&&(x[o]=!0);if(!n)return}for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(s[i]=e[u[i]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),s[17]=!0,s[18]=!0);var a=b();if(n)for(var l=0;l1&&(u=i(c,e)),(e="*"===(e=e[e.length-1])?"*":h(e))in f||(f[e]=[]),f[e].push({keyup:b,keydown:O,scope:d,mods:u,shortcut:l[g],method:n,key:l[g],splitKey:_,element:v});void 0!==v&&(r=v,!(m.indexOf(r)>-1))&&window&&(m.push(v),o(v,"keydown",function(e){w(e,v)},k),y||(y=!0,o(window,"focus",function(){p=[]},k)),o(v,"keyup",function(e){w(e,v),function(e){var t=e.keyCode||e.which||e.charCode,n=p.indexOf(t);if(n>=0&&p.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&p.splice(0,p.length),(93===t||224===t)&&(t=91),t in s)for(var r in s[t]=!1,c)c[r]===t&&(x[r]=!1)}(e)},k))}var k={setScope:g,getScope:b,deleteScope:function(e,t){var n,r;for(var o in e||(e=b()),f)if(Object.prototype.hasOwnProperty.call(f,o))for(r=0,n=f[o];r1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(f).forEach(function(n){var r=f[n].find(function(n){return n.scope===t&&n.shortcut===e});r&&r.method&&r.method()})},unbind:function(e){if(void 0===e)Object.keys(f).forEach(function(e){return delete f[e]});else if(Array.isArray(e))e.forEach(function(e){e.key&&O(e)});else if("object"==typeof e)e.key&&O(e);else if("string"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;ryOSO,59[OOQO,59[,59[OOQO'#Hg'#HgO?jQPO,59eO@lQPO,59yOOQO-E:d-E:dO)PQPO,58zOA`QPO,58zO)PQPO,5;|OAeQPO'#DQOAjQPO'#DQOOQO'#Gi'#GiOBjQQO,59jOOQO'#Dm'#DmODRQPO'#HsOD]QPO'#DlODkQPO'#HrODsQPO,5<^ODxQPO,59^OEcQPO'#CxOOQO,59c,59cOEjQPO,59bOGrQQO'#H[OJVQQO'#CbOJmQPO'#D_OKrQQO'#HkOLSQQO,59pOLZQPO'#DvOLiQPO'#HzOLqQPO,5:`OLvQPO,5:`OM^QPO,5;mOMiQPO'#IROMtQPO,5;dOMyQPO,5=WOOQO-E:j-E:jOOQO,5:f,5:fO! aQPO,5:fO! hQPO,5:vO! mQPO,5<^O)PQPO,5:vO:kQPO,5:gO:kQPO,5:qO:kQPO,5:lO:kQPO,5<^O!!^QPO,59qO9PQPO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s%es!_$z!_!`2{!`#p$z#p#q!?[#q~$zU!?cT#dQ&WSOY$zYZ%`Zr$zrs%es~$zV!?yT|R&WSOY$zYZ%`Zr$zrs%es~$zT!@aT#tP&WSOY$zYZ%`Zr$zrs%es~$z",tokenizers:[0,1,2,3],topRules:{Program:[0,3]},dynamicPrecedences:{27:1,230:-1,241:-1},specialized:[{term:229,get:O=>i[O]||-1}],tokenPrec:7067});var X=Q(59119);let s=X.qp.define({name:"java",parser:r.configure({props:[X.uj.add({IfStatement:(0,X.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,X.tC)({except:/^\s*({|catch|finally)\b/}),LabeledStatement:X.ze,SwitchBlock(O){let $=O.textAfter,Q=/^\s*\}/.test($),P=/^\s*(case|default)\b/.test($);return O.baseIndent+(Q?0:P?1:2)*O.unit},Block:(0,X.vw)({closing:"}"}),BlockComment:()=>null,Statement:(0,X.tC)({except:/^{/})}),X.x0.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":X.Dv,BlockComment:O=>({from:O.from+2,to:O.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});function t(){return new X.ri(s)}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4778],{44778:function(O,$,Q){Q.r($),Q.d($,{java:function(){return t},javaLanguage:function(){return s}});var P=Q(53105),a=Q(35524);let e=(0,a.Gv)({null:a.pJ.null,instanceof:a.pJ.operatorKeyword,this:a.pJ.self,"new super assert open to with void":a.pJ.keyword,"class interface extends implements enum":a.pJ.definitionKeyword,"module package import":a.pJ.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":a.pJ.controlKeyword,"requires exports opens uses provides public private protected static transitive abstract final strictfp synchronized native transient volatile throws":a.pJ.modifier,IntegerLiteral:a.pJ.integer,FloatLiteral:a.pJ.float,"StringLiteral TextBlock":a.pJ.string,CharacterLiteral:a.pJ.character,LineComment:a.pJ.lineComment,BlockComment:a.pJ.blockComment,BooleanLiteral:a.pJ.bool,PrimitiveType:a.pJ.standard(a.pJ.typeName),TypeName:a.pJ.typeName,Identifier:a.pJ.variableName,"MethodName/Identifier":a.pJ.function(a.pJ.variableName),Definition:a.pJ.definition(a.pJ.variableName),ArithOp:a.pJ.arithmeticOperator,LogicOp:a.pJ.logicOperator,BitOp:a.pJ.bitwiseOperator,CompareOp:a.pJ.compareOperator,AssignOp:a.pJ.definitionOperator,UpdateOp:a.pJ.updateOperator,Asterisk:a.pJ.punctuation,Label:a.pJ.labelName,"( )":a.pJ.paren,"[ ]":a.pJ.squareBracket,"{ }":a.pJ.brace,".":a.pJ.derefOperator,", ;":a.pJ.separator}),i={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:236,open:265,module:267,requires:272,transitive:274,exports:276,to:278,opens:280,uses:282,provides:284,with:286,package:290,import:294,if:306,else:308,while:312,for:316,var:323,assert:330,switch:334,case:340,do:344,break:348,continue:352,return:356,throw:362,try:366,catch:370,finally:378},r=P.WQ.deserialize({version:14,states:"#!hQ]QPOOO&tQQO'#H[O(xQQO'#CbOOQO'#Cb'#CbO)PQPO'#CaO)XOSO'#CpOOQO'#Ha'#HaOOQO'#Cu'#CuO*tQPO'#D_O+_QQO'#HkOOQO'#Hk'#HkO-sQQO'#HfO-zQQO'#HfOOQO'#Hf'#HfOOQO'#He'#HeO0OQPO'#DUO0]QPO'#GlO3TQPO'#D_O3[QPO'#DzO)PQPO'#E[O3}QPO'#E[OOQO'#DV'#DVO5]QQO'#H_O7dQQO'#EeO7kQPO'#EdO7pQPO'#EfOOQO'#H`'#H`O5sQQO'#H`O8sQQO'#FgO8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ure({props:[X.uj.add({IfStatement:(0,X.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,X.tC)({except:/^\s*({|catch|finally)\b/}),LabeledStatement:X.ze,SwitchBlock:O=>{let $=O.textAfter,Q=/^\s*\}/.test($),P=/^\s*(case|default)\b/.test($);return O.baseIndent+(Q?0:P?1:2)*O.unit},Block:(0,X.vw)({closing:"}"}),BlockComment:()=>null,Statement:(0,X.tC)({except:/^{/})}),X.x0.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":X.Dv,BlockComment:O=>({from:O.from+2,to:O.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});function t(){return new X.ri(s)}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/4860.a373d357d3328a74.js b/static/web/_next/static/chunks/4860.4eea00d1c5f8ef1e.js similarity index 71% rename from static/web/_next/static/chunks/4860.a373d357d3328a74.js rename to static/web/_next/static/chunks/4860.4eea00d1c5f8ef1e.js index bd671224a..f3527acca 100644 --- a/static/web/_next/static/chunks/4860.a373d357d3328a74.js +++ b/static/web/_next/static/chunks/4860.4eea00d1c5f8ef1e.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4860],{94860:function(e,n,t){"use strict";t.r(n),t.d(n,{ChatModerationActionMenu:function(){return U}});var a=t(85893),s=t(11475),o=t(90420),r=t(18429),l=t(64942),i=t(85402),c=t(12461),d=t(66516),h=t(38504),u=t(26713),p=t(67294),x=t(14761),j=t(54907),y=t(71230),m=t(15746),g=t(71577),f=t(11382),v=t(20550),C=t(52206),Z=t(58091),w=t(48689),b=class{static async removeMessage(e,n){let t=new URL("/api/chat/messagevisibility",window.location.toString());t.searchParams.append("accessToken",n);let a=t.toString(),s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idArray:[e]})};await fetch(a,s)}static async banUser(e,n){let t=new URL("/api/chat/users/setenabled",window.location.toString());t.searchParams.append("accessToken",n);let a=t.toString(),s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})};await fetch(a,s)}},k=t(57761),_=t.n(k),M=t(70241);let{Panel:S}=j.Z,A=async(e,n)=>{try{b.removeMessage(e,n)}catch(t){console.error(t)}},P=e=>{let{label:n,value:t}=e;return(0,a.jsxs)(y.Z,{justify:"space-around",align:"middle",children:[(0,a.jsx)(m.Z,{span:12,children:n}),(0,a.jsx)(m.Z,{span:12,children:t})]})},N=e=>{let{client:n}=e,{messageCount:t,connectedAt:s,geo:o}=n,r=(0,Z.Z)(new Date(s),"PP pp");return(0,a.jsxs)("div",{children:[(0,a.jsx)(P,{label:"Messages Sent",value:"".concat(t)}),"N/A"!==o&&(0,a.jsx)(P,{label:"Geo",value:o}),(0,a.jsx)(P,{label:"Connected At",value:r})]})},D=e=>{let{color:n}=e;return(0,a.jsxs)("div",{className:_().colorBlock,style:{backgroundColor:"var(--theme-color-users-".concat(n,")")},children:["Color ",n]})},O=e=>{let{userId:n,accessToken:t}=e,[s,o]=(0,p.useState)(null),[r,l]=(0,p.useState)(!0),i=async()=>{try{let e=await (await fetch("/api/moderation/chat/user/".concat(n,"?accessToken=").concat(t))).json();o(e),l(!1)}catch(a){console.error(a)}};if((0,p.useEffect)(()=>{i()},[]),!s)return null;let{user:c,connectedClients:d,messages:h}=s,{displayColor:u,createdAt:x,previousNames:y,scopes:m,isBot:b,authenticated:k}=c,_=d.reduce((e,n)=>e+n.messageCount,0),O=(0,Z.Z)(new Date(x),"PP pp");return(0,a.jsxs)(f.Z,{spinning:r,children:[(0,a.jsx)(D,{color:u}),m.map(e=>(0,a.jsx)(v.Z,{children:e},e)),k&&(0,a.jsx)(v.Z,{children:"Authenticated"}),b&&(0,a.jsx)(v.Z,{children:"Bot"}),(0,a.jsx)(P,{label:"Messages Sent Across Clients",value:_.toString()}),(0,a.jsx)(P,{label:"User Created",value:O}),(0,a.jsx)(P,{label:"Known As",value:y.join(",")}),(0,a.jsxs)(j.Z,{accordion:!0,children:[(0,a.jsx)(S,{header:"Currently Connected Clients",children:(0,a.jsx)(j.Z,{accordion:!0,children:d.map(e=>(0,a.jsx)(S,{header:(0,M.AB)(e.userAgent),children:(0,a.jsx)(N,{client:e})},e.userAgent))})},"connected-clients"),(0,a.jsx)(j.Z,{accordion:!0,children:(0,a.jsx)(S,{header:"Recent Chat Messages",children:(0,a.jsx)(C.Z,{size:"small",pagination:null,columns:[{title:"Message",dataIndex:"body",key:"body"},{title:"Sent At",dataIndex:"timestamp",key:"timestamp",render:e=>(0,Z.Z)(new Date(e),"PP pp")},{title:"Delete",key:"delete",render:(e,n)=>(0,a.jsx)(g.Z,{type:"primary",ghost:!0,icon:(0,a.jsx)(w.Z,{}),onClick:()=>A(n.id,t)})}],dataSource:h})},"chat-messages")})]})]})};var T=t(24110),B=t.n(T);let{confirm:I}=i.Z,U=e=>{let{messageID:n,userID:t,userDisplayName:i,accessToken:j}=e,[y,m]=(0,p.useState)(!1),g=async()=>{try{await b.banUser(t,j)}catch(e){console.error(e),c.ZP.error(e)}},f=async()=>{try{await b.removeMessage(n,j)}catch(e){console.error(e),c.ZP.error(e)}},v=async()=>{I({icon:(0,a.jsx)(s.Z,{}),content:"Are you sure you want to remove this message from ".concat(i,"?"),onOk(){f()}})},C=async()=>{I({icon:(0,a.jsx)(s.Z,{}),content:"Are you sure you want to ban ".concat(i," from chat?"),onOk(){g()}})},Z=e=>{let{key:n}=e;"hide-message"===n?v():"ban-user"===n?C():"more-info"===n&&m(!0)},w=(0,a.jsx)(d.Z,{onClick:Z,items:[{label:(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:B().icon,children:(0,a.jsx)(o.Z,{})}),"Hide Message"]}),key:"hide-message"},{label:(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:B().icon,children:(0,a.jsx)(r.Z,{})}),"Ban User"]}),key:"ban-user"},{label:(0,a.jsx)("div",{children:"More Info..."}),key:"more-info"}]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.Z,{overlay:w,trigger:["click"],children:(0,a.jsx)("button",{type:"button",onClick:e=>e.preventDefault(),children:(0,a.jsx)(u.Z,{children:(0,a.jsx)(l.Z,{})})})}),(0,a.jsx)(x.Modal,{title:i,open:y,handleCancel(){m(!1)},children:(0,a.jsx)(O,{userId:t,accessToken:j})})]})}},14761:function(e,n,t){"use strict";t.r(n),t.d(n,{Modal:function(){return d}});var a=t(85893),s=t(85402),o=t(26303),r=t(11382),l=t(67294),i=t(77011),c=t.n(i);let d=e=>{let{title:n,url:t,open:i,handleOk:d,handleCancel:h,afterClose:u,height:p,width:x,children:j}=e,[y,m]=(0,l.useState)(!!t),g="100%",f="520px";t&&(g="70vh",f="900px");let v={padding:"0px",minHeight:p,height:null!=p?p:g},C=t&&(0,a.jsx)("iframe",{title:n,src:t,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,style:{display:"block"},onLoad:()=>m(!1)});return(0,a.jsx)(s.Z,{title:n,open:i,onOk:d,onCancel:h,afterClose:u,bodyStyle:v,width:null!=x?x:f,zIndex:999,footer:null,centered:!0,destroyOnClose:!0,children:(0,a.jsxs)("div",{id:"modal-container",style:{height:"100%"},children:[y&&(0,a.jsx)(o.Z,{active:y,style:{padding:"10px"},paragraph:{rows:10}}),C&&(0,a.jsx)("div",{style:{display:y?"none":"inline"},children:C}),j&&(0,a.jsx)("div",{className:c().content,children:j}),y&&(0,a.jsx)(r.Z,{className:c().spinner,spinning:y,size:"large"})]})})};n.default=d,d.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0}},24110:function(e){e.exports={icon:"ChatModerationActionMenu_icon__9j6DF"}},57761:function(e){e.exports={modalContainer:"ChatModerationDetailsModal_modalContainer__czndV",chatHistory:"ChatModerationDetailsModal_chatHistory__PunRk",colorBlock:"ChatModerationDetailsModal_colorBlock___rAlw",displayName:"ChatModerationDetailsModal_displayName__p7pLI"}},77011:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4860],{94860:function(e,n,t){"use strict";t.r(n),t.d(n,{ChatModerationActionMenu:function(){return U}});var a=t(85893),s=t(11475),o=t(90420),r=t(18429),l=t(64942),i=t(85402),c=t(12461),d=t(66516),h=t(38504),u=t(26713),p=t(67294),x=t(14761),j=t(54907),y=t(71230),m=t(15746),g=t(71577),f=t(11382),v=t(20550),C=t(52206),Z=t(58091),w=t(48689),b=class{static async removeMessage(e,n){let t=new URL("/api/chat/messagevisibility",window.location.toString());t.searchParams.append("accessToken",n);let a=t.toString(),s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idArray:[e]})};await fetch(a,s)}static async banUser(e,n){let t=new URL("/api/chat/users/setenabled",window.location.toString());t.searchParams.append("accessToken",n);let a=t.toString(),s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})};await fetch(a,s)}},k=t(57761),_=t.n(k),M=t(70241);let{Panel:S}=j.Z,A=async(e,n)=>{try{b.removeMessage(e,n)}catch(t){console.error(t)}},P=e=>{let{label:n,value:t}=e;return(0,a.jsxs)(y.Z,{justify:"space-around",align:"middle",children:[(0,a.jsx)(m.Z,{span:12,children:n}),(0,a.jsx)(m.Z,{span:12,children:t})]})},N=e=>{let{client:n}=e,{messageCount:t,connectedAt:s,geo:o}=n,r=(0,Z.Z)(new Date(s),"PP pp");return(0,a.jsxs)("div",{children:[(0,a.jsx)(P,{label:"Messages Sent",value:"".concat(t)}),"N/A"!==o&&(0,a.jsx)(P,{label:"Geo",value:o}),(0,a.jsx)(P,{label:"Connected At",value:r})]})},D=e=>{let{color:n}=e;return(0,a.jsxs)("div",{className:_().colorBlock,style:{backgroundColor:"var(--theme-color-users-".concat(n,")")},children:["Color ",n]})},O=e=>{let{userId:n,accessToken:t}=e,[s,o]=(0,p.useState)(null),[r,l]=(0,p.useState)(!0),i=async()=>{try{let e=await (await fetch("/api/moderation/chat/user/".concat(n,"?accessToken=").concat(t))).json();o(e),l(!1)}catch(a){console.error(a)}};if((0,p.useEffect)(()=>{i()},[]),!s)return null;let{user:c,connectedClients:d,messages:h}=s,{displayColor:u,createdAt:x,previousNames:y,scopes:m,isBot:b,authenticated:k}=c,_=d.reduce((e,n)=>e+n.messageCount,0),O=(0,Z.Z)(new Date(x),"PP pp");return(0,a.jsxs)(f.Z,{spinning:r,children:[(0,a.jsx)(D,{color:u}),m.map(e=>(0,a.jsx)(v.Z,{children:e},e)),k&&(0,a.jsx)(v.Z,{children:"Authenticated"}),b&&(0,a.jsx)(v.Z,{children:"Bot"}),(0,a.jsx)(P,{label:"Messages Sent Across Clients",value:_.toString()}),(0,a.jsx)(P,{label:"User Created",value:O}),(0,a.jsx)(P,{label:"Known As",value:y.join(",")}),(0,a.jsxs)(j.Z,{accordion:!0,children:[(0,a.jsx)(S,{header:"Currently Connected Clients",children:(0,a.jsx)(j.Z,{accordion:!0,children:d.map(e=>(0,a.jsx)(S,{header:(0,M.AB)(e.userAgent),children:(0,a.jsx)(N,{client:e})},e.userAgent))})},"connected-clients"),(0,a.jsx)(j.Z,{accordion:!0,children:(0,a.jsx)(S,{header:"Recent Chat Messages",children:(0,a.jsx)(C.Z,{size:"small",pagination:null,columns:[{title:"Message",dataIndex:"body",key:"body"},{title:"Sent At",dataIndex:"timestamp",key:"timestamp",render:e=>(0,Z.Z)(new Date(e),"PP pp")},{title:"Delete",key:"delete",render:(e,n)=>(0,a.jsx)(g.Z,{type:"primary",ghost:!0,icon:(0,a.jsx)(w.Z,{}),onClick:()=>A(n.id,t)})}],dataSource:h})},"chat-messages")})]})]})};var T=t(24110),B=t.n(T);let{confirm:I}=i.Z,U=e=>{let{messageID:n,userID:t,userDisplayName:i,accessToken:j}=e,[y,m]=(0,p.useState)(!1),g=async()=>{try{await b.banUser(t,j)}catch(e){console.error(e),c.ZP.error(e)}},f=async()=>{try{await b.removeMessage(n,j)}catch(e){console.error(e),c.ZP.error(e)}},v=async()=>{I({icon:(0,a.jsx)(s.Z,{}),content:"Are you sure you want to remove this message from ".concat(i,"?"),onOk(){f()}})},C=async()=>{I({icon:(0,a.jsx)(s.Z,{}),content:"Are you sure you want to ban ".concat(i," from chat?"),onOk(){g()}})},Z=e=>{let{key:n}=e;"hide-message"===n?v():"ban-user"===n?C():"more-info"===n&&m(!0)},w=(0,a.jsx)(d.Z,{onClick:Z,items:[{label:(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:B().icon,children:(0,a.jsx)(o.Z,{})}),"Hide Message"]}),key:"hide-message"},{label:(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:B().icon,children:(0,a.jsx)(r.Z,{})}),"Ban User"]}),key:"ban-user"},{label:(0,a.jsx)("div",{children:"More Info..."}),key:"more-info"}]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.Z,{overlay:w,trigger:["click"],children:(0,a.jsx)("button",{type:"button",onClick:e=>e.preventDefault(),children:(0,a.jsx)(u.Z,{children:(0,a.jsx)(l.Z,{})})})}),(0,a.jsx)(x.Modal,{title:i,open:y,handleCancel:()=>{m(!1)},children:(0,a.jsx)(O,{userId:t,accessToken:j})})]})}},14761:function(e,n,t){"use strict";t.r(n),t.d(n,{Modal:function(){return d}});var a=t(85893),s=t(85402),o=t(26303),r=t(11382),l=t(67294),i=t(77011),c=t.n(i);let d=e=>{let{title:n,url:t,open:i,handleOk:d,handleCancel:h,afterClose:u,height:p,width:x,children:j}=e,[y,m]=(0,l.useState)(!!t),g="100%",f="520px";t&&(g="70vh",f="900px");let v={padding:"0px",minHeight:p,height:null!=p?p:g},C=t&&(0,a.jsx)("iframe",{title:n,src:t,width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts allow-popups allow-forms",frameBorder:"0",allowFullScreen:!0,style:{display:"block"},onLoad:()=>m(!1)});return(0,a.jsx)(s.Z,{title:n,open:i,onOk:d,onCancel:h,afterClose:u,bodyStyle:v,width:null!=x?x:f,zIndex:999,footer:null,centered:!0,destroyOnClose:!0,children:(0,a.jsxs)("div",{id:"modal-container",style:{height:"100%"},children:[y&&(0,a.jsx)(o.Z,{active:y,style:{padding:"10px"},paragraph:{rows:10}}),C&&(0,a.jsx)("div",{style:{display:y?"none":"inline"},children:C}),j&&(0,a.jsx)("div",{className:c().content,children:j}),y&&(0,a.jsx)(r.Z,{className:c().spinner,spinning:y,size:"large"})]})})};n.default=d,d.defaultProps={url:void 0,children:void 0,handleOk:void 0,handleCancel:void 0,afterClose:void 0}},24110:function(e){e.exports={icon:"ChatModerationActionMenu_icon__9j6DF"}},57761:function(e){e.exports={modalContainer:"ChatModerationDetailsModal_modalContainer__czndV",chatHistory:"ChatModerationDetailsModal_chatHistory__PunRk",colorBlock:"ChatModerationDetailsModal_colorBlock___rAlw",displayName:"ChatModerationDetailsModal_displayName__p7pLI"}},77011:function(e){e.exports={spinner:"Modal_spinner__GiSS0",content:"Modal_content__h9my9"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/4977-748e4374e401ea01.js b/static/web/_next/static/chunks/4977-8b2377306ff6ef8b.js similarity index 85% rename from static/web/_next/static/chunks/4977-748e4374e401ea01.js rename to static/web/_next/static/chunks/4977-8b2377306ff6ef8b.js index 1ff7f5fb8..9ce1f507c 100644 --- a/static/web/_next/static/chunks/4977-748e4374e401ea01.js +++ b/static/web/_next/static/chunks/4977-8b2377306ff6ef8b.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4977],{94977:function(e,t,s){"use strict";s.r(t),s.d(t,{ChatContainer:function(){return ex}});var a,n,r,o,i,l=s(85893),c=s(9764),d=s(67294),h=s(36531),u=s(91951),m=s(59760),g=s.n(m),x=s(86492),p=s.n(x),_=s(94184),C=s.n(_),f=s(94199),j=s(29158),v=s(4480),y=s(5152),N=s.n(y),M=s(50085),b=s.n(M),S=s(77278);function E(e){let t=new Date(e);if(Number.isNaN(t))return"";let s=(0,S.Xb)(e);if(s>=1){let a=t.toLocaleDateString("en-US",{dateStyle:"medium"});return"".concat(a," at ").concat(t.toLocaleTimeString())}return"".concat(t.toLocaleTimeString())}var T=s(48976),w=s.n(T);let k=e=>{let{badge:t,userColor:s}=e,a="var(--theme-user-colors-".concat(s,")");return(0,l.jsx)("span",{style:{color:a,borderColor:a},className:w().badge,children:t})};var O=s(77466);let D=N()(()=>Promise.all([s.e(8909),s.e(3903),s.e(4267),s.e(2206),s.e(8091),s.e(1769),s.e(4860)]).then(s.bind(s,94860)).then(e=>e.ChatModerationActionMenu),{loadableGenerated:{webpack:()=>[94860]}}),A=N()(()=>Promise.resolve().then(s.bind(s,47049)).then(e=>e.Highlight),{loadableGenerated:{webpack:()=>[47049]}}),B=e=>{let{children:t,user:s}=e,{displayName:a,createdAt:n}=s,r="".concat(a," first joined ").concat(E(n));return(0,l.jsx)(f.Z,{title:r,placement:"topLeft",mouseEnterDelay:1,children:t})},U=e=>{let{message:t,highlightString:s,showModeratorMenu:a,sentBySelf:n,sameUserAsLast:r,isAuthorModerator:o,isAuthorAuthenticated:i}=e,{id:c,body:h,user:u,timestamp:m}=t,{id:g,displayName:x,displayColor:_}=u,y=(0,v.sJ)(O.FI),N="var(--theme-color-users-".concat(_,")"),M="Sent ".concat(E(m)),[S,T]=(0,d.useState)(h),w=[];return o&&w.push((0,l.jsx)(k,{badge:"mod",userColor:_},"mod")),i&&w.push((0,l.jsx)(k,{badge:(0,l.jsx)(j.Z,{title:"authenticated"}),userColor:_},"auth")),(0,d.useEffect)(()=>{T(p().decode(h))},[t]),(0,l.jsx)("div",{className:C()(b().messagePadding,r&&b().messagePaddingCollapsed,"chat-message_user"),children:(0,l.jsxs)("div",{className:C()(b().root,{[b().ownMessage]:n}),style:{borderColor:N},children:[!r&&(0,l.jsx)(B,{user:u,children:(0,l.jsxs)("div",{className:b().user,style:{color:N},children:[(0,l.jsx)("span",{className:b().userName,children:x}),(0,l.jsx)("span",{children:w})]})}),(0,l.jsx)(f.Z,{title:M,mouseEnterDelay:1,children:(0,l.jsx)(A,{search:s,children:(0,l.jsx)("div",{className:b().message,dangerouslySetInnerHTML:{__html:S}})})}),a&&(0,l.jsx)("div",{className:b().modMenuWrapper,children:(0,l.jsx)(D,{messageID:c,accessToken:y,userID:g,userDisplayName:x})}),(0,l.jsx)("div",{className:b().background,style:{color:N}})]})})};var F=s(93045),L=s(27496),R=s(55241),P=s(77493),H=s(96391),I=s(26912),W=s.n(I);let G=N()(()=>Promise.all([s.e(7741),s.e(1559)]).then(s.bind(s,51559)).then(e=>e.EmojiPicker),{loadableGenerated:{webpack:()=>[51559]}}),Z=e=>{let{attributes:t,element:s,children:a}=e,n=(0,H.vt)(),r=(0,H.UE)();return(0,l.jsxs)("span",{...t,contentEditable:!1,children:[(0,l.jsx)("img",{alt:s.alt,src:s.src,title:s.name,style:{display:"inline",maxWidth:"50px",maxHeight:"20px",boxShadow:"".concat(n&&r?"0 0 0 3px #B4D5FF":"none")}}),a]})},V=e=>{let{isVoid:t}=e;return e.isVoid=e=>"image"===e.type||t(e),e.isInline=e=>"image"===e.type,e},Y=e=>{let t;if(P.xv.isText(e)){let s=e.text;return s}if(0===e.children.length)t=[{text:""}];else{var a;t=null===(a=e.children)||void 0===a?void 0:a.map(e=>Y(e)).join("")}switch(e.type){case"paragraph":return"

".concat(t,"

");case"image":return'').concat(e.alt,'');default:return t}},J=e=>{if(P.xv.isText(e))return e.text.length;if("image"===e.type)return 5;let t=0;return e.children.forEach(e=>{t+=J(e)}),t},X=e=>{let{defaultText:t}=e,[s,a]=(0,d.useState)(!1),[n,r]=(0,d.useState)(null==t?void 0:t.length),o=(0,v.sJ)(O.Gt),i=(0,d.useMemo)(()=>(0,H.BU)(V((0,P.Jh)())),[]),c=()=>{if(!o){console.log("websocketService is not defined");return}let e=Y(i);o.send({type:u.C.CHAT,body:e}),P.YR.delete(i,{at:{anchor:P.ML.start(i,[]),focus:P.ML.end(i,[])}}),r(0)},h=(e,t,s)=>({type:"image",alt:e,src:t,name:s,children:[{text:""}]}),m=(e,t)=>{if(!e)return;let{selection:s}=i,a=h(t,e,t);if(P.YR.insertNodes(i,a,{select:!0}),s){var n;let[r,o]=P.ML.parent(i,null===(n=s.focus)||void 0===n?void 0:n.path);i.isVoid(r)||P.NB.string(r).length?P.YR.insertNodes(i,a,{at:P.y$.next(o),select:!0}):(P.YR.insertNodes(i,a,{at:o,select:!0}),P.ML.normalize(i,{force:!0}))}else P.YR.insertNodes(i,a,{select:!0})},g=e=>{H.F3.focus(i),P.YR.insertText(i,e)},x=(e,t)=>{H.F3.focus(i),m(t,e)},p=e=>{let t=J(i)+1;if("Enter"===e.key){e.preventDefault(),c();return}if("Backspace"===e.key){r(t-1);return}t+1>300&&e.preventDefault(),r(t+1)},_=e=>{let t=e.clipboardData.getData("text/plain"),{length:s}=t;n+s>300&&e.preventDefault()},f=e=>"image"===e.element.type?(0,l.jsx)(Z,{...e}):(0,l.jsx)("p",{...e});return(0,l.jsx)("div",{className:W().root,children:(0,l.jsxs)("div",{className:C()(W().inputWrap,n>=300&&W().maxCharacters),children:[(0,l.jsxs)(H.mH,{editor:i,value:[{type:"paragraph",children:[{text:t||""}]}],children:[(0,l.jsx)(H.CX,{className:"chat-text-input",onKeyDown:p,onPaste:_,renderElement:f,placeholder:"Send a message to chat",style:{width:"100%"},role:"textbox","aria-label":"Chat text input",autoFocus:!0}),(0,l.jsx)(R.Z,{content:(0,l.jsx)(G,{onEmojiSelect:g,onCustomEmojiSelect:x}),trigger:"click",onOpenChange:e=>a(e),open:s})]}),(0,l.jsxs)("div",{style:{display:"flex",paddingLeft:"5px"},children:[(0,l.jsx)("button",{type:"button",className:W().emojiButton,title:"Emoji picker button",onClick:()=>a(!s),children:(0,l.jsx)(F.Z,{})}),(0,l.jsx)("button",{type:"button",className:W().sendButton,title:"Send message Button",onClick:c,children:(0,l.jsx)(L.Z,{})})]})]})})};var z=s(93107),q=s.n(z);function K(){return(K=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,l.jsxs)("div",{className:q().chatModerationNotification,children:[(0,l.jsx)($,{className:q().icon}),"You are now a moderator."]});var ee=s(47049),et=s(23421),es=s.n(et);let ea=e=>{let{message:{body:t,user:{displayName:s}},highlightString:a}=e;return(0,l.jsxs)("div",{className:C()([es().chatSystemMessage,"chat-message_system"]),children:[(0,l.jsx)("div",{className:es().user,children:(0,l.jsx)("span",{className:es().userName,children:s})}),(0,l.jsx)(ee.Highlight,{search:a,children:(0,l.jsx)("div",{className:es().message,dangerouslySetInnerHTML:{__html:t}})})]})};var en=s(55355),er=s(91044),eo=s.n(er);let ei=e=>{let{isAuthorModerator:t,userColor:s,displayName:a}=e;return(0,l.jsxs)("div",{className:eo().root,children:[(0,l.jsxs)("span",{style:{color:"var(--theme-color-users-".concat(s,")")},children:[(0,l.jsx)("span",{style:{padding:"0 10px"},children:(0,l.jsx)(en.Z,{})}),(0,l.jsx)("span",{style:{fontWeight:"bold"},children:a}),t&&(0,l.jsx)("span",{children:(0,l.jsx)(k,{badge:"mod",userColor:s})})]})," ","joined the chat."]})};var el=s(66017),ec=s(71577);let ed=e=>{let{chatContainerRef:t,messages:s}=e;return(0,l.jsx)("div",{className:g().toBottomWrap,children:(0,l.jsx)(ec.Z,{type:"default",style:{color:"currentColor"},icon:(0,l.jsx)(el.Z,{}),onClick:()=>t.current.scrollToIndex({index:s.length-1,behavior:"smooth"}),children:"Go to last message"})})};var eh=s(65302),eu=s.n(eh);let em=e=>{let{body:t}=e;return(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:t},className:eu().chatAction})};function eg(e){let{user:{scopes:t}}=e;return!!t&&0!==t.length&&t.includes("MODERATOR")}let ex=e=>{let{messages:t,usernameToHighlight:s,chatUserId:a,isModerator:n,showInput:r,height:o}=e,[i,m]=(0,d.useState)(!0),x=(0,d.useRef)(null),p=e=>{let{oldName:t,user:s}=e,{displayName:a,displayColor:n}=s,r="var(--theme-color-users-".concat(n,")");return(0,l.jsxs)("div",{className:g().nameChangeView,children:[(0,l.jsx)("div",{style:{marginRight:5,height:"max-content",margin:"auto 5px auto 0"},children:(0,l.jsx)(h.Z,{})}),(0,l.jsxs)("div",{className:g().nameChangeText,children:[(0,l.jsx)("span",{style:{color:r},children:t}),(0,l.jsx)("span",{className:g().plain,children:" is now known as "}),(0,l.jsx)("span",{style:{color:r},children:a})]})]})},_=e=>{let{user:{displayName:t,displayColor:s}}=e,a=eg(e);return(0,l.jsx)(ei,{displayName:t,userColor:s,isAuthorModerator:a})},C=e=>{let{body:t}=e;return(0,l.jsx)(em,{body:t})},f=e=>{let t=eg(e);return t?(0,l.jsx)(Q,{}):(0,l.jsx)("div",{style:{width:"1px",height:"1px"}})},j=(e,r)=>{switch(r.type){case u.C.CHAT:var o,i,c;return(0,l.jsx)(U,{message:r,showModeratorMenu:n,highlightString:s,sentBySelf:(null===(o=r.user)||void 0===o?void 0:o.id)===a,sameUserAsLast:function(e,t){if(e.length<2)return!1;let s=e[t];if(!s||!s.user)return!1;let{user:{id:a}}=s,n=e[t-1];if((null==n?void 0:n.type)!==u.C.CHAT||!(null==n?void 0:n.timestamp)||!s.timestamp)return!1;let r=new Date(null==n?void 0:n.timestamp).getTime(),o=new Date(s.timestamp).getTime();return!(o-r>12e4)&&a===(null==n?void 0:n.user.id)}(t,e),isAuthorModerator:null===(i=r.user.scopes)||void 0===i?void 0:i.includes("MODERATOR"),isAuthorAuthenticated:null===(c=r.user)||void 0===c?void 0:c.authenticated},r.id);case u.C.NAME_CHANGE:return p(r);case u.C.CONNECTED_USER_INFO:return f(r);case u.C.USER_JOINED:return _(r);case u.C.CHAT_ACTION:return C(r);case u.C.SYSTEM:return(0,l.jsx)(ea,{message:r,highlightString:s},r.id);default:return null}},v=(0,d.useMemo)(()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.OO,{style:{height:o},className:g().virtuoso,ref:x,data:t,itemContent:(e,t)=>j(e,t),followOutput:e=>!!e&&"smooth",alignToBottom:!0,atBottomThreshold:70,atBottomStateChange(e){m(e)},endReached:()=>m(!0)}),!i&&(0,l.jsx)(ed,{chatContainerRef:x,messages:t})]}),[t,s,a,n,i]);return(0,l.jsxs)("div",{id:"chat-container",className:g().chatContainer,children:[v,r&&(0,l.jsx)("div",{className:g().chatTextField,children:(0,l.jsx)(X,{})})]})};ex.defaultProps={showInput:!0,height:"auto"}},65302:function(e){e.exports={chatAction:"ChatActionMessage_chatAction__x9Xsg"}},59760:function(e){e.exports={toBottomWrap:"ChatContainer_toBottomWrap__3V5wa",nameChangeView:"ChatContainer_nameChangeView__ziyXN",nameChangeText:"ChatContainer_nameChangeText__yXG__",plain:"ChatContainer_plain__IPS19",chatContainer:"ChatContainer_chatContainer__O2lYN",virtuoso:"ChatContainer_virtuoso__OS9Kz",chatTextField:"ChatContainer_chatTextField__OqCGL"}},91044:function(e){e.exports={root:"ChatJoinMessage_root__vuVXa"}},93107:function(e){e.exports={chatModerationNotification:"ChatModeratorNotification_chatModerationNotification__kgFWe",icon:"ChatModeratorNotification_icon__7FdGg"}},23421:function(e){e.exports={chatSystemMessage:"ChatSystemMessage_chatSystemMessage__c6XEN",user:"ChatSystemMessage_user__6yHSJ",message:"ChatSystemMessage_message__ySq5g"}},26912:function(e){e.exports={root:"ChatTextField_root__4oUkJ",inputWrap:"ChatTextField_inputWrap__1mAjD",maxCharacters:"ChatTextField_maxCharacters__yGT4s",emojiButton:"ChatTextField_emojiButton__ON_Cu",sendButton:"ChatTextField_sendButton__MOmD4"}},48976:function(e){e.exports={badge:"ChatUserBadge_badge__1EdUp"}},50085:function(e){e.exports={root:"ChatUserMessage_root__79heB",user:"ChatUserMessage_user__xUEp9",message:"ChatUserMessage_message__MJ9LD",ownMessage:"ChatUserMessage_ownMessage__d28A3",background:"ChatUserMessage_background__Tfghp",modMenuWrapper:"ChatUserMessage_modMenuWrapper__7fblv",messagePadding:"ChatUserMessage_messagePadding__Xp1F6",messagePaddingCollapsed:"ChatUserMessage_messagePaddingCollapsed__qxN0E"}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4977],{94977:function(e,t,s){"use strict";s.r(t),s.d(t,{ChatContainer:function(){return ex}});var a,n,r,o,i,l=s(85893),c=s(9764),d=s(67294),h=s(36531),u=s(91951),m=s(59760),g=s.n(m),x=s(86492),p=s.n(x),_=s(94184),C=s.n(_),f=s(94199),j=s(29158),v=s(4480),y=s(5152),N=s.n(y),M=s(50085),b=s.n(M),S=s(77278);function E(e){let t=new Date(e);if(Number.isNaN(t))return"";let s=(0,S.Xb)(e);if(s>=1){let a=t.toLocaleDateString("en-US",{dateStyle:"medium"});return"".concat(a," at ").concat(t.toLocaleTimeString())}return"".concat(t.toLocaleTimeString())}var T=s(48976),w=s.n(T);let k=e=>{let{badge:t,userColor:s}=e,a="var(--theme-user-colors-".concat(s,")");return(0,l.jsx)("span",{style:{color:a,borderColor:a},className:w().badge,children:t})};var O=s(77466);let D=N()(()=>Promise.all([s.e(8909),s.e(3903),s.e(4267),s.e(2206),s.e(8091),s.e(1769),s.e(4860)]).then(s.bind(s,94860)).then(e=>e.ChatModerationActionMenu),{loadableGenerated:{webpack:()=>[94860]}}),A=N()(()=>Promise.resolve().then(s.bind(s,47049)).then(e=>e.Highlight),{loadableGenerated:{webpack:()=>[47049]}}),B=e=>{let{children:t,user:s}=e,{displayName:a,createdAt:n}=s,r="".concat(a," first joined ").concat(E(n));return(0,l.jsx)(f.Z,{title:r,placement:"topLeft",mouseEnterDelay:1,children:t})},U=e=>{let{message:t,highlightString:s,showModeratorMenu:a,sentBySelf:n,sameUserAsLast:r,isAuthorModerator:o,isAuthorAuthenticated:i}=e,{id:c,body:h,user:u,timestamp:m}=t,{id:g,displayName:x,displayColor:_}=u,y=(0,v.sJ)(O.FI),N="var(--theme-color-users-".concat(_,")"),M="Sent ".concat(E(m)),[S,T]=(0,d.useState)(h),w=[];return o&&w.push((0,l.jsx)(k,{badge:"mod",userColor:_},"mod")),i&&w.push((0,l.jsx)(k,{badge:(0,l.jsx)(j.Z,{title:"authenticated"}),userColor:_},"auth")),(0,d.useEffect)(()=>{T(p().decode(h))},[t]),(0,l.jsx)("div",{className:C()(b().messagePadding,r&&b().messagePaddingCollapsed,"chat-message_user"),children:(0,l.jsxs)("div",{className:C()(b().root,{[b().ownMessage]:n}),style:{borderColor:N},children:[!r&&(0,l.jsx)(B,{user:u,children:(0,l.jsxs)("div",{className:b().user,style:{color:N},children:[(0,l.jsx)("span",{className:b().userName,children:x}),(0,l.jsx)("span",{children:w})]})}),(0,l.jsx)(f.Z,{title:M,mouseEnterDelay:1,children:(0,l.jsx)(A,{search:s,children:(0,l.jsx)("div",{className:b().message,dangerouslySetInnerHTML:{__html:S}})})}),a&&(0,l.jsx)("div",{className:b().modMenuWrapper,children:(0,l.jsx)(D,{messageID:c,accessToken:y,userID:g,userDisplayName:x})}),(0,l.jsx)("div",{className:b().background,style:{color:N}})]})})};var F=s(93045),L=s(27496),R=s(55241),P=s(77493),H=s(96391),I=s(26912),W=s.n(I);let G=N()(()=>Promise.all([s.e(7741),s.e(1559)]).then(s.bind(s,51559)).then(e=>e.EmojiPicker),{loadableGenerated:{webpack:()=>[51559]}}),Z=e=>{let{attributes:t,element:s,children:a}=e,n=(0,H.vt)(),r=(0,H.UE)();return(0,l.jsxs)("span",{...t,contentEditable:!1,children:[(0,l.jsx)("img",{alt:s.alt,src:s.src,title:s.name,style:{display:"inline",maxWidth:"50px",maxHeight:"20px",boxShadow:"".concat(n&&r?"0 0 0 3px #B4D5FF":"none")}}),a]})},V=e=>{let{isVoid:t}=e;return e.isVoid=e=>"image"===e.type||t(e),e.isInline=e=>"image"===e.type,e},Y=e=>{let t;if(P.xv.isText(e)){let s=e.text;return s}if(0===e.children.length)t=[{text:""}];else{var a;t=null===(a=e.children)||void 0===a?void 0:a.map(e=>Y(e)).join("")}switch(e.type){case"paragraph":return"

".concat(t,"

");case"image":return'').concat(e.alt,'');default:return t}},J=e=>{if(P.xv.isText(e))return e.text.length;if("image"===e.type)return 5;let t=0;return e.children.forEach(e=>{t+=J(e)}),t},X=e=>{let{defaultText:t}=e,[s,a]=(0,d.useState)(!1),[n,r]=(0,d.useState)(null==t?void 0:t.length),o=(0,v.sJ)(O.Gt),i=(0,d.useMemo)(()=>(0,H.BU)(V((0,P.Jh)())),[]),c=()=>{if(!o){console.log("websocketService is not defined");return}let e=Y(i);o.send({type:u.C.CHAT,body:e}),P.YR.delete(i,{at:{anchor:P.ML.start(i,[]),focus:P.ML.end(i,[])}}),r(0)},h=(e,t,s)=>({type:"image",alt:e,src:t,name:s,children:[{text:""}]}),m=(e,t)=>{if(!e)return;let{selection:s}=i,a=h(t,e,t);if(P.YR.insertNodes(i,a,{select:!0}),s){var n;let[r,o]=P.ML.parent(i,null===(n=s.focus)||void 0===n?void 0:n.path);i.isVoid(r)||P.NB.string(r).length?P.YR.insertNodes(i,a,{at:P.y$.next(o),select:!0}):(P.YR.insertNodes(i,a,{at:o,select:!0}),P.ML.normalize(i,{force:!0}))}else P.YR.insertNodes(i,a,{select:!0})},g=e=>{H.F3.focus(i),P.YR.insertText(i,e)},x=(e,t)=>{H.F3.focus(i),m(t,e)},p=e=>{let t=J(i)+1;if("Enter"===e.key){e.preventDefault(),c();return}if("Backspace"===e.key){r(t-1);return}t+1>300&&e.preventDefault(),r(t+1)},_=e=>{let t=e.clipboardData.getData("text/plain"),{length:s}=t;n+s>300&&e.preventDefault()},f=e=>"image"===e.element.type?(0,l.jsx)(Z,{...e}):(0,l.jsx)("p",{...e});return(0,l.jsx)("div",{className:W().root,children:(0,l.jsxs)("div",{className:C()(W().inputWrap,n>=300&&W().maxCharacters),children:[(0,l.jsxs)(H.mH,{editor:i,value:[{type:"paragraph",children:[{text:t||""}]}],children:[(0,l.jsx)(H.CX,{className:"chat-text-input",onKeyDown:p,onPaste:_,renderElement:f,placeholder:"Send a message to chat",style:{width:"100%"},role:"textbox","aria-label":"Chat text input",autoFocus:!0}),(0,l.jsx)(R.Z,{content:(0,l.jsx)(G,{onEmojiSelect:g,onCustomEmojiSelect:x}),trigger:"click",onOpenChange:e=>a(e),open:s})]}),(0,l.jsxs)("div",{style:{display:"flex",paddingLeft:"5px"},children:[(0,l.jsx)("button",{type:"button",className:W().emojiButton,title:"Emoji picker button",onClick:()=>a(!s),children:(0,l.jsx)(F.Z,{})}),(0,l.jsx)("button",{type:"button",className:W().sendButton,title:"Send message Button",onClick:c,children:(0,l.jsx)(L.Z,{})})]})]})})};var z=s(93107),q=s.n(z);function K(){return(K=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,l.jsxs)("div",{className:q().chatModerationNotification,children:[(0,l.jsx)($,{className:q().icon}),"You are now a moderator."]});var ee=s(47049),et=s(23421),es=s.n(et);let ea=e=>{let{message:{body:t,user:{displayName:s}},highlightString:a}=e;return(0,l.jsxs)("div",{className:C()([es().chatSystemMessage,"chat-message_system"]),children:[(0,l.jsx)("div",{className:es().user,children:(0,l.jsx)("span",{className:es().userName,children:s})}),(0,l.jsx)(ee.Highlight,{search:a,children:(0,l.jsx)("div",{className:es().message,dangerouslySetInnerHTML:{__html:t}})})]})};var en=s(55355),er=s(91044),eo=s.n(er);let ei=e=>{let{isAuthorModerator:t,userColor:s,displayName:a}=e;return(0,l.jsxs)("div",{className:eo().root,children:[(0,l.jsxs)("span",{style:{color:"var(--theme-color-users-".concat(s,")")},children:[(0,l.jsx)("span",{style:{padding:"0 10px"},children:(0,l.jsx)(en.Z,{})}),(0,l.jsx)("span",{style:{fontWeight:"bold"},children:a}),t&&(0,l.jsx)("span",{children:(0,l.jsx)(k,{badge:"mod",userColor:s})})]})," ","joined the chat."]})};var el=s(66017),ec=s(71577);let ed=e=>{let{chatContainerRef:t,messages:s}=e;return(0,l.jsx)("div",{className:g().toBottomWrap,children:(0,l.jsx)(ec.Z,{type:"default",style:{color:"currentColor"},icon:(0,l.jsx)(el.Z,{}),onClick:()=>t.current.scrollToIndex({index:s.length-1,behavior:"smooth"}),children:"Go to last message"})})};var eh=s(65302),eu=s.n(eh);let em=e=>{let{body:t}=e;return(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:t},className:eu().chatAction})};function eg(e){let{user:{scopes:t}}=e;return!!t&&0!==t.length&&t.includes("MODERATOR")}let ex=e=>{let{messages:t,usernameToHighlight:s,chatUserId:a,isModerator:n,showInput:r,height:o}=e,[i,m]=(0,d.useState)(!0),x=(0,d.useRef)(null),p=e=>{let{oldName:t,user:s}=e,{displayName:a,displayColor:n}=s,r="var(--theme-color-users-".concat(n,")");return(0,l.jsxs)("div",{className:g().nameChangeView,children:[(0,l.jsx)("div",{style:{marginRight:5,height:"max-content",margin:"auto 5px auto 0"},children:(0,l.jsx)(h.Z,{})}),(0,l.jsxs)("div",{className:g().nameChangeText,children:[(0,l.jsx)("span",{style:{color:r},children:t}),(0,l.jsx)("span",{className:g().plain,children:" is now known as "}),(0,l.jsx)("span",{style:{color:r},children:a})]})]})},_=e=>{let{user:{displayName:t,displayColor:s}}=e,a=eg(e);return(0,l.jsx)(ei,{displayName:t,userColor:s,isAuthorModerator:a})},C=e=>{let{body:t}=e;return(0,l.jsx)(em,{body:t})},f=e=>{let t=eg(e);return t?(0,l.jsx)(Q,{}):(0,l.jsx)("div",{style:{width:"1px",height:"1px"}})},j=(e,r)=>{switch(r.type){case u.C.CHAT:var o,i,c;return(0,l.jsx)(U,{message:r,showModeratorMenu:n,highlightString:s,sentBySelf:(null===(o=r.user)||void 0===o?void 0:o.id)===a,sameUserAsLast:function(e,t){if(e.length<2)return!1;let s=e[t];if(!s||!s.user)return!1;let{user:{id:a}}=s,n=e[t-1];if((null==n?void 0:n.type)!==u.C.CHAT||!(null==n?void 0:n.timestamp)||!s.timestamp)return!1;let r=new Date(null==n?void 0:n.timestamp).getTime(),o=new Date(s.timestamp).getTime();return!(o-r>12e4)&&a===(null==n?void 0:n.user.id)}(t,e),isAuthorModerator:null===(i=r.user.scopes)||void 0===i?void 0:i.includes("MODERATOR"),isAuthorAuthenticated:null===(c=r.user)||void 0===c?void 0:c.authenticated},r.id);case u.C.NAME_CHANGE:return p(r);case u.C.CONNECTED_USER_INFO:return f(r);case u.C.USER_JOINED:return _(r);case u.C.CHAT_ACTION:return C(r);case u.C.SYSTEM:return(0,l.jsx)(ea,{message:r,highlightString:s},r.id);default:return null}},v=(0,d.useMemo)(()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.OO,{style:{height:o},className:g().virtuoso,ref:x,data:t,itemContent:(e,t)=>j(e,t),followOutput:e=>!!e&&"smooth",alignToBottom:!0,atBottomThreshold:70,atBottomStateChange:e=>{m(e)},endReached:()=>m(!0)}),!i&&(0,l.jsx)(ed,{chatContainerRef:x,messages:t})]}),[t,s,a,n,i]);return(0,l.jsxs)("div",{id:"chat-container",className:g().chatContainer,children:[v,r&&(0,l.jsx)("div",{className:g().chatTextField,children:(0,l.jsx)(X,{})})]})};ex.defaultProps={showInput:!0,height:"auto"}},65302:function(e){e.exports={chatAction:"ChatActionMessage_chatAction__x9Xsg"}},59760:function(e){e.exports={toBottomWrap:"ChatContainer_toBottomWrap__3V5wa",nameChangeView:"ChatContainer_nameChangeView__ziyXN",nameChangeText:"ChatContainer_nameChangeText__yXG__",plain:"ChatContainer_plain__IPS19",chatContainer:"ChatContainer_chatContainer__O2lYN",virtuoso:"ChatContainer_virtuoso__OS9Kz",chatTextField:"ChatContainer_chatTextField__OqCGL"}},91044:function(e){e.exports={root:"ChatJoinMessage_root__vuVXa"}},93107:function(e){e.exports={chatModerationNotification:"ChatModeratorNotification_chatModerationNotification__kgFWe",icon:"ChatModeratorNotification_icon__7FdGg"}},23421:function(e){e.exports={chatSystemMessage:"ChatSystemMessage_chatSystemMessage__c6XEN",user:"ChatSystemMessage_user__6yHSJ",message:"ChatSystemMessage_message__ySq5g"}},26912:function(e){e.exports={root:"ChatTextField_root__4oUkJ",inputWrap:"ChatTextField_inputWrap__1mAjD",maxCharacters:"ChatTextField_maxCharacters__yGT4s",emojiButton:"ChatTextField_emojiButton__ON_Cu",sendButton:"ChatTextField_sendButton__MOmD4"}},48976:function(e){e.exports={badge:"ChatUserBadge_badge__1EdUp"}},50085:function(e){e.exports={root:"ChatUserMessage_root__79heB",user:"ChatUserMessage_user__xUEp9",message:"ChatUserMessage_message__MJ9LD",ownMessage:"ChatUserMessage_ownMessage__d28A3",background:"ChatUserMessage_background__Tfghp",modMenuWrapper:"ChatUserMessage_modMenuWrapper__7fblv",messagePadding:"ChatUserMessage_messagePadding__Xp1F6",messagePaddingCollapsed:"ChatUserMessage_messagePaddingCollapsed__qxN0E"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/4ad82c5e-573627f1f4333b92.js b/static/web/_next/static/chunks/4ad82c5e-e8a0b009f1f18bb1.js similarity index 87% rename from static/web/_next/static/chunks/4ad82c5e-573627f1f4333b92.js rename to static/web/_next/static/chunks/4ad82c5e-e8a0b009f1f18bb1.js index b60294a19..db3f8f8f2 100644 --- a/static/web/_next/static/chunks/4ad82c5e-573627f1f4333b92.js +++ b/static/web/_next/static/chunks/4ad82c5e-e8a0b009f1f18bb1.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5762],{47421:function(t,e,i){let s;i.d(e,{$1:function(){return ib},$f:function(){return ig},AE:function(){return iU},Eu:function(){return sz},HQ:function(){return sj},Nm:function(){return tF},OO:function(){return tA},S2:function(){return i6},SJ:function(){return sx},Sd:function(){return sg},Uw:function(){return iE},W$:function(){return i8},ZO:function(){return iJ},Zs:function(){return i9},bF:function(){return su},gB:function(){return sf},hJ:function(){return sr},l9:function(){return ts},lg:function(){return tR},mH:function(){return sy},p:function(){return tn},qr:function(){return iI},tk:function(){return il},v5:function(){return sC}});var o,n,r,l=i(78120),h=i(28699),a=i(33952);function c(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function d(t,e){return!!e&&(t==e||t.contains(1!=e.nodeType?e.parentNode:e))}function u(t,e){if(!e.anchorNode)return!1;try{return d(t,e.anchorNode)}catch(i){return!1}}function f(t){return 3==t.nodeType?M(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function p(t,e,i,s){return!!i&&(g(t,e,i,s,-1)||g(t,e,i,s,1))}function m(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e}function g(t,e,i,s,o){for(;;){if(t==i&&e==s)return!0;if(e==(o<0?0:v(t))){if("DIV"==t.nodeName)return!1;let n=t.parentNode;if(!n||1!=n.nodeType)return!1;e=m(t)+(o<0?0:1),t=n}else{if(1!=t.nodeType||1==(t=t.childNodes[e+(o<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;e=o<0?v(t):0}}}function v(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}let w={left:0,right:0,top:0,bottom:0};function b(t,e){let i=e?t.left:t.right;return{left:i,right:i,top:t.top,bottom:t.bottom}}class y{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){this.set(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)}set(t,e,i,s){this.anchorNode=t,this.anchorOffset=e,this.focusNode=i,this.focusOffset=s}}let x=null;function S(t){if(t.setActive)return t.setActive();if(x)return t.focus(x);let e=[];for(let i=t;i&&(e.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(t.focus(null==x?{get preventScroll(){return x={preventScroll:!0},!0}}:void 0),!x){x=!1;for(let s=0;se)return c.domBoundsAround(t,e,h);if(d>=t&&-1==s&&(s=l,o=h),h>e&&c.dom.parentNode==this.dom){n=l,r=a;break}a=d,h=d+c.breakAfter}return{from:o,to:r<0?i+this.length:r,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:n=0?this.children[n].dom:null}}markDirty(t=!1){this.dirty|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.dirty&&this.markParentsDirty(!0))}setDOM(t){this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,i=D){this.markDirty();for(let s=t;sthis.pos||t==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function E(t,e,i,s,o,n,r,l,h){let{children:a}=t,c=a.length?a[e]:null,d=n.length?n[n.length-1]:null,u=d?d.breakAfter:r;if(!(e==s&&c&&!r&&!u&&n.length<2&&c.merge(i,o,n.length?d:null,0==i,l,h))){if(s0&&(!r&&n.length&&c.merge(i,c.length,n[0],!1,l,0)?c.breakAfter=n.shift().breakAfter:(i2);var K={mac:j||/Mac/.test(L.platform),windows:/Win/.test(L.platform),linux:/Linux|X11/.test(L.platform),ie:W,ie_version:N?V.documentMode||6:P?+P[1]:H?+H[1]:0,gecko:z,gecko_version:z?+(/Firefox\/(\d+)/.exec(L.userAgent)||[0,0])[1]:0,chrome:!!F,chrome_version:F?+F[1]:0,ios:j,android:/Android\b/.test(L.userAgent),webkit:I,safari:q,webkit_version:I?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=V.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class $ extends T{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){3==t.nodeType&&this.createDOM(t)}merge(t,e,i){return(!i||i instanceof $&&!(this.length-(e-t)+i.length>256))&&(this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e),this.markDirty(),!0)}split(t){let e=new $(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new A(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return X(this.dom,t,e)}}class G extends T{constructor(t,e=[],i=0){for(let s of(super(),this.mark=t,this.children=e,this.length=i,e))s.setParent(this)}setAttrs(t){if(C(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.dirty|=6)}sync(t){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t)}merge(t,e,i,s,o,n){return(!i||!!(i instanceof G&&i.mark.eq(this.mark))&&(!t||!(o<=0))&&(!(et&&e.push(i=t&&(s=o),i=r,o++}let l=this.length-t;return this.length=t,s>-1&&(this.children.length=s,this.markDirty()),new G(this.mark,e,l)}domAtPos(t){return Z(this,t)}coordsAt(t,e){return J(this,t,e)}}function X(t,e,i){let s=t.nodeValue.length;e>s&&(e=s);let o=e,n=e,r=0;0==e&&i<0||e==s&&i>=0?!(K.chrome||K.gecko)&&(e?(o--,r=1):n=0)?0:l.length-1];return K.safari&&!r&&0==h.width&&(h=Array.prototype.find.call(l,t=>t.width)||h),r?b(h,r<0):h||null}class _ extends T{constructor(t,e,i){super(),this.widget=t,this.length=e,this.side=i,this.prevWidget=null}static create(t,e,i){return new(t.customView||_)(t,e,i)}split(t){let e=_.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}getSide(){return this.side}merge(t,e,i,s,o,n){return(!i||i instanceof _&&!!this.widget.compare(i.widget)&&(!(t>0)||!(o<=0))&&(!(e0?i.length-1:0;s=i[o],t>0?0!=o:o!=i.length-1&&!(s.top0?-1:1);return this.length?s:b(s,this.side>0)}get isEditable(){return!1}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class U extends _{domAtPos(t){let{topView:e,text:i}=this.widget;return e?Y(t,0,e,i,(t,e)=>t.domAtPos(e),t=>new A(i,Math.min(t,i.nodeValue.length))):new A(i,Math.min(t,i.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(t,e){let{topView:i,text:s}=this.widget;return i?function t(e,i,s,o){if(s instanceof G)for(let n of s.children){let r=0,l=d(n.dom,o);if(d(n.dom,e))return r+(l?t(e,i,n,o):n.localPosFromDOM(e,i));r+=l?o.nodeValue.length:n.length}else if(s.dom==o)return Math.min(i,o.nodeValue.length);return s.localPosFromDOM(e,i)}(t,e,i,s):Math.min(e,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(t,e){let{topView:i,text:s}=this.widget;return i?Y(t,e,i,s,(t,e,i)=>t.coordsAt(e,i),(t,e)=>X(s,t,e)):X(s,t,e)}destroy(){var t;super.destroy(),null===(t=this.widget.topView)||void 0===t||t.destroy()}get isEditable(){return!0}canReuseDOM(){return!0}}function Y(t,e,i,s,o,n){if(i instanceof G){for(let r=i.dom.firstChild;r;r=r.nextSibling){let l=T.get(r);if(!l)return n(t,e);let h=d(r,s),a=l.length+(h?s.nodeValue.length:0);if(t=l.getSide())return h?Y(t,e,l,s,o,n):o(l,t,e);t-=a}return o(i,i.length,-1)}return i.dom==s?n(t,e):o(i,t,e)}class Q extends T{constructor(t){super(),this.side=t}get length(){return 0}merge(){return!1}become(t){return t instanceof Q&&t.side==this.side}split(){return new Q(this.side)}sync(){if(!this.dom){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),this.setDOM(t)}}getSide(){return this.side}domAtPos(t){return A.before(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){let e=this.dom.getBoundingClientRect(),i=function(t,e){let i=t.parent,s=i?i.children.indexOf(t):-1;for(;i&&s>=0;)if(e<0?s>0:s0?-1:1);return i&&i.tope.top?{left:e.left,right:e.right,top:i.top,bottom:i.bottom}:e}get overrideDOMText(){return l.xv.empty}}function Z(t,e){let i=t.dom,{children:s}=t,o=0;for(let n=0;o=r.getSide())){if(e>n&&e0;h--){let a=s[h-1];if(a.dom.parentNode==i)return a.domAtPos(a.length)}for(let c=o;c=i&&(a.children.length?t(a,i-h):!n&&(c>i||h==c&&a.getSide()>0)?(n=a,r=i-h):(ha.getSide())&&(s=a,o=i-h)),h=c}}(t,e);let l=(i<0?s:n)||s||n;return l?l.coordsAt(Math.max(0,l==s?o:r),i):function(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let i=f(e);return i[i.length-1]||null}(t)}function tt(t,e){for(let i in t)"class"==i&&e.class?e.class+=" "+t.class:"style"==i&&e.style?e.style+=";"+t.style:e[i]=t[i];return e}function te(t,e){if(t==e)return!0;if(!t||!e)return!1;let i=Object.keys(t),s=Object.keys(e);if(i.length!=s.length)return!1;for(let o of i)if(-1==s.indexOf(o)||t[o]!==e[o])return!1;return!0}function ti(t,e,i){let s=null;if(e)for(let o in e)i&&o in i||t.removeAttribute(s=o);if(i)for(let n in i)e&&e[n]==i[n]||t.setAttribute(s=n,i[n]);return!!s}$.prototype.children=_.prototype.children=Q.prototype.children=D;class ts{eq(t){return!1}updateDOM(t){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return -1}ignoreEvent(t){return!0}get customView(){return null}destroy(t){}}var to=((o=to||(to={}))[o.Text=0]="Text",o[o.WidgetBefore=1]="WidgetBefore",o[o.WidgetAfter=2]="WidgetAfter",o[o.WidgetRange=3]="WidgetRange",o);class tn extends l.uU{constructor(t,e,i,s){super(),this.startSide=t,this.endSide=e,this.widget=i,this.spec=s}get heightRelevant(){return!1}static mark(t){return new tr(t)}static widget(t){let e=t.side||0,i=!!t.block;return e+=i?e>0?3e8:-4e8:e>0?1e8:-1e8,new th(t,e,e,i,t.widget||null,!1)}static replace(t){let e=!!t.block,i,s;if(t.isBlockGap)i=-5e8,s=4e8;else{let{start:o,end:n}=ta(t,e);i=(o?e?-3e8:-1:5e8)-1,s=(n?e?2e8:1:-6e8)+1}return new th(t,i,s,e,t.widget||null,!0)}static line(t){return new tl(t)}static set(t,e=!1){return l.Xs.of(t,e)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}tn.none=l.Xs.empty;class tr extends tn{constructor(t){let{start:e,end:i}=ta(t);super(e?-1:5e8,i?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){return this==t||t instanceof tr&&this.tagName==t.tagName&&this.class==t.class&&te(this.attrs,t.attrs)}range(t,e=t){if(t>=e)throw RangeError("Mark decorations may not be empty");return super.range(t,e)}}tr.prototype.point=!1;class tl extends tn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof tl&&te(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}tl.prototype.mapMode=l.gc.TrackBefore,tl.prototype.point=!0;class th extends tn{constructor(t,e,i,s,o,n){super(e,i,o,t),this.block=s,this.isReplace=n,this.mapMode=s?e<=0?l.gc.TrackBefore:l.gc.TrackAfter:l.gc.TrackDel}get type(){return this.startSide=5}eq(t){var e,i;return t instanceof th&&((e=this.widget)==(i=t.widget)||!!(e&&i&&e.compare(i)))&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}function ta(t,e=!1){let{inclusiveStart:i,inclusiveEnd:s}=t;return null==i&&(i=t.inclusive),null==s&&(s=t.inclusive),{start:null!=i?i:e,end:null!=s?s:e}}function tc(t,e,i,s=0){let o=i.length-1;o>=0&&i[o]+s>=t?i[o]=Math.max(i[o],e):i.push(t,e)}th.prototype.point=!0;class td extends T{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,e,i,s,o,n){if(i){if(!(i instanceof td))return!1;this.dom||i.transferDOM(this)}return s&&this.setDeco(i?i.attrs:null),B(this,t,e,i?i.children:[],o,n),!0}split(t){let e=new td;if(e.breakAfter=this.breakAfter,0==this.length)return e;let{i,off:s}=this.childPos(t);s&&(e.append(this.children[i].split(s),0),this.children[i].merge(s,this.children[i].length,null,!1,0,0),i++);for(let o=i;o0&&0==this.children[i-1].length;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){te(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){!function t(e,i,s){let o,{children:n}=e;s>0&&i instanceof G&&n.length&&(o=n[n.length-1])instanceof G&&o.mark.eq(i.mark)?t(o,i.children[0],s-1):(n.push(i),i.setParent(e)),e.length+=i.length}(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;e&&(this.attrs=tt(e,this.attrs||{})),i&&(this.attrs=tt({class:i},this.attrs||{}))}domAtPos(t){return Z(this,t)}reuseDOM(t){"DIV"==t.nodeName&&(this.setDOM(t),this.dirty|=6)}sync(t){var e;this.dom?4&this.dirty&&(C(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ti(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t);let i=this.dom.lastChild;for(;i&&T.get(i) instanceof G;)i=i.lastChild;if(!i||!this.length||"BR"!=i.nodeName&&(null===(e=T.get(i))||void 0===e?void 0:e.isEditable)==!1&&(!K.ios||!this.children.some(t=>t instanceof $))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let t=0;for(let e of this.children){if(!(e instanceof $)||/[^ -~]/.test(e.text))return null;let i=f(e.dom);if(1!=i.length)return null;t+=i[0].width}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length}:null}coordsAt(t,e){return J(this,t,e)}become(t){return!1}get type(){return to.Text}static find(t,e){for(let i=0,s=0;i=e){if(o instanceof td)return o;if(n>e)break}s=n+o.breakAfter}return null}}class tu extends T{constructor(t,e,i){super(),this.widget=t,this.length=e,this.type=i,this.breakAfter=0,this.prevWidget=null}merge(t,e,i,s,o,n){return(!i||i instanceof tu&&!!this.widget.compare(i.widget)&&(!(t>0)||!(o<=0))&&(!(e0;){if(this.textOff==this.text.length){let{value:s,lineBreak:o,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}this.text=s,this.textOff=0}let r=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(tp(new $(this.text.slice(this.textOff,this.textOff+r)),e),i),this.atCursorPos=!0,this.textOff+=r,t-=r,i=0}}span(t,e,i,s){this.buildText(e-t,i,s),this.pos=e,this.openStart<0&&(this.openStart=s)}point(t,e,i,s,o,n){if(this.disallowBlockEffectsFor[n]&&i instanceof th){if(i.block)throw RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw RangeError("Decorations that replace line breaks may not be specified via plugins")}let r=e-t;if(i instanceof th){if(i.block){let{type:l}=i;l!=to.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new tu(i.widget||new tm("div"),r,l))}else{let h=_.create(i.widget||new tm("span"),r,r?0:i.startSide),a=this.atCursorPos&&!h.isEditable&&o<=s.length&&(t0),c=!h.isEditable&&(ts.length||i.startSide<=0),d=this.getLine();2!=this.pendingBuffer||a||(this.pendingBuffer=0),this.flushBuffer(s),a&&(d.append(tp(new Q(1),s),o),o=s.length+Math.max(0,o-s.length)),d.append(tp(h,s),o),this.atCursorPos=c,this.pendingBuffer=c?ts.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=s.slice())}}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);r&&(this.textOff+r<=this.text.length?this.textOff+=r:(this.skip+=r-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}static build(t,e,i,s,o){let n=new tf(t,e,i,o);return n.openEnd=l.Xs.spans(s,e,i,n),n.openStart<0&&(n.openStart=n.openEnd),n.finish(n.openEnd),n}}function tp(t,e){for(let i of e)t=new G(i,[t],t.length);return t}class tm extends ts{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}}let tg=l.r$.define(),tv=l.r$.define(),tw=l.r$.define(),tb=l.r$.define(),ty=l.r$.define(),tx=l.r$.define(),tS=l.r$.define({combine:t=>t.some(t=>t)}),tM=l.r$.define({combine:t=>t.some(t=>t)});class tk{constructor(t,e="nearest",i="nearest",s=5,o=5){this.range=t,this.y=e,this.x=i,this.yMargin=s,this.xMargin=o}map(t){return t.empty?this:new tk(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin)}}let tC=l.Py.define({map:(t,e)=>t.map(e)});function tA(t,e,i){let s=t.facet(tb);s.length?s[0](e):window.onerror?window.onerror(String(e),i,void 0,void 0,e):i?console.error(i+":",e):console.error(e)}let tD=l.r$.define({combine:t=>!t.length||t[0]}),tT=0,tO=l.r$.define();class tR{constructor(t,e,i,s){this.id=t,this.create=e,this.domEventHandlers=i,this.extension=s(this)}static define(t,e){let{eventHandlers:i,provide:s,decorations:o}=e||{};return new tR(tT++,t,i,t=>{let e=[tO.of(t)];return o&&e.push(tV.of(e=>{let i=e.plugin(t);return i?o(i):tn.none})),s&&e.push(s(t)),e})}static fromClass(t,e){return tR.define(e=>new t(e),e)}}class tE{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(s){if(tA(e.state,s,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(i){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(o){tA(t.state,o,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(null===(e=this.value)||void 0===e?void 0:e.destroy)try{this.value.destroy()}catch(i){tA(t.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}let tB=l.r$.define(),tL=l.r$.define(),tV=l.r$.define(),tH=l.r$.define(),tN=l.r$.define(),tP=l.r$.define();class tW{constructor(t,e,i,s){this.fromA=t,this.toA=e,this.fromB=i,this.toB=s}join(t){return new tW(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let s=t[e-1];if(!(s.fromA>i.toA)){if(s.toAa)break;o+=2}if(!l)return i;new tW(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),n=l.toA,r=l.toB}}}class tz{constructor(t,e,i){for(let s of(this.view=t,this.state=e,this.transactions=i,this.flags=0,this.startState=t.state,this.changes=l.as.empty(this.startState.doc.length),i))this.changes=this.changes.compose(s.changes);let o=[];this.changes.iterChangedRanges((t,e,i,s)=>o.push(new tW(t,e,i,s))),this.changedRanges=o;let n=t.hasFocus;n!=t.inputState.notifiedFocused&&(t.inputState.notifiedFocused=n,this.flags|=1)}static create(t,e,i){return new tz(t,e,i)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}var tF=((n=tF||(tF={}))[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n);let tI=tF.LTR,tq=tF.RTL;function tj(t){let e=[];for(let i=0;i=e){if(r.level==i)return n;(o<0||(0!=s?s<0?r.frome:t[o].level>r.level))&&(o=n)}}if(o<0)throw RangeError("Index out of range");return o}}let tJ=[];function t0(t){return[new tZ(0,t,0)]}let t1="";class t2{constructor(t,e){this.points=t,this.text="",this.lineSeparator=e.facet(l.yy.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+="￿"}readRange(t,e){if(!t)return this;let i=t.parentNode;for(let s=t;;){this.findPointBefore(i,s),this.readNode(s);let o=s.nextSibling;if(o==e)break;let n=T.get(s),r=T.get(o);(n&&r?n.breakAfter:(n?n.breakAfter:t8(s))||t8(o)&&("BR"!=s.nodeName||s.cmIgnore))&&this.lineBreak(),s=o}return this.findPointBefore(i,e),this}readTextNode(t){let e=t.nodeValue;for(let i of this.points)i.node==t&&(i.pos=this.text.length+Math.min(i.offset,e.length));for(let s=0,o=this.lineSeparator?null:/\r\n?|\n/g;;){let n=-1,r=1,l;if(this.lineSeparator?(n=e.indexOf(this.lineSeparator,s),r=this.lineSeparator.length):(l=o.exec(e))&&(n=l.index,r=l[0].length),this.append(e.slice(s,n<0?e.length:n)),n<0)break;if(this.lineBreak(),r>1)for(let h of this.points)h.node==t&&h.pos>this.text.length&&(h.pos-=r-1);s=n+r}}readNode(t){if(t.cmIgnore)return;let e=T.get(t),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(t,i.length);for(let s=i.iter();!s.next().done;)s.lineBreak?this.lineBreak():this.append(s.value)}else 3==t.nodeType?this.readTextNode(t):"BR"==t.nodeName?t.nextSibling&&this.lineBreak():1==t.nodeType&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let i of this.points)i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length)}findPointInside(t,e){for(let i of this.points)(3==t.nodeType?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+Math.min(e,i.offset))}}function t8(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}class t3{constructor(t,e){this.node=t,this.offset=e,this.pos=-1}}class t9 extends T{constructor(t){super(),this.view=t,this.compositionDeco=tn.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new td],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new tW(0,0,0,t.state.doc.length)],0)}get editorView(){return this.view}get length(){return this.view.state.doc.length}update(t){var e,i,s;let o,n=t.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:t,toA:e})=>ethis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=tn.none:(t.transactions.length||this.dirty)&&(this.compositionDeco=function(t,e){let i=t4(t);if(!i)return tn.none;let{from:s,to:o,node:n,text:r}=i,l=e.mapPos(s,1),h=Math.max(l,e.mapPos(o,-1)),{state:a}=t,c=3==n.nodeType?n.nodeValue:new t2([],a).readRange(n.firstChild,null).text;if(h-l{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let t=K.chrome||K.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(t),this.dirty=0,t&&(t.written||i.selectionRange.focusNode!=t.node)&&(this.forceSelection=!0),this.dom.style.height=""});let s=[];if(this.view.viewport.from||this.view.viewport.to=0?t[s]:null;if(!o)break;let{fromA:n,toA:r,fromB:l,toB:h}=o,{content:a,breakAtStart:c,openStart:d,openEnd:u}=tf.build(this.view.state.doc,l,h,this.decorations,this.dynamicDecorationMap),{i:f,off:p}=i.findPos(r,1),{i:m,off:g}=i.findPos(n,-1);E(this,m,g,f,p,a,c,d,u)}}updateSelection(t=!1,e=!1){var i;if((t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange(),!(e||this.mayControlSelection()))return;let s=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,n=this.domAtPos(o.anchor),r=o.empty?n:this.domAtPos(o.head);if(K.gecko&&o.empty&&1==(i=n).node.nodeType&&i.node.firstChild&&(0==i.offset||"false"==i.node.childNodes[i.offset-1].contentEditable)&&(i.offset==i.node.childNodes.length||"false"==i.node.childNodes[i.offset].contentEditable)){let l=document.createTextNode("");this.view.observer.ignore(()=>n.node.insertBefore(l,n.node.childNodes[n.offset]||null)),n=r=new A(l,0),s=!0}let h=this.view.observer.selectionRange;!s&&h.focusNode&&p(n.node,n.offset,h.anchorNode,h.anchorOffset)&&p(r.node,r.offset,h.focusNode,h.focusOffset)||(this.view.observer.ignore(()=>{K.android&&K.chrome&&this.dom.contains(h.focusNode)&&function(t,e){for(let i=t;i&&i!=e;i=i.assignedSlot||i.parentNode)if(1==i.nodeType&&"false"==i.contentEditable)return!0;return!1}(h.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let t=c(this.view.root);if(t){if(o.empty){if(K.gecko){var e,i;let s=(e=n.node,i=n.offset,1!=e.nodeType?0:(i&&"false"==e.childNodes[i-1].contentEditable?1:0)|(io.head&&([n,r]=[r,n]),d.setEnd(r.node,r.offset),d.setStart(n.node,n.offset),t.removeAllRanges(),t.addRange(d)}}}),this.view.observer.setSelectionRange(n,r)),this.impreciseAnchor=n.precise?null:new A(h.anchorNode,h.anchorOffset),this.impreciseHead=r.precise?null:new A(h.focusNode,h.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let{view:t}=this,e=t.state.selection.main,i=c(t.root),{anchorNode:s,anchorOffset:o}=t.observer.selectionRange;if(!i||!e.empty||!e.assoc||!i.modify)return;let n=td.find(this,e.head);if(!n)return;let r=n.posAtStart;if(e.head==r||e.head==r+n.length)return;let l=this.coordsAt(e.head,-1),h=this.coordsAt(e.head,1);if(!l||!h||l.bottom>h.top)return;let a=this.domAtPos(e.head+e.assoc);i.collapse(a.node,a.offset),i.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let d=t.observer.selectionRange;t.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=e.from&&i.collapse(s,o)}mayControlSelection(){let t=this.view.root.activeElement;return t==this.dom||u(this.dom,this.view.observer.selectionRange)&&!(t&&this.dom.contains(t))}nearest(t){for(let e=t;e;){let i=T.get(e);if(i&&i.rootView==this)return i;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;en||t==n&&o.type!=to.WidgetBefore&&o.type!=to.WidgetAfter&&(!s||2==e||this.children[s-1].breakAfter||this.children[s-1].type==to.WidgetBefore&&e>-2))return o.coordsAt(t-n,e);i=n}}measureVisibleLineHeights(t){let e=[],{from:i,to:s}=t,o=this.view.contentDOM.clientWidth,n=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,r=-1,l=this.view.textDirection==tF.LTR;for(let h=0,a=0;as)break;if(h>=i){let u=c.dom.getBoundingClientRect();if(e.push(u.height),n){let p=c.dom.lastChild,m=p?f(p):[];if(m.length){let g=m[m.length-1],v=l?g.right-u.left:u.right-g.left;v>r&&(r=v,this.minWidth=o,this.minWidthFrom=h,this.minWidthTo=d)}}}h=d+c.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return"rtl"==getComputedStyle(this.children[e].dom).direction?tF.RTL:tF.LTR}measureTextSize(){for(let t of this.children)if(t instanceof td){let e=t.measureTextSize();if(e)return e}let i=document.createElement("div"),s,o;return i.className="cm-line",i.style.width="99999px",i.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(i);let t=f(i.firstChild)[0];s=i.getBoundingClientRect().height,o=t?t.width/27:7,i.remove()}),{lineHeight:s,charWidth:o}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new R(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,s=0;;s++){let o=s==e.viewports.length?null:e.viewports[s],n=o?o.from-1:this.length;if(n>i){let r=e.lineBlockAt(n).bottom-e.lineBlockAt(i).top;t.push(tn.replace({widget:new t5(r),block:!0,inclusive:!0,isBlockGap:!0}).range(i,n))}if(!o)break;i=o.to+1}return tn.set(t)}updateDeco(){let t=this.view.state.facet(tV).map((t,e)=>(this.dynamicDecorationMap[e]="function"==typeof t)?t(this.view):t);for(let e=t.length;ee.anchor?-1:1),s;if(!i)return;!e.empty&&(s=this.coordsAt(e.anchor,e.anchor>e.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let o=0,n=0,r=0,l=0;for(let h of this.view.state.facet(tN).map(t=>t(this.view)))if(h){let{left:a,right:c,top:d,bottom:u}=h;null!=a&&(o=Math.max(o,a)),null!=c&&(n=Math.max(n,c)),null!=d&&(r=Math.max(r,d)),null!=u&&(l=Math.max(l,u))}let f={left:i.left-o,top:i.top-r,right:i.right+n,bottom:i.bottom+l};!function(t,e,i,s,o,n,r,l){let h=t.ownerDocument,a=h.defaultView||window;for(let c=t;c;)if(1==c.nodeType){let d,u=c==h.body;if(u)d={left:0,right:a.innerWidth,top:0,bottom:a.innerHeight};else{if(c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let f=c.getBoundingClientRect();d={left:f.left,right:f.left+c.clientWidth,top:f.top,bottom:f.top+c.clientHeight}}let p=0,m=0;if("nearest"==o)e.top0&&e.bottom>d.bottom+m&&(m=e.bottom-d.bottom+m+r)):e.bottom>d.bottom&&(m=e.bottom-d.bottom+r,i<0&&e.top-m0&&e.right>d.right+p&&(p=e.right-d.right+p+n)):e.right>d.right&&(p=e.right-d.right+n,i<0&&e.leftMath.abs(w-p)&&(s="nearest"),b&&1>Math.abs(b-m)&&(o="nearest")}}if(u)break;c=c.assignedSlot||c.parentNode}else if(11==c.nodeType)c=c.host;else break}(this.view.scrollDOM,f,e.head0&&i<=0)e=v(t=t.childNodes[e-1]);else{if(1!=t.nodeType||!(e=0))return null;t=t.childNodes[e],e=0}}}class et{constructor(){this.changes=[]}compareRange(t,e){tc(t,e,this.changes)}comparePoint(t,e){tc(t,e,this.changes)}}function ee(t,e){return t.tope.top+1}function ei(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function eo(t,e,i){let s=t.nodeValue.length,o=-1,n=1e9,r=0;for(let l=0;li?c.top-i:i-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&d=(c.left+c.right)/2,f=u;if((K.chrome||K.gecko)&&M(t,l).getBoundingClientRect().left==c.right&&(f=!u),d<=0)return{node:t,offset:l+(f?1:0)};o=l+(f?1:0),n=d}}}return{node:t,offset:o>-1?o:r>0?t.nodeValue.length:0}}function en(t,{x:e,y:i},s,o=-1){var n;let r=t.contentDOM.getBoundingClientRect(),l=r.top+t.viewState.paddingTop,h,{docHeight:a}=t.viewState,c=i-l;if(c<0)return 0;if(c>a)return t.state.doc.length;for(let d=t.defaultLineHeight/2,u=!1;(h=t.elementAtHeight(c)).type!=to.Text;)for(;!((c=o>0?h.bottom+d:h.top-d)>=0)||!(c<=a);){if(u)return s?null:0;u=!0,o=-o}i=l+c;let p=h.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:s?null:er(t,r,h,e,i);let m=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:m,v=g.elementFromPoint(e,i);v&&!t.contentDOM.contains(v)&&(v=null),!v&&(e=Math.max(r.left+1,Math.min(r.right-1,e)),(v=g.elementFromPoint(e,i))&&!t.contentDOM.contains(v)&&(v=null));let w,b=-1;if(v&&(null===(n=t.docView.nearest(v))||void 0===n?void 0:n.isEditable)!=!1){if(m.caretPositionFromPoint){let y=m.caretPositionFromPoint(e,i);y&&({offsetNode:w,offset:b}=y)}else if(m.caretRangeFromPoint){let x=m.caretRangeFromPoint(e,i);x&&({startContainer:w,startOffset:b}=x,(!t.contentDOM.contains(w)||K.safari&&function(t,e,i){let s;if(3!=t.nodeType||e!=(s=t.nodeValue.length))return!1;for(let o=t.nextSibling;o;o=o.nextSibling)if(1!=o.nodeType||"BR"!=o.nodeName)return!1;return M(t,s-1,s).getBoundingClientRect().left>i}(w,b,e)||K.chrome&&function(t,e,i){if(0!=e)return!1;for(let s=t;;){let o=s.parentNode;if(!o||1!=o.nodeType||o.firstChild!=s)return!1;if(o.classList.contains("cm-line"))break;s=o}return i-(1==t.nodeType?t.getBoundingClientRect():M(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(w,b,e))&&(w=void 0))}}if(!w||!t.docView.dom.contains(w)){let S=td.find(t.docView,p);if(!S)return c>h.top+h.height/2?h.to:h.from;({node:w,offset:b}=function t(e,i,s){let o,n,r,l,h,a,c,d,u=!1;for(let p=e.firstChild;p;p=p.nextSibling){let m=f(p);for(let g=0;gi?v.left-i:Math.max(0,i-v.right),x=(w=b).top>s?w.top-s:Math.max(0,s-w.bottom);if(0==y&&0==x)return 3==p.nodeType?eo(p,i,s):t(p,i,s);(!h||d>x||d==x&&c>y)&&(h=p,a=b,c=y,d=x,u=!y||(y>0?g0)),0==y?s>b.bottom&&(!r||r.bottomb.top)&&(n=p,l=b):r&&ee(r,b)?r=es(r,b.bottom):l&&ee(l,b)&&(l=ei(l,b.top))}}if(r&&r.bottom>=s?(h=o,a=r):l&&l.top<=s&&(h=n,a=l),!h)return{node:e,offset:0};let S=Math.max(a.left,Math.min(a.right,i));if(3==h.nodeType)return eo(h,S,s);if(u&&"false"!=h.contentEditable)return t(h,S,s);let M=Array.prototype.indexOf.call(e.childNodes,h)+(i>=(a.left+a.right)/2?1:0);return{node:e,offset:M}}(S.dom,e,i))}return t.docView.posFromDOM(w,b)}function er(t,e,i,s,o){let n=Math.round((s-e.left)*t.defaultCharacterWidth);t.lineWrapping&&i.height>1.5*t.defaultLineHeight&&(n+=Math.floor((o-i.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);let r=t.state.sliceDoc(i.from,i.to);return i.from+(0,l.Gz)(r,n,t.state.tabSize)}function el(t,e,i,s){let o=t.state.doc.lineAt(e.head),n=t.bidiSpans(o),r=t.textDirectionAt(o.from);for(let h=e,a=null;;){let c=function(t,e,i,s,o){var n;let r=s.head-t.from,h=-1;if(0==r){if(!o||!t.length)return null;e[0].level!=i&&(r=e[0].side(!1,i),h=0)}else if(r==t.length){if(o)return null;let a=e[e.length-1];a.level!=i&&(r=a.side(!0,i),h=e.length-1)}h<0&&(h=tZ.find(e,r,null!==(n=s.bidiLevel)&&void 0!==n?n:-1,s.assoc));let c=e[h];r==c.side(o,i)&&(r=(c=e[h+=o?1:-1]).side(!o,i));let d=o==(c.dir==i),u=(0,l.cp)(t.text,r,d);if(t1=t.text.slice(Math.min(r,u),Math.max(r,u)),u!=c.side(o,i))return l.jT.cursor(u+t.from,d?-1:1,c.level);let f=h==(o?e.length-1:0)?null:e[h+(o?1:-1)];return f||c.level==i?f&&f.levele(t));for(;;){let o=!1;for(let n of s)n.between(i.from-1,i.from+1,(t,s,n)=>{i.from>t&&i.fromi.from?l.jT.cursor(t,1):l.jT.cursor(s,-1),o=!0)});if(!o)return i}}class ea{constructor(t){this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;let e=(e,i)=>{!this.ignoreDuringComposition(i)&&("keydown"==i.type&&this.keydown(t,i)||(this.mustFlushObserver(i)&&t.observer.forceFlush(),this.runCustomHandlers(i.type,t,i)?i.preventDefault():e(t,i)))};for(let i in eg){let s=eg[i];t.contentDOM.addEventListener(i,i=>{em(t,i)&&e(s,i)},ev[i]),this.registeredEvents.push(i)}t.scrollDOM.addEventListener("mousedown",i=>{i.target==t.scrollDOM&&e(eg.mousedown,i)}),K.chrome&&102==K.chrome_version&&t.scrollDOM.addEventListener("wheel",()=>{this.chromeScrollHack<0?t.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout(()=>{this.chromeScrollHack=-1,t.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=t.hasFocus,K.safari&&t.contentDOM.addEventListener("input",()=>null)}setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}ensureHandlers(t,e){var i;let s;for(let o of(this.customHandlers=[],e))if(s=null===(i=o.update(t).spec)||void 0===i?void 0:i.domEventHandlers)for(let n in this.customHandlers.push({plugin:o.value,handlers:s}),s)0>this.registeredEvents.indexOf(n)&&"scroll"!=n&&(this.registeredEvents.push(n),t.contentDOM.addEventListener(n,e=>{em(t,e)&&this.runCustomHandlers(n,t,e)&&e.preventDefault()}))}runCustomHandlers(t,e,i){for(let s of this.customHandlers){let o=s.handlers[t];if(o)try{if(o.call(s.plugin,i,e)||i.defaultPrevented)return!0}catch(n){tA(e.state,n)}}return!1}runScrollHandlers(t,e){for(let i of(this.lastScrollTop=t.scrollDOM.scrollTop,this.lastScrollLeft=t.scrollDOM.scrollLeft,this.customHandlers)){let s=i.handlers.scroll;if(s)try{s.call(i.plugin,e,t)}catch(o){tA(t.state,o)}}}keydown(t,e){let i;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),!!(9==e.keyCode&&Date.now()t.keyCode==e.keyCode))&&!e.ctrlKey||ed.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey))&&(this.pendingIOSKey=i||e,setTimeout(()=>this.flushIOSKey(t),250),!0))}flushIOSKey(t){let e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,k(t.contentDOM,e.key,e.keyCode))}ignoreDuringComposition(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(K.safari&&!K.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}mustFlushObserver(t){return"keydown"==t.type&&229!=t.keyCode}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}let ec=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],ed="dthko",eu=[16,17,18,20,91,92,224,225];function ef(t){return .7*t+8}class ep{constructor(t,e,i,s){let o,n;this.view=t,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(t){let e=t.ownerDocument;for(let i=t.parentNode;i&&i!=e.body;)if(1==i.nodeType){if(i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth)return i;i=i.assignedSlot||i.parentNode}else if(11==i.nodeType)i=i.host;else break;return null}(t.contentDOM);let r=t.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(l.yy.allowMultipleSelections)&&((o=t.state.facet(tg)).length?o[0](e):K.mac?e.metaKey:e.ctrlKey),this.dragMove=(n=t.state.facet(tv)).length?n[0](e):K.mac?!e.altKey:!e.ctrlKey,this.dragging=!!function(t,e){let{main:i}=t.state.selection;if(i.empty)return!1;let s=c(t.root);if(!s||0==s.rangeCount)return!0;let o=s.getRangeAt(0).getClientRects();for(let n=0;n=e.clientX&&r.top<=e.clientY&&r.bottom>=e.clientY)return!0}return!1}(t,e)&&1==eT(e)&&null,!1===this.dragging&&(e.preventDefault(),this.select(e))}move(t){var e;if(0==t.buttons)return this.destroy();if(!1!==this.dragging)return;this.select(this.lastEvent=t);let i=0,s=0,o=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};t.clientX<=o.left?i=-ef(o.left-t.clientX):t.clientX>=o.right&&(i=ef(t.clientX-o.right)),t.clientY<=o.top?s=-ef(o.top-t.clientY):t.clientY>=o.bottom&&(s=ef(t.clientY-o.bottom)),this.setScrollSpeed(i,s)}up(t){null==this.dragging&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}select(t){let e=this.style.get(t,this.extend,this.multiple);(this.mustSelect||!e.eq(this.view.state.selection)||e.main.assoc!=this.view.state.selection.main.assoc)&&this.view.dispatch({selection:e,userEvent:"select.pointer"}),this.mustSelect=!1}update(t){t.docChanged&&this.dragging&&(this.dragging=this.dragging.map(t.changes)),this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function em(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let i=e.target,s;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(s=T.get(i))&&s.ignoreEvent(e))return!1;return!0}let eg=Object.create(null),ev=Object.create(null),ew=K.ie&&K.ie_version<15||K.ios&&K.webkit_version<604;function eb(t,e){let{state:i}=t,s,o=1,n=i.toText(e),r=n.lines==i.selection.ranges.length;if(null!=eR&&i.selection.ranges.every(t=>t.empty)&&eR==n.toString()){let h=-1;s=i.changeByRange(t=>{let s=i.doc.lineAt(t.from);if(s.from==h)return{range:t};h=s.from;let a=i.toText((r?n.line(o++).text:e)+i.lineBreak);return{changes:{from:s.from,insert:a},range:l.jT.cursor(t.from+a.length)}})}else s=r?i.changeByRange(t=>{let e=n.line(o++);return{changes:{from:t.from,to:t.to,insert:e.text},range:l.jT.cursor(t.from+e.length)}}):i.replaceSelection(n);t.dispatch(s,{userEvent:"input.paste",scrollIntoView:!0})}function ey(t,e,i,s){if(1==s)return l.jT.cursor(e,i);if(2==s)return function(t,e,i=1){let s=t.charCategorizer(e),o=t.doc.lineAt(e),n=e-o.from;if(0==o.length)return l.jT.cursor(e);0==n?i=1:n==o.length&&(i=-1);let r=n,h=n;i<0?r=(0,l.cp)(o.text,n,!1):h=(0,l.cp)(o.text,n);let a=s(o.text.slice(r,h));for(;r>0;){let c=(0,l.cp)(o.text,r,!1);if(s(o.text.slice(c,r))!=a)break;r=c}for(;h{t.inputState.setSelectionOrigin("select"),27==e.keyCode?t.inputState.lastEscPress=Date.now():0>eu.indexOf(e.keyCode)&&(t.inputState.lastEscPress=0)},eg.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},eg.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},ev.touchstart=ev.touchmove={passive:!0},eg.mousedown=(t,e)=>{let i,s,o;if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return;let n=null;for(let r of t.state.facet(tw))if(n=r(t,e))break;if(n||0!=e.button||(i=eM(t,e),s=eT(e),o=t.state.selection,n={update(t){t.docChanged&&(i.pos=t.changes.mapPos(i.pos),o=o.map(t.changes))},get(e,n,r){let h=eM(t,e),a=ey(t,h.pos,h.bias,s);if(i.pos!=h.pos&&!n){let c=ey(t,i.pos,i.bias,s),d=Math.min(c.from,a.from),u=Math.max(c.to,a.to);a=d1&&o.ranges.some(t=>t.eq(a))?function(t,e){for(let i=0;;i++)if(t.ranges[i].eq(e))return l.jT.create(t.ranges.slice(0,i).concat(t.ranges.slice(i+1)),t.mainIndex==i?0:t.mainIndex-(t.mainIndex>i?1:0))}(o,a):r?o.addRange(a):l.jT.create([a])}}),n){let h=t.root.activeElement!=t.contentDOM;h&&t.observer.ignore(()=>S(t.contentDOM)),t.inputState.startMouseSelection(new ep(t,e,n,h))}};let ex=(t,e)=>t>=e.top&&t<=e.bottom,eS=(t,e,i)=>ex(e,i)&&t>=i.left&&t<=i.right;function eM(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:i,bias:function(t,e,i,s){let o=td.find(t.docView,e);if(!o)return 1;let n=e-o.posAtStart;if(0==n)return 1;if(n==o.length)return -1;let r=o.coordsAt(n,-1);if(r&&eS(i,s,r))return -1;let l=o.coordsAt(n,1);return l&&eS(i,s,l)?1:r&&ex(s,r)?-1:1}(t,i,e.clientX,e.clientY)}}let ek=K.ie&&K.ie_version<=11,eC=null,eA=0,eD=0;function eT(t){if(!ek)return t.detail;let e=eC,i=eD;return eC=t,eD=Date.now(),eA=!e||i>Date.now()-400&&2>Math.abs(e.clientX-t.clientX)&&2>Math.abs(e.clientY-t.clientY)?(eA+1)%3:1}function eO(t,e,i,s){if(!i)return;let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1);e.preventDefault();let{mouseSelection:n}=t.inputState,r=s&&n&&n.dragging&&n.dragMove?{from:n.dragging.from,to:n.dragging.to}:null,l={from:o,insert:i},h=t.state.changes(r?[r,l]:l);t.focus(),t.dispatch({changes:h,selection:{anchor:h.mapPos(o,-1),head:h.mapPos(o,1)},userEvent:r?"move.drop":"input.drop"})}eg.dragstart=(t,e)=>{let{selection:{main:i}}=t.state,{mouseSelection:s}=t.inputState;s&&(s.dragging=i),e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(i.from,i.to)),e.dataTransfer.effectAllowed="copyMove")},eg.drop=(t,e)=>{if(!e.dataTransfer)return;if(t.state.readOnly)return e.preventDefault();let i=e.dataTransfer.files;if(i&&i.length){e.preventDefault();let s=Array(i.length),o=0,n=()=>{++o==i.length&&eO(t,e,s.filter(t=>null!=t).join(t.state.lineBreak),!1)};for(let r=0;r{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(s[r]=l.result),n()},l.readAsText(i[r])}}else eO(t,e,e.dataTransfer.getData("Text"),!0)},eg.paste=(t,e)=>{if(t.state.readOnly)return e.preventDefault();t.observer.flush();let i=ew?null:e.clipboardData;i?(eb(t,i.getData("text/plain")),e.preventDefault()):function(t){let e=t.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{t.focus(),i.remove(),eb(t,i.value)},50)}(t)};let eR=null;function eE(t){setTimeout(()=>{t.hasFocus!=t.inputState.notifiedFocused&&t.update([])},10)}eg.copy=eg.cut=(t,e)=>{let{text:i,ranges:s,linewise:o}=function(t){let e=[],i=[],s=!1;for(let o of t.selection.ranges)o.empty||(e.push(t.sliceDoc(o.from,o.to)),i.push(o));if(!e.length){let n=-1;for(let{from:r}of t.selection.ranges){let l=t.doc.lineAt(r);l.number>n&&(e.push(l.text),i.push({from:l.from,to:Math.min(t.doc.length,l.to+1)})),n=l.number}s=!0}return{text:e.join(t.lineBreak),ranges:i,linewise:s}}(t.state);if(!i&&!o)return;eR=o?i:null;let n=ew?null:e.clipboardData;n?(e.preventDefault(),n.clearData(),n.setData("text/plain",i)):function(t,e){let i=t.dom.parentNode;if(!i)return;let s=i.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px",s.value=e,s.focus(),s.selectionEnd=e.length,s.selectionStart=0,setTimeout(()=>{s.remove(),t.focus()},50)}(t,i),"cut"!=e.type||t.state.readOnly||t.dispatch({changes:s,scrollIntoView:!0,userEvent:"delete.cut"})},eg.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),eE(t)},eg.blur=t=>{t.observer.clearSelectionRange(),eE(t)},eg.compositionstart=eg.compositionupdate=t=>{null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},eg.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,K.chrome&&K.android&&t.observer.flushSoon(),setTimeout(()=>{t.inputState.composing<0&&t.docView.compositionDeco.size&&t.update([])},50)},eg.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},eg.beforeinput=(t,e)=>{var i;let s;if(K.chrome&&K.android&&(s=ec.find(t=>t.inputType==e.inputType))&&(t.observer.delayAndroidKey(s.key,s.keyCode),"Backspace"==s.key||"Delete"==s.key)){let o=(null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0;setTimeout(()=>{var e;((null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0)>o+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}};let eB=["pre-wrap","normal","pre-line","break-spaces"];class eL{constructor(t){this.lineWrapping=t,this.doc=l.xv.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(i+=Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength)),this.lineHeight*i}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return eB.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let i=0;i-1,r=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=n;if(this.lineWrapping=n,this.lineHeight=e,this.charWidth=i,this.lineLength=s,r){this.heightSamples={};for(let l=0;l0}set outdated(t){this.flags=(t?2:0)|-3&this.flags}setHeight(t,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(t.heightChanged=!0),this.height=e)}replace(t,e,i){return eP.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,s){let o=this;for(let n=s.length-1;n>=0;n--){let{fromA:r,toA:l,fromB:h,toB:a}=s[n],c=o.lineAt(r,eN.ByPosNoHeight,e,0,0),d=c.to>=l?c:o.lineAt(l,eN.ByPosNoHeight,e,0,0);for(a+=d.to-l,l=d.to;n>0&&c.from<=s[n-1].toA;)r=s[n-1].fromA,h=s[n-1].fromB,n--,r2*o){let n=t[e-1];n.break?t.splice(--e,1,n.left,null,n.right):t.splice(--e,1,n.left,n.right),i+=1+n.break,s-=n.size}else if(o>2*s){let r=t[i];r.break?t.splice(i,1,r.left,null,r.right):t.splice(i,1,r.left,r.right),i+=2+r.break,o-=r.size}else break}else if(s=o&&n(this.blockAt(0,i,s,o))}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more&&this.setHeight(t,s.heights[s.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class ez extends eW{constructor(t,e){super(t,e,to.Text),this.collapsed=0,this.widgetHeight=0}replace(t,e,i){let s=i[0];return 1==i.length&&(s instanceof ez||s instanceof eF&&4&s.flags)&&10>Math.abs(this.length-s.length)?(s instanceof eF?s=new ez(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):eP.of(i)}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more?this.setHeight(t,s.heights[s.index++]):(i||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class eF extends eP{constructor(t){super(t,0)}lines(t,e){let i=t.lineAt(e).number,s=t.lineAt(e+this.length).number;return{firstLine:i,lastLine:s,lineHeight:this.height/(s-i+1)}}blockAt(t,e,i,s){let{firstLine:o,lastLine:n,lineHeight:r}=this.lines(e,s),l=Math.max(0,Math.min(n-o,Math.floor((t-i)/r))),{from:h,length:a}=e.line(o+l);return new eH(h,a,i+r*l,r,to.Text)}lineAt(t,e,i,s,o){if(e==eN.ByHeight)return this.blockAt(t,i,s,o);if(e==eN.ByPosNoHeight){let{from:n,to:r}=i.lineAt(t);return new eH(n,r-n,0,0,to.Text)}let{firstLine:l,lineHeight:h}=this.lines(i,o),{from:a,length:c,number:d}=i.lineAt(t);return new eH(a,c,s+h*(d-l),h,to.Text)}forEachLine(t,e,i,s,o,n){let{firstLine:r,lineHeight:l}=this.lines(i,o);for(let h=Math.max(t,o),a=Math.min(o+this.length,e);h<=a;){let c=i.lineAt(h);h==t&&(s+=l*(c.number-r)),n(new eH(c.from,c.length,s,l,to.Text)),s+=l,h=c.to+1}}replace(t,e,i){let s=this.length-e;if(s>0){let o=i[i.length-1];o instanceof eF?i[i.length-1]=new eF(o.length+s):i.push(null,new eF(s-1))}if(t>0){let n=i[0];n instanceof eF?i[0]=new eF(t+n.length):i.unshift(new eF(t-1),null)}return eP.of(i)}decomposeLeft(t,e){e.push(new eF(t-1),null)}decomposeRight(t,e){e.push(null,new eF(this.length-t-1))}updateHeight(t,e=0,i=!1,s){let o=e+this.length;if(s&&s.from<=e+this.length&&s.more){let n=[],r=Math.max(e,s.from),l=-1,h=t.heightChanged;for(s.from>e&&n.push(new eF(s.from-e-1).updateHeight(t,e));r<=o&&s.more;){let a=t.doc.lineAt(r).length;n.length&&n.push(null);let c=s.heights[s.index++];-1==l?l=c:Math.abs(c-l)>=.001&&(l=-2);let d=new ez(a,c);d.outdated=!1,n.push(d),r+=a+1}r<=o&&n.push(null,new eF(o-r).updateHeight(t,r));let u=eP.of(n);return t.heightChanged=h||l<0||Math.abs(u.height-this.height)>=.001||Math.abs(l-this.lines(t.doc,e).lineHeight)>=.001,u}return(i||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class eI extends eP{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0)),this.left=t,this.right=i,this.size=t.size+i.size}get break(){return 1&this.flags}blockAt(t,e,i,s){let o=i+this.left.height;return tr))return h;let a=e==eN.ByPosNoHeight?eN.ByPosNoHeight:eN.ByPos;return l?h.join(this.right.lineAt(r,a,i,n,r)):this.left.lineAt(r,a,i,s,o).join(h)}forEachLine(t,e,i,s,o,n){let r=s+this.left.height,l=o+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,e,i,r,l,n);else{let h=this.lineAt(l,eN.ByPos,i,s,o);t=t&&h.from<=e&&n(h),e>h.to&&this.right.forEachLine(h.to+1,e,i,r,l,n)}}replace(t,e,i){let s=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-s,e-s,i));let o=[];t>0&&this.decomposeLeft(t,o);let n=o.length;for(let r of i)o.push(r);if(t>0&&eq(o,n-1),e=++i&&e.push(null),t>i&&this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,s=i+this.break;if(t>=s)return this.right.decomposeRight(t-s,e);t2*e.size||e.size>2*t.size?eP.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,i=!1,s){let{left:o,right:n}=this,r=e+o.length+this.break,l=null;return(s&&s.from<=e+o.length&&s.more?l=o=o.updateHeight(t,e,i,s):o.updateHeight(t,e,i),s&&s.from<=r+n.length&&s.more?l=n=n.updateHeight(t,r,i,s):n.updateHeight(t,r,i),l)?this.balanced(o,n):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function eq(t,e){let i,s;null==t[e]&&(i=t[e-1])instanceof eF&&(s=t[e+1])instanceof eF&&t.splice(e-1,3,new eF(i.length+1+s.length))}class ej{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let i=Math.min(e,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof ez?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new ez(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,i){if(t=5)&&this.addLineDeco(s,o)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&this.nodes.push(new ez(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let i=new eF(e-t);return this.oracle.doc.lineAt(t).to==e&&(i.flags|=4),i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof ez)return t;let e=new ez(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine(),t.type!=to.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,t.type!=to.WidgetBefore&&(this.covering=t)}addLineDeco(t,e){let i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,t),this.writtenTo=this.pos=this.pos+e}finish(t){let e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof ez||this.isCovered?(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&"visible"!=d.overflow){let u=c.getBoundingClientRect();n=Math.max(n,u.left),r=Math.min(r,u.right),l=Math.max(l,u.top),h=a==t.parentNode?u.bottom:Math.min(h,u.bottom)}a="absolute"==d.position||"fixed"==d.position?c.offsetParent:c.parentNode}else if(11==a.nodeType)a=a.host;else break;return{left:n-i.left,right:Math.max(n,r)-i.left,top:l-(i.top+e),bottom:Math.max(l,h)-(i.top+e)}}function eG(t,e){let i=t.getBoundingClientRect();return{left:0,right:i.right-i.left,top:e,bottom:i.bottom-(i.top+e)}}class eX{constructor(t,e,i){this.from=t,this.to=e,this.size=i}static same(t,e){if(t.length!=e.length)return!1;for(let i=0;i"function"!=typeof t&&"cm-lineWrapping"==t.class);this.heightOracle=new eL(e),this.stateDeco=t.facet(tV).filter(t=>"function"!=typeof t),this.heightMap=eP.empty().applyChanges(this.stateDeco,l.xv.empty,this.heightOracle.setDoc(t.doc),[new tW(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=tn.set(this.lineGaps.map(t=>t.draw(!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let s=i?e.head:e.anchor;if(!t.some(({from:t,to:e})=>s>=t&&s<=e)){let{from:o,to:n}=this.lineBlockAt(s);t.push(new eY(o,n))}}this.viewports=t.sort((t,e)=>t.from-e.from),this.scaler=this.heightMap.height<=7e6?eJ:new e0(this.heightOracle.doc,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,t=>{this.viewportLines.push(1==this.scaler.scale?t:e1(t,this.scaler))})}update(t,e=null){var i,s;let o;this.state=t.state;let n=this.stateDeco;this.stateDeco=this.state.facet(tV).filter(t=>"function"!=typeof t);let r=t.changedRanges,h=tW.extendWithRanges(r,(i=this.stateDeco,s=t?t.changes:l.as.empty(this.state.doc.length),o=new eK,l.Xs.compare(n,i,s,o,0),o.changes)),a=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),h),this.heightMap.height!=a&&(t.flags|=2);let c=h.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.headc.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,e));let d=!t.changes.empty||2&t.flags||c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,this.updateForViewport(),d&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(tM)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e),s=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?tF.RTL:tF.LTR;let n=this.heightOracle.mustRefreshForWrapping(o),r=n||this.mustMeasureContent||this.contentDOMHeight!=e.clientHeight;this.contentDOMHeight=e.clientHeight,this.mustMeasureContent=!1;let h=0,a=0,c=parseInt(i.paddingTop)||0,d=parseInt(i.paddingBottom)||0;(this.paddingTop!=c||this.paddingBottom!=d)&&(this.paddingTop=c,this.paddingBottom=d,h|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(s.lineWrapping&&(r=!0),this.editorWidth=t.scrollDOM.clientWidth,h|=8);let u=(this.printing?eG:e$)(e,this.paddingTop),f=u.top-this.pixelViewport.top,p=u.bottom-this.pixelViewport.bottom;this.pixelViewport=u;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(r=!0)),!this.inView&&!this.scrollTarget)return 0;let g=e.clientWidth;if((this.contentDOMWidth!=g||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=g,this.editorHeight=t.scrollDOM.clientHeight,h|=8),r){let v=t.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(v)&&(n=!0),n||s.lineWrapping&&Math.abs(g-this.contentDOMWidth)>s.charWidth){let{lineHeight:w,charWidth:b}=t.docView.measureTextSize();(n=w>0&&s.refresh(o,w,b,g/b,v))&&(t.docView.minWidth=0,h|=8)}for(let y of(f>0&&p>0?a=Math.max(f,p):f<0&&p<0&&(a=Math.min(f,p)),s.heightChanged=!1,this.viewports)){let x=y.from==this.viewport.from?v:t.docView.measureVisibleLineHeights(y);this.heightMap=(n?eP.empty().applyChanges(this.stateDeco,l.xv.empty,this.heightOracle,[new tW(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(s,0,n,new eV(y.from,x))}s.heightChanged&&(h|=2)}let S=!this.viewportIsAppropriate(this.viewport,a)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return S&&(this.viewport=this.getViewport(a,this.scrollTarget)),this.updateForViewport(),(2&h||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(n?[]:this.lineGaps,t)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),s=this.heightMap,o=this.state.doc,{visibleTop:n,visibleBottom:r}=this,l=new eY(s.lineAt(n-1e3*i,eN.ByHeight,o,0,0).from,s.lineAt(r+(1-i)*1e3,eN.ByHeight,o,0,0).to);if(e){let{head:h}=e.range;if(hl.to){let a=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),c=s.lineAt(h,eN.ByPos,o,0,0),d;d="center"==e.y?(c.top+c.bottom)/2-a/2:"start"==e.y||"nearest"==e.y&&h=r+Math.max(10,Math.min(i,250)))&&s>n-2e3&&o>1,n=s<<1;if(this.defaultTextDirection!=tF.LTR&&!i)return[];let r=[],h=(s,n,a,c)=>{if(n-ss&&ft.from>=a.from&&t.to<=a.to&&Math.abs(t.from-s)t.frome));if(!p){if(nt.from<=n&&t.to>=n)){let m=e.moveToLineBoundary(l.jT.cursor(n),!1,!0).head;m>s&&(n=m)}p=new eX(s,n,this.gapSize(a,s,n,c))}r.push(p)};for(let a of this.viewportLines){let c,d;if(a.lengtho&&(s.push({from:o,to:t}),n+=t-o),o=e}},20),oa.from&&h(a.from,c,a,u),dt.draw(this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let e=[];l.Xs.spans(t,this.viewport.from,this.viewport.to,{span(t,i){e.push({from:t,to:i})},point(){}},20);let i=e.length!=this.visibleRanges.length||this.visibleRanges.some((t,i)=>t.from!=e[i].from||t.to!=e[i].to);return this.visibleRanges=e,i?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||e1(this.heightMap.lineAt(t,eN.ByPos,this.state.doc,0,0),this.scaler)}lineBlockAtHeight(t){return e1(this.heightMap.lineAt(this.scaler.fromDOM(t),eN.ByHeight,this.state.doc,0,0),this.scaler)}elementAtHeight(t){return e1(this.heightMap.blockAt(this.scaler.fromDOM(t),this.state.doc,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class eY{constructor(t,e){this.from=t,this.to=e}}function eQ({total:t,ranges:e},i){if(i<=0)return e[0].from;if(i>=1)return e[e.length-1].to;let s=Math.floor(t*i);for(let o=0;;o++){let{from:n,to:r}=e[o],l=r-n;if(s<=l)return n+s;s-=l}}function eZ(t,e){let i=0;for(let{from:s,to:o}of t.ranges){if(e<=o){i+=e-s;break}i+=o-s}return i/t.total}let eJ={toDOM:t=>t,fromDOM:t=>t,scale:1};class e0{constructor(t,e,i){let s=0,o=0,n=0;for(let r of(this.viewports=i.map(({from:i,to:o})=>{let n=e.lineAt(i,eN.ByPos,t,0,0).top,r=e.lineAt(o,eN.ByPos,t,0,0).bottom;return s+=r-n,{from:i,to:o,top:n,bottom:r,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(e.height-s),this.viewports))r.domTop=n+(r.top-o)*this.scale,n=r.domBottom=r.domTop+(r.bottom-r.top),o=r.bottom}toDOM(t){for(let e=0,i=0,s=0;;e++){let o=ee1(t,e)):t.type)}let e2=l.r$.define({combine:t=>t.join(" ")}),e8=l.r$.define({combine:t=>t.indexOf(!0)>-1}),e3=h.V.newName(),e9=h.V.newName(),e5=h.V.newName(),e4={"&light":"."+e9,"&dark":"."+e5};function e6(t,e,i){return new h.V(e,{finish:e=>/&/.test(e)?e.replace(/&\w*/,e=>{if("&"==e)return t;if(!i||!i[e])throw RangeError(`Unsupported selector: ${e}`);return i[e]}):t+" "+e})}let e7=e6("."+e3,{"&.cm-editor":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},e4);class it{constructor(t,e,i,s){this.typeOver=s,this.bounds=null,this.text="";let{impreciseHead:o,impreciseAnchor:n}=t.docView;if(t.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let r=o||n?[]:function(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:n}=t.observer.selectionRange;return i&&(e.push(new t3(i,s)),(o!=i||n!=s)&&e.push(new t3(o,n))),e}(t),h=new t2(r,t.state);h.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=h.text,this.newSel=function(t,e){if(0==t.length)return null;let i=t[0].pos,s=2==t.length?t[1].pos:i;return i>-1&&s>-1?l.jT.single(i+e,s+e):null}(r,this.bounds.from)}else{let a=t.observer.selectionRange,c=o&&o.node==a.focusNode&&o.offset==a.focusOffset||!d(t.contentDOM,a.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(a.focusNode,a.focusOffset),u=n&&n.node==a.anchorNode&&n.offset==a.anchorOffset||!d(t.contentDOM,a.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(a.anchorNode,a.anchorOffset);this.newSel=l.jT.single(u,c)}}}function ie(t,e){let i;let{newSel:s}=e,o=t.state.selection.main;if(e.bounds){let{from:n,to:r}=e.bounds,h=o.from,a=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||K.android&&e.text.length0&&l>0&&t.charCodeAt(r-1)==e.charCodeAt(l-1);)r--,l--;if("end"==s){let h=Math.max(0,n-Math.min(r,l));i-=r+h-n}if(r=r?n-i:0;n-=a,l=n+(l-r),r=n}else if(l=l?n-i:0;n-=c,r=n+(r-l),l=n}return{from:n,toA:r,toB:l}}(t.state.doc.sliceString(n,r,"￿"),e.text,h-n,a);c&&(K.chrome&&13==t.inputState.lastKeyCode&&c.toB==c.from+2&&"￿￿"==e.text.slice(c.from,c.toB)&&c.toB--,i={from:n+c.from,to:n+c.toA,insert:l.xv.of(e.text.slice(c.from,c.toB).split("￿"))})}else s&&(!t.hasFocus||!t.state.facet(tD)||s.main.eq(o))&&(s=null);if(!i&&!s)return!1;if(!i&&e.typeOver&&!o.empty&&s&&s.main.empty?i={from:o.from,to:o.to,insert:t.state.doc.slice(o.from,o.to)}:i&&i.from>=o.from&&i.to<=o.to&&(i.from!=o.from||i.to!=o.to)&&o.to-o.from-(i.to-i.from)<=4?i={from:o.from,to:o.to,insert:t.state.doc.slice(o.from,i.from).append(i.insert).append(t.state.doc.slice(i.to,o.to))}:(K.mac||K.android)&&i&&i.from==i.to&&i.from==o.head-1&&/^\. ?$/.test(i.insert.toString())?(s&&2==i.insert.length&&(s=l.jT.single(s.main.anchor-1,s.main.head-1)),i={from:o.from,to:o.to,insert:l.xv.of([" "])}):K.chrome&&i&&i.from==i.to&&i.from==o.head&&"\n "==i.insert.toString()&&t.lineWrapping&&(s&&(s=l.jT.single(s.main.anchor-1,s.main.head-1)),i={from:o.from,to:o.to,insert:l.xv.of([" "])}),i){let d,u=t.state;if(K.ios&&t.inputState.flushIOSKey(t)||K.android&&(i.from==o.from&&i.to==o.to&&1==i.insert.length&&2==i.insert.lines&&k(t.contentDOM,"Enter",13)||i.from==o.from-1&&i.to==o.to&&0==i.insert.length&&k(t.contentDOM,"Backspace",8)||i.from==o.from&&i.to==o.to+1&&0==i.insert.length&&k(t.contentDOM,"Delete",46)))return!0;let f=i.insert.toString();if(t.state.facet(tx).some(e=>e(t,i.from,i.to,f)))return!0;if(t.inputState.composing>=0&&t.inputState.composing++,i.from>=o.from&&i.to<=o.to&&i.to-i.from>=(o.to-o.from)/3&&(!s||s.main.empty&&s.main.from==i.from+i.insert.length)&&t.inputState.composing<0){let p=o.fromi.to?u.sliceDoc(i.to,o.to):"";d=u.replaceSelection(t.state.toText(p+i.insert.sliceString(0,void 0,t.state.lineBreak)+m))}else{let g=u.changes(i),v=s&&!u.selection.main.eq(s.main)&&s.main.to<=g.newLength?s.main:void 0;if(u.selection.ranges.length>1&&t.inputState.composing>=0&&i.to<=o.to&&i.to>=o.to-10){let w=t.state.sliceDoc(i.from,i.to),b=t4(t)||t.state.doc.lineAt(o.head),y=o.to-i.to,x=o.to-o.from;d=u.changeByRange(e=>{if(e.from==o.from&&e.to==o.to)return{changes:g,range:v||e.map(g)};let s=e.to-y,n=s-w.length;if(e.to-e.from!=x||t.state.sliceDoc(n,s)!=w||b&&e.to>=b.from&&e.from<=b.to)return{range:e};let r=u.changes({from:n,to:s,insert:i.insert}),h=e.to-o.to;return{changes:r,range:v?l.jT.range(Math.max(0,v.anchor+h),Math.max(0,v.head+h)):e.map(r)}})}else d={changes:g,selection:v&&u.selection.replaceRange(v)}}let S="input.type";return t.composing&&(S+=".compose",t.inputState.compositionFirstChange&&(S+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(d,{scrollIntoView:!0,userEvent:S}),!0}if(!s||s.main.eq(o))return!1;{let M=!1,C="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(M=!0),C=t.inputState.lastSelectionOrigin),t.dispatch({selection:s,scrollIntoView:M,userEvent:C}),!0}}let ii={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},is=K.ie&&K.ie_version<=11;class io{constructor(t){this.view=t,this.active=!1,this.selectionRange=new y,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(e=>{for(let i of e)this.queue.push(i);(K.ie&&K.ie_version<=11||K.ios&&t.composing)&&e.some(t=>"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length)?this.flushSoon():this.flush()}),is&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var t;(null===(t=this.view.docView)||void 0===t?void 0:t.lastUpdate)this.view.requestMeasure()),this.resizeContent.observe(t.contentDOM)),this.addWindowListeners(this.win=t.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runScrollHandlers(this.view,t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((e,i)=>e!=t[i]))){for(let e of(this.gapIntersection.disconnect(),t))this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(tD)?i.root.activeElement!=this.dom:!u(i.dom,s))return;let o=s.anchorNode&&i.docView.nearest(s.anchorNode);if(o&&o.ignoreEvent(t)){e||(this.selectionChanged=!1);return}(K.ie&&K.ie_version<=11||K.android&&K.chrome)&&!i.state.selection.main.empty&&s.focusNode&&p(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=K.safari&&11==t.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom&&function(t){let e=null;function i(t){t.preventDefault(),t.stopImmediatePropagation(),e=t.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",i,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",i,!0),!e)return null;let s=e.startContainer,o=e.startOffset,n=e.endContainer,r=e.endOffset,l=t.docView.domAtPos(t.state.selection.main.anchor);return p(l.node,l.offset,n,r)&&([s,o,n,r]=[n,r,s,o]),{anchorNode:s,anchorOffset:o,focusNode:n,focusOffset:r}}(this.view)||c(t.root);if(!e||this.selectionRange.eq(e))return!1;let i=u(this.dom,e);return i&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let t=this.delayedAndroidKey;t&&(this.clearDelayedAndroidKey(),!this.flush()&&t.force&&k(this.dom,t.key,t.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(s)}this.delayedAndroidKey&&"Enter"!=t||(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}processRecords(){let t=this.queue;for(let e of this.observer.takeRecords())t.push(e);t.length&&(this.queue=[]);let i=-1,s=-1,o=!1;for(let n of t){let r=this.readMutation(n);r&&(r.typeOver&&(o=!0),-1==i?{from:i,to:s}=r:(i=Math.min(r.from,i),s=Math.max(r.to,s)))}return{from:i,to:s,typeOver:o}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords(),s=this.selectionChanged&&u(this.dom,this.selectionRange);return t<0&&!s?null:(t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new it(this.view,t,e,i))}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return!1;let i=this.view.state,s=ie(this.view,e);return this.view.state==i&&this.view.update([]),s}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty("attributes"==t.type),"attributes"==t.type&&(e.dirty|=4),"childList"==t.type){let i=ir(e,t.previousSibling||t.target.previousSibling,-1),s=ir(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:s?e.posBefore(s):e.posAtEnd,typeOver:!1}}return"characterData"==t.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,e,i,s;for(let o of(this.stop(),null===(t=this.intersection)||void 0===t||t.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),null===(s=this.resizeContent)||void 0===s||s.disconnect(),this.scrollTargets))o.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function ir(t,e,i){for(;e;){let s=T.get(e);if(s&&s.parent==t)return s;let o=e.parentNode;e=o!=t.dom?o:i>0?e.nextSibling:e.previousSibling}return null}class il{constructor(t={}){for(let e of(this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=t.dispatch||(t=>this.update([t])),this.dispatch=this.dispatch.bind(this),this._root=t.root||function(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(t.parent)||document,this.viewState=new eU(t.state||l.yy.create(t)),this.plugins=this.state.facet(tO).map(t=>new tE(t)),this.plugins))e.update(this);this.observer=new io(this),this.inputState=new ea(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new t9(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),t.parent&&t.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}dispatch(...t){this._dispatch(1==t.length&&t[0]instanceof l.YW?t[0]:this.state.update(...t))}update(t){if(0!=this.updateState)throw Error("Calls to EditorView.update are not allowed while an update is in progress");let e=!1,i=!1,s,o=this.state;for(let n of t){if(n.startState!=o)throw RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=n.state}if(this.destroyed){this.viewState.state=o;return}let r=this.observer.delayedAndroidKey,h=null;if(r?(this.observer.clearDelayedAndroidKey(),((h=this.observer.readChange())&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(h=null)):this.observer.clear(),o.facet(l.yy.phrases)!=this.state.facet(l.yy.phrases))return this.setState(o);s=tz.create(this,o,t);let a=this.viewState.scrollTarget;try{for(let c of(this.updateState=2,t)){if(a&&(a=a.map(c.changes)),c.scrollIntoView){let{main:d}=c.state.selection;a=new tk(d.empty?d:l.jT.cursor(d.head,d.head>d.anchor?-1:1))}for(let u of c.effects)u.is(tC)&&(a=u.value)}this.viewState.update(s,a),this.bidiCache=ic.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),e=this.docView.update(s),this.state.facet(tP)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(e,t.some(t=>t.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(e2)!=s.state.facet(e2)&&(this.viewState.mustMeasureContent=!0),(e||i||a||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!s.empty)for(let f of this.state.facet(ty))f(s);h&&!ie(this,h)&&r.force&&k(this.contentDOM,r.key,r.keyCode)}setState(t){if(0!=this.updateState)throw Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);for(let s of(this.viewState=new eU(t),this.plugins=t.facet(tO).map(t=>new tE(t)),this.pluginMap.clear(),this.plugins))s.update(this);this.docView=new t9(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(tO),i=t.state.facet(tO);if(e!=i){let s=[];for(let o of i){let n=e.indexOf(o);if(n<0)s.push(new tE(o));else{let r=this.plugins[n];r.mustUpdate=t,s.push(r)}}for(let l of this.plugins)l.mustUpdate!=t&&l.destroy(this);this.plugins=s,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let h of this.plugins)h.mustUpdate=t;for(let a=0;a-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,t&&this.observer.forceFlush();let e=null,{scrollHeight:i,scrollTop:s,clientHeight:o}=this.scrollDOM,n=s>i-o-4?i:s;try{for(let r=0;;r++){this.updateState=1;let l=this.viewport,h=this.viewState.lineBlockAtHeight(n),a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(r>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];4&a||([this.measureRequests,c]=[c,this.measureRequests]);let d=c.map(t=>{try{return t.read(this)}catch(e){return tA(this.state,e),ia}}),u=tz.create(this,this.state,[]),f=!1,p=!1;u.flags|=a,e?e.flags|=a:e=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),f=this.docView.update(u));for(let m=0;m1||w<-1)&&(this.scrollDOM.scrollTop+=w,p=!0)}}if(f&&this.docView.updateSelection(!0),this.viewport.from==l.from&&this.viewport.to==l.to&&!p&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let b of this.state.facet(ty))b(e)}get themeClasses(){return e3+" "+(this.state.facet(e8)?e5:e9)+" "+this.state.facet(e2)}updateAttrs(){let t=id(this,tB,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(tD)?"true":"false",class:"cm-content",style:`${K.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),id(this,tL,e);let i=this.observer.ignore(()=>{let i=ti(this.contentDOM,this.contentAttrs,e),s=ti(this.dom,this.editorAttrs,t);return i||s});return this.editorAttrs=t,this.contentAttrs=e,i}showAnnouncements(t){let e=!0;for(let i of t)for(let s of i.effects)s.is(il.announce)&&(e&&(this.announceDOM.textContent=""),e=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=s.value)}mountStyles(){this.styleModules=this.state.facet(tP),h.V.mount(this.root,this.styleModules.concat(e7).reverse())}readMeasured(){if(2==this.updateState)throw Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(null!=t.key){for(let e=0;ee.spec==t)||null),e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return eh(this,t,el(this,t,e,i))}moveByGroup(t,e){return eh(this,t,el(this,t,e,e=>{var i;let s,o;return i=t.head,o=(s=this.state.charCategorizer(i))(e),t=>{let e=s(t);return o==l.D0.Space&&(o=e),o==e}}))}moveToLineBoundary(t,e,i=!0){return function(t,e,i,s){let o=t.state.doc.lineAt(e.head),n=s&&t.lineWrapping?t.coordsAtPos(e.assoc<0&&e.head>o.from?e.head-1:e.head):null;if(n){let r=t.dom.getBoundingClientRect(),h=t.textDirectionAt(o.from),a=t.posAtCoords({x:i==(h==tF.LTR)?r.right-1:r.left+1,y:(n.top+n.bottom)/2});if(null!=a)return l.jT.cursor(a,i?-1:1)}let c=td.find(t.docView,e.head),d=c?i?c.posAtEnd:c.posAtStart:i?o.to:o.from;return l.jT.cursor(d,i?-1:1)}(this,t,e,i)}moveVertically(t,e,i){return eh(this,t,function(t,e,i,s){let o=e.head,n=i?1:-1;if(o==(i?t.state.doc.length:0))return l.jT.cursor(o,e.assoc);let r=e.goalColumn,h,a=t.contentDOM.getBoundingClientRect(),c=t.coordsAtPos(o),d=t.documentTop;if(c)null==r&&(r=c.left-a.left),h=n<0?c.top:c.bottom;else{let u=t.viewState.lineBlockAt(o);null==r&&(r=Math.min(a.right-a.left,t.defaultCharacterWidth*(o-u.from))),h=(n<0?u.top:u.bottom)+d}let f=a.left+r,p=null!=s?s:t.defaultLineHeight>>1;for(let m=0;;m+=10){let g=h+(p+m)*n,v=en(t,{x:f,y:g},!1,n);if(ga.bottom||(n<0?vo))return l.jT.cursor(v,e.assoc,void 0,r)}}(this,t,e,i))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=!0){return this.readMeasured(),en(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let i=this.docView.coordsAt(t,e);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(t),o=this.bidiSpans(s);return b(i,o[tZ.find(o,t-s.from,-1,e)].dir==tF.LTR==e>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(tS)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>ih)return t0(t.length);let e=this.textDirectionAt(t.from);for(let i of this.bidiCache)if(i.from==t.from&&i.dir==e)return i.order;let s=function(t,e){let i=t.length,s=e==tI?1:2,o=e==tI?2:1;if(!t||1==s&&!tQ.test(t))return t0(i);for(let n=0,r=s,l=s;n=0;M-=3)if(tX[M+1]==-x){let k=tX[M+2],C=2&k?s:4&k?1&k?o:s:0;C&&(tJ[v]=tJ[tX[M]]=C),w=M;break}}else if(189==tX.length)break;else tX[w++]=v,tX[w++]=y,tX[w++]=b}else if(2==(S=tJ[v])||1==S){let A=S==s;b=A?0:1;for(let D=w-3;D>=0;D-=3){let T=tX[D+2];if(2&T)break;if(A)tX[D+2]|=2;else{if(4&T)break;tX[D+2]|=4}}}for(let O=0;ON;){let z=W,F=2!=tJ[--W];for(;W>N&&F==(2!=tJ[W-1]);)W--;V.push(new tZ(W,z,F?2:1))}else V.push(new tZ(N,H,0))}else for(let I=0;IDate.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{S(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((9==t.nodeType?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,e={}){return tC.of(new tk("number"==typeof t?l.jT.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}static domEventHandlers(t){return tR.define(()=>({}),{eventHandlers:t})}static theme(t,e){let i=h.V.newName(),s=[e2.of(i),tP.of(e6(`.${i}`,t))];return e&&e.dark&&s.push(e8.of(!0)),s}static baseTheme(t){return l.Wl.lowest(tP.of(e6("."+e3,t,e4)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content"),s=i&&T.get(i)||T.get(t);return(null===(e=null==s?void 0:s.rootView)||void 0===e?void 0:e.view)||null}}il.styleModule=tP,il.inputHandler=tx,il.perLineTextDirection=tS,il.exceptionSink=tb,il.updateListener=ty,il.editable=tD,il.mouseSelectionStyle=tw,il.dragMovesSelection=tv,il.clickAddsSelectionRange=tg,il.decorations=tV,il.atomicRanges=tH,il.scrollMargins=tN,il.darkTheme=e8,il.contentAttributes=tL,il.editorAttributes=tB,il.lineWrapping=il.contentAttributes.of({class:"cm-lineWrapping"}),il.announce=l.Py.define();let ih=4096,ia={};class ic{constructor(t,e,i,s){this.from=t,this.to=e,this.dir=i,this.order=s}static update(t,e){if(e.empty)return t;let i=[],s=t.length?t[t.length-1].dir:tF.LTR;for(let o=Math.max(0,t.length-10);o=0;o--){let n=s[o],r="function"==typeof n?n(t):n;r&&tt(r,i)}return i}let iu=K.mac?"mac":K.windows?"win":K.linux?"linux":"key";function ip(t,e,i){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),!1!==i&&e.shiftKey&&(t="Shift-"+t),t}let im=l.Wl.default(il.domEventHandlers({keydown:(t,e)=>ix(iw(e.state),t,e,"editor")})),ig=l.r$.define({enables:im}),iv=new WeakMap;function iw(t){let e=t.facet(ig),i=iv.get(e);return i||iv.set(e,i=function(t,e=iu){let i=Object.create(null),s=Object.create(null),o=(t,e)=>{let i=s[t];if(null==i)s[t]=e;else if(i!=e)throw Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")},n=(t,s,n,r)=>{var l,h;let a=i[t]||(i[t]=Object.create(null)),c=s.split(/ (?!$)/).map(t=>(function(t,e){let i,s,o,n;let r=t.split(/-(?!$)/),l=r[r.length-1];"Space"==l&&(l=" ");for(let h=0;h{let i=iy={view:e,prefix:u,scope:t};return setTimeout(()=>{iy==i&&(iy=null)},4e3),!0}]})}let f=c.join(" ");o(f,!1);let p=a[f]||(a[f]={preventDefault:!1,run:(null===(h=null===(l=a._any)||void 0===l?void 0:l.run)||void 0===h?void 0:h.slice())||[]});n&&p.run.push(n),r&&(p.preventDefault=!0)};for(let r of t){let l=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let h of l){let a=i[h]||(i[h]=Object.create(null));for(let c in a._any||(a._any={preventDefault:!1,run:[]}),a)a[c].run.push(r.any)}let d=r[e]||r.key;if(d)for(let u of l)n(u,d,r.run,r.preventDefault),r.shift&&n(u,"Shift-"+d,r.shift,r.preventDefault)}return i}(e.reduce((t,e)=>t.concat(e),[]))),i}function ib(t,e,i){return ix(iw(t.state),e,t,i)}let iy=null;function ix(t,e,i,s){let o=(0,a.YG)(e),n=(0,l.gm)(o,0),r=(0,l.nZ)(n)==o.length&&" "!=o,h="",c=!1;iy&&iy.view==i&&iy.scope==s&&(h=iy.prefix+" ",(c=0>eu.indexOf(e.keyCode))&&(iy=null));let d=new Set,u=t=>{if(t){for(let s of t.run)if(!d.has(s)&&(d.add(s),s(i,e)))return!0;t.preventDefault&&(c=!0)}return!1},f=t[s],p,m;if(f){if(u(f[h+ip(o,e,!r)]))return!0;if(r&&(e.altKey||e.metaKey||e.ctrlKey)&&(p=a.ue[e.keyCode])&&p!=o){if(u(f[h+ip(p,e,!0)])||e.shiftKey&&(m=a.uY[e.keyCode])!=o&&m!=p&&u(f[h+ip(m,e,!1)]))return!0}else if(r&&e.shiftKey&&u(f[h+ip(o,e,!0)]))return!0;if(u(f._any))return!0}return c}class iS{constructor(t,e,i,s,o){this.className=t,this.left=e,this.top=i,this.width=s,this.height=o}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className==this.className&&(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",null!=this.width&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,i){if(!i.empty)return function(t,e,i){if(i.to<=t.viewport.from||i.from>=t.viewport.to)return[];let s=Math.max(i.from,t.viewport.from),o=Math.min(i.to,t.viewport.to),n=t.textDirection==tF.LTR,r=t.contentDOM,l=r.getBoundingClientRect(),h=iM(t),a=window.getComputedStyle(r.firstChild),c=l.left+parseInt(a.paddingLeft)+Math.min(0,parseInt(a.textIndent)),d=l.right-parseInt(a.paddingRight),u=iC(t,s),f=iC(t,o),p=u.type==to.Text?u:null,m=f.type==to.Text?f:null;if(t.lineWrapping&&(p&&(p=ik(t,s,p)),m&&(m=ik(t,o,m))),p&&m&&p.from==m.from)return y(x(i.from,i.to,p));{let g=p?x(i.from,null,p):S(u,!1),v=m?x(null,i.to,m):S(f,!0),w=[];return(p||u).to<(m||f).from-1?w.push(b(c,g.bottom,d,v.top)):g.bottoma&&f.from=m)break;b>p&&h(Math.max(w,p),null==e&&w<=a,Math.min(b,m),null==i&&b>=u,v.dir)}if((p=g.to+1)>=m)break}return 0==l.length&&h(a,null==e,u,null==i,t.textDirection),{top:o,bottom:r,horizontal:l}}function S(t,e){let i=l.top+(e?t.top:t.bottom);return{top:i,bottom:i,horizontal:[]}}}(t,e,i);{let s=t.coordsAtPos(i.head,i.assoc||1);if(!s)return[];let o=iM(t);return[new iS(e,s.left-o.left,s.top-o.top,null,s.bottom-s.top)]}}}function iM(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==tF.LTR?e.left:e.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:e.top-t.scrollDOM.scrollTop}}function ik(t,e,i){let s=l.jT.cursor(e);return{from:Math.max(i.from,t.moveToLineBoundary(s,!1,!0).from),to:Math.min(i.to,t.moveToLineBoundary(s,!0,!0).from),type:to.Text}}function iC(t,e){let i=t.lineBlockAt(e);if(Array.isArray(i.type)){for(let s of i.type)if(s.to>e||s.to==e&&(s.to==i.to||s.type==to.Text))return s}return i}class iA{constructor(t,e){this.view=t,this.layer=e,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,t)}update(t){t.startState.facet(iD)!=t.state.facet(iD)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&t.view.requestMeasure(this.measureReq)}setOrder(t){let e=0,i=t.facet(iD);for(;e{var i;return i=this.drawn[e],!(t.constructor==i.constructor&&t.eq(i))})){let e=this.dom.firstChild,i=0;for(let s of t)s.update&&e&&s.constructor&&this.drawn[i].constructor&&s.update(e,this.drawn[i])?(e=e.nextSibling,i++):this.dom.insertBefore(s.draw(),e);for(;e;){let o=e.nextSibling;e.remove(),e=o}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}let iD=l.r$.define();function iT(t){return[tR.define(e=>new iA(e,t)),iD.of(t)]}let iO=!K.ios,iR=l.r$.define({combine:t=>(0,l.BO)(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})});function iE(t={}){return[iR.of(t),iL,iH,iP,tM.of(!0)]}function iB(t){return t.startState.facet(iR)!=t.startState.facet(iR)}let iL=iT({above:!0,markers(t){let{state:e}=t,i=e.facet(iR),s=[];for(let o of e.selection.ranges){let n=o==e.selection.main;if(o.empty?!n||iO:i.drawRangeCursor){let r=n?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",h=o.empty?o:l.jT.cursor(o.head,o.head>o.anchor?-1:1);for(let a of iS.forRange(t,r,h))s.push(a)}}return s},update(t,e){t.transactions.some(t=>t.scrollIntoView)&&(e.style.animationName="cm-blink"==e.style.animationName?"cm-blink2":"cm-blink");let i=iB(t);return i&&iV(t.state,e),t.docChanged||t.selectionSet||i},mount(t,e){iV(e.state,t)},class:"cm-cursorLayer"});function iV(t,e){e.style.animationDuration=t.facet(iR).cursorBlinkRate+"ms"}let iH=iT({above:!1,markers:t=>t.state.selection.ranges.map(e=>e.empty?[]:iS.forRange(t,"cm-selectionBackground",e)).reduce((t,e)=>t.concat(e)),update:(t,e)=>t.docChanged||t.selectionSet||t.viewportChanged||iB(t),class:"cm-selectionLayer"}),iN={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};iO&&(iN[".cm-line"].caretColor="transparent !important");let iP=l.Wl.highest(il.theme(iN)),iW=l.Py.define({map:(t,e)=>null==t?null:e.mapPos(t)}),iz=l.QQ.define({create:()=>null,update:(t,e)=>(null!=t&&(t=e.changes.mapPos(t)),e.effects.reduce((t,e)=>e.is(iW)?e.value:t,t))}),iF=tR.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let i=t.state.field(iz);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(iz)!=i||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let t=this.view.state.field(iz),e=null!=t&&this.view.coordsAtPos(t);if(!e)return null;let i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}drawCursor(t){this.cursor&&(t?(this.cursor.style.left=t.left+"px",this.cursor.style.top=t.top+"px",this.cursor.style.height=t.height+"px"):this.cursor.style.left="-100000px")}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(iz)!=t&&this.view.dispatch({effects:iW.of(t)})}},{eventHandlers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function iI(){return[iz,iF]}function iq(t,e,i,s,o){e.lastIndex=0;for(let n=t.iterRange(i,s),r=i,l;!n.next().done;r+=n.value.length)if(!n.lineBreak)for(;l=e.exec(n.value);)o(r+l.index,l)}class ij{constructor(t){let{regexp:e,decoration:i,decorate:s,boundary:o,maxLength:n=1e3}=t;if(!e.global)throw RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,s)this.addMatch=(t,e,i,o)=>s(o,i,i+t[0].length,t,e);else if("function"==typeof i)this.addMatch=(t,e,s,o)=>{let n=i(t,e,s);n&&o(s,s+t[0].length,n)};else if(i)this.addMatch=(t,e,s,o)=>o(s,s+t[0].length,i);else throw RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=n}createDeco(t){let e=new l.f_,i=e.add.bind(e);for(let{from:s,to:o}of function(t,e){let i=t.visibleRanges;if(1==i.length&&i[0].from==t.viewport.from&&i[0].to==t.viewport.to)return i;let s=[];for(let{from:o,to:n}of i)o=Math.max(t.state.doc.lineAt(o).from,o-e),n=Math.min(t.state.doc.lineAt(n).to,n+e),s.length&&s[s.length-1].to>=o?s[s.length-1].to=n:s.push({from:o,to:n});return s}(t,this.maxLength))iq(t.state.doc,this.regexp,s,o,(e,s)=>this.addMatch(s,t,e,i));return e.finish()}updateDeco(t,e){let i=1e9,s=-1;return(t.docChanged&&t.changes.iterChanges((e,o,n,r)=>{r>t.view.viewport.from&&n1e3)?this.createDeco(t.view):s>-1?this.updateRange(t.view,e.map(t.changes),i,s):e}updateRange(t,e,i,s){for(let o of t.visibleRanges){let n=Math.max(o.from,i),r=Math.min(o.to,s);if(r>n){let l=t.state.doc.lineAt(n),h=l.tol.from;n--)if(this.boundary.test(l.text[n-1-l.from])){a=n;break}for(;rd.push(i.range(t,e));if(l==h)for(this.regexp.lastIndex=a-l.from;(u=this.regexp.exec(l.text))&&u.indexthis.addMatch(i,t,e,f));e=e.update({filterFrom:a,filterTo:c,filter:(t,e)=>tc,add:d})}}return e}}let iK=null!=/x/.unicode?"gu":"g",i$=RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]",iK),iG={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},iX=null,i_=l.r$.define({combine(t){let e=(0,l.BO)(t,{render:null,specialChars:i$,addSpecialChars:null});return(e.replaceTabs=!function(){var t;if(null==iX&&"undefined"!=typeof document&&document.body){let e=document.body.style;iX=(null!==(t=e.tabSize)&&void 0!==t?t:e.MozTabSize)!=null}return iX||!1}())&&(e.specialChars=RegExp(" |"+e.specialChars.source,iK)),e.addSpecialChars&&(e.specialChars=RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,iK)),e}});function iU(t={}){return[i_.of(t),iY||(iY=tR.fromClass(class{constructor(t){this.view=t,this.decorations=tn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(i_)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new ij({regexp:t.specialChars,decoration:(e,i,s)=>{let{doc:o}=i.state,n=(0,l.gm)(e[0],0);if(9==n){let r=o.lineAt(s),h=i.state.tabSize,a=(0,l.IS)(r.text,h,s-r.from);return tn.replace({widget:new iZ((h-a%h)*this.view.defaultCharacterWidth)})}return this.decorationCache[n]||(this.decorationCache[n]=tn.replace({widget:new iQ(t,n)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(i_);t.startState.facet(i_)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))]}let iY=null;class iQ extends ts{constructor(t,e){super(),this.options=t,this.code=e}eq(t){return t.code==this.code}toDOM(t){var e;let i=(e=this.code)>=32?"•":10==e?"␤":String.fromCharCode(9216+e),s=t.state.phrase("Control character")+" "+(iG[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,s,i);if(o)return o;let n=document.createElement("span");return n.textContent=i,n.title=s,n.setAttribute("aria-label",s),n.className="cm-specialChar",n}ignoreEvent(){return!1}}class iZ extends ts{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}function iJ(){return i1}let i0=tn.line({class:"cm-activeLine"}),i1=tR.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,i=[];for(let s of t.state.selection.ranges){let o=t.lineBlockAt(s.head);o.from>e&&(i.push(i0.range(o.from)),e=o.from)}return tn.set(i)}},{decorations:t=>t.decorations});class i2 extends ts{constructor(t){super(),this.content=t}toDOM(){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?t.setAttribute("aria-label","placeholder "+this.content):t.setAttribute("aria-hidden","true"),t}ignoreEvent(){return!1}}function i8(t){return tR.fromClass(class{constructor(e){this.view=e,this.placeholder=tn.set([tn.widget({widget:new i2(t),side:1}).range(0)])}get decorations(){return this.view.state.doc.length?tn.none:this.placeholder}},{decorations:t=>t.decorations})}function i3(t,e){var i;let s,o=t.posAtCoords({x:e.clientX,y:e.clientY},!1),n=t.state.doc.lineAt(o),r=o-n.from,h=r>2e3?-1:r==n.length?(i=e.clientX,(s=t.coordsAtPos(t.viewport.from))?Math.round(Math.abs((s.left-i)/t.defaultCharacterWidth)):-1):(0,l.IS)(n.text,t.state.tabSize,o-n.from);return{line:n.number,col:h,off:r}}function i9(t){let e=(null==t?void 0:t.eventFilter)||(t=>t.altKey&&0==t.button);return il.mouseSelectionStyle.of((t,i)=>{let s,o;return e(i)?(s=i3(t,i),o=t.state.selection,s?{update(t){if(t.docChanged){let e=t.changes.mapPos(t.startState.doc.line(s.line).from),i=t.state.doc.lineAt(e);s={line:i.number,col:s.col,off:Math.min(s.off,i.length)},o=o.map(t.changes)}},get(e,i,n){let r=i3(t,e);if(!r)return o;let h=function(t,e,i){let s=Math.min(e.line,i.line),o=Math.max(e.line,i.line),n=[];if(e.off>2e3||i.off>2e3||e.col<0||i.col<0){let r=Math.min(e.off,i.off),h=Math.max(e.off,i.off);for(let a=s;a<=o;a++){let c=t.doc.line(a);c.length<=h&&n.push(l.jT.range(c.from+r,c.to+h))}}else{let d=Math.min(e.col,i.col),u=Math.max(e.col,i.col);for(let f=s;f<=o;f++){let p=t.doc.line(f),m=(0,l.Gz)(p.text,d,t.tabSize,!0);if(m<0)n.push(l.jT.cursor(p.to));else{let g=(0,l.Gz)(p.text,u,t.tabSize);n.push(l.jT.range(p.from+m,p.from+g))}}}return n}(t.state,s,r);return h.length?n?l.jT.create(h.concat(o.ranges)):l.jT.create(h):o}}:null):null})}let i5={Alt:[18,t=>t.altKey],Control:[17,t=>t.ctrlKey],Shift:[16,t=>t.shiftKey],Meta:[91,t=>t.metaKey]},i4={style:"cursor: crosshair"};function i6(t={}){let[e,i]=i5[t.key||"Alt"],s=tR.fromClass(class{constructor(t){this.view=t,this.isDown=!1}set(t){this.isDown!=t&&(this.isDown=t,this.view.update([]))}},{eventHandlers:{keydown(t){this.set(t.keyCode==e||i(t))},keyup(t){t.keyCode!=e&&i(t)||this.set(!1)},mousemove(t){this.set(i(t))}}});return[s,il.contentAttributes.of(t=>{var e;return(null===(e=t.plugin(s))||void 0===e?void 0:e.isDown)?i4:null})]}let i7="-10000px";class st{constructor(t,e,i){this.facet=e,this.createTooltipView=i,this.input=t.state.facet(e),this.tooltips=this.input.filter(t=>t),this.tooltipViews=this.tooltips.map(i)}update(t){var e;let i=t.state.facet(this.facet),s=i.filter(t=>t);if(i===this.input){for(let o of this.tooltipViews)o.update&&o.update(t);return!1}let n=[];for(let r=0;rn.indexOf(u)&&(u.dom.remove(),null===(e=u.destroy)||void 0===e||e.call(u));return this.input=i,this.tooltips=s,this.tooltipViews=n,!0}}function se(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}let si=l.r$.define({combine(t){var e,i,s;return{position:K.ios?"absolute":(null===(e=t.find(t=>t.position))||void 0===e?void 0:e.position)||"fixed",parent:(null===(i=t.find(t=>t.parent))||void 0===i?void 0:i.parent)||null,tooltipSpace:(null===(s=t.find(t=>t.tooltipSpace))||void 0===s?void 0:s.tooltipSpace)||se}}}),ss=tR.fromClass(class{constructor(t){this.view=t,this.inView=!0,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(si);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new st(t,sr,t=>this.createTooltip(t)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver)for(let t of(this.intersectionObserver.disconnect(),this.manager.tooltipViews))this.intersectionObserver.observe(t.dom)}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t);e&&this.observeIntersection();let i=e||t.geometryChanged,s=t.state.facet(si);if(s.position!=this.position){for(let o of(this.position=s.position,this.manager.tooltipViews))o.dom.style.position=this.position;i=!0}if(s.parent!=this.parent){for(let n of(this.parent&&this.container.remove(),this.parent=s.parent,this.createContainer(),this.manager.tooltipViews))this.container.appendChild(n.dom);i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top=i7,this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;for(let i of(this.view.win.removeEventListener("resize",this.measureSoon),this.manager.tooltipViews))i.dom.remove(),null===(t=i.destroy)||void 0===t||t.call(i);null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect();return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((t,e)=>{let i=this.manager.tooltipViews[e];return i.getCoords?i.getCoords(t.pos):this.view.coordsAtPos(t.pos)}),size:this.manager.tooltipViews.map(({dom:t})=>t.getBoundingClientRect()),space:this.view.state.facet(si).tooltipSpace(this.view)}}writeMeasure(t){let{editor:e,space:i}=t,s=[];for(let o=0;o=Math.min(e.bottom,i.bottom)||h.rightMath.min(e.right,i.right)+.1){l.style.top=i7;continue}let c=n.arrow?r.dom.querySelector(".cm-tooltip-arrow"):null,d=c?7:0,u=a.right-a.left,f=a.bottom-a.top,p=r.offset||sn,m=this.view.textDirection==tF.LTR,g=a.width>i.right-i.left?m?i.left:i.right-a.width:m?Math.min(h.left-(c?14:0)+p.x,i.right-u):Math.max(i.left,h.left-u+(c?14:0)-p.x),v=!!n.above;!n.strictSide&&(v?h.top-(a.bottom-a.top)-p.yi.bottom)&&v==i.bottom-h.bottom>h.top-i.top&&(v=!v);let w=(v?h.top-i.top:i.bottom-h.bottom)-d;if(wg&&x.topb&&(b=v?x.top-f-2-d:x.bottom+d+2);"absolute"==this.position?(l.style.top=b-t.parent.top+"px",l.style.left=g-t.parent.left+"px"):(l.style.top=b+"px",l.style.left=g+"px"),c&&(c.style.left=`${h.left+(m?p.x:-p.x)-(g+14-7)}px`),!0!==r.overlap&&s.push({left:g,top:b,right:y,bottom:b+f}),l.classList.toggle("cm-tooltip-above",v),l.classList.toggle("cm-tooltip-below",!v),r.positioned&&r.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=i7}},{eventHandlers:{scroll(){this.maybeMeasure()}}}),so=il.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),sn={x:0,y:0},sr=l.r$.define({enables:[ss,so]}),sl=l.r$.define();class sh{constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new st(t,sl,t=>this.createHostedView(t))}static create(t){return new sh(t)}createHostedView(t){let e=t.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}mount(t){for(let e of this.manager.tooltipViews)e.mount&&e.mount(t);this.mounted=!0}positioned(t){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned(t)}update(t){this.manager.update(t)}}let sa=sr.compute([sl],t=>{let e=t.facet(sl).filter(t=>t);return 0===e.length?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.filter(t=>null!=t.end).map(t=>t.end)),create:sh.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class sc{constructor(t,e,i,s,o){this.view=t,this.source=e,this.field=i,this.setHover=s,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;ti.bottom||t.xi.right+this.view.defaultCharacterWidth)return;let s=this.view.bidiSpans(this.view.state.doc.lineAt(e)).find(t=>t.from<=e&&t.to>=e),o=s&&s.dir==tF.RTL?-1:1,n=this.source(this.view,e,t.x{this.pending==r&&(this.pending=null,t&&this.view.dispatch({effects:this.setHover.of(t)}))},t=>tA(this.view.state,t,"hover tooltip"))}else n&&this.view.dispatch({effects:this.setHover.of(n)})}mousemove(t){var e;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let i=this.active;if(i&&!sd(this.lastMove.target)||this.pending){let{pos:s}=i||this.pending,o=null!==(e=null==i?void 0:i.end)&&void 0!==e?e:s;(s==o?this.view.posAtCoords(this.lastMove)!=s:!function(t,e,i,s,o,n){let r=document.createRange(),l=t.domAtPos(e),h=t.domAtPos(i);r.setEnd(h.node,h.offset),r.setStart(l.node,l.offset);let a=r.getClientRects();r.detach();for(let c=0;c=Math.max(d.top-o,o-d.bottom,d.left-s,s-d.right))return!0}return!1}(this.view,s,o,t.clientX,t.clientY,0))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!sd(t.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function sd(t){for(let e=t;e;e=e.parentNode)if(1==e.nodeType&&e.classList.contains("cm-tooltip"))return!0;return!1}function su(t,e={}){let i=l.Py.define(),s=l.QQ.define({create:()=>null,update(t,s){if(t&&(e.hideOnChange&&(s.docChanged||s.selection)||e.hideOn&&e.hideOn(s,t)))return null;if(t&&s.docChanged){let o=s.changes.mapPos(t.pos,-1,l.gc.TrackDel);if(null==o)return null;let n=Object.assign(Object.create(null),t);n.pos=o,null!=t.end&&(n.end=s.changes.mapPos(t.end)),t=n}for(let r of s.effects)r.is(i)&&(t=r.value),r.is(sp)&&(t=null);return t},provide:t=>sl.from(t)});return[s,tR.define(o=>new sc(o,t,s,i,e.hoverTime||300)),sa]}function sf(t,e){let i=t.plugin(ss);if(!i)return null;let s=i.manager.tooltips.indexOf(e);return s<0?null:i.manager.tooltipViews[s]}let sp=l.Py.define(),sm=l.r$.define({combine(t){let e,i;for(let s of t)e=e||s.topContainer,i=i||s.bottomContainer;return{topContainer:e,bottomContainer:i}}});function sg(t,e){let i=t.plugin(sv),s=i?i.specs.indexOf(e):-1;return s>-1?i.panels[s]:null}let sv=tR.fromClass(class{constructor(t){this.input=t.state.facet(sy),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(e=>e(t));let e=t.state.facet(sm);for(let i of(this.top=new sw(t,!0,e.topContainer),this.bottom=new sw(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top)),this.panels))i.dom.classList.add("cm-panel"),i.mount&&i.mount()}update(t){let e=t.state.facet(sm);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new sw(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new sw(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let i=t.state.facet(sy);if(i!=this.input){let s=i.filter(t=>t),o=[],n=[],r=[],l=[];for(let h of s){let a=this.specs.indexOf(h),c;a<0?(c=h(t.view),l.push(c)):(c=this.panels[a]).update&&c.update(t),o.push(c),(c.top?n:r).push(c)}for(let d of(this.specs=s,this.panels=o,this.top.sync(n),this.bottom.sync(r),l))d.dom.classList.add("cm-panel"),d.mount&&d.mount()}else for(let u of this.panels)u.update&&u.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>il.scrollMargins.of(e=>{let i=e.plugin(t);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}})});class sw{constructor(t,e,i){this.view=t,this.top=e,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let e of this.panels)e.destroy&&0>t.indexOf(e)&&e.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(0==this.panels.length){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let i of this.panels)if(i.dom.parentNode==this.dom){for(;e!=i.dom;)e=sb(e);e=e.nextSibling}else this.dom.insertBefore(i.dom,e);for(;e;)e=sb(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function sb(t){let e=t.nextSibling;return t.remove(),e}let sy=l.r$.define({enables:sv});class sx extends l.uU{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}sx.prototype.elementClass="",sx.prototype.toDOM=void 0,sx.prototype.mapMode=l.gc.TrackBefore,sx.prototype.startSide=sx.prototype.endSide=-1,sx.prototype.point=!0;let sS=l.r$.define(),sM={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>l.Xs.empty,lineMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},sk=l.r$.define();function sC(t){return[sD(),sk.of(Object.assign(Object.assign({},sM),t))]}let sA=l.r$.define({combine:t=>t.some(t=>t)});function sD(t){let e=[sT];return t&&!1===t.fixed&&e.push(sA.of(!0)),e}let sT=tR.fromClass(class{constructor(t){for(let e of(this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=t.state.facet(sk).map(e=>new sB(t,e)),this.gutters))this.dom.appendChild(e.dom);this.fixed=!t.state.facet(sA),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,i=t.view.viewport,s=Math.min(e.to,i.to)-Math.max(e.from,i.from);this.syncGutters(s<(i.to-i.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(sA)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let i=l.Xs.iter(this.view.state.facet(sS),this.view.viewport.from),s=[],o=this.gutters.map(t=>new sE(t,this.view.viewport,-this.view.documentPadding.top));for(let n of this.view.viewportLineBlocks){let r;if(Array.isArray(n.type)){for(let h of n.type)if(h.type==to.Text){r=h;break}}else r=n.type==to.Text?n:void 0;if(r)for(let a of(s.length&&(s=[]),sR(i,s,n.from),o))a.line(this.view,r,s)}for(let c of o)c.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(sk),i=t.state.facet(sk),s=t.docChanged||t.heightChanged||t.viewportChanged||!l.Xs.eq(t.startState.facet(sS),t.state.facet(sS),t.view.viewport.from,t.view.viewport.to);if(e==i)for(let o of this.gutters)o.update(t)&&(s=!0);else{s=!0;let n=[];for(let r of i){let h=e.indexOf(r);h<0?n.push(new sB(this.view,r)):(this.gutters[h].update(t),n.push(this.gutters[h]))}for(let a of this.gutters)a.dom.remove(),0>n.indexOf(a)&&a.destroy();for(let c of n)this.dom.appendChild(c.dom);this.gutters=n}return s}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>il.scrollMargins.of(e=>{let i=e.plugin(t);return i&&0!=i.gutters.length&&i.fixed?e.textDirection==tF.LTR?{left:i.dom.offsetWidth}:{right:i.dom.offsetWidth}:null})});function sO(t){return Array.isArray(t)?t:[t]}function sR(t,e,i){for(;t.value&&t.from<=i;)t.from==i&&e.push(t.value),t.next()}class sE{constructor(t,e,i){this.gutter=t,this.height=i,this.localMarkers=[],this.i=0,this.cursor=l.Xs.iter(t.markers,e.from)}line(t,e,i){this.localMarkers.length&&(this.localMarkers=[]),sR(this.cursor,this.localMarkers,e.from);let s=i.length?this.localMarkers.concat(i):this.localMarkers,o=this.gutter.config.lineMarker(t,e,s);o&&s.unshift(o);let n=this.gutter;if(0==s.length&&!n.config.renderEmptyElements)return;let r=e.top-this.height;if(this.i==n.elements.length){let l=new sL(t,e.height,r,s);n.elements.push(l),n.dom.appendChild(l.dom)}else n.elements[this.i].update(t,e.height,r,s);this.height=e.bottom,this.i++}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}}class sB{constructor(t,e){for(let i in this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:""),e.domEventHandlers)this.dom.addEventListener(i,s=>{let o=t.lineBlockAtHeight(s.clientY-t.documentTop);e.domEventHandlers[i](t,o,s)&&s.preventDefault()});this.markers=sO(e.markers(t)),e.initialSpacer&&(this.spacer=new sL(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=sO(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],t);i!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[i])}let s=t.view.viewport;return!l.Xs.eq(this.markers,e,s.from,s.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}destroy(){for(let t of this.elements)t.destroy()}}class sL{constructor(t,e,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,i,s)}update(t,e,i,s){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),!function(t,e){if(t.length!=e.length)return!1;for(let i=0;i(0,l.BO)(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,e){let i=Object.assign({},t);for(let s in e){let o=i[s],n=e[s];i[s]=o?(t,e,i)=>o(t,e,i)||n(t,e,i):n}return i}})});class sN extends sx{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function sP(t,e){return t.state.facet(sH).formatNumber(e,t.state)}let sW=sk.compute([sH],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:t=>t.state.facet(sV),lineMarker:(t,e,i)=>i.some(t=>t.toDOM)?null:new sN(sP(t,t.state.doc.lineAt(e.from).number)),lineMarkerChange:t=>t.startState.facet(sH)!=t.state.facet(sH),initialSpacer:t=>new sN(sP(t,sF(t.state.doc.lines))),updateSpacer(t,e){let i=sP(e.view,sF(e.view.state.doc.lines));return i==t.number?t:new sN(i)},domEventHandlers:t.facet(sH).domEventHandlers}));function sz(t={}){return[sH.of(t),sD(),sW]}function sF(t){let e=9;for(;e{let e=[],i=-1;for(let s of t.selection.ranges){let o=t.doc.lineAt(s.head).from;o>i&&(i=o,e.push(sI.range(o)))}return l.Xs.of(e)});function sj(){return sq}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5762],{47421:function(t,e,i){let s;i.d(e,{$1:function(){return ib},$f:function(){return ig},AE:function(){return iU},Eu:function(){return sz},HQ:function(){return sj},Nm:function(){return tF},OO:function(){return tA},S2:function(){return i6},SJ:function(){return sx},Sd:function(){return sg},Uw:function(){return iE},W$:function(){return i8},ZO:function(){return iJ},Zs:function(){return i9},bF:function(){return su},gB:function(){return sf},hJ:function(){return sr},l9:function(){return ts},lg:function(){return tR},mH:function(){return sy},p:function(){return tn},qr:function(){return iI},tk:function(){return il},v5:function(){return sC}});var o,n,r,l=i(78120),h=i(28699),a=i(33952);function c(t){return(11==t.nodeType?t.getSelection?t:t.ownerDocument:t).getSelection()}function d(t,e){return!!e&&(t==e||t.contains(1!=e.nodeType?e.parentNode:e))}function u(t,e){if(!e.anchorNode)return!1;try{return d(t,e.anchorNode)}catch(i){return!1}}function f(t){return 3==t.nodeType?M(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function p(t,e,i,s){return!!i&&(g(t,e,i,s,-1)||g(t,e,i,s,1))}function m(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e}function g(t,e,i,s,o){for(;;){if(t==i&&e==s)return!0;if(e==(o<0?0:v(t))){if("DIV"==t.nodeName)return!1;let n=t.parentNode;if(!n||1!=n.nodeType)return!1;e=m(t)+(o<0?0:1),t=n}else{if(1!=t.nodeType||1==(t=t.childNodes[e+(o<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;e=o<0?v(t):0}}}function v(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}let w={left:0,right:0,top:0,bottom:0};function b(t,e){let i=e?t.left:t.right;return{left:i,right:i,top:t.top,bottom:t.bottom}}class y{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){this.set(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)}set(t,e,i,s){this.anchorNode=t,this.anchorOffset=e,this.focusNode=i,this.focusOffset=s}}let x=null;function S(t){if(t.setActive)return t.setActive();if(x)return t.focus(x);let e=[];for(let i=t;i&&(e.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(t.focus(null==x?{get preventScroll(){return x={preventScroll:!0},!0}}:void 0),!x){x=!1;for(let s=0;se)return c.domBoundsAround(t,e,h);if(d>=t&&-1==s&&(s=l,o=h),h>e&&c.dom.parentNode==this.dom){n=l,r=a;break}a=d,h=d+c.breakAfter}return{from:o,to:r<0?i+this.length:r,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:n=0?this.children[n].dom:null}}markDirty(t=!1){this.dirty|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.dirty&&this.markParentsDirty(!0))}setDOM(t){this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,i=D){this.markDirty();for(let s=t;sthis.pos||t==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function E(t,e,i,s,o,n,r,l,h){let{children:a}=t,c=a.length?a[e]:null,d=n.length?n[n.length-1]:null,u=d?d.breakAfter:r;if(!(e==s&&c&&!r&&!u&&n.length<2&&c.merge(i,o,n.length?d:null,0==i,l,h))){if(s0&&(!r&&n.length&&c.merge(i,c.length,n[0],!1,l,0)?c.breakAfter=n.shift().breakAfter:(i2);var K={mac:j||/Mac/.test(L.platform),windows:/Win/.test(L.platform),linux:/Linux|X11/.test(L.platform),ie:W,ie_version:N?V.documentMode||6:P?+P[1]:H?+H[1]:0,gecko:z,gecko_version:z?+(/Firefox\/(\d+)/.exec(L.userAgent)||[0,0])[1]:0,chrome:!!F,chrome_version:F?+F[1]:0,ios:j,android:/Android\b/.test(L.userAgent),webkit:I,safari:q,webkit_version:I?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=V.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class $ extends T{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){3==t.nodeType&&this.createDOM(t)}merge(t,e,i){return(!i||i instanceof $&&!(this.length-(e-t)+i.length>256))&&(this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e),this.markDirty(),!0)}split(t){let e=new $(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new A(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return X(this.dom,t,e)}}class G extends T{constructor(t,e=[],i=0){for(let s of(super(),this.mark=t,this.children=e,this.length=i,e))s.setParent(this)}setAttrs(t){if(C(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.dirty|=6)}sync(t){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t)}merge(t,e,i,s,o,n){return(!i||!!(i instanceof G&&i.mark.eq(this.mark))&&(!t||!(o<=0))&&(!(et&&e.push(i=t&&(s=o),i=r,o++}let l=this.length-t;return this.length=t,s>-1&&(this.children.length=s,this.markDirty()),new G(this.mark,e,l)}domAtPos(t){return Z(this,t)}coordsAt(t,e){return J(this,t,e)}}function X(t,e,i){let s=t.nodeValue.length;e>s&&(e=s);let o=e,n=e,r=0;0==e&&i<0||e==s&&i>=0?!(K.chrome||K.gecko)&&(e?(o--,r=1):n=0)?0:l.length-1];return K.safari&&!r&&0==h.width&&(h=Array.prototype.find.call(l,t=>t.width)||h),r?b(h,r<0):h||null}class _ extends T{constructor(t,e,i){super(),this.widget=t,this.length=e,this.side=i,this.prevWidget=null}static create(t,e,i){return new(t.customView||_)(t,e,i)}split(t){let e=_.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}getSide(){return this.side}merge(t,e,i,s,o,n){return(!i||i instanceof _&&!!this.widget.compare(i.widget)&&(!(t>0)||!(o<=0))&&(!(e0?i.length-1:0;s=i[o],t>0?0!=o:o!=i.length-1&&!(s.top0?-1:1);return this.length?s:b(s,this.side>0)}get isEditable(){return!1}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class U extends _{domAtPos(t){let{topView:e,text:i}=this.widget;return e?Y(t,0,e,i,(t,e)=>t.domAtPos(e),t=>new A(i,Math.min(t,i.nodeValue.length))):new A(i,Math.min(t,i.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(t,e){let{topView:i,text:s}=this.widget;return i?function t(e,i,s,o){if(s instanceof G)for(let n of s.children){let r=0,l=d(n.dom,o);if(d(n.dom,e))return r+(l?t(e,i,n,o):n.localPosFromDOM(e,i));r+=l?o.nodeValue.length:n.length}else if(s.dom==o)return Math.min(i,o.nodeValue.length);return s.localPosFromDOM(e,i)}(t,e,i,s):Math.min(e,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(t,e){let{topView:i,text:s}=this.widget;return i?Y(t,e,i,s,(t,e,i)=>t.coordsAt(e,i),(t,e)=>X(s,t,e)):X(s,t,e)}destroy(){var t;super.destroy(),null===(t=this.widget.topView)||void 0===t||t.destroy()}get isEditable(){return!0}canReuseDOM(){return!0}}function Y(t,e,i,s,o,n){if(i instanceof G){for(let r=i.dom.firstChild;r;r=r.nextSibling){let l=T.get(r);if(!l)return n(t,e);let h=d(r,s),a=l.length+(h?s.nodeValue.length:0);if(t=l.getSide())return h?Y(t,e,l,s,o,n):o(l,t,e);t-=a}return o(i,i.length,-1)}return i.dom==s?n(t,e):o(i,t,e)}class Q extends T{constructor(t){super(),this.side=t}get length(){return 0}merge(){return!1}become(t){return t instanceof Q&&t.side==this.side}split(){return new Q(this.side)}sync(){if(!this.dom){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),this.setDOM(t)}}getSide(){return this.side}domAtPos(t){return A.before(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){let e=this.dom.getBoundingClientRect(),i=function(t,e){let i=t.parent,s=i?i.children.indexOf(t):-1;for(;i&&s>=0;)if(e<0?s>0:s0?-1:1);return i&&i.tope.top?{left:e.left,right:e.right,top:i.top,bottom:i.bottom}:e}get overrideDOMText(){return l.xv.empty}}function Z(t,e){let i=t.dom,{children:s}=t,o=0;for(let n=0;o=r.getSide())){if(e>n&&e0;h--){let a=s[h-1];if(a.dom.parentNode==i)return a.domAtPos(a.length)}for(let c=o;c=i&&(a.children.length?t(a,i-h):!n&&(c>i||h==c&&a.getSide()>0)?(n=a,r=i-h):(ha.getSide())&&(s=a,o=i-h)),h=c}}(t,e);let l=(i<0?s:n)||s||n;return l?l.coordsAt(Math.max(0,l==s?o:r),i):function(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let i=f(e);return i[i.length-1]||null}(t)}function tt(t,e){for(let i in t)"class"==i&&e.class?e.class+=" "+t.class:"style"==i&&e.style?e.style+=";"+t.style:e[i]=t[i];return e}function te(t,e){if(t==e)return!0;if(!t||!e)return!1;let i=Object.keys(t),s=Object.keys(e);if(i.length!=s.length)return!1;for(let o of i)if(-1==s.indexOf(o)||t[o]!==e[o])return!1;return!0}function ti(t,e,i){let s=null;if(e)for(let o in e)i&&o in i||t.removeAttribute(s=o);if(i)for(let n in i)e&&e[n]==i[n]||t.setAttribute(s=n,i[n]);return!!s}$.prototype.children=_.prototype.children=Q.prototype.children=D;class ts{eq(t){return!1}updateDOM(t){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return -1}ignoreEvent(t){return!0}get customView(){return null}destroy(t){}}var to=((o=to||(to={}))[o.Text=0]="Text",o[o.WidgetBefore=1]="WidgetBefore",o[o.WidgetAfter=2]="WidgetAfter",o[o.WidgetRange=3]="WidgetRange",o);class tn extends l.uU{constructor(t,e,i,s){super(),this.startSide=t,this.endSide=e,this.widget=i,this.spec=s}get heightRelevant(){return!1}static mark(t){return new tr(t)}static widget(t){let e=t.side||0,i=!!t.block;return e+=i?e>0?3e8:-4e8:e>0?1e8:-1e8,new th(t,e,e,i,t.widget||null,!1)}static replace(t){let e=!!t.block,i,s;if(t.isBlockGap)i=-5e8,s=4e8;else{let{start:o,end:n}=ta(t,e);i=(o?e?-3e8:-1:5e8)-1,s=(n?e?2e8:1:-6e8)+1}return new th(t,i,s,e,t.widget||null,!0)}static line(t){return new tl(t)}static set(t,e=!1){return l.Xs.of(t,e)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}tn.none=l.Xs.empty;class tr extends tn{constructor(t){let{start:e,end:i}=ta(t);super(e?-1:5e8,i?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){return this==t||t instanceof tr&&this.tagName==t.tagName&&this.class==t.class&&te(this.attrs,t.attrs)}range(t,e=t){if(t>=e)throw RangeError("Mark decorations may not be empty");return super.range(t,e)}}tr.prototype.point=!1;class tl extends tn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof tl&&te(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}tl.prototype.mapMode=l.gc.TrackBefore,tl.prototype.point=!0;class th extends tn{constructor(t,e,i,s,o,n){super(e,i,o,t),this.block=s,this.isReplace=n,this.mapMode=s?e<=0?l.gc.TrackBefore:l.gc.TrackAfter:l.gc.TrackDel}get type(){return this.startSide=5}eq(t){var e,i;return t instanceof th&&((e=this.widget)==(i=t.widget)||!!(e&&i&&e.compare(i)))&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}function ta(t,e=!1){let{inclusiveStart:i,inclusiveEnd:s}=t;return null==i&&(i=t.inclusive),null==s&&(s=t.inclusive),{start:null!=i?i:e,end:null!=s?s:e}}function tc(t,e,i,s=0){let o=i.length-1;o>=0&&i[o]+s>=t?i[o]=Math.max(i[o],e):i.push(t,e)}th.prototype.point=!0;class td extends T{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,e,i,s,o,n){if(i){if(!(i instanceof td))return!1;this.dom||i.transferDOM(this)}return s&&this.setDeco(i?i.attrs:null),B(this,t,e,i?i.children:[],o,n),!0}split(t){let e=new td;if(e.breakAfter=this.breakAfter,0==this.length)return e;let{i,off:s}=this.childPos(t);s&&(e.append(this.children[i].split(s),0),this.children[i].merge(s,this.children[i].length,null,!1,0,0),i++);for(let o=i;o0&&0==this.children[i-1].length;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){te(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){!function t(e,i,s){let o,{children:n}=e;s>0&&i instanceof G&&n.length&&(o=n[n.length-1])instanceof G&&o.mark.eq(i.mark)?t(o,i.children[0],s-1):(n.push(i),i.setParent(e)),e.length+=i.length}(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;e&&(this.attrs=tt(e,this.attrs||{})),i&&(this.attrs=tt({class:i},this.attrs||{}))}domAtPos(t){return Z(this,t)}reuseDOM(t){"DIV"==t.nodeName&&(this.setDOM(t),this.dirty|=6)}sync(t){var e;this.dom?4&this.dirty&&(C(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ti(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t);let i=this.dom.lastChild;for(;i&&T.get(i) instanceof G;)i=i.lastChild;if(!i||!this.length||"BR"!=i.nodeName&&(null===(e=T.get(i))||void 0===e?void 0:e.isEditable)==!1&&(!K.ios||!this.children.some(t=>t instanceof $))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let t=0;for(let e of this.children){if(!(e instanceof $)||/[^ -~]/.test(e.text))return null;let i=f(e.dom);if(1!=i.length)return null;t+=i[0].width}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length}:null}coordsAt(t,e){return J(this,t,e)}become(t){return!1}get type(){return to.Text}static find(t,e){for(let i=0,s=0;i=e){if(o instanceof td)return o;if(n>e)break}s=n+o.breakAfter}return null}}class tu extends T{constructor(t,e,i){super(),this.widget=t,this.length=e,this.type=i,this.breakAfter=0,this.prevWidget=null}merge(t,e,i,s,o,n){return(!i||i instanceof tu&&!!this.widget.compare(i.widget)&&(!(t>0)||!(o<=0))&&(!(e0;){if(this.textOff==this.text.length){let{value:s,lineBreak:o,done:n}=this.cursor.next(this.skip);if(this.skip=0,n)throw Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}this.text=s,this.textOff=0}let r=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(tp(new $(this.text.slice(this.textOff,this.textOff+r)),e),i),this.atCursorPos=!0,this.textOff+=r,t-=r,i=0}}span(t,e,i,s){this.buildText(e-t,i,s),this.pos=e,this.openStart<0&&(this.openStart=s)}point(t,e,i,s,o,n){if(this.disallowBlockEffectsFor[n]&&i instanceof th){if(i.block)throw RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw RangeError("Decorations that replace line breaks may not be specified via plugins")}let r=e-t;if(i instanceof th){if(i.block){let{type:l}=i;l!=to.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new tu(i.widget||new tm("div"),r,l))}else{let h=_.create(i.widget||new tm("span"),r,r?0:i.startSide),a=this.atCursorPos&&!h.isEditable&&o<=s.length&&(t0),c=!h.isEditable&&(ts.length||i.startSide<=0),d=this.getLine();2!=this.pendingBuffer||a||(this.pendingBuffer=0),this.flushBuffer(s),a&&(d.append(tp(new Q(1),s),o),o=s.length+Math.max(0,o-s.length)),d.append(tp(h,s),o),this.atCursorPos=c,this.pendingBuffer=c?ts.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=s.slice())}}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);r&&(this.textOff+r<=this.text.length?this.textOff+=r:(this.skip+=r-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=o)}static build(t,e,i,s,o){let n=new tf(t,e,i,o);return n.openEnd=l.Xs.spans(s,e,i,n),n.openStart<0&&(n.openStart=n.openEnd),n.finish(n.openEnd),n}}function tp(t,e){for(let i of e)t=new G(i,[t],t.length);return t}class tm extends ts{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}}let tg=l.r$.define(),tv=l.r$.define(),tw=l.r$.define(),tb=l.r$.define(),ty=l.r$.define(),tx=l.r$.define(),tS=l.r$.define({combine:t=>t.some(t=>t)}),tM=l.r$.define({combine:t=>t.some(t=>t)});class tk{constructor(t,e="nearest",i="nearest",s=5,o=5){this.range=t,this.y=e,this.x=i,this.yMargin=s,this.xMargin=o}map(t){return t.empty?this:new tk(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin)}}let tC=l.Py.define({map:(t,e)=>t.map(e)});function tA(t,e,i){let s=t.facet(tb);s.length?s[0](e):window.onerror?window.onerror(String(e),i,void 0,void 0,e):i?console.error(i+":",e):console.error(e)}let tD=l.r$.define({combine:t=>!t.length||t[0]}),tT=0,tO=l.r$.define();class tR{constructor(t,e,i,s){this.id=t,this.create=e,this.domEventHandlers=i,this.extension=s(this)}static define(t,e){let{eventHandlers:i,provide:s,decorations:o}=e||{};return new tR(tT++,t,i,t=>{let e=[tO.of(t)];return o&&e.push(tV.of(e=>{let i=e.plugin(t);return i?o(i):tn.none})),s&&e.push(s(t)),e})}static fromClass(t,e){return tR.define(e=>new t(e),e)}}class tE{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(s){if(tA(e.state,s,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(i){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(o){tA(t.state,o,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(null===(e=this.value)||void 0===e?void 0:e.destroy)try{this.value.destroy()}catch(i){tA(t.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}let tB=l.r$.define(),tL=l.r$.define(),tV=l.r$.define(),tH=l.r$.define(),tN=l.r$.define(),tP=l.r$.define();class tW{constructor(t,e,i,s){this.fromA=t,this.toA=e,this.fromB=i,this.toB=s}join(t){return new tW(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let s=t[e-1];if(!(s.fromA>i.toA)){if(s.toAa)break;o+=2}if(!l)return i;new tW(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),n=l.toA,r=l.toB}}}class tz{constructor(t,e,i){for(let s of(this.view=t,this.state=e,this.transactions=i,this.flags=0,this.startState=t.state,this.changes=l.as.empty(this.startState.doc.length),i))this.changes=this.changes.compose(s.changes);let o=[];this.changes.iterChangedRanges((t,e,i,s)=>o.push(new tW(t,e,i,s))),this.changedRanges=o;let n=t.hasFocus;n!=t.inputState.notifiedFocused&&(t.inputState.notifiedFocused=n,this.flags|=1)}static create(t,e,i){return new tz(t,e,i)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}var tF=((n=tF||(tF={}))[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n);let tI=tF.LTR,tq=tF.RTL;function tj(t){let e=[];for(let i=0;i=e){if(r.level==i)return n;(o<0||(0!=s?s<0?r.frome:t[o].level>r.level))&&(o=n)}}if(o<0)throw RangeError("Index out of range");return o}}let tJ=[];function t0(t){return[new tZ(0,t,0)]}let t1="";class t2{constructor(t,e){this.points=t,this.text="",this.lineSeparator=e.facet(l.yy.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+="￿"}readRange(t,e){if(!t)return this;let i=t.parentNode;for(let s=t;;){this.findPointBefore(i,s),this.readNode(s);let o=s.nextSibling;if(o==e)break;let n=T.get(s),r=T.get(o);(n&&r?n.breakAfter:(n?n.breakAfter:t8(s))||t8(o)&&("BR"!=s.nodeName||s.cmIgnore))&&this.lineBreak(),s=o}return this.findPointBefore(i,e),this}readTextNode(t){let e=t.nodeValue;for(let i of this.points)i.node==t&&(i.pos=this.text.length+Math.min(i.offset,e.length));for(let s=0,o=this.lineSeparator?null:/\r\n?|\n/g;;){let n=-1,r=1,l;if(this.lineSeparator?(n=e.indexOf(this.lineSeparator,s),r=this.lineSeparator.length):(l=o.exec(e))&&(n=l.index,r=l[0].length),this.append(e.slice(s,n<0?e.length:n)),n<0)break;if(this.lineBreak(),r>1)for(let h of this.points)h.node==t&&h.pos>this.text.length&&(h.pos-=r-1);s=n+r}}readNode(t){if(t.cmIgnore)return;let e=T.get(t),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(t,i.length);for(let s=i.iter();!s.next().done;)s.lineBreak?this.lineBreak():this.append(s.value)}else 3==t.nodeType?this.readTextNode(t):"BR"==t.nodeName?t.nextSibling&&this.lineBreak():1==t.nodeType&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let i of this.points)i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length)}findPointInside(t,e){for(let i of this.points)(3==t.nodeType?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+Math.min(e,i.offset))}}function t8(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}class t3{constructor(t,e){this.node=t,this.offset=e,this.pos=-1}}class t9 extends T{constructor(t){super(),this.view=t,this.compositionDeco=tn.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new td],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new tW(0,0,0,t.state.doc.length)],0)}get editorView(){return this.view}get length(){return this.view.state.doc.length}update(t){var e,i,s;let o,n=t.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:t,toA:e})=>ethis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=tn.none:(t.transactions.length||this.dirty)&&(this.compositionDeco=function(t,e){let i=t4(t);if(!i)return tn.none;let{from:s,to:o,node:n,text:r}=i,l=e.mapPos(s,1),h=Math.max(l,e.mapPos(o,-1)),{state:a}=t,c=3==n.nodeType?n.nodeValue:new t2([],a).readRange(n.firstChild,null).text;if(h-l{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let t=K.chrome||K.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(t),this.dirty=0,t&&(t.written||i.selectionRange.focusNode!=t.node)&&(this.forceSelection=!0),this.dom.style.height=""});let s=[];if(this.view.viewport.from||this.view.viewport.to=0?t[s]:null;if(!o)break;let{fromA:n,toA:r,fromB:l,toB:h}=o,{content:a,breakAtStart:c,openStart:d,openEnd:u}=tf.build(this.view.state.doc,l,h,this.decorations,this.dynamicDecorationMap),{i:f,off:p}=i.findPos(r,1),{i:m,off:g}=i.findPos(n,-1);E(this,m,g,f,p,a,c,d,u)}}updateSelection(t=!1,e=!1){var i;if((t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange(),!(e||this.mayControlSelection()))return;let s=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,n=this.domAtPos(o.anchor),r=o.empty?n:this.domAtPos(o.head);if(K.gecko&&o.empty&&1==(i=n).node.nodeType&&i.node.firstChild&&(0==i.offset||"false"==i.node.childNodes[i.offset-1].contentEditable)&&(i.offset==i.node.childNodes.length||"false"==i.node.childNodes[i.offset].contentEditable)){let l=document.createTextNode("");this.view.observer.ignore(()=>n.node.insertBefore(l,n.node.childNodes[n.offset]||null)),n=r=new A(l,0),s=!0}let h=this.view.observer.selectionRange;!s&&h.focusNode&&p(n.node,n.offset,h.anchorNode,h.anchorOffset)&&p(r.node,r.offset,h.focusNode,h.focusOffset)||(this.view.observer.ignore(()=>{K.android&&K.chrome&&this.dom.contains(h.focusNode)&&function(t,e){for(let i=t;i&&i!=e;i=i.assignedSlot||i.parentNode)if(1==i.nodeType&&"false"==i.contentEditable)return!0;return!1}(h.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let t=c(this.view.root);if(t){if(o.empty){if(K.gecko){var e,i;let s=(e=n.node,i=n.offset,1!=e.nodeType?0:(i&&"false"==e.childNodes[i-1].contentEditable?1:0)|(io.head&&([n,r]=[r,n]),d.setEnd(r.node,r.offset),d.setStart(n.node,n.offset),t.removeAllRanges(),t.addRange(d)}}}),this.view.observer.setSelectionRange(n,r)),this.impreciseAnchor=n.precise?null:new A(h.anchorNode,h.anchorOffset),this.impreciseHead=r.precise?null:new A(h.focusNode,h.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let{view:t}=this,e=t.state.selection.main,i=c(t.root),{anchorNode:s,anchorOffset:o}=t.observer.selectionRange;if(!i||!e.empty||!e.assoc||!i.modify)return;let n=td.find(this,e.head);if(!n)return;let r=n.posAtStart;if(e.head==r||e.head==r+n.length)return;let l=this.coordsAt(e.head,-1),h=this.coordsAt(e.head,1);if(!l||!h||l.bottom>h.top)return;let a=this.domAtPos(e.head+e.assoc);i.collapse(a.node,a.offset),i.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let d=t.observer.selectionRange;t.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=e.from&&i.collapse(s,o)}mayControlSelection(){let t=this.view.root.activeElement;return t==this.dom||u(this.dom,this.view.observer.selectionRange)&&!(t&&this.dom.contains(t))}nearest(t){for(let e=t;e;){let i=T.get(e);if(i&&i.rootView==this)return i;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;en||t==n&&o.type!=to.WidgetBefore&&o.type!=to.WidgetAfter&&(!s||2==e||this.children[s-1].breakAfter||this.children[s-1].type==to.WidgetBefore&&e>-2))return o.coordsAt(t-n,e);i=n}}measureVisibleLineHeights(t){let e=[],{from:i,to:s}=t,o=this.view.contentDOM.clientWidth,n=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,r=-1,l=this.view.textDirection==tF.LTR;for(let h=0,a=0;as)break;if(h>=i){let u=c.dom.getBoundingClientRect();if(e.push(u.height),n){let p=c.dom.lastChild,m=p?f(p):[];if(m.length){let g=m[m.length-1],v=l?g.right-u.left:u.right-g.left;v>r&&(r=v,this.minWidth=o,this.minWidthFrom=h,this.minWidthTo=d)}}}h=d+c.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return"rtl"==getComputedStyle(this.children[e].dom).direction?tF.RTL:tF.LTR}measureTextSize(){for(let t of this.children)if(t instanceof td){let e=t.measureTextSize();if(e)return e}let i=document.createElement("div"),s,o;return i.className="cm-line",i.style.width="99999px",i.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(i);let t=f(i.firstChild)[0];s=i.getBoundingClientRect().height,o=t?t.width/27:7,i.remove()}),{lineHeight:s,charWidth:o}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new R(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,s=0;;s++){let o=s==e.viewports.length?null:e.viewports[s],n=o?o.from-1:this.length;if(n>i){let r=e.lineBlockAt(n).bottom-e.lineBlockAt(i).top;t.push(tn.replace({widget:new t5(r),block:!0,inclusive:!0,isBlockGap:!0}).range(i,n))}if(!o)break;i=o.to+1}return tn.set(t)}updateDeco(){let t=this.view.state.facet(tV).map((t,e)=>(this.dynamicDecorationMap[e]="function"==typeof t)?t(this.view):t);for(let e=t.length;ee.anchor?-1:1),s;if(!i)return;!e.empty&&(s=this.coordsAt(e.anchor,e.anchor>e.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let o=0,n=0,r=0,l=0;for(let h of this.view.state.facet(tN).map(t=>t(this.view)))if(h){let{left:a,right:c,top:d,bottom:u}=h;null!=a&&(o=Math.max(o,a)),null!=c&&(n=Math.max(n,c)),null!=d&&(r=Math.max(r,d)),null!=u&&(l=Math.max(l,u))}let f={left:i.left-o,top:i.top-r,right:i.right+n,bottom:i.bottom+l};!function(t,e,i,s,o,n,r,l){let h=t.ownerDocument,a=h.defaultView||window;for(let c=t;c;)if(1==c.nodeType){let d,u=c==h.body;if(u)d={left:0,right:a.innerWidth,top:0,bottom:a.innerHeight};else{if(c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let f=c.getBoundingClientRect();d={left:f.left,right:f.left+c.clientWidth,top:f.top,bottom:f.top+c.clientHeight}}let p=0,m=0;if("nearest"==o)e.top0&&e.bottom>d.bottom+m&&(m=e.bottom-d.bottom+m+r)):e.bottom>d.bottom&&(m=e.bottom-d.bottom+r,i<0&&e.top-m0&&e.right>d.right+p&&(p=e.right-d.right+p+n)):e.right>d.right&&(p=e.right-d.right+n,i<0&&e.leftMath.abs(w-p)&&(s="nearest"),b&&1>Math.abs(b-m)&&(o="nearest")}}if(u)break;c=c.assignedSlot||c.parentNode}else if(11==c.nodeType)c=c.host;else break}(this.view.scrollDOM,f,e.head0&&i<=0)e=v(t=t.childNodes[e-1]);else{if(1!=t.nodeType||!(e=0))return null;t=t.childNodes[e],e=0}}}class et{constructor(){this.changes=[]}compareRange(t,e){tc(t,e,this.changes)}comparePoint(t,e){tc(t,e,this.changes)}}function ee(t,e){return t.tope.top+1}function ei(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function eo(t,e,i){let s=t.nodeValue.length,o=-1,n=1e9,r=0;for(let l=0;li?c.top-i:i-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&d=(c.left+c.right)/2,f=u;if((K.chrome||K.gecko)&&M(t,l).getBoundingClientRect().left==c.right&&(f=!u),d<=0)return{node:t,offset:l+(f?1:0)};o=l+(f?1:0),n=d}}}return{node:t,offset:o>-1?o:r>0?t.nodeValue.length:0}}function en(t,{x:e,y:i},s,o=-1){var n;let r=t.contentDOM.getBoundingClientRect(),l=r.top+t.viewState.paddingTop,h,{docHeight:a}=t.viewState,c=i-l;if(c<0)return 0;if(c>a)return t.state.doc.length;for(let d=t.defaultLineHeight/2,u=!1;(h=t.elementAtHeight(c)).type!=to.Text;)for(;!((c=o>0?h.bottom+d:h.top-d)>=0)||!(c<=a);){if(u)return s?null:0;u=!0,o=-o}i=l+c;let p=h.from;if(pt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:s?null:er(t,r,h,e,i);let m=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:m,v=g.elementFromPoint(e,i);v&&!t.contentDOM.contains(v)&&(v=null),!v&&(e=Math.max(r.left+1,Math.min(r.right-1,e)),(v=g.elementFromPoint(e,i))&&!t.contentDOM.contains(v)&&(v=null));let w,b=-1;if(v&&(null===(n=t.docView.nearest(v))||void 0===n?void 0:n.isEditable)!=!1){if(m.caretPositionFromPoint){let y=m.caretPositionFromPoint(e,i);y&&({offsetNode:w,offset:b}=y)}else if(m.caretRangeFromPoint){let x=m.caretRangeFromPoint(e,i);x&&({startContainer:w,startOffset:b}=x,(!t.contentDOM.contains(w)||K.safari&&function(t,e,i){let s;if(3!=t.nodeType||e!=(s=t.nodeValue.length))return!1;for(let o=t.nextSibling;o;o=o.nextSibling)if(1!=o.nodeType||"BR"!=o.nodeName)return!1;return M(t,s-1,s).getBoundingClientRect().left>i}(w,b,e)||K.chrome&&function(t,e,i){if(0!=e)return!1;for(let s=t;;){let o=s.parentNode;if(!o||1!=o.nodeType||o.firstChild!=s)return!1;if(o.classList.contains("cm-line"))break;s=o}return i-(1==t.nodeType?t.getBoundingClientRect():M(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect()).left>5}(w,b,e))&&(w=void 0))}}if(!w||!t.docView.dom.contains(w)){let S=td.find(t.docView,p);if(!S)return c>h.top+h.height/2?h.to:h.from;({node:w,offset:b}=function t(e,i,s){let o,n,r,l,h,a,c,d,u=!1;for(let p=e.firstChild;p;p=p.nextSibling){let m=f(p);for(let g=0;gi?v.left-i:Math.max(0,i-v.right),x=(w=b).top>s?w.top-s:Math.max(0,s-w.bottom);if(0==y&&0==x)return 3==p.nodeType?eo(p,i,s):t(p,i,s);(!h||d>x||d==x&&c>y)&&(h=p,a=b,c=y,d=x,u=!y||(y>0?g0)),0==y?s>b.bottom&&(!r||r.bottomb.top)&&(n=p,l=b):r&&ee(r,b)?r=es(r,b.bottom):l&&ee(l,b)&&(l=ei(l,b.top))}}if(r&&r.bottom>=s?(h=o,a=r):l&&l.top<=s&&(h=n,a=l),!h)return{node:e,offset:0};let S=Math.max(a.left,Math.min(a.right,i));if(3==h.nodeType)return eo(h,S,s);if(u&&"false"!=h.contentEditable)return t(h,S,s);let M=Array.prototype.indexOf.call(e.childNodes,h)+(i>=(a.left+a.right)/2?1:0);return{node:e,offset:M}}(S.dom,e,i))}return t.docView.posFromDOM(w,b)}function er(t,e,i,s,o){let n=Math.round((s-e.left)*t.defaultCharacterWidth);t.lineWrapping&&i.height>1.5*t.defaultLineHeight&&(n+=Math.floor((o-i.top)/t.defaultLineHeight)*t.viewState.heightOracle.lineLength);let r=t.state.sliceDoc(i.from,i.to);return i.from+(0,l.Gz)(r,n,t.state.tabSize)}function el(t,e,i,s){let o=t.state.doc.lineAt(e.head),n=t.bidiSpans(o),r=t.textDirectionAt(o.from);for(let h=e,a=null;;){let c=function(t,e,i,s,o){var n;let r=s.head-t.from,h=-1;if(0==r){if(!o||!t.length)return null;e[0].level!=i&&(r=e[0].side(!1,i),h=0)}else if(r==t.length){if(o)return null;let a=e[e.length-1];a.level!=i&&(r=a.side(!0,i),h=e.length-1)}h<0&&(h=tZ.find(e,r,null!==(n=s.bidiLevel)&&void 0!==n?n:-1,s.assoc));let c=e[h];r==c.side(o,i)&&(r=(c=e[h+=o?1:-1]).side(!o,i));let d=o==(c.dir==i),u=(0,l.cp)(t.text,r,d);if(t1=t.text.slice(Math.min(r,u),Math.max(r,u)),u!=c.side(o,i))return l.jT.cursor(u+t.from,d?-1:1,c.level);let f=h==(o?e.length-1:0)?null:e[h+(o?1:-1)];return f||c.level==i?f&&f.levele(t));for(;;){let o=!1;for(let n of s)n.between(i.from-1,i.from+1,(t,s,n)=>{i.from>t&&i.fromi.from?l.jT.cursor(t,1):l.jT.cursor(s,-1),o=!0)});if(!o)return i}}class ea{constructor(t){this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.mouseSelection=null;let e=(e,i)=>{!this.ignoreDuringComposition(i)&&("keydown"==i.type&&this.keydown(t,i)||(this.mustFlushObserver(i)&&t.observer.forceFlush(),this.runCustomHandlers(i.type,t,i)?i.preventDefault():e(t,i)))};for(let i in eg){let s=eg[i];t.contentDOM.addEventListener(i,i=>{em(t,i)&&e(s,i)},ev[i]),this.registeredEvents.push(i)}t.scrollDOM.addEventListener("mousedown",i=>{i.target==t.scrollDOM&&e(eg.mousedown,i)}),K.chrome&&102==K.chrome_version&&t.scrollDOM.addEventListener("wheel",()=>{this.chromeScrollHack<0?t.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout(()=>{this.chromeScrollHack=-1,t.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=t.hasFocus,K.safari&&t.contentDOM.addEventListener("input",()=>null)}setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}ensureHandlers(t,e){var i;let s;for(let o of(this.customHandlers=[],e))if(s=null===(i=o.update(t).spec)||void 0===i?void 0:i.domEventHandlers)for(let n in this.customHandlers.push({plugin:o.value,handlers:s}),s)0>this.registeredEvents.indexOf(n)&&"scroll"!=n&&(this.registeredEvents.push(n),t.contentDOM.addEventListener(n,e=>{em(t,e)&&this.runCustomHandlers(n,t,e)&&e.preventDefault()}))}runCustomHandlers(t,e,i){for(let s of this.customHandlers){let o=s.handlers[t];if(o)try{if(o.call(s.plugin,i,e)||i.defaultPrevented)return!0}catch(n){tA(e.state,n)}}return!1}runScrollHandlers(t,e){for(let i of(this.lastScrollTop=t.scrollDOM.scrollTop,this.lastScrollLeft=t.scrollDOM.scrollLeft,this.customHandlers)){let s=i.handlers.scroll;if(s)try{s.call(i.plugin,e,t)}catch(o){tA(t.state,o)}}}keydown(t,e){let i;return this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),!!(9==e.keyCode&&Date.now()t.keyCode==e.keyCode))&&!e.ctrlKey||ed.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey))&&(this.pendingIOSKey=i||e,setTimeout(()=>this.flushIOSKey(t),250),!0))}flushIOSKey(t){let e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,k(t.contentDOM,e.key,e.keyCode))}ignoreDuringComposition(t){return!!/^key/.test(t.type)&&(this.composing>0||!!(K.safari&&!K.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}mustFlushObserver(t){return"keydown"==t.type&&229!=t.keyCode}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.mouseSelection&&this.mouseSelection.update(t),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}let ec=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],ed="dthko",eu=[16,17,18,20,91,92,224,225];function ef(t){return .7*t+8}class ep{constructor(t,e,i,s){let o,n;this.view=t,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParent=function(t){let e=t.ownerDocument;for(let i=t.parentNode;i&&i!=e.body;)if(1==i.nodeType){if(i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth)return i;i=i.assignedSlot||i.parentNode}else if(11==i.nodeType)i=i.host;else break;return null}(t.contentDOM);let r=t.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(l.yy.allowMultipleSelections)&&((o=t.state.facet(tg)).length?o[0](e):K.mac?e.metaKey:e.ctrlKey),this.dragMove=(n=t.state.facet(tv)).length?n[0](e):K.mac?!e.altKey:!e.ctrlKey,this.dragging=!!function(t,e){let{main:i}=t.state.selection;if(i.empty)return!1;let s=c(t.root);if(!s||0==s.rangeCount)return!0;let o=s.getRangeAt(0).getClientRects();for(let n=0;n=e.clientX&&r.top<=e.clientY&&r.bottom>=e.clientY)return!0}return!1}(t,e)&&1==eT(e)&&null,!1===this.dragging&&(e.preventDefault(),this.select(e))}move(t){var e;if(0==t.buttons)return this.destroy();if(!1!==this.dragging)return;this.select(this.lastEvent=t);let i=0,s=0,o=(null===(e=this.scrollParent)||void 0===e?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};t.clientX<=o.left?i=-ef(o.left-t.clientX):t.clientX>=o.right&&(i=ef(t.clientX-o.right)),t.clientY<=o.top?s=-ef(o.top-t.clientY):t.clientY>=o.bottom&&(s=ef(t.clientY-o.bottom)),this.setScrollSpeed(i,s)}up(t){null==this.dragging&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}select(t){let e=this.style.get(t,this.extend,this.multiple);(this.mustSelect||!e.eq(this.view.state.selection)||e.main.assoc!=this.view.state.selection.main.assoc)&&this.view.dispatch({selection:e,userEvent:"select.pointer"}),this.mustSelect=!1}update(t){t.docChanged&&this.dragging&&(this.dragging=this.dragging.map(t.changes)),this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function em(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let i=e.target,s;i!=t.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(s=T.get(i))&&s.ignoreEvent(e))return!1;return!0}let eg=Object.create(null),ev=Object.create(null),ew=K.ie&&K.ie_version<15||K.ios&&K.webkit_version<604;function eb(t,e){let{state:i}=t,s,o=1,n=i.toText(e),r=n.lines==i.selection.ranges.length;if(null!=eR&&i.selection.ranges.every(t=>t.empty)&&eR==n.toString()){let h=-1;s=i.changeByRange(t=>{let s=i.doc.lineAt(t.from);if(s.from==h)return{range:t};h=s.from;let a=i.toText((r?n.line(o++).text:e)+i.lineBreak);return{changes:{from:s.from,insert:a},range:l.jT.cursor(t.from+a.length)}})}else s=r?i.changeByRange(t=>{let e=n.line(o++);return{changes:{from:t.from,to:t.to,insert:e.text},range:l.jT.cursor(t.from+e.length)}}):i.replaceSelection(n);t.dispatch(s,{userEvent:"input.paste",scrollIntoView:!0})}function ey(t,e,i,s){if(1==s)return l.jT.cursor(e,i);if(2==s)return function(t,e,i=1){let s=t.charCategorizer(e),o=t.doc.lineAt(e),n=e-o.from;if(0==o.length)return l.jT.cursor(e);0==n?i=1:n==o.length&&(i=-1);let r=n,h=n;i<0?r=(0,l.cp)(o.text,n,!1):h=(0,l.cp)(o.text,n);let a=s(o.text.slice(r,h));for(;r>0;){let c=(0,l.cp)(o.text,r,!1);if(s(o.text.slice(c,r))!=a)break;r=c}for(;h{t.inputState.setSelectionOrigin("select"),27==e.keyCode?t.inputState.lastEscPress=Date.now():0>eu.indexOf(e.keyCode)&&(t.inputState.lastEscPress=0)},eg.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},eg.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},ev.touchstart=ev.touchmove={passive:!0},eg.mousedown=(t,e)=>{let i,s,o;if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return;let n=null;for(let r of t.state.facet(tw))if(n=r(t,e))break;if(n||0!=e.button||(i=eM(t,e),s=eT(e),o=t.state.selection,n={update(t){t.docChanged&&(i.pos=t.changes.mapPos(i.pos),o=o.map(t.changes))},get(e,n,r){let h=eM(t,e),a=ey(t,h.pos,h.bias,s);if(i.pos!=h.pos&&!n){let c=ey(t,i.pos,i.bias,s),d=Math.min(c.from,a.from),u=Math.max(c.to,a.to);a=d1&&o.ranges.some(t=>t.eq(a))?function(t,e){for(let i=0;;i++)if(t.ranges[i].eq(e))return l.jT.create(t.ranges.slice(0,i).concat(t.ranges.slice(i+1)),t.mainIndex==i?0:t.mainIndex-(t.mainIndex>i?1:0))}(o,a):r?o.addRange(a):l.jT.create([a])}}),n){let h=t.root.activeElement!=t.contentDOM;h&&t.observer.ignore(()=>S(t.contentDOM)),t.inputState.startMouseSelection(new ep(t,e,n,h))}};let ex=(t,e)=>t>=e.top&&t<=e.bottom,eS=(t,e,i)=>ex(e,i)&&t>=i.left&&t<=i.right;function eM(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:i,bias:function(t,e,i,s){let o=td.find(t.docView,e);if(!o)return 1;let n=e-o.posAtStart;if(0==n)return 1;if(n==o.length)return -1;let r=o.coordsAt(n,-1);if(r&&eS(i,s,r))return -1;let l=o.coordsAt(n,1);return l&&eS(i,s,l)?1:r&&ex(s,r)?-1:1}(t,i,e.clientX,e.clientY)}}let ek=K.ie&&K.ie_version<=11,eC=null,eA=0,eD=0;function eT(t){if(!ek)return t.detail;let e=eC,i=eD;return eC=t,eD=Date.now(),eA=!e||i>Date.now()-400&&2>Math.abs(e.clientX-t.clientX)&&2>Math.abs(e.clientY-t.clientY)?(eA+1)%3:1}function eO(t,e,i,s){if(!i)return;let o=t.posAtCoords({x:e.clientX,y:e.clientY},!1);e.preventDefault();let{mouseSelection:n}=t.inputState,r=s&&n&&n.dragging&&n.dragMove?{from:n.dragging.from,to:n.dragging.to}:null,l={from:o,insert:i},h=t.state.changes(r?[r,l]:l);t.focus(),t.dispatch({changes:h,selection:{anchor:h.mapPos(o,-1),head:h.mapPos(o,1)},userEvent:r?"move.drop":"input.drop"})}eg.dragstart=(t,e)=>{let{selection:{main:i}}=t.state,{mouseSelection:s}=t.inputState;s&&(s.dragging=i),e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(i.from,i.to)),e.dataTransfer.effectAllowed="copyMove")},eg.drop=(t,e)=>{if(!e.dataTransfer)return;if(t.state.readOnly)return e.preventDefault();let i=e.dataTransfer.files;if(i&&i.length){e.preventDefault();let s=Array(i.length),o=0,n=()=>{++o==i.length&&eO(t,e,s.filter(t=>null!=t).join(t.state.lineBreak),!1)};for(let r=0;r{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(s[r]=l.result),n()},l.readAsText(i[r])}}else eO(t,e,e.dataTransfer.getData("Text"),!0)},eg.paste=(t,e)=>{if(t.state.readOnly)return e.preventDefault();t.observer.flush();let i=ew?null:e.clipboardData;i?(eb(t,i.getData("text/plain")),e.preventDefault()):function(t){let e=t.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{t.focus(),i.remove(),eb(t,i.value)},50)}(t)};let eR=null;function eE(t){setTimeout(()=>{t.hasFocus!=t.inputState.notifiedFocused&&t.update([])},10)}eg.copy=eg.cut=(t,e)=>{let{text:i,ranges:s,linewise:o}=function(t){let e=[],i=[],s=!1;for(let o of t.selection.ranges)o.empty||(e.push(t.sliceDoc(o.from,o.to)),i.push(o));if(!e.length){let n=-1;for(let{from:r}of t.selection.ranges){let l=t.doc.lineAt(r);l.number>n&&(e.push(l.text),i.push({from:l.from,to:Math.min(t.doc.length,l.to+1)})),n=l.number}s=!0}return{text:e.join(t.lineBreak),ranges:i,linewise:s}}(t.state);if(!i&&!o)return;eR=o?i:null;let n=ew?null:e.clipboardData;n?(e.preventDefault(),n.clearData(),n.setData("text/plain",i)):function(t,e){let i=t.dom.parentNode;if(!i)return;let s=i.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px",s.value=e,s.focus(),s.selectionEnd=e.length,s.selectionStart=0,setTimeout(()=>{s.remove(),t.focus()},50)}(t,i),"cut"!=e.type||t.state.readOnly||t.dispatch({changes:s,scrollIntoView:!0,userEvent:"delete.cut"})},eg.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),eE(t)},eg.blur=t=>{t.observer.clearSelectionRange(),eE(t)},eg.compositionstart=eg.compositionupdate=t=>{null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},eg.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionFirstChange=null,K.chrome&&K.android&&t.observer.flushSoon(),setTimeout(()=>{t.inputState.composing<0&&t.docView.compositionDeco.size&&t.update([])},50)},eg.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},eg.beforeinput=(t,e)=>{var i;let s;if(K.chrome&&K.android&&(s=ec.find(t=>t.inputType==e.inputType))&&(t.observer.delayAndroidKey(s.key,s.keyCode),"Backspace"==s.key||"Delete"==s.key)){let o=(null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0;setTimeout(()=>{var e;((null===(e=window.visualViewport)||void 0===e?void 0:e.height)||0)>o+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}};let eB=["pre-wrap","normal","pre-line","break-spaces"];class eL{constructor(t){this.lineWrapping=t,this.doc=l.xv.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(i+=Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength)),this.lineHeight*i}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return eB.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let i=0;i-1,r=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=n;if(this.lineWrapping=n,this.lineHeight=e,this.charWidth=i,this.lineLength=s,r){this.heightSamples={};for(let l=0;l0}set outdated(t){this.flags=(t?2:0)|-3&this.flags}setHeight(t,e){this.height!=e&&(Math.abs(this.height-e)>.001&&(t.heightChanged=!0),this.height=e)}replace(t,e,i){return eP.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,s){let o=this;for(let n=s.length-1;n>=0;n--){let{fromA:r,toA:l,fromB:h,toB:a}=s[n],c=o.lineAt(r,eN.ByPosNoHeight,e,0,0),d=c.to>=l?c:o.lineAt(l,eN.ByPosNoHeight,e,0,0);for(a+=d.to-l,l=d.to;n>0&&c.from<=s[n-1].toA;)r=s[n-1].fromA,h=s[n-1].fromB,n--,r2*o){let n=t[e-1];n.break?t.splice(--e,1,n.left,null,n.right):t.splice(--e,1,n.left,n.right),i+=1+n.break,s-=n.size}else if(o>2*s){let r=t[i];r.break?t.splice(i,1,r.left,null,r.right):t.splice(i,1,r.left,r.right),i+=2+r.break,o-=r.size}else break}else if(s=o&&n(this.blockAt(0,i,s,o))}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more&&this.setHeight(t,s.heights[s.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class ez extends eW{constructor(t,e){super(t,e,to.Text),this.collapsed=0,this.widgetHeight=0}replace(t,e,i){let s=i[0];return 1==i.length&&(s instanceof ez||s instanceof eF&&4&s.flags)&&10>Math.abs(this.length-s.length)?(s instanceof eF?s=new ez(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):eP.of(i)}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more?this.setHeight(t,s.heights[s.index++]):(i||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class eF extends eP{constructor(t){super(t,0)}lines(t,e){let i=t.lineAt(e).number,s=t.lineAt(e+this.length).number;return{firstLine:i,lastLine:s,lineHeight:this.height/(s-i+1)}}blockAt(t,e,i,s){let{firstLine:o,lastLine:n,lineHeight:r}=this.lines(e,s),l=Math.max(0,Math.min(n-o,Math.floor((t-i)/r))),{from:h,length:a}=e.line(o+l);return new eH(h,a,i+r*l,r,to.Text)}lineAt(t,e,i,s,o){if(e==eN.ByHeight)return this.blockAt(t,i,s,o);if(e==eN.ByPosNoHeight){let{from:n,to:r}=i.lineAt(t);return new eH(n,r-n,0,0,to.Text)}let{firstLine:l,lineHeight:h}=this.lines(i,o),{from:a,length:c,number:d}=i.lineAt(t);return new eH(a,c,s+h*(d-l),h,to.Text)}forEachLine(t,e,i,s,o,n){let{firstLine:r,lineHeight:l}=this.lines(i,o);for(let h=Math.max(t,o),a=Math.min(o+this.length,e);h<=a;){let c=i.lineAt(h);h==t&&(s+=l*(c.number-r)),n(new eH(c.from,c.length,s,l,to.Text)),s+=l,h=c.to+1}}replace(t,e,i){let s=this.length-e;if(s>0){let o=i[i.length-1];o instanceof eF?i[i.length-1]=new eF(o.length+s):i.push(null,new eF(s-1))}if(t>0){let n=i[0];n instanceof eF?i[0]=new eF(t+n.length):i.unshift(new eF(t-1),null)}return eP.of(i)}decomposeLeft(t,e){e.push(new eF(t-1),null)}decomposeRight(t,e){e.push(null,new eF(this.length-t-1))}updateHeight(t,e=0,i=!1,s){let o=e+this.length;if(s&&s.from<=e+this.length&&s.more){let n=[],r=Math.max(e,s.from),l=-1,h=t.heightChanged;for(s.from>e&&n.push(new eF(s.from-e-1).updateHeight(t,e));r<=o&&s.more;){let a=t.doc.lineAt(r).length;n.length&&n.push(null);let c=s.heights[s.index++];-1==l?l=c:Math.abs(c-l)>=.001&&(l=-2);let d=new ez(a,c);d.outdated=!1,n.push(d),r+=a+1}r<=o&&n.push(null,new eF(o-r).updateHeight(t,r));let u=eP.of(n);return t.heightChanged=h||l<0||Math.abs(u.height-this.height)>=.001||Math.abs(l-this.lines(t.doc,e).lineHeight)>=.001,u}return(i||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class eI extends eP{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0)),this.left=t,this.right=i,this.size=t.size+i.size}get break(){return 1&this.flags}blockAt(t,e,i,s){let o=i+this.left.height;return tr))return h;let a=e==eN.ByPosNoHeight?eN.ByPosNoHeight:eN.ByPos;return l?h.join(this.right.lineAt(r,a,i,n,r)):this.left.lineAt(r,a,i,s,o).join(h)}forEachLine(t,e,i,s,o,n){let r=s+this.left.height,l=o+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,e,i,r,l,n);else{let h=this.lineAt(l,eN.ByPos,i,s,o);t=t&&h.from<=e&&n(h),e>h.to&&this.right.forEachLine(h.to+1,e,i,r,l,n)}}replace(t,e,i){let s=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-s,e-s,i));let o=[];t>0&&this.decomposeLeft(t,o);let n=o.length;for(let r of i)o.push(r);if(t>0&&eq(o,n-1),e=++i&&e.push(null),t>i&&this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,s=i+this.break;if(t>=s)return this.right.decomposeRight(t-s,e);t2*e.size||e.size>2*t.size?eP.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,i=!1,s){let{left:o,right:n}=this,r=e+o.length+this.break,l=null;return(s&&s.from<=e+o.length&&s.more?l=o=o.updateHeight(t,e,i,s):o.updateHeight(t,e,i),s&&s.from<=r+n.length&&s.more?l=n=n.updateHeight(t,r,i,s):n.updateHeight(t,r,i),l)?this.balanced(o,n):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function eq(t,e){let i,s;null==t[e]&&(i=t[e-1])instanceof eF&&(s=t[e+1])instanceof eF&&t.splice(e-1,3,new eF(i.length+1+s.length))}class ej{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let i=Math.min(e,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof ez?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new ez(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,i){if(t=5)&&this.addLineDeco(s,o)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&this.nodes.push(new ez(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let i=new eF(e-t);return this.oracle.doc.lineAt(t).to==e&&(i.flags|=4),i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof ez)return t;let e=new ez(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine(),t.type!=to.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,t.type!=to.WidgetBefore&&(this.covering=t)}addLineDeco(t,e){let i=this.ensureLine();i.length+=e,i.collapsed+=e,i.widgetHeight=Math.max(i.widgetHeight,t),this.writtenTo=this.pos=this.pos+e}finish(t){let e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof ez||this.isCovered?(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&"visible"!=d.overflow){let u=c.getBoundingClientRect();n=Math.max(n,u.left),r=Math.min(r,u.right),l=Math.max(l,u.top),h=a==t.parentNode?u.bottom:Math.min(h,u.bottom)}a="absolute"==d.position||"fixed"==d.position?c.offsetParent:c.parentNode}else if(11==a.nodeType)a=a.host;else break;return{left:n-i.left,right:Math.max(n,r)-i.left,top:l-(i.top+e),bottom:Math.max(l,h)-(i.top+e)}}function eG(t,e){let i=t.getBoundingClientRect();return{left:0,right:i.right-i.left,top:e,bottom:i.bottom-(i.top+e)}}class eX{constructor(t,e,i){this.from=t,this.to=e,this.size=i}static same(t,e){if(t.length!=e.length)return!1;for(let i=0;i"function"!=typeof t&&"cm-lineWrapping"==t.class);this.heightOracle=new eL(e),this.stateDeco=t.facet(tV).filter(t=>"function"!=typeof t),this.heightMap=eP.empty().applyChanges(this.stateDeco,l.xv.empty,this.heightOracle.setDoc(t.doc),[new tW(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=tn.set(this.lineGaps.map(t=>t.draw(!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let s=i?e.head:e.anchor;if(!t.some(({from:t,to:e})=>s>=t&&s<=e)){let{from:o,to:n}=this.lineBlockAt(s);t.push(new eY(o,n))}}this.viewports=t.sort((t,e)=>t.from-e.from),this.scaler=this.heightMap.height<=7e6?eJ:new e0(this.heightOracle.doc,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,t=>{this.viewportLines.push(1==this.scaler.scale?t:e1(t,this.scaler))})}update(t,e=null){var i,s;let o;this.state=t.state;let n=this.stateDeco;this.stateDeco=this.state.facet(tV).filter(t=>"function"!=typeof t);let r=t.changedRanges,h=tW.extendWithRanges(r,(i=this.stateDeco,s=t?t.changes:l.as.empty(this.state.doc.length),o=new eK,l.Xs.compare(n,i,s,o,0),o.changes)),a=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),h),this.heightMap.height!=a&&(t.flags|=2);let c=h.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.headc.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,e));let d=!t.changes.empty||2&t.flags||c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,this.updateForViewport(),d&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(tM)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e),s=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?tF.RTL:tF.LTR;let n=this.heightOracle.mustRefreshForWrapping(o),r=n||this.mustMeasureContent||this.contentDOMHeight!=e.clientHeight;this.contentDOMHeight=e.clientHeight,this.mustMeasureContent=!1;let h=0,a=0,c=parseInt(i.paddingTop)||0,d=parseInt(i.paddingBottom)||0;(this.paddingTop!=c||this.paddingBottom!=d)&&(this.paddingTop=c,this.paddingBottom=d,h|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(s.lineWrapping&&(r=!0),this.editorWidth=t.scrollDOM.clientWidth,h|=8);let u=(this.printing?eG:e$)(e,this.paddingTop),f=u.top-this.pixelViewport.top,p=u.bottom-this.pixelViewport.bottom;this.pixelViewport=u;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(r=!0)),!this.inView&&!this.scrollTarget)return 0;let g=e.clientWidth;if((this.contentDOMWidth!=g||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=g,this.editorHeight=t.scrollDOM.clientHeight,h|=8),r){let v=t.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(v)&&(n=!0),n||s.lineWrapping&&Math.abs(g-this.contentDOMWidth)>s.charWidth){let{lineHeight:w,charWidth:b}=t.docView.measureTextSize();(n=w>0&&s.refresh(o,w,b,g/b,v))&&(t.docView.minWidth=0,h|=8)}for(let y of(f>0&&p>0?a=Math.max(f,p):f<0&&p<0&&(a=Math.min(f,p)),s.heightChanged=!1,this.viewports)){let x=y.from==this.viewport.from?v:t.docView.measureVisibleLineHeights(y);this.heightMap=(n?eP.empty().applyChanges(this.stateDeco,l.xv.empty,this.heightOracle,[new tW(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(s,0,n,new eV(y.from,x))}s.heightChanged&&(h|=2)}let S=!this.viewportIsAppropriate(this.viewport,a)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return S&&(this.viewport=this.getViewport(a,this.scrollTarget)),this.updateForViewport(),(2&h||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(n?[]:this.lineGaps,t)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),s=this.heightMap,o=this.state.doc,{visibleTop:n,visibleBottom:r}=this,l=new eY(s.lineAt(n-1e3*i,eN.ByHeight,o,0,0).from,s.lineAt(r+(1-i)*1e3,eN.ByHeight,o,0,0).to);if(e){let{head:h}=e.range;if(hl.to){let a=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),c=s.lineAt(h,eN.ByPos,o,0,0),d;d="center"==e.y?(c.top+c.bottom)/2-a/2:"start"==e.y||"nearest"==e.y&&h=r+Math.max(10,Math.min(i,250)))&&s>n-2e3&&o>1,n=s<<1;if(this.defaultTextDirection!=tF.LTR&&!i)return[];let r=[],h=(s,n,a,c)=>{if(n-ss&&ft.from>=a.from&&t.to<=a.to&&Math.abs(t.from-s)t.frome));if(!p){if(nt.from<=n&&t.to>=n)){let m=e.moveToLineBoundary(l.jT.cursor(n),!1,!0).head;m>s&&(n=m)}p=new eX(s,n,this.gapSize(a,s,n,c))}r.push(p)};for(let a of this.viewportLines){let c,d;if(a.lengtho&&(s.push({from:o,to:t}),n+=t-o),o=e}},20),oa.from&&h(a.from,c,a,u),dt.draw(this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let e=[];l.Xs.spans(t,this.viewport.from,this.viewport.to,{span(t,i){e.push({from:t,to:i})},point(){}},20);let i=e.length!=this.visibleRanges.length||this.visibleRanges.some((t,i)=>t.from!=e[i].from||t.to!=e[i].to);return this.visibleRanges=e,i?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||e1(this.heightMap.lineAt(t,eN.ByPos,this.state.doc,0,0),this.scaler)}lineBlockAtHeight(t){return e1(this.heightMap.lineAt(this.scaler.fromDOM(t),eN.ByHeight,this.state.doc,0,0),this.scaler)}elementAtHeight(t){return e1(this.heightMap.blockAt(this.scaler.fromDOM(t),this.state.doc,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class eY{constructor(t,e){this.from=t,this.to=e}}function eQ({total:t,ranges:e},i){if(i<=0)return e[0].from;if(i>=1)return e[e.length-1].to;let s=Math.floor(t*i);for(let o=0;;o++){let{from:n,to:r}=e[o],l=r-n;if(s<=l)return n+s;s-=l}}function eZ(t,e){let i=0;for(let{from:s,to:o}of t.ranges){if(e<=o){i+=e-s;break}i+=o-s}return i/t.total}let eJ={toDOM:t=>t,fromDOM:t=>t,scale:1};class e0{constructor(t,e,i){let s=0,o=0,n=0;for(let r of(this.viewports=i.map(({from:i,to:o})=>{let n=e.lineAt(i,eN.ByPos,t,0,0).top,r=e.lineAt(o,eN.ByPos,t,0,0).bottom;return s+=r-n,{from:i,to:o,top:n,bottom:r,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(e.height-s),this.viewports))r.domTop=n+(r.top-o)*this.scale,n=r.domBottom=r.domTop+(r.bottom-r.top),o=r.bottom}toDOM(t){for(let e=0,i=0,s=0;;e++){let o=ee1(t,e)):t.type)}let e2=l.r$.define({combine:t=>t.join(" ")}),e8=l.r$.define({combine:t=>t.indexOf(!0)>-1}),e3=h.V.newName(),e9=h.V.newName(),e5=h.V.newName(),e4={"&light":"."+e9,"&dark":"."+e5};function e6(t,e,i){return new h.V(e,{finish:e=>/&/.test(e)?e.replace(/&\w*/,e=>{if("&"==e)return t;if(!i||!i[e])throw RangeError(`Unsupported selector: ${e}`);return i[e]}):t+" "+e})}let e7=e6("."+e3,{"&.cm-editor":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},e4);class it{constructor(t,e,i,s){this.typeOver=s,this.bounds=null,this.text="";let{impreciseHead:o,impreciseAnchor:n}=t.docView;if(t.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let r=o||n?[]:function(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:n}=t.observer.selectionRange;return i&&(e.push(new t3(i,s)),(o!=i||n!=s)&&e.push(new t3(o,n))),e}(t),h=new t2(r,t.state);h.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=h.text,this.newSel=function(t,e){if(0==t.length)return null;let i=t[0].pos,s=2==t.length?t[1].pos:i;return i>-1&&s>-1?l.jT.single(i+e,s+e):null}(r,this.bounds.from)}else{let a=t.observer.selectionRange,c=o&&o.node==a.focusNode&&o.offset==a.focusOffset||!d(t.contentDOM,a.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(a.focusNode,a.focusOffset),u=n&&n.node==a.anchorNode&&n.offset==a.anchorOffset||!d(t.contentDOM,a.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(a.anchorNode,a.anchorOffset);this.newSel=l.jT.single(u,c)}}}function ie(t,e){let i;let{newSel:s}=e,o=t.state.selection.main;if(e.bounds){let{from:n,to:r}=e.bounds,h=o.from,a=null;(8===t.inputState.lastKeyCode&&t.inputState.lastKeyTime>Date.now()-100||K.android&&e.text.length0&&l>0&&t.charCodeAt(r-1)==e.charCodeAt(l-1);)r--,l--;if("end"==s){let h=Math.max(0,n-Math.min(r,l));i-=r+h-n}if(r=r?n-i:0;n-=a,l=n+(l-r),r=n}else if(l=l?n-i:0;n-=c,r=n+(r-l),l=n}return{from:n,toA:r,toB:l}}(t.state.doc.sliceString(n,r,"￿"),e.text,h-n,a);c&&(K.chrome&&13==t.inputState.lastKeyCode&&c.toB==c.from+2&&"￿￿"==e.text.slice(c.from,c.toB)&&c.toB--,i={from:n+c.from,to:n+c.toA,insert:l.xv.of(e.text.slice(c.from,c.toB).split("￿"))})}else s&&(!t.hasFocus||!t.state.facet(tD)||s.main.eq(o))&&(s=null);if(!i&&!s)return!1;if(!i&&e.typeOver&&!o.empty&&s&&s.main.empty?i={from:o.from,to:o.to,insert:t.state.doc.slice(o.from,o.to)}:i&&i.from>=o.from&&i.to<=o.to&&(i.from!=o.from||i.to!=o.to)&&o.to-o.from-(i.to-i.from)<=4?i={from:o.from,to:o.to,insert:t.state.doc.slice(o.from,i.from).append(i.insert).append(t.state.doc.slice(i.to,o.to))}:(K.mac||K.android)&&i&&i.from==i.to&&i.from==o.head-1&&/^\. ?$/.test(i.insert.toString())?(s&&2==i.insert.length&&(s=l.jT.single(s.main.anchor-1,s.main.head-1)),i={from:o.from,to:o.to,insert:l.xv.of([" "])}):K.chrome&&i&&i.from==i.to&&i.from==o.head&&"\n "==i.insert.toString()&&t.lineWrapping&&(s&&(s=l.jT.single(s.main.anchor-1,s.main.head-1)),i={from:o.from,to:o.to,insert:l.xv.of([" "])}),i){let d,u=t.state;if(K.ios&&t.inputState.flushIOSKey(t)||K.android&&(i.from==o.from&&i.to==o.to&&1==i.insert.length&&2==i.insert.lines&&k(t.contentDOM,"Enter",13)||i.from==o.from-1&&i.to==o.to&&0==i.insert.length&&k(t.contentDOM,"Backspace",8)||i.from==o.from&&i.to==o.to+1&&0==i.insert.length&&k(t.contentDOM,"Delete",46)))return!0;let f=i.insert.toString();if(t.state.facet(tx).some(e=>e(t,i.from,i.to,f)))return!0;if(t.inputState.composing>=0&&t.inputState.composing++,i.from>=o.from&&i.to<=o.to&&i.to-i.from>=(o.to-o.from)/3&&(!s||s.main.empty&&s.main.from==i.from+i.insert.length)&&t.inputState.composing<0){let p=o.fromi.to?u.sliceDoc(i.to,o.to):"";d=u.replaceSelection(t.state.toText(p+i.insert.sliceString(0,void 0,t.state.lineBreak)+m))}else{let g=u.changes(i),v=s&&!u.selection.main.eq(s.main)&&s.main.to<=g.newLength?s.main:void 0;if(u.selection.ranges.length>1&&t.inputState.composing>=0&&i.to<=o.to&&i.to>=o.to-10){let w=t.state.sliceDoc(i.from,i.to),b=t4(t)||t.state.doc.lineAt(o.head),y=o.to-i.to,x=o.to-o.from;d=u.changeByRange(e=>{if(e.from==o.from&&e.to==o.to)return{changes:g,range:v||e.map(g)};let s=e.to-y,n=s-w.length;if(e.to-e.from!=x||t.state.sliceDoc(n,s)!=w||b&&e.to>=b.from&&e.from<=b.to)return{range:e};let r=u.changes({from:n,to:s,insert:i.insert}),h=e.to-o.to;return{changes:r,range:v?l.jT.range(Math.max(0,v.anchor+h),Math.max(0,v.head+h)):e.map(r)}})}else d={changes:g,selection:v&&u.selection.replaceRange(v)}}let S="input.type";return t.composing&&(S+=".compose",t.inputState.compositionFirstChange&&(S+=".start",t.inputState.compositionFirstChange=!1)),t.dispatch(d,{scrollIntoView:!0,userEvent:S}),!0}if(!s||s.main.eq(o))return!1;{let M=!1,C="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(M=!0),C=t.inputState.lastSelectionOrigin),t.dispatch({selection:s,scrollIntoView:M,userEvent:C}),!0}}let ii={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},is=K.ie&&K.ie_version<=11;class io{constructor(t){this.view=t,this.active=!1,this.selectionRange=new y,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.resizeContent=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(e=>{for(let i of e)this.queue.push(i);(K.ie&&K.ie_version<=11||K.ios&&t.composing)&&e.some(t=>"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length)?this.flushSoon():this.flush()}),is&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var t;(null===(t=this.view.docView)||void 0===t?void 0:t.lastUpdate)this.view.requestMeasure()),this.resizeContent.observe(t.contentDOM)),this.addWindowListeners(this.win=t.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runScrollHandlers(this.view,t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((e,i)=>e!=t[i]))){for(let e of(this.gapIntersection.disconnect(),t))this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(tD)?i.root.activeElement!=this.dom:!u(i.dom,s))return;let o=s.anchorNode&&i.docView.nearest(s.anchorNode);if(o&&o.ignoreEvent(t)){e||(this.selectionChanged=!1);return}(K.ie&&K.ie_version<=11||K.android&&K.chrome)&&!i.state.selection.main.empty&&s.focusNode&&p(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=K.safari&&11==t.root.nodeType&&function(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}(this.dom.ownerDocument)==this.dom&&function(t){let e=null;function i(t){t.preventDefault(),t.stopImmediatePropagation(),e=t.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",i,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",i,!0),!e)return null;let s=e.startContainer,o=e.startOffset,n=e.endContainer,r=e.endOffset,l=t.docView.domAtPos(t.state.selection.main.anchor);return p(l.node,l.offset,n,r)&&([s,o,n,r]=[n,r,s,o]),{anchorNode:s,anchorOffset:o,focusNode:n,focusOffset:r}}(this.view)||c(t.root);if(!e||this.selectionRange.eq(e))return!1;let i=u(this.dom,e);return i&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let t=this.delayedAndroidKey;t&&(this.clearDelayedAndroidKey(),!this.flush()&&t.force&&k(this.dom,t.key,t.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(s)}this.delayedAndroidKey&&"Enter"!=t||(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}processRecords(){let t=this.queue;for(let e of this.observer.takeRecords())t.push(e);t.length&&(this.queue=[]);let i=-1,s=-1,o=!1;for(let n of t){let r=this.readMutation(n);r&&(r.typeOver&&(o=!0),-1==i?{from:i,to:s}=r:(i=Math.min(r.from,i),s=Math.max(r.to,s)))}return{from:i,to:s,typeOver:o}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords(),s=this.selectionChanged&&u(this.dom,this.selectionRange);return t<0&&!s?null:(t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1,new it(this.view,t,e,i))}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return!1;let i=this.view.state,s=ie(this.view,e);return this.view.state==i&&this.view.update([]),s}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty("attributes"==t.type),"attributes"==t.type&&(e.dirty|=4),"childList"==t.type){let i=ir(e,t.previousSibling||t.target.previousSibling,-1),s=ir(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:s?e.posBefore(s):e.posAtEnd,typeOver:!1}}return"characterData"==t.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,e,i,s;for(let o of(this.stop(),null===(t=this.intersection)||void 0===t||t.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect(),null===(s=this.resizeContent)||void 0===s||s.disconnect(),this.scrollTargets))o.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function ir(t,e,i){for(;e;){let s=T.get(e);if(s&&s.parent==t)return s;let o=e.parentNode;e=o!=t.dom?o:i>0?e.nextSibling:e.previousSibling}return null}class il{constructor(t={}){for(let e of(this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=t.dispatch||(t=>this.update([t])),this.dispatch=this.dispatch.bind(this),this._root=t.root||function(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(t.parent)||document,this.viewState=new eU(t.state||l.yy.create(t)),this.plugins=this.state.facet(tO).map(t=>new tE(t)),this.plugins))e.update(this);this.observer=new io(this),this.inputState=new ea(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new t9(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),t.parent&&t.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}dispatch(...t){this._dispatch(1==t.length&&t[0]instanceof l.YW?t[0]:this.state.update(...t))}update(t){if(0!=this.updateState)throw Error("Calls to EditorView.update are not allowed while an update is in progress");let e=!1,i=!1,s,o=this.state;for(let n of t){if(n.startState!=o)throw RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=n.state}if(this.destroyed){this.viewState.state=o;return}let r=this.observer.delayedAndroidKey,h=null;if(r?(this.observer.clearDelayedAndroidKey(),((h=this.observer.readChange())&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(h=null)):this.observer.clear(),o.facet(l.yy.phrases)!=this.state.facet(l.yy.phrases))return this.setState(o);s=tz.create(this,o,t);let a=this.viewState.scrollTarget;try{for(let c of(this.updateState=2,t)){if(a&&(a=a.map(c.changes)),c.scrollIntoView){let{main:d}=c.state.selection;a=new tk(d.empty?d:l.jT.cursor(d.head,d.head>d.anchor?-1:1))}for(let u of c.effects)u.is(tC)&&(a=u.value)}this.viewState.update(s,a),this.bidiCache=ic.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),e=this.docView.update(s),this.state.facet(tP)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(e,t.some(t=>t.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(e2)!=s.state.facet(e2)&&(this.viewState.mustMeasureContent=!0),(e||i||a||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!s.empty)for(let f of this.state.facet(ty))f(s);h&&!ie(this,h)&&r.force&&k(this.contentDOM,r.key,r.keyCode)}setState(t){if(0!=this.updateState)throw Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);for(let s of(this.viewState=new eU(t),this.plugins=t.facet(tO).map(t=>new tE(t)),this.pluginMap.clear(),this.plugins))s.update(this);this.docView=new t9(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(tO),i=t.state.facet(tO);if(e!=i){let s=[];for(let o of i){let n=e.indexOf(o);if(n<0)s.push(new tE(o));else{let r=this.plugins[n];r.mustUpdate=t,s.push(r)}}for(let l of this.plugins)l.mustUpdate!=t&&l.destroy(this);this.plugins=s,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let h of this.plugins)h.mustUpdate=t;for(let a=0;a-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,t&&this.observer.forceFlush();let e=null,{scrollHeight:i,scrollTop:s,clientHeight:o}=this.scrollDOM,n=s>i-o-4?i:s;try{for(let r=0;;r++){this.updateState=1;let l=this.viewport,h=this.viewState.lineBlockAtHeight(n),a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(r>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];4&a||([this.measureRequests,c]=[c,this.measureRequests]);let d=c.map(t=>{try{return t.read(this)}catch(e){return tA(this.state,e),ia}}),u=tz.create(this,this.state,[]),f=!1,p=!1;u.flags|=a,e?e.flags|=a:e=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),f=this.docView.update(u));for(let m=0;m1||w<-1)&&(this.scrollDOM.scrollTop+=w,p=!0)}}if(f&&this.docView.updateSelection(!0),this.viewport.from==l.from&&this.viewport.to==l.to&&!p&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let b of this.state.facet(ty))b(e)}get themeClasses(){return e3+" "+(this.state.facet(e8)?e5:e9)+" "+this.state.facet(e2)}updateAttrs(){let t=id(this,tB,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(tD)?"true":"false",class:"cm-content",style:`${K.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),id(this,tL,e);let i=this.observer.ignore(()=>{let i=ti(this.contentDOM,this.contentAttrs,e),s=ti(this.dom,this.editorAttrs,t);return i||s});return this.editorAttrs=t,this.contentAttrs=e,i}showAnnouncements(t){let e=!0;for(let i of t)for(let s of i.effects)s.is(il.announce)&&(e&&(this.announceDOM.textContent=""),e=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=s.value)}mountStyles(){this.styleModules=this.state.facet(tP),h.V.mount(this.root,this.styleModules.concat(e7).reverse())}readMeasured(){if(2==this.updateState)throw Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(null!=t.key){for(let e=0;ee.spec==t)||null),e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return eh(this,t,el(this,t,e,i))}moveByGroup(t,e){return eh(this,t,el(this,t,e,e=>{var i;let s,o;return i=t.head,o=(s=this.state.charCategorizer(i))(e),t=>{let e=s(t);return o==l.D0.Space&&(o=e),o==e}}))}moveToLineBoundary(t,e,i=!0){return function(t,e,i,s){let o=t.state.doc.lineAt(e.head),n=s&&t.lineWrapping?t.coordsAtPos(e.assoc<0&&e.head>o.from?e.head-1:e.head):null;if(n){let r=t.dom.getBoundingClientRect(),h=t.textDirectionAt(o.from),a=t.posAtCoords({x:i==(h==tF.LTR)?r.right-1:r.left+1,y:(n.top+n.bottom)/2});if(null!=a)return l.jT.cursor(a,i?-1:1)}let c=td.find(t.docView,e.head),d=c?i?c.posAtEnd:c.posAtStart:i?o.to:o.from;return l.jT.cursor(d,i?-1:1)}(this,t,e,i)}moveVertically(t,e,i){return eh(this,t,function(t,e,i,s){let o=e.head,n=i?1:-1;if(o==(i?t.state.doc.length:0))return l.jT.cursor(o,e.assoc);let r=e.goalColumn,h,a=t.contentDOM.getBoundingClientRect(),c=t.coordsAtPos(o),d=t.documentTop;if(c)null==r&&(r=c.left-a.left),h=n<0?c.top:c.bottom;else{let u=t.viewState.lineBlockAt(o);null==r&&(r=Math.min(a.right-a.left,t.defaultCharacterWidth*(o-u.from))),h=(n<0?u.top:u.bottom)+d}let f=a.left+r,p=null!=s?s:t.defaultLineHeight>>1;for(let m=0;;m+=10){let g=h+(p+m)*n,v=en(t,{x:f,y:g},!1,n);if(ga.bottom||(n<0?vo))return l.jT.cursor(v,e.assoc,void 0,r)}}(this,t,e,i))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=!0){return this.readMeasured(),en(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let i=this.docView.coordsAt(t,e);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(t),o=this.bidiSpans(s);return b(i,o[tZ.find(o,t-s.from,-1,e)].dir==tF.LTR==e>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(tS)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>ih)return t0(t.length);let e=this.textDirectionAt(t.from);for(let i of this.bidiCache)if(i.from==t.from&&i.dir==e)return i.order;let s=function(t,e){let i=t.length,s=e==tI?1:2,o=e==tI?2:1;if(!t||1==s&&!tQ.test(t))return t0(i);for(let n=0,r=s,l=s;n=0;M-=3)if(tX[M+1]==-x){let k=tX[M+2],C=2&k?s:4&k?1&k?o:s:0;C&&(tJ[v]=tJ[tX[M]]=C),w=M;break}}else if(189==tX.length)break;else tX[w++]=v,tX[w++]=y,tX[w++]=b}else if(2==(S=tJ[v])||1==S){let A=S==s;b=A?0:1;for(let D=w-3;D>=0;D-=3){let T=tX[D+2];if(2&T)break;if(A)tX[D+2]|=2;else{if(4&T)break;tX[D+2]|=4}}}for(let O=0;ON;){let z=W,F=2!=tJ[--W];for(;W>N&&F==(2!=tJ[W-1]);)W--;V.push(new tZ(W,z,F?2:1))}else V.push(new tZ(N,H,0))}else for(let I=0;IDate.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{S(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((9==t.nodeType?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,e={}){return tC.of(new tk("number"==typeof t?l.jT.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}static domEventHandlers(t){return tR.define(()=>({}),{eventHandlers:t})}static theme(t,e){let i=h.V.newName(),s=[e2.of(i),tP.of(e6(`.${i}`,t))];return e&&e.dark&&s.push(e8.of(!0)),s}static baseTheme(t){return l.Wl.lowest(tP.of(e6("."+e3,t,e4)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content"),s=i&&T.get(i)||T.get(t);return(null===(e=null==s?void 0:s.rootView)||void 0===e?void 0:e.view)||null}}il.styleModule=tP,il.inputHandler=tx,il.perLineTextDirection=tS,il.exceptionSink=tb,il.updateListener=ty,il.editable=tD,il.mouseSelectionStyle=tw,il.dragMovesSelection=tv,il.clickAddsSelectionRange=tg,il.decorations=tV,il.atomicRanges=tH,il.scrollMargins=tN,il.darkTheme=e8,il.contentAttributes=tL,il.editorAttributes=tB,il.lineWrapping=il.contentAttributes.of({class:"cm-lineWrapping"}),il.announce=l.Py.define();let ih=4096,ia={};class ic{constructor(t,e,i,s){this.from=t,this.to=e,this.dir=i,this.order=s}static update(t,e){if(e.empty)return t;let i=[],s=t.length?t[t.length-1].dir:tF.LTR;for(let o=Math.max(0,t.length-10);o=0;o--){let n=s[o],r="function"==typeof n?n(t):n;r&&tt(r,i)}return i}let iu=K.mac?"mac":K.windows?"win":K.linux?"linux":"key";function ip(t,e,i){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),!1!==i&&e.shiftKey&&(t="Shift-"+t),t}let im=l.Wl.default(il.domEventHandlers({keydown:(t,e)=>ix(iw(e.state),t,e,"editor")})),ig=l.r$.define({enables:im}),iv=new WeakMap;function iw(t){let e=t.facet(ig),i=iv.get(e);return i||iv.set(e,i=function(t,e=iu){let i=Object.create(null),s=Object.create(null),o=(t,e)=>{let i=s[t];if(null==i)s[t]=e;else if(i!=e)throw Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")},n=(t,s,n,r)=>{var l,h;let a=i[t]||(i[t]=Object.create(null)),c=s.split(/ (?!$)/).map(t=>(function(t,e){let i,s,o,n;let r=t.split(/-(?!$)/),l=r[r.length-1];"Space"==l&&(l=" ");for(let h=0;h{let i=iy={view:e,prefix:u,scope:t};return setTimeout(()=>{iy==i&&(iy=null)},4e3),!0}]})}let f=c.join(" ");o(f,!1);let p=a[f]||(a[f]={preventDefault:!1,run:(null===(h=null===(l=a._any)||void 0===l?void 0:l.run)||void 0===h?void 0:h.slice())||[]});n&&p.run.push(n),r&&(p.preventDefault=!0)};for(let r of t){let l=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let h of l){let a=i[h]||(i[h]=Object.create(null));for(let c in a._any||(a._any={preventDefault:!1,run:[]}),a)a[c].run.push(r.any)}let d=r[e]||r.key;if(d)for(let u of l)n(u,d,r.run,r.preventDefault),r.shift&&n(u,"Shift-"+d,r.shift,r.preventDefault)}return i}(e.reduce((t,e)=>t.concat(e),[]))),i}function ib(t,e,i){return ix(iw(t.state),e,t,i)}let iy=null;function ix(t,e,i,s){let o=(0,a.YG)(e),n=(0,l.gm)(o,0),r=(0,l.nZ)(n)==o.length&&" "!=o,h="",c=!1;iy&&iy.view==i&&iy.scope==s&&(h=iy.prefix+" ",(c=0>eu.indexOf(e.keyCode))&&(iy=null));let d=new Set,u=t=>{if(t){for(let s of t.run)if(!d.has(s)&&(d.add(s),s(i,e)))return!0;t.preventDefault&&(c=!0)}return!1},f=t[s],p,m;if(f){if(u(f[h+ip(o,e,!r)]))return!0;if(r&&(e.altKey||e.metaKey||e.ctrlKey)&&(p=a.ue[e.keyCode])&&p!=o){if(u(f[h+ip(p,e,!0)])||e.shiftKey&&(m=a.uY[e.keyCode])!=o&&m!=p&&u(f[h+ip(m,e,!1)]))return!0}else if(r&&e.shiftKey&&u(f[h+ip(o,e,!0)]))return!0;if(u(f._any))return!0}return c}class iS{constructor(t,e,i,s,o){this.className=t,this.left=e,this.top=i,this.width=s,this.height=o}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className==this.className&&(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",null!=this.width&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,i){if(!i.empty)return function(t,e,i){if(i.to<=t.viewport.from||i.from>=t.viewport.to)return[];let s=Math.max(i.from,t.viewport.from),o=Math.min(i.to,t.viewport.to),n=t.textDirection==tF.LTR,r=t.contentDOM,l=r.getBoundingClientRect(),h=iM(t),a=window.getComputedStyle(r.firstChild),c=l.left+parseInt(a.paddingLeft)+Math.min(0,parseInt(a.textIndent)),d=l.right-parseInt(a.paddingRight),u=iC(t,s),f=iC(t,o),p=u.type==to.Text?u:null,m=f.type==to.Text?f:null;if(t.lineWrapping&&(p&&(p=ik(t,s,p)),m&&(m=ik(t,o,m))),p&&m&&p.from==m.from)return y(x(i.from,i.to,p));{let g=p?x(i.from,null,p):S(u,!1),v=m?x(null,i.to,m):S(f,!0),w=[];return(p||u).to<(m||f).from-1?w.push(b(c,g.bottom,d,v.top)):g.bottoma&&f.from=m)break;b>p&&h(Math.max(w,p),null==e&&w<=a,Math.min(b,m),null==i&&b>=u,v.dir)}if((p=g.to+1)>=m)break}return 0==l.length&&h(a,null==e,u,null==i,t.textDirection),{top:o,bottom:r,horizontal:l}}function S(t,e){let i=l.top+(e?t.top:t.bottom);return{top:i,bottom:i,horizontal:[]}}}(t,e,i);{let s=t.coordsAtPos(i.head,i.assoc||1);if(!s)return[];let o=iM(t);return[new iS(e,s.left-o.left,s.top-o.top,null,s.bottom-s.top)]}}}function iM(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==tF.LTR?e.left:e.right-t.scrollDOM.clientWidth)-t.scrollDOM.scrollLeft,top:e.top-t.scrollDOM.scrollTop}}function ik(t,e,i){let s=l.jT.cursor(e);return{from:Math.max(i.from,t.moveToLineBoundary(s,!1,!0).from),to:Math.min(i.to,t.moveToLineBoundary(s,!0,!0).from),type:to.Text}}function iC(t,e){let i=t.lineBlockAt(e);if(Array.isArray(i.type)){for(let s of i.type)if(s.to>e||s.to==e&&(s.to==i.to||s.type==to.Text))return s}return i}class iA{constructor(t,e){this.view=t,this.layer=e,this.drawn=[],this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,t)}update(t){t.startState.facet(iD)!=t.state.facet(iD)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&t.view.requestMeasure(this.measureReq)}setOrder(t){let e=0,i=t.facet(iD);for(;e{var i;return i=this.drawn[e],!(t.constructor==i.constructor&&t.eq(i))})){let e=this.dom.firstChild,i=0;for(let s of t)s.update&&e&&s.constructor&&this.drawn[i].constructor&&s.update(e,this.drawn[i])?(e=e.nextSibling,i++):this.dom.insertBefore(s.draw(),e);for(;e;){let o=e.nextSibling;e.remove(),e=o}this.drawn=t}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}let iD=l.r$.define();function iT(t){return[tR.define(e=>new iA(e,t)),iD.of(t)]}let iO=!K.ios,iR=l.r$.define({combine:t=>(0,l.BO)(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})});function iE(t={}){return[iR.of(t),iL,iH,iP,tM.of(!0)]}function iB(t){return t.startState.facet(iR)!=t.startState.facet(iR)}let iL=iT({above:!0,markers(t){let{state:e}=t,i=e.facet(iR),s=[];for(let o of e.selection.ranges){let n=o==e.selection.main;if(o.empty?!n||iO:i.drawRangeCursor){let r=n?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",h=o.empty?o:l.jT.cursor(o.head,o.head>o.anchor?-1:1);for(let a of iS.forRange(t,r,h))s.push(a)}}return s},update(t,e){t.transactions.some(t=>t.scrollIntoView)&&(e.style.animationName="cm-blink"==e.style.animationName?"cm-blink2":"cm-blink");let i=iB(t);return i&&iV(t.state,e),t.docChanged||t.selectionSet||i},mount(t,e){iV(e.state,t)},class:"cm-cursorLayer"});function iV(t,e){e.style.animationDuration=t.facet(iR).cursorBlinkRate+"ms"}let iH=iT({above:!1,markers:t=>t.state.selection.ranges.map(e=>e.empty?[]:iS.forRange(t,"cm-selectionBackground",e)).reduce((t,e)=>t.concat(e)),update:(t,e)=>t.docChanged||t.selectionSet||t.viewportChanged||iB(t),class:"cm-selectionLayer"}),iN={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};iO&&(iN[".cm-line"].caretColor="transparent !important");let iP=l.Wl.highest(il.theme(iN)),iW=l.Py.define({map:(t,e)=>null==t?null:e.mapPos(t)}),iz=l.QQ.define({create:()=>null,update:(t,e)=>(null!=t&&(t=e.changes.mapPos(t)),e.effects.reduce((t,e)=>e.is(iW)?e.value:t,t))}),iF=tR.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let i=t.state.field(iz);null==i?null!=this.cursor&&(null===(e=this.cursor)||void 0===e||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(iz)!=i||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let t=this.view.state.field(iz),e=null!=t&&this.view.coordsAtPos(t);if(!e)return null;let i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}drawCursor(t){this.cursor&&(t?(this.cursor.style.left=t.left+"px",this.cursor.style.top=t.top+"px",this.cursor.style.height=t.height+"px"):this.cursor.style.left="-100000px")}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(iz)!=t&&this.view.dispatch({effects:iW.of(t)})}},{eventHandlers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){t.target!=this.view.contentDOM&&this.view.contentDOM.contains(t.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function iI(){return[iz,iF]}function iq(t,e,i,s,o){e.lastIndex=0;for(let n=t.iterRange(i,s),r=i,l;!n.next().done;r+=n.value.length)if(!n.lineBreak)for(;l=e.exec(n.value);)o(r+l.index,l)}class ij{constructor(t){let{regexp:e,decoration:i,decorate:s,boundary:o,maxLength:n=1e3}=t;if(!e.global)throw RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,s)this.addMatch=(t,e,i,o)=>s(o,i,i+t[0].length,t,e);else if("function"==typeof i)this.addMatch=(t,e,s,o)=>{let n=i(t,e,s);n&&o(s,s+t[0].length,n)};else if(i)this.addMatch=(t,e,s,o)=>o(s,s+t[0].length,i);else throw RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=n}createDeco(t){let e=new l.f_,i=e.add.bind(e);for(let{from:s,to:o}of function(t,e){let i=t.visibleRanges;if(1==i.length&&i[0].from==t.viewport.from&&i[0].to==t.viewport.to)return i;let s=[];for(let{from:o,to:n}of i)o=Math.max(t.state.doc.lineAt(o).from,o-e),n=Math.min(t.state.doc.lineAt(n).to,n+e),s.length&&s[s.length-1].to>=o?s[s.length-1].to=n:s.push({from:o,to:n});return s}(t,this.maxLength))iq(t.state.doc,this.regexp,s,o,(e,s)=>this.addMatch(s,t,e,i));return e.finish()}updateDeco(t,e){let i=1e9,s=-1;return(t.docChanged&&t.changes.iterChanges((e,o,n,r)=>{r>t.view.viewport.from&&n1e3)?this.createDeco(t.view):s>-1?this.updateRange(t.view,e.map(t.changes),i,s):e}updateRange(t,e,i,s){for(let o of t.visibleRanges){let n=Math.max(o.from,i),r=Math.min(o.to,s);if(r>n){let l=t.state.doc.lineAt(n),h=l.tol.from;n--)if(this.boundary.test(l.text[n-1-l.from])){a=n;break}for(;rd.push(i.range(t,e));if(l==h)for(this.regexp.lastIndex=a-l.from;(u=this.regexp.exec(l.text))&&u.indexthis.addMatch(i,t,e,f));e=e.update({filterFrom:a,filterTo:c,filter:(t,e)=>tc,add:d})}}return e}}let iK=null!=/x/.unicode?"gu":"g",i$=RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]",iK),iG={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},iX=null,i_=l.r$.define({combine(t){let e=(0,l.BO)(t,{render:null,specialChars:i$,addSpecialChars:null});return(e.replaceTabs=!function(){var t;if(null==iX&&"undefined"!=typeof document&&document.body){let e=document.body.style;iX=(null!==(t=e.tabSize)&&void 0!==t?t:e.MozTabSize)!=null}return iX||!1}())&&(e.specialChars=RegExp(" |"+e.specialChars.source,iK)),e.addSpecialChars&&(e.specialChars=RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,iK)),e}});function iU(t={}){return[i_.of(t),iY||(iY=tR.fromClass(class{constructor(t){this.view=t,this.decorations=tn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(i_)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new ij({regexp:t.specialChars,decoration:(e,i,s)=>{let{doc:o}=i.state,n=(0,l.gm)(e[0],0);if(9==n){let r=o.lineAt(s),h=i.state.tabSize,a=(0,l.IS)(r.text,h,s-r.from);return tn.replace({widget:new iZ((h-a%h)*this.view.defaultCharacterWidth)})}return this.decorationCache[n]||(this.decorationCache[n]=tn.replace({widget:new iQ(t,n)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(i_);t.startState.facet(i_)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))]}let iY=null;class iQ extends ts{constructor(t,e){super(),this.options=t,this.code=e}eq(t){return t.code==this.code}toDOM(t){var e;let i=(e=this.code)>=32?"•":10==e?"␤":String.fromCharCode(9216+e),s=t.state.phrase("Control character")+" "+(iG[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,s,i);if(o)return o;let n=document.createElement("span");return n.textContent=i,n.title=s,n.setAttribute("aria-label",s),n.className="cm-specialChar",n}ignoreEvent(){return!1}}class iZ extends ts{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}function iJ(){return i1}let i0=tn.line({class:"cm-activeLine"}),i1=tR.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,i=[];for(let s of t.state.selection.ranges){let o=t.lineBlockAt(s.head);o.from>e&&(i.push(i0.range(o.from)),e=o.from)}return tn.set(i)}},{decorations:t=>t.decorations});class i2 extends ts{constructor(t){super(),this.content=t}toDOM(){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?t.setAttribute("aria-label","placeholder "+this.content):t.setAttribute("aria-hidden","true"),t}ignoreEvent(){return!1}}function i8(t){return tR.fromClass(class{constructor(e){this.view=e,this.placeholder=tn.set([tn.widget({widget:new i2(t),side:1}).range(0)])}get decorations(){return this.view.state.doc.length?tn.none:this.placeholder}},{decorations:t=>t.decorations})}function i3(t,e){var i;let s,o=t.posAtCoords({x:e.clientX,y:e.clientY},!1),n=t.state.doc.lineAt(o),r=o-n.from,h=r>2e3?-1:r==n.length?(i=e.clientX,(s=t.coordsAtPos(t.viewport.from))?Math.round(Math.abs((s.left-i)/t.defaultCharacterWidth)):-1):(0,l.IS)(n.text,t.state.tabSize,o-n.from);return{line:n.number,col:h,off:r}}function i9(t){let e=(null==t?void 0:t.eventFilter)||(t=>t.altKey&&0==t.button);return il.mouseSelectionStyle.of((t,i)=>{let s,o;return e(i)?(s=i3(t,i),o=t.state.selection,s?{update(t){if(t.docChanged){let e=t.changes.mapPos(t.startState.doc.line(s.line).from),i=t.state.doc.lineAt(e);s={line:i.number,col:s.col,off:Math.min(s.off,i.length)},o=o.map(t.changes)}},get(e,i,n){let r=i3(t,e);if(!r)return o;let h=function(t,e,i){let s=Math.min(e.line,i.line),o=Math.max(e.line,i.line),n=[];if(e.off>2e3||i.off>2e3||e.col<0||i.col<0){let r=Math.min(e.off,i.off),h=Math.max(e.off,i.off);for(let a=s;a<=o;a++){let c=t.doc.line(a);c.length<=h&&n.push(l.jT.range(c.from+r,c.to+h))}}else{let d=Math.min(e.col,i.col),u=Math.max(e.col,i.col);for(let f=s;f<=o;f++){let p=t.doc.line(f),m=(0,l.Gz)(p.text,d,t.tabSize,!0);if(m<0)n.push(l.jT.cursor(p.to));else{let g=(0,l.Gz)(p.text,u,t.tabSize);n.push(l.jT.range(p.from+m,p.from+g))}}}return n}(t.state,s,r);return h.length?n?l.jT.create(h.concat(o.ranges)):l.jT.create(h):o}}:null):null})}let i5={Alt:[18,t=>t.altKey],Control:[17,t=>t.ctrlKey],Shift:[16,t=>t.shiftKey],Meta:[91,t=>t.metaKey]},i4={style:"cursor: crosshair"};function i6(t={}){let[e,i]=i5[t.key||"Alt"],s=tR.fromClass(class{constructor(t){this.view=t,this.isDown=!1}set(t){this.isDown!=t&&(this.isDown=t,this.view.update([]))}},{eventHandlers:{keydown(t){this.set(t.keyCode==e||i(t))},keyup(t){t.keyCode!=e&&i(t)||this.set(!1)},mousemove(t){this.set(i(t))}}});return[s,il.contentAttributes.of(t=>{var e;return(null===(e=t.plugin(s))||void 0===e?void 0:e.isDown)?i4:null})]}let i7="-10000px";class st{constructor(t,e,i){this.facet=e,this.createTooltipView=i,this.input=t.state.facet(e),this.tooltips=this.input.filter(t=>t),this.tooltipViews=this.tooltips.map(i)}update(t){var e;let i=t.state.facet(this.facet),s=i.filter(t=>t);if(i===this.input){for(let o of this.tooltipViews)o.update&&o.update(t);return!1}let n=[];for(let r=0;rn.indexOf(u)&&(u.dom.remove(),null===(e=u.destroy)||void 0===e||e.call(u));return this.input=i,this.tooltips=s,this.tooltipViews=n,!0}}function se(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}let si=l.r$.define({combine:t=>{var e,i,s;return{position:K.ios?"absolute":(null===(e=t.find(t=>t.position))||void 0===e?void 0:e.position)||"fixed",parent:(null===(i=t.find(t=>t.parent))||void 0===i?void 0:i.parent)||null,tooltipSpace:(null===(s=t.find(t=>t.tooltipSpace))||void 0===s?void 0:s.tooltipSpace)||se}}}),ss=tR.fromClass(class{constructor(t){this.view=t,this.inView=!0,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(si);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new st(t,sr,t=>this.createTooltip(t)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver)for(let t of(this.intersectionObserver.disconnect(),this.manager.tooltipViews))this.intersectionObserver.observe(t.dom)}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t);e&&this.observeIntersection();let i=e||t.geometryChanged,s=t.state.facet(si);if(s.position!=this.position){for(let o of(this.position=s.position,this.manager.tooltipViews))o.dom.style.position=this.position;i=!0}if(s.parent!=this.parent){for(let n of(this.parent&&this.container.remove(),this.parent=s.parent,this.createContainer(),this.manager.tooltipViews))this.container.appendChild(n.dom);i=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);i&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",e.dom.appendChild(i)}return e.dom.style.position=this.position,e.dom.style.top=i7,this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;for(let i of(this.view.win.removeEventListener("resize",this.measureSoon),this.manager.tooltipViews))i.dom.remove(),null===(t=i.destroy)||void 0===t||t.call(i);null===(e=this.intersectionObserver)||void 0===e||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect();return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((t,e)=>{let i=this.manager.tooltipViews[e];return i.getCoords?i.getCoords(t.pos):this.view.coordsAtPos(t.pos)}),size:this.manager.tooltipViews.map(({dom:t})=>t.getBoundingClientRect()),space:this.view.state.facet(si).tooltipSpace(this.view)}}writeMeasure(t){let{editor:e,space:i}=t,s=[];for(let o=0;o=Math.min(e.bottom,i.bottom)||h.rightMath.min(e.right,i.right)+.1){l.style.top=i7;continue}let c=n.arrow?r.dom.querySelector(".cm-tooltip-arrow"):null,d=c?7:0,u=a.right-a.left,f=a.bottom-a.top,p=r.offset||sn,m=this.view.textDirection==tF.LTR,g=a.width>i.right-i.left?m?i.left:i.right-a.width:m?Math.min(h.left-(c?14:0)+p.x,i.right-u):Math.max(i.left,h.left-u+(c?14:0)-p.x),v=!!n.above;!n.strictSide&&(v?h.top-(a.bottom-a.top)-p.yi.bottom)&&v==i.bottom-h.bottom>h.top-i.top&&(v=!v);let w=(v?h.top-i.top:i.bottom-h.bottom)-d;if(wg&&x.topb&&(b=v?x.top-f-2-d:x.bottom+d+2);"absolute"==this.position?(l.style.top=b-t.parent.top+"px",l.style.left=g-t.parent.left+"px"):(l.style.top=b+"px",l.style.left=g+"px"),c&&(c.style.left=`${h.left+(m?p.x:-p.x)-(g+14-7)}px`),!0!==r.overlap&&s.push({left:g,top:b,right:y,bottom:b+f}),l.classList.toggle("cm-tooltip-above",v),l.classList.toggle("cm-tooltip-below",!v),r.positioned&&r.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=i7}},{eventHandlers:{scroll(){this.maybeMeasure()}}}),so=il.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),sn={x:0,y:0},sr=l.r$.define({enables:[ss,so]}),sl=l.r$.define();class sh{constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new st(t,sl,t=>this.createHostedView(t))}static create(t){return new sh(t)}createHostedView(t){let e=t.create(this.view);return e.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(e.dom),this.mounted&&e.mount&&e.mount(this.view),e}mount(t){for(let e of this.manager.tooltipViews)e.mount&&e.mount(t);this.mounted=!0}positioned(t){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned(t)}update(t){this.manager.update(t)}}let sa=sr.compute([sl],t=>{let e=t.facet(sl).filter(t=>t);return 0===e.length?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.filter(t=>null!=t.end).map(t=>t.end)),create:sh.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class sc{constructor(t,e,i,s,o){this.view=t,this.source=e,this.field=i,this.setHover=s,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;ti.bottom||t.xi.right+this.view.defaultCharacterWidth)return;let s=this.view.bidiSpans(this.view.state.doc.lineAt(e)).find(t=>t.from<=e&&t.to>=e),o=s&&s.dir==tF.RTL?-1:1,n=this.source(this.view,e,t.x{this.pending==r&&(this.pending=null,t&&this.view.dispatch({effects:this.setHover.of(t)}))},t=>tA(this.view.state,t,"hover tooltip"))}else n&&this.view.dispatch({effects:this.setHover.of(n)})}mousemove(t){var e;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let i=this.active;if(i&&!sd(this.lastMove.target)||this.pending){let{pos:s}=i||this.pending,o=null!==(e=null==i?void 0:i.end)&&void 0!==e?e:s;(s==o?this.view.posAtCoords(this.lastMove)!=s:!function(t,e,i,s,o,n){let r=document.createRange(),l=t.domAtPos(e),h=t.domAtPos(i);r.setEnd(h.node,h.offset),r.setStart(l.node,l.offset);let a=r.getClientRects();r.detach();for(let c=0;c=Math.max(d.top-o,o-d.bottom,d.left-s,s-d.right))return!0}return!1}(this.view,s,o,t.clientX,t.clientY,0))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!sd(t.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function sd(t){for(let e=t;e;e=e.parentNode)if(1==e.nodeType&&e.classList.contains("cm-tooltip"))return!0;return!1}function su(t,e={}){let i=l.Py.define(),s=l.QQ.define({create:()=>null,update(t,s){if(t&&(e.hideOnChange&&(s.docChanged||s.selection)||e.hideOn&&e.hideOn(s,t)))return null;if(t&&s.docChanged){let o=s.changes.mapPos(t.pos,-1,l.gc.TrackDel);if(null==o)return null;let n=Object.assign(Object.create(null),t);n.pos=o,null!=t.end&&(n.end=s.changes.mapPos(t.end)),t=n}for(let r of s.effects)r.is(i)&&(t=r.value),r.is(sp)&&(t=null);return t},provide:t=>sl.from(t)});return[s,tR.define(o=>new sc(o,t,s,i,e.hoverTime||300)),sa]}function sf(t,e){let i=t.plugin(ss);if(!i)return null;let s=i.manager.tooltips.indexOf(e);return s<0?null:i.manager.tooltipViews[s]}let sp=l.Py.define(),sm=l.r$.define({combine(t){let e,i;for(let s of t)e=e||s.topContainer,i=i||s.bottomContainer;return{topContainer:e,bottomContainer:i}}});function sg(t,e){let i=t.plugin(sv),s=i?i.specs.indexOf(e):-1;return s>-1?i.panels[s]:null}let sv=tR.fromClass(class{constructor(t){this.input=t.state.facet(sy),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(e=>e(t));let e=t.state.facet(sm);for(let i of(this.top=new sw(t,!0,e.topContainer),this.bottom=new sw(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top)),this.panels))i.dom.classList.add("cm-panel"),i.mount&&i.mount()}update(t){let e=t.state.facet(sm);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new sw(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new sw(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let i=t.state.facet(sy);if(i!=this.input){let s=i.filter(t=>t),o=[],n=[],r=[],l=[];for(let h of s){let a=this.specs.indexOf(h),c;a<0?(c=h(t.view),l.push(c)):(c=this.panels[a]).update&&c.update(t),o.push(c),(c.top?n:r).push(c)}for(let d of(this.specs=s,this.panels=o,this.top.sync(n),this.bottom.sync(r),l))d.dom.classList.add("cm-panel"),d.mount&&d.mount()}else for(let u of this.panels)u.update&&u.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>il.scrollMargins.of(e=>{let i=e.plugin(t);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}})});class sw{constructor(t,e,i){this.view=t,this.top=e,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let e of this.panels)e.destroy&&0>t.indexOf(e)&&e.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(0==this.panels.length){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let i of this.panels)if(i.dom.parentNode==this.dom){for(;e!=i.dom;)e=sb(e);e=e.nextSibling}else this.dom.insertBefore(i.dom,e);for(;e;)e=sb(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function sb(t){let e=t.nextSibling;return t.remove(),e}let sy=l.r$.define({enables:sv});class sx extends l.uU{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}sx.prototype.elementClass="",sx.prototype.toDOM=void 0,sx.prototype.mapMode=l.gc.TrackBefore,sx.prototype.startSide=sx.prototype.endSide=-1,sx.prototype.point=!0;let sS=l.r$.define(),sM={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>l.Xs.empty,lineMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},sk=l.r$.define();function sC(t){return[sD(),sk.of(Object.assign(Object.assign({},sM),t))]}let sA=l.r$.define({combine:t=>t.some(t=>t)});function sD(t){let e=[sT];return t&&!1===t.fixed&&e.push(sA.of(!0)),e}let sT=tR.fromClass(class{constructor(t){for(let e of(this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=t.state.facet(sk).map(e=>new sB(t,e)),this.gutters))this.dom.appendChild(e.dom);this.fixed=!t.state.facet(sA),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,i=t.view.viewport,s=Math.min(e.to,i.to)-Math.max(e.from,i.from);this.syncGutters(s<(i.to-i.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(sA)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let i=l.Xs.iter(this.view.state.facet(sS),this.view.viewport.from),s=[],o=this.gutters.map(t=>new sE(t,this.view.viewport,-this.view.documentPadding.top));for(let n of this.view.viewportLineBlocks){let r;if(Array.isArray(n.type)){for(let h of n.type)if(h.type==to.Text){r=h;break}}else r=n.type==to.Text?n:void 0;if(r)for(let a of(s.length&&(s=[]),sR(i,s,n.from),o))a.line(this.view,r,s)}for(let c of o)c.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(sk),i=t.state.facet(sk),s=t.docChanged||t.heightChanged||t.viewportChanged||!l.Xs.eq(t.startState.facet(sS),t.state.facet(sS),t.view.viewport.from,t.view.viewport.to);if(e==i)for(let o of this.gutters)o.update(t)&&(s=!0);else{s=!0;let n=[];for(let r of i){let h=e.indexOf(r);h<0?n.push(new sB(this.view,r)):(this.gutters[h].update(t),n.push(this.gutters[h]))}for(let a of this.gutters)a.dom.remove(),0>n.indexOf(a)&&a.destroy();for(let c of n)this.dom.appendChild(c.dom);this.gutters=n}return s}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>il.scrollMargins.of(e=>{let i=e.plugin(t);return i&&0!=i.gutters.length&&i.fixed?e.textDirection==tF.LTR?{left:i.dom.offsetWidth}:{right:i.dom.offsetWidth}:null})});function sO(t){return Array.isArray(t)?t:[t]}function sR(t,e,i){for(;t.value&&t.from<=i;)t.from==i&&e.push(t.value),t.next()}class sE{constructor(t,e,i){this.gutter=t,this.height=i,this.localMarkers=[],this.i=0,this.cursor=l.Xs.iter(t.markers,e.from)}line(t,e,i){this.localMarkers.length&&(this.localMarkers=[]),sR(this.cursor,this.localMarkers,e.from);let s=i.length?this.localMarkers.concat(i):this.localMarkers,o=this.gutter.config.lineMarker(t,e,s);o&&s.unshift(o);let n=this.gutter;if(0==s.length&&!n.config.renderEmptyElements)return;let r=e.top-this.height;if(this.i==n.elements.length){let l=new sL(t,e.height,r,s);n.elements.push(l),n.dom.appendChild(l.dom)}else n.elements[this.i].update(t,e.height,r,s);this.height=e.bottom,this.i++}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}}class sB{constructor(t,e){for(let i in this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:""),e.domEventHandlers)this.dom.addEventListener(i,s=>{let o=t.lineBlockAtHeight(s.clientY-t.documentTop);e.domEventHandlers[i](t,o,s)&&s.preventDefault()});this.markers=sO(e.markers(t)),e.initialSpacer&&(this.spacer=new sL(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=sO(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],t);i!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[i])}let s=t.view.viewport;return!l.Xs.eq(this.markers,e,s.from,s.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}destroy(){for(let t of this.elements)t.destroy()}}class sL{constructor(t,e,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,i,s)}update(t,e,i,s){this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),!function(t,e){if(t.length!=e.length)return!1;for(let i=0;i(0,l.BO)(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,e){let i=Object.assign({},t);for(let s in e){let o=i[s],n=e[s];i[s]=o?(t,e,i)=>o(t,e,i)||n(t,e,i):n}return i}})});class sN extends sx{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function sP(t,e){return t.state.facet(sH).formatNumber(e,t.state)}let sW=sk.compute([sH],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:t=>t.state.facet(sV),lineMarker:(t,e,i)=>i.some(t=>t.toDOM)?null:new sN(sP(t,t.state.doc.lineAt(e.from).number)),lineMarkerChange:t=>t.startState.facet(sH)!=t.state.facet(sH),initialSpacer:t=>new sN(sP(t,sF(t.state.doc.lines))),updateSpacer(t,e){let i=sP(e.view,sF(e.view.state.doc.lines));return i==t.number?t:new sN(i)},domEventHandlers:t.facet(sH).domEventHandlers}));function sz(t={}){return[sH.of(t),sD(),sW]}function sF(t){let e=9;for(;e{let e=[],i=-1;for(let s of t.selection.ranges){let o=t.doc.lineAt(s.head).from;o>i&&(i=o,e.push(sI.range(o)))}return l.Xs.of(e)});function sj(){return sq}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/575-11393a44fd60b818.js b/static/web/_next/static/chunks/575-77ed8f28a60fd81f.js similarity index 83% rename from static/web/_next/static/chunks/575-11393a44fd60b818.js rename to static/web/_next/static/chunks/575-77ed8f28a60fd81f.js index ac84e2352..d85813887 100644 --- a/static/web/_next/static/chunks/575-11393a44fd60b818.js +++ b/static/web/_next/static/chunks/575-77ed8f28a60fd81f.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[575],{24969:function(e,t,n){n.d(t,{Z:function(){return l}});var a=n(1413),r=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},c=n(42135),i=function(e,t){return r.createElement(c.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:t,icon:o}))};i.displayName="PlusOutlined";var l=r.forwardRef(i)},90575:function(e,t,n){n.d(t,{Z:function(){return et}});var a=n(4942),r=n(87462),o=n(97937),c=n(89705),i=n(24969),l=n(94184),u=n.n(l),s=n(1413),f=n(97685),d=n(71002),v=n(45987),m=n(67294),b=n(31131),p=n(21770),h=n(62874),y=(0,m.createContext)(null),Z=m.forwardRef(function(e,t){var n=e.prefixCls,a=e.className,r=e.style,o=e.id,c=e.active,i=e.tabKey,l=e.children;return m.createElement("div",{id:o&&"".concat(o,"-panel-").concat(i),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(i),"aria-hidden":!c,style:r,className:u()(n,c&&"".concat(n,"-active"),a),ref:t},l)}),g=["key","forceRender","style","className"];function E(e){var t=e.id,n=e.activeKey,o=e.animated,c=e.tabPosition,i=e.destroyInactiveTabPane,l=m.useContext(y),f=l.prefixCls,d=l.tabs,b=o.tabPane,p="".concat(f,"-tabpane");return m.createElement("div",{className:u()("".concat(f,"-content-holder"))},m.createElement("div",{className:u()("".concat(f,"-content"),"".concat(f,"-content-").concat(c),(0,a.Z)({},"".concat(f,"-content-animated"),b))},d.map(function(e){var a=e.key,c=e.forceRender,l=e.style,f=e.className,d=(0,v.Z)(e,g),y=a===n;return m.createElement(h.Z,(0,r.Z)({key:a,visible:y,forceRender:c,removeOnLeave:!!i,leavedClassName:"".concat(p,"-hidden")},o.tabPaneMotion),function(e,n){var o=e.style,c=e.className;return m.createElement(Z,(0,r.Z)({},d,{prefixCls:p,id:t,tabKey:a,animated:b,active:y,style:(0,s.Z)((0,s.Z)({},l),o),className:u()(f,c),ref:n}))})})))}var k=n(74902),x=n(75164),C=n(42550),w=n(48555);function P(e){var t=(0,m.useRef)(),n=(0,m.useRef)(!1);return(0,m.useEffect)(function(){return n.current=!1,function(){n.current=!0,x.Z.cancel(t.current)}},[]),function(){for(var a=arguments.length,r=Array(a),o=0;ot?"left":"right"})}),eW=(0,f.Z)(eq,2),e_=eW[0],eV=eW[1],ez=L(0,function(e,t){!eK&&eN&&eN({direction:e>t?"top":"bottom"})}),eG=(0,f.Z)(ez,2),eF=eG[0],eH=eG[1],eX=(0,m.useState)([0,0]),eY=(0,f.Z)(eX,2),eJ=eY[0],eU=eY[1],eQ=(0,m.useState)([0,0]),e$=(0,f.Z)(eQ,2),e0=e$[0],e1=e$[1],e2=(0,m.useState)([0,0]),e8=(0,f.Z)(e2,2),e4=e8[0],e7=e8[1],e6=(0,m.useState)([0,0]),e5=(0,f.Z)(e6,2),e9=e5[0],e3=e5[1],te=(o=new Map,c=(0,m.useRef)([]),i=(0,m.useState)({}),l=(0,f.Z)(i,2)[1],d=(0,m.useRef)("function"==typeof o?o():o),v=P(function(){var e=d.current;c.current.forEach(function(t){e=t(e)}),c.current=[],d.current=e,l({})}),[d.current,function(e){c.current.push(e),v()}]),tt=(0,f.Z)(te,2),tn=tt[0],ta=tt[1],tr=(b=e0[0],(0,m.useMemo)(function(){for(var e=new Map,t=tn.get(null===(r=ev[0])||void 0===r?void 0:r.key)||T,n=t.left+t.width,a=0;atf?tf:e}eK&&eZ?(ts=0,tf=Math.max(0,tc-tu)):(ts=Math.min(0,tu-tc),tf=0);var tv=(0,m.useRef)(),tm=(0,m.useState)(),tb=(0,f.Z)(tm,2),tp=tb[0],th=tb[1];function ty(){th(Date.now())}function tZ(){window.clearTimeout(tv.current)}p=function(e,t){function n(e,t){e(function(e){return td(e+t)})}return!(to>=tc)&&(eK?n(eV,e):n(eH,t),tZ(),ty(),!0)},h=(0,m.useState)(),g=(Z=(0,f.Z)(h,2))[0],E=Z[1],N=(0,m.useState)(0),M=(S=(0,f.Z)(N,2))[0],q=S[1],W=(0,m.useState)(0),V=(_=(0,f.Z)(W,2))[0],z=_[1],G=(0,m.useState)(),H=(F=(0,f.Z)(G,2))[0],X=F[1],Y=(0,m.useRef)(),J=(0,m.useRef)(),(U=(0,m.useRef)(null)).current={onTouchStart:function(e){var t=e.touches[0];E({x:t.screenX,y:t.screenY}),window.clearInterval(Y.current)},onTouchMove:function(e){if(g){e.preventDefault();var t=e.touches[0],n=t.screenX,a=t.screenY;E({x:n,y:a});var r=n-g.x,o=a-g.y;p(r,o);var c=Date.now();q(c),z(c-M),X({x:r,y:o})}},onTouchEnd:function(){if(g&&(E(null),X(null),H)){var e=H.x/V,t=H.y/V;if(!(.1>Math.max(Math.abs(e),Math.abs(t)))){var n=e,a=t;Y.current=window.setInterval(function(){if(.01>Math.abs(n)&&.01>Math.abs(a)){window.clearInterval(Y.current);return}p(20*(n*=.9046104802746175),20*(a*=.9046104802746175))},20)}}},onWheel:function(e){var t=e.deltaX,n=e.deltaY,a=0,r=Math.abs(t),o=Math.abs(n);r===o?a="x"===J.current?t:n:r>o?(a=t,J.current="x"):(a=n,J.current="y"),p(-a,-a)&&e.preventDefault()}},m.useEffect(function(){function e(e){U.current.onTouchMove(e)}function t(e){U.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",t,{passive:!1}),eS.current.addEventListener("touchstart",function(e){U.current.onTouchStart(e)},{passive:!1}),eS.current.addEventListener("wheel",function(e){U.current.onWheel(e)}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",t)}},[]),(0,m.useEffect)(function(){return tZ(),tp&&(tv.current=window.setTimeout(function(){th(0)},100)),tZ},[tp]);var tg=(Q=eK?e_:eF,ea=($=(0,s.Z)((0,s.Z)({},e),{},{tabs:ev})).tabs,er=$.tabPosition,eo=$.rtl,["top","bottom"].includes(er)?(ee="width",et=eo?"right":"left",en=Math.abs(Q)):(ee="height",et="top",en=-Q),(0,m.useMemo)(function(){if(!ea.length)return[0,0];for(var e=ea.length,t=e,n=0;nen+tu){t=n-1;break}}for(var r=0,o=e-1;o>=0;o-=1)if((tr.get(ea[o].key)||I)[et]0&&void 0!==arguments[0]?arguments[0]:ey,t=tr.get(e)||{width:0,height:0,left:0,right:0,top:0};if(eK){var n=e_;eZ?t.righte_+tu&&(n=t.right+t.width-tu):t.left<-e_?n=-t.left:t.left+t.width>-e_+tu&&(n=-(t.left+t.width-tu)),eH(0),eV(td(n))}else{var a=eF;t.top<-eF?a=-t.top:t.top+t.height>-eF+tu&&(a=-(t.top+t.height-tu)),eV(0),eH(td(a))}},tw={};"top"===ex||"bottom"===ex?tw[eZ?"marginRight":"marginLeft"]=eC:tw.marginTop=eC;var tP=ev.map(function(e,t){var n=e.key;return m.createElement(R,{id:ep,prefixCls:ed,key:n,tab:e,style:0===t?void 0:tw,closable:e.closable,editable:eE,active:n===ey,renderWrapper:ew,removeAriaLabel:null==ek?void 0:ek.removeAriaLabel,ref:eD(n),onClick:function(e){eP(n,e)},onRemove:function(){ej(n)},onFocus:function(){tC(n),ty(),eS.current&&(eZ||(eS.current.scrollLeft=0),eS.current.scrollTop=0)}})}),tN=P(function(){var e=j(eR),t=j(eT),n=j(eI);eU([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var a=j(eO);e7(a),e3(j(eB));var r=j(eM);e1([r[0]-a[0],r[1]-a[1]]),ta(function(){var e=new Map;return ev.forEach(function(t){var n=t.key,a=eD(n).current;a&&e.set(n,{width:a.offsetWidth,height:a.offsetHeight,left:a.offsetLeft,top:a.offsetTop})}),e})}),tR=ev.slice(0,tk),tT=ev.slice(tx+1),tI=[].concat((0,k.Z)(tR),(0,k.Z)(tT)),tS=(0,m.useState)(),tM=(0,f.Z)(tS,2),tB=tM[0],tO=tM[1],tL=tr.get(ey),tA=(0,m.useRef)();function tD(){x.Z.cancel(tA.current)}(0,m.useEffect)(function(){var e={};return tL&&(eK?(eZ?e.right=tL.right:e.left=tL.left,e.width=tL.width):(e.top=tL.top,e.height=tL.height)),tD(),tA.current=(0,x.Z)(function(){tO(e)}),tD},[tL,eK,eZ]),(0,m.useEffect)(function(){tC()},[ey,A(tL),A(tr),eK]),(0,m.useEffect)(function(){tN()},[eZ]);var tj=!!tI.length,tK="".concat(ed,"-nav-wrap");return eK?eZ?(el=e_>0,ei=e_+to0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,s.Z)({inkBar:!0},"object"===(0,d.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(w),X=(0,m.useState)(!1),Y=(0,f.Z)(X,2),J=Y[0],U=Y[1];(0,m.useEffect)(function(){U((0,b.Z)())},[]);var Q=(0,p.Z)(function(){var e;return null===(e=_[0])||void 0===e?void 0:e.key},{value:k,defaultValue:x}),$=(0,f.Z)(Q,2),ee=$[0],et=$[1],en=(0,m.useState)(function(){return _.findIndex(function(e){return e.key===ee})}),ea=(0,f.Z)(en,2),er=ea[0],eo=ea[1];(0,m.useEffect)(function(){var e,t=_.findIndex(function(e){return e.key===ee});-1===t&&et(null===(e=_[t=Math.max(0,Math.min(er,_.length-1))])||void 0===e?void 0:e.key),eo(t)},[_.map(function(e){return e.key}).join("_"),ee,er]);var ec=(0,p.Z)(null,{value:c}),ei=(0,f.Z)(ec,2),el=ei[0],eu=ei[1];(0,m.useEffect)(function(){c||(eu("rc-tabs-".concat(G)),G+=1)},[]);var es={id:el,activeKey:ee,animated:H,tabPosition:N,rtl:F,mobile:J},ef=(0,s.Z)((0,s.Z)({},es),{},{editable:C,locale:S,moreIcon:M,moreTransitionName:B,tabBarGutter:R,onTabClick:function(e,t){null==D||D(e,t),et(e),e!==ee&&(null==A||A(e))},onTabScroll:j,extra:I,style:T,panes:null,getPopupContainer:K,popupClassName:q});return m.createElement(y.Provider,{value:{tabs:_,prefixCls:l}},m.createElement("div",(0,r.Z)({ref:t,id:c,className:u()(l,"".concat(l,"-").concat(N),(n={},(0,a.Z)(n,"".concat(l,"-mobile"),J),(0,a.Z)(n,"".concat(l,"-editable"),C),(0,a.Z)(n,"".concat(l,"-rtl"),F),n),h)},W),o,m.createElement(V,(0,r.Z)({},ef,{renderTabBar:L})),m.createElement(E,(0,r.Z)({destroyInactiveTabPane:O},es,{animated:H}))))}),H=n(53124),X=n(97647),Y=n(33603),J={motionAppear:!1,motionEnter:!0,motionLeave:!0},U=n(50344),Q=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);rt.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n},$=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);rt.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};function ee(e){var t,n=e.type,l=e.className,s=e.size,f=e.onEdit,v=e.hideAdd,b=e.centered,p=e.addIcon,h=e.children,y=e.items,Z=e.animated,g=$(e,["type","className","size","onEdit","hideAdd","centered","addIcon","children","items","animated"]),E=g.prefixCls,k=g.moreIcon,x=void 0===k?m.createElement(c.Z,null):k,C=m.useContext(H.E_),w=C.getPrefixCls,P=C.direction,N=C.getPopupContainer,R=w("tabs",E);"editable-card"===n&&(t={onEdit:function(e,t){var n=t.key,a=t.event;null==f||f("add"===e?a:n,e)},removeIcon:m.createElement(o.Z,null),addIcon:p||m.createElement(i.Z,null),showAdd:!0!==v});var T=w(),I=y||(0,U.Z)(h).map(function(e){if(m.isValidElement(e)){var t=e.key,n=e.props||{},a=n.tab,o=Q(n,["tab"]);return(0,r.Z)((0,r.Z)({key:String(t)},o),{label:a})}return null}).filter(function(e){return e}),S=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return(t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:(0,r.Z)({inkBar:!0},"object"===(0,d.Z)(n)?n:{})).tabPane&&(t.tabPaneMotion=(0,r.Z)((0,r.Z)({},J),{motionName:(0,Y.mL)(e,"switch")})),t}(R,Z);return m.createElement(X.Z.Consumer,null,function(e){var o,c=void 0!==s?s:e;return m.createElement(F,(0,r.Z)({direction:P,getPopupContainer:N,moreTransitionName:"".concat(T,"-slide-up")},g,{items:I,className:u()((o={},(0,a.Z)(o,"".concat(R,"-").concat(c),c),(0,a.Z)(o,"".concat(R,"-card"),["card","editable-card"].includes(n)),(0,a.Z)(o,"".concat(R,"-editable-card"),"editable-card"===n),(0,a.Z)(o,"".concat(R,"-centered"),b),o),l),editable:t,moreIcon:x,prefixCls:R,animated:S}))})}ee.TabPane=function(){return null};var et=ee}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[575],{24969:function(e,t,n){n.d(t,{Z:function(){return l}});var a=n(1413),r=n(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},c=n(42135),i=function(e,t){return r.createElement(c.Z,(0,a.Z)((0,a.Z)({},e),{},{ref:t,icon:o}))};i.displayName="PlusOutlined";var l=r.forwardRef(i)},90575:function(e,t,n){n.d(t,{Z:function(){return et}});var a=n(4942),r=n(87462),o=n(97937),c=n(89705),i=n(24969),l=n(94184),u=n.n(l),s=n(1413),f=n(97685),d=n(71002),v=n(45987),m=n(67294),b=n(31131),p=n(21770),h=n(62874),y=(0,m.createContext)(null),Z=m.forwardRef(function(e,t){var n=e.prefixCls,a=e.className,r=e.style,o=e.id,c=e.active,i=e.tabKey,l=e.children;return m.createElement("div",{id:o&&"".concat(o,"-panel-").concat(i),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(i),"aria-hidden":!c,style:r,className:u()(n,c&&"".concat(n,"-active"),a),ref:t},l)}),g=["key","forceRender","style","className"];function E(e){var t=e.id,n=e.activeKey,o=e.animated,c=e.tabPosition,i=e.destroyInactiveTabPane,l=m.useContext(y),f=l.prefixCls,d=l.tabs,b=o.tabPane,p="".concat(f,"-tabpane");return m.createElement("div",{className:u()("".concat(f,"-content-holder"))},m.createElement("div",{className:u()("".concat(f,"-content"),"".concat(f,"-content-").concat(c),(0,a.Z)({},"".concat(f,"-content-animated"),b))},d.map(function(e){var a=e.key,c=e.forceRender,l=e.style,f=e.className,d=(0,v.Z)(e,g),y=a===n;return m.createElement(h.Z,(0,r.Z)({key:a,visible:y,forceRender:c,removeOnLeave:!!i,leavedClassName:"".concat(p,"-hidden")},o.tabPaneMotion),function(e,n){var o=e.style,c=e.className;return m.createElement(Z,(0,r.Z)({},d,{prefixCls:p,id:t,tabKey:a,animated:b,active:y,style:(0,s.Z)((0,s.Z)({},l),o),className:u()(f,c),ref:n}))})})))}var k=n(74902),x=n(75164),C=n(42550),w=n(48555);function P(e){var t=(0,m.useRef)(),n=(0,m.useRef)(!1);return(0,m.useEffect)(function(){return n.current=!1,function(){n.current=!0,x.Z.cancel(t.current)}},[]),function(){for(var a=arguments.length,r=Array(a),o=0;ot?"left":"right"})}),eW=(0,f.Z)(eq,2),e_=eW[0],eV=eW[1],ez=L(0,function(e,t){!eK&&eN&&eN({direction:e>t?"top":"bottom"})}),eG=(0,f.Z)(ez,2),eF=eG[0],eH=eG[1],eX=(0,m.useState)([0,0]),eY=(0,f.Z)(eX,2),eJ=eY[0],eU=eY[1],eQ=(0,m.useState)([0,0]),e$=(0,f.Z)(eQ,2),e0=e$[0],e1=e$[1],e2=(0,m.useState)([0,0]),e8=(0,f.Z)(e2,2),e4=e8[0],e7=e8[1],e6=(0,m.useState)([0,0]),e5=(0,f.Z)(e6,2),e9=e5[0],e3=e5[1],te=(o=new Map,c=(0,m.useRef)([]),i=(0,m.useState)({}),l=(0,f.Z)(i,2)[1],d=(0,m.useRef)("function"==typeof o?o():o),v=P(function(){var e=d.current;c.current.forEach(function(t){e=t(e)}),c.current=[],d.current=e,l({})}),[d.current,function(e){c.current.push(e),v()}]),tt=(0,f.Z)(te,2),tn=tt[0],ta=tt[1],tr=(b=e0[0],(0,m.useMemo)(function(){for(var e=new Map,t=tn.get(null===(r=ev[0])||void 0===r?void 0:r.key)||T,n=t.left+t.width,a=0;atf?tf:e}eK&&eZ?(ts=0,tf=Math.max(0,tc-tu)):(ts=Math.min(0,tu-tc),tf=0);var tv=(0,m.useRef)(),tm=(0,m.useState)(),tb=(0,f.Z)(tm,2),tp=tb[0],th=tb[1];function ty(){th(Date.now())}function tZ(){window.clearTimeout(tv.current)}p=function(e,t){function n(e,t){e(function(e){return td(e+t)})}return!(to>=tc)&&(eK?n(eV,e):n(eH,t),tZ(),ty(),!0)},h=(0,m.useState)(),g=(Z=(0,f.Z)(h,2))[0],E=Z[1],N=(0,m.useState)(0),M=(S=(0,f.Z)(N,2))[0],q=S[1],W=(0,m.useState)(0),V=(_=(0,f.Z)(W,2))[0],z=_[1],G=(0,m.useState)(),H=(F=(0,f.Z)(G,2))[0],X=F[1],Y=(0,m.useRef)(),J=(0,m.useRef)(),(U=(0,m.useRef)(null)).current={onTouchStart:function(e){var t=e.touches[0];E({x:t.screenX,y:t.screenY}),window.clearInterval(Y.current)},onTouchMove:function(e){if(g){e.preventDefault();var t=e.touches[0],n=t.screenX,a=t.screenY;E({x:n,y:a});var r=n-g.x,o=a-g.y;p(r,o);var c=Date.now();q(c),z(c-M),X({x:r,y:o})}},onTouchEnd:function(){if(g&&(E(null),X(null),H)){var e=H.x/V,t=H.y/V;if(!(.1>Math.max(Math.abs(e),Math.abs(t)))){var n=e,a=t;Y.current=window.setInterval(function(){if(.01>Math.abs(n)&&.01>Math.abs(a)){window.clearInterval(Y.current);return}p(20*(n*=.9046104802746175),20*(a*=.9046104802746175))},20)}}},onWheel:function(e){var t=e.deltaX,n=e.deltaY,a=0,r=Math.abs(t),o=Math.abs(n);r===o?a="x"===J.current?t:n:r>o?(a=t,J.current="x"):(a=n,J.current="y"),p(-a,-a)&&e.preventDefault()}},m.useEffect(function(){function e(e){U.current.onTouchMove(e)}function t(e){U.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",t,{passive:!1}),eS.current.addEventListener("touchstart",function(e){U.current.onTouchStart(e)},{passive:!1}),eS.current.addEventListener("wheel",function(e){U.current.onWheel(e)}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",t)}},[]),(0,m.useEffect)(function(){return tZ(),tp&&(tv.current=window.setTimeout(function(){th(0)},100)),tZ},[tp]);var tg=(Q=eK?e_:eF,ea=($=(0,s.Z)((0,s.Z)({},e),{},{tabs:ev})).tabs,er=$.tabPosition,eo=$.rtl,["top","bottom"].includes(er)?(ee="width",et=eo?"right":"left",en=Math.abs(Q)):(ee="height",et="top",en=-Q),(0,m.useMemo)(function(){if(!ea.length)return[0,0];for(var e=ea.length,t=e,n=0;nen+tu){t=n-1;break}}for(var r=0,o=e-1;o>=0;o-=1)if((tr.get(ea[o].key)||I)[et]0&&void 0!==arguments[0]?arguments[0]:ey,t=tr.get(e)||{width:0,height:0,left:0,right:0,top:0};if(eK){var n=e_;eZ?t.righte_+tu&&(n=t.right+t.width-tu):t.left<-e_?n=-t.left:t.left+t.width>-e_+tu&&(n=-(t.left+t.width-tu)),eH(0),eV(td(n))}else{var a=eF;t.top<-eF?a=-t.top:t.top+t.height>-eF+tu&&(a=-(t.top+t.height-tu)),eV(0),eH(td(a))}},tw={};"top"===ex||"bottom"===ex?tw[eZ?"marginRight":"marginLeft"]=eC:tw.marginTop=eC;var tP=ev.map(function(e,t){var n=e.key;return m.createElement(R,{id:ep,prefixCls:ed,key:n,tab:e,style:0===t?void 0:tw,closable:e.closable,editable:eE,active:n===ey,renderWrapper:ew,removeAriaLabel:null==ek?void 0:ek.removeAriaLabel,ref:eD(n),onClick:function(e){eP(n,e)},onRemove:function(){ej(n)},onFocus:function(){tC(n),ty(),eS.current&&(eZ||(eS.current.scrollLeft=0),eS.current.scrollTop=0)}})}),tN=P(function(){var e=j(eR),t=j(eT),n=j(eI);eU([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var a=j(eO);e7(a),e3(j(eB));var r=j(eM);e1([r[0]-a[0],r[1]-a[1]]),ta(function(){var e=new Map;return ev.forEach(function(t){var n=t.key,a=eD(n).current;a&&e.set(n,{width:a.offsetWidth,height:a.offsetHeight,left:a.offsetLeft,top:a.offsetTop})}),e})}),tR=ev.slice(0,tk),tT=ev.slice(tx+1),tI=[].concat((0,k.Z)(tR),(0,k.Z)(tT)),tS=(0,m.useState)(),tM=(0,f.Z)(tS,2),tB=tM[0],tO=tM[1],tL=tr.get(ey),tA=(0,m.useRef)();function tD(){x.Z.cancel(tA.current)}(0,m.useEffect)(function(){var e={};return tL&&(eK?(eZ?e.right=tL.right:e.left=tL.left,e.width=tL.width):(e.top=tL.top,e.height=tL.height)),tD(),tA.current=(0,x.Z)(function(){tO(e)}),tD},[tL,eK,eZ]),(0,m.useEffect)(function(){tC()},[ey,A(tL),A(tr),eK]),(0,m.useEffect)(function(){tN()},[eZ]);var tj=!!tI.length,tK="".concat(ed,"-nav-wrap");return eK?eZ?(el=e_>0,ei=e_+to0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,s.Z)({inkBar:!0},"object"===(0,d.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(w),X=(0,m.useState)(!1),Y=(0,f.Z)(X,2),J=Y[0],U=Y[1];(0,m.useEffect)(function(){U((0,b.Z)())},[]);var Q=(0,p.Z)(function(){var e;return null===(e=_[0])||void 0===e?void 0:e.key},{value:k,defaultValue:x}),$=(0,f.Z)(Q,2),ee=$[0],et=$[1],en=(0,m.useState)(function(){return _.findIndex(function(e){return e.key===ee})}),ea=(0,f.Z)(en,2),er=ea[0],eo=ea[1];(0,m.useEffect)(function(){var e,t=_.findIndex(function(e){return e.key===ee});-1===t&&(t=Math.max(0,Math.min(er,_.length-1)),et(null===(e=_[t])||void 0===e?void 0:e.key)),eo(t)},[_.map(function(e){return e.key}).join("_"),ee,er]);var ec=(0,p.Z)(null,{value:c}),ei=(0,f.Z)(ec,2),el=ei[0],eu=ei[1];(0,m.useEffect)(function(){c||(eu("rc-tabs-".concat(G)),G+=1)},[]);var es={id:el,activeKey:ee,animated:H,tabPosition:N,rtl:F,mobile:J},ef=(0,s.Z)((0,s.Z)({},es),{},{editable:C,locale:S,moreIcon:M,moreTransitionName:B,tabBarGutter:R,onTabClick:function(e,t){null==D||D(e,t),et(e),e!==ee&&(null==A||A(e))},onTabScroll:j,extra:I,style:T,panes:null,getPopupContainer:K,popupClassName:q});return m.createElement(y.Provider,{value:{tabs:_,prefixCls:l}},m.createElement("div",(0,r.Z)({ref:t,id:c,className:u()(l,"".concat(l,"-").concat(N),(n={},(0,a.Z)(n,"".concat(l,"-mobile"),J),(0,a.Z)(n,"".concat(l,"-editable"),C),(0,a.Z)(n,"".concat(l,"-rtl"),F),n),h)},W),o,m.createElement(V,(0,r.Z)({},ef,{renderTabBar:L})),m.createElement(E,(0,r.Z)({destroyInactiveTabPane:O},es,{animated:H}))))}),H=n(53124),X=n(97647),Y=n(33603),J={motionAppear:!1,motionEnter:!0,motionLeave:!0},U=n(50344),Q=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);rt.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n},$=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);rt.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};function ee(e){var t,n=e.type,l=e.className,s=e.size,f=e.onEdit,v=e.hideAdd,b=e.centered,p=e.addIcon,h=e.children,y=e.items,Z=e.animated,g=$(e,["type","className","size","onEdit","hideAdd","centered","addIcon","children","items","animated"]),E=g.prefixCls,k=g.moreIcon,x=void 0===k?m.createElement(c.Z,null):k,C=m.useContext(H.E_),w=C.getPrefixCls,P=C.direction,N=C.getPopupContainer,R=w("tabs",E);"editable-card"===n&&(t={onEdit:function(e,t){var n=t.key,a=t.event;null==f||f("add"===e?a:n,e)},removeIcon:m.createElement(o.Z,null),addIcon:p||m.createElement(i.Z,null),showAdd:!0!==v});var T=w(),I=y||(0,U.Z)(h).map(function(e){if(m.isValidElement(e)){var t=e.key,n=e.props||{},a=n.tab,o=Q(n,["tab"]);return(0,r.Z)((0,r.Z)({key:String(t)},o),{label:a})}return null}).filter(function(e){return e}),S=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return(t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:(0,r.Z)({inkBar:!0},"object"===(0,d.Z)(n)?n:{})).tabPane&&(t.tabPaneMotion=(0,r.Z)((0,r.Z)({},J),{motionName:(0,Y.mL)(e,"switch")})),t}(R,Z);return m.createElement(X.Z.Consumer,null,function(e){var o,c=void 0!==s?s:e;return m.createElement(F,(0,r.Z)({direction:P,getPopupContainer:N,moreTransitionName:"".concat(T,"-slide-up")},g,{items:I,className:u()((o={},(0,a.Z)(o,"".concat(R,"-").concat(c),c),(0,a.Z)(o,"".concat(R,"-card"),["card","editable-card"].includes(n)),(0,a.Z)(o,"".concat(R,"-editable-card"),"editable-card"===n),(0,a.Z)(o,"".concat(R,"-centered"),b),o),l),editable:t,moreIcon:x,prefixCls:R,animated:S}))})}ee.TabPane=function(){return null};var et=ee}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/6160.b3755bde5b40d7a4.js b/static/web/_next/static/chunks/6160.bc4c2ed16ea24946.js similarity index 56% rename from static/web/_next/static/chunks/6160.b3755bde5b40d7a4.js rename to static/web/_next/static/chunks/6160.bc4c2ed16ea24946.js index 694b109a1..0165c35c8 100644 --- a/static/web/_next/static/chunks/6160.b3755bde5b40d7a4.js +++ b/static/web/_next/static/chunks/6160.bc4c2ed16ea24946.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6160],{66160:function(e,i,t){"use strict";t.r(i),t.d(i,{BrowserNotifyModal:function(){return m}});var s=t(85893),n=t(84485),o=t(71577),r=t(11382),a=t(71230),l=t(67294),c=t(4480),d=t(77466);async function h(e,i,t){let s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({channel:e,destination:i})};try{await fetch("".concat("/api/notifications/register","?accessToken=").concat(t),s)}catch(n){console.error(n)}}async function w(e){let i=await navigator.serviceWorker.ready,t=await i.pushManager.getSubscription();return t||(t=await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let i="=".repeat((4-e.length%4)%4),t=(e+i).replace(/-/g,"+").replace(/_/g,"/"),s=window.atob(t),n=new Uint8Array(s.length);for(let o=0;o(0,s.jsx)("div",{children:"Browser notifications are not supported in your browser."}),y=e=>{let{start:i}=e;return(0,s.jsx)("div",{id:"browser-push-preview-box",className:u().pushPreview,children:(0,s.jsxs)("div",{className:u().inner,children:[(0,s.jsxs)("div",{className:u().title,children:[window.location.toString()," wants to"]}),(0,s.jsxs)("div",{className:u().permissionLine,children:[(0,s.jsx)("svg",{className:u().bell,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M14 12.3333V13H2V12.3333L3.33333 11V7C3.33333 4.93333 4.68667 3.11333 6.66667 2.52667C6.66667 2.46 6.66667 2.4 6.66667 2.33333C6.66667 1.97971 6.80714 1.64057 7.05719 1.39052C7.30724 1.14048 7.64638 1 8 1C8.35362 1 8.69276 1.14048 8.94281 1.39052C9.19286 1.64057 9.33333 1.97971 9.33333 2.33333C9.33333 2.4 9.33333 2.46 9.33333 2.52667C11.3133 3.11333 12.6667 4.93333 12.6667 7V11L14 12.3333ZM9.33333 13.6667C9.33333 14.0203 9.19286 14.3594 8.94281 14.6095C8.69276 14.8595 8.35362 15 8 15C7.64638 15 7.30724 14.8595 7.05719 14.6095C6.80714 14.3594 6.66667 14.0203 6.66667 13.6667",fill:"#676670"})}),(0,s.jsx)("span",{className:u().showNotificationsText,children:"Show notifications"})]}),(0,s.jsxs)("div",{className:u().buttonRow,children:[(0,s.jsx)(o.Z,{type:"primary",onClick(){i()},children:"Allow"}),(0,s.jsx)("button",{type:"button",className:u().disabled,children:"Block"})]})]})})},g=()=>(0,s.jsxs)("div",{children:[(0,s.jsx)(b,{children:"Notifications are enabled"}),"To disable push notifications from ",window.location.hostname.toString()," access your browser permissions for this site and turn off notifications.",(0,s.jsx)("a",{href:"https://owncast.online/docs/notifications",children:" Learn more."})]}),m=()=>{let[e,i]=(0,l.useState)(null),t=(0,c.sJ)(d.FI),n=(0,c.sJ)(d.g1),[o,f]=(0,l.useState)(!1),b=p()&&"default"!==Notification.permission,{notifications:m}=n,{browser:v}=m,{publicKey:x}=v,N=v.enabled&&p();if(b)return(0,s.jsx)(g,{});let j=async()=>{if(!p()||"default"===Notification.permission){f(!0);try{let e=await w(x);h("BROWSER_PUSH_NOTIFICATION",e,t),i(null)}catch(s){i("Error registering for live notifications: ".concat(s.message,". Make sure you're not inside a private browser environment or have previously disabled notifications for this stream."))}f(!1)}};return N?(0,s.jsxs)(r.Z,{spinning:o,children:[(0,s.jsxs)(a.Z,{className:u().description,children:["Get notified right in the browser each time this stream goes live.",(0,s.jsx)("a",{href:"https://owncast.online/docs/notifications/#browser-notifications",children:"Learn more"}),"\xa0 about Owncast browser notifications."]}),(0,s.jsx)(a.Z,{children:e}),(0,s.jsx)(y,{start:()=>j()})]}):(0,s.jsx)(_,{})}},38851:function(e){e.exports={description:"BrowserNotifyModal_description__tMKKq",pushPreview:"BrowserNotifyModal_pushPreview__4Og4q",inner:"BrowserNotifyModal_inner__uhFDw",title:"BrowserNotifyModal_title__dd_Lh",permissionLine:"BrowserNotifyModal_permissionLine__K8nyJ",bell:"BrowserNotifyModal_bell__9mIeI",buttonRow:"BrowserNotifyModal_buttonRow__oxJUg",disabled:"BrowserNotifyModal_disabled__v88lb"}}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6160],{66160:function(e,i,t){"use strict";t.r(i),t.d(i,{BrowserNotifyModal:function(){return m}});var s=t(85893),n=t(84485),o=t(71577),r=t(11382),a=t(71230),l=t(67294),c=t(4480),d=t(77466);async function h(e,i,t){let s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({channel:e,destination:i})};try{await fetch("".concat("/api/notifications/register","?accessToken=").concat(t),s)}catch(n){console.error(n)}}async function w(e){let i=await navigator.serviceWorker.ready,t=await i.pushManager.getSubscription();return t||(t=await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let i="=".repeat((4-e.length%4)%4),t=(e+i).replace(/-/g,"+").replace(/_/g,"/"),s=window.atob(t),n=new Uint8Array(s.length);for(let o=0;o(0,s.jsx)("div",{children:"Browser notifications are not supported in your browser."}),y=e=>{let{start:i}=e;return(0,s.jsx)("div",{id:"browser-push-preview-box",className:u().pushPreview,children:(0,s.jsxs)("div",{className:u().inner,children:[(0,s.jsxs)("div",{className:u().title,children:[window.location.toString()," wants to"]}),(0,s.jsxs)("div",{className:u().permissionLine,children:[(0,s.jsx)("svg",{className:u().bell,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M14 12.3333V13H2V12.3333L3.33333 11V7C3.33333 4.93333 4.68667 3.11333 6.66667 2.52667C6.66667 2.46 6.66667 2.4 6.66667 2.33333C6.66667 1.97971 6.80714 1.64057 7.05719 1.39052C7.30724 1.14048 7.64638 1 8 1C8.35362 1 8.69276 1.14048 8.94281 1.39052C9.19286 1.64057 9.33333 1.97971 9.33333 2.33333C9.33333 2.4 9.33333 2.46 9.33333 2.52667C11.3133 3.11333 12.6667 4.93333 12.6667 7V11L14 12.3333ZM9.33333 13.6667C9.33333 14.0203 9.19286 14.3594 8.94281 14.6095C8.69276 14.8595 8.35362 15 8 15C7.64638 15 7.30724 14.8595 7.05719 14.6095C6.80714 14.3594 6.66667 14.0203 6.66667 13.6667",fill:"#676670"})}),(0,s.jsx)("span",{className:u().showNotificationsText,children:"Show notifications"})]}),(0,s.jsxs)("div",{className:u().buttonRow,children:[(0,s.jsx)(o.Z,{type:"primary",onClick:()=>{i()},children:"Allow"}),(0,s.jsx)("button",{type:"button",className:u().disabled,children:"Block"})]})]})})},g=()=>(0,s.jsxs)("div",{children:[(0,s.jsx)(b,{children:"Notifications are enabled"}),"To disable push notifications from ",window.location.hostname.toString()," access your browser permissions for this site and turn off notifications.",(0,s.jsx)("a",{href:"https://owncast.online/docs/notifications",children:" Learn more."})]}),m=()=>{let[e,i]=(0,l.useState)(null),t=(0,c.sJ)(d.FI),n=(0,c.sJ)(d.g1),[o,f]=(0,l.useState)(!1),b=p()&&"default"!==Notification.permission,{notifications:m}=n,{browser:v}=m,{publicKey:x}=v,N=v.enabled&&p();if(b)return(0,s.jsx)(g,{});let j=async()=>{if(!p()||"default"===Notification.permission){f(!0);try{let e=await w(x);h("BROWSER_PUSH_NOTIFICATION",e,t),i(null)}catch(s){i("Error registering for live notifications: ".concat(s.message,". Make sure you're not inside a private browser environment or have previously disabled notifications for this stream."))}f(!1)}};return N?(0,s.jsxs)(r.Z,{spinning:o,children:[(0,s.jsxs)(a.Z,{className:u().description,children:["Get notified right in the browser each time this stream goes live.",(0,s.jsx)("a",{href:"https://owncast.online/docs/notifications/#browser-notifications",children:"Learn more"}),"\xa0 about Owncast browser notifications."]}),(0,s.jsx)(a.Z,{children:e}),(0,s.jsx)(y,{start:()=>j()})]}):(0,s.jsx)(_,{})}},38851:function(e){e.exports={description:"BrowserNotifyModal_description__tMKKq",pushPreview:"BrowserNotifyModal_pushPreview__4Og4q",inner:"BrowserNotifyModal_inner__uhFDw",title:"BrowserNotifyModal_title__dd_Lh",permissionLine:"BrowserNotifyModal_permissionLine__K8nyJ",bell:"BrowserNotifyModal_bell__9mIeI",buttonRow:"BrowserNotifyModal_buttonRow__oxJUg",disabled:"BrowserNotifyModal_disabled__v88lb"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/6395-abdc25a80c99b923.js b/static/web/_next/static/chunks/6395-abdc25a80c99b923.js new file mode 100644 index 000000000..34b4fe4ef --- /dev/null +++ b/static/web/_next/static/chunks/6395-abdc25a80c99b923.js @@ -0,0 +1,30 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6395],{23917:function(t,e,n){n.d(e,{e:function(){return N}});var i,r,o=n(67294),a=n(52798),s=n(63056),c=n(59043),u=n(54911),f=n(3884),h=n(30375),l=n(14066),d=n(89823),v={deferEvents:!1},p=function(){function t(t){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=(0,s.pi)((0,s.pi)({},v),t)}return t.prototype.initialize=function(t){if(this.initialized=!0,t){if(!this.options.deferEvents){this.schedule(t);return}this.process(t)}this.flushEvents()},t.prototype.schedule=function(t){if(!this.initialized||this.processingEvent){this.queue.push(t);return}if(0!==this.queue.length)throw Error("Event queue should be empty when it is not processing events");this.process(t),this.flushEvents()},t.prototype.clear=function(){this.queue=[]},t.prototype.flushEvents=function(){for(var t=this.queue.shift();t;)this.process(t),t=this.queue.shift()},t.prototype.process=function(t){this.processingEvent=!0;try{t()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},t}(),y=n(98933),g=new Map,m=0,x={bookId:function(){return"x:".concat(m++)},register:function(t,e){return g.set(t,e),t},get:function(t){return g.get(t)},free:function(t){g.delete(t)}};function b(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:void(l.M||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}var S=n(10797),w={sync:!1,autoForward:!1};(i=r||(r={}))[i.NotStarted=0]="NotStarted",i[i.Running=1]="Running",i[i.Stopped=2]="Stopped";var _=function(){function t(e,n){void 0===n&&(n=t.defaultOptions);var i=this;this.machine=e,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=r.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(t,e){if((0,d.kJ)(t))return i.batch(t),i.state;var n=(0,d.g5)((0,d._v)(t,e));if(i.status===r.Stopped)return l.M||(0,d.ZK)(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(i.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),i.state;if(i.status!==r.Running&&!i.options.deferEvents)throw Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(i.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return i.scheduler.schedule(function(){i.forward(n);var t=i._nextState(n);i.update(t,n)}),i._state},this.sendTo=function(t,e,n){var o=i.parent&&(e===c.K.Parent||i.parent.id===e),a=o?i.parent:(0,d.HD)(e)?i.children.get(e)||x.get(e):(0,d.Bc)(e)?e:void 0;if(!a){if(!o)throw Error("Unable to send event to child '".concat(e,"' from service '").concat(i.id,"'."));l.M||(0,d.ZK)(!1,"Service '".concat(i.id,"' has no parent: unable to send event ").concat(t.type));return}if("machine"in a){if(i.status!==r.Stopped||i.parent!==a||i.state.done){var u=(0,s.pi)((0,s.pi)({},t),{name:t.name===f.vU?"".concat((0,h.vU)(i.id)):t.name,origin:i.sessionId});!n&&i.machine.config.predictableActionArguments?i._outgoingQueue.push([a,u]):a.send(u)}}else!n&&i.machine.config.predictableActionArguments?i._outgoingQueue.push([a,t.data]):a.send(t.data)},this._exec=function(t,e,n,o){void 0===o&&(o=i.machine.options.actions);var a=t.exec||(0,h.o$)(t.type,o),s=(0,d.mf)(a)?a:a?a.exec:t.exec;if(s)try{return s(e,n.data,i.machine.config.predictableActionArguments?{action:t,_event:n}:{action:t,state:i.state,_event:n})}catch(u){throw i.parent&&i.parent.send({type:"xstate.error",data:u}),u}switch(t.type){case f.lW:if("number"==typeof t.delay){i.defer(t);return}t.to?i.sendTo(t._event,t.to,n===h.bf):i.send(t._event);break;case f.al:i.cancel(t.sendId);break;case f.BL:if(i.status!==r.Running)return;var v=t.activity;if(!i.machine.config.predictableActionArguments&&!i.state.activities[v.id||v.type])break;if(v.type===c.M.Invoke){var p=(0,d.j)(v.src),y=i.machine.options.services?i.machine.options.services[p.type]:void 0,g=v.id,m=v.data;l.M||(0,d.ZK)(!("forward"in v),"`forward` property is deprecated (found in invocation of '".concat(v.src,"' in in machine '").concat(i.machine.id,"'). ")+"Please use `autoForward` instead.");var x="autoForward"in v?v.autoForward:!!v.forward;if(!y){l.M||(0,d.ZK)(!1,"No service found for invocation '".concat(v.src,"' in machine '").concat(i.machine.id,"'."));return}var b=m?(0,d.QX)(m,e,n):void 0;if("string"==typeof y)return;var S=(0,d.mf)(y)?y(e,n.data,{data:b,src:p,meta:v.meta}):y;if(!S)return;var w=void 0;(0,d.O4)(S)&&(S=b?S.withContext(b):S,w={autoForward:x}),i.spawn(S,g,w)}else i.spawnActivity(v);break;case f.sT:i.stopChild(t.activity.id);break;case f.cM:var _=t.label,E=t.value;_?i.logger(_,E):i.logger(E);break;default:l.M||(0,d.ZK)(!1,"No implementation found for action type '".concat(t.type,"'"))}};var o=(0,s.pi)((0,s.pi)({},t.defaultOptions),n),a=o.clock,u=o.logger,v=o.parent,y=o.id,g=void 0!==y?y:e.id;this.id=g,this.logger=u,this.clock=a,this.parent=v,this.options=o,this.scheduler=new p({deferEvents:this.options.deferEvents}),this.sessionId=x.bookId()}return Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this;return this._initialState?this._initialState:(0,S.J)(this,function(){return t._initialState=t.machine.initialState,t._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return l.M||(0,d.ZK)(this.status!==r.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),t.prototype.execute=function(t,e){var n,i;try{for(var r=(0,s.XA)(t.actions),o=r.next();!o.done;o=r.next()){var a=o.value;this.exec(a,t,e)}}catch(c){n={error:c}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},t.prototype.update=function(t,e){var n,i,r,o,a,c,u,f,l=this;if(t._sessionid=this.sessionId,this._state=t,(!this.machine.config.predictableActionArguments||e===h.bf)&&this.options.execute)this.execute(this.state);else for(var v=void 0;v=this._outgoingQueue.shift();)v[0].send(v[1]);if(this.children.forEach(function(t){l.state.children[t.id]=t}),this.devTools&&this.devTools.send(e.data,t),t.event)try{for(var p=(0,s.XA)(this.eventListeners),y=p.next();!y.done;y=p.next()){var g=y.value;g(t.event)}}catch(m){n={error:m}}finally{try{y&&!y.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}try{for(var x=(0,s.XA)(this.listeners),b=x.next();!b.done;b=x.next()){var g=b.value;g(t,t.event)}}catch(S){r={error:S}}finally{try{b&&!b.done&&(o=x.return)&&o.call(x)}finally{if(r)throw r.error}}try{for(var w=(0,s.XA)(this.contextListeners),_=w.next();!_.done;_=w.next())(0,_.value)(this.state.context,this.state.history?this.state.history.context:void 0)}catch(E){a={error:E}}finally{try{_&&!_.done&&(c=w.return)&&c.call(w)}finally{if(a)throw a.error}}if(this.state.done){var O=t.configuration.find(function(t){return"final"===t.type&&t.parent===l.machine}),A=O&&O.doneData?(0,d.QX)(O.doneData,t.context,e):void 0;try{for(var M=(0,s.XA)(this.doneListeners),k=M.next();!k.done;k=M.next()){var g=k.value;g((0,h.Sl)(this.id,A))}}catch(j){u={error:j}}finally{try{k&&!k.done&&(f=M.return)&&f.call(M)}finally{if(u)throw u.error}}this._stop(),this._stopChildren()}},t.prototype.onTransition=function(t){return this.listeners.add(t),this.status===r.Running&&t(this.state,this.state.event),this},t.prototype.subscribe=function(t,e,n){var i=this,o=(0,d.zM)(t,e,n);this.listeners.add(o.next),this.status!==r.NotStarted&&o.next(this.state);var a=function(){i.doneListeners.delete(a),i.stopListeners.delete(a),o.complete()};return this.status===r.Stopped?o.complete():(this.onDone(a),this.onStop(a)),{unsubscribe:function(){i.listeners.delete(o.next),i.doneListeners.delete(a),i.stopListeners.delete(a)}}},t.prototype.onEvent=function(t){return this.eventListeners.add(t),this},t.prototype.onSend=function(t){return this.sendListeners.add(t),this},t.prototype.onChange=function(t){return this.contextListeners.add(t),this},t.prototype.onStop=function(t){return this.stopListeners.add(t),this},t.prototype.onDone=function(t){return this.doneListeners.add(t),this},t.prototype.off=function(t){return this.listeners.delete(t),this.eventListeners.delete(t),this.sendListeners.delete(t),this.stopListeners.delete(t),this.doneListeners.delete(t),this.contextListeners.delete(t),this},t.prototype.start=function(t){var e=this;if(this.status===r.Running)return this;this.machine._init(),x.register(this.sessionId,this),this.initialized=!0,this.status=r.Running;var n=void 0===t?this.initialState:(0,S.J)(this,function(){return(0,u.TL)(t)?e.machine.resolveState(t):e.machine.resolveState(u.ZM.from(t,e.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){e.update(n,h.bf)}),this},t.prototype._stopChildren=function(){this.children.forEach(function(t){(0,d.mf)(t.stop)&&t.stop()}),this.children.clear()},t.prototype._stop=function(){var t,e,n,i,o,a,c,u,f,h;try{for(var l=(0,s.XA)(this.listeners),d=l.next();!d.done;d=l.next()){var v=d.value;this.listeners.delete(v)}}catch(y){t={error:y}}finally{try{d&&!d.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}try{for(var g=(0,s.XA)(this.stopListeners),m=g.next();!m.done;m=g.next()){var v=m.value;v(),this.stopListeners.delete(v)}}catch(x){n={error:x}}finally{try{m&&!m.done&&(i=g.return)&&i.call(g)}finally{if(n)throw n.error}}try{for(var b=(0,s.XA)(this.contextListeners),S=b.next();!S.done;S=b.next()){var v=S.value;this.contextListeners.delete(v)}}catch(w){o={error:w}}finally{try{S&&!S.done&&(a=b.return)&&a.call(b)}finally{if(o)throw o.error}}try{for(var _=(0,s.XA)(this.doneListeners),E=_.next();!E.done;E=_.next()){var v=E.value;this.doneListeners.delete(v)}}catch(O){c={error:O}}finally{try{E&&!E.done&&(u=_.return)&&u.call(_)}finally{if(c)throw c.error}}if(!this.initialized)return this;this.initialized=!1,this.status=r.Stopped,this._initialState=void 0;try{for(var A=(0,s.XA)(Object.keys(this.delayedEventsMap)),M=A.next();!M.done;M=A.next()){var k=M.value;this.clock.clearTimeout(this.delayedEventsMap[k])}}catch(j){f={error:j}}finally{try{M&&!M.done&&(h=A.return)&&h.call(A)}finally{if(f)throw f.error}}this.scheduler.clear(),this.scheduler=new p({deferEvents:this.options.deferEvents})},t.prototype.stop=function(){var t=this,e=this.scheduler;return this._stop(),e.schedule(function(){var e=(0,d.g5)({type:"xstate.stop"}),n=(0,S.J)(t,function(){var n=(0,d.xH)((0,s.ev)([],(0,s.CR)(t.state.configuration),!1).sort(function(t,e){return e.order-t.order}).map(function(e){return(0,h.AE)(e.onExit,t.machine.options.actions)})),i=(0,s.CR)((0,h.yC)(t.machine,t.state,t.state.context,e,[n],t.machine.config.predictableActionArguments?t._exec:void 0,t.machine.config.predictableActionArguments||t.machine.config.preserveActionOrder),2),r=i[0],o=i[1],a=new u.ZM({value:t.state.value,context:o,_event:e,_sessionid:t.sessionId,historyValue:void 0,history:t.state,actions:r.filter(function(t){return t.type!==f.OU&&(t.type!==f.lW||!!t.to&&t.to!==c.K.Internal)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:t.state.done,tags:t.state.tags,machine:t.machine});return a.changed=!0,a});t.update(n,e),t._stopChildren(),x.free(t.sessionId)}),this},t.prototype.batch=function(t){var e=this;if(this.status===r.NotStarted&&this.options.deferEvents)l.M||(0,d.ZK)(!1,"".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==r.Running)throw Error("".concat(t.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(t.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var i,r,o=e.state,a=!1,c=[];try{for(var f=(0,s.XA)(t),h=f.next();!h.done;h=f.next()){var l=h.value;!function(t){var i=(0,d.g5)(t);e.forward(i),o=(0,S.J)(e,function(){return e.machine.transition(o,i,void 0,n||void 0)}),c.push.apply(c,(0,s.ev)([],(0,s.CR)(e.machine.config.predictableActionArguments?o.actions:o.actions.map(function(t){return(0,u.j1)(t,o)})),!1)),a=a||!!o.changed}(l)}}catch(v){i={error:v}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(i)throw i.error}}o.changed=a,o.actions=c,e.update(o,(0,d.g5)(t[t.length-1]))})}},t.prototype.sender=function(t){return this.send.bind(this,t)},t.prototype._nextState=function(t,e){var n=this;void 0===e&&(e=!!this.machine.config.predictableActionArguments&&this._exec);var i=(0,d.g5)(t);if(0===i.name.indexOf(f.Mg)&&!this.state.nextEvents.some(function(t){return 0===t.indexOf(f.Mg)}))throw i.data.data;return(0,S.J)(this,function(){return n.machine.transition(n.state,i,void 0,e||void 0)})},t.prototype.nextState=function(t){return this._nextState(t,!1)},t.prototype.forward=function(t){var e,n;try{for(var i=(0,s.XA)(this.forwardTo),r=i.next();!r.done;r=i.next()){var o=r.value,a=this.children.get(o);if(!a)throw Error("Unable to forward event '".concat(t,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(o,"'."));a.send(t)}}catch(c){e={error:c}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},t.prototype.defer=function(t){var e=this;this.delayedEventsMap[t.id]=this.clock.setTimeout(function(){t.to?e.sendTo(t._event,t.to,!0):e.send(t._event)},t.delay)},t.prototype.cancel=function(t){this.clock.clearTimeout(this.delayedEventsMap[t]),delete this.delayedEventsMap[t]},t.prototype.exec=function(t,e,n){void 0===n&&(n=this.machine.options.actions),this._exec(t,e.context,e._event,n)},t.prototype.removeChild=function(t){var e;this.children.delete(t),this.forwardTo.delete(t),null===(e=this.state)||void 0===e||delete e.children[t]},t.prototype.stopChild=function(t){var e=this.children.get(t);e&&(this.removeChild(t),(0,d.mf)(e.stop)&&e.stop())},t.prototype.spawn=function(t,e,n){if(this.status!==r.Running)return(0,y.Xg)(t,e);if((0,d.y8)(t))return this.spawnPromise(Promise.resolve(t),e);if((0,d.mf)(t))return this.spawnCallback(t,e);if((0,y.f3)(t))return this.spawnActor(t,e);if((0,d.bi)(t))return this.spawnObservable(t,e);if((0,d.O4)(t))return this.spawnMachine(t,(0,s.pi)((0,s.pi)({},n),{id:e}));if((0,d.HV)(t))return this.spawnBehavior(t,e);throw Error('Unable to spawn entity "'.concat(e,'" of type "').concat(typeof t,'".'))},t.prototype.spawnMachine=function(e,n){var i=this;void 0===n&&(n={});var r=new t(e,(0,s.pi)((0,s.pi)({},this.options),{parent:this,id:n.id||e.id})),o=(0,s.pi)((0,s.pi)({},w),n);return o.sync&&r.onTransition(function(t){i.send(f.Vx,{state:t,id:r.id})}),this.children.set(r.id,r),o.autoForward&&this.forwardTo.add(r.id),r.onDone(function(t){i.removeChild(r.id),i.send((0,d.g5)(t,{origin:r.id}))}).start(),r},t.prototype.spawnBehavior=function(t,e){var n,i,r,o,a,s,c,u,f=(n={id:e,parent:this},i=t.initialState,r=new Set,o=[],a=!1,s=function(){if(!a){for(a=!0;o.length>0;){var e=o.shift();i=t.transition(i,e,u),r.forEach(function(t){return t.next(i)})}a=!1}},c=(0,y.vk)({id:n.id,send:function(t){o.push(t),s()},getSnapshot:function(){return i},subscribe:function(t,e,n){var o=(0,d.zM)(t,e,n);return r.add(o),o.next(i),{unsubscribe:function(){r.delete(o)}}}}),u={parent:n.parent,self:c,id:n.id||"anonymous",observers:r},i=t.start?t.start(u):i,c);return this.children.set(e,f),f},t.prototype.spawnPromise=function(t,e){var n,i,r=this,o=!1;t.then(function(t){o||(i=t,r.removeChild(e),r.send((0,d.g5)((0,h.Sl)(e,t),{origin:e})))},function(t){if(!o){r.removeChild(e);var n=(0,h.vU)(e,t);try{r.send((0,d.g5)(n,{origin:e}))}catch(i){(0,d.v4)(t,i,e),r.devTools&&r.devTools.send(n,r.state),r.machine.strict&&r.stop()}}});var a=((n={id:e,send:function(){},subscribe:function(e,n,i){var r=(0,d.zM)(e,n,i),o=!1;return t.then(function(t){!o&&(r.next(t),o||r.complete())},function(t){o||r.error(t)}),{unsubscribe:function(){return o=!0}}},stop:function(){o=!0},toJSON:function(){return{id:e}},getSnapshot:function(){return i}})[d.L$]=function(){return this},n);return this.children.set(e,a),a},t.prototype.spawnCallback=function(t,e){var n,i,r,o=this,a=!1,s=new Set,c=new Set;try{r=t(function(t){i=t,c.forEach(function(e){return e(t)}),a||o.send((0,d.g5)(t,{origin:e}))},function(t){s.add(t)})}catch(u){this.send((0,h.vU)(e,u))}if((0,d.y8)(r))return this.spawnPromise(r,e);var f=((n={id:e,send:function(t){return s.forEach(function(e){return e(t)})},subscribe:function(t){var e=(0,d.zM)(t);return c.add(e.next),{unsubscribe:function(){c.delete(e.next)}}},stop:function(){a=!0,(0,d.mf)(r)&&r()},toJSON:function(){return{id:e}},getSnapshot:function(){return i}})[d.L$]=function(){return this},n);return this.children.set(e,f),f},t.prototype.spawnObservable=function(t,e){var n,i,r=this,o=t.subscribe(function(t){i=t,r.send((0,d.g5)(t,{origin:e}))},function(t){r.removeChild(e),r.send((0,d.g5)((0,h.vU)(e,t),{origin:e}))},function(){r.removeChild(e),r.send((0,d.g5)((0,h.Sl)(e),{origin:e}))}),a=((n={id:e,send:function(){},subscribe:function(e,n,i){return t.subscribe(e,n,i)},stop:function(){return o.unsubscribe()},getSnapshot:function(){return i},toJSON:function(){return{id:e}}})[d.L$]=function(){return this},n);return this.children.set(e,a),a},t.prototype.spawnActor=function(t,e){return this.children.set(e,t),t},t.prototype.spawnActivity=function(t){var e=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!e){l.M||(0,d.ZK)(!1,"No implementation found for activity '".concat(t.type,"'"));return}var n=e(this.state.context,t);this.spawnEffect(t.id,n)},t.prototype.spawnEffect=function(t,e){var n;this.children.set(t,((n={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:e||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}})[d.L$]=function(){return this},n))},t.prototype.attachDev=function(){var t=b();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var e="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect((0,s.pi)((0,s.pi)({name:this.id,autoPause:!0,stateSanitizer:function(t){return{value:t.value,context:t.context,actions:t.actions}}},e),{features:(0,s.pi)({jump:!1,skip:!1},e?e.features:void 0)}),this.machine),this.devTools.init(this.state)}!function(t){if(b()){var e=function(){var t=b();if(t&&"__xstate__"in t)return t.__xstate__}();e&&e.register(t)}}(this)}},t.prototype.toJSON=function(){return{id:this.id}},t.prototype[d.L$]=function(){return this},t.prototype.getSnapshot=function(){return this.status===r.NotStarted?this.initialState:this._state},t.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,e){return setTimeout(t,e)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},t.interpret=E,t}();function E(t,e){return new _(t,e)}var O=o.useLayoutEffect;function A(t){var e=o.useRef();return e.current||(e.current={v:t()}),e.current.v}var M=function(){return(M=Object.assign||function(t){for(var e,n=1,i=arguments.length;ne.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);re.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n},j=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a};function T(t){return t}function N(t){for(var e,n,i,s,c,f,h,l,d,v=[],p=1;p0||"boolean"==typeof t.changed);return!(e.changed||n)},[m]),S=(0,o.useCallback)(function(t){return m.subscribe(t).unsubscribe},[m]),w=(0,a.useSyncExternalStoreWithSelector)(S,x,x,T,b);return(0,o.useEffect)(function(){var t=g.state;return m.start(t?u.ZM.create(t):void 0),function(){m.stop(),m.status=r.NotStarted}},[]),[w,m.send,m]}},53250:function(t,e,n){/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var i=n(67294),r="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=i.useState,a=i.useEffect,s=i.useLayoutEffect,c=i.useDebugValue;function u(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!r(t,n)}catch(i){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),i=o({inst:{value:n,getSnapshot:e}}),r=i[0].inst,f=i[1];return s(function(){r.value=n,r.getSnapshot=e,u(r)&&f({inst:r})},[t,n,e]),a(function(){return u(r)&&f({inst:r}),t(function(){u(r)&&f({inst:r})})},[t]),c(n),n};e.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:f},50139:function(t,e,n){/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var i=n(67294),r=n(61688),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=r.useSyncExternalStore,s=i.useRef,c=i.useEffect,u=i.useMemo,f=i.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,i,r){var h=s(null);if(null===h.current){var l={hasValue:!1,value:null};h.current=l}else l=h.current;h=u(function(){function t(t){if(!c){if(c=!0,a=t,t=i(t),void 0!==r&&l.hasValue){var e=l.value;if(r(e,t))return s=e}return s=t}if(e=s,o(a,t))return e;var n=i(t);return void 0!==r&&r(e,n)?e:(a=t,s=n)}var a,s,c=!1,u=void 0===n?null:n;return[function(){return t(e())},null===u?void 0:function(){return t(u())}]},[e,n,i,r]);var d=a(t,h[0],h[1]);return c(function(){l.hasValue=!0,l.value=d},[d]),f(d),d}},61688:function(t,e,n){t.exports=n(53250)},52798:function(t,e,n){t.exports=n(50139)},98933:function(t,e,n){n.d(e,{Xg:function(){return c},f3:function(){return u},mu:function(){return s},vk:function(){return f}});var i=n(63056),r=n(89823),o=n(10797);function a(t){var e;return(e={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:t}}})[r.L$]=function(){return this},e}function s(t,e,n,i){var o,s=(0,r.j)(t.src),u=null===(o=null==e?void 0:e.options.services)||void 0===o?void 0:o[s.type],f=t.data?(0,r.QX)(t.data,n,i):void 0,h=u?c(u,t.id,f):a(t.id);return h.meta=t,h}function c(t,e,n){var i=a(e);if(i.deferred=!0,(0,r.O4)(t)){var s=i.state=(0,o.J)(void 0,function(){return(n?t.withContext(n):t).initialState});i.getSnapshot=function(){return s}}return i}function u(t){return function(t){try{return"function"==typeof t.send}catch(e){return!1}}(t)&&"id"in t}function f(t){var e;return(0,i.pi)(((e={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[r.L$]=function(){return this},e),t)}},4723:function(t,e,n){n.d(e,{C:function(){return x}});var i=n(63056),r=n(89823),o=n(59043),a=n(54911),s=n(3884),c=n(30375),u=n(14066),f=n(87353),h=n(56115),l=n(98933);function d(t){return(0,i.pi)((0,i.pi)({type:s.dw},t),{toJSON:function(){t.onDone,t.onError;var e=(0,i._T)(t,["onDone","onError"]);return(0,i.pi)((0,i.pi)({},e),{type:s.dw,src:function(t){if("string"==typeof t){var e={type:t};return e.toString=function(){return t},e}return t}(t.src)})}})}var v={},p=function(t){return"#"===t[0]},y=function(t,e,n){var i=n.slice(0,-1).some(function(t){return!("cond"in t)&&!("in"in t)&&((0,r.HD)(t.target)||(0,r.O4)(t.target))});(0,r.ZK)(!i,"One or more transitions for ".concat(""===e?"the transient event":"event '".concat(e,"'")," on state '").concat(t.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")},g=function(){function t(e,n,o,a){void 0===o&&(o="context"in e?e.context:void 0);var s,l=this;this.config=e,this._context=o,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null==a?void 0:a.parent,this.key=this.config.key||(null==a?void 0:a.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:f.iS),this.id=this.config.id||(0,i.ev)([this.machine.key],(0,i.CR)(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(s=this.config.schema)&&void 0!==s?s:{},this.description=this.config.description,u.M||(0,r.ZK)(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?(0,r.Q8)(this.config.states,function(e,n){var r,o=new t(e,{},void 0,{parent:l,key:n});return Object.assign(l.idMap,(0,i.pi)(((r={})[o.id]=o,r),o.idMap)),o}):v;var p=0;!function t(e){var n,r;e.order=p++;try{for(var o=(0,i.XA)((0,h.nI)(e)),a=o.next();!a.done;a=o.next()){var s=a.value;t(s)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some(function(t){return""===t.event}):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=(0,r.qo)(this.config.entry||this.config.onEntry).map(function(t){return(0,c.Q8)(t)}),this.onExit=(0,r.qo)(this.config.exit||this.config.onExit).map(function(t){return(0,c.Q8)(t)}),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=(0,r.qo)(this.config.invoke).map(function(t,e){if((0,r.O4)(t)){var n,o,a=(0,r.bx)(l.id,e);return l.machine.options.services=(0,i.pi)(((n={})[a]=t,n),l.machine.options.services),d({src:a,id:a})}if((0,r.HD)(t.src)){var a=t.id||(0,r.bx)(l.id,e);return d((0,i.pi)((0,i.pi)({},t),{id:a,src:t.src}))}if((0,r.O4)(t.src)||(0,r.mf)(t.src)){var a=t.id||(0,r.bx)(l.id,e);return l.machine.options.services=(0,i.pi)(((o={})[a]=t.src,o),l.machine.options.services),d((0,i.pi)((0,i.pi)({id:a},t),{src:a}))}var s=t.src;return d((0,i.pi)((0,i.pi)({id:(0,r.bx)(l.id,e)},t),{src:s}))}),this.activities=(0,r.qo)(this.config.activities).concat(this.invoke).map(function(t){return(0,c.XA)(t)}),this.transition=this.transition.bind(this),this.tags=(0,r.qo)(this.config.tags)}return t.prototype._init=function(){this.__cache.transitions||(0,h.ac)(this).forEach(function(t){return t.on})},t.prototype.withConfig=function(e,n){var r=this.options,o=r.actions,a=r.activities,s=r.guards,c=r.services,u=r.delays;return new t(this.config,{actions:(0,i.pi)((0,i.pi)({},o),e.actions),activities:(0,i.pi)((0,i.pi)({},a),e.activities),guards:(0,i.pi)((0,i.pi)({},s),e.guards),services:(0,i.pi)((0,i.pi)({},c),e.services),delays:(0,i.pi)((0,i.pi)({},u),e.delays)},null!=n?n:this.context)},t.prototype.withContext=function(e){return new t(this.config,this.options,e)},Object.defineProperty(t.prototype,"context",{get:function(){return(0,r.mf)(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:(0,r.Q8)(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(t,e){return t[e.eventType]=t[e.eventType]||[],t[e.eventType].push(e),t},{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var e=""===t,n=this.transitions.filter(function(n){var i=n.eventType===t;return e?i:i||"*"===n.eventType});return this.__cache.candidates[t]=n,n},t.prototype.getDelayedTransitions=function(){var t=this,e=this.config.after;if(!e)return[];var n=function(e,n){var i=(0,r.mf)(e)?"".concat(t.id,":delay[").concat(n,"]"):e,o=(0,c.e4)(i,t.id);return t.onEntry.push((0,c.lW)(o,{delay:e})),t.onExit.push((0,c.al)(o)),o};return((0,r.kJ)(e)?e.map(function(t,e){var r=n(t.delay,e);return(0,i.pi)((0,i.pi)({},t),{event:r})}):(0,r.xH)(Object.keys(e).map(function(t,o){var a=e[t],s=(0,r.HD)(a)?{target:a}:a,c=isNaN(+t)?t:+t,u=n(c,o);return(0,r.qo)(s).map(function(t){return(0,i.pi)((0,i.pi)({},t),{event:u,delay:c})})}))).map(function(e){var n=e.delay;return(0,i.pi)((0,i.pi)({},t.formatTransition(e)),{delay:n})})},t.prototype.getStateNodes=function(t){var e,n=this;if(!t)return[];var o=t instanceof a.ZM?t.value:(0,r.WM)(t,this.delimiter);if((0,r.HD)(o)){var s=this.getStateNode(o).initial;return void 0!==s?this.getStateNodes(((e={})[o]=s,e)):[this,this.states[o]]}var c=Object.keys(o),u=[this];return u.push.apply(u,(0,i.ev)([],(0,i.CR)((0,r.xH)(c.map(function(t){return n.getStateNode(t).getStateNodes(o[t])}))),!1)),u},t.prototype.handles=function(t){var e=(0,r.x6)(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=t instanceof a.ZM?t:a.ZM.create(t),n=Array.from((0,h.P_)([],this.getStateNodes(e.value)));return new a.ZM((0,i.pi)((0,i.pi)({},e),{value:this.resolve(e.value),configuration:n,done:(0,h.Ij)(n,this),tags:(0,h.Oe)(n),machine:this.machine}))},t.prototype.transitionLeafNode=function(t,e,n){var i=this.getStateNode(t).next(e,n);return i&&i.transitions.length?i:this.next(e,n)},t.prototype.transitionCompoundNode=function(t,e,n){var i=Object.keys(t),r=this.getStateNode(i[0])._transition(t[i[0]],e,n);return r&&r.transitions.length?r:this.next(e,n)},t.prototype.transitionParallelNode=function(t,e,n){var o,a,s={};try{for(var c=(0,i.XA)(Object.keys(t)),u=c.next();!u.done;u=c.next()){var f=u.value,h=t[f];if(h){var l=this.getStateNode(f)._transition(h,e,n);l&&(s[f]=l)}}}catch(d){o={error:d}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}var v=Object.keys(s).map(function(t){return s[t]}),p=(0,r.xH)(v.map(function(t){return t.transitions}));if(!v.some(function(t){return t.transitions.length>0}))return this.next(e,n);var y=(0,r.xH)(Object.keys(s).map(function(t){return s[t].configuration}));return{transitions:p,exitSet:(0,r.xH)(v.map(function(t){return t.exitSet})),configuration:y,source:e,actions:(0,r.xH)(Object.keys(s).map(function(t){return s[t].actions}))}},t.prototype._transition=function(t,e,n){return(0,r.HD)(t)?this.transitionLeafNode(t,e,n):1===Object.keys(t).length?this.transitionCompoundNode(t,e,n):this.transitionParallelNode(t,e,n)},t.prototype.getTransitionData=function(t,e){return this._transition(t.value,t,(0,r.g5)(e))},t.prototype.next=function(t,e){var n,o,a,s=this,c=e.name,u=[],f=[];try{for(var h=(0,i.XA)(this.getCandidates(c)),l=h.next();!l.done;l=h.next()){var d=l.value,v=d.cond,y=d.in,g=t.context,m=!y||((0,r.HD)(y)&&p(y)?t.matches((0,r.WM)(this.getStateNodeById(y).path,this.delimiter)):(0,r.W)((0,r.WM)(y,this.delimiter),(0,r.ET)(this.path.slice(0,-2))(t.value))),x=!1;try{x=!v||(0,r.vx)(this.machine,v,g,e,t)}catch(b){throw Error("Unable to evaluate guard '".concat(v.name||v.type,"' in transition for event '").concat(c,"' in state node '").concat(this.id,"':\n").concat(b.message))}if(x&&m){void 0!==d.target&&(f=d.target),u.push.apply(u,(0,i.ev)([],(0,i.CR)(d.actions),!1)),a=d;break}}}catch(S){n={error:S}}finally{try{l&&!l.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}if(a){if(!f.length)return{transitions:[a],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var w=(0,r.xH)(f.map(function(e){return s.getRelativeStateNodes(e,t.historyValue)})),_=!!a.internal;return{transitions:[a],exitSet:_?[]:(0,r.xH)(f.map(function(t){return s.getPotentiallyReenteringNodes(t)})),configuration:w,source:t,actions:u}}},t.prototype.getPotentiallyReenteringNodes=function(t){if(this.order0,b=x?t.configuration:e?e.configuration:[],S=(0,h.Ij)(b,this),w=x?(0,h.NA)(this.machine,m):void 0,_=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,E=this.getActions(new Set(b),S,t,n,f,e,u),O=e?(0,i.pi)({},e.activities):{};try{for(var A=(0,i.XA)(E),M=A.next();!M.done;M=A.next()){var k=M.value;try{for(var j=(p=void 0,(0,i.XA)(k)),T=j.next();!T.done;T=j.next()){var N=T.value;N.type===s.BL?O[N.activity.id||N.activity.type]=N:N.type===s.sT&&(O[N.activity.id||N.activity.type]=!1)}}catch(C){p={error:C}}finally{try{T&&!T.done&&(y=j.return)&&y.call(j)}finally{if(p)throw p.error}}}}catch(R){d={error:R}}finally{try{M&&!M.done&&(v=A.return)&&v.call(A)}finally{if(d)throw d.error}}var P=(0,i.CR)((0,c.yC)(this,e,n,f,E,u,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),D=P[0],L=P[1],H=(0,i.CR)((0,r.uK)(D,function(t){return t.type===s.OU||t.type===s.lW&&t.to===o.K.Internal}),2),V=H[0],X=H[1],I=D.filter(function(t){var e;return t.type===s.BL&&(null===(e=t.activity)||void 0===e?void 0:e.type)===s.dw}).reduce(function(t,e){return t[e.activity.id]=(0,l.mu)(e.activity,g.machine,L,f),t},e?(0,i.pi)({},e.children):{}),Z=new a.ZM({value:w||e.value,context:L,_event:f,_sessionid:e?e._sessionid:null,historyValue:w?_?(0,r.yv)(_,w):void 0:e?e.historyValue:void 0,history:!w||t.source?e:void 0,actions:w?X:[],activities:w?O:e?e.activities:{},events:[],configuration:b,transitions:t.transitions,children:I,done:S,tags:(0,h.Oe)(b),machine:this}),J=n!==L;Z.changed=f.name===s.Vx||J;var U=Z.history;U&&delete U.history;var K=!S&&(this._transient||m.some(function(t){return t._transient}));if(!x&&(!K||""===f.name))return Z;var Q=Z;if(!S)for(K&&(Q=this.resolveRaisedTransition(Q,{type:s.IA},f,u));V.length;){var q=V.shift();Q=this.resolveRaisedTransition(Q,q._event,f,u)}var $=Q.changed||(U?!!Q.actions.length||J||typeof U.value!=typeof Q.value||!(0,a.j_)(Q.value,U.value):void 0);return Q.changed=$,Q.history=U,Q},t.prototype.getStateNode=function(t){if(p(t))return this.machine.getStateNodeById(t);if(!this.states)throw Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var e=this.states[t];if(!e)throw Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return e},t.prototype.getStateNodeById=function(t){var e=p(t)?t.slice(1):t;if(e===this.id)return this;var n=this.machine.idMap[e];if(!n)throw Error("Child state node '#".concat(e,"' does not exist on machine '").concat(this.id,"'"));return n},t.prototype.getStateNodeByPath=function(t){if("string"==typeof t&&p(t))try{return this.getStateNodeById(t.slice(1))}catch(e){}for(var n=(0,r.Q9)(t,this.delimiter).slice(),i=this;n.length;){var o=n.shift();if(!o.length)break;i=i.getStateNode(o)}return i},t.prototype.resolve=function(t){var e,n=this;if(!t)return this.initialStateValue||v;switch(this.type){case"parallel":return(0,r.Q8)(this.initialStateValue,function(e,i){return e?n.getStateNode(i).resolve(t[i]||e):v});case"compound":if((0,r.HD)(t)){var i=this.getStateNode(t);if("parallel"===i.type||"compound"===i.type)return(e={})[t]=i.initialStateValue,e;return t}if(!Object.keys(t).length)return this.initialStateValue||{};return(0,r.Q8)(t,function(t,e){return t?n.getStateNode(e).resolve(t):v});default:return t||v}},t.prototype.getResolvedPath=function(t){if(p(t)){var e=this.machine.idMap[t.slice(1)];if(!e)throw Error("Unable to find state node '".concat(t,"'"));return e.path}return(0,r.Q9)(t,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var t,e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)e=(0,r.ib)(this.states,function(t){return t.initialStateValue||v},function(t){return"history"!==t.type});else if(void 0!==this.initial){if(!this.states[this.initial])throw Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));e=(0,h.N9)(this.states[this.initial])?this.initial:((t={})[this.initial]=this.states[this.initial].initialStateValue,t)}else e={};return this.__cache.initialStateValue=e,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(t,e){this._init();var n=this.getStateNodes(t);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=e?e:this.machine.context,void 0)},Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var t;if("history"===this.type){var e=this.config;t=(0,r.HD)(e.target)&&p(e.target)?(0,r.on)(this.machine.getStateNodeById(e.target).path.slice(this.path.length-1)):e.target}return t},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(t,e,n){return void 0===n&&(n=!0),n?"history"===t.type?t.resolveHistory(e):t.initialStateNodes:[t]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var t=this;if((0,h.N9)(this))return[this];if("compound"===this.type&&!this.initial)return u.M||(0,r.ZK)(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var e=(0,r.SA)(this.initialStateValue);return(0,r.xH)(e.map(function(e){return t.getFromRelativePath(e)}))},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var e=(0,i.CR)(t),n=e[0],r=e.slice(1);if(!this.states)throw Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var o=this.getStateNode(n);if("history"===o.type)return o.resolveHistory();if(!this.states[n])throw Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},t.prototype.historyValue=function(t){if(Object.keys(this.states).length)return{current:t||this.initialStateValue,states:(0,r.ib)(this.states,function(e,n){if(!t)return e.historyValue();var i=(0,r.HD)(t)?void 0:t[n];return e.historyValue(i||e.initialStateValue)},function(t){return!t.history})}},t.prototype.resolveHistory=function(t){var e=this;if("history"!==this.type)return[this];var n=this.parent;if(!t){var i=this.target;return i?(0,r.xH)((0,r.SA)(i).map(function(t){return n.getFromRelativePath(t)})):n.initialStateNodes}var o=(0,r.gk)(n.path,"states")(t).current;return(0,r.HD)(o)?[n.getStateNode(o)]:(0,r.xH)((0,r.SA)(o).map(function(t){return"deep"===e.history?n.getFromRelativePath(t):[n.states[t[0]]]}))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var t=this;return[this.id].concat((0,r.xH)(Object.keys(this.states).map(function(e){return t.states[e].stateIds})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){if(this.__cache.events)return this.__cache.events;var t,e,n,r,o=this.states,a=new Set(this.ownEvents);if(o)try{for(var s=(0,i.XA)(Object.keys(o)),c=s.next();!c.done;c=s.next()){var u=o[c.value];if(u.states)try{for(var f=(n=void 0,(0,i.XA)(u.events)),h=f.next();!h.done;h=f.next()){var l=h.value;a.add("".concat(l))}}catch(d){n={error:d}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(a)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){return Array.from(new Set(this.transitions.filter(function(t){return!(!t.target&&!t.actions.length&&t.internal)}).map(function(t){return t.eventType})))},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(t){var e=this;if(void 0!==t)return t.map(function(t){if(!(0,r.HD)(t))return t;var n=t[0]===e.delimiter;if(n&&!e.parent)return e.getStateNodeByPath(t.slice(1));var i=n?e.key+t:t;if(!e.parent)return e.getStateNodeByPath(i);try{return e.parent.getStateNodeByPath(i)}catch(o){throw Error("Invalid transition definition for state node '".concat(e.id,"':\n").concat(o.message))}})},t.prototype.formatTransition=function(t){var e=this,n=(0,r.rg)(t.target),o="internal"in t?t.internal:!n||n.some(function(t){return(0,r.HD)(t)&&t[0]===e.delimiter}),a=this.machine.options.guards,s=this.resolveTarget(n),u=(0,i.pi)((0,i.pi)({},t),{actions:(0,c.AE)((0,r.qo)(t.actions)),cond:(0,r.Qi)(t.cond,a),target:s,source:this,internal:o,eventType:t.event,toJSON:function(){return(0,i.pi)((0,i.pi)({},u),{target:u.target?u.target.map(function(t){return"#".concat(t.id)}):void 0,source:"#".concat(e.id)})}});return u},t.prototype.formatTransitions=function(){var t,e,n,o=this;if(this.config.on){if(Array.isArray(this.config.on))n=this.config.on;else{var a=this.config.on,s=a["*"],f=(0,i._T)(a,["*"]);n=(0,r.xH)(Object.keys(f).map(function(t){u.M||""!==t||(0,r.ZK)(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(o.id,'".'));var e=(0,r.jh)(t,f[t]);return u.M||y(o,t,e),e}).concat((0,r.jh)("*",void 0===s?[]:s)))}}else n=[];var h=this.config.always?(0,r.jh)("",this.config.always):[],l=this.config.onDone?(0,r.jh)(String((0,c.aT)(this.id)),this.config.onDone):[];u.M||(0,r.ZK)(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var d=(0,r.xH)(this.invoke.map(function(t){var e=[];return t.onDone&&e.push.apply(e,(0,i.ev)([],(0,i.CR)((0,r.jh)(String((0,c.Sl)(t.id)),t.onDone)),!1)),t.onError&&e.push.apply(e,(0,i.ev)([],(0,i.CR)((0,r.jh)(String((0,c.vU)(t.id)),t.onError)),!1)),e})),v=this.after,p=(0,r.xH)((0,i.ev)((0,i.ev)((0,i.ev)((0,i.ev)([],(0,i.CR)(l),!1),(0,i.CR)(d),!1),(0,i.CR)(n),!1),(0,i.CR)(h),!1).map(function(t){return(0,r.qo)(t).map(function(t){return o.formatTransition(t)})}));try{for(var g=(0,i.XA)(v),m=g.next();!m.done;m=g.next()){var x=m.value;p.push(x)}}catch(b){t={error:b}}finally{try{m&&!m.done&&(e=g.return)&&e.call(g)}finally{if(t)throw t.error}}return p},t}(),m=!1;function x(t,e){return u.M||"predictableActionArguments"in t||m||(m=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new g(t,e)}},54911:function(t,e,n){n.d(e,{TL:function(){return u},ZM:function(){return h},j1:function(){return f},j_:function(){return function t(e,n){if(e===n)return!0;if(void 0===e||void 0===n)return!1;if((0,o.HD)(e)||(0,o.HD)(n))return e===n;var i=Object.keys(e),r=Object.keys(n);return i.length===r.length&&i.every(function(i){return t(e[i],n[i])})}}});var i=n(63056),r=n(87353),o=n(89823),a=n(56115),s=n(30375),c=n(14066);function u(t){return"object"==typeof t&&null!==t&&"value"in t&&"_event"in t}function f(t,e){var n=t.exec;return(0,i.pi)((0,i.pi)({},t),{exec:void 0!==n?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0})}var h=function(){function t(t){var e,n=this;this.actions=[],this.activities=r.qP,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||r.qP,this.meta=(0,a.xZ)(t.configuration),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=null!==(e=Array.isArray(t.tags)?new Set(t.tags):t.tags)&&void 0!==e?e:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return(0,a.nJ)(n.configuration)}})}return t.from=function(e,n){if(e instanceof t)return e.context!==n?new t({value:e.value,context:n,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):e;var i=s.bf;return new t({value:e,context:n,_event:i,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(e){return new t(e)},t.inert=function(e,n){if(e instanceof t){if(!e.actions.length)return e;var i=s.bf;return new t({value:e.value,context:n,_event:i,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return t.from(e,n)},t.prototype.toStrings=function(t,e){var n=this;if(void 0===t&&(t=this.value),void 0===e&&(e="."),(0,o.HD)(t))return[t];var r=Object.keys(t);return r.concat.apply(r,(0,i.ev)([],(0,i.CR)(r.map(function(i){return n.toStrings(t[i],e).map(function(t){return i+e+t})})),!1))},t.prototype.toJSON=function(){this.configuration,this.transitions;var t=this.tags;this.machine;var e=(0,i._T)(this,["configuration","transitions","tags","machine"]);return(0,i.pi)((0,i.pi)({},e),{tags:Array.from(t)})},t.prototype.matches=function(t){return(0,o.W)(t,this.value)},t.prototype.hasTag=function(t){return this.tags.has(t)},t.prototype.can=function(t){c.M&&(0,o.ZK)(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var e,n=null===(e=this.machine)||void 0===e?void 0:e.getTransitionData(this,t);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some(function(t){return void 0!==t.target||t.actions.length})},t}()},63056:function(t,e,n){n.d(e,{CR:function(){return a},XA:function(){return o},_T:function(){return r},ev:function(){return s},pi:function(){return i}});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var i=function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;ne.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);re.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}function o(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function s(t,e,n){if(n||2==arguments.length)for(var i,r=0,o=e.length;r0;){var e=o.shift();i=t.transition(i,e,u),r.forEach(function(t){return t.next(i)})}a=!1}},c=(0,y.vk)({id:n.id,send:function(t){o.push(t),s()},getSnapshot:function(){return i},subscribe:function(t,e,n){var o=(0,d.zM)(t,e,n);return r.add(o),o.next(i),{unsubscribe:function(){r.delete(o)}}}}),u={parent:n.parent,self:c,id:n.id||"anonymous",observers:r},i=t.start?t.start(u):i,c);return this.children.set(e,f),f},t.prototype.spawnPromise=function(t,e){var n,i,r=this,o=!1;t.then(function(t){o||(i=t,r.removeChild(e),r.send((0,d.g5)((0,h.Sl)(e,t),{origin:e})))},function(t){if(!o){r.removeChild(e);var n=(0,h.vU)(e,t);try{r.send((0,d.g5)(n,{origin:e}))}catch(i){(0,d.v4)(t,i,e),r.devTools&&r.devTools.send(n,r.state),r.machine.strict&&r.stop()}}});var a=((n={id:e,send:function(){},subscribe:function(e,n,i){var r=(0,d.zM)(e,n,i),o=!1;return t.then(function(t){!o&&(r.next(t),o||r.complete())},function(t){o||r.error(t)}),{unsubscribe:function(){return o=!0}}},stop:function(){o=!0},toJSON:function(){return{id:e}},getSnapshot:function(){return i}})[d.L$]=function(){return this},n);return this.children.set(e,a),a},t.prototype.spawnCallback=function(t,e){var n,i,r,o=this,a=!1,s=new Set,c=new Set;try{r=t(function(t){i=t,c.forEach(function(e){return e(t)}),a||o.send((0,d.g5)(t,{origin:e}))},function(t){s.add(t)})}catch(u){this.send((0,h.vU)(e,u))}if((0,d.y8)(r))return this.spawnPromise(r,e);var f=((n={id:e,send:function(t){return s.forEach(function(e){return e(t)})},subscribe:function(t){var e=(0,d.zM)(t);return c.add(e.next),{unsubscribe:function(){c.delete(e.next)}}},stop:function(){a=!0,(0,d.mf)(r)&&r()},toJSON:function(){return{id:e}},getSnapshot:function(){return i}})[d.L$]=function(){return this},n);return this.children.set(e,f),f},t.prototype.spawnObservable=function(t,e){var n,i,r=this,o=t.subscribe(function(t){i=t,r.send((0,d.g5)(t,{origin:e}))},function(t){r.removeChild(e),r.send((0,d.g5)((0,h.vU)(e,t),{origin:e}))},function(){r.removeChild(e),r.send((0,d.g5)((0,h.Sl)(e),{origin:e}))}),a=((n={id:e,send:function(){},subscribe:function(e,n,i){return t.subscribe(e,n,i)},stop:function(){return o.unsubscribe()},getSnapshot:function(){return i},toJSON:function(){return{id:e}}})[d.L$]=function(){return this},n);return this.children.set(e,a),a},t.prototype.spawnActor=function(t,e){return this.children.set(e,t),t},t.prototype.spawnActivity=function(t){var e=this.machine.options&&this.machine.options.activities?this.machine.options.activities[t.type]:void 0;if(!e){l.M||(0,d.ZK)(!1,"No implementation found for activity '".concat(t.type,"'"));return}var n=e(this.state.context,t);this.spawnEffect(t.id,n)},t.prototype.spawnEffect=function(t,e){var n;this.children.set(t,((n={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:e||void 0,getSnapshot:function(){},toJSON:function(){return{id:t}}})[d.L$]=function(){return this},n))},t.prototype.attachDev=function(){var t=b();if(this.options.devTools&&t){if(t.__REDUX_DEVTOOLS_EXTENSION__){var e="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=t.__REDUX_DEVTOOLS_EXTENSION__.connect((0,s.pi)((0,s.pi)({name:this.id,autoPause:!0,stateSanitizer:function(t){return{value:t.value,context:t.context,actions:t.actions}}},e),{features:(0,s.pi)({jump:!1,skip:!1},e?e.features:void 0)}),this.machine),this.devTools.init(this.state)}!function(t){if(b()){var e=function(){var t=b();if(t&&"__xstate__"in t)return t.__xstate__}();e&&e.register(t)}}(this)}},t.prototype.toJSON=function(){return{id:this.id}},t.prototype[d.L$]=function(){return this},t.prototype.getSnapshot=function(){return this.status===r.NotStarted?this.initialState:this._state},t.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(t,e){return setTimeout(t,e)},clearTimeout:function(t){return clearTimeout(t)}},logger:console.log.bind(console),devTools:!1},t.interpret=E,t}();function E(t,e){return new _(t,e)}var O=o.useLayoutEffect;function A(t){var e=o.useRef();return e.current||(e.current={v:t()}),e.current.v}var M=function(){return(M=Object.assign||function(t){for(var e,n=1,i=arguments.length;ne.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);re.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n},j=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a};function T(t){return t}function N(t){for(var e,n,i,s,c,f,h,l,d,v=[],p=1;p0||"boolean"==typeof t.changed);return!(e.changed||n)},[m]),S=(0,o.useCallback)(function(t){return m.subscribe(t).unsubscribe},[m]),w=(0,a.useSyncExternalStoreWithSelector)(S,x,x,T,b);return(0,o.useEffect)(function(){var t=g.state;return m.start(t?u.ZM.create(t):void 0),function(){m.stop(),m.status=r.NotStarted}},[]),[w,m.send,m]}},53250:function(t,e,n){/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ var i=n(67294),r="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=i.useState,a=i.useEffect,s=i.useLayoutEffect,c=i.useDebugValue;function u(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!r(t,n)}catch(i){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),i=o({inst:{value:n,getSnapshot:e}}),r=i[0].inst,f=i[1];return s(function(){r.value=n,r.getSnapshot=e,u(r)&&f({inst:r})},[t,n,e]),a(function(){return u(r)&&f({inst:r}),t(function(){u(r)&&f({inst:r})})},[t]),c(n),n};e.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:f},50139:function(t,e,n){/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ var i=n(67294),r=n(61688),o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=r.useSyncExternalStore,s=i.useRef,c=i.useEffect,u=i.useMemo,f=i.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,n,i,r){var h=s(null);if(null===h.current){var l={hasValue:!1,value:null};h.current=l}else l=h.current;h=u(function(){function t(t){if(!c){if(c=!0,a=t,t=i(t),void 0!==r&&l.hasValue){var e=l.value;if(r(e,t))return s=e}return s=t}if(e=s,o(a,t))return e;var n=i(t);return void 0!==r&&r(e,n)?e:(a=t,s=n)}var a,s,c=!1,u=void 0===n?null:n;return[function(){return t(e())},null===u?void 0:function(){return t(u())}]},[e,n,i,r]);var d=a(t,h[0],h[1]);return c(function(){l.hasValue=!0,l.value=d},[d]),f(d),d}},61688:function(t,e,n){t.exports=n(53250)},52798:function(t,e,n){t.exports=n(50139)},98933:function(t,e,n){n.d(e,{Xg:function(){return c},f3:function(){return u},mu:function(){return s},vk:function(){return f}});var i=n(63056),r=n(89823),o=n(10797);function a(t){var e;return(e={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:t}}})[r.L$]=function(){return this},e}function s(t,e,n,i){var o,s=(0,r.j)(t.src),u=null===(o=null==e?void 0:e.options.services)||void 0===o?void 0:o[s.type],f=t.data?(0,r.QX)(t.data,n,i):void 0,h=u?c(u,t.id,f):a(t.id);return h.meta=t,h}function c(t,e,n){var i=a(e);if(i.deferred=!0,(0,r.O4)(t)){var s=i.state=(0,o.J)(void 0,function(){return(n?t.withContext(n):t).initialState});i.getSnapshot=function(){return s}}return i}function u(t){return function(t){try{return"function"==typeof t.send}catch(e){return!1}}(t)&&"id"in t}function f(t){var e;return(0,i.pi)(((e={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[r.L$]=function(){return this},e),t)}},4723:function(t,e,n){n.d(e,{C:function(){return x}});var i=n(63056),r=n(89823),o=n(59043),a=n(54911),s=n(3884),c=n(30375),u=n(14066),f=n(87353),h=n(56115),l=n(98933);function d(t){return(0,i.pi)((0,i.pi)({type:s.dw},t),{toJSON:function(){t.onDone,t.onError;var e=(0,i._T)(t,["onDone","onError"]);return(0,i.pi)((0,i.pi)({},e),{type:s.dw,src:function(t){if("string"==typeof t){var e={type:t};return e.toString=function(){return t},e}return t}(t.src)})}})}var v={},p=function(t){return"#"===t[0]},y=function(t,e,n){var i=n.slice(0,-1).some(function(t){return!("cond"in t)&&!("in"in t)&&((0,r.HD)(t.target)||(0,r.O4)(t.target))});(0,r.ZK)(!i,"One or more transitions for ".concat(""===e?"the transient event":"event '".concat(e,"'")," on state '").concat(t.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")},g=function(){function t(e,n,o,a){void 0===o&&(o="context"in e?e.context:void 0);var s,l=this;this.config=e,this._context=o,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null==a?void 0:a.parent,this.key=this.config.key||(null==a?void 0:a.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:f.iS),this.id=this.config.id||(0,i.ev)([this.machine.key],(0,i.CR)(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(s=this.config.schema)&&void 0!==s?s:{},this.description=this.config.description,u.M||(0,r.ZK)(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?(0,r.Q8)(this.config.states,function(e,n){var r,o=new t(e,{},void 0,{parent:l,key:n});return Object.assign(l.idMap,(0,i.pi)(((r={})[o.id]=o,r),o.idMap)),o}):v;var p=0;!function t(e){var n,r;e.order=p++;try{for(var o=(0,i.XA)((0,h.nI)(e)),a=o.next();!a.done;a=o.next()){var s=a.value;t(s)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some(function(t){return""===t.event}):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=(0,r.qo)(this.config.entry||this.config.onEntry).map(function(t){return(0,c.Q8)(t)}),this.onExit=(0,r.qo)(this.config.exit||this.config.onExit).map(function(t){return(0,c.Q8)(t)}),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=(0,r.qo)(this.config.invoke).map(function(t,e){if((0,r.O4)(t)){var n,o,a=(0,r.bx)(l.id,e);return l.machine.options.services=(0,i.pi)(((n={})[a]=t,n),l.machine.options.services),d({src:a,id:a})}if((0,r.HD)(t.src)){var a=t.id||(0,r.bx)(l.id,e);return d((0,i.pi)((0,i.pi)({},t),{id:a,src:t.src}))}if((0,r.O4)(t.src)||(0,r.mf)(t.src)){var a=t.id||(0,r.bx)(l.id,e);return l.machine.options.services=(0,i.pi)(((o={})[a]=t.src,o),l.machine.options.services),d((0,i.pi)((0,i.pi)({id:a},t),{src:a}))}var s=t.src;return d((0,i.pi)((0,i.pi)({id:(0,r.bx)(l.id,e)},t),{src:s}))}),this.activities=(0,r.qo)(this.config.activities).concat(this.invoke).map(function(t){return(0,c.XA)(t)}),this.transition=this.transition.bind(this),this.tags=(0,r.qo)(this.config.tags)}return t.prototype._init=function(){this.__cache.transitions||(0,h.ac)(this).forEach(function(t){return t.on})},t.prototype.withConfig=function(e,n){var r=this.options,o=r.actions,a=r.activities,s=r.guards,c=r.services,u=r.delays;return new t(this.config,{actions:(0,i.pi)((0,i.pi)({},o),e.actions),activities:(0,i.pi)((0,i.pi)({},a),e.activities),guards:(0,i.pi)((0,i.pi)({},s),e.guards),services:(0,i.pi)((0,i.pi)({},c),e.services),delays:(0,i.pi)((0,i.pi)({},u),e.delays)},null!=n?n:this.context)},t.prototype.withContext=function(e){return new t(this.config,this.options,e)},Object.defineProperty(t.prototype,"context",{get:function(){return(0,r.mf)(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:(0,r.Q8)(this.states,function(t){return t.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var t=this.transitions;return this.__cache.on=t.reduce(function(t,e){return t[e.eventType]=t[e.eventType]||[],t[e.eventType].push(e),t},{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(t){if(this.__cache.candidates[t])return this.__cache.candidates[t];var e=""===t,n=this.transitions.filter(function(n){var i=n.eventType===t;return e?i:i||"*"===n.eventType});return this.__cache.candidates[t]=n,n},t.prototype.getDelayedTransitions=function(){var t=this,e=this.config.after;if(!e)return[];var n=function(e,n){var i=(0,r.mf)(e)?"".concat(t.id,":delay[").concat(n,"]"):e,o=(0,c.e4)(i,t.id);return t.onEntry.push((0,c.lW)(o,{delay:e})),t.onExit.push((0,c.al)(o)),o};return((0,r.kJ)(e)?e.map(function(t,e){var r=n(t.delay,e);return(0,i.pi)((0,i.pi)({},t),{event:r})}):(0,r.xH)(Object.keys(e).map(function(t,o){var a=e[t],s=(0,r.HD)(a)?{target:a}:a,c=isNaN(+t)?t:+t,u=n(c,o);return(0,r.qo)(s).map(function(t){return(0,i.pi)((0,i.pi)({},t),{event:u,delay:c})})}))).map(function(e){var n=e.delay;return(0,i.pi)((0,i.pi)({},t.formatTransition(e)),{delay:n})})},t.prototype.getStateNodes=function(t){var e,n=this;if(!t)return[];var o=t instanceof a.ZM?t.value:(0,r.WM)(t,this.delimiter);if((0,r.HD)(o)){var s=this.getStateNode(o).initial;return void 0!==s?this.getStateNodes(((e={})[o]=s,e)):[this,this.states[o]]}var c=Object.keys(o),u=[this];return u.push.apply(u,(0,i.ev)([],(0,i.CR)((0,r.xH)(c.map(function(t){return n.getStateNode(t).getStateNodes(o[t])}))),!1)),u},t.prototype.handles=function(t){var e=(0,r.x6)(t);return this.events.includes(e)},t.prototype.resolveState=function(t){var e=t instanceof a.ZM?t:a.ZM.create(t),n=Array.from((0,h.P_)([],this.getStateNodes(e.value)));return new a.ZM((0,i.pi)((0,i.pi)({},e),{value:this.resolve(e.value),configuration:n,done:(0,h.Ij)(n,this),tags:(0,h.Oe)(n),machine:this.machine}))},t.prototype.transitionLeafNode=function(t,e,n){var i=this.getStateNode(t).next(e,n);return i&&i.transitions.length?i:this.next(e,n)},t.prototype.transitionCompoundNode=function(t,e,n){var i=Object.keys(t),r=this.getStateNode(i[0])._transition(t[i[0]],e,n);return r&&r.transitions.length?r:this.next(e,n)},t.prototype.transitionParallelNode=function(t,e,n){var o,a,s={};try{for(var c=(0,i.XA)(Object.keys(t)),u=c.next();!u.done;u=c.next()){var f=u.value,h=t[f];if(h){var l=this.getStateNode(f)._transition(h,e,n);l&&(s[f]=l)}}}catch(d){o={error:d}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}var v=Object.keys(s).map(function(t){return s[t]}),p=(0,r.xH)(v.map(function(t){return t.transitions}));if(!v.some(function(t){return t.transitions.length>0}))return this.next(e,n);var y=(0,r.xH)(Object.keys(s).map(function(t){return s[t].configuration}));return{transitions:p,exitSet:(0,r.xH)(v.map(function(t){return t.exitSet})),configuration:y,source:e,actions:(0,r.xH)(Object.keys(s).map(function(t){return s[t].actions}))}},t.prototype._transition=function(t,e,n){return(0,r.HD)(t)?this.transitionLeafNode(t,e,n):1===Object.keys(t).length?this.transitionCompoundNode(t,e,n):this.transitionParallelNode(t,e,n)},t.prototype.getTransitionData=function(t,e){return this._transition(t.value,t,(0,r.g5)(e))},t.prototype.next=function(t,e){var n,o,a,s=this,c=e.name,u=[],f=[];try{for(var h=(0,i.XA)(this.getCandidates(c)),l=h.next();!l.done;l=h.next()){var d=l.value,v=d.cond,y=d.in,g=t.context,m=!y||((0,r.HD)(y)&&p(y)?t.matches((0,r.WM)(this.getStateNodeById(y).path,this.delimiter)):(0,r.W)((0,r.WM)(y,this.delimiter),(0,r.ET)(this.path.slice(0,-2))(t.value))),x=!1;try{x=!v||(0,r.vx)(this.machine,v,g,e,t)}catch(b){throw Error("Unable to evaluate guard '".concat(v.name||v.type,"' in transition for event '").concat(c,"' in state node '").concat(this.id,"':\n").concat(b.message))}if(x&&m){void 0!==d.target&&(f=d.target),u.push.apply(u,(0,i.ev)([],(0,i.CR)(d.actions),!1)),a=d;break}}}catch(S){n={error:S}}finally{try{l&&!l.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}if(a){if(!f.length)return{transitions:[a],exitSet:[],configuration:t.value?[this]:[],source:t,actions:u};var w=(0,r.xH)(f.map(function(e){return s.getRelativeStateNodes(e,t.historyValue)})),_=!!a.internal;return{transitions:[a],exitSet:_?[]:(0,r.xH)(f.map(function(t){return s.getPotentiallyReenteringNodes(t)})),configuration:w,source:t,actions:u}}},t.prototype.getPotentiallyReenteringNodes=function(t){if(this.order0,b=x?t.configuration:e?e.configuration:[],S=(0,h.Ij)(b,this),w=x?(0,h.NA)(this.machine,m):void 0,_=e?e.historyValue?e.historyValue:t.source?this.machine.historyValue(e.value):void 0:void 0,E=this.getActions(new Set(b),S,t,n,f,e,u),O=e?(0,i.pi)({},e.activities):{};try{for(var A=(0,i.XA)(E),M=A.next();!M.done;M=A.next()){var k=M.value;try{for(var j=(p=void 0,(0,i.XA)(k)),T=j.next();!T.done;T=j.next()){var N=T.value;N.type===s.BL?O[N.activity.id||N.activity.type]=N:N.type===s.sT&&(O[N.activity.id||N.activity.type]=!1)}}catch(C){p={error:C}}finally{try{T&&!T.done&&(y=j.return)&&y.call(j)}finally{if(p)throw p.error}}}}catch(R){d={error:R}}finally{try{M&&!M.done&&(v=A.return)&&v.call(A)}finally{if(d)throw d.error}}var P=(0,i.CR)((0,c.yC)(this,e,n,f,E,u,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),D=P[0],L=P[1],H=(0,i.CR)((0,r.uK)(D,function(t){return t.type===s.OU||t.type===s.lW&&t.to===o.K.Internal}),2),V=H[0],X=H[1],I=D.filter(function(t){var e;return t.type===s.BL&&(null===(e=t.activity)||void 0===e?void 0:e.type)===s.dw}).reduce(function(t,e){return t[e.activity.id]=(0,l.mu)(e.activity,g.machine,L,f),t},e?(0,i.pi)({},e.children):{}),Z=new a.ZM({value:w||e.value,context:L,_event:f,_sessionid:e?e._sessionid:null,historyValue:w?_?(0,r.yv)(_,w):void 0:e?e.historyValue:void 0,history:!w||t.source?e:void 0,actions:w?X:[],activities:w?O:e?e.activities:{},events:[],configuration:b,transitions:t.transitions,children:I,done:S,tags:(0,h.Oe)(b),machine:this}),J=n!==L;Z.changed=f.name===s.Vx||J;var U=Z.history;U&&delete U.history;var K=!S&&(this._transient||m.some(function(t){return t._transient}));if(!x&&(!K||""===f.name))return Z;var Q=Z;if(!S)for(K&&(Q=this.resolveRaisedTransition(Q,{type:s.IA},f,u));V.length;){var q=V.shift();Q=this.resolveRaisedTransition(Q,q._event,f,u)}var $=Q.changed||(U?!!Q.actions.length||J||typeof U.value!=typeof Q.value||!(0,a.j_)(Q.value,U.value):void 0);return Q.changed=$,Q.history=U,Q},t.prototype.getStateNode=function(t){if(p(t))return this.machine.getStateNodeById(t);if(!this.states)throw Error("Unable to retrieve child state '".concat(t,"' from '").concat(this.id,"'; no child states exist."));var e=this.states[t];if(!e)throw Error("Child state '".concat(t,"' does not exist on '").concat(this.id,"'"));return e},t.prototype.getStateNodeById=function(t){var e=p(t)?t.slice(1):t;if(e===this.id)return this;var n=this.machine.idMap[e];if(!n)throw Error("Child state node '#".concat(e,"' does not exist on machine '").concat(this.id,"'"));return n},t.prototype.getStateNodeByPath=function(t){if("string"==typeof t&&p(t))try{return this.getStateNodeById(t.slice(1))}catch(e){}for(var n=(0,r.Q9)(t,this.delimiter).slice(),i=this;n.length;){var o=n.shift();if(!o.length)break;i=i.getStateNode(o)}return i},t.prototype.resolve=function(t){var e,n=this;if(!t)return this.initialStateValue||v;switch(this.type){case"parallel":return(0,r.Q8)(this.initialStateValue,function(e,i){return e?n.getStateNode(i).resolve(t[i]||e):v});case"compound":if((0,r.HD)(t)){var i=this.getStateNode(t);if("parallel"===i.type||"compound"===i.type)return(e={})[t]=i.initialStateValue,e;return t}if(!Object.keys(t).length)return this.initialStateValue||{};return(0,r.Q8)(t,function(t,e){return t?n.getStateNode(e).resolve(t):v});default:return t||v}},t.prototype.getResolvedPath=function(t){if(p(t)){var e=this.machine.idMap[t.slice(1)];if(!e)throw Error("Unable to find state node '".concat(t,"'"));return e.path}return(0,r.Q9)(t,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var t,e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)e=(0,r.ib)(this.states,function(t){return t.initialStateValue||v},function(t){return"history"!==t.type});else if(void 0!==this.initial){if(!this.states[this.initial])throw Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));e=(0,h.N9)(this.states[this.initial])?this.initial:((t={})[this.initial]=this.states[this.initial].initialStateValue,t)}else e={};return this.__cache.initialStateValue=e,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(t,e){this._init();var n=this.getStateNodes(t);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=e?e:this.machine.context,void 0)},Object.defineProperty(t.prototype,"initialState",{get:function(){var t=this.initialStateValue;if(!t)throw Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var t;if("history"===this.type){var e=this.config;t=(0,r.HD)(e.target)&&p(e.target)?(0,r.on)(this.machine.getStateNodeById(e.target).path.slice(this.path.length-1)):e.target}return t},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(t,e,n){return void 0===n&&(n=!0),n?"history"===t.type?t.resolveHistory(e):t.initialStateNodes:[t]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var t=this;if((0,h.N9)(this))return[this];if("compound"===this.type&&!this.initial)return u.M||(0,r.ZK)(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var e=(0,r.SA)(this.initialStateValue);return(0,r.xH)(e.map(function(e){return t.getFromRelativePath(e)}))},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(t){if(!t.length)return[this];var e=(0,i.CR)(t),n=e[0],r=e.slice(1);if(!this.states)throw Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var o=this.getStateNode(n);if("history"===o.type)return o.resolveHistory();if(!this.states[n])throw Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},t.prototype.historyValue=function(t){if(Object.keys(this.states).length)return{current:t||this.initialStateValue,states:(0,r.ib)(this.states,function(e,n){if(!t)return e.historyValue();var i=(0,r.HD)(t)?void 0:t[n];return e.historyValue(i||e.initialStateValue)},function(t){return!t.history})}},t.prototype.resolveHistory=function(t){var e=this;if("history"!==this.type)return[this];var n=this.parent;if(!t){var i=this.target;return i?(0,r.xH)((0,r.SA)(i).map(function(t){return n.getFromRelativePath(t)})):n.initialStateNodes}var o=(0,r.gk)(n.path,"states")(t).current;return(0,r.HD)(o)?[n.getStateNode(o)]:(0,r.xH)((0,r.SA)(o).map(function(t){return"deep"===e.history?n.getFromRelativePath(t):[n.states[t[0]]]}))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var t=this;return[this.id].concat((0,r.xH)(Object.keys(this.states).map(function(e){return t.states[e].stateIds})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){if(this.__cache.events)return this.__cache.events;var t,e,n,r,o=this.states,a=new Set(this.ownEvents);if(o)try{for(var s=(0,i.XA)(Object.keys(o)),c=s.next();!c.done;c=s.next()){var u=o[c.value];if(u.states)try{for(var f=(n=void 0,(0,i.XA)(u.events)),h=f.next();!h.done;h=f.next()){var l=h.value;a.add("".concat(l))}}catch(d){n={error:d}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}}catch(v){t={error:v}}finally{try{c&&!c.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}return this.__cache.events=Array.from(a)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){return Array.from(new Set(this.transitions.filter(function(t){return!(!t.target&&!t.actions.length&&t.internal)}).map(function(t){return t.eventType})))},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(t){var e=this;if(void 0!==t)return t.map(function(t){if(!(0,r.HD)(t))return t;var n=t[0]===e.delimiter;if(n&&!e.parent)return e.getStateNodeByPath(t.slice(1));var i=n?e.key+t:t;if(!e.parent)return e.getStateNodeByPath(i);try{return e.parent.getStateNodeByPath(i)}catch(o){throw Error("Invalid transition definition for state node '".concat(e.id,"':\n").concat(o.message))}})},t.prototype.formatTransition=function(t){var e=this,n=(0,r.rg)(t.target),o="internal"in t?t.internal:!n||n.some(function(t){return(0,r.HD)(t)&&t[0]===e.delimiter}),a=this.machine.options.guards,s=this.resolveTarget(n),u=(0,i.pi)((0,i.pi)({},t),{actions:(0,c.AE)((0,r.qo)(t.actions)),cond:(0,r.Qi)(t.cond,a),target:s,source:this,internal:o,eventType:t.event,toJSON:function(){return(0,i.pi)((0,i.pi)({},u),{target:u.target?u.target.map(function(t){return"#".concat(t.id)}):void 0,source:"#".concat(e.id)})}});return u},t.prototype.formatTransitions=function(){var t,e,n,o=this;if(this.config.on){if(Array.isArray(this.config.on))n=this.config.on;else{var a=this.config.on,s=a["*"],f=(0,i._T)(a,["*"]);n=(0,r.xH)(Object.keys(f).map(function(t){u.M||""!==t||(0,r.ZK)(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(o.id,'".'));var e=(0,r.jh)(t,f[t]);return u.M||y(o,t,e),e}).concat((0,r.jh)("*",void 0===s?[]:s)))}}else n=[];var h=this.config.always?(0,r.jh)("",this.config.always):[],l=this.config.onDone?(0,r.jh)(String((0,c.aT)(this.id)),this.config.onDone):[];u.M||(0,r.ZK)(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var d=(0,r.xH)(this.invoke.map(function(t){var e=[];return t.onDone&&e.push.apply(e,(0,i.ev)([],(0,i.CR)((0,r.jh)(String((0,c.Sl)(t.id)),t.onDone)),!1)),t.onError&&e.push.apply(e,(0,i.ev)([],(0,i.CR)((0,r.jh)(String((0,c.vU)(t.id)),t.onError)),!1)),e})),v=this.after,p=(0,r.xH)((0,i.ev)((0,i.ev)((0,i.ev)((0,i.ev)([],(0,i.CR)(l),!1),(0,i.CR)(d),!1),(0,i.CR)(n),!1),(0,i.CR)(h),!1).map(function(t){return(0,r.qo)(t).map(function(t){return o.formatTransition(t)})}));try{for(var g=(0,i.XA)(v),m=g.next();!m.done;m=g.next()){var x=m.value;p.push(x)}}catch(b){t={error:b}}finally{try{m&&!m.done&&(e=g.return)&&e.call(g)}finally{if(t)throw t.error}}return p},t}(),m=!1;function x(t,e){return u.M||"predictableActionArguments"in t||m||(m=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new g(t,e)}},54911:function(t,e,n){n.d(e,{TL:function(){return u},ZM:function(){return h},j1:function(){return f},j_:function(){return function t(e,n){if(e===n)return!0;if(void 0===e||void 0===n)return!1;if((0,o.HD)(e)||(0,o.HD)(n))return e===n;var i=Object.keys(e),r=Object.keys(n);return i.length===r.length&&i.every(function(i){return t(e[i],n[i])})}}});var i=n(63056),r=n(87353),o=n(89823),a=n(56115),s=n(30375),c=n(14066);function u(t){return"object"==typeof t&&null!==t&&"value"in t&&"_event"in t}function f(t,e){var n=t.exec;return(0,i.pi)((0,i.pi)({},t),{exec:void 0!==n?function(){return n(e.context,e.event,{action:t,state:e,_event:e._event})}:void 0})}var h=function(){function t(t){var e,n=this;this.actions=[],this.activities=r.qP,this.meta={},this.events=[],this.value=t.value,this.context=t.context,this._event=t._event,this._sessionid=t._sessionid,this.event=this._event.data,this.historyValue=t.historyValue,this.history=t.history,this.actions=t.actions||[],this.activities=t.activities||r.qP,this.meta=(0,a.xZ)(t.configuration),this.events=t.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=t.configuration,this.transitions=t.transitions,this.children=t.children,this.done=!!t.done,this.tags=null!==(e=Array.isArray(t.tags)?new Set(t.tags):t.tags)&&void 0!==e?e:new Set,this.machine=t.machine,Object.defineProperty(this,"nextEvents",{get:function(){return(0,a.nJ)(n.configuration)}})}return t.from=function(e,n){if(e instanceof t)return e.context!==n?new t({value:e.value,context:n,_event:e._event,_sessionid:null,historyValue:e.historyValue,history:e.history,actions:[],activities:e.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):e;var i=s.bf;return new t({value:e,context:n,_event:i,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(e){return new t(e)},t.inert=function(e,n){if(e instanceof t){if(!e.actions.length)return e;var i=s.bf;return new t({value:e.value,context:n,_event:i,_sessionid:null,historyValue:e.historyValue,history:e.history,activities:e.activities,configuration:e.configuration,transitions:[],children:{}})}return t.from(e,n)},t.prototype.toStrings=function(t,e){var n=this;if(void 0===t&&(t=this.value),void 0===e&&(e="."),(0,o.HD)(t))return[t];var r=Object.keys(t);return r.concat.apply(r,(0,i.ev)([],(0,i.CR)(r.map(function(i){return n.toStrings(t[i],e).map(function(t){return i+e+t})})),!1))},t.prototype.toJSON=function(){this.configuration,this.transitions;var t=this.tags;this.machine;var e=(0,i._T)(this,["configuration","transitions","tags","machine"]);return(0,i.pi)((0,i.pi)({},e),{tags:Array.from(t)})},t.prototype.matches=function(t){return(0,o.W)(t,this.value)},t.prototype.hasTag=function(t){return this.tags.has(t)},t.prototype.can=function(t){c.M&&(0,o.ZK)(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var e,n=null===(e=this.machine)||void 0===e?void 0:e.getTransitionData(this,t);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some(function(t){return void 0!==t.target||t.actions.length})},t}()},63056:function(t,e,n){n.d(e,{CR:function(){return a},XA:function(){return o},_T:function(){return r},ev:function(){return s},pi:function(){return i}});/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ var i=function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;ne.indexOf(i)&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);re.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}function o(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function s(t,e,n){if(n||2==arguments.length)for(var i,r=0,o=e.length;rO.indexOf(n)&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);aO.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t},S=p.forwardRef(function(e,O){var t,r=e.prefixCls,o=e.size,s=e.disabled,Q=e.loading,c=e.className,S=m(e,["prefixCls","size","disabled","loading","className"]),g=p.useContext(h.E_),P=g.getPrefixCls,Z=g.direction,T=p.useContext(u.Z),b=p.useContext(f.Z),x=P("switch",r),X=p.createElement("div",{className:"".concat(x,"-handle")},Q&&p.createElement(i.Z,{className:"".concat(x,"-loading-icon")})),W=l()((t={},(0,a.Z)(t,"".concat(x,"-small"),"small"===(o||T)),(0,a.Z)(t,"".concat(x,"-loading"),Q),(0,a.Z)(t,"".concat(x,"-rtl"),"rtl"===Z),t),void 0===c?"":c);return p.createElement($.Z,{insertExtraNode:!0},p.createElement(d,(0,n.Z)({},S,{prefixCls:x,className:W,disabled:(null!=s?s:b)||Q,ref:O,loadingIcon:X})))});S.__ANT_SWITCH=!0;var g=S},20550:function(e,O,t){t.d(O,{Z:function(){return S}});var n=t(4942),a=t(87462),i=t(97685),r=t(97937),l=t(94184),o=t.n(l),s=t(98423),p=t(67294),Q=t(53124),c=t(98787),d=t(68349),h=function(e,O){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>O.indexOf(n)&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);aO.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t},f=function(e,O){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>O.indexOf(n)&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);aO.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t},u=RegExp("^(".concat(c.Y.join("|"),")(-inverse)?$")),$=RegExp("^(".concat(c.E.join("|"),")$")),m=p.forwardRef(function(e,O){var t,l=e.prefixCls,c=e.className,h=e.style,m=e.children,S=e.icon,g=e.color,P=e.onClose,Z=e.closeIcon,T=e.closable,b=f(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),x=p.useContext(Q.E_),X=x.getPrefixCls,W=x.direction,y=p.useState(!0),_=(0,i.Z)(y,2),k=_[0],w=_[1];p.useEffect(function(){"visible"in b&&w(b.visible)},[b.visible]);var Y=function(){return!!g&&(u.test(g)||$.test(g))},q=(0,a.Z)({backgroundColor:g&&!Y()?g:void 0},h),V=Y(),v=X("tag",l),C=o()(v,(t={},(0,n.Z)(t,"".concat(v,"-").concat(g),V),(0,n.Z)(t,"".concat(v,"-has-color"),g&&!V),(0,n.Z)(t,"".concat(v,"-hidden"),!k),(0,n.Z)(t,"".concat(v,"-rtl"),"rtl"===W),t),c),j=function(e){e.stopPropagation(),null==P||P(e),!e.defaultPrevented&&("visible"in b||w(!1))},U="onClick"in b||m&&"a"===m.type,R=(0,s.Z)(b,["visible"]),G=S||null,A=G?p.createElement(p.Fragment,null,G,p.createElement("span",null,m)):m,M=p.createElement("span",(0,a.Z)({},R,{ref:O,className:C,style:q}),A,void 0!==T&&T?Z?p.createElement("span",{className:"".concat(v,"-close-icon"),onClick:j},Z):p.createElement(r.Z,{className:"".concat(v,"-close-icon"),onClick:j}):null);return U?p.createElement(d.Z,null,M):M});m.CheckableTag=function(e){var O,t=e.prefixCls,i=e.className,r=e.checked,l=e.onChange,s=e.onClick,c=h(e,["prefixCls","className","checked","onChange","onClick"]),d=(0,p.useContext(Q.E_).getPrefixCls)("tag",t),f=o()(d,(O={},(0,n.Z)(O,"".concat(d,"-checkable"),!0),(0,n.Z)(O,"".concat(d,"-checkable-checked"),r),O),i);return p.createElement("span",(0,a.Z)({},c,{className:f,onClick:function(e){null==l||l(!r),null==s||s(e)}}))};var S=m},13804:function(e,O,t){t.r(O),t.d(O,{autoCloseTags:function(){return ei},html:function(){return ea},htmlCompletionSource:function(){return K},htmlCompletionSourceWith:function(){return ee},htmlLanguage:function(){return en}});var n=t(53105),a=t(35524),i=t(41113);let r={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},l={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},o={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function s(e){return 9==e||10==e||13==e||32==e}let p=null,Q=null,c=0;function d(e,O){var t;let n=e.pos+O;if(c==n&&Q==e)return p;let a=e.peek(O);for(;s(a);)a=e.peek(++O);let i="";for(;45==(t=a)||46==t||58==t||t>=65&&t<=90||95==t||t>=97&&t<=122||t>=161;)i+=String.fromCharCode(a),a=e.peek(++O);return Q=e,c=n,p=i?i.toLowerCase():a==h||a==f?void 0:null}let h=63,f=33;function u(e,O){this.name=e,this.parent=O,this.hash=O?O.hash:0;for(let t=0;t$.indexOf(O)>-1?new u(d(n,1)||"",e):e,reduce:(e,O)=>18==O&&e?e.parent:e,reuse(e,O,t,n){let a=O.type.id;return 4==a||35==a?new u(d(n,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),S=new n.Jq((e,O)=>{if(60!=e.next){e.next<0&&O.context&&e.acceptToken(57);return}e.advance();let t=47==e.next;t&&e.advance();let n=d(e,0);if(void 0===n)return;if(!n)return e.acceptToken(t?12:4);let a=O.context?O.context.name:null;if(t){if(n==a)return e.acceptToken(9);if(a&&l[a])return e.acceptToken(57,-2);if(O.dialectEnabled(0))return e.acceptToken(10);for(let i=O.context;i;i=i.parent)if(i.name==n)return;e.acceptToken(11)}else{if("script"==n)return e.acceptToken(5);if("style"==n)return e.acceptToken(6);if("textarea"==n)return e.acceptToken(7);if(r.hasOwnProperty(n))return e.acceptToken(8);a&&o[a]&&o[a][n]?e.acceptToken(57,-1):e.acceptToken(4)}},{contextual:!0}),g=new n.Jq(e=>{for(let O=0,t=0;;t++){if(e.next<0){t&&e.acceptToken(58);break}if(45==e.next)O++;else if(62==e.next&&O>=2){t>3&&e.acceptToken(58,-2);break}else O=0;e.advance()}});function P(e,O,t){let a=2+e.length;return new n.Jq(n=>{for(let i=0,r=0,l=0;;l++){if(n.next<0){l&&n.acceptToken(O);break}if(0==i&&60==n.next||1==i&&47==n.next||i>=2&&ir?n.acceptToken(O,-r):n.acceptToken(t,-(r-2));break}else if((10==n.next||13==n.next)&&l){n.acceptToken(O,1);break}else i=r=0;n.advance()}})}let Z=P("script",54,1),T=P("style",55,2),b=P("textarea",56,3),x=(0,a.Gv)({"Text RawText":a.pJ.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":a.pJ.angleBracket,TagName:a.pJ.tagName,"MismatchedCloseTag/TagName":[a.pJ.tagName,a.pJ.invalid],AttributeName:a.pJ.attributeName,"AttributeValue UnquotedAttributeValue":a.pJ.attributeValue,Is:a.pJ.definitionOperator,"EntityReference CharacterReference":a.pJ.character,Comment:a.pJ.blockComment,ProcessingInst:a.pJ.processingInstruction,DoctypeDecl:a.pJ.documentMeta}),X=n.WQ.deserialize({version:14,states:",xOVOxOOO!WQ!bO'#CoO!]Q!bO'#CyO!bQ!bO'#C|O!gQ!bO'#DPO!lQ!bO'#DRO!qOXO'#CnO!|OYO'#CnO#XO[O'#CnO$eOxO'#CnOOOW'#Cn'#CnO$lO!rO'#DTO$tQ!bO'#DVO$yQ!bO'#DWOOOW'#Dk'#DkOOOW'#DY'#DYQVOxOOO%OQ#tO,59ZO%WQ#tO,59eO%`Q#tO,59hO%hQ#tO,59kO%sQ#tO,59mOOOX'#D^'#D^O%{OXO'#CwO&WOXO,59YOOOY'#D_'#D_O&`OYO'#CzO&kOYO,59YOOO['#D`'#D`O&sO[O'#C}O'OO[O,59YOOOW'#Da'#DaO'WOxO,59YO'_Q!bO'#DQOOOW,59Y,59YOOO`'#Db'#DbO'dO!rO,59oOOOW,59o,59oO'lQ!bO,59qO'qQ!bO,59rOOOW-E7W-E7WO'vQ#tO'#CqOOQO'#DZ'#DZO(UQ#tO1G.uOOOX1G.u1G.uO(^Q#tO1G/POOOY1G/P1G/PO(fQ#tO1G/SOOO[1G/S1G/SO(nQ#tO1G/VOOOW1G/V1G/VOOOW1G/X1G/XO(yQ#tO1G/XOOOX-E7[-E7[O)RQ!bO'#CxOOOW1G.t1G.tOOOY-E7]-E7]O)WQ!bO'#C{OOO[-E7^-E7^O)]Q!bO'#DOOOOW-E7_-E7_O)bQ!bO,59lOOO`-E7`-E7`OOOW1G/Z1G/ZOOOW1G/]1G/]OOOW1G/^1G/^O)gQ&jO,59]OOQO-E7X-E7XOOOX7+$a7+$aOOOY7+$k7+$kOOO[7+$n7+$nOOOW7+$q7+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{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue EndTag ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag SelfClosingEndTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:m,nodeProps:[["closedBy",-10,1,2,3,5,6,7,8,9,10,11,"EndTag",4,"EndTag SelfClosingEndTag",-4,19,29,32,35,"CloseTag"],["group",-9,12,15,16,17,18,39,40,41,42,"Entity",14,"Entity TextContent",-3,27,30,33,"TextContent Entity"],["openedBy",26,"StartTag StartCloseTag",-4,28,31,34,36,"OpenTag",38,"StartTag"]],propSources:[x],skippedNodes:[0],repeatNodeCount:9,tokenData:"#(r!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs4ysv-_vw5iwxJ^x}-_}!OKP!O!P-_!P!Q!!O!Q![-_![!]!$c!]!^-_!^!_!(k!_!`#'S!`!a#'z!a!c-_!c!}!$c!}#R-_#R#S!$c#S#T3V#T#o!$c#o#s-_#s$f$q$f%W-_%W%o!$c%o%p-_%p&a!$c&a&b-_&b1p!$c1p4U-_4U4d!$c4d4e-_4e$IS!$c$IS$I`-_$I`$Ib!$c$Ib$Kh-_$Kh%#t!$c%#t&/x-_&/x&Et!$c&Et&FV-_&FV;'S!$c;'S;:j!(e;:j;=`4s<%l?&r-_?&r?Ah!$c?Ah?BY$q?BY?Mn!$c?MnO$q!Z$|c^PiW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q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p||(p=W(l,O))))){let c=l.parent.lastChild;return{parser:Q.parser,overlay:[{from:e.to,to:36==c.type.id?c.from:l.parent.to}]}}}if(o&&21==i){let d=e.node,h;if(h=d.firstChild){let f=o[O.read(h.from,h.to)];if(f)for(let u of f){if(u.tagName&&u.tagName!=y(d.parent,O))continue;let $=d.lastChild;if(24==$.type.id)return{parser:u.parser,overlay:[{from:$.from+1,to:$.to-1}]};if(25==$.type.id)return{parser:u.parser,overlay:[{from:$.from,to:$.to}]}}}}return null})}var w=t(61426),Y=t(58037),q=t(47421),V=t(78120),v=t(59119);let C=["_blank","_self","_top","_parent"],j=["ascii","utf-8","utf-16","latin1","latin1"],U=["get","post","put","delete"],R=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],G=["true","false"],A={},M={a:{attrs:{href:null,ping:null,type:null,media:null,target:C,hreflang:null}},abbr:A,address:A,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:A,aside:A,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:A,base:{attrs:{href:null,target:C}},bdi:A,bdo:A,blockquote:{attrs:{cite:null}},body:A,br:A,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:R,formmethod:U,formnovalidate:["novalidate"],formtarget:C,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:A,center:A,cite:A,code:A,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:A,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:A,div:A,dl:A,dt:A,em:A,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:A,figure:A,footer:A,form:{attrs:{action:null,name:null,"accept-charset":j,autocomplete:["on","off"],enctype:R,method:U,novalidate:["novalidate"],target:C}},h1:A,h2:A,h3:A,h4:A,h5:A,h6:A,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:A,hgroup:A,hr:A,html:{attrs:{manifest:null}},i:A,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:R,formmethod:U,formnovalidate:["novalidate"],formtarget:C,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:A,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:A,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:A,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:j,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:A,noscript:A,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:A,param:{attrs:{name:null,value:null}},pre:A,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:A,rt:A,ruby:A,samp:A,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:j}},section:A,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:A,source:{attrs:{src:null,type:null,media:null}},span:A,strong:A,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:A,summary:A,sup:A,table:A,tbody:A,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:A,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:A,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:A,time:{attrs:{datetime:null}},title:A,tr:A,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:A,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:A},E={accesskey:null,class:null,contenteditable:G,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:G,autocorrect:G,autocapitalize:G,style:null,tabindex:null,title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":G,"aria-autocomplete":["inline","list","both","none"],"aria-busy":G,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":G,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":G,"aria-hidden":G,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":G,"aria-multiselectable":G,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":G,"aria-relevant":null,"aria-required":G,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null};class J{constructor(e,O){this.tags=Object.assign(Object.assign({},M),e),this.globalAttrs=Object.assign(Object.assign({},E),O),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function I(e,O,t=e.length){if(!O)return"";let n=O.firstChild,a=n&&n.getChild("TagName");return a?e.sliceString(a.from,Math.min(a.to,t)):""}function L(e,O=!1){for(let t=e.parent;t;t=t.parent)if("Element"==t.name){if(!O)return t;O=!1}return null}function B(e,O,t){let n=t.tags[I(e,L(O,!0))];return(null==n?void 0:n.children)||t.allTags}function z(e,O){let t=[];for(let n=O;n=L(n);){let a=I(e,n);if(a&&"CloseTag"==n.lastChild.name)break;a&&0>t.indexOf(a)&&("EndTag"==O.name||O.from>=n.firstChild.to)&&t.push(a)}return t}J.default=new J;let D=/^[:\-\.\w\u00b7-\uffff]*$/;function N(e,O,t,n,a){let i=/\s*>/.test(e.sliceDoc(a,a+5))?"":">";return{from:n,to:a,options:B(e.doc,t,O).map(e=>({label:e,type:"type"})).concat(z(e.doc,t).map((e,O)=>({label:"/"+e,apply:"/"+e+i,type:"type",boost:99-O}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function F(e,O,t,n){let a=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:t,to:n,options:z(e.doc,O).map((e,O)=>({label:e,apply:e+a,type:"type",boost:99-O})),validFor:D}}function H(e,O){let{state:t,pos:n}=O,a=(0,v.qz)(t).resolveInner(n),i=a.resolve(n,-1);for(let r=n,l;a==i&&(l=i.childBefore(r));){let o=l.lastChild;if(!o||!o.type.isError||o.from({label:e,type:"property"})),validFor:D}}return"Is"==i.name||"AttributeValue"==i.name||"UnquotedAttributeValue"==i.name?function(e,O,t,n,a){var i;let r=null===(i=t.parent)||void 0===i?void 0:i.getChild("AttributeName"),l=[],o;if(r){let s=e.sliceDoc(r.from,r.to),p=O.globalAttrs[s];if(!p){let Q=L(t),c=Q?O.tags[I(e.doc,Q)]:null;p=(null==c?void 0:c.attrs)&&c.attrs[s]}if(p){let d=e.sliceDoc(n,a).toLowerCase(),h='"',f='"';for(let u of(/^['"]/.test(d)?(o='"'==d[0]?/^[^"]*$/:/^[^']*$/,h="",f=e.sliceDoc(a,a+1)==d[0]?"":d[0],d=d.slice(1),n++):o=/^[^\s<>='"]*$/,p))l.push({label:u,apply:h+u+f,type:"constant"})}}return{from:n,to:a,options:l,validFor:o}}(t,e,i,"Is"==i.name?n:i.from,n):O.explicit&&("Element"==a.name||"Text"==a.name||"Document"==a.name)?function(e,O,t,n){let a=[],i=0;for(let r of B(e.doc,t,O))a.push({label:"<"+r,type:"type"});for(let l of z(e.doc,t))a.push({label:"",type:"type",boost:99-i++});return{from:n,to:n,options:a,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(t,e,i,n):null}function K(e){return H(J.default,e)}function ee(e){let{extraTags:O,extraGlobalAttributes:t}=e,n=t||O?new J(O,t):J.default;return e=>H(n,e)}let eO=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:Y.typescriptLanguage.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:Y.jsxLanguage.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:Y.tsxLanguage.parser},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:Y.javascriptLanguage.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:w.cssLanguage.parser}],et=[{name:"style",parser:w.cssLanguage.parser.configure({top:"Styles"})}].concat("beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>({name:"on"+e,parser:Y.javascriptLanguage.parser}))),en=v.qp.define({name:"html",parser:X.configure({props:[v.uj.add({Element(e){let O=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+O[0].length?e.continue():e.lineIndent(e.node.from)+(O[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}});function ea(e={}){let O="",t;!1===e.matchClosingTags&&(O="noMatch"),!0===e.selfClosingTags&&(O=(O?O+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(t=k((e.nestedLanguages||[]).concat(eO),(e.nestedAttributes||[]).concat(et)));let n=t||O?en.configure({dialect:O,wrap:t}):en;return new v.ri(n,[en.data.of({autocomplete:ee(e)}),!1!==e.autoCloseTags?ei:[],(0,Y.javascript)().support,(0,w.css)().support])}let ei=q.tk.inputHandler.of((e,O,t,n)=>{if(e.composing||e.state.readOnly||O!=t||">"!=n&&"/"!=n||!en.isActiveAt(e.state,O,-1))return!1;let{state:a}=e,i=a.changeByRange(O=>{var t,i,r;let{head:l}=O,o=(0,v.qz)(a).resolveInner(l,-1),s;if(("TagName"==o.name||"StartTag"==o.name)&&(o=o.parent),">"==n&&"OpenTag"==o.name){if((null===(i=null===(t=o.parent)||void 0===t?void 0:t.lastChild)||void 0===i?void 0:i.name)!="CloseTag"&&(s=I(a.doc,o.parent,l))){let p=">"===e.state.doc.sliceString(l,l+1),Q=`${p?"":">"}`;return{range:V.jT.cursor(l+1),changes:{from:l+(p?1:0),insert:Q}}}}else if("/"==n&&"OpenTag"==o.name){let c=o.parent,d=null==c?void 0:c.parent;if(c.from==l-1&&(null===(r=d.lastChild)||void 0===r?void 0:r.name)!="CloseTag"&&(s=I(a.doc,d,l))){let h=">"===e.state.doc.sliceString(l,l+1),f=`/${s}${h?"":">"}`,u=l+f.length+(h?1:0);return{range:V.jT.cursor(u),changes:{from:l,insert:f}}}}return{range:O}});return!i.changes.empty&&(e.dispatch(i,{userEvent:"input.type",scrollIntoView:!0}),!0)})},58037:function(e,O,t){t.r(O),t.d(O,{autoCloseTags:function(){return A},completionPath:function(){return w},esLint:function(){return M},javascript:function(){return U},javascriptLanguage:function(){return q},jsxLanguage:function(){return v},localCompletionSource:function(){return _},scopeCompletionSource:function(){return Y},snippets:function(){return P},tsxLanguage:function(){return C},typescriptLanguage:function(){return V}});var n=t(53105),a=t(35524);let i=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],r=new n.IK({start:!1,shift:(e,O)=>4==O||5==O||298==O?e:299==O,strict:!1}),l=new n.Jq((e,O)=>{let{next:t}=e;(125==t||-1==t||O.context)&&O.canShift(296)&&e.acceptToken(296)},{contextual:!0,fallback:!0}),o=new n.Jq((e,O)=>{let{next:t}=e,n;!(i.indexOf(t)>-1)&&(47!=t||47!=(n=e.peek(1))&&42!=n)&&125!=t&&59!=t&&-1!=t&&!O.context&&O.canShift(293)&&e.acceptToken(293)},{contextual:!0}),s=new n.Jq((e,O)=>{let{next:t}=e;if((43==t||45==t)&&(e.advance(),t==e.next)){e.advance();let n=!O.context&&O.canShift(1);e.acceptToken(n?1:2)}},{contextual:!0}),p=new n.Jq(e=>{for(let O=!1,t=0;;t++){let{next:n}=e;if(n<0){t&&e.acceptToken(294);break}if(96==n){t?e.acceptToken(294):e.acceptToken(295,1);break}if(123==n&&O){1==t?e.acceptToken(3,1):e.acceptToken(294,-1);break}if(10==n&&t){e.advance(),e.acceptToken(294);break}else 92==n&&e.advance();O=36==n,e.advance()}}),Q=(0,a.Gv)({"get set async static":a.pJ.modifier,"for while do if else switch try catch finally return throw break continue default case":a.pJ.controlKeyword,"in of await yield void typeof delete instanceof":a.pJ.operatorKeyword,"let var const function class extends":a.pJ.definitionKeyword,"import export from":a.pJ.moduleKeyword,"with debugger as new":a.pJ.keyword,TemplateString:a.pJ.special(a.pJ.string),super:a.pJ.atom,BooleanLiteral:a.pJ.bool,this:a.pJ.self,null:a.pJ.null,Star:a.pJ.modifier,VariableName:a.pJ.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":a.pJ.function(a.pJ.variableName),VariableDefinition:a.pJ.definition(a.pJ.variableName),Label:a.pJ.labelName,PropertyName:a.pJ.propertyName,PrivatePropertyName:a.pJ.special(a.pJ.propertyName),"CallExpression/MemberExpression/PropertyName":a.pJ.function(a.pJ.propertyName),"FunctionDeclaration/VariableDefinition":a.pJ.function(a.pJ.definition(a.pJ.variableName)),"ClassDeclaration/VariableDefinition":a.pJ.definition(a.pJ.className),PropertyDefinition:a.pJ.definition(a.pJ.propertyName),PrivatePropertyDefinition:a.pJ.definition(a.pJ.special(a.pJ.propertyName)),UpdateOp:a.pJ.updateOperator,LineComment:a.pJ.lineComment,BlockComment:a.pJ.blockComment,Number:a.pJ.number,String:a.pJ.string,ArithOp:a.pJ.arithmeticOperator,LogicOp:a.pJ.logicOperator,BitOp:a.pJ.bitwiseOperator,CompareOp:a.pJ.compareOperator,RegExp:a.pJ.regexp,Equals:a.pJ.definitionOperator,Arrow:a.pJ.function(a.pJ.punctuation),": Spread":a.pJ.punctuation,"( )":a.pJ.paren,"[ ]":a.pJ.squareBracket,"{ }":a.pJ.brace,"InterpolationStart InterpolationEnd":a.pJ.special(a.pJ.brace),".":a.pJ.derefOperator,", ;":a.pJ.separator,"@":a.pJ.meta,TypeName:a.pJ.typeName,TypeDefinition:a.pJ.definition(a.pJ.typeName),"type enum interface implements namespace module declare":a.pJ.definitionKeyword,"abstract global Privacy readonly override":a.pJ.modifier,"is keyof unique infer":a.pJ.operatorKeyword,JSXAttributeValue:a.pJ.attributeValue,JSXText:a.pJ.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":a.pJ.angleBracket,"JSXIdentifier JSXNameSpacedName":a.pJ.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":a.pJ.attributeName,"JSXBuiltin/JSXIdentifier":a.pJ.standard(a.pJ.tagName)}),c={__proto__:null,export:16,as:21,from:27,default:30,async:35,function:36,extends:46,this:50,true:58,false:58,null:68,void:72,typeof:76,super:92,new:126,await:143,yield:145,delete:146,class:156,public:211,private:211,protected:211,readonly:213,instanceof:232,satisfies:235,in:236,const:238,import:270,keyof:325,unique:329,infer:335,is:371,abstract:391,implements:393,type:395,let:398,var:400,interface:407,enum:411,namespace:417,module:419,declare:423,global:427,for:448,of:457,while:460,with:464,do:468,if:472,else:474,switch:478,case:484,try:490,catch:494,finally:498,return:502,throw:506,break:510,continue:514,debugger:518},d={__proto__:null,async:113,get:115,set:117,public:173,private:173,protected:173,static:175,abstract:177,override:179,readonly:185,accessor:187,new:375},h={__proto__:null,"<":133},f=n.WQ.deserialize({version:14,states:"$>YO`QYOOO$}QYOOO)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3T#3Z#3i#4O#5`#5n#5t#5z#6Q#6W#6b#6h#6n#6x#7[#7bPPPPPPPP#7hPP#8[#;vP#=c#=j#=rPP#A|#Dr#KO#KR#KU#MQ#MT#MWPP#M^#Mb#NZ$ Z$ _$ sPP$ w$ }$!RP$!U$!Y$!]$#R$#i$#n$#q$#t$#z$#}$$R$$VmlOTn!R!s$o%t%v%w%y+V+[0V0YQ${qQ%StQ%l}S&Z!]+pQ&i!`S)U$])ZQ)}$|Q*[%UQ*v%fQ+v&bS+z&c+|Q,[&jQ.`)]Q/t*w[0t+w,O,P,Q,R,SS3o/j3rW4x0u0v0w0xU6o3v3w3xU7e4z4|4}S8b6p6qS9O7h7jQ9i8eR9y9R$z`OPSTUVno!R!W!c!g!j!s!}#T#X#[#_#`#a#b#c#d#e#f#g#h#i#p#t$o%Q%m%p%t%v%w%y%}&W&e&o&q&w'S'e'i'm(k)n*a+R+V+[+l,W,a,j-S-Z.j.o.|/m/}0O0P0R0V0Y0[0|1^1p3k3}4a4c4d4t6l6v7T7`8x9t:]:l:wS#PX;P!l'}#k#|&[(a+h+k-a0l2U3h4m8Y8u;O;R;U;V;W;X;Y;Z;[;];^;_;`;a;b;f;o;p;r;y;z TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression await yield delete LogicOp BitOp ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody MethodDeclaration AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression",maxTerm:344,context:r,nodeProps:[["closedBy",3,"InterpolationEnd",43,"]",53,"}",68,")",139,"JSXSelfCloseEndTag JSXEndTag",155,"JSXEndTag"],["group",-26,7,14,16,60,194,198,201,202,204,207,210,221,223,229,231,233,235,238,244,250,252,254,256,258,260,261,"Statement",-30,11,12,25,28,29,34,44,46,47,49,54,62,70,76,77,98,99,108,109,126,129,131,132,133,134,136,137,157,158,160,"Expression",-23,24,26,30,33,35,37,161,163,165,166,168,169,170,172,173,174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$]T#g&l$_WO!^%Z!_#o%Z#p;'S%Z;'S;=`%o<%lO%Z&t#$sV#f&l$_WO!^%Z!_!`c[e]||-1},{term:310,get:e=>d[e]||-1},{term:65,get:e=>h[e]||-1}],tokenPrec:12784});var u=t(59119),$=t(78120),m=t(47421),S=t(34790),g=t(41113);let P=[(0,S.Gn)("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,S.Gn)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,S.Gn)("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,S.Gn)("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,S.Gn)("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,S.Gn)("try {\n ${}\n} catch (${error}) {\n ${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),(0,S.Gn)("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,S.Gn)("if (${}) {\n ${}\n} else {\n ${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),(0,S.Gn)("class ${name} {\n constructor(${params}) {\n ${}\n }\n}",{label:"class",detail:"definition",type:"keyword"}),(0,S.Gn)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,S.Gn)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Z=new g.hr,T=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function b(e){return(O,t)=>{let n=O.node.getChild("VariableDefinition");return n&&t(n,e),!0}}let x=["FunctionDeclaration"],X={FunctionDeclaration:b("function"),ClassDeclaration:b("class"),ClassExpression:()=>!0,EnumDeclaration:b("constant"),TypeAliasDeclaration:b("type"),NamespaceDeclaration:b("namespace"),VariableDefinition(e,O){e.matchContext(x)||O(e,"variable")},TypeDefinition(e,O){O(e,"type")},__proto__:null},W=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,y=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName"];function _(e){let O=(0,u.qz)(e.state).resolveInner(e.pos,-1);if(y.indexOf(O.name)>-1)return null;let t="VariableName"==O.name||O.to-O.from<20&&W.test(e.state.sliceDoc(O.from,O.to));if(!t&&!e.explicit)return null;let n=[];for(let a=O;a;a=a.parent)T.has(a.name)&&(n=n.concat(function e(O,t){let n=Z.get(t);if(n)return n;let a=[],i=!0;function r(e,t){let n=O.sliceString(e.from,e.to);a.push({label:n,type:t})}return t.cursor(g.vj.IncludeAnonymous).iterate(t=>{if(i)i=!1;else if(t.name){let n=X[t.name];if(n&&n(t,r)||T.has(t.name))return!1}else if(t.to-t.from>8192){for(let l of e(O,t.node))a.push(l);return!1}}),Z.set(t,a),a}(e.state.doc,a)));return{options:n,from:t?O.from:e.pos,validFor:W}}function k(e,O,t){var n;let a=[];for(;;){let i=O.firstChild,r;if((null==i?void 0:i.name)=="VariableName")return a.push(e(i)),{path:a.reverse(),name:t};if((null==i?void 0:i.name)!="MemberExpression"||(null===(n=r=i.lastChild)||void 0===n?void 0:n.name)!="PropertyName")return null;a.push(e(r)),O=i}}function w(e){let O=O=>e.state.doc.sliceString(O.from,O.to),t=(0,u.qz)(e.state).resolveInner(e.pos,-1);return"PropertyName"==t.name?k(O,t.parent,O(t)):y.indexOf(t.name)>-1?null:"VariableName"==t.name||t.to-t.from<20&&W.test(O(t))?{path:[],name:O(t)}:("."==t.name||"?."==t.name)&&"MemberExpression"==t.parent.name?k(O,t.parent,""):"MemberExpression"==t.name?k(O,t,""):e.explicit?{path:[],name:""}:null}function Y(e){let O=new Map;return t=>{let n=w(t);if(!n)return null;let a=e;for(let i of n.path)if(!(a=a[i]))return null;let r=O.get(a);return r||O.set(a,r=function(e,O){let t=[],n=new Set;for(let a=0;;a++){for(let i of(Object.getOwnPropertyNames||Object.keys)(e)){let r;if(!n.has(i)){n.add(i);try{r=e[i]}catch(l){continue}t.push({label:i,type:"function"==typeof r?/^[A-Z]/.test(i)?"class":O?"function":"method":O?"variable":"property",boost:-a})}}let o=Object.getPrototypeOf(e);if(!o)return t;e=o}}(a,!n.path.length)),{from:t.pos-n.name.length,options:r,validFor:W}}}let q=u.qp.define({name:"javascript",parser:f.configure({props:[u.uj.add({IfStatement:(0,u.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,u.tC)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:u.ze,SwitchBody(e){let O=e.textAfter,t=/^\s*\}/.test(O),n=/^\s*(case|default)\b/.test(O);return e.baseIndent+(t?0:n?1:2)*e.unit},Block:(0,u.vw)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,u.tC)({except:/^{/}),JSXElement(e){let O=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(O?0:e.unit)},JSXEscape(e){let O=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(O?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),u.x0.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression":u.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),V=q.configure({dialect:"ts"},"typescript"),v=q.configure({dialect:"jsx"}),C=q.configure({dialect:"jsx ts"},"typescript"),j="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(e=>({label:e,type:"keyword"}));function U(e={}){let O=e.jsx?e.typescript?C:v:e.typescript?V:q;return new u.ri(O,[q.data.of({autocomplete:(0,S.eC)(y,(0,S.Mb)(P.concat(j)))}),q.data.of({autocomplete:_}),e.jsx?A:[]])}function R(e,O,t=e.length){for(let n=null==O?void 0:O.firstChild;n;n=n.nextSibling)if("JSXIdentifier"==n.name||"JSXBuiltin"==n.name||"JSXNamespacedName"==n.name||"JSXMemberExpression"==n.name)return e.sliceString(n.from,Math.min(n.to,t));return""}let G="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),A=m.tk.inputHandler.of((e,O,t,n)=>{if((G?e.composing:e.compositionStarted)||e.state.readOnly||O!=t||">"!=n&&"/"!=n||!q.isActiveAt(e.state,O,-1))return!1;let{state:a}=e,i=a.changeByRange(e=>{var O,t;let{head:i}=e,r=(0,u.qz)(a).resolveInner(i,-1),l;if("JSXStartTag"==r.name&&(r=r.parent),">"==n&&"JSXFragmentTag"==r.name)return{range:$.jT.cursor(i+1),changes:{from:i,insert:"><>"}};if("/"==n&&"JSXFragmentTag"==r.name){let o=r.parent,s=null==o?void 0:o.parent;if(o.from==i-1&&(null===(O=s.lastChild)||void 0===O?void 0:O.name)!="JSXEndTag"&&(l=R(a.doc,null==s?void 0:s.firstChild,i))){let p=`/${l}>`;return{range:$.jT.cursor(i+p.length),changes:{from:i,insert:p}}}}else if(">"==n){let Q=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if(!e.parent)return null;e=e.parent}}(r);if(Q&&(null===(t=Q.lastChild)||void 0===t?void 0:t.name)!="JSXEndTag"&&"`}}}return{range:e}});return!i.changes.empty&&(e.dispatch(i,{userEvent:"input.type",scrollIntoView:!0}),!0)});function M(e,O){return O||(O={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},e.getRules().forEach((e,t)=>{e.meta.docs.recommended&&(O.rules[t]=2)})),t=>{let{state:n}=t,a=[];for(let{from:i,to:r}of q.findRegions(n)){let l=n.doc.lineAt(i),o={line:l.number-1,col:i-l.from,pos:i};for(let s of e.verify(n.sliceDoc(i,r),O))a.push(function(e,O,t){let n=E(e.line,e.column,O,t),a={from:n,to:null!=e.endLine&&1!=e.endColumn?E(e.endLine,e.endColumn,O,t):n,message:e.message,source:e.ruleId?"eslint:"+e.ruleId:"eslint",severity:1==e.severity?"warning":"error"};if(e.fix){let{range:i,text:r}=e.fix,l=i[0]+t.pos-n,o=i[1]+t.pos-n;a.actions=[{name:"fix",apply(e,O){e.dispatch({changes:{from:O+l,to:O+o,insert:r},scrollIntoView:!0})}}]}return a}(s,n.doc,o))}return a}}function E(e,O,t,n){return t.line(e+n.line).from+O+(1==e?n.col-1:-1)}},48825:function(e,O,t){t.r(O),t.d(O,{commonmarkLanguage:function(){return eY},deleteMarkupBackward:function(){return eA},insertNewlineContinueMarkup:function(){return eR},markdown:function(){return eJ},markdownKeymap:function(){return eM},markdownLanguage:function(){return eV}});var n,a,i=t(78120),r=t(47421),l=t(59119),o=t(41113),s=t(35524);class p{constructor(e,O,t,n,a,i,r){this.type=e,this.value=O,this.from=t,this.hash=n,this.end=a,this.children=i,this.positions=r,this.hashProp=[[o.md.contextHash,n]]}static create(e,O,t,n,a){return new p(e,O,t,n+(n<<8)+e+(O<<4)|0,a,[],[])}addChild(e,O){e.prop(o.md.contextHash)!=this.hash&&(e=new o.mp(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(O)}toTree(e,O=this.end){let t=this.children.length-1;return t>=0&&(O=Math.max(O,this.positions[t]+this.children[t].length+this.from)),new o.mp(e.types[this.type],this.children,this.positions,O-this.from).balance({makeTree:(e,O,t)=>new o.mp(o.Jq.none,e,O,t,this.hashProp)})}}(n=a||(a={}))[n.Document=1]="Document",n[n.CodeBlock=2]="CodeBlock",n[n.FencedCode=3]="FencedCode",n[n.Blockquote=4]="Blockquote",n[n.HorizontalRule=5]="HorizontalRule",n[n.BulletList=6]="BulletList",n[n.OrderedList=7]="OrderedList",n[n.ListItem=8]="ListItem",n[n.ATXHeading1=9]="ATXHeading1",n[n.ATXHeading2=10]="ATXHeading2",n[n.ATXHeading3=11]="ATXHeading3",n[n.ATXHeading4=12]="ATXHeading4",n[n.ATXHeading5=13]="ATXHeading5",n[n.ATXHeading6=14]="ATXHeading6",n[n.SetextHeading1=15]="SetextHeading1",n[n.SetextHeading2=16]="SetextHeading2",n[n.HTMLBlock=17]="HTMLBlock",n[n.LinkReference=18]="LinkReference",n[n.Paragraph=19]="Paragraph",n[n.CommentBlock=20]="CommentBlock",n[n.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",n[n.Escape=22]="Escape",n[n.Entity=23]="Entity",n[n.HardBreak=24]="HardBreak",n[n.Emphasis=25]="Emphasis",n[n.StrongEmphasis=26]="StrongEmphasis",n[n.Link=27]="Link",n[n.Image=28]="Image",n[n.InlineCode=29]="InlineCode",n[n.HTMLTag=30]="HTMLTag",n[n.Comment=31]="Comment",n[n.ProcessingInstruction=32]="ProcessingInstruction",n[n.URL=33]="URL",n[n.HeaderMark=34]="HeaderMark",n[n.QuoteMark=35]="QuoteMark",n[n.ListMark=36]="ListMark",n[n.LinkMark=37]="LinkMark",n[n.EmphasisMark=38]="EmphasisMark",n[n.CodeMark=39]="CodeMark",n[n.CodeText=40]="CodeText",n[n.CodeInfo=41]="CodeInfo",n[n.LinkTitle=42]="LinkTitle",n[n.LinkLabel=43]="LinkLabel";class Q{constructor(e,O){this.start=e,this.content=O,this.marks=[],this.parsers=[]}}class c{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return u(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,O=0,t=0){for(let n=O;n=O.stack[t.depth+1].value+t.baseIndent)return!0;if(t.indent>=t.baseIndent+4)return!1;let n=(e.type==a.OrderedList?T:Z)(t,O,!1);return n>0&&(e.type!=a.BulletList||0>g(t,O,!1))&&t.text.charCodeAt(t.pos+n-1)==e.value}let h={[a.Blockquote]:(e,O,t)=>62==t.next&&(t.markers.push(N(a.QuoteMark,O.lineStart+t.pos,O.lineStart+t.pos+1)),t.moveBase(t.pos+(f(t.text.charCodeAt(t.pos+1))?2:1)),e.end=O.lineStart+t.text.length,!0),[a.ListItem]:(e,O,t)=>(!(t.indent-1))&&(t.moveBaseColumn(t.baseIndent+e.value),!0),[a.OrderedList]:d,[a.BulletList]:d,[a.Document]:()=>!0};function f(e){return 32==e||9==e||10==e||13==e}function u(e,O=0){for(;Ot&&f(e.charCodeAt(O-1));)O--;return O}function m(e){if(96!=e.next&&126!=e.next)return -1;let O=e.pos+1;for(;O-1&&e.depth==O.stack.length?-1:n<3?-1:1}function P(e,O){for(let t=e.stack.length-1;t>=0;t--)if(e.stack[t].type==O)return!0;return!1}function Z(e,O,t){return(45==e.next||43==e.next||42==e.next)&&(e.pos==e.text.length-1||f(e.text.charCodeAt(e.pos+1)))&&(!t||P(O,a.BulletList)||e.skipSpace(e.pos+2)=48&&i<=57;){if(++n==e.text.length)return -1;i=e.text.charCodeAt(n)}return n==e.pos||n>e.pos+9||46!=i&&41!=i||ne.pos+1||49!=e.next)?-1:n+1-e.pos}function b(e){if(35!=e.next)return -1;let O=e.pos+1;for(;O6?-1:t}function x(e){if(45!=e.next&&61!=e.next||e.indent>=e.baseIndent+4)return -1;let O=e.pos+1;for(;O/,y=/\?>/,_=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(n);if(r)return e.append(N(a.Comment,t,t+1+r[0].length));let l=/^\?[^]*?\?>/.exec(n);if(l)return e.append(N(a.ProcessingInstruction,t,t+1+l[0].length));let o=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(n);return o?e.append(N(a.HTMLTag,t,t+1+o[0].length)):-1},Emphasis(e,O,t){if(95!=O&&42!=O)return -1;let n=t+1;for(;e.char(n)==O;)n++;let a=e.slice(t-1,t),i=e.slice(n,n+1),r=en.test(a),l=en.test(i),o=/\s|^$/.test(a),s=/\s|^$/.test(i),p=!s&&(!l||o||r),Q=!o&&(!r||s||l);return e.append(new eO(95==O?F:H,t,n,(p&&(42==O||!Q||r)?1:0)|(Q&&(42==O||!p||l)?2:0)))},HardBreak(e,O,t){if(92==O&&10==e.char(t+1))return e.append(N(a.HardBreak,t,t+2));if(32==O){let n=t+1;for(;32==e.char(n);)n++;if(10==e.char(n)&&n>=t+2)return e.append(N(a.HardBreak,t,n+1))}return -1},Link:(e,O,t)=>91==O?e.append(new eO(K,t,t+1,1)):-1,Image:(e,O,t)=>33==O&&91==e.char(t+1)?e.append(new eO(ee,t,t+2,1)):-1,LinkEnd(e,O,t){if(93!=O)return -1;for(let n=e.parts.length-1;n>=0;n--){let i=e.parts[n];if(i instanceof eO&&(i.type==K||i.type==ee)){if(!i.side||e.skipSpace(i.to)==t&&!/[(\[]/.test(e.slice(t+1,t+2)))return e.parts[n]=null,-1;let r=e.takeContent(n),l=e.parts[n]=function(e,O,t,n,i){let{text:r}=e,l=e.char(i),o=i;if(O.unshift(N(a.LinkMark,n,n+(t==a.Image?2:1))),O.push(N(a.LinkMark,i-1,i)),40==l){let s=e.skipSpace(i+1),p=er(r,s-e.offset,e.offset),Q;p&&(s=e.skipSpace(p.to),(Q=el(r,s-e.offset,e.offset))&&(s=e.skipSpace(Q.to))),41==e.char(s)&&(O.push(N(a.LinkMark,i,i+1)),o=s+1,p&&O.push(p),Q&&O.push(Q),O.push(N(a.LinkMark,s,o)))}else if(91==l){let c=eo(r,i-e.offset,e.offset,!1);c&&(O.push(c),o=c.to)}return N(t,n,o,O)}(e,r,i.type==K?a.Link:a.Image,i.from,t+1);if(i.type==K)for(let o=0;oO?N(a.URL,O+t,l+t):l==e.length&&null}}function el(e,O,t){let n=e.charCodeAt(O);if(39!=n&&34!=n&&40!=n)return!1;let i=40==n?41:n;for(let r=O+1,l=!1;r=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,O){return this.text.slice(e-this.offset,O-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,O,t,n,a){return this.append(new eO(e,O,t,(n?1:0)|(a?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let O=e;O=e;r--){let l=this.parts[r];if(l instanceof eO&&1&l.side&&l.type==t.type&&!(n&&(1&t.side||2&l.side)&&(l.to-l.from+a)%3==0&&((l.to-l.from)%3||a%3))){i=l;break}}if(!i)continue;let o=t.type.resolve,s=[],p=i.from,Q=t.to;if(n){let c=Math.min(2,i.to-i.from,a);p=i.to-c,Q=t.from+c,o=1==c?"Emphasis":"StrongEmphasis"}i.type.mark&&s.push(this.elt(i.type.mark,p,i.to));for(let d=r+1;d=0;O--){let t=this.parts[O];if(t instanceof eO&&t.type==e)return O}return null}takeContent(e){let O=this.resolveMarkers(e);return this.parts.length=e,O}skipSpace(e){return u(this.text,e-this.offset)+this.offset}elt(e,O,t,n){return"string"==typeof e?N(this.parser.getNodeType(e),O,t,n):new D(e,O)}}function ep(e,O){if(!O.length)return e;if(!e.length)return O;let t=e.slice(),n=0;for(let a of O){for(;n(e?e-1:0))return!1;if(this.fragmentEnd<0){let t=this.fragment.to;for(;t>0&&"\n"!=this.input.read(t-1,t);)t--;this.fragmentEnd=t?t-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor()).firstChild();let a=e+this.fragment.offset;for(;n.to<=a;)if(!n.parent())return!1;for(;;){if(n.from>=a)return this.fragment.from<=O;if(!n.childAfter(a))return!1}}matches(e){let O=this.cursor.tree;return O&&O.prop(o.md.contextHash)==e}takeNodes(e){let O=this.cursor,t=this.fragment.offset,n=this.fragmentEnd-(this.fragment.openEnd?1:0),a=e.absoluteLineStart,i=a,r=e.block.children.length,l=i,o=r;for(;;){if(O.to-t>n){if(O.type.isAnonymous&&O.firstChild())continue;break}if(e.dontInject.add(O.tree),e.addNode(O.tree,O.from-t),O.type.is("Block")&&(0>eQ.indexOf(O.type.id)?(i=O.to-t,r=e.block.children.length):(i=l,r=o,l=O.to-t,o=e.block.children.length)),!O.nextSibling())break}for(;e.block.children.length>r;)e.block.children.pop(),e.block.positions.pop();return i-a}}let ed=(0,s.Gv)({"Blockquote/...":s.pJ.quote,HorizontalRule:s.pJ.contentSeparator,"ATXHeading1/... SetextHeading1/...":s.pJ.heading1,"ATXHeading2/... SetextHeading2/...":s.pJ.heading2,"ATXHeading3/...":s.pJ.heading3,"ATXHeading4/...":s.pJ.heading4,"ATXHeading5/...":s.pJ.heading5,"ATXHeading6/...":s.pJ.heading6,"Comment CommentBlock":s.pJ.comment,Escape:s.pJ.escape,Entity:s.pJ.character,"Emphasis/...":s.pJ.emphasis,"StrongEmphasis/...":s.pJ.strong,"Link/... Image/...":s.pJ.link,"OrderedList/... BulletList/...":s.pJ.list,"BlockQuote/...":s.pJ.quote,"InlineCode CodeText":s.pJ.monospace,URL:s.pJ.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":s.pJ.processingInstruction,"CodeInfo LinkLabel":s.pJ.labelName,LinkTitle:s.pJ.string,Paragraph:s.pJ.content}),eh=new G(new o.Lj(E).extend(ed),Object.keys(q).map(e=>q[e]),Object.keys(q).map(e=>j[e]),Object.keys(q),[(e,O)=>b(O)>=0,(e,O)=>m(O)>=0,(e,O)=>S(O)>=0,(e,O)=>Z(O,e,!0)>=0,(e,O)=>T(O,e,!0)>=0,(e,O)=>g(O,e,!0)>=0,(e,O)=>k(O,e,!0)>=0],h,Object.keys(ei).map(e=>ei[e]),Object.keys(ei),[]),ef={resolve:"Strikethrough",mark:"StrikethroughMark"},eu={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":s.pJ.strikethrough}},{name:"StrikethroughMark",style:s.pJ.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,O,t){if(126!=O||126!=e.char(t+1)||126==e.char(t+2))return -1;let n=e.slice(t-1,t),a=e.slice(t+2,t+3),i=/\s|^$/.test(n),r=/\s|^$/.test(a),l=en.test(n),o=en.test(a);return e.addDelimiter(ef,t,t+2,!r&&(!o||i||l),!i&&(!l||r||o))},after:"Emphasis"}]};function e$(e,O,t=0,n,a=0){let i=0,r=!0,l=-1,o=-1,s=!1,p=()=>{n.push(e.elt("TableCell",a+l,a+o,e.parser.parseInline(O.slice(l,o),a+l)))};for(let Q=t;Q-1)&&i++,r=!1,n&&(l>-1&&p(),n.push(e.elt("TableDelimiter",Q+a,Q+a+1))),l=o=-1),s=!s&&92==c}return l>-1&&(i++,n&&p()),i}function em(e,O){for(let t=O;tem(O.content,0)?new eg:null,endLeaf(e,O,t){if(t.parsers.some(e=>e instanceof eg)||!em(O.text,O.basePos))return!1;let n=e.scanLine(e.absoluteLineEnd+1).text;return eS.test(n)&&e$(e,O.text,O.basePos)==e$(e,n,O.basePos)},before:"SetextHeading"}]};class eZ{nextLine(){return!1}finish(e,O){return e.addLeafElement(O,e.elt("Task",O.start,O.start+O.content.length,[e.elt("TaskMarker",O.start,O.start+3),...e.parser.parseInline(O.content.slice(3),O.start+3)])),!0}}let eT={defineNodes:[{name:"Task",block:!0,style:s.pJ.list},{name:"TaskMarker",style:s.pJ.atom}],parseBlock:[{name:"TaskList",leaf:(e,O)=>/^\[[ xX]\]/.test(O.content)&&"ListItem"==e.parentType().name?new eZ:null,after:"SetextHeading"}]};function eb(e,O,t){return(n,a,i)=>{if(a!=e||n.char(i+1)==e)return -1;let r=[n.elt(t,i,i+1)];for(let l=i+1;l"}}),ek=eh.configure({props:[l.x0.add(e=>{if(!(!e.is("Block")||e.is("Document")))return(e,O)=>({from:O.doc.lineAt(e.from).to,to:e.to})}),l.uj.add({Document:()=>null}),l.pp.add({Document:e_})]});function ew(e){return new l.SQ(e_,e,[],"markdown")}let eY=ew(ek),eq=ek.configure([[eP,eT,eu],eX,ex,eW]),eV=ew(eq);class ev{constructor(e,O,t,n,a,i,r){this.node=e,this.from=O,this.to=t,this.spaceBefore=n,this.spaceAfter=a,this.type=i,this.item=r}blank(e,O=!0){let t=this.spaceBefore+("Blockquote"==this.node.name?">":"");if(null!=e){for(;t.length0;n--)t+=" ";return t+(O?this.spaceAfter:"")}marker(e,O){let t="OrderedList"==this.node.name?String(+ej(this.item,e)[2]+O):"";return this.spaceBefore+t+this.type+this.spaceAfter}}function eC(e,O){let t=[];for(let n=e;n&&"Document"!=n.name;n=n.parent)("ListItem"==n.name||"Blockquote"==n.name||"FencedCode"==n.name)&&t.push(n);let a=[];for(let i=t.length-1;i>=0;i--){let r=t[i],l,o=O.lineAt(r.from),s=r.from-o.from;if("FencedCode"==r.name)a.push(new ev(r,s,s,"","","",null));else if("Blockquote"==r.name&&(l=/^[ \t]*>( ?)/.exec(o.text.slice(s))))a.push(new ev(r,s,s+l[0].length,"",l[1],">",null));else if("ListItem"==r.name&&"OrderedList"==r.parent.name&&(l=/^([ \t]*)\d+([.)])([ \t]*)/.exec(o.text.slice(s)))){let p=l[3],Q=l[0].length;p.length>=4&&(p=p.slice(0,p.length-4),Q-=4),a.push(new ev(r.parent,s,s+Q,l[1],p,l[2],r))}else if("ListItem"==r.name&&"BulletList"==r.parent.name&&(l=/^([ \t]*)([-+*])([ \t]{1,4}\[[ xX]\])?([ \t]+)/.exec(o.text.slice(s)))){let c=l[4],d=l[0].length;c.length>4&&(c=c.slice(0,c.length-4),d-=4);let h=l[2];l[3]&&(h+=l[3].replace(/[xX]/," ")),a.push(new ev(r.parent,s,s+d,l[1],c,h,r))}}return a}function ej(e,O){return/^(\s*)(\d+)(?=[.)])/.exec(O.sliceString(e.from,e.from+10))}function eU(e,O,t,n=0){for(let a=-1,i=e;;){if("ListItem"==i.name){let r=ej(i,O),l=+r[2];if(a>=0){if(l!=a+1)return;t.push({from:i.from+r[1].length,to:i.from+r[0].length,insert:String(a+2+n)})}a=l}let o=i.nextSibling;if(!o)break;i=o}}let eR=({state:e,dispatch:O})=>{let t=(0,l.qz)(e),{doc:n}=e,a=null,r=e.changeByRange(O=>{if(!O.empty||!eV.isActiveAt(e,O.from))return a={range:O};let r=O.from,l=n.lineAt(r),o=eC(t.resolveInner(r,-1),n);for(;o.length&&o[o.length-1].from>r-l.from;)o.pop();if(!o.length)return a={range:O};let s=o[o.length-1];if(s.to-s.spaceAfter.length>r-l.from)return a={range:O};let p=r>=s.to-s.spaceAfter.length&&!/\S/.test(l.text.slice(s.to));if(s.item&&p){if(s.node.firstChild.to>=r||l.from>0&&!/[^\s>]/.test(n.lineAt(l.from-1).text)){let Q=o.length>1?o[o.length-2]:null,c,d="";Q&&Q.item?(c=l.from+Q.from,d=Q.marker(n,1)):c=l.from+(Q?Q.to:0);let h=[{from:c,to:r,insert:d}];return"OrderedList"==s.node.name&&eU(s.item,n,h,-2),Q&&"OrderedList"==Q.node.name&&eU(Q.item,n,h),{range:i.jT.cursor(c+d.length),changes:h}}{let f="";for(let u=0,$=o.length-2;u<=$;u++)f+=o[u].blank(u<$?o[u+1].from-f.length:null,u<$);return f+=e.lineBreak,{range:i.jT.cursor(r+f.length),changes:{from:l.from,insert:f}}}}if("Blockquote"==s.node.name&&p&&l.from){let m=n.lineAt(l.from-1),S=/>\s*$/.exec(m.text);if(S&&S.index==s.from){let g=e.changes([{from:m.from+S.index,to:m.to},{from:l.from+s.from,to:l.to}]);return{range:O.map(g),changes:g}}}let P=[];"OrderedList"==s.node.name&&eU(s.item,n,P);let Z=s.item&&s.item.from]*/.exec(l.text)[0].length>=s.to)for(let b=0,x=o.length-1;b<=x;b++)T+=b!=x||Z?o[b].blank(bl.from&&/\s/.test(l.text.charAt(X-l.from-1));)X--;return T=e.lineBreak+T,P.push({from:X,to:r,insert:T}),{range:i.jT.cursor(X+T.length),changes:P}});return!a&&(O(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0)};function eG(e){return"QuoteMark"==e.name||"ListMark"==e.name}let eA=({state:e,dispatch:O})=>{let t=(0,l.qz)(e),n=null,a=e.changeByRange(O=>{let a=O.from,{doc:r}=e;if(O.empty&&eV.isActiveAt(e,O.from)){let l=r.lineAt(a),o=eC(function(e,O){let t=e.resolveInner(O,-1),n=O;eG(t)&&(n=t.from,t=t.parent);for(let a;a=t.childBefore(n);)if(eG(a))n=a.from;else if("OrderedList"==a.name||"BulletList"==a.name)n=(t=a.lastChild).to;else break;return t}(t,a),r);if(o.length){let s=o[o.length-1],p=s.to-s.spaceAfter.length+(s.spaceAfter?1:0);if(a-l.from>p&&!/\S/.test(l.text.slice(p,a-l.from)))return{range:i.jT.cursor(l.from+p),changes:{from:l.from+p,to:a}};if(a-l.from==p){let Q=l.from+s.from;if(s.item&&s.node.from{if(e&&t){let n=null;if(e=/\S*/.exec(e)[0],(n="function"==typeof t?t(e):l.c6.matchLanguageName(t,e,!0))instanceof l.c6)return n.support?n.support.language.parser:l.Be.getSkippingParser(n.load());if(n)return n.parser}return O?O.parser:null}):void 0;return Q.push(function(e){let{codeParser:O,htmlParser:t}=e,n=(0,o.FE)((e,n)=>{let i=e.type.id;if(O&&(i==a.CodeBlock||i==a.FencedCode)){let r="";if(i==a.FencedCode){let l=e.node.getChild(a.CodeInfo);l&&(r=n.read(l.from,l.to))}let o=O(r);if(o)return{parser:o,overlay:e=>e.type.id==a.CodeText}}else if(t&&(i==a.HTMLBlock||i==a.HTMLTag))return{parser:t,overlay:function(e,O,t){let n=[];for(let a=e.firstChild,i=O;;a=a.nextSibling){let r=a?a.from:t;if(r>i&&n.push({from:i,to:r}),!a)break;i=a.to}return n}(e.node,e.from,e.to)};return null});return{wrap:n}}({codeParser:h,htmlParser:eE.language.parser})),s&&c.push(i.Wl.high(r.$f.of(eM))),new l.ri(ew(p.configure(Q)),c)}},76538:function(e,O,t){t.d(O,{M:function(){return r}});var n=t(59119);function a(e){return new n.ri(n.il.define(e))}function i(e){return t.e(1390).then(t.bind(t,21390)).then(O=>O.sql({dialect:O[e]}))}let r=[n.c6.of({name:"C",extensions:["c","h","ino"],load:()=>t.e(2750).then(t.bind(t,12750)).then(e=>e.cpp())}),n.c6.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:()=>t.e(2750).then(t.bind(t,12750)).then(e=>e.cpp())}),n.c6.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:()=>i("Cassandra")}),n.c6.of({name:"CSS",extensions:["css"],load:()=>Promise.resolve().then(t.bind(t,61426)).then(e=>e.css())}),n.c6.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:()=>Promise.resolve().then(t.bind(t,13804)).then(e=>e.html())}),n.c6.of({name:"Java",extensions:["java"],load:()=>t.e(4778).then(t.bind(t,44778)).then(e=>e.java())}),n.c6.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:()=>Promise.resolve().then(t.bind(t,58037)).then(e=>e.javascript())}),n.c6.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:()=>t.e(4732).then(t.bind(t,44732)).then(e=>e.json())}),n.c6.of({name:"JSX",extensions:["jsx"],load:()=>Promise.resolve().then(t.bind(t,58037)).then(e=>e.javascript({jsx:!0}))}),n.c6.of({name:"MariaDB SQL",load:()=>i("MariaSQL")}),n.c6.of({name:"Markdown",extensions:["md","markdown","mkd"],load:()=>Promise.resolve().then(t.bind(t,48825)).then(e=>e.markdown())}),n.c6.of({name:"MS SQL",load:()=>i("MSSQL")}),n.c6.of({name:"MySQL",load:()=>i("MySQL")}),n.c6.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:()=>t.e(2386).then(t.bind(t,12386)).then(e=>e.php())}),n.c6.of({name:"PLSQL",extensions:["pls"],load:()=>i("PLSQL")}),n.c6.of({name:"PostgreSQL",load:()=>i("PostgreSQL")}),n.c6.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:()=>t.e(8088).then(t.bind(t,28088)).then(e=>e.python())}),n.c6.of({name:"Rust",extensions:["rs"],load:()=>t.e(4920).then(t.bind(t,24920)).then(e=>e.rust())}),n.c6.of({name:"SQL",extensions:["sql"],load:()=>i("StandardSQL")}),n.c6.of({name:"SQLite",load:()=>i("SQLite")}),n.c6.of({name:"TSX",extensions:["tsx"],load:()=>Promise.resolve().then(t.bind(t,58037)).then(e=>e.javascript({jsx:!0,typescript:!0}))}),n.c6.of({name:"TypeScript",alias:["ts"],extensions:["ts"],load:()=>Promise.resolve().then(t.bind(t,58037)).then(e=>e.javascript({typescript:!0}))}),n.c6.of({name:"WebAssembly",extensions:["wat","wast"],load:()=>t.e(9972).then(t.bind(t,9972)).then(e=>e.wast())}),n.c6.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:()=>t.e(5122).then(t.bind(t,5122)).then(e=>e.xml())}),n.c6.of({name:"APL",extensions:["dyalog","apl"],load:()=>t.e(870).then(t.bind(t,90870)).then(e=>a(e.apl))}),n.c6.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:()=>t.e(8029).then(t.bind(t,58029)).then(e=>a(e.asciiArmor))}),n.c6.of({name:"ASN.1",extensions:["asn","asn1"],load:()=>t.e(3203).then(t.bind(t,93203)).then(e=>a(e.asn1({})))}),n.c6.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:()=>t.e(5648).then(t.bind(t,15648)).then(e=>a(e.asterisk))}),n.c6.of({name:"Brainfuck",extensions:["b","bf"],load:()=>t.e(2675).then(t.bind(t,9521)).then(e=>a(e.brainfuck))}),n.c6.of({name:"Cobol",extensions:["cob","cpy"],load:()=>t.e(8915).then(t.bind(t,68915)).then(e=>a(e.cobol))}),n.c6.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:()=>t.e(7917).then(t.bind(t,63821)).then(e=>a(e.csharp))}),n.c6.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:()=>t.e(2406).then(t.bind(t,72406)).then(e=>a(e.clojure))}),n.c6.of({name:"ClojureScript",extensions:["cljs"],load:()=>t.e(2406).then(t.bind(t,72406)).then(e=>a(e.clojure))}),n.c6.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:()=>t.e(2136).then(t.bind(t,62136)).then(e=>a(e.gss))}),n.c6.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:()=>t.e(889).then(t.bind(t,70889)).then(e=>a(e.cmake))}),n.c6.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:()=>t.e(9558).then(t.bind(t,29558)).then(e=>a(e.coffeeScript))}),n.c6.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:()=>t.e(1446).then(t.bind(t,61446)).then(e=>a(e.commonLisp))}),n.c6.of({name:"Cypher",extensions:["cyp","cypher"],load:()=>t.e(673).then(t.bind(t,20673)).then(e=>a(e.cypher))}),n.c6.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:()=>t.e(4323).then(t.bind(t,74323)).then(e=>a(e.cython))}),n.c6.of({name:"Crystal",extensions:["cr"],load:()=>t.e(2602).then(t.bind(t,62602)).then(e=>a(e.crystal))}),n.c6.of({name:"D",extensions:["d"],load:()=>t.e(1660).then(t.bind(t,11660)).then(e=>a(e.d))}),n.c6.of({name:"Dart",extensions:["dart"],load:()=>t.e(7917).then(t.bind(t,63821)).then(e=>a(e.dart))}),n.c6.of({name:"diff",extensions:["diff","patch"],load:()=>t.e(7475).then(t.bind(t,87475)).then(e=>a(e.diff))}),n.c6.of({name:"Dockerfile",filename:/^Dockerfile$/,load:()=>t.e(4812).then(t.bind(t,34812)).then(e=>a(e.dockerFile))}),n.c6.of({name:"DTD",extensions:["dtd"],load:()=>t.e(6991).then(t.bind(t,76991)).then(e=>a(e.dtd))}),n.c6.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:()=>t.e(4144).then(t.bind(t,24144)).then(e=>a(e.dylan))}),n.c6.of({name:"EBNF",load:()=>t.e(2040).then(t.bind(t,82040)).then(e=>a(e.ebnf))}),n.c6.of({name:"ECL",extensions:["ecl"],load:()=>t.e(7315).then(t.bind(t,37315)).then(e=>a(e.ecl))}),n.c6.of({name:"edn",extensions:["edn"],load:()=>t.e(2406).then(t.bind(t,72406)).then(e=>a(e.clojure))}),n.c6.of({name:"Eiffel",extensions:["e"],load:()=>t.e(7525).then(t.bind(t,87525)).then(e=>a(e.eiffel))}),n.c6.of({name:"Elm",extensions:["elm"],load:()=>t.e(8770).then(t.bind(t,28770)).then(e=>a(e.elm))}),n.c6.of({name:"Erlang",extensions:["erl"],load:()=>t.e(7590).then(t.bind(t,53482)).then(e=>a(e.erlang))}),n.c6.of({name:"Esper",load:()=>t.e(9607).then(t.bind(t,54050)).then(e=>a(e.esper))}),n.c6.of({name:"Factor",extensions:["factor"],load:()=>t.e(7001).then(t.bind(t,87001)).then(e=>a(e.factor))}),n.c6.of({name:"FCL",load:()=>t.e(7663).then(t.bind(t,77663)).then(e=>a(e.fcl))}),n.c6.of({name:"Forth",extensions:["forth","fth","4th"],load:()=>t.e(8393).then(t.bind(t,68393)).then(e=>a(e.forth))}),n.c6.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:()=>t.e(8283).then(t.bind(t,8283)).then(e=>a(e.fortran))}),n.c6.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:()=>t.e(6121).then(t.bind(t,96121)).then(e=>a(e.fSharp))}),n.c6.of({name:"Gas",extensions:["s"],load:()=>t.e(9781).then(t.bind(t,39781)).then(e=>a(e.gas))}),n.c6.of({name:"Gherkin",extensions:["feature"],load:()=>t.e(2542).then(t.bind(t,2542)).then(e=>a(e.gherkin))}),n.c6.of({name:"Go",extensions:["go"],load:()=>t.e(8910).then(t.bind(t,48910)).then(e=>a(e.go))}),n.c6.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:()=>t.e(3883).then(t.bind(t,23883)).then(e=>a(e.groovy))}),n.c6.of({name:"Haskell",extensions:["hs"],load:()=>t.e(5372).then(t.bind(t,95372)).then(e=>a(e.haskell))}),n.c6.of({name:"Haxe",extensions:["hx"],load:()=>t.e(3509).then(t.bind(t,63509)).then(e=>a(e.haxe))}),n.c6.of({name:"HXML",extensions:["hxml"],load:()=>t.e(3509).then(t.bind(t,63509)).then(e=>a(e.hxml))}),n.c6.of({name:"HTTP",load:()=>t.e(7558).then(t.bind(t,36395)).then(e=>a(e.http))}),n.c6.of({name:"IDL",extensions:["pro"],load:()=>t.e(2314).then(t.bind(t,22314)).then(e=>a(e.idl))}),n.c6.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:()=>t.e(9296).then(t.bind(t,59296)).then(e=>a(e.jsonld))}),n.c6.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load:()=>t.e(1084).then(t.bind(t,41084)).then(e=>a(e.jinja2))}),n.c6.of({name:"Julia",extensions:["jl"],load:()=>t.e(6092).then(t.bind(t,76092)).then(e=>a(e.julia))}),n.c6.of({name:"Kotlin",extensions:["kt"],load:()=>t.e(7917).then(t.bind(t,63821)).then(e=>a(e.kotlin))}),n.c6.of({name:"LESS",extensions:["less"],load:()=>t.e(2136).then(t.bind(t,62136)).then(e=>a(e.less))}),n.c6.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:()=>t.e(402).then(t.bind(t,60402)).then(e=>a(e.liveScript))}),n.c6.of({name:"Lua",extensions:["lua"],load:()=>t.e(3519).then(t.bind(t,3519)).then(e=>a(e.lua))}),n.c6.of({name:"mIRC",extensions:["mrc"],load:()=>t.e(5134).then(t.bind(t,65134)).then(e=>a(e.mirc))}),n.c6.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:()=>t.e(7213).then(t.bind(t,37213)).then(e=>a(e.mathematica))}),n.c6.of({name:"Modelica",extensions:["mo"],load:()=>t.e(305).then(t.bind(t,40305)).then(e=>a(e.modelica))}),n.c6.of({name:"MUMPS",extensions:["mps"],load:()=>t.e(7988).then(t.bind(t,17988)).then(e=>a(e.mumps))}),n.c6.of({name:"Mbox",extensions:["mbox"],load:()=>t.e(9121).then(t.bind(t,29121)).then(e=>a(e.mbox))}),n.c6.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:()=>t.e(8561).then(t.bind(t,78561)).then(e=>a(e.nginx))}),n.c6.of({name:"NSIS",extensions:["nsh","nsi"],load:()=>t.e(7370).then(t.bind(t,67370)).then(e=>a(e.nsis))}),n.c6.of({name:"NTriples",extensions:["nt","nq"],load:()=>t.e(3314).then(t.bind(t,43314)).then(e=>a(e.ntriples))}),n.c6.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:()=>t.e(7917).then(t.bind(t,63821)).then(e=>a(e.objectiveC))}),n.c6.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:()=>t.e(7917).then(t.bind(t,63821)).then(e=>a(e.objectiveCpp))}),n.c6.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:()=>t.e(6121).then(t.bind(t,96121)).then(e=>a(e.oCaml))}),n.c6.of({name:"Octave",extensions:["m"],load:()=>t.e(3283).then(t.bind(t,33283)).then(e=>a(e.octave))}),n.c6.of({name:"Oz",extensions:["oz"],load:()=>t.e(4796).then(t.bind(t,94796)).then(e=>a(e.oz))}),n.c6.of({name:"Pascal",extensions:["p","pas"],load:()=>t.e(4163).then(t.bind(t,44163)).then(e=>a(e.pascal))}),n.c6.of({name:"Perl",extensions:["pl","pm"],load:()=>t.e(4293).then(t.bind(t,94293)).then(e=>a(e.perl))}),n.c6.of({name:"Pig",extensions:["pig"],load:()=>t.e(3482).then(t.bind(t,33482)).then(e=>a(e.pig))}),n.c6.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:()=>t.e(7421).then(t.bind(t,37421)).then(e=>a(e.powerShell))}),n.c6.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:()=>t.e(9071).then(t.bind(t,69071)).then(e=>a(e.properties))}),n.c6.of({name:"ProtoBuf",extensions:["proto"],load:()=>t.e(8142).then(t.bind(t,78142)).then(e=>a(e.protobuf))}),n.c6.of({name:"Puppet",extensions:["pp"],load:()=>t.e(3993).then(t.bind(t,83993)).then(e=>a(e.puppet))}),n.c6.of({name:"Q",extensions:["q"],load:()=>t.e(228).then(t.bind(t,10228)).then(e=>a(e.q))}),n.c6.of({name:"R",alias:["rscript"],extensions:["r","R"],load:()=>t.e(7365).then(t.bind(t,57365)).then(e=>a(e.r))}),n.c6.of({name:"RPM Changes",load:()=>t.e(8171).then(t.bind(t,48171)).then(e=>a(e.rpmChanges))}),n.c6.of({name:"RPM Spec",extensions:["spec"],load:()=>t.e(8171).then(t.bind(t,48171)).then(e=>a(e.rpmSpec))}),n.c6.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],load:()=>t.e(4439).then(t.bind(t,24439)).then(e=>a(e.ruby))}),n.c6.of({name:"SAS",extensions:["sas"],load:()=>t.e(1770).then(t.bind(t,1770)).then(e=>a(e.sas))}),n.c6.of({name:"Sass",extensions:["sass"],load:()=>t.e(9809).then(t.bind(t,49809)).then(e=>a(e.sass))}),n.c6.of({name:"Scala",extensions:["scala"],load:()=>t.e(7917).then(t.bind(t,63821)).then(e=>a(e.scala))}),n.c6.of({name:"Scheme",extensions:["scm","ss"],load:()=>t.e(5879).then(t.bind(t,95879)).then(e=>a(e.scheme))}),n.c6.of({name:"SCSS",extensions:["scss"],load:()=>t.e(2136).then(t.bind(t,62136)).then(e=>a(e.sCSS))}),n.c6.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:()=>t.e(4879).then(t.bind(t,44879)).then(e=>a(e.shell))}),n.c6.of({name:"Sieve",extensions:["siv","sieve"],load:()=>t.e(9713).then(t.bind(t,9713)).then(e=>a(e.sieve))}),n.c6.of({name:"Smalltalk",extensions:["st"],load:()=>t.e(1873).then(t.bind(t,11873)).then(e=>a(e.smalltalk))}),n.c6.of({name:"Solr",load:()=>t.e(7762).then(t.bind(t,17762)).then(e=>a(e.solr))}),n.c6.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:()=>t.e(6121).then(t.bind(t,96121)).then(e=>a(e.sml))}),n.c6.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:()=>t.e(370).then(t.bind(t,70370)).then(e=>a(e.sparql))}),n.c6.of({name:"Spreadsheet",alias:["excel","formula"],load:()=>t.e(7601).then(t.bind(t,97601)).then(e=>a(e.spreadsheet))}),n.c6.of({name:"Squirrel",extensions:["nut"],load:()=>t.e(7917).then(t.bind(t,63821)).then(e=>a(e.squirrel))}),n.c6.of({name:"Stylus",extensions:["styl"],load:()=>t.e(8007).then(t.bind(t,28007)).then(e=>a(e.stylus))}),n.c6.of({name:"Swift",extensions:["swift"],load:()=>t.e(6062).then(t.bind(t,66062)).then(e=>a(e.swift))}),n.c6.of({name:"sTeX",load:()=>t.e(6732).then(t.bind(t,86732)).then(e=>a(e.stex))}),n.c6.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:()=>t.e(6732).then(t.bind(t,86732)).then(e=>a(e.stex))}),n.c6.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:()=>t.e(2119).then(t.bind(t,52119)).then(e=>a(e.verilog))}),n.c6.of({name:"Tcl",extensions:["tcl"],load:()=>t.e(3465).then(t.bind(t,43465)).then(e=>a(e.tcl))}),n.c6.of({name:"Textile",extensions:["textile"],load:()=>t.e(177).then(t.bind(t,90177)).then(e=>a(e.textile))}),n.c6.of({name:"TiddlyWiki",load:()=>t.e(4511).then(t.bind(t,34511)).then(e=>a(e.tiddlyWiki))}),n.c6.of({name:"Tiki wiki",load:()=>t.e(6471).then(t.bind(t,36471)).then(e=>a(e.tiki))}),n.c6.of({name:"TOML",extensions:["toml"],load:()=>t.e(6443).then(t.bind(t,96443)).then(e=>a(e.toml))}),n.c6.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:()=>t.e(1920).then(t.bind(t,71920)).then(e=>a(e.troff))}),n.c6.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:()=>t.e(6665).then(t.bind(t,66665)).then(e=>a(e.ttcn))}),n.c6.of({name:"TTCN_CFG",extensions:["cfg"],load:()=>t.e(9831).then(t.bind(t,29831)).then(e=>a(e.ttcnCfg))}),n.c6.of({name:"Turtle",extensions:["ttl"],load:()=>t.e(5815).then(t.bind(t,15815)).then(e=>a(e.turtle))}),n.c6.of({name:"Web IDL",extensions:["webidl"],load:()=>t.e(6692).then(t.bind(t,26692)).then(e=>a(e.webIDL))}),n.c6.of({name:"VB.NET",extensions:["vb"],load:()=>t.e(4212).then(t.bind(t,44212)).then(e=>a(e.vb))}),n.c6.of({name:"VBScript",extensions:["vbs"],load:()=>t.e(1650).then(t.bind(t,31650)).then(e=>a(e.vbScript))}),n.c6.of({name:"Velocity",extensions:["vtl"],load:()=>t.e(617).then(t.bind(t,90617)).then(e=>a(e.velocity))}),n.c6.of({name:"Verilog",extensions:["v"],load:()=>t.e(2119).then(t.bind(t,52119)).then(e=>a(e.verilog))}),n.c6.of({name:"VHDL",extensions:["vhd","vhdl"],load:()=>t.e(5819).then(t.bind(t,5819)).then(e=>a(e.vhdl))}),n.c6.of({name:"XQuery",extensions:["xy","xquery"],load:()=>t.e(5753).then(t.bind(t,35753)).then(e=>a(e.xQuery))}),n.c6.of({name:"Yacas",extensions:["ys"],load:()=>t.e(9232).then(t.bind(t,69232)).then(e=>a(e.yacas))}),n.c6.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:()=>t.e(2877).then(t.bind(t,82877)).then(e=>a(e.yaml))}),n.c6.of({name:"Z80",extensions:["z80"],load:()=>t.e(1053).then(t.bind(t,21053)).then(e=>a(e.z80))}),n.c6.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:()=>t.e(758).then(t.bind(t,30758)).then(e=>a(e.mscgen))}),n.c6.of({name:"X\xf9",extensions:["xu"],load:()=>t.e(758).then(t.bind(t,30758)).then(e=>a(e.xu))}),n.c6.of({name:"MsGenny",extensions:["msgenny"],load:()=>t.e(758).then(t.bind(t,30758)).then(e=>a(e.msgenny))})]}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7022],{88484:function(e,O,t){t.d(O,{Z:function(){return o}});var n=t(1413),a=t(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},r=t(42135),l=function(e,O){return a.createElement(r.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:O,icon:i}))};l.displayName="UploadOutlined";var o=a.forwardRef(l)},94594:function(e,O,t){t.d(O,{Z:function(){return g}});var n=t(87462),a=t(4942),i=t(50888),r=t(94184),l=t.n(r),o=t(97685),s=t(45987),p=t(67294),Q=t(21770),c=t(15105),d=p.forwardRef(function(e,O){var t,n=e.prefixCls,i=void 0===n?"rc-switch":n,r=e.className,d=e.checked,h=e.defaultChecked,f=e.disabled,u=e.loadingIcon,$=e.checkedChildren,m=e.unCheckedChildren,S=e.onClick,g=e.onChange,P=e.onKeyDown,Z=(0,s.Z)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),T=(0,Q.Z)(!1,{value:d,defaultValue:h}),b=(0,o.Z)(T,2),x=b[0],X=b[1];function W(e,O){var t=x;return f||(X(t=e),null==g||g(t,O)),t}var y=l()(i,r,(t={},(0,a.Z)(t,"".concat(i,"-checked"),x),(0,a.Z)(t,"".concat(i,"-disabled"),f),t));return p.createElement("button",Object.assign({},Z,{type:"button",role:"switch","aria-checked":x,disabled:f,className:y,ref:O,onKeyDown:function(e){e.which===c.Z.LEFT?W(!1,e):e.which===c.Z.RIGHT&&W(!0,e),null==P||P(e)},onClick:function(e){var O=W(!x,e);null==S||S(O,e)}}),u,p.createElement("span",{className:"".concat(i,"-inner")},x?$:m))});d.displayName="Switch";var h=t(53124),f=t(98866),u=t(97647),$=t(68349),m=function(e,O){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>O.indexOf(n)&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);aO.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t},S=p.forwardRef(function(e,O){var t,r=e.prefixCls,o=e.size,s=e.disabled,Q=e.loading,c=e.className,S=m(e,["prefixCls","size","disabled","loading","className"]),g=p.useContext(h.E_),P=g.getPrefixCls,Z=g.direction,T=p.useContext(u.Z),b=p.useContext(f.Z),x=P("switch",r),X=p.createElement("div",{className:"".concat(x,"-handle")},Q&&p.createElement(i.Z,{className:"".concat(x,"-loading-icon")})),W=l()((t={},(0,a.Z)(t,"".concat(x,"-small"),"small"===(o||T)),(0,a.Z)(t,"".concat(x,"-loading"),Q),(0,a.Z)(t,"".concat(x,"-rtl"),"rtl"===Z),t),void 0===c?"":c);return p.createElement($.Z,{insertExtraNode:!0},p.createElement(d,(0,n.Z)({},S,{prefixCls:x,className:W,disabled:(null!=s?s:b)||Q,ref:O,loadingIcon:X})))});S.__ANT_SWITCH=!0;var g=S},20550:function(e,O,t){t.d(O,{Z:function(){return S}});var n=t(4942),a=t(87462),i=t(97685),r=t(97937),l=t(94184),o=t.n(l),s=t(98423),p=t(67294),Q=t(53124),c=t(98787),d=t(68349),h=function(e,O){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>O.indexOf(n)&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);aO.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t},f=function(e,O){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>O.indexOf(n)&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);aO.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t},u=RegExp("^(".concat(c.Y.join("|"),")(-inverse)?$")),$=RegExp("^(".concat(c.E.join("|"),")$")),m=p.forwardRef(function(e,O){var t,l=e.prefixCls,c=e.className,h=e.style,m=e.children,S=e.icon,g=e.color,P=e.onClose,Z=e.closeIcon,T=e.closable,b=f(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),x=p.useContext(Q.E_),X=x.getPrefixCls,W=x.direction,y=p.useState(!0),_=(0,i.Z)(y,2),k=_[0],w=_[1];p.useEffect(function(){"visible"in b&&w(b.visible)},[b.visible]);var Y=function(){return!!g&&(u.test(g)||$.test(g))},q=(0,a.Z)({backgroundColor:g&&!Y()?g:void 0},h),V=Y(),v=X("tag",l),C=o()(v,(t={},(0,n.Z)(t,"".concat(v,"-").concat(g),V),(0,n.Z)(t,"".concat(v,"-has-color"),g&&!V),(0,n.Z)(t,"".concat(v,"-hidden"),!k),(0,n.Z)(t,"".concat(v,"-rtl"),"rtl"===W),t),c),j=function(e){e.stopPropagation(),null==P||P(e),!e.defaultPrevented&&("visible"in b||w(!1))},U="onClick"in b||m&&"a"===m.type,R=(0,s.Z)(b,["visible"]),G=S||null,A=G?p.createElement(p.Fragment,null,G,p.createElement("span",null,m)):m,M=p.createElement("span",(0,a.Z)({},R,{ref:O,className:C,style:q}),A,void 0!==T&&T?Z?p.createElement("span",{className:"".concat(v,"-close-icon"),onClick:j},Z):p.createElement(r.Z,{className:"".concat(v,"-close-icon"),onClick:j}):null);return U?p.createElement(d.Z,null,M):M});m.CheckableTag=function(e){var O,t=e.prefixCls,i=e.className,r=e.checked,l=e.onChange,s=e.onClick,c=h(e,["prefixCls","className","checked","onChange","onClick"]),d=(0,p.useContext(Q.E_).getPrefixCls)("tag",t),f=o()(d,(O={},(0,n.Z)(O,"".concat(d,"-checkable"),!0),(0,n.Z)(O,"".concat(d,"-checkable-checked"),r),O),i);return p.createElement("span",(0,a.Z)({},c,{className:f,onClick:function(e){null==l||l(!r),null==s||s(e)}}))};var S=m},13804:function(e,O,t){t.r(O),t.d(O,{autoCloseTags:function(){return ei},html:function(){return ea},htmlCompletionSource:function(){return K},htmlCompletionSourceWith:function(){return ee},htmlLanguage:function(){return en}});var n=t(53105),a=t(35524),i=t(41113);let r={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},l={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},o={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function s(e){return 9==e||10==e||13==e||32==e}let p=null,Q=null,c=0;function d(e,O){var t;let n=e.pos+O;if(c==n&&Q==e)return p;let a=e.peek(O);for(;s(a);)a=e.peek(++O);let i="";for(;45==(t=a)||46==t||58==t||t>=65&&t<=90||95==t||t>=97&&t<=122||t>=161;)i+=String.fromCharCode(a),a=e.peek(++O);return Q=e,c=n,p=i?i.toLowerCase():a==h||a==f?void 0:null}let h=63,f=33;function u(e,O){this.name=e,this.parent=O,this.hash=O?O.hash:0;for(let t=0;t$.indexOf(O)>-1?new u(d(n,1)||"",e):e,reduce:(e,O)=>18==O&&e?e.parent:e,reuse(e,O,t,n){let a=O.type.id;return 4==a||35==a?new u(d(n,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),S=new n.Jq((e,O)=>{if(60!=e.next){e.next<0&&O.context&&e.acceptToken(57);return}e.advance();let t=47==e.next;t&&e.advance();let n=d(e,0);if(void 0===n)return;if(!n)return e.acceptToken(t?12:4);let a=O.context?O.context.name:null;if(t){if(n==a)return e.acceptToken(9);if(a&&l[a])return e.acceptToken(57,-2);if(O.dialectEnabled(0))return e.acceptToken(10);for(let i=O.context;i;i=i.parent)if(i.name==n)return;e.acceptToken(11)}else{if("script"==n)return e.acceptToken(5);if("style"==n)return e.acceptToken(6);if("textarea"==n)return e.acceptToken(7);if(r.hasOwnProperty(n))return e.acceptToken(8);a&&o[a]&&o[a][n]?e.acceptToken(57,-1):e.acceptToken(4)}},{contextual:!0}),g=new n.Jq(e=>{for(let O=0,t=0;;t++){if(e.next<0){t&&e.acceptToken(58);break}if(45==e.next)O++;else if(62==e.next&&O>=2){t>3&&e.acceptToken(58,-2);break}else O=0;e.advance()}});function P(e,O,t){let a=2+e.length;return new n.Jq(n=>{for(let i=0,r=0,l=0;;l++){if(n.next<0){l&&n.acceptToken(O);break}if(0==i&&60==n.next||1==i&&47==n.next||i>=2&&ir?n.acceptToken(O,-r):n.acceptToken(t,-(r-2));break}else if((10==n.next||13==n.next)&&l){n.acceptToken(O,1);break}else i=r=0;n.advance()}})}let Z=P("script",54,1),T=P("style",55,2),b=P("textarea",56,3),x=(0,a.Gv)({"Text RawText":a.pJ.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":a.pJ.angleBracket,TagName:a.pJ.tagName,"MismatchedCloseTag/TagName":[a.pJ.tagName,a.pJ.invalid],AttributeName:a.pJ.attributeName,"AttributeValue UnquotedAttributeValue":a.pJ.attributeValue,Is:a.pJ.definitionOperator,"EntityReference CharacterReference":a.pJ.character,Comment:a.pJ.blockComment,ProcessingInst:a.pJ.processingInstruction,DoctypeDecl:a.pJ.documentMeta}),X=n.WQ.deserialize({version:14,states:",xOVOxOOO!WQ!bO'#CoO!]Q!bO'#CyO!bQ!bO'#C|O!gQ!bO'#DPO!lQ!bO'#DRO!qOXO'#CnO!|OYO'#CnO#XO[O'#CnO$eOxO'#CnOOOW'#Cn'#CnO$lO!rO'#DTO$tQ!bO'#DVO$yQ!bO'#DWOOOW'#Dk'#DkOOOW'#DY'#DYQVOxOOO%OQ#tO,59ZO%WQ#tO,59eO%`Q#tO,59hO%hQ#tO,59kO%sQ#tO,59mOOOX'#D^'#D^O%{OXO'#CwO&WOXO,59YOOOY'#D_'#D_O&`OYO'#CzO&kOYO,59YOOO['#D`'#D`O&sO[O'#C}O'OO[O,59YOOOW'#Da'#DaO'WOxO,59YO'_Q!bO'#DQOOOW,59Y,59YOOO`'#Db'#DbO'dO!rO,59oOOOW,59o,59oO'lQ!bO,59qO'qQ!bO,59rOOOW-E7W-E7WO'vQ#tO'#CqOOQO'#DZ'#DZO(UQ#tO1G.uOOOX1G.u1G.uO(^Q#tO1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!sO~Oj!tO~O_!uO`!uOa!uO!`!wO!a!uO~O_!xO`!xOa!xO!b!wO!c!xO~O_!uO`!uOa!uO!`!{O!a!uO~O_!xO`!xOa!xO!b!{O!c!xO~Ov~vj`!dx{_a_~",goto:"%p!`PPPPPPPPPPPPPPPPPP!a!gP!mPP!yPP!|#P#S#Y#]#`#f#i#l#r#xP!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue EndTag ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag SelfClosingEndTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:m,nodeProps:[["closedBy",-10,1,2,3,5,6,7,8,9,10,11,"EndTag",4,"EndTag SelfClosingEndTag",-4,19,29,32,35,"CloseTag"],["group",-9,12,15,16,17,18,39,40,41,42,"Entity",14,"Entity TextContent",-3,27,30,33,"TextContent Entity"],["openedBy",26,"StartTag StartCloseTag",-4,28,31,34,36,"OpenTag",38,"StartTag"]],propSources:[x],skippedNodes:[0],repeatNodeCount:9,tokenData:"#(r!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs4ysv-_vw5iwxJ^x}-_}!OKP!O!P-_!P!Q!!O!Q![-_![!]!$c!]!^-_!^!_!(k!_!`#'S!`!a#'z!a!c-_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T;'S+P;'S;=`+t<%lO+P!Z:`P;=`<%l7d!_:jjfSiWOX7dXZ8qZ[7d[^8q^p7dqr:crs8qst/^tw:cwx8qx!P:c!P!Q7d!Q!]:c!]!^<[!^!_=p!_!a8q!a#S:c#S#T=p#T#s:c#s$f7d$f;'S:c;'S;=`?}<%l?Ah:c?Ah?BY7d?BY?Mn:c?MnO7d!_{let i=e.type.id;if(27==i)return _(e,O,t);if(30==i)return _(e,O,n);if(33==i)return _(e,O,a);if(35==i&&r.length){let l=e.node,s=y(l,O),p;for(let Q of r)if(Q.tag==s&&(!Q.attrs||Q.attrs(p||(p=W(l,O))))){let c=l.parent.lastChild;return{parser:Q.parser,overlay:[{from:e.to,to:36==c.type.id?c.from:l.parent.to}]}}}if(o&&21==i){let d=e.node,h;if(h=d.firstChild){let f=o[O.read(h.from,h.to)];if(f)for(let u of f){if(u.tagName&&u.tagName!=y(d.parent,O))continue;let $=d.lastChild;if(24==$.type.id)return{parser:u.parser,overlay:[{from:$.from+1,to:$.to-1}]};if(25==$.type.id)return{parser:u.parser,overlay:[{from:$.from,to:$.to}]}}}}return null})}var w=t(61426),Y=t(58037),q=t(47421),V=t(78120),v=t(59119);let C=["_blank","_self","_top","_parent"],j=["ascii","utf-8","utf-16","latin1","latin1"],U=["get","post","put","delete"],R=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],G=["true","false"],A={},M={a:{attrs:{href:null,ping:null,type:null,media:null,target:C,hreflang:null}},abbr:A,address:A,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:A,aside:A,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:A,base:{attrs:{href:null,target:C}},bdi:A,bdo:A,blockquote:{attrs:{cite:null}},body:A,br:A,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:R,formmethod:U,formnovalidate:["novalidate"],formtarget:C,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:A,center:A,cite:A,code:A,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:A,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:A,div:A,dl:A,dt:A,em:A,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:A,figure:A,footer:A,form:{attrs:{action:null,name:null,"accept-charset":j,autocomplete:["on","off"],enctype:R,method:U,novalidate:["novalidate"],target:C}},h1:A,h2:A,h3:A,h4:A,h5:A,h6:A,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:A,hgroup:A,hr:A,html:{attrs:{manifest:null}},i:A,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:R,formmethod:U,formnovalidate:["novalidate"],formtarget:C,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:A,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:A,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:A,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:j,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:A,noscript:A,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:A,param:{attrs:{name:null,value:null}},pre:A,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:A,rt:A,ruby:A,samp:A,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:j}},section:A,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:A,source:{attrs:{src:null,type:null,media:null}},span:A,strong:A,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:A,summary:A,sup:A,table:A,tbody:A,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:A,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:A,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:A,time:{attrs:{datetime:null}},title:A,tr:A,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:A,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:A},E={accesskey:null,class:null,contenteditable:G,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:G,autocorrect:G,autocapitalize:G,style:null,tabindex:null,title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":G,"aria-autocomplete":["inline","list","both","none"],"aria-busy":G,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":G,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":G,"aria-hidden":G,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":G,"aria-multiselectable":G,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":G,"aria-relevant":null,"aria-required":G,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null};class J{constructor(e,O){this.tags=Object.assign(Object.assign({},M),e),this.globalAttrs=Object.assign(Object.assign({},E),O),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function I(e,O,t=e.length){if(!O)return"";let n=O.firstChild,a=n&&n.getChild("TagName");return a?e.sliceString(a.from,Math.min(a.to,t)):""}function L(e,O=!1){for(let t=e.parent;t;t=t.parent)if("Element"==t.name){if(!O)return t;O=!1}return null}function B(e,O,t){let n=t.tags[I(e,L(O,!0))];return(null==n?void 0:n.children)||t.allTags}function z(e,O){let t=[];for(let n=O;n=L(n);){let a=I(e,n);if(a&&"CloseTag"==n.lastChild.name)break;a&&0>t.indexOf(a)&&("EndTag"==O.name||O.from>=n.firstChild.to)&&t.push(a)}return t}J.default=new J;let D=/^[:\-\.\w\u00b7-\uffff]*$/;function N(e,O,t,n,a){let i=/\s*>/.test(e.sliceDoc(a,a+5))?"":">";return{from:n,to:a,options:B(e.doc,t,O).map(e=>({label:e,type:"type"})).concat(z(e.doc,t).map((e,O)=>({label:"/"+e,apply:"/"+e+i,type:"type",boost:99-O}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function F(e,O,t,n){let a=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:t,to:n,options:z(e.doc,O).map((e,O)=>({label:e,apply:e+a,type:"type",boost:99-O})),validFor:D}}function H(e,O){let{state:t,pos:n}=O,a=(0,v.qz)(t).resolveInner(n),i=a.resolve(n,-1);for(let r=n,l;a==i&&(l=i.childBefore(r));){let o=l.lastChild;if(!o||!o.type.isError||o.from({label:e,type:"property"})),validFor:D}}return"Is"==i.name||"AttributeValue"==i.name||"UnquotedAttributeValue"==i.name?function(e,O,t,n,a){var i;let r=null===(i=t.parent)||void 0===i?void 0:i.getChild("AttributeName"),l=[],o;if(r){let s=e.sliceDoc(r.from,r.to),p=O.globalAttrs[s];if(!p){let Q=L(t),c=Q?O.tags[I(e.doc,Q)]:null;p=(null==c?void 0:c.attrs)&&c.attrs[s]}if(p){let d=e.sliceDoc(n,a).toLowerCase(),h='"',f='"';for(let u of(/^['"]/.test(d)?(o='"'==d[0]?/^[^"]*$/:/^[^']*$/,h="",f=e.sliceDoc(a,a+1)==d[0]?"":d[0],d=d.slice(1),n++):o=/^[^\s<>='"]*$/,p))l.push({label:u,apply:h+u+f,type:"constant"})}}return{from:n,to:a,options:l,validFor:o}}(t,e,i,"Is"==i.name?n:i.from,n):O.explicit&&("Element"==a.name||"Text"==a.name||"Document"==a.name)?function(e,O,t,n){let a=[],i=0;for(let r of B(e.doc,t,O))a.push({label:"<"+r,type:"type"});for(let l of z(e.doc,t))a.push({label:"",type:"type",boost:99-i++});return{from:n,to:n,options:a,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(t,e,i,n):null}function K(e){return H(J.default,e)}function ee(e){let{extraTags:O,extraGlobalAttributes:t}=e,n=t||O?new J(O,t):J.default;return e=>H(n,e)}let eO=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:Y.typescriptLanguage.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:Y.jsxLanguage.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:Y.tsxLanguage.parser},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:Y.javascriptLanguage.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:w.cssLanguage.parser}],et=[{name:"style",parser:w.cssLanguage.parser.configure({top:"Styles"})}].concat("beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>({name:"on"+e,parser:Y.javascriptLanguage.parser}))),en=v.qp.define({name:"html",parser:X.configure({props:[v.uj.add({Element(e){let O=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+O[0].length?e.continue():e.lineIndent(e.node.from)+(O[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}});function ea(e={}){let O="",t;!1===e.matchClosingTags&&(O="noMatch"),!0===e.selfClosingTags&&(O=(O?O+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(t=k((e.nestedLanguages||[]).concat(eO),(e.nestedAttributes||[]).concat(et)));let n=t||O?en.configure({dialect:O,wrap:t}):en;return new v.ri(n,[en.data.of({autocomplete:ee(e)}),!1!==e.autoCloseTags?ei:[],(0,Y.javascript)().support,(0,w.css)().support])}let ei=q.tk.inputHandler.of((e,O,t,n)=>{if(e.composing||e.state.readOnly||O!=t||">"!=n&&"/"!=n||!en.isActiveAt(e.state,O,-1))return!1;let{state:a}=e,i=a.changeByRange(O=>{var t,i,r;let{head:l}=O,o=(0,v.qz)(a).resolveInner(l,-1),s;if(("TagName"==o.name||"StartTag"==o.name)&&(o=o.parent),">"==n&&"OpenTag"==o.name){if((null===(i=null===(t=o.parent)||void 0===t?void 0:t.lastChild)||void 0===i?void 0:i.name)!="CloseTag"&&(s=I(a.doc,o.parent,l))){let p=">"===e.state.doc.sliceString(l,l+1),Q=`${p?"":">"}`;return{range:V.jT.cursor(l+1),changes:{from:l+(p?1:0),insert:Q}}}}else if("/"==n&&"OpenTag"==o.name){let c=o.parent,d=null==c?void 0:c.parent;if(c.from==l-1&&(null===(r=d.lastChild)||void 0===r?void 0:r.name)!="CloseTag"&&(s=I(a.doc,d,l))){let h=">"===e.state.doc.sliceString(l,l+1),f=`/${s}${h?"":">"}`,u=l+f.length+(h?1:0);return{range:V.jT.cursor(u),changes:{from:l,insert:f}}}}return{range:O}});return!i.changes.empty&&(e.dispatch(i,{userEvent:"input.type",scrollIntoView:!0}),!0)})},58037:function(e,O,t){t.r(O),t.d(O,{autoCloseTags:function(){return A},completionPath:function(){return w},esLint:function(){return M},javascript:function(){return U},javascriptLanguage:function(){return q},jsxLanguage:function(){return v},localCompletionSource:function(){return _},scopeCompletionSource:function(){return Y},snippets:function(){return P},tsxLanguage:function(){return C},typescriptLanguage:function(){return V}});var n=t(53105),a=t(35524);let i=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],r=new n.IK({start:!1,shift:(e,O)=>4==O||5==O||298==O?e:299==O,strict:!1}),l=new n.Jq((e,O)=>{let{next:t}=e;(125==t||-1==t||O.context)&&O.canShift(296)&&e.acceptToken(296)},{contextual:!0,fallback:!0}),o=new n.Jq((e,O)=>{let{next:t}=e,n;!(i.indexOf(t)>-1)&&(47!=t||47!=(n=e.peek(1))&&42!=n)&&125!=t&&59!=t&&-1!=t&&!O.context&&O.canShift(293)&&e.acceptToken(293)},{contextual:!0}),s=new n.Jq((e,O)=>{let{next:t}=e;if((43==t||45==t)&&(e.advance(),t==e.next)){e.advance();let n=!O.context&&O.canShift(1);e.acceptToken(n?1:2)}},{contextual:!0}),p=new n.Jq(e=>{for(let O=!1,t=0;;t++){let{next:n}=e;if(n<0){t&&e.acceptToken(294);break}if(96==n){t?e.acceptToken(294):e.acceptToken(295,1);break}if(123==n&&O){1==t?e.acceptToken(3,1):e.acceptToken(294,-1);break}if(10==n&&t){e.advance(),e.acceptToken(294);break}else 92==n&&e.advance();O=36==n,e.advance()}}),Q=(0,a.Gv)({"get set async static":a.pJ.modifier,"for while do if else switch try catch finally return throw break continue default case":a.pJ.controlKeyword,"in of await yield void typeof delete instanceof":a.pJ.operatorKeyword,"let var const function class extends":a.pJ.definitionKeyword,"import export from":a.pJ.moduleKeyword,"with debugger as new":a.pJ.keyword,TemplateString:a.pJ.special(a.pJ.string),super:a.pJ.atom,BooleanLiteral:a.pJ.bool,this:a.pJ.self,null:a.pJ.null,Star:a.pJ.modifier,VariableName:a.pJ.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":a.pJ.function(a.pJ.variableName),VariableDefinition:a.pJ.definition(a.pJ.variableName),Label:a.pJ.labelName,PropertyName:a.pJ.propertyName,PrivatePropertyName:a.pJ.special(a.pJ.propertyName),"CallExpression/MemberExpression/PropertyName":a.pJ.function(a.pJ.propertyName),"FunctionDeclaration/VariableDefinition":a.pJ.function(a.pJ.definition(a.pJ.variableName)),"ClassDeclaration/VariableDefinition":a.pJ.definition(a.pJ.className),PropertyDefinition:a.pJ.definition(a.pJ.propertyName),PrivatePropertyDefinition:a.pJ.definition(a.pJ.special(a.pJ.propertyName)),UpdateOp:a.pJ.updateOperator,LineComment:a.pJ.lineComment,BlockComment:a.pJ.blockComment,Number:a.pJ.number,String:a.pJ.string,ArithOp:a.pJ.arithmeticOperator,LogicOp:a.pJ.logicOperator,BitOp:a.pJ.bitwiseOperator,CompareOp:a.pJ.compareOperator,RegExp:a.pJ.regexp,Equals:a.pJ.definitionOperator,Arrow:a.pJ.function(a.pJ.punctuation),": Spread":a.pJ.punctuation,"( )":a.pJ.paren,"[ ]":a.pJ.squareBracket,"{ }":a.pJ.brace,"InterpolationStart InterpolationEnd":a.pJ.special(a.pJ.brace),".":a.pJ.derefOperator,", ;":a.pJ.separator,"@":a.pJ.meta,TypeName:a.pJ.typeName,TypeDefinition:a.pJ.definition(a.pJ.typeName),"type enum interface implements namespace module declare":a.pJ.definitionKeyword,"abstract global Privacy readonly override":a.pJ.modifier,"is keyof unique infer":a.pJ.operatorKeyword,JSXAttributeValue:a.pJ.attributeValue,JSXText:a.pJ.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":a.pJ.angleBracket,"JSXIdentifier JSXNameSpacedName":a.pJ.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":a.pJ.attributeName,"JSXBuiltin/JSXIdentifier":a.pJ.standard(a.pJ.tagName)}),c={__proto__:null,export:16,as:21,from:27,default:30,async:35,function:36,extends:46,this:50,true:58,false:58,null:68,void:72,typeof:76,super:92,new:126,await:143,yield:145,delete:146,class:156,public:211,private:211,protected:211,readonly:213,instanceof:232,satisfies:235,in:236,const:238,import:270,keyof:325,unique:329,infer:335,is:371,abstract:391,implements:393,type:395,let:398,var:400,interface:407,enum:411,namespace:417,module:419,declare:423,global:427,for:448,of:457,while:460,with:464,do:468,if:472,else:474,switch:478,case:484,try:490,catch:494,finally:498,return:502,throw:506,break:510,continue:514,debugger:518},d={__proto__:null,async:113,get:115,set:117,public:173,private:173,protected:173,static:175,abstract:177,override:179,readonly:185,accessor:187,new:375},h={__proto__:null,"<":133},f=n.WQ.deserialize({version:14,states:"$>YO`QYOOO$}QYOOO)WQ(CjO'#CgO)_OSO'#DYO+jQYO'#D_O+zQYO'#DjO$}QYO'#DtO.OQYO'#DzOOQ(CY'#ES'#ESO.fQWO'#EPOOQO'#IV'#IVO.nQWO'#GfOOQO'#Ed'#EdO.yQWO'#EcO/OQWO'#EcO1QQ(CjO'#JPO3qQ(CjO'#JQO4_QWO'#FRO4dQpO'#FjOOQ(CY'#FZ'#FZO4oO!bO'#FZO4}Q#tO'#FqO6bQWO'#FpOOQ(CY'#JQ'#JQOOQ(CW'#JP'#JPOOQQ'#Jj'#JjO6gQWO'#HzO6lQ(C`O'#H{OOQQ'#It'#ItOOQQ'#H}'#H}Q`QYOOO$}QYO'#DlO6tQWO'#GfO6yQ#tO'#ClO7XQWO'#EbO7dQWO'#EmO7iQ#tO'#FYO8TQWO'#GfO8YQWO'#GjO8eQWO'#GjO8sQWO'#GmO8sQWO'#GnO8sQWO'#GpO6tQWO'#GsO9dQWO'#GvO:uQWO'#CcO;VQWO'#HTO;_QWO'#HZO;_QWO'#H]O`QYO'#H_O;_QWO'#HaO;_QWO'#HdO;dQWO'#HjO;iQ(CaO'#HpO$}QYO'#HrO;tQ(CaO'#HtOTQ`O'#FYO$}QYO'#DZOOOS'#IP'#IPO>]OSO,59tOOQ(CY,59t,59tO>hQYO'#IQO>{QWO'#JRO@}QbO'#JRO)jQYO'#JROAUQWO,59yOAlQWO'#EdOAyQW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[ TemplateString Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression await yield delete LogicOp BitOp ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody MethodDeclaration AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression",maxTerm:344,context:r,nodeProps:[["closedBy",3,"InterpolationEnd",43,"]",53,"}",68,")",139,"JSXSelfCloseEndTag JSXEndTag",155,"JSXEndTag"],["group",-26,7,14,16,60,194,198,201,202,204,207,210,221,223,229,231,233,235,238,244,250,252,254,256,258,260,261,"Statement",-30,11,12,25,28,29,34,44,46,47,49,54,62,70,76,77,98,99,108,109,126,129,131,132,133,134,136,137,157,158,160,"Expression",-23,24,26,30,33,35,37,161,163,165,166,168,169,170,172,173,174,176,177,178,188,190,192,193,"Type",-3,80,91,97,"ClassItem"],["openedBy",31,"InterpolationStart",48,"[",52,"{",67,"(",138,"JSXStartTag",150,"JSXStartTag JSXStartCloseTag"]],propSources:[Q],skippedNodes:[0,4,5],repeatNodeCount:29,tokenData:"#2k~R!bOX%ZXY%uYZ'kZ[%u[]%Z]^'k^p%Zpq%uqr(Rrs)mst7]tu9guvlxyJcyzJyz{Ka{|Lm|}MW}!OLm!O!PMn!P!Q!$v!Q!R!Er!R![!G_![!]!Nc!]!^!N{!^!_# c!_!`#!`!`!a##d!a!b#%s!b!c#'h!c!}9g!}#O#(O#O#P%Z#P#Q#(f#Q#R#(|#R#S9g#S#T#)g#T#o#)}#o#p#,w#p#q#,|#q#r#-j#r#s#.S#s$f%Z$f$g%u$g#BY9g#BY#BZ#.j#BZ$IS9g$IS$I_#.j$I_$I|9g$I|$I}#1X$I}$JO#1X$JO$JT9g$JT$JU#.j$JU$KV9g$KV$KW#.j$KW&FU9g&FU&FV#.j&FV;'S9g;'S;=`Rw!^%Z!_!`YU$_W#p&lO!^%Z!_!`s]$_W[;TOY>lYZ?lZw>lwx,jx!^>l!^!_@|!_#O>l#O#PE_#P#o>l#o#p@|#p;'S>l;'S;=`J]<%lO>l,^?qX$_WOw?lwx+_x!^?l!^!_@^!_#o?l#o#p@^#p;'S?l;'S;=`@v<%lO?l,U@aTOw@^wx,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#p!)o#p;'S!+T;'S;=`!,p<%lO!+TMg!>vZ$_WOY!;lYZ!.wZz!;lz{![$P,_(YP!P!Q# w!^!_# |!_!`#!ZW# |O$aW&l#!RP#f&l!_!`#!U&l#!ZO#v&l&l#!`O#g&l(m#!gV#S(e$_WO!^%Z!_!`(l!`!a#!|!a#o%Z#p;'S%Z;'S;=`%o<%lO%Z&u##TT#_&m$_WO!^%Z!_#o%Z#p;'S%Z;'S;=`%o<%lO%Z(m##oVd!s#g&l$[S$_WO!^%Z!_!`#$U!`!a#$l!a#o%Z#p;'S%Z;'S;=`%o<%lO%Z&t#$]T#g&l$_WO!^%Z!_#o%Z#p;'S%Z;'S;=`%o<%lO%Z&t#$sV#f&l$_WO!^%Z!_!`c[e]||-1},{term:310,get:e=>d[e]||-1},{term:65,get:e=>h[e]||-1}],tokenPrec:12784});var u=t(59119),$=t(78120),m=t(47421),S=t(34790),g=t(41113);let P=[(0,S.Gn)("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,S.Gn)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,S.Gn)("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,S.Gn)("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,S.Gn)("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,S.Gn)("try {\n ${}\n} catch (${error}) {\n ${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),(0,S.Gn)("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,S.Gn)("if (${}) {\n ${}\n} else {\n ${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),(0,S.Gn)("class ${name} {\n constructor(${params}) {\n ${}\n }\n}",{label:"class",detail:"definition",type:"keyword"}),(0,S.Gn)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,S.Gn)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Z=new g.hr,T=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function b(e){return(O,t)=>{let n=O.node.getChild("VariableDefinition");return n&&t(n,e),!0}}let x=["FunctionDeclaration"],X={FunctionDeclaration:b("function"),ClassDeclaration:b("class"),ClassExpression:()=>!0,EnumDeclaration:b("constant"),TypeAliasDeclaration:b("type"),NamespaceDeclaration:b("namespace"),VariableDefinition(e,O){e.matchContext(x)||O(e,"variable")},TypeDefinition(e,O){O(e,"type")},__proto__:null},W=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,y=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName"];function _(e){let O=(0,u.qz)(e.state).resolveInner(e.pos,-1);if(y.indexOf(O.name)>-1)return null;let t="VariableName"==O.name||O.to-O.from<20&&W.test(e.state.sliceDoc(O.from,O.to));if(!t&&!e.explicit)return null;let n=[];for(let a=O;a;a=a.parent)T.has(a.name)&&(n=n.concat(function e(O,t){let n=Z.get(t);if(n)return n;let a=[],i=!0;function r(e,t){let n=O.sliceString(e.from,e.to);a.push({label:n,type:t})}return t.cursor(g.vj.IncludeAnonymous).iterate(t=>{if(i)i=!1;else if(t.name){let n=X[t.name];if(n&&n(t,r)||T.has(t.name))return!1}else if(t.to-t.from>8192){for(let l of e(O,t.node))a.push(l);return!1}}),Z.set(t,a),a}(e.state.doc,a)));return{options:n,from:t?O.from:e.pos,validFor:W}}function k(e,O,t){var n;let a=[];for(;;){let i=O.firstChild,r;if((null==i?void 0:i.name)=="VariableName")return a.push(e(i)),{path:a.reverse(),name:t};if((null==i?void 0:i.name)!="MemberExpression"||(null===(n=r=i.lastChild)||void 0===n?void 0:n.name)!="PropertyName")return null;a.push(e(r)),O=i}}function w(e){let O=O=>e.state.doc.sliceString(O.from,O.to),t=(0,u.qz)(e.state).resolveInner(e.pos,-1);return"PropertyName"==t.name?k(O,t.parent,O(t)):y.indexOf(t.name)>-1?null:"VariableName"==t.name||t.to-t.from<20&&W.test(O(t))?{path:[],name:O(t)}:("."==t.name||"?."==t.name)&&"MemberExpression"==t.parent.name?k(O,t.parent,""):"MemberExpression"==t.name?k(O,t,""):e.explicit?{path:[],name:""}:null}function Y(e){let O=new Map;return t=>{let n=w(t);if(!n)return null;let a=e;for(let i of n.path)if(!(a=a[i]))return null;let r=O.get(a);return r||O.set(a,r=function(e,O){let t=[],n=new Set;for(let a=0;;a++){for(let i of(Object.getOwnPropertyNames||Object.keys)(e)){let r;if(!n.has(i)){n.add(i);try{r=e[i]}catch(l){continue}t.push({label:i,type:"function"==typeof r?/^[A-Z]/.test(i)?"class":O?"function":"method":O?"variable":"property",boost:-a})}}let o=Object.getPrototypeOf(e);if(!o)return t;e=o}}(a,!n.path.length)),{from:t.pos-n.name.length,options:r,validFor:W}}}let q=u.qp.define({name:"javascript",parser:f.configure({props:[u.uj.add({IfStatement:(0,u.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,u.tC)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:u.ze,SwitchBody:e=>{let O=e.textAfter,t=/^\s*\}/.test(O),n=/^\s*(case|default)\b/.test(O);return e.baseIndent+(t?0:n?1:2)*e.unit},Block:(0,u.vw)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,u.tC)({except:/^{/}),JSXElement(e){let O=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(O?0:e.unit)},JSXEscape(e){let O=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(O?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),u.x0.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression":u.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),V=q.configure({dialect:"ts"},"typescript"),v=q.configure({dialect:"jsx"}),C=q.configure({dialect:"jsx ts"},"typescript"),j="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(e=>({label:e,type:"keyword"}));function U(e={}){let O=e.jsx?e.typescript?C:v:e.typescript?V:q;return new u.ri(O,[q.data.of({autocomplete:(0,S.eC)(y,(0,S.Mb)(P.concat(j)))}),q.data.of({autocomplete:_}),e.jsx?A:[]])}function R(e,O,t=e.length){for(let n=null==O?void 0:O.firstChild;n;n=n.nextSibling)if("JSXIdentifier"==n.name||"JSXBuiltin"==n.name||"JSXNamespacedName"==n.name||"JSXMemberExpression"==n.name)return e.sliceString(n.from,Math.min(n.to,t));return""}let G="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),A=m.tk.inputHandler.of((e,O,t,n)=>{if((G?e.composing:e.compositionStarted)||e.state.readOnly||O!=t||">"!=n&&"/"!=n||!q.isActiveAt(e.state,O,-1))return!1;let{state:a}=e,i=a.changeByRange(e=>{var O,t;let{head:i}=e,r=(0,u.qz)(a).resolveInner(i,-1),l;if("JSXStartTag"==r.name&&(r=r.parent),">"==n&&"JSXFragmentTag"==r.name)return{range:$.jT.cursor(i+1),changes:{from:i,insert:"><>"}};if("/"==n&&"JSXFragmentTag"==r.name){let o=r.parent,s=null==o?void 0:o.parent;if(o.from==i-1&&(null===(O=s.lastChild)||void 0===O?void 0:O.name)!="JSXEndTag"&&(l=R(a.doc,null==s?void 0:s.firstChild,i))){let p=`/${l}>`;return{range:$.jT.cursor(i+p.length),changes:{from:i,insert:p}}}}else if(">"==n){let Q=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if(!e.parent)return null;e=e.parent}}(r);if(Q&&(null===(t=Q.lastChild)||void 0===t?void 0:t.name)!="JSXEndTag"&&"`}}}return{range:e}});return!i.changes.empty&&(e.dispatch(i,{userEvent:"input.type",scrollIntoView:!0}),!0)});function M(e,O){return O||(O={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},e.getRules().forEach((e,t)=>{e.meta.docs.recommended&&(O.rules[t]=2)})),t=>{let{state:n}=t,a=[];for(let{from:i,to:r}of q.findRegions(n)){let l=n.doc.lineAt(i),o={line:l.number-1,col:i-l.from,pos:i};for(let s of e.verify(n.sliceDoc(i,r),O))a.push(function(e,O,t){let n=E(e.line,e.column,O,t),a={from:n,to:null!=e.endLine&&1!=e.endColumn?E(e.endLine,e.endColumn,O,t):n,message:e.message,source:e.ruleId?"eslint:"+e.ruleId:"eslint",severity:1==e.severity?"warning":"error"};if(e.fix){let{range:i,text:r}=e.fix,l=i[0]+t.pos-n,o=i[1]+t.pos-n;a.actions=[{name:"fix",apply(e,O){e.dispatch({changes:{from:O+l,to:O+o,insert:r},scrollIntoView:!0})}}]}return a}(s,n.doc,o))}return a}}function E(e,O,t,n){return t.line(e+n.line).from+O+(1==e?n.col-1:-1)}},48825:function(e,O,t){t.r(O),t.d(O,{commonmarkLanguage:function(){return eY},deleteMarkupBackward:function(){return eA},insertNewlineContinueMarkup:function(){return eR},markdown:function(){return eJ},markdownKeymap:function(){return eM},markdownLanguage:function(){return eV}});var n,a,i=t(78120),r=t(47421),l=t(59119),o=t(41113),s=t(35524);class p{constructor(e,O,t,n,a,i,r){this.type=e,this.value=O,this.from=t,this.hash=n,this.end=a,this.children=i,this.positions=r,this.hashProp=[[o.md.contextHash,n]]}static create(e,O,t,n,a){return new p(e,O,t,n+(n<<8)+e+(O<<4)|0,a,[],[])}addChild(e,O){e.prop(o.md.contextHash)!=this.hash&&(e=new o.mp(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(O)}toTree(e,O=this.end){let t=this.children.length-1;return t>=0&&(O=Math.max(O,this.positions[t]+this.children[t].length+this.from)),new o.mp(e.types[this.type],this.children,this.positions,O-this.from).balance({makeTree:(e,O,t)=>new o.mp(o.Jq.none,e,O,t,this.hashProp)})}}(n=a||(a={}))[n.Document=1]="Document",n[n.CodeBlock=2]="CodeBlock",n[n.FencedCode=3]="FencedCode",n[n.Blockquote=4]="Blockquote",n[n.HorizontalRule=5]="HorizontalRule",n[n.BulletList=6]="BulletList",n[n.OrderedList=7]="OrderedList",n[n.ListItem=8]="ListItem",n[n.ATXHeading1=9]="ATXHeading1",n[n.ATXHeading2=10]="ATXHeading2",n[n.ATXHeading3=11]="ATXHeading3",n[n.ATXHeading4=12]="ATXHeading4",n[n.ATXHeading5=13]="ATXHeading5",n[n.ATXHeading6=14]="ATXHeading6",n[n.SetextHeading1=15]="SetextHeading1",n[n.SetextHeading2=16]="SetextHeading2",n[n.HTMLBlock=17]="HTMLBlock",n[n.LinkReference=18]="LinkReference",n[n.Paragraph=19]="Paragraph",n[n.CommentBlock=20]="CommentBlock",n[n.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",n[n.Escape=22]="Escape",n[n.Entity=23]="Entity",n[n.HardBreak=24]="HardBreak",n[n.Emphasis=25]="Emphasis",n[n.StrongEmphasis=26]="StrongEmphasis",n[n.Link=27]="Link",n[n.Image=28]="Image",n[n.InlineCode=29]="InlineCode",n[n.HTMLTag=30]="HTMLTag",n[n.Comment=31]="Comment",n[n.ProcessingInstruction=32]="ProcessingInstruction",n[n.URL=33]="URL",n[n.HeaderMark=34]="HeaderMark",n[n.QuoteMark=35]="QuoteMark",n[n.ListMark=36]="ListMark",n[n.LinkMark=37]="LinkMark",n[n.EmphasisMark=38]="EmphasisMark",n[n.CodeMark=39]="CodeMark",n[n.CodeText=40]="CodeText",n[n.CodeInfo=41]="CodeInfo",n[n.LinkTitle=42]="LinkTitle",n[n.LinkLabel=43]="LinkLabel";class Q{constructor(e,O){this.start=e,this.content=O,this.marks=[],this.parsers=[]}}class c{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return u(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,O=0,t=0){for(let n=O;n=O.stack[t.depth+1].value+t.baseIndent)return!0;if(t.indent>=t.baseIndent+4)return!1;let n=(e.type==a.OrderedList?T:Z)(t,O,!1);return n>0&&(e.type!=a.BulletList||0>g(t,O,!1))&&t.text.charCodeAt(t.pos+n-1)==e.value}let h={[a.Blockquote]:(e,O,t)=>62==t.next&&(t.markers.push(N(a.QuoteMark,O.lineStart+t.pos,O.lineStart+t.pos+1)),t.moveBase(t.pos+(f(t.text.charCodeAt(t.pos+1))?2:1)),e.end=O.lineStart+t.text.length,!0),[a.ListItem]:(e,O,t)=>(!(t.indent-1))&&(t.moveBaseColumn(t.baseIndent+e.value),!0),[a.OrderedList]:d,[a.BulletList]:d,[a.Document]:()=>!0};function f(e){return 32==e||9==e||10==e||13==e}function u(e,O=0){for(;Ot&&f(e.charCodeAt(O-1));)O--;return O}function m(e){if(96!=e.next&&126!=e.next)return -1;let O=e.pos+1;for(;O-1&&e.depth==O.stack.length?-1:n<3?-1:1}function P(e,O){for(let t=e.stack.length-1;t>=0;t--)if(e.stack[t].type==O)return!0;return!1}function Z(e,O,t){return(45==e.next||43==e.next||42==e.next)&&(e.pos==e.text.length-1||f(e.text.charCodeAt(e.pos+1)))&&(!t||P(O,a.BulletList)||e.skipSpace(e.pos+2)=48&&i<=57;){if(++n==e.text.length)return -1;i=e.text.charCodeAt(n)}return n==e.pos||n>e.pos+9||46!=i&&41!=i||ne.pos+1||49!=e.next)?-1:n+1-e.pos}function b(e){if(35!=e.next)return -1;let O=e.pos+1;for(;O6?-1:t}function x(e){if(45!=e.next&&61!=e.next||e.indent>=e.baseIndent+4)return -1;let O=e.pos+1;for(;O/,y=/\?>/,_=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(n);if(r)return e.append(N(a.Comment,t,t+1+r[0].length));let l=/^\?[^]*?\?>/.exec(n);if(l)return e.append(N(a.ProcessingInstruction,t,t+1+l[0].length));let o=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(n);return o?e.append(N(a.HTMLTag,t,t+1+o[0].length)):-1},Emphasis(e,O,t){if(95!=O&&42!=O)return -1;let n=t+1;for(;e.char(n)==O;)n++;let a=e.slice(t-1,t),i=e.slice(n,n+1),r=en.test(a),l=en.test(i),o=/\s|^$/.test(a),s=/\s|^$/.test(i),p=!s&&(!l||o||r),Q=!o&&(!r||s||l);return e.append(new eO(95==O?F:H,t,n,(p&&(42==O||!Q||r)?1:0)|(Q&&(42==O||!p||l)?2:0)))},HardBreak(e,O,t){if(92==O&&10==e.char(t+1))return e.append(N(a.HardBreak,t,t+2));if(32==O){let n=t+1;for(;32==e.char(n);)n++;if(10==e.char(n)&&n>=t+2)return e.append(N(a.HardBreak,t,n+1))}return -1},Link:(e,O,t)=>91==O?e.append(new eO(K,t,t+1,1)):-1,Image:(e,O,t)=>33==O&&91==e.char(t+1)?e.append(new eO(ee,t,t+2,1)):-1,LinkEnd(e,O,t){if(93!=O)return -1;for(let n=e.parts.length-1;n>=0;n--){let i=e.parts[n];if(i instanceof eO&&(i.type==K||i.type==ee)){if(!i.side||e.skipSpace(i.to)==t&&!/[(\[]/.test(e.slice(t+1,t+2)))return e.parts[n]=null,-1;let r=e.takeContent(n),l=e.parts[n]=function(e,O,t,n,i){let{text:r}=e,l=e.char(i),o=i;if(O.unshift(N(a.LinkMark,n,n+(t==a.Image?2:1))),O.push(N(a.LinkMark,i-1,i)),40==l){let s=e.skipSpace(i+1),p=er(r,s-e.offset,e.offset),Q;p&&(s=e.skipSpace(p.to),(Q=el(r,s-e.offset,e.offset))&&(s=e.skipSpace(Q.to))),41==e.char(s)&&(O.push(N(a.LinkMark,i,i+1)),o=s+1,p&&O.push(p),Q&&O.push(Q),O.push(N(a.LinkMark,s,o)))}else if(91==l){let c=eo(r,i-e.offset,e.offset,!1);c&&(O.push(c),o=c.to)}return N(t,n,o,O)}(e,r,i.type==K?a.Link:a.Image,i.from,t+1);if(i.type==K)for(let o=0;oO?N(a.URL,O+t,l+t):l==e.length&&null}}function el(e,O,t){let n=e.charCodeAt(O);if(39!=n&&34!=n&&40!=n)return!1;let i=40==n?41:n;for(let r=O+1,l=!1;r=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,O){return this.text.slice(e-this.offset,O-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,O,t,n,a){return this.append(new eO(e,O,t,(n?1:0)|(a?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let O=e;O=e;r--){let l=this.parts[r];if(l instanceof eO&&1&l.side&&l.type==t.type&&!(n&&(1&t.side||2&l.side)&&(l.to-l.from+a)%3==0&&((l.to-l.from)%3||a%3))){i=l;break}}if(!i)continue;let o=t.type.resolve,s=[],p=i.from,Q=t.to;if(n){let c=Math.min(2,i.to-i.from,a);p=i.to-c,Q=t.from+c,o=1==c?"Emphasis":"StrongEmphasis"}i.type.mark&&s.push(this.elt(i.type.mark,p,i.to));for(let d=r+1;d=0;O--){let t=this.parts[O];if(t instanceof eO&&t.type==e)return O}return null}takeContent(e){let O=this.resolveMarkers(e);return this.parts.length=e,O}skipSpace(e){return u(this.text,e-this.offset)+this.offset}elt(e,O,t,n){return"string"==typeof e?N(this.parser.getNodeType(e),O,t,n):new D(e,O)}}function ep(e,O){if(!O.length)return e;if(!e.length)return O;let t=e.slice(),n=0;for(let a of O){for(;n(e?e-1:0))return!1;if(this.fragmentEnd<0){let t=this.fragment.to;for(;t>0&&"\n"!=this.input.read(t-1,t);)t--;this.fragmentEnd=t?t-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor()).firstChild();let a=e+this.fragment.offset;for(;n.to<=a;)if(!n.parent())return!1;for(;;){if(n.from>=a)return this.fragment.from<=O;if(!n.childAfter(a))return!1}}matches(e){let O=this.cursor.tree;return O&&O.prop(o.md.contextHash)==e}takeNodes(e){let O=this.cursor,t=this.fragment.offset,n=this.fragmentEnd-(this.fragment.openEnd?1:0),a=e.absoluteLineStart,i=a,r=e.block.children.length,l=i,o=r;for(;;){if(O.to-t>n){if(O.type.isAnonymous&&O.firstChild())continue;break}if(e.dontInject.add(O.tree),e.addNode(O.tree,O.from-t),O.type.is("Block")&&(0>eQ.indexOf(O.type.id)?(i=O.to-t,r=e.block.children.length):(i=l,r=o,l=O.to-t,o=e.block.children.length)),!O.nextSibling())break}for(;e.block.children.length>r;)e.block.children.pop(),e.block.positions.pop();return i-a}}let ed=(0,s.Gv)({"Blockquote/...":s.pJ.quote,HorizontalRule:s.pJ.contentSeparator,"ATXHeading1/... SetextHeading1/...":s.pJ.heading1,"ATXHeading2/... SetextHeading2/...":s.pJ.heading2,"ATXHeading3/...":s.pJ.heading3,"ATXHeading4/...":s.pJ.heading4,"ATXHeading5/...":s.pJ.heading5,"ATXHeading6/...":s.pJ.heading6,"Comment CommentBlock":s.pJ.comment,Escape:s.pJ.escape,Entity:s.pJ.character,"Emphasis/...":s.pJ.emphasis,"StrongEmphasis/...":s.pJ.strong,"Link/... Image/...":s.pJ.link,"OrderedList/... BulletList/...":s.pJ.list,"BlockQuote/...":s.pJ.quote,"InlineCode CodeText":s.pJ.monospace,URL:s.pJ.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":s.pJ.processingInstruction,"CodeInfo LinkLabel":s.pJ.labelName,LinkTitle:s.pJ.string,Paragraph:s.pJ.content}),eh=new G(new o.Lj(E).extend(ed),Object.keys(q).map(e=>q[e]),Object.keys(q).map(e=>j[e]),Object.keys(q),[(e,O)=>b(O)>=0,(e,O)=>m(O)>=0,(e,O)=>S(O)>=0,(e,O)=>Z(O,e,!0)>=0,(e,O)=>T(O,e,!0)>=0,(e,O)=>g(O,e,!0)>=0,(e,O)=>k(O,e,!0)>=0],h,Object.keys(ei).map(e=>ei[e]),Object.keys(ei),[]),ef={resolve:"Strikethrough",mark:"StrikethroughMark"},eu={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":s.pJ.strikethrough}},{name:"StrikethroughMark",style:s.pJ.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,O,t){if(126!=O||126!=e.char(t+1)||126==e.char(t+2))return -1;let n=e.slice(t-1,t),a=e.slice(t+2,t+3),i=/\s|^$/.test(n),r=/\s|^$/.test(a),l=en.test(n),o=en.test(a);return e.addDelimiter(ef,t,t+2,!r&&(!o||i||l),!i&&(!l||r||o))},after:"Emphasis"}]};function e$(e,O,t=0,n,a=0){let i=0,r=!0,l=-1,o=-1,s=!1,p=()=>{n.push(e.elt("TableCell",a+l,a+o,e.parser.parseInline(O.slice(l,o),a+l)))};for(let Q=t;Q-1)&&i++,r=!1,n&&(l>-1&&p(),n.push(e.elt("TableDelimiter",Q+a,Q+a+1))),l=o=-1),s=!s&&92==c}return l>-1&&(i++,n&&p()),i}function em(e,O){for(let t=O;tem(O.content,0)?new eg:null,endLeaf(e,O,t){if(t.parsers.some(e=>e instanceof eg)||!em(O.text,O.basePos))return!1;let n=e.scanLine(e.absoluteLineEnd+1).text;return eS.test(n)&&e$(e,O.text,O.basePos)==e$(e,n,O.basePos)},before:"SetextHeading"}]};class eZ{nextLine(){return!1}finish(e,O){return e.addLeafElement(O,e.elt("Task",O.start,O.start+O.content.length,[e.elt("TaskMarker",O.start,O.start+3),...e.parser.parseInline(O.content.slice(3),O.start+3)])),!0}}let eT={defineNodes:[{name:"Task",block:!0,style:s.pJ.list},{name:"TaskMarker",style:s.pJ.atom}],parseBlock:[{name:"TaskList",leaf:(e,O)=>/^\[[ xX]\]/.test(O.content)&&"ListItem"==e.parentType().name?new eZ:null,after:"SetextHeading"}]};function eb(e,O,t){return(n,a,i)=>{if(a!=e||n.char(i+1)==e)return -1;let r=[n.elt(t,i,i+1)];for(let l=i+1;l"}}),ek=eh.configure({props:[l.x0.add(e=>{if(!(!e.is("Block")||e.is("Document")))return(e,O)=>({from:O.doc.lineAt(e.from).to,to:e.to})}),l.uj.add({Document:()=>null}),l.pp.add({Document:e_})]});function ew(e){return new l.SQ(e_,e,[],"markdown")}let eY=ew(ek),eq=ek.configure([[eP,eT,eu],eX,ex,eW]),eV=ew(eq);class ev{constructor(e,O,t,n,a,i,r){this.node=e,this.from=O,this.to=t,this.spaceBefore=n,this.spaceAfter=a,this.type=i,this.item=r}blank(e,O=!0){let t=this.spaceBefore+("Blockquote"==this.node.name?">":"");if(null!=e){for(;t.length0;n--)t+=" ";return t+(O?this.spaceAfter:"")}marker(e,O){let t="OrderedList"==this.node.name?String(+ej(this.item,e)[2]+O):"";return this.spaceBefore+t+this.type+this.spaceAfter}}function eC(e,O){let t=[];for(let n=e;n&&"Document"!=n.name;n=n.parent)("ListItem"==n.name||"Blockquote"==n.name||"FencedCode"==n.name)&&t.push(n);let a=[];for(let i=t.length-1;i>=0;i--){let r=t[i],l,o=O.lineAt(r.from),s=r.from-o.from;if("FencedCode"==r.name)a.push(new ev(r,s,s,"","","",null));else if("Blockquote"==r.name&&(l=/^[ \t]*>( ?)/.exec(o.text.slice(s))))a.push(new ev(r,s,s+l[0].length,"",l[1],">",null));else if("ListItem"==r.name&&"OrderedList"==r.parent.name&&(l=/^([ \t]*)\d+([.)])([ \t]*)/.exec(o.text.slice(s)))){let p=l[3],Q=l[0].length;p.length>=4&&(p=p.slice(0,p.length-4),Q-=4),a.push(new ev(r.parent,s,s+Q,l[1],p,l[2],r))}else if("ListItem"==r.name&&"BulletList"==r.parent.name&&(l=/^([ \t]*)([-+*])([ \t]{1,4}\[[ xX]\])?([ \t]+)/.exec(o.text.slice(s)))){let c=l[4],d=l[0].length;c.length>4&&(c=c.slice(0,c.length-4),d-=4);let h=l[2];l[3]&&(h+=l[3].replace(/[xX]/," ")),a.push(new ev(r.parent,s,s+d,l[1],c,h,r))}}return a}function ej(e,O){return/^(\s*)(\d+)(?=[.)])/.exec(O.sliceString(e.from,e.from+10))}function eU(e,O,t,n=0){for(let a=-1,i=e;;){if("ListItem"==i.name){let r=ej(i,O),l=+r[2];if(a>=0){if(l!=a+1)return;t.push({from:i.from+r[1].length,to:i.from+r[0].length,insert:String(a+2+n)})}a=l}let o=i.nextSibling;if(!o)break;i=o}}let eR=({state:e,dispatch:O})=>{let t=(0,l.qz)(e),{doc:n}=e,a=null,r=e.changeByRange(O=>{if(!O.empty||!eV.isActiveAt(e,O.from))return a={range:O};let r=O.from,l=n.lineAt(r),o=eC(t.resolveInner(r,-1),n);for(;o.length&&o[o.length-1].from>r-l.from;)o.pop();if(!o.length)return a={range:O};let s=o[o.length-1];if(s.to-s.spaceAfter.length>r-l.from)return a={range:O};let p=r>=s.to-s.spaceAfter.length&&!/\S/.test(l.text.slice(s.to));if(s.item&&p){if(s.node.firstChild.to>=r||l.from>0&&!/[^\s>]/.test(n.lineAt(l.from-1).text)){let Q=o.length>1?o[o.length-2]:null,c,d="";Q&&Q.item?(c=l.from+Q.from,d=Q.marker(n,1)):c=l.from+(Q?Q.to:0);let h=[{from:c,to:r,insert:d}];return"OrderedList"==s.node.name&&eU(s.item,n,h,-2),Q&&"OrderedList"==Q.node.name&&eU(Q.item,n,h),{range:i.jT.cursor(c+d.length),changes:h}}{let f="";for(let u=0,$=o.length-2;u<=$;u++)f+=o[u].blank(u<$?o[u+1].from-f.length:null,u<$);return f+=e.lineBreak,{range:i.jT.cursor(r+f.length),changes:{from:l.from,insert:f}}}}if("Blockquote"==s.node.name&&p&&l.from){let m=n.lineAt(l.from-1),S=/>\s*$/.exec(m.text);if(S&&S.index==s.from){let g=e.changes([{from:m.from+S.index,to:m.to},{from:l.from+s.from,to:l.to}]);return{range:O.map(g),changes:g}}}let P=[];"OrderedList"==s.node.name&&eU(s.item,n,P);let Z=s.item&&s.item.from]*/.exec(l.text)[0].length>=s.to)for(let b=0,x=o.length-1;b<=x;b++)T+=b!=x||Z?o[b].blank(bl.from&&/\s/.test(l.text.charAt(X-l.from-1));)X--;return T=e.lineBreak+T,P.push({from:X,to:r,insert:T}),{range:i.jT.cursor(X+T.length),changes:P}});return!a&&(O(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0)};function eG(e){return"QuoteMark"==e.name||"ListMark"==e.name}let eA=({state:e,dispatch:O})=>{let t=(0,l.qz)(e),n=null,a=e.changeByRange(O=>{let a=O.from,{doc:r}=e;if(O.empty&&eV.isActiveAt(e,O.from)){let l=r.lineAt(a),o=eC(function(e,O){let t=e.resolveInner(O,-1),n=O;eG(t)&&(n=t.from,t=t.parent);for(let a;a=t.childBefore(n);)if(eG(a))n=a.from;else if("OrderedList"==a.name||"BulletList"==a.name)n=(t=a.lastChild).to;else break;return t}(t,a),r);if(o.length){let s=o[o.length-1],p=s.to-s.spaceAfter.length+(s.spaceAfter?1:0);if(a-l.from>p&&!/\S/.test(l.text.slice(p,a-l.from)))return{range:i.jT.cursor(l.from+p),changes:{from:l.from+p,to:a}};if(a-l.from==p){let Q=l.from+s.from;if(s.item&&s.node.from{if(e&&t){let n=null;if(e=/\S*/.exec(e)[0],(n="function"==typeof t?t(e):l.c6.matchLanguageName(t,e,!0))instanceof l.c6)return n.support?n.support.language.parser:l.Be.getSkippingParser(n.load());if(n)return n.parser}return O?O.parser:null}):void 0;return Q.push(function(e){let{codeParser:O,htmlParser:t}=e,n=(0,o.FE)((e,n)=>{let i=e.type.id;if(O&&(i==a.CodeBlock||i==a.FencedCode)){let r="";if(i==a.FencedCode){let l=e.node.getChild(a.CodeInfo);l&&(r=n.read(l.from,l.to))}let o=O(r);if(o)return{parser:o,overlay:e=>e.type.id==a.CodeText}}else if(t&&(i==a.HTMLBlock||i==a.HTMLTag))return{parser:t,overlay:function(e,O,t){let n=[];for(let a=e.firstChild,i=O;;a=a.nextSibling){let r=a?a.from:t;if(r>i&&n.push({from:i,to:r}),!a)break;i=a.to}return n}(e.node,e.from,e.to)};return null});return{wrap:n}}({codeParser:h,htmlParser:eE.language.parser})),s&&c.push(i.Wl.high(r.$f.of(eM))),new l.ri(ew(p.configure(Q)),c)}},76538:function(e,O,t){t.d(O,{M:function(){return r}});var n=t(59119);function a(e){return new n.ri(n.il.define(e))}function i(e){return t.e(1390).then(t.bind(t,21390)).then(O=>O.sql({dialect:O[e]}))}let r=[n.c6.of({name:"C",extensions:["c","h","ino"],load:()=>t.e(2750).then(t.bind(t,12750)).then(e=>e.cpp())}),n.c6.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:()=>t.e(2750).then(t.bind(t,12750)).then(e=>e.cpp())}),n.c6.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:()=>i("Cassandra")}),n.c6.of({name:"CSS",extensions:["css"],load:()=>Promise.resolve().then(t.bind(t,61426)).then(e=>e.css())}),n.c6.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:()=>Promise.resolve().then(t.bind(t,13804)).then(e=>e.html())}),n.c6.of({name:"Java",extensions:["java"],load:()=>t.e(4778).then(t.bind(t,44778)).then(e=>e.java())}),n.c6.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:()=>Promise.resolve().then(t.bind(t,58037)).then(e=>e.javascript())}),n.c6.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:()=>t.e(4732).then(t.bind(t,44732)).then(e=>e.json())}),n.c6.of({name:"JSX",extensions:["jsx"],load:()=>Promise.resolve().then(t.bind(t,58037)).then(e=>e.javascript({jsx:!0}))}),n.c6.of({name:"MariaDB SQL",load:()=>i("MariaSQL")}),n.c6.of({name:"Markdown",extensions:["md","markdown","mkd"],load:()=>Promise.resolve().then(t.bind(t,48825)).then(e=>e.markdown())}),n.c6.of({name:"MS SQL",load:()=>i("MSSQL")}),n.c6.of({name:"MySQL",load:()=>i("MySQL")}),n.c6.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:()=>t.e(2386).then(t.bind(t,12386)).then(e=>e.php())}),n.c6.of({name:"PLSQL",extensions:["pls"],load:()=>i("PLSQL")}),n.c6.of({name:"PostgreSQL",load:()=>i("PostgreSQL")}),n.c6.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:()=>t.e(8088).then(t.bind(t,28088)).then(e=>e.python())}),n.c6.of({name:"Rust",extensions:["rs"],load:()=>t.e(4920).then(t.bind(t,24920)).then(e=>e.rust())}),n.c6.of({name:"SQL",extensions:["sql"],load:()=>i("StandardSQL")}),n.c6.of({name:"SQLite",load:()=>i("SQLite")}),n.c6.of({name:"TSX",extensions:["tsx"],load:()=>Promise.resolve().then(t.bind(t,58037)).then(e=>e.javascript({jsx:!0,typescript:!0}))}),n.c6.of({name:"TypeScript",alias:["ts"],extensions:["ts"],load:()=>Promise.resolve().then(t.bind(t,58037)).then(e=>e.javascript({typescript:!0}))}),n.c6.of({name:"WebAssembly",extensions:["wat","wast"],load:()=>t.e(9972).then(t.bind(t,9972)).then(e=>e.wast())}),n.c6.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:()=>t.e(5122).then(t.bind(t,5122)).then(e=>e.xml())}),n.c6.of({name:"APL",extensions:["dyalog","apl"],load:()=>t.e(870).then(t.bind(t,90870)).then(e=>a(e.apl))}),n.c6.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:()=>t.e(8029).then(t.bind(t,58029)).then(e=>a(e.asciiArmor))}),n.c6.of({name:"ASN.1",extensions:["asn","asn1"],load:()=>t.e(3203).then(t.bind(t,93203)).then(e=>a(e.asn1({})))}),n.c6.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:()=>t.e(5648).then(t.bind(t,15648)).then(e=>a(e.asterisk))}),n.c6.of({name:"Brainfuck",extensions:["b","bf"],load:()=>t.e(2675).then(t.bind(t,9521)).then(e=>a(e.brainfuck))}),n.c6.of({name:"Cobol",extensions:["cob","cpy"],load:()=>t.e(8915).then(t.bind(t,68915)).then(e=>a(e.cobol))}),n.c6.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:()=>t.e(7917).then(t.bind(t,63821)).then(e=>a(e.csharp))}),n.c6.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:()=>t.e(2406).then(t.bind(t,72406)).then(e=>a(e.clojure))}),n.c6.of({name:"ClojureScript",extensions:["cljs"],load:()=>t.e(2406).then(t.bind(t,72406)).then(e=>a(e.clojure))}),n.c6.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:()=>t.e(2136).then(t.bind(t,62136)).then(e=>a(e.gss))}),n.c6.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:()=>t.e(889).then(t.bind(t,70889)).then(e=>a(e.cmake))}),n.c6.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:()=>t.e(9558).then(t.bind(t,29558)).then(e=>a(e.coffeeScript))}),n.c6.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:()=>t.e(1446).then(t.bind(t,61446)).then(e=>a(e.commonLisp))}),n.c6.of({name:"Cypher",extensions:["cyp","cypher"],load:()=>t.e(673).then(t.bind(t,20673)).then(e=>a(e.cypher))}),n.c6.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:()=>t.e(4323).then(t.bind(t,74323)).then(e=>a(e.cython))}),n.c6.of({name:"Crystal",extensions:["cr"],load:()=>t.e(2602).then(t.bind(t,62602)).then(e=>a(e.crystal))}),n.c6.of({name:"D",extensions:["d"],load:()=>t.e(1660).then(t.bind(t,11660)).then(e=>a(e.d))}),n.c6.of({name:"Dart",extensions:["dart"],load:()=>t.e(7917).then(t.bind(t,63821)).then(e=>a(e.dart))}),n.c6.of({name:"diff",extensions:["diff","patch"],load:()=>t.e(7475).then(t.bind(t,87475)).then(e=>a(e.diff))}),n.c6.of({name:"Dockerfile",filename:/^Dockerfile$/,load:()=>t.e(4812).then(t.bind(t,34812)).then(e=>a(e.dockerFile))}),n.c6.of({name:"DTD",extensions:["dtd"],load:()=>t.e(6991).then(t.bind(t,76991)).then(e=>a(e.dtd))}),n.c6.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:()=>t.e(4144).then(t.bind(t,24144)).then(e=>a(e.dylan))}),n.c6.of({name:"EBNF",load:()=>t.e(2040).then(t.bind(t,82040)).then(e=>a(e.ebnf))}),n.c6.of({name:"ECL",extensions:["ecl"],load:()=>t.e(7315).then(t.bind(t,37315)).then(e=>a(e.ecl))}),n.c6.of({name:"edn",extensions:["edn"],load:()=>t.e(2406).then(t.bind(t,72406)).then(e=>a(e.clojure))}),n.c6.of({name:"Eiffel",extensions:["e"],load:()=>t.e(7525).then(t.bind(t,87525)).then(e=>a(e.eiffel))}),n.c6.of({name:"Elm",extensions:["elm"],load:()=>t.e(8770).then(t.bind(t,28770)).then(e=>a(e.elm))}),n.c6.of({name:"Erlang",extensions:["erl"],load:()=>t.e(7590).then(t.bind(t,53482)).then(e=>a(e.erlang))}),n.c6.of({name:"Esper",load:()=>t.e(9607).then(t.bind(t,54050)).then(e=>a(e.esper))}),n.c6.of({name:"Factor",extensions:["factor"],load:()=>t.e(7001).then(t.bind(t,87001)).then(e=>a(e.factor))}),n.c6.of({name:"FCL",load:()=>t.e(7663).then(t.bind(t,77663)).then(e=>a(e.fcl))}),n.c6.of({name:"Forth",extensions:["forth","fth","4th"],load:()=>t.e(8393).then(t.bind(t,68393)).then(e=>a(e.forth))}),n.c6.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:()=>t.e(8283).then(t.bind(t,8283)).then(e=>a(e.fortran))}),n.c6.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:()=>t.e(6121).then(t.bind(t,96121)).then(e=>a(e.fSharp))}),n.c6.of({name:"Gas",extensions:["s"],load:()=>t.e(9781).then(t.bind(t,39781)).then(e=>a(e.gas))}),n.c6.of({name:"Gherkin",extensions:["feature"],load:()=>t.e(2542).then(t.bind(t,2542)).then(e=>a(e.gherkin))}),n.c6.of({name:"Go",extensions:["go"],load:()=>t.e(8910).then(t.bind(t,48910)).then(e=>a(e.go))}),n.c6.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:()=>t.e(3883).then(t.bind(t,23883)).then(e=>a(e.groovy))}),n.c6.of({name:"Haskell",extensions:["hs"],load:()=>t.e(5372).then(t.bind(t,95372)).then(e=>a(e.haskell))}),n.c6.of({name:"Haxe",extensions:["hx"],load:()=>t.e(3509).then(t.bind(t,63509)).then(e=>a(e.haxe))}),n.c6.of({name:"HXML",extensions:["hxml"],load:()=>t.e(3509).then(t.bind(t,63509)).then(e=>a(e.hxml))}),n.c6.of({name:"HTTP",load:()=>t.e(7558).then(t.bind(t,36395)).then(e=>a(e.http))}),n.c6.of({name:"IDL",extensions:["pro"],load:()=>t.e(2314).then(t.bind(t,22314)).then(e=>a(e.idl))}),n.c6.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:()=>t.e(9296).then(t.bind(t,59296)).then(e=>a(e.jsonld))}),n.c6.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load:()=>t.e(1084).then(t.bind(t,41084)).then(e=>a(e.jinja2))}),n.c6.of({name:"Julia",extensions:["jl"],load:()=>t.e(6092).then(t.bind(t,76092)).then(e=>a(e.julia))}),n.c6.of({name:"Kotlin",extensions:["kt"],load:()=>t.e(7917).then(t.bind(t,63821)).then(e=>a(e.kotlin))}),n.c6.of({name:"LESS",extensions:["less"],load:()=>t.e(2136).then(t.bind(t,62136)).then(e=>a(e.less))}),n.c6.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:()=>t.e(402).then(t.bind(t,60402)).then(e=>a(e.liveScript))}),n.c6.of({name:"Lua",extensions:["lua"],load:()=>t.e(3519).then(t.bind(t,3519)).then(e=>a(e.lua))}),n.c6.of({name:"mIRC",extensions:["mrc"],load:()=>t.e(5134).then(t.bind(t,65134)).then(e=>a(e.mirc))}),n.c6.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:()=>t.e(7213).then(t.bind(t,37213)).then(e=>a(e.mathematica))}),n.c6.of({name:"Modelica",extensions:["mo"],load:()=>t.e(305).then(t.bind(t,40305)).then(e=>a(e.modelica))}),n.c6.of({name:"MUMPS",extensions:["mps"],load:()=>t.e(7988).then(t.bind(t,17988)).then(e=>a(e.mumps))}),n.c6.of({name:"Mbox",extensions:["mbox"],load:()=>t.e(9121).then(t.bind(t,29121)).then(e=>a(e.mbox))}),n.c6.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:()=>t.e(8561).then(t.bind(t,78561)).then(e=>a(e.nginx))}),n.c6.of({name:"NSIS",extensions:["nsh","nsi"],load:()=>t.e(7370).then(t.bind(t,67370)).then(e=>a(e.nsis))}),n.c6.of({name:"NTriples",extensions:["nt","nq"],load:()=>t.e(3314).then(t.bind(t,43314)).then(e=>a(e.ntriples))}),n.c6.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:()=>t.e(7917).then(t.bind(t,63821)).then(e=>a(e.objectiveC))}),n.c6.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:()=>t.e(7917).then(t.bind(t,63821)).then(e=>a(e.objectiveCpp))}),n.c6.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:()=>t.e(6121).then(t.bind(t,96121)).then(e=>a(e.oCaml))}),n.c6.of({name:"Octave",extensions:["m"],load:()=>t.e(3283).then(t.bind(t,33283)).then(e=>a(e.octave))}),n.c6.of({name:"Oz",extensions:["oz"],load:()=>t.e(4796).then(t.bind(t,94796)).then(e=>a(e.oz))}),n.c6.of({name:"Pascal",extensions:["p","pas"],load:()=>t.e(4163).then(t.bind(t,44163)).then(e=>a(e.pascal))}),n.c6.of({name:"Perl",extensions:["pl","pm"],load:()=>t.e(4293).then(t.bind(t,94293)).then(e=>a(e.perl))}),n.c6.of({name:"Pig",extensions:["pig"],load:()=>t.e(3482).then(t.bind(t,33482)).then(e=>a(e.pig))}),n.c6.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:()=>t.e(7421).then(t.bind(t,37421)).then(e=>a(e.powerShell))}),n.c6.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:()=>t.e(9071).then(t.bind(t,69071)).then(e=>a(e.properties))}),n.c6.of({name:"ProtoBuf",extensions:["proto"],load:()=>t.e(8142).then(t.bind(t,78142)).then(e=>a(e.protobuf))}),n.c6.of({name:"Puppet",extensions:["pp"],load:()=>t.e(3993).then(t.bind(t,83993)).then(e=>a(e.puppet))}),n.c6.of({name:"Q",extensions:["q"],load:()=>t.e(228).then(t.bind(t,10228)).then(e=>a(e.q))}),n.c6.of({name:"R",alias:["rscript"],extensions:["r","R"],load:()=>t.e(7365).then(t.bind(t,57365)).then(e=>a(e.r))}),n.c6.of({name:"RPM Changes",load:()=>t.e(8171).then(t.bind(t,48171)).then(e=>a(e.rpmChanges))}),n.c6.of({name:"RPM Spec",extensions:["spec"],load:()=>t.e(8171).then(t.bind(t,48171)).then(e=>a(e.rpmSpec))}),n.c6.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],load:()=>t.e(4439).then(t.bind(t,24439)).then(e=>a(e.ruby))}),n.c6.of({name:"SAS",extensions:["sas"],load:()=>t.e(1770).then(t.bind(t,1770)).then(e=>a(e.sas))}),n.c6.of({name:"Sass",extensions:["sass"],load:()=>t.e(9809).then(t.bind(t,49809)).then(e=>a(e.sass))}),n.c6.of({name:"Scala",extensions:["scala"],load:()=>t.e(7917).then(t.bind(t,63821)).then(e=>a(e.scala))}),n.c6.of({name:"Scheme",extensions:["scm","ss"],load:()=>t.e(5879).then(t.bind(t,95879)).then(e=>a(e.scheme))}),n.c6.of({name:"SCSS",extensions:["scss"],load:()=>t.e(2136).then(t.bind(t,62136)).then(e=>a(e.sCSS))}),n.c6.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:()=>t.e(4879).then(t.bind(t,44879)).then(e=>a(e.shell))}),n.c6.of({name:"Sieve",extensions:["siv","sieve"],load:()=>t.e(9713).then(t.bind(t,9713)).then(e=>a(e.sieve))}),n.c6.of({name:"Smalltalk",extensions:["st"],load:()=>t.e(1873).then(t.bind(t,11873)).then(e=>a(e.smalltalk))}),n.c6.of({name:"Solr",load:()=>t.e(7762).then(t.bind(t,17762)).then(e=>a(e.solr))}),n.c6.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:()=>t.e(6121).then(t.bind(t,96121)).then(e=>a(e.sml))}),n.c6.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:()=>t.e(370).then(t.bind(t,70370)).then(e=>a(e.sparql))}),n.c6.of({name:"Spreadsheet",alias:["excel","formula"],load:()=>t.e(7601).then(t.bind(t,97601)).then(e=>a(e.spreadsheet))}),n.c6.of({name:"Squirrel",extensions:["nut"],load:()=>t.e(7917).then(t.bind(t,63821)).then(e=>a(e.squirrel))}),n.c6.of({name:"Stylus",extensions:["styl"],load:()=>t.e(8007).then(t.bind(t,28007)).then(e=>a(e.stylus))}),n.c6.of({name:"Swift",extensions:["swift"],load:()=>t.e(6062).then(t.bind(t,66062)).then(e=>a(e.swift))}),n.c6.of({name:"sTeX",load:()=>t.e(6732).then(t.bind(t,86732)).then(e=>a(e.stex))}),n.c6.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:()=>t.e(6732).then(t.bind(t,86732)).then(e=>a(e.stex))}),n.c6.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:()=>t.e(2119).then(t.bind(t,52119)).then(e=>a(e.verilog))}),n.c6.of({name:"Tcl",extensions:["tcl"],load:()=>t.e(3465).then(t.bind(t,43465)).then(e=>a(e.tcl))}),n.c6.of({name:"Textile",extensions:["textile"],load:()=>t.e(177).then(t.bind(t,90177)).then(e=>a(e.textile))}),n.c6.of({name:"TiddlyWiki",load:()=>t.e(4511).then(t.bind(t,34511)).then(e=>a(e.tiddlyWiki))}),n.c6.of({name:"Tiki wiki",load:()=>t.e(6471).then(t.bind(t,36471)).then(e=>a(e.tiki))}),n.c6.of({name:"TOML",extensions:["toml"],load:()=>t.e(6443).then(t.bind(t,96443)).then(e=>a(e.toml))}),n.c6.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:()=>t.e(1920).then(t.bind(t,71920)).then(e=>a(e.troff))}),n.c6.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:()=>t.e(6665).then(t.bind(t,66665)).then(e=>a(e.ttcn))}),n.c6.of({name:"TTCN_CFG",extensions:["cfg"],load:()=>t.e(9831).then(t.bind(t,29831)).then(e=>a(e.ttcnCfg))}),n.c6.of({name:"Turtle",extensions:["ttl"],load:()=>t.e(5815).then(t.bind(t,15815)).then(e=>a(e.turtle))}),n.c6.of({name:"Web IDL",extensions:["webidl"],load:()=>t.e(6692).then(t.bind(t,26692)).then(e=>a(e.webIDL))}),n.c6.of({name:"VB.NET",extensions:["vb"],load:()=>t.e(4212).then(t.bind(t,44212)).then(e=>a(e.vb))}),n.c6.of({name:"VBScript",extensions:["vbs"],load:()=>t.e(1650).then(t.bind(t,31650)).then(e=>a(e.vbScript))}),n.c6.of({name:"Velocity",extensions:["vtl"],load:()=>t.e(617).then(t.bind(t,90617)).then(e=>a(e.velocity))}),n.c6.of({name:"Verilog",extensions:["v"],load:()=>t.e(2119).then(t.bind(t,52119)).then(e=>a(e.verilog))}),n.c6.of({name:"VHDL",extensions:["vhd","vhdl"],load:()=>t.e(5819).then(t.bind(t,5819)).then(e=>a(e.vhdl))}),n.c6.of({name:"XQuery",extensions:["xy","xquery"],load:()=>t.e(5753).then(t.bind(t,35753)).then(e=>a(e.xQuery))}),n.c6.of({name:"Yacas",extensions:["ys"],load:()=>t.e(9232).then(t.bind(t,69232)).then(e=>a(e.yacas))}),n.c6.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:()=>t.e(2877).then(t.bind(t,82877)).then(e=>a(e.yaml))}),n.c6.of({name:"Z80",extensions:["z80"],load:()=>t.e(1053).then(t.bind(t,21053)).then(e=>a(e.z80))}),n.c6.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:()=>t.e(758).then(t.bind(t,30758)).then(e=>a(e.mscgen))}),n.c6.of({name:"X\xf9",extensions:["xu"],load:()=>t.e(758).then(t.bind(t,30758)).then(e=>a(e.xu))}),n.c6.of({name:"MsGenny",extensions:["msgenny"],load:()=>t.e(758).then(t.bind(t,30758)).then(e=>a(e.msgenny))})]}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/7466-1e76829814bac0c3.js b/static/web/_next/static/chunks/7466-b7072cca05b08a65.js similarity index 54% rename from static/web/_next/static/chunks/7466-1e76829814bac0c3.js rename to static/web/_next/static/chunks/7466-b7072cca05b08a65.js index cd2ce972b..0c66baca3 100644 --- a/static/web/_next/static/chunks/7466-1e76829814bac0c3.js +++ b/static/web/_next/static/chunks/7466-b7072cca05b08a65.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7466],{77466:function(e,t,n){let a;n.d(t,{me:function(){return V},FI:function(){return b},Q:function(){return _},L4:function(){return T},j$:function(){return I},ZA:function(){return m},g1:function(){return C},g8:function(){return M},db:function(){return p},ap:function(){return L},di:function(){return P},pT:function(){return F},hz:function(){return v},YW:function(){return U},We:function(){return D},RI:function(){return w},pH:function(){return H},Gt:function(){return k}});var o,i,r=n(67294),s=n(4480),c=n(23917),l=class{static async getConfig(){let e=await fetch("/api/config"),t=await e.json();return t}},u=n(64777),d=class{static async getChatHistory(e){let t=await (0,u.$l)("".concat("/api/chat","?accessToken=").concat(e));return t}static async registerUser(e){let t={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({displayName:e})},n=await (0,u.$l)("/api/chat/register",t);return n}},E=n(91951);class h{createAndConnect(e){let t=new URL(e);t.protocol="https:"===window.location.protocol?"wss:":"ws:",t.pathname="/ws",t.port="3000"===window.location.port?"8080":window.location.port,t.searchParams.append("accessToken",this.accessToken),console.debug("connecting to ",t.toString());let n=new WebSocket(t.toString());n.onopen=this.onOpen.bind(this),n.onerror=this.onError.bind(this),n.onmessage=this.onMessage.bind(this),this.websocket=n}onOpen(){this.websocketReconnectTimer&&clearTimeout(this.websocketReconnectTimer)}onError(e){console.error("Chat has been disconnected and is likely not working for you. It's possible you were removed from chat. If this is a server configuration issue, visit troubleshooting steps to resolve. https://owncast.online/docs/troubleshooting/#chat-is-disabled: ".concat("Socket error: ".concat(e))),this.websocket.close(),this.isShutdown||this.scheduleReconnect()}scheduleReconnect(){this.websocketReconnectTimer&&clearTimeout(this.websocketReconnectTimer),this.backOff*=2,this.websocketReconnectTimer=setTimeout(this.createAndConnect,5e3+Math.min(this.backOff,1e4))}shutdown(){this.isShutdown=!0,this.websocket.close()}onMessage(e){let t;let n=e.data.split("\n");for(let a=0;a!a.includes(e.id))}}),V=()=>{let e;let[t,n,o]=(0,c.e)(g),[u,f]=(0,s.FV)(p),v=(0,s.Zl)(T),[m,D]=(0,s.FV)(C),[F,P]=(0,s.FV)(w),U=(0,s.Zl)(M),[H,V]=(0,s.FV)(I),[Y,Z]=(0,s.FV)(b),J=(0,s.Zl)(_),j=(0,s.Zl)(L),B=(0,s.Zl)(k),[K,W]=(0,s.FV)(G),[,X]=(0,r.useState)(!1),[$,Q]=(0,r.useState)(!1),q=(e,t)=>{j({title:e,message:t})},x=e=>{n({type:e})},z=e=>{if(t.matches("loading")){x(i.Loaded);return}e.online&&t.matches("ready")?x(i.Online):e.online||t.matches("ready.offline")||x(i.Offline)},ee=async()=>{try{let e=await l.getConfig();D(e),j(null),Q(!0)}catch(t){q("Unable to reach Owncast server","Owncast cannot launch. Please make sure the Owncast server is running."),console.error("ClientConfigService -> getConfig() ERROR: \n".concat(t))}},et=async()=>{try{let e=await N.getStatus();P(e),X(!0);let{serverTime:t}=e,n=new Date(t).getTime()-Date.now();U(n),j(null)}catch(a){x(i.Fail),q("Unable to reach Owncast server","Owncast cannot launch. Please make sure the Owncast server is running."),console.error("serverStatusState -> getStatus() ERROR: \n".concat(a))}},en=async e=>{let t=(0,S.$o)(R);if(t){Z(t);return}try{x(i.NeedsRegister);let n=await d.registerUser(e),{accessToken:a,displayName:o,displayColor:r}=n;if(!a)return;f({...u,displayName:o,displayColor:r}),Z(a),(0,S.qQ)(R,a)}catch(s){x(i.Fail),console.error("ChatService -> registerUser() ERROR: \n".concat(s))}},ea=()=>{(0,S.qQ)(R,""),Z(null),en()},eo=e=>{let{ids:t,visible:n}=e;if(n){let a=K.filter(e=>!t.includes(e));W(a)}else{let o=[...K,...t];W(o)}},ei=e=>{switch(e.type){case E.C.ERROR_NEEDS_REGISTRATION:ea();break;case E.C.CONNECTED_USER_INFO:O(e,v,f),V(t=>[...t,e]);break;case E.C.CHAT:V(t=>[...t,e]);break;case E.C.NAME_CHANGE:A(e,H,V);break;case E.C.USER_JOINED:V(t=>[...t,e]);break;case E.C.SYSTEM:V(t=>[...t,e]);break;case E.C.CHAT_ACTION:V(t=>[...t,e]);break;case E.C.VISIBILITY_UPDATE:eo(e);break;default:console.error("Unknown socket message type: ",e.type)}},er=async()=>{try{let e=await d.getChatHistory(Y);V(t=>[...t,...e])}catch(t){console.error("ChatService -> getChatHistory() ERROR: \n".concat(t))}},es=async()=>{try{let{socketHostOverride:t}=m,n=t||window.location.toString();(e=new h(Y,"/ws",n)).handleMessage=ei,B(e)}catch(a){console.error("ChatService -> startChat() ERROR: \n".concat(a))}},ec=()=>{};return(0,r.useEffect)(()=>{try{if(window.configHydration){let e=JSON.parse(window.configHydration);D(e),Q(!0)}}catch(t){console.error("Error parsing config hydration",t)}try{if(window.statusHydration){let n=JSON.parse(window.statusHydration);P(n),X(!0)}}catch(a){console.error("error parsing status hydration",a)}},[]),(0,r.useEffect)(()=>{z(F)},[F]),(0,r.useEffect)(()=>{!m.chatDisabled&&Y&&$&&es()},[$,Y]),(0,r.useEffect)(()=>{ec()},[H]),(0,r.useEffect)(()=>(ee(),en(),et(),clearInterval(a),a=setInterval(()=>{et()},5e3),()=>{clearInterval(a)}),[]),(0,r.useEffect)(()=>{Y&&er()},[Y]),(0,r.useEffect)(()=>{o.onTransition(e=>{let t=(0,y.YR)(e.meta);J(t)})},[]),null}},91951:function(e,t,n){var a,o;n.d(t,{C:function(){return a}}),(o=a||(a={})).CHAT="CHAT",o.PING="PING",o.NAME_CHANGE="NAME_CHANGE",o.COLOR_CHANGE="COLOR_CHANGE",o.PONG="PONG",o.SYSTEM="SYSTEM",o.USER_JOINED="USER_JOINED",o.CHAT_ACTION="CHAT_ACTION",o.FEDIVERSE_ENGAGEMENT_FOLLOW="FEDIVERSE_ENGAGEMENT_FOLLOW",o.FEDIVERSE_ENGAGEMENT_LIKE="FEDIVERSE_ENGAGEMENT_LIKE",o.FEDIVERSE_ENGAGEMENT_REPOST="FEDIVERSE_ENGAGEMENT_REPOST",o.CONNECTED_USER_INFO="CONNECTED_USER_INFO",o.ERROR_USER_DISABLED="ERROR_USER_DISABLED",o.ERROR_NEEDS_REGISTRATION="ERROR_NEEDS_REGISTRATION",o.ERROR_MAX_CONNECTIONS_EXCEEDED="ERROR_MAX_CONNECTIONS_EXCEEDED",o.VISIBILITY_UPDATE="VISIBILITY-UPDATE"},77278:function(e,t,n){function a(e){let t="string"==typeof e?new Date(e):e;return(new Date-t)/864e5}function o(e){return Object.keys(e).reduce((t,n)=>{let a=e[n];return Object.assign(t,a),t},{})}n.d(t,{Xb:function(){return a},YR:function(){return o}})},72581:function(e,t,n){n.d(t,{$o:function(){return o},dA:function(){return a},qQ:function(){return i}});let a={username:"username",hasDisplayedNotificationModal:"HAS_DISPLAYED_NOTIFICATION_MODAL",userVisitCount:"USER_VISIT_COUNT"};function o(e){try{return localStorage.getItem(e)}catch(t){}return null}function i(e,t){try{return""!==t&&null!==t?localStorage.setItem(e,t):localStorage.removeItem(e),!0}catch(n){}return!1}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7466],{77466:function(e,t,n){let a;n.d(t,{me:function(){return V},FI:function(){return b},Q:function(){return _},L4:function(){return T},j$:function(){return I},ZA:function(){return m},g1:function(){return C},g8:function(){return M},db:function(){return p},ap:function(){return L},di:function(){return P},pT:function(){return F},hz:function(){return v},YW:function(){return U},We:function(){return D},RI:function(){return w},pH:function(){return H},Gt:function(){return k}});var o,i,r=n(67294),s=n(4480),c=n(23917),l=class{static async getConfig(){let e=await fetch("/api/config"),t=await e.json();return t}},u=n(64777),d=class{static async getChatHistory(e){let t=await (0,u.$l)("".concat("/api/chat","?accessToken=").concat(e));return t}static async registerUser(e){let t={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({displayName:e})},n=await (0,u.$l)("/api/chat/register",t);return n}},E=n(91951);class h{createAndConnect(e){let t=new URL(e);t.protocol="https:"===window.location.protocol?"wss:":"ws:",t.pathname="/ws",t.port="3000"===window.location.port?"8080":window.location.port,t.searchParams.append("accessToken",this.accessToken),console.debug("connecting to ",t.toString());let n=new WebSocket(t.toString());n.onopen=this.onOpen.bind(this),n.onerror=this.onError.bind(this),n.onmessage=this.onMessage.bind(this),this.websocket=n}onOpen(){this.websocketReconnectTimer&&clearTimeout(this.websocketReconnectTimer)}onError(e){console.error("Chat has been disconnected and is likely not working for you. It's possible you were removed from chat. If this is a server configuration issue, visit troubleshooting steps to resolve. https://owncast.online/docs/troubleshooting/#chat-is-disabled: ".concat("Socket error: ".concat(e))),this.websocket.close(),this.isShutdown||this.scheduleReconnect()}scheduleReconnect(){this.websocketReconnectTimer&&clearTimeout(this.websocketReconnectTimer),this.backOff*=2,this.websocketReconnectTimer=setTimeout(this.createAndConnect,5e3+Math.min(this.backOff,1e4))}shutdown(){this.isShutdown=!0,this.websocket.close()}onMessage(e){let t;let n=e.data.split("\n");for(let a=0;a{let{get:t}=e,n=t(_),a=t(m),o=t(b);return o&&n.chatAvailable&&a}}),P=(0,s.nZ)({key:"isChatAvailableSelector",get:e=>{let{get:t}=e,n=t(_),a=t(b);return a&&n.chatAvailable}}),U=(0,s.nZ)({key:"isOnlineSelector",get:e=>{let{get:t}=e,n=t(_),a=t(D);return n.videoAvailable||a}}),H=(0,s.nZ)({key:"visibleChatMessagesSelector",get:e=>{let{get:t}=e,n=t(I),a=t(G);return n.filter(e=>!a.includes(e.id))}}),V=()=>{let e;let[t,n,o]=(0,c.e)(g),[u,f]=(0,s.FV)(p),v=(0,s.Zl)(T),[m,D]=(0,s.FV)(C),[F,P]=(0,s.FV)(w),U=(0,s.Zl)(M),[H,V]=(0,s.FV)(I),[Y,Z]=(0,s.FV)(b),J=(0,s.Zl)(_),j=(0,s.Zl)(L),B=(0,s.Zl)(k),[K,W]=(0,s.FV)(G),[,X]=(0,r.useState)(!1),[$,Q]=(0,r.useState)(!1),q=(e,t)=>{j({title:e,message:t})},x=e=>{n({type:e})},z=e=>{if(t.matches("loading")){x(i.Loaded);return}e.online&&t.matches("ready")?x(i.Online):e.online||t.matches("ready.offline")||x(i.Offline)},ee=async()=>{try{let e=await l.getConfig();D(e),j(null),Q(!0)}catch(t){q("Unable to reach Owncast server","Owncast cannot launch. Please make sure the Owncast server is running."),console.error("ClientConfigService -> getConfig() ERROR: \n".concat(t))}},et=async()=>{try{let e=await N.getStatus();P(e),X(!0);let{serverTime:t}=e,n=new Date(t).getTime()-Date.now();U(n),j(null)}catch(a){x(i.Fail),q("Unable to reach Owncast server","Owncast cannot launch. Please make sure the Owncast server is running."),console.error("serverStatusState -> getStatus() ERROR: \n".concat(a))}},en=async e=>{let t=(0,S.$o)(R);if(t){Z(t);return}try{x(i.NeedsRegister);let n=await d.registerUser(e),{accessToken:a,displayName:o,displayColor:r}=n;if(!a)return;f({...u,displayName:o,displayColor:r}),Z(a),(0,S.qQ)(R,a)}catch(s){x(i.Fail),console.error("ChatService -> registerUser() ERROR: \n".concat(s))}},ea=()=>{(0,S.qQ)(R,""),Z(null),en()},eo=e=>{let{ids:t,visible:n}=e;if(n){let a=K.filter(e=>!t.includes(e));W(a)}else{let o=[...K,...t];W(o)}},ei=e=>{switch(e.type){case E.C.ERROR_NEEDS_REGISTRATION:ea();break;case E.C.CONNECTED_USER_INFO:O(e,v,f),V(t=>[...t,e]);break;case E.C.CHAT:V(t=>[...t,e]);break;case E.C.NAME_CHANGE:A(e,H,V);break;case E.C.USER_JOINED:V(t=>[...t,e]);break;case E.C.SYSTEM:V(t=>[...t,e]);break;case E.C.CHAT_ACTION:V(t=>[...t,e]);break;case E.C.VISIBILITY_UPDATE:eo(e);break;default:console.error("Unknown socket message type: ",e.type)}},er=async()=>{try{let e=await d.getChatHistory(Y);V(t=>[...t,...e])}catch(t){console.error("ChatService -> getChatHistory() ERROR: \n".concat(t))}},es=async()=>{try{let{socketHostOverride:t}=m,n=t||window.location.toString();(e=new h(Y,"/ws",n)).handleMessage=ei,B(e)}catch(a){console.error("ChatService -> startChat() ERROR: \n".concat(a))}},ec=()=>{};return(0,r.useEffect)(()=>{try{if(window.configHydration){let e=JSON.parse(window.configHydration);D(e),Q(!0)}}catch(t){console.error("Error parsing config hydration",t)}try{if(window.statusHydration){let n=JSON.parse(window.statusHydration);P(n),X(!0)}}catch(a){console.error("error parsing status hydration",a)}},[]),(0,r.useEffect)(()=>{z(F)},[F]),(0,r.useEffect)(()=>{!m.chatDisabled&&Y&&$&&es()},[$,Y]),(0,r.useEffect)(()=>{ec()},[H]),(0,r.useEffect)(()=>(ee(),en(),et(),clearInterval(a),a=setInterval(()=>{et()},5e3),()=>{clearInterval(a)}),[]),(0,r.useEffect)(()=>{Y&&er()},[Y]),(0,r.useEffect)(()=>{o.onTransition(e=>{let t=(0,y.YR)(e.meta);J(t)})},[]),null}},91951:function(e,t,n){var a,o;n.d(t,{C:function(){return a}}),(o=a||(a={})).CHAT="CHAT",o.PING="PING",o.NAME_CHANGE="NAME_CHANGE",o.COLOR_CHANGE="COLOR_CHANGE",o.PONG="PONG",o.SYSTEM="SYSTEM",o.USER_JOINED="USER_JOINED",o.CHAT_ACTION="CHAT_ACTION",o.FEDIVERSE_ENGAGEMENT_FOLLOW="FEDIVERSE_ENGAGEMENT_FOLLOW",o.FEDIVERSE_ENGAGEMENT_LIKE="FEDIVERSE_ENGAGEMENT_LIKE",o.FEDIVERSE_ENGAGEMENT_REPOST="FEDIVERSE_ENGAGEMENT_REPOST",o.CONNECTED_USER_INFO="CONNECTED_USER_INFO",o.ERROR_USER_DISABLED="ERROR_USER_DISABLED",o.ERROR_NEEDS_REGISTRATION="ERROR_NEEDS_REGISTRATION",o.ERROR_MAX_CONNECTIONS_EXCEEDED="ERROR_MAX_CONNECTIONS_EXCEEDED",o.VISIBILITY_UPDATE="VISIBILITY-UPDATE"},77278:function(e,t,n){function a(e){let t="string"==typeof e?new Date(e):e;return(new Date-t)/864e5}function o(e){return Object.keys(e).reduce((t,n)=>{let a=e[n];return Object.assign(t,a),t},{})}n.d(t,{Xb:function(){return a},YR:function(){return o}})},72581:function(e,t,n){n.d(t,{$o:function(){return o},dA:function(){return a},qQ:function(){return i}});let a={username:"username",hasDisplayedNotificationModal:"HAS_DISPLAYED_NOTIFICATION_MODAL",userVisitCount:"USER_VISIT_COUNT"};function o(e){try{return localStorage.getItem(e)}catch(t){}return null}function i(e,t){try{return""!==t&&null!==t?localStorage.setItem(e,t):localStorage.removeItem(e),!0}catch(n){}return!1}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/7590.ba8480ee2288c7da.js b/static/web/_next/static/chunks/7590.da33099f28f7343c.js similarity index 94% rename from static/web/_next/static/chunks/7590.ba8480ee2288c7da.js rename to static/web/_next/static/chunks/7590.da33099f28f7343c.js index 857ea2201..14fc09b41 100644 --- a/static/web/_next/static/chunks/7590.ba8480ee2288c7da.js +++ b/static/web/_next/static/chunks/7590.da33099f28f7343c.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7590],{53482:function(e,t,r){r.r(t),r.d(t,{erlang:function(){return N}});var n=["-type","-spec","-export_type","-opaque"],i=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],a=/[\->,;]/,o=["->",";",","],c=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],s=/[\+\-\*\/<>=\|:!]/,u=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],l=/[<\(\[\{]/,_=["<<","(","[","{"],f=/[>\)\]\}]/,p=["}","]",")",">>"],m=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],d=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],b=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,k=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function g(e,t,r){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),x(e.current(),r))return!0;e.backUp(e.current().length-1)}return!1}function h(e,t,r){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;01&&"fun"===e[t].type&&"fun"===e[t-1].token)return e.slice(0,t-1);switch(e[t].token){case"}":return E(e,{g:["{"]});case"]":return E(e,{i:["["]});case")":return E(e,{i:["("]});case">>":return E(e,{i:["<<"]});case"end":return E(e,{i:["begin","case","fun","if","receive","try"]});case",":return E(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return E(e,{r:["when"],m:["try","if","case","receive"]});case";":return E(e,{E:["case","fun","if","receive","try","when"]});case"catch":return E(e,{e:["try"]});case"of":return E(e,{e:["case"]});case"after":return E(e,{e:["receive","try"]});default:return e}}(n.tokenStack)),r){case"atom":case"boolean":return"atom";case"attribute":return"attribute";case"builtin":return"builtin";case"close_paren":case"colon":case"dot":case"open_paren":case"separator":default:return null;case"comment":return"comment";case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"macroName";case"number":return"number";case"operator":return"operator";case"record":return"bracket";case"string":return"string";case"type":return"def";case"variable":return"variable"}}function z(e,t,r,n){return{token:e,column:t,indent:r,type:n}}function W(e,t){var r=e.tokenStack.length,n=t||1;return!(r({tokenStack:[],in_string:!1,in_atom:!1}),token:function(e,t){if(t.in_string)return t.in_string=!y(e),S(t,e,"string");if(t.in_atom)return t.in_atom=!v(e),S(t,e,"atom");if(e.eatSpace())return S(t,e,"whitespace");if(!W(t)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return x(e.current(),n)?S(t,e,"type"):S(t,e,"attribute");var r=e.next();if("%"==r)return e.skipToEnd(),S(t,e,"comment");if(":"==r)return S(t,e,"colon");if("?"==r)return e.eatSpace(),e.eatWhile(b),S(t,e,"macro");if("#"==r)return e.eatSpace(),e.eatWhile(b),S(t,e,"record");if("$"==r)return"\\"!=e.next()||e.match(k)?S(t,e,"number"):S(t,e,"error");if("."==r)return S(t,e,"dot");if("'"==r){if(!(t.in_atom=!v(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),S(t,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return S(t,e,"function")}return S(t,e,"atom")}if('"'==r)return t.in_string=!y(e),S(t,e,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(r))return e.eatWhile(b),S(t,e,"variable");if(/[a-z_ß-öø-ÿ]/.test(r)){if(e.eatWhile(b),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),S(t,e,"fun");var w,z=e.current();return x(z,i)?S(t,e,"keyword"):x(z,c)?S(t,e,"operator"):e.match(/\s*\(/,!1)?x(z,d)&&(":"!=W(t).token||"erlang"==W(t,2).token)?S(t,e,"builtin"):x(z,m)?S(t,e,"guard"):S(t,e,"function"):":"==((w=e.match(/^\s*([^\s%])/,!1))?w[1]:"")?"erlang"==z?S(t,e,"builtin"):S(t,e,"function"):x(z,["true","false"])?S(t,e,"boolean"):S(t,e,"atom")}var E=/[0-9]/;return E.test(r)?(e.eatWhile(E),e.eat("#")?e.eatWhile(/[0-9a-zA-Z]/)||e.backUp(1):e.eat(".")&&(e.eatWhile(E)?!e.eat(/[eE]/)||(e.eat(/[-+]/)?e.eatWhile(E)||e.backUp(2):e.eatWhile(E)||e.backUp(1)):e.backUp(1)),S(t,e,"number")):g(e,l,_)?S(t,e,"open_paren"):g(e,f,p)?S(t,e,"close_paren"):h(e,a,o)?S(t,e,"separator"):h(e,s,u)?S(t,e,"operator"):S(t,e,null)},indent:function(e,t,r){var n,i,a,o,c,s,u,l=Z(s=t.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/))&&0===s.index?s[0]:"",f=W(e,1),m=W(e,2);if(e.in_string||e.in_atom)return null;if(!m)return 0;if("when"==f.token)return f.column+r.unit;if("when"===l&&"function"===m.type)return m.indent+r.unit;if("("===l&&"fun"===f.token)return f.column+3;if("catch"===l&&(u=U(e,["try"])))return u.column;if(x(l,["end","after","of"]))return(u=U(e,["begin","case","fun","if","receive","try"]))?u.column:null;else if(x(l,p))return(u=U(e,_))?u.column:null;else if(x(f.token,[",","|","||"])||x(l,[",","|","||"]))return(u=!!Z(n[i=A(n=e.tokenStack.slice(0,-1),"type",["open_paren"])])&&n[i])?u.column+u.token.length:r.unit;else return"->"==f.token?x(m.token,["receive","case","if","try"])?m.column+r.unit+r.unit:m.column+r.unit:x(f.token,_)?f.column+f.token.length:Z((o=A(a=e.tokenStack,"type",["open_paren","separator","keyword"]),c=A(a,"type",["operator"]),u=Z(o)&&Z(c)&&o,;]/,o=["->",";",","],c=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],s=/[\+\-\*\/<>=\|:!]/,u=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],l=/[<\(\[\{]/,_=["<<","(","[","{"],f=/[>\)\]\}]/,p=["}","]",")",">>"],m=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],d=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],b=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,k=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function g(e,t,r){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),x(e.current(),r))return!0;e.backUp(e.current().length-1)}return!1}function h(e,t,r){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;01&&"fun"===e[t].type&&"fun"===e[t-1].token)return e.slice(0,t-1);switch(e[t].token){case"}":return E(e,{g:["{"]});case"]":return E(e,{i:["["]});case")":return E(e,{i:["("]});case">>":return E(e,{i:["<<"]});case"end":return E(e,{i:["begin","case","fun","if","receive","try"]});case",":return E(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return E(e,{r:["when"],m:["try","if","case","receive"]});case";":return E(e,{E:["case","fun","if","receive","try","when"]});case"catch":return E(e,{e:["try"]});case"of":return E(e,{e:["case"]});case"after":return E(e,{e:["receive","try"]});default:return e}}(n.tokenStack)),r){case"atom":case"boolean":return"atom";case"attribute":return"attribute";case"builtin":return"builtin";case"close_paren":case"colon":case"dot":case"open_paren":case"separator":default:return null;case"comment":return"comment";case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"macroName";case"number":return"number";case"operator":return"operator";case"record":return"bracket";case"string":return"string";case"type":return"def";case"variable":return"variable"}}function z(e,t,r,n){return{token:e,column:t,indent:r,type:n}}function W(e,t){var r=e.tokenStack.length,n=t||1;return!(r({tokenStack:[],in_string:!1,in_atom:!1}),token:function(e,t){if(t.in_string)return t.in_string=!y(e),S(t,e,"string");if(t.in_atom)return t.in_atom=!v(e),S(t,e,"atom");if(e.eatSpace())return S(t,e,"whitespace");if(!W(t)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return x(e.current(),n)?S(t,e,"type"):S(t,e,"attribute");var r=e.next();if("%"==r)return e.skipToEnd(),S(t,e,"comment");if(":"==r)return S(t,e,"colon");if("?"==r)return e.eatSpace(),e.eatWhile(b),S(t,e,"macro");if("#"==r)return e.eatSpace(),e.eatWhile(b),S(t,e,"record");if("$"==r)return"\\"!=e.next()||e.match(k)?S(t,e,"number"):S(t,e,"error");if("."==r)return S(t,e,"dot");if("'"==r){if(!(t.in_atom=!v(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),S(t,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return S(t,e,"function")}return S(t,e,"atom")}if('"'==r)return t.in_string=!y(e),S(t,e,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(r))return e.eatWhile(b),S(t,e,"variable");if(/[a-z_ß-öø-ÿ]/.test(r)){if(e.eatWhile(b),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),S(t,e,"fun");var w,z=e.current();return x(z,i)?S(t,e,"keyword"):x(z,c)?S(t,e,"operator"):e.match(/\s*\(/,!1)?x(z,d)&&(":"!=W(t).token||"erlang"==W(t,2).token)?S(t,e,"builtin"):x(z,m)?S(t,e,"guard"):S(t,e,"function"):":"==((w=e.match(/^\s*([^\s%])/,!1))?w[1]:"")?"erlang"==z?S(t,e,"builtin"):S(t,e,"function"):x(z,["true","false"])?S(t,e,"boolean"):S(t,e,"atom")}var E=/[0-9]/;return E.test(r)?(e.eatWhile(E),e.eat("#")?e.eatWhile(/[0-9a-zA-Z]/)||e.backUp(1):e.eat(".")&&(e.eatWhile(E)?!e.eat(/[eE]/)||(e.eat(/[-+]/)?e.eatWhile(E)||e.backUp(2):e.eatWhile(E)||e.backUp(1)):e.backUp(1)),S(t,e,"number")):g(e,l,_)?S(t,e,"open_paren"):g(e,f,p)?S(t,e,"close_paren"):h(e,a,o)?S(t,e,"separator"):h(e,s,u)?S(t,e,"operator"):S(t,e,null)},indent:function(e,t,r){var n,i,a,o,c,s,u,l=Z(s=t.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/))&&0===s.index?s[0]:"",f=W(e,1),m=W(e,2);if(e.in_string||e.in_atom)return null;if(!m)return 0;if("when"==f.token)return f.column+r.unit;if("when"===l&&"function"===m.type)return m.indent+r.unit;if("("===l&&"fun"===f.token)return f.column+3;if("catch"===l&&(u=U(e,["try"])))return u.column;if(x(l,["end","after","of"]))return(u=U(e,["begin","case","fun","if","receive","try"]))?u.column:null;else if(x(l,p))return(u=U(e,_))?u.column:null;else if(x(f.token,[",","|","||"])||x(l,[",","|","||"]))return(i=A(n=e.tokenStack.slice(0,-1),"type",["open_paren"]),u=!!Z(n[i])&&n[i])?u.column+u.token.length:r.unit;else return"->"==f.token?x(m.token,["receive","case","if","try"])?m.column+r.unit+r.unit:m.column+r.unit:x(f.token,_)?f.column+f.token.length:Z((o=A(a=e.tokenStack,"type",["open_paren","separator","keyword"]),c=A(a,"type",["operator"]),u=Z(o)&&Z(c)&&ol&&(s-=l,s-=l,s-=c(2))}return Number(s)},p=function(t,e){var r=(void 0===e?{}:e).le,n=void 0!==r&&r;("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&t!=t)&&(t=0);for(var i=Math.ceil((t=c(t)).toString(2).length/8),a=new Uint8Array(new ArrayBuffer(i)),o=0;o=e.length&&c.call(e,function(e,r){return e===(s[r]?s[r]&t[a+r]:t[a+r])})}},92260:function(t,e,r){"use strict";r.d(e,{Hi:function(){return d},Jg:function(){return f},KL:function(){return l},_5:function(){return p},kS:function(){return c},lA:function(){return m},p7:function(){return h},ws:function(){return u},xz:function(){return g}});var n=r(58908),i=r.n(n),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},o=["video","audio","text"],s=["Video","Audio","Text"],u=function(t){return t?t.replace(/avc1\.(\d+)\.(\d+)/i,function(t,e,r){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(r).toString(16)).slice(-2)}):t},c=function(t){void 0===t&&(t="");var e=t.split(","),r=[];return e.forEach(function(t){var e;t=t.trim(),o.forEach(function(n){var i=a[n].exec(t.toLowerCase());if(i&&!(i.length<=1)){e=n;var o=t.substring(0,i[1].length),s=t.replace(o,"");r.push({type:o,details:s,mediaType:n})}}),e||r.push({type:t,details:"",mediaType:"unknown"})}),r},f=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var r=t.mediaGroups.AUDIO[e];if(!r)return null;for(var n in r){var i=r[n];if(i.default&&i.playlists)return c(i.playlists[0].attributes.CODECS)}return null},l=function(t){return void 0===t&&(t=""),a.audio.test(t.trim().toLowerCase())},p=function(t){if(t&&"string"==typeof t){var e,r=t.toLowerCase().split(",").map(function(t){return u(t.trim())}),n="video";1===r.length&&l(r[0])?n="audio":1===r.length&&(void 0===(e=r[0])&&(e=""),a.text.test(e.trim().toLowerCase()))&&(n="application");var i="mp4";return r.every(function(t){return a.mp4.test(t)})?i="mp4":r.every(function(t){return a.webm.test(t)})?i="webm":r.every(function(t){return a.ogg.test(t)})&&(i="ogg"),n+"/"+i+';codecs="'+t+'"'}},h=function(t){return void 0===t&&(t=""),i().MediaSource&&i().MediaSource.isTypeSupported&&i().MediaSource.isTypeSupported(p(t))||!1},d=function(t){return void 0===t&&(t=""),t.toLowerCase().split(",").every(function(t){t=t.trim();for(var e=0;er;){var a=t[r],o=0,s=0,u=t[++s];for(s++;128&u;)o=(127&u)<<7,u=t[s],s++;o+=127&u;for(var c=0;c>>0,f=e.subarray(u+4,u+8);if(0===c)break;var l=u+c;if(l>e.length){if(n)break;l=e.length}var p=e.subarray(u+8,l);(0,i.G3)(f,r[0])&&(1===r.length?s.push(p):s.push.apply(s,t(p,r.slice(1),n))),u=l}return s},u={EBML:(0,i.Ki)([26,69,223,163]),DocType:(0,i.Ki)([66,130]),Segment:(0,i.Ki)([24,83,128,103]),SegmentInfo:(0,i.Ki)([21,73,169,102]),Tracks:(0,i.Ki)([22,84,174,107]),Track:(0,i.Ki)([174]),TrackNumber:(0,i.Ki)([215]),DefaultDuration:(0,i.Ki)([35,227,131]),TrackEntry:(0,i.Ki)([174]),TrackType:(0,i.Ki)([131]),FlagDefault:(0,i.Ki)([136]),CodecID:(0,i.Ki)([134]),CodecPrivate:(0,i.Ki)([99,162]),VideoTrack:(0,i.Ki)([224]),AudioTrack:(0,i.Ki)([225]),Cluster:(0,i.Ki)([31,67,182,117]),Timestamp:(0,i.Ki)([231]),TimestampScale:(0,i.Ki)([42,215,177]),BlockGroup:(0,i.Ki)([160]),BlockDuration:(0,i.Ki)([155]),Block:(0,i.Ki)([161]),SimpleBlock:(0,i.Ki)([163])},c=[128,64,32,16,8,4,2,1],f=function(t){for(var e=1,r=0;r=r.length)return r.length;var a=l(r,n,!1);if((0,i.G3)(e.bytes,a.bytes))return n;var o=l(r,n+a.length);return t(e,r,n+o.length+o.value+a.length)},d=function t(e,r){r=Array.isArray(n=r)?n.map(function(t){return p(t)}):[p(n)],e=(0,i.Ki)(e);var n,a=[];if(!r.length)return a;for(var o=0;oe.length?e.length:c+u.value,d=e.subarray(c,f);(0,i.G3)(r[0],s.bytes)&&(1===r.length?a.push(d):a=a.concat(t(d,r.slice(1))));var m=s.length+u.length+d.length;o+=m}return a},m=r(68925),g=(0,i.Ki)([0,0,0,1]),y=(0,i.Ki)([0,0,1]),v=(0,i.Ki)([0,0,3]),b=function(t){for(var e=[],r=1;r>1&63),-1!==r.indexOf(c)&&(a=o+u),o+=u+("h264"===e?1:2)}return t.subarray(0,0)},T={webm:(0,i.Ki)([119,101,98,109]),matroska:(0,i.Ki)([109,97,116,114,111,115,107,97]),flac:(0,i.Ki)([102,76,97,67]),ogg:(0,i.Ki)([79,103,103,83]),ac3:(0,i.Ki)([11,119]),riff:(0,i.Ki)([82,73,70,70]),avi:(0,i.Ki)([65,86,73]),wav:(0,i.Ki)([87,65,86,69]),"3gp":(0,i.Ki)([102,116,121,112,51,103]),mp4:(0,i.Ki)([102,116,121,112]),fmp4:(0,i.Ki)([115,116,121,112]),mov:(0,i.Ki)([102,116,121,112,113,116]),moov:(0,i.Ki)([109,111,111,118]),moof:(0,i.Ki)([109,111,111,102])},w={aac:function(t){var e=(0,m.c)(t);return(0,i.G3)(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=(0,m.c)(t);return(0,i.G3)(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=d(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,T.webm)},mkv:function(t){var e=d(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,T.matroska)},mp4:function(t){return!(w["3gp"](t)||w.mov(t))&&(!!((0,i.G3)(t,T.mp4,{offset:4})||(0,i.G3)(t,T.fmp4,{offset:4})||(0,i.G3)(t,T.moof,{offset:4})||(0,i.G3)(t,T.moov,{offset:4}))||void 0)},mov:function(t){return(0,i.G3)(t,T.mov,{offset:4})},"3gp":function(t){return(0,i.G3)(t,T["3gp"],{offset:4})},ac3:function(t){var e=(0,m.c)(t);return(0,i.G3)(t,T.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return 71===t[0];for(var e=0;e+1880}},36722:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(58908),i=r.n(n),a=r(48764).lW;function o(t){for(var e=i().atob?i().atob(t):a.from(t,"base64").toString("binary"),r=new Uint8Array(e.length),n=0;n>4?i+20:i+10},o=function t(e,r){return(void 0===r&&(r=0),(e=(0,n.Ki)(e)).length-r<10||!(0,n.G3)(e,i,{offset:r}))?r:(r+=a(e,r),t(e,r))}},8485:function(t,e,r){"use strict";r.d(e,{t:function(){return a}});var n=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,i=/^application\/dash\+xml/i,a=function(t){return n.test(t)?"hls":i.test(t)?"dash":"application/vnd.videojs.vhs+json"===t?"vhs-json":null}},80779:function(t,e,r){"use strict";var n=r(49945),i=r.n(n),a=r(58908),o=r.n(a),s="http://example.com";e.Z=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=o().location&&o().location.href||"");var r="function"==typeof o().URL,n=/^\/\//.test(t),a=!o().location&&!/\/\//i.test(t);if(r?t=new(o()).URL(t,o().location||s):/\/\//i.test(t)||(t=i().buildAbsoluteURL(o().location&&o().location.href||"",t)),r){var u=new URL(e,t);return a?u.href.slice(s.length):n?u.href.slice(u.protocol.length):u.href}return i().buildAbsoluteURL(t,e)}},13490:function(t,e,r){"use strict";var n=r(58908);t.exports=function(t,e){return void 0===e&&(e=!1),function(r,i,a){if(r){t(r);return}if(i.statusCode>=400&&i.statusCode<=599){var o=a;if(e){if(n.TextDecoder){var s,u=(void 0===(s=i.headers&&i.headers["content-type"])&&(s=""),s.toLowerCase().split(";").reduce(function(t,e){var r=e.split("="),n=r[0],i=r[1];return"charset"===n.trim()?i.trim():t},"utf-8"));try{o=new TextDecoder(u).decode(a)}catch(c){}}else o=String.fromCharCode.apply(null,new Uint8Array(a))}t({cause:o});return}t(null,a)}}},9603:function(t,e,r){"use strict";var n=r(58908),i=r(10434),a=r(27376);u.httpHandler=r(13490);/** - * @license - * slighly modified parse-headers 2.0.2 - * Copyright (c) 2014 David Björklund - * Available under the MIT license - * - */ var o=function(t){var e={};return t&&t.trim().split("\n").forEach(function(t){var r=t.indexOf(":"),n=t.slice(0,r).trim().toLowerCase(),i=t.slice(r+1).trim();void 0===e[n]?e[n]=i:Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]}),e};function s(t,e,r){var n=t;return a(e)?(r=e,"string"==typeof t&&(n={uri:t})):n=i({},e,{uri:t}),n.callback=r,n}function u(t,e,r){return c(e=s(t,e,r))}function c(t){if(void 0===t.callback)throw Error("callback argument missing");var e,r,n,i=!1,a=function(e,r,n){i||(i=!0,t.callback(e,r,n))};function s(t){return clearTimeout(n),t instanceof Error||(t=Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,a(t,y)}function c(){if(!r){clearTimeout(n);var e,i=y,s=null;return 0!==(e=t.useXDR&&void 0===f.status?200:1223===f.status?204:f.status)?(i={body:function(){var t=void 0;if(t=f.response?f.response:f.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(r){}return null}(f),g)try{t=JSON.parse(t)}catch(e){}return t}(),statusCode:e,method:p,headers:{},url:l,rawRequest:f},f.getAllResponseHeaders&&(i.headers=o(f.getAllResponseHeaders()))):s=Error("Internal XMLHttpRequest Error"),a(s,i,i.body)}}var f=t.xhr||null;f||(f=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var l=f.url=t.uri||t.url,p=f.method=t.method||"GET",h=t.body||t.data,d=f.headers=t.headers||{},m=!!t.sync,g=!1,y={body:void 0,headers:{},statusCode:0,method:p,url:l,rawRequest:f};if("json"in t&&!1!==t.json&&(g=!0,d.accept||d.Accept||(d.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(d["content-type"]||d["Content-Type"]||(d["Content-Type"]="application/json"),h=JSON.stringify(!0===t.json?h:t.json))),f.onreadystatechange=function(){4===f.readyState&&setTimeout(c,0)},f.onload=c,f.onerror=s,f.onprogress=function(){},f.onabort=function(){r=!0},f.ontimeout=s,f.open(p,l,!m,t.username,t.password),m||(f.withCredentials=!!t.withCredentials),!m&&t.timeout>0&&(n=setTimeout(function(){if(!r){r=!0,f.abort("timeout");var t=Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",s(t)}},t.timeout)),f.setRequestHeader)for(e in d)d.hasOwnProperty(e)&&f.setRequestHeader(e,d[e]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(f.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(f),f.send(h||null),f}t.exports=u,t.exports.default=u,u.XMLHttpRequest=n.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r=e+r||e?new java.lang.String(t,e,r)+"":t}function g(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}l.prototype.parseFromString=function(t,e){var r=this.options,n=new f,i=r.domBuilder||new p,o=r.errorHandler,s=r.locator,c=r.xmlns||{},l=/\/x?html?$/.test(e),h=l?a.HTML_ENTITIES:a.XML_ENTITIES;return s&&i.setDocumentLocator(s),n.errorHandler=function(t,e,r){if(!t){if(e instanceof p)return e;t=e}var n={},i=t instanceof Function;function a(e){var a=t[e];!a&&i&&(a=2==t.length?function(r){t(e,r)}:t),n[e]=a&&function(t){a("[xmldom "+e+"] "+t+d(r))}||function(){}}return r=r||{},a("warning"),a("error"),a("fatalError"),n}(o,i,s),n.domBuilder=r.domBuilder||i,l&&(c[""]=u.HTML),c.xml=c.xml||u.XML,t&&"string"==typeof t?n.parse(t,c,h):n.errorHandler.error("invalid doc source"),i.doc},p.prototype={startDocument:function(){this.doc=new s().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,r,n){var i=this.doc,a=i.createElementNS(t,r||e),o=n.length;g(this,a),this.currentElement=a,this.locator&&h(this.locator,a);for(var s=0;s=0){for(var i=e.length-1;n"==t&&">"||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function G(t,e){if(e(t))return!0;if(t=t.firstChild)do if(G(t,e))return!0;while(t=t.nextSibling)}function F(){this.ownerDocument=this}function H(t,e,r,n){t&&t._inc++,r.namespaceURI===a.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function V(t,e,r){if(t&&t._inc){t._inc++;var n=e.childNodes;if(r)n[n.length++]=r;else{for(var i=e.firstChild,a=0;i;)n[a++]=i,i=i.nextSibling;n.length=a,delete n[n.length]}}}function q(t,e){var r=e.previousSibling,n=e.nextSibling;return r?r.nextSibling=n:t.firstChild=n,n?n.previousSibling=r:t.lastChild=r,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,V(t.ownerDocument,t),e}function z(t){return t&&t.nodeType===k.DOCUMENT_TYPE_NODE}function j(t){return t&&t.nodeType===k.ELEMENT_NODE}function K(t){return t&&t.nodeType===k.TEXT_NODE}function Y(t,e){var r=t.childNodes||[];if(i(r,j)||z(e))return!1;var n=i(r,z);return!(e&&n&&r.indexOf(n)>r.indexOf(e))}function $(t,e){var r=t.childNodes||[];if(i(r,function(t){return j(t)&&t!==e}))return!1;var n=i(r,z);return!(e&&n&&r.indexOf(n)>r.indexOf(e))}function W(t,e,r){var n=t.childNodes||[],a=e.childNodes||[];if(e.nodeType===k.DOCUMENT_FRAGMENT_NODE){var o=a.filter(j);if(o.length>1||i(a,K))throw new D(x,"More than one element or text in fragment");if(1===o.length&&!Y(t,r))throw new D(x,"Element in fragment can not be inserted before doctype")}if(j(e)&&!Y(t,r))throw new D(x,"Only one element can be added and only after doctype");if(z(e)){if(i(n,z))throw new D(x,"Only one doctype is allowed");var s=i(n,j);if(r&&n.indexOf(s)1||i(a,K))throw new D(x,"More than one element or text in fragment");if(1===o.length&&!$(t,r))throw new D(x,"Element in fragment can not be inserted before doctype")}if(j(e)&&!$(t,r))throw new D(x,"Only one element can be added and only after doctype");if(z(e)){if(i(n,function(t){return z(t)&&t!==r}))throw new D(x,"Only one doctype is allowed");var s=i(n,j);if(r&&n.indexOf(s)=0;N--){var S=i[N];if(""===S.prefix&&S.namespace===t.namespaceURI){o=S.namespace;break}}if(o!==t.namespaceURI)for(var N=i.length-1;N>=0;N--){var S=i[N];if(S.namespace===t.namespaceURI){S.prefix&&(l=S.prefix+":"+f);break}}}e.push("<",l);for(var A=0;A"),r&&/^script$/i.test(f))for(;c;)c.data?e.push(c.data):tm(c,e,r,n,i.slice()),c=c.nextSibling;else for(;c;)tm(c,e,r,n,i.slice()),c=c.nextSibling;e.push("")}else e.push("/>");return;case E:case w:for(var c=t.firstChild;c;)tm(c,e,r,n,i.slice()),c=c.nextSibling;return;case h:return td(e,t.name,t.value);case d:return e.push(t.data.replace(/[<&]/g,X).replace(/]]>/g,"]]>"));case m:return e.push("");case b:return e.push("");case T:var D=t.publicId,R=t.systemId;if(e.push("");else if(R&&"."!=R)e.push(" SYSTEM ",R,">");else{var C=t.internalSubset;C&&e.push(" [",C,"]"),e.push(">")}return;case v:return e.push("");case g:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function tg(t,e,r){t[e]=r}S.INVALID_STATE_ERR=(A[11]="Invalid state",11),S.SYNTAX_ERR=(A[12]="Syntax error",12),S.INVALID_MODIFICATION_ERR=(A[13]="Invalid modification",13),S.NAMESPACE_ERR=(A[14]="Invalid namespace",14),S.INVALID_ACCESS_ERR=(A[15]="Invalid access",15),D.prototype=Error.prototype,c(S,D),R.prototype={length:0,item:function(t){return this[t]||null},toString:function(t,e){for(var r=[],n=0;n0},lookupPrefix:function(t){for(var e=this;e;){var r=e._nsMap;if(r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===t)return n}e=e.nodeType==h?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var r=e._nsMap;if(r&&t in r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];e=e.nodeType==h?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},c(l,k),c(l,k.prototype),F.prototype={nodeName:"#document",nodeType:E,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==w){for(var r=t.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,e),r=n}return t}return Q(this,t,e),t.ownerDocument=this,null===this.documentElement&&t.nodeType===p&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),q(this,t)},replaceChild:function(t,e){Q(this,t,e,Z),t.ownerDocument=this,e&&this.removeChild(e),j(t)&&(this.documentElement=t)},importNode:function(t,e){return function t(e,r,n){var i;switch(r.nodeType){case p:(i=r.cloneNode(!1)).ownerDocument=e;case w:break;case h:n=!0}if(i||(i=r.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n)for(var a=r.firstChild;a;)i.appendChild(t(e,a,n)),a=a.nextSibling;return i}(this,t,e)},getElementById:function(t){var e=null;return G(this.documentElement,function(r){if(r.nodeType==p&&r.getAttribute("id")==t)return e=r,!0}),e},getElementsByClassName:function(t){var e=u(t);return new C(this,function(r){var n=[];return e.length>0&&G(r.documentElement,function(i){if(i!==r&&i.nodeType===p){var a=i.getAttribute("class");if(a){var o=t===a;if(!o){var s=u(a);o=e.every(function(t){return s&&-1!==s.indexOf(t)})}o&&n.push(i)}}}),n})},createElement:function(t){var e=new J;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new R,(e.attributes=new M)._ownerElement=e,e},createDocumentFragment:function(){var t=new tc;return t.ownerDocument=this,t.childNodes=new R,t},createTextNode:function(t){var e=new tr;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new tn;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new ti;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new tf;return r.ownerDocument=this,r.tagName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){var e=new tt;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new tu;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var r=new J,n=e.split(":"),i=r.attributes=new M;return r.childNodes=new R,r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.namespaceURI=t,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,i._ownerElement=r,r},createAttributeNS:function(t,e){var r=new tt,n=e.split(":");return r.ownerDocument=this,r.nodeName=e,r.name=e,r.namespaceURI=t,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,r}},f(F,k),J.prototype={nodeType:p,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+e,this.setAttributeNode(r)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){var e,r;return t.nodeType===w?this.insertBefore(t,null):(e=this,(r=t).parentNode&&r.parentNode.removeChild(r),r.parentNode=e,r.previousSibling=e.lastChild,r.nextSibling=null,r.previousSibling?r.previousSibling.nextSibling=r:e.firstChild=r,e.lastChild=r,V(e.ownerDocument,e,r),r)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r&&r.value||""},setAttributeNS:function(t,e,r){var n=this.ownerDocument.createAttributeNS(t,e);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new C(this,function(e){var r=[];return G(e,function(n){n!==e&&n.nodeType==p&&("*"===t||n.tagName==t)&&r.push(n)}),r})},getElementsByTagNameNS:function(t,e){return new C(this,function(r){var n=[];return G(r,function(i){i!==r&&i.nodeType===p&&("*"===t||i.namespaceURI===t)&&("*"===e||i.localName==e)&&n.push(i)}),n})}},F.prototype.getElementsByTagName=J.prototype.getElementsByTagName,F.prototype.getElementsByTagNameNS=J.prototype.getElementsByTagNameNS,f(J,k),tt.prototype.nodeType=h,f(tt,k),te.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw Error(A[x])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){r=this.data.substring(0,t)+r+this.data.substring(t+e),this.nodeValue=this.data=r,this.length=r.length}},f(te,k),tr.prototype={nodeName:"#text",nodeType:d,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},f(tr,te),tn.prototype={nodeName:"#comment",nodeType:b},f(tn,te),ti.prototype={nodeName:"#cdata-section",nodeType:m},f(ti,te),ta.prototype.nodeType=T,f(ta,k),to.prototype.nodeType=N,f(to,k),ts.prototype.nodeType=y,f(ts,k),tu.prototype.nodeType=g,f(tu,k),tc.prototype.nodeName="#document-fragment",tc.prototype.nodeType=w,f(tc,k),tf.prototype.nodeType=v,f(tf,k),tl.prototype.serializeToString=function(t,e,r){return tp.call(t,e,r)},k.prototype.toString=tp;try{Object.defineProperty&&(Object.defineProperty(C.prototype,"length",{get:function(){return U(this),this.$$length}}),Object.defineProperty(k.prototype,"textContent",{get:function(){return function t(e){switch(e.nodeType){case p:case w:var r=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&r.push(t(e)),e=e.nextSibling;return r.join("");default:return e.nodeValue}}(this)},set:function(t){switch(this.nodeType){case p:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),tg=function(t,e,r){t["$$"+e]=r})}catch(ty){}e.DocumentType=ta,e.DOMException=D,e.DOMImplementation=_,e.Element=J,e.Node=k,e.NodeList=R,e.XMLSerializer=tl},31045:function(t,e,r){var n=r(72167).freeze;e.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",times:"\xd7",divide:"\xf7",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),e.entityMap=e.HTML_ENTITIES},3969:function(t,e,r){var n=r(41146);n.DOMImplementation,n.XMLSerializer,e.DOMParser=r(86129).DOMParser},76925:function(t,e,r){var n=r(72167).NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=RegExp("^"+i.source+a.source+"*(?::"+i.source+a.source+"*)?$");function s(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function u(){}function c(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function f(t,e,r){for(var i=t.tagName,a=null,o=t.length;o--;){var s=t[o],u=s.qName,c=s.value,f=u.indexOf(":");if(f>0)var p=s.prefix=u.slice(0,f),h=u.slice(f+1),d="xmlns"===p&&h;else h=u,p=null,d="xmlns"===u&&"";s.localName=h,!1!==d&&(null==a&&(a={},l(r,r={})),r[d]=a[d]=c,s.uri=n.XMLNS,e.startPrefixMapping(d,c))}for(var o=t.length;o--;){var p=(s=t[o]).prefix;p&&("xml"===p&&(s.uri=n.XML),"xmlns"!==p&&(s.uri=r[p||""]))}var f=i.indexOf(":");f>0?(p=t.prefix=i.slice(0,f),h=t.localName=i.slice(f+1)):(p=null,h=t.localName=i);var m=t.uri=r[p||""];if(e.startElement(m,h,i,t),!t.closed)return t.currentNSMap=r,t.localNSMap=a,!0;if(e.endElement(m,h,i),a)for(p in a)Object.prototype.hasOwnProperty.call(a,p)&&e.endPrefixMapping(p)}function l(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}function p(){this.attributeNames={}}s.prototype=Error(),s.prototype.name=s.name,u.prototype={parse:function(t,e,r){var i=this.domBuilder;i.startDocument(),l(e,e={}),function(t,e,r,i,a){function o(t){var e,n=t.slice(1,-1);return n in r?r[n]:"#"!==n.charAt(0)?(a.error("entity not found:"+t),t):(e=parseInt(n.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}function u(e){if(e>b){var r=t.substring(b,e).replace(/&#?\w+;/g,o);g&&l(b),i.characters(r,0,e-b),b=e}}function l(e,r){for(;e>=d&&(r=m.exec(t));)d=(h=r.index)+r[0].length,g.lineNumber++;g.columnNumber=e-h+1}for(var h=0,d=0,m=/.*(?:\r\n?|\n)|.*$/g,g=i.locator,y=[{currentNSMap:e}],v={},b=0;;){try{var E=t.indexOf("<",b);if(E<0){if(!t.substr(b).match(/^\s*$/)){var T=i.doc,w=T.createTextNode(t.substr(b));T.appendChild(w),i.currentElement=w}return}switch(E>b&&u(E),t.charAt(E+1)){case"/":var N=t.indexOf(">",E+3),S=t.substring(E+2,N).replace(/[ \t\n\r]+$/g,""),A=y.pop();N<0?(S=t.substring(E+2).replace(/[\s<].*/,""),a.error("end tag name: "+S+" is not complete:"+A.tagName),N=E+1+S.length):S.match(/\s",e);if(n){var i=t.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i)return i[0].length,r.processingInstruction(i[1],i[2]),n+2}return -1}(t,E,i);break;case"!":g&&l(E),N=function(t,e,r,n){if("-"===t.charAt(e+2)){if("-"===t.charAt(e+3)){var i=t.indexOf("-->",e+4);if(i>e)return r.comment(t,e+4,i-e-4),i+3;n.error("Unclosed comment")}}else{if("CDATA["==t.substr(e+3,6)){var i=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,i-e-9),r.endCDATA(),i+3}var a=function(t,e){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=e,i.exec(t);r=i.exec(t);)if(n.push(r),r[1])return n}(t,e),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var s=a[1][0],u=!1,c=!1;o>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],c=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var f=a[o-1];return r.startDTD(s,u,c),r.endDTD(),f.index+f[0].length}}return -1}(t,E,i,a);break;default:g&&l(E);var D=new p,R=y[y.length-1].currentNSMap,N=function(t,e,r,i,a,o){function s(t,e,n){r.attributeNames.hasOwnProperty(t)&&o.fatalError("Attribute "+t+" redefined"),r.addValue(t,e,n)}for(var u,c,f=++e,l=0;;){var p=t.charAt(f);switch(p){case"=":if(1===l)u=t.slice(e,f),l=3;else if(2===l)l=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===l||1===l){if(1===l&&(o.warning('attribute value must after "="'),u=t.slice(e,f)),e=f+1,(f=t.indexOf(p,e))>0)s(u,c=t.slice(e,f).replace(/&#?\w+;/g,a),e-1),l=5;else throw Error("attribute value no end '"+p+"' match")}else if(4==l)s(u,c=t.slice(e,f).replace(/&#?\w+;/g,a),e),o.warning('attribute "'+u+'" missed start quot('+p+")!!"),e=f+1,l=5;else throw Error('attribute value must after "="');break;case"/":switch(l){case 0:r.setTagName(t.slice(e,f));case 5:case 6:case 7:l=7,r.closed=!0;case 4:case 1:case 2:break;default:throw Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==l&&r.setTagName(t.slice(e,f)),f;case">":switch(l){case 0:r.setTagName(t.slice(e,f));case 5:case 6:case 7:break;case 4:case 1:"/"===(c=t.slice(e,f)).slice(-1)&&(r.closed=!0,c=c.slice(0,-1));case 2:2===l&&(c=u),4==l?(o.warning('attribute "'+c+'" missed quot(")!'),s(u,c.replace(/&#?\w+;/g,a),e)):(n.isHTML(i[""])&&c.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),s(c,c,e));break;case 3:throw Error("attribute value missed!!")}return f;case"\x80":p=" ";default:if(p<=" ")switch(l){case 0:r.setTagName(t.slice(e,f)),l=6;break;case 1:u=t.slice(e,f),l=2;break;case 4:var c=t.slice(e,f).replace(/&#?\w+;/g,a);o.warning('attribute "'+c+'" missed quot(")!!'),s(u,c,e);case 5:l=6}else switch(l){case 2:r.tagName,n.isHTML(i[""])&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),s(u,u,e),e=f,l=1;break;case 5:o.warning('attribute space is required"'+u+'"!!');case 6:l=1,e=f;break;case 3:l=4,e=f;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}f++}}(t,E,D,R,o,a),C=D.length;if(!D.closed&&function(t,e,r,n){var i=n[r];return null==i&&((i=t.lastIndexOf(""))",e),o=t.substring(e+1,a);if(/[&<]/.test(o))return/^script$/i.test(r)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,n),i.characters(o,0,o.length),a)}return e+1}(t,N,D.tagName,o,i):N++}}catch(P){if(P instanceof s)throw P;a.error("element parse error: "+P),N=-1}N>b?b=N:u(Math.max(E,b)+1)}}(t,e,r,i,this.errorHandler),i.endDocument()}},p.prototype={setTagName:function(t){if(!o.test(t))throw Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!o.test(t))throw Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=u,e.ParseError=s},79742:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,a=u(t),o=a[0],s=a[1],c=new i((o+s)*3/4-s),f=0,l=s>0?o-4:o;for(r=0;r>16&255,c[f++]=e>>8&255,c[f++]=255&e;return 2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[f++]=255&e),1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],o=0,s=n-i;o>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}(t,o,o+16383>s?s:o+16383));return 1===i?a.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&a.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),a.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:function(t,e,r){"use strict";/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ var n=r(79742),i=r(80645),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return f(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!s.isEncoding(e))throw TypeError("Unknown encoding: "+e);var r=0|d(t,e),n=o(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(D(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return l(t)}(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(D(t,ArrayBuffer)||t&&D(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(D(t,SharedArrayBuffer)||t&&D(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);var i=function(t){if(s.isBuffer(t)){var e,r=0|h(t.length),n=o(r);return 0===n.length||t.copy(n,0,0,r),n}return void 0!==t.length?"number"!=typeof t.length||(e=t.length)!=e?o(0):l(t):"Buffer"===t.type&&Array.isArray(t.data)?l(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function f(t){return c(t),o(t<0?0:0|h(t))}function l(t){for(var e=t.length<0?0:0|h(t.length),r=o(e),n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function d(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||D(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return x(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return I(t).length;default:if(i)return n?-1:x(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,r){var i,a,o=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(a=r=+r)!=a&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return -1;r=t.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,i);throw TypeError("val must be string, number or Buffer")}function v(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;o=2,s/=2,u/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var f=-1;for(a=r;as&&(r=s-u),a=r;a>=0;a--){for(var l=!0,p=0;p239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:(192&(a=t[i+1]))==128&&(u=(31&c)<<6|63&a)>127&&(f=u);break;case 3:a=t[i+1],o=t[i+2],(192&a)==128&&(192&o)==128&&(u=(15&c)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function T(t,e,r,n,i,a){if(!s.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw RangeError("Index out of range")}function w(t,e,r,n,i,a){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function N(t,e,r,n,a){return e=+e,r>>>=0,a||w(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function S(t,e,r,n,a){return e=+e,r>>>=0,a||w(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}e.lW=s,e.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(r){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,r){return(c(t),t<=0)?o(t):void 0!==e?"string"==typeof r?o(t).fill(e,r):o(t).fill(e):o(t)},s.allocUnsafe=function(t){return f(t)},s.allocUnsafeSlow=function(t){return f(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(D(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),D(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);in.length?s.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else if(s.isBuffer(a))a.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=a.length}return n},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(t+=" ... "),""},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,i){if(D(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var a=i-n,o=r-e,u=Math.min(a,o),c=this.slice(n,i),f=t.slice(e,r),l=0;l>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,s,u,c,f,l,p=this.length-e;if((void 0===r||r>p)&&(r=p),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o>8,i.push(r%256),i.push(n);return i}(t,this.length-f),this,f,l);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t>>>=0,e||E(t,1,this.length),this[t]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||E(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||E(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},s.prototype.readInt8=function(t,e){return(t>>>=0,e||E(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||E(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||E(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||E(t,4,this.length),i.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||E(t,4,this.length),i.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||E(t,8,this.length),i.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||E(t,8,this.length),i.read(this,t,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;T(this,t,e,r,i,0)}var a=1,o=0;for(this[e]=255&t;++o>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;T(this,t,e,r,i,0)}var a=r-1,o=1;for(this[e+a]=255&t;--a>=0&&(o*=256);)this[e+a]=t/o&255;return e+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a>0)-s&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,r){return N(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return N(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return S(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return S(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&r<57344){if(!i){if(r>56319||o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function I(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function O(t,e,r,n){for(var i=0;i=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function D(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var R=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},89144:function(t,e,r){var n,i=void 0!==r.g?r.g:"undefined"!=typeof window?window:{},a=r(25893);"undefined"!=typeof document?n=document:(n=i["__GLOBAL_DOCUMENT_CACHE@4"])||(n=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),t.exports=n},58908:function(t,e,r){var n;n="undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},t.exports=n},80645:function(t,e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ e.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<>1,f=-7,l=r?i-1:0,p=r?-1:1,h=t[e+l];for(l+=p,a=h&(1<<-f)-1,h>>=-f,f+=s;f>0;a=256*a+t[e+l],l+=p,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+t[e+l],l+=p,f-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:(h?-1:1)*(1/0);o+=Math.pow(2,n),a-=c}return(h?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var o,s,u,c=8*a-i-1,f=(1<>1,p=23===i?5960464477539062e-23:0,h=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+l>=1?e+=p/u:e+=p*Math.pow(2,1-l),e*u>=2&&(o++,u/=2),o+l>=f?(s=0,o=f):o+l>=1?(s=(e*u-1)*Math.pow(2,i),o+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[r+h]=255&s,h+=d,s/=256,i-=8);for(o=o<0;t[r+h]=255&o,h+=d,o/=256,c-=8);t[r+h-d]|=128*m}},27376:function(t){t.exports=function(t){if(!t)return!1;var r=e.call(t);return"[object Function]"===r||"function"==typeof t&&"[object RegExp]"!==r||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString},27537:function(t,e){function r(t){if(t&&"object"==typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"==typeof t)return o[t];var r=String(t),a=n[r.toLowerCase()];if(a)return a;var a=i[r.toLowerCase()];return a||(1===r.length?r.charCodeAt(0):void 0)}r.isEventKey=function(t,e){if(t&&"object"==typeof t){var r=t.which||t.keyCode||t.charCode;if(null==r)return!1;if("string"==typeof e){var a=n[e.toLowerCase()];if(a)return a===r;var a=i[e.toLowerCase()];if(a)return a===r}else if("number"==typeof e)return e===r;return!1}};var n=(e=t.exports=r).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=e.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*! - * Programatically add the following - */ for(a=97;a<123;a++)n[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)n[a-48]=a;for(a=1;a<13;a++)n["f"+a]=a+111;for(a=0;a<10;a++)n["numpad "+a]=a+96;var o=e.names=e.title={};for(a in n)o[n[a]]=a;for(var s in i)n[s]=i[s]},9323:function(t,e,r){"use strict";r.d(e,{_b:function(){return d}});var n=r(94578),i=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var r=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(r,1),r>-1},e.trigger=function(t){var e=this.listeners[t];if(e){if(2==arguments.length)for(var r=e.length,n=0;n-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(i),c=function(t){var e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),r={};return e[1]&&(r.length=parseInt(e[1],10)),e[2]&&(r.offset=parseInt(e[2],10)),r},f=function(t){for(var e,r=t.split(RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},i=r.length;i--;)""!==r[i]&&((e=/([^=]*)=(.*)/.exec(r[i]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),n[e[0]]=e[1]);return n},l=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}(0,n.Z)(e,t);var r=e.prototype;return r.push=function(t){var e,r,n=this;if(0!==(t=t.trim()).length){if("#"!==t[0]){this.trigger("data",{type:"uri",uri:t});return}this.tagMappers.reduce(function(e,r){var n=r(t);return n===t?e:e.concat([n])},[t]).forEach(function(t){for(var i=0;i0&&(f.duration=t.duration),0===t.duration&&(f.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=c},key:function(){if(!t.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if("NONE"===t.attributes.METHOD){n=null;return}if(!t.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if("com.apple.streamingkeydelivery"===t.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:t.attributes};return}if("com.microsoft.playready"===t.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:t.attributes.URI};return}if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT){if(-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2))){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:(0,s.Z)(t.attributes.URI.split(",")[1])};return}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void 0!==t.attributes.IV&&(n.iv=t.attributes.IV)},"media-sequence":function(){if(!isFinite(t.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number});return}this.manifest.mediaSequence=t.number},"discontinuity-sequence":function(){if(!isFinite(t.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number});return}this.manifest.discontinuitySequence=t.number,y=t.number},"playlist-type":function(){if(!/VOD|EVENT/.test(t.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist});return}this.manifest.playlistType=t.playlistType},map:function(){r={},t.uri&&(r.uri=t.uri),t.byterange&&(r.byterange=t.byterange),n&&(r.key=n)},"stream-inf":function(){if(this.manifest.playlists=c,this.manifest.mediaGroups=this.manifest.mediaGroups||g,!t.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}f.attributes||(f.attributes={}),(0,a.Z)(f.attributes,t.attributes)},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||g,!(t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}var r=this.manifest.mediaGroups[t.attributes.TYPE];r[t.attributes["GROUP-ID"]]=r[t.attributes["GROUP-ID"]]||{},e=r[t.attributes["GROUP-ID"]],(o={default:/yes/i.test(t.attributes.DEFAULT)}).default?o.autoselect=!0:o.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(o.language=t.attributes.LANGUAGE),t.attributes.URI&&(o.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(o.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(o.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(o.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=o},discontinuity:function(){y+=1,f.discontinuity=!0,this.manifest.discontinuityStarts.push(c.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),f.dateTimeString=t.dateTimeString,f.dateTimeObject=t.dateTimeObject},targetduration:function(){if(!isFinite(t.duration)||t.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration});return}this.manifest.targetDuration=t.duration,h.call(this,this.manifest)},start:function(){if(!t.attributes||isNaN(t.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}},"cue-out":function(){f.cueOut=t.data},"cue-out-cont":function(){f.cueOutCont=t.data},"cue-in":function(){f.cueIn=t.data},skip:function(){this.manifest.skip=p(t.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",t.attributes,["SKIPPED-SEGMENTS"])},part:function(){var e=this;d=!0;var r=this.manifest.segments.length,n=p(t.attributes);f.parts=f.parts||[],f.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=b),b=n.byterange.offset+n.byterange.length);var i=f.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+i+" for segment #"+r,t.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(t,r){t.hasOwnProperty("lastPart")||e.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+r+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var e=this.manifest.serverControl=p(t.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),h.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var e=this.manifest.segments.length,r=p(t.attributes),n=r.type&&"PART"===r.type;f.preloadHints=f.preloadHints||[],f.preloadHints.push(r),r.byterange&&!r.byterange.hasOwnProperty("offset")&&(r.byterange.offset=n?b:0,n&&(b=r.byterange.offset+r.byterange.length));var i=f.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+i+" for segment #"+e,t.attributes,["TYPE","URI"]),r.type)for(var a=0;ae.timeline?1:-1})},I=function(t,e){for(var r=0;rr.timeline||r.segments.length&&t.timeline>r.segments[r.segments.length-1].timeline)&&t.discontinuitySequence--;return}r.segments[a].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),D({playlist:t,mediaSequence:r.segments[a].number})}})},C=function(t){var e=t.oldManifest,r=t.newManifest,n=e.playlists.concat(O(e)),i=r.playlists.concat(O(r));return r.timelineStarts=x([e.timelineStarts,r.timelineStarts]),R({oldPlaylists:n,newPlaylists:i,timelineStarts:r.timelineStarts}),r},U=function(t){return t&&t.uri+"-"+v(t.byterange)},M=function(t){return l(t.reduce(function(t,e){var r,n=e.attributes.id+(e.attributes.lang||"");return t[n]?(e.segments&&(e.segments[0]&&(e.segments[0].discontinuity=!0),(r=t[n].segments).push.apply(r,e.segments)),e.attributes.contentProtection&&(t[n].attributes.contentProtection=e.attributes.contentProtection)):(t[n]=e,t[n].attributes.timelineStarts=[]),t[n].attributes.timelineStarts.push({start:e.attributes.periodStart,timeline:e.attributes.periodStart}),t},{})).map(function(t){return t.discontinuityStarts=(t.segments||[]).reduce(function(t,e,r){return e.discontinuity&&t.push(r),t},[]),t})},L=function(t,e){var r=U(t.sidx),n=r&&e[r]&&e[r].sidx;return n&&N(t,n,t.sidx.resolvedUri),t},P=function(t,e){if(void 0===e&&(e={}),!Object.keys(e).length)return t;for(var r in t)t[r]=L(t[r],e);return t},B=function(t,e){var r,n=t.attributes,i=t.segments,a=t.sidx,o=t.mediaSequence,s=t.discontinuitySequence,u=t.discontinuityStarts,c={attributes:((r={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs})["PROGRAM-ID"]=1,r),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuitySequence:s,discontinuityStarts:u,timelineStarts:n.timelineStarts,mediaSequence:o,segments:i};return n.contentProtection&&(c.contentProtection=n.contentProtection),a&&(c.sidx=a),e&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c},_=function(t){var e,r=t.attributes,n=t.segments,i=t.mediaSequence,a=t.discontinuityStarts,o=t.discontinuitySequence;void 0===n&&(n=[{uri:r.baseUrl,timeline:r.periodStart,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,number:0}],r.duration=r.sourceDuration);var s=((e={NAME:r.id,BANDWIDTH:r.bandwidth})["PROGRAM-ID"]=1,e);return r.codecs&&(s.CODECS=r.codecs),{attributes:s,uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:r.baseUrl||"",targetDuration:r.duration,timelineStarts:r.timelineStarts,discontinuityStarts:a,discontinuitySequence:o,mediaSequence:i,segments:n}},k=function(t,e,r){void 0===e&&(e={}),void 0===r&&(r=!1);var n,i=t.reduce(function(t,i){var a=i.attributes.role&&i.attributes.role.value||"",o=i.attributes.lang||"",s=i.attributes.label||"main";o&&!i.attributes.label&&(s=""+i.attributes.lang+(a?" ("+a+")":"")),t[s]||(t[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var u=L(B(i,r),e);return t[s].playlists.push(u),void 0===n&&"main"===a&&((n=i).default=!0),t},{});return n||(i[Object.keys(i)[0]].default=!0),i},X=function(t){var e,r=t.attributes,n=t.segments,i=t.sidx,a=t.discontinuityStarts,o={attributes:((e={NAME:r.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:r.width,height:r.height},CODECS:r.codecs,BANDWIDTH:r.bandwidth})["PROGRAM-ID"]=1,e),uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:"",targetDuration:r.duration,discontinuityStarts:a,timelineStarts:r.timelineStarts,segments:n};return r.contentProtection&&(o.contentProtection=r.contentProtection),i&&(o.sidx=i),o},G=function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType},F=function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType},H=function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType},V=function(t,e){t.forEach(function(t){t.mediaSequence=0,t.discontinuitySequence=m(e,function(e){return e.timeline===t.timeline}),t.segments&&t.segments.forEach(function(t,e){t.number=e})})},q=function(t){return t?Object.keys(t).reduce(function(e,r){var n=t[r];return e.concat(n.playlists)},[]):[]},z=function(t){var e,r,n=t.dashPlaylists,i=t.locations,a=t.sidxMapping,o=void 0===a?{}:a,s=t.previousManifest;if(!n.length)return{};var u=n[0].attributes,c=u.sourceDuration,f=u.type,l=u.suggestedPresentationDelay,p=u.minimumUpdatePeriod,h=M(n.filter(G)).map(X),d=M(n.filter(F)),m=M(n.filter(H)),g=n.map(function(t){return t.attributes.captionServices}).filter(Boolean),y={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:((r={AUDIO:{},VIDEO:{}})["CLOSED-CAPTIONS"]={},r.SUBTITLES={},r),uri:"",duration:c,playlists:P(h,o)};p>=0&&(y.minimumUpdatePeriod=1e3*p),i&&(y.locations=i),"dynamic"===f&&(y.suggestedPresentationDelay=l);var v=0===y.playlists.length,b=d.length?k(d,o,v):null,E=m.length?(void 0===(e=o)&&(e={}),m.reduce(function(t,r){var n=r.attributes.lang||"text";return t[n]||(t[n]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),t[n].playlists.push(L(_(r),e)),t},{})):null,T=h.concat(q(b),q(E)),w=T.map(function(t){return t.timelineStarts});return y.timelineStarts=x(w),V(T,y.timelineStarts),b&&(y.mediaGroups.AUDIO.audio=b),E&&(y.mediaGroups.SUBTITLES.subs=E),g.length&&(y.mediaGroups["CLOSED-CAPTIONS"].cc=g.reduce(function(t,e){return e&&e.forEach(function(e){var r=e.channel,n=e.language;t[n]={autoselect:!1,default:!1,instreamId:r,language:n},e.hasOwnProperty("aspectRatio")&&(t[n].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(t[n].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(t[n]["3D"]=e["3D"])}),t},{})),s?C({oldManifest:s,newManifest:y}):y},j=function(t,e,r){var n=t.NOW,i=t.clientOffset,a=t.availabilityStartTime,o=t.timescale,s=t.periodStart,u=t.minimumUpdatePeriod;return Math.ceil((((n+i)/1e3+(void 0===u?0:u)-(a+(void 0===s?0:s)))*(void 0===o?1:o)-e)/r)},K=function(t,e){for(var r=t.type,n=t.minimumUpdatePeriod,i=void 0===n?0:n,a=t.media,o=void 0===a?"":a,s=t.sourceDuration,u=t.timescale,c=void 0===u?1:u,f=t.startNumber,l=void 0===f?1:f,p=t.periodStart,h=[],d=-1,m=0;md&&(d=b);var E=void 0;if(v<0){var T=m+1;E=T===e.length?"dynamic"===r&&i>0&&o.indexOf("$Number$")>0?j(t,d,y):(s*c-d)/y:(e[T].t-d)/y}else E=v+1;for(var w=l+h.length+E,N=l+h.length;N=i)?a:""+Array(i-a.length+1).join("0")+a})},W=function(t,e){var r={RepresentationID:t.id,Bandwidth:t.bandwidth||0},i=t.initialization,a=void 0===i?{sourceURL:"",range:""}:i,o=y({baseUrl:t.baseUrl,source:$(a.sourceURL,r),range:a.range});return(t.duration||e?t.duration?T(t):K(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]).map(function(e){r.Number=e.number,r.Time=e.time;var i=$(t.media||"",r),a=t.timescale||1,s=t.presentationTimeOffset||0,u=t.periodStart+(e.time-s)/a;return{uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:(0,n.Z)(t.baseUrl||"",i),map:o,number:e.number,presentationTime:u}})},Z=function(t,e){var r=t.baseUrl,n=t.initialization,i=void 0===n?{}:n,a=y({baseUrl:r,source:i.sourceURL,range:i.range}),o=y({baseUrl:r,source:e.media,range:e.mediaRange});return o.map=a,o},Q=function(t,e){var r,n=t.duration,i=t.segmentUrls,a=t.periodStart;if(!n&&!e||n&&e)throw Error(g.SEGMENT_TIME_UNSPECIFIED);var o=(void 0===i?[]:i).map(function(e){return Z(t,e)});return n&&(r=T(t)),e&&(r=K(t,e)),r.map(function(e,r){if(o[r]){var n=o[r],i=t.timescale||1,s=t.presentationTimeOffset||0;return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n.presentationTime=a+(e.time-s)/i,n}}).filter(function(t){return t})},J=function(t){var e,r,n=t.attributes,i=t.segmentInfo;i.template?(r=W,e=f(n,i.template)):i.base?(r=w,e=f(n,i.base)):i.list&&(r=Q,e=f(n,i.list));var a={attributes:n};if(!r)return a;var o=r(e,i.segmentTimeline);if(e.duration){var s=e,u=s.duration,c=s.timescale;e.duration=u/(void 0===c?1:c)}else o.length?e.duration=o.reduce(function(t,e){return Math.max(t,Math.ceil(e.duration))},0):e.duration=0;return a.attributes=e,a.segments=o,i.base&&e.indexRange&&(a.sidx=o[0],a.segments=[]),a},tt=function(t,e){return d(t.childNodes).filter(function(t){return t.tagName===e})},te=function(t){return t.textContent.trim()},tr=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var r=e.slice(1),n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(a||0)+3600*parseFloat(o||0)+60*parseFloat(s||0)+parseFloat(u||0)},tn={mediaPresentationDuration:function(t){return tr(t)},availabilityStartTime:function(t){var e;return e=t,/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)/1e3},minimumUpdatePeriod:function(t){return tr(t)},suggestedPresentationDelay:function(t){return tr(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return tr(t)},start:function(t){return tr(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},presentationTimeOffset:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?tr(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},ti=function(t){return t&&t.attributes?d(t.attributes).reduce(function(t,e){var r=tn[e.name]||tn.DEFAULT;return t[e.name]=r(e.value),t},{}):{}},ta={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},to=function(t,e){return e.length?h(t.map(function(t){return e.map(function(e){return(0,n.Z)(t,te(e))})})):t},ts=function(t){var e=tt(t,"SegmentTemplate")[0],r=tt(t,"SegmentList")[0],n=r&&tt(r,"SegmentURL").map(function(t){return f({tag:"SegmentURL"},ti(t))}),i=tt(t,"SegmentBase")[0],a=r||e,o=a&&tt(a,"SegmentTimeline")[0],s=r||i||e,u=s&&tt(s,"Initialization")[0],c=e&&ti(e);c&&u?c.initialization=u&&ti(u):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});var l={template:c,segmentTimeline:o&&tt(o,"S").map(function(t){return ti(t)}),list:r&&f(ti(r),{segmentUrls:n,initialization:ti(u)}),base:i&&f(ti(i),{initialization:ti(u)})};return Object.keys(l).forEach(function(t){l[t]||delete l[t]}),l},tu=function(t){var e=t.attributes,r=t.priorPeriodAttributes,n=t.mpdType;return"number"==typeof e.start?e.start:r&&"number"==typeof r.start&&"number"==typeof r.duration?r.start+r.duration:r||"static"!==n?null:0},tc=function(t,e){void 0===e&&(e={});var r=e,n=r.manifestUri,i=r.NOW,a=void 0===i?Date.now():i,o=r.clientOffset,u=tt(t,"Period");if(!u.length)throw Error(g.INVALID_NUMBER_OF_PERIOD);var c=tt(t,"Location"),l=ti(t),p=to([void 0===n?"":n],tt(t,"BaseURL"));l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=a,l.clientOffset=void 0===o?0:o,c.length&&(l.locations=c.map(te));var d=[];return u.forEach(function(t,e){var r=ti(t),n=d[e-1];r.start=tu({attributes:r,priorPeriodAttributes:n?n.attributes:null,mpdType:l.type}),d.push({node:t,attributes:r})}),{locations:l.locations,representationInfo:h(d.map(function(t,e){var r=to(p,tt(t.node,"BaseURL")),n=f(l,{periodStart:t.attributes.start});"number"==typeof t.attributes.duration&&(n.periodDuration=t.attributes.duration);var i=tt(t.node,"AdaptationSet"),a=ts(t.node);return h(i.map(function(t){var e,i,o=ti(t),u=to(r,tt(t,"BaseURL")),c=f(n,o,{role:ti(tt(t,"Role")[0])}),l="urn:scte:dash:cc:cea-608:2015"===(e=ti(tt(t,"Accessibility")[0])).schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(function(t){if(r=t,/^CC\d=/.test(t)){var e,r,n=t.split("=");e=n[0],r=n[1]}else/^CC\d$/.test(t)&&(e=t);return{channel:e,language:r}}):"urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(function(t){var e={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){var r=t.split("="),n=r[0],i=r[1];e.channel=n,e.language=t,(void 0===i?"":i).split(",").forEach(function(t){var r=t.split(":"),n=r[0],i=r[1];"lang"===n?e.language=i:"er"===n?e.easyReader=Number(i):"war"===n?e.aspectRatio=Number(i):"3D"===n&&(e["3D"]=Number(i))})}else e.language=t;return e.channel&&(e.channel="SERVICE"+e.channel),e}):void 0;l&&(c=f(c,{captionServices:l}));var p=tt(t,"Label")[0];p&&p.childNodes.length&&(c=f(c,{label:p.childNodes[0].nodeValue.trim()}));var d=tt(t,"ContentProtection").reduce(function(t,e){var r=ti(e);r.schemeIdUri&&(r.schemeIdUri=r.schemeIdUri.toLowerCase());var n=ta[r.schemeIdUri];if(n){t[n]={attributes:r};var i=tt(e,"cenc:pssh")[0];if(i){var a=te(i);t[n].pssh=a&&(0,s.Z)(a)}}return t},{});Object.keys(d).length&&(c=f(c,{contentProtection:d}));var m=ts(t),g=tt(t,"Representation"),y=f(a,m);return h(g.map((i=c,function(t){var e=to(u,tt(t,"BaseURL")),r=f(i,ti(t)),n=ts(t);return e.map(function(t){return{segmentInfo:f(y,n),attributes:f(r,{baseUrl:t})}})})))}))}))}},tf=function(t){if(""===t)throw Error(g.DASH_EMPTY_MANIFEST);var e,r,n=new u.DOMParser;try{r=(e=n.parseFromString(t,"application/xml"))&&"MPD"===e.documentElement.tagName?e.documentElement:null}catch(i){}if(!r||r&&r.getElementsByTagName("parsererror").length>0)throw Error(g.DASH_INVALID_XML);return r},tl=function(t){var e=tt(t,"UTCTiming")[0];if(!e)return null;var r=ti(e);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;default:throw Error(g.UNSUPPORTED_UTC_TIMING_SCHEME)}return r},tp=function(t,e){void 0===e&&(e={});var r=tc(tf(t),e);return z({dashPlaylists:r.representationInfo.map(J),locations:r.locations,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest})},th=function(t){return tl(tf(t))}},84221:function(t,e,r){var n=r(46894).getUint64;t.exports=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=e.getUint32(i),r.firstOffset=e.getUint32(i+4),i+=8):(r.earliestPresentationTime=n(t.subarray(i)),r.firstOffset=n(t.subarray(i+8)),i+=16),i+=2;var a=e.getUint16(i);for(i+=2;a>0;i+=12,a--)r.references.push({referenceType:(128&t[i])>>>7,referencedSize:2147483647&e.getUint32(i),subsegmentDuration:e.getUint32(i+4),startsWithSap:!!(128&t[i+8]),sapType:(112&t[i+8])>>>4,sapDeltaTime:268435455&e.getUint32(i+8)});return r}},51489:function(t){var e,r,n,i;e=function(t){return 9e4*t},r=function(t,e){return t*e},n=function(t){return t/9e4},i=function(t,e){return t/e},t.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:e,secondsToAudioTs:r,videoTsToSeconds:n,audioTsToSeconds:i,audioTsToVideoTs:function(t,r){return e(i(t,r))},videoTsToAudioTs:function(t,e){return r(n(t),e)},metadataTsToSeconds:function(t,e,r){return n(r?t:t-e)}}},46894:function(t){t.exports={getUint64:function(t){var e,r=new DataView(t.buffer,t.byteOffset,t.byteLength);return r.getBigUint64?(e=r.getBigUint64(0))59?e(r[1],r[2],0,r[4]):e(0,r[1],r[2],r[4]):null}function s(){this.values=i(null)}function u(t,e,r,n){var i=n?t.split(n):[t];for(var a in i)if("string"==typeof i[a]){var o=i[a].split(r);2===o.length&&e(o[0].trim(),o[1].trim())}}a.prototype=i(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,r){for(var n=0;n=0&&e<=100)&&(this.set(t,e),!0)}};var c=n.createElement&&n.createElement("textarea"),f={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},l={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},h={rt:"ruby"};function d(t,e){for(var r,n=t.document.createElement("div"),i=n,a=[];null!==(r=function(){if(!e)return null;var t,r=e.match(/^([^<]*)(<[^>]*>?)?/);return t=r[1]?r[1]:r[2],e=e.substr(t.length),t}());){if("<"===r[0]){if("/"===r[1]){a.length&&a[a.length-1]===r.substr(2).replace(">","")&&(a.pop(),i=i.parentNode);continue}var s,u,d,m,g=o(r.substr(1,r.length-2));if(g){m=t.document.createProcessingInstruction("timestamp",g),i.appendChild(m);continue}var y=r.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y||!(m=function(e,r){var n=f[e];if(!n)return null;var i=t.document.createElement(n),a=p[e];return a&&r&&(i[a]=r.trim()),i}(y[1],y[3]))||(u=i,h[(d=m).localName]&&h[d.localName]!==u.localName))continue;if(y[2]){var v=y[2].split(".");v.forEach(function(t){var e=/^bg_/.test(t),r=e?t.slice(3):t;if(l.hasOwnProperty(r)){var n=e?"background-color":"color",i=l[r];m.style[n]=i}}),m.className=v.join(" ")}a.push(y[1]),i.appendChild(m),i=m;continue}i.appendChild(t.document.createTextNode((s=r,c.innerHTML=s,s=c.textContent,c.textContent="",s)))}return n}var m=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function g(){}function y(t,e,r){g.call(this),this.cue=e,this.cueDiv=d(t,e.text);var n={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(n,this.cueDiv),this.div=t.document.createElement("div"),n={direction:function(t){var e=[],r="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var r=e.childNodes.length-1;r>=0;r--)t.push(e.childNodes[r])}for(n(e,t);r=function t(e){if(!e||!e.length)return null;var r=e.pop(),i=r.textContent||r.innerText;if(i){var a=i.match(/^.*(\n|\r)/);return a?(e.length=0,a[0]):i}return"ruby"===r.tagName?t(e):r.childNodes?(n(e,r),t(e)):void 0}(e);)for(var i=0;i=r[0]&&t<=r[1])return!0}return!1}(r.charCodeAt(i)))return"rtl";return"ltr"}(this.cueDiv),writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===e.align?"center":e.align,font:r.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var i=0;switch(e.positionAlign){case"start":i=e.position;break;case"center":i=e.position-e.size/2;break;case"end":i=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(i,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(i,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function v(t){var e,r,n,i;if(t.div){r=t.div.offsetHeight,n=t.div.offsetWidth,i=t.div.offsetTop;var a=(a=t.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();t=t.div.getBoundingClientRect(),e=a?Math.max(a[0]&&a[0].height||0,t.height/a.length):0}this.left=t.left,this.right=t.right,this.top=t.top||i,this.height=t.height||r,this.bottom=t.bottom||i+(t.height||r),this.width=t.width||n,this.lineHeight=void 0!==e?e:t.lineHeight}function b(){}g.prototype.applyStyles=function(t,e){for(var r in e=e||this.div,t)t.hasOwnProperty(r)&&(e.style[r]=t[r])},g.prototype.formatStyle=function(t,e){return 0===t?0:t+e},y.prototype=i(g.prototype),y.prototype.constructor=y,v.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},v.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},v.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},v.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},v.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},v.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},v.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,r=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||r}},b.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},b.convertCueToDOMTree=function(t,e){return t&&e?d(t,e):null},b.processCues=function(t,e,r){if(!t||!e||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",r.appendChild(n),!function(t){for(var e=0;e=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return -1;for(var e=t.track,r=e.textTrackList,n=0,i=0;il&&(f=(f<0?-1:1)*(Math.ceil(l/c)*c)),o<0&&(f+=""===a.vertical?r.height:r.width,s=s.reverse()),i.move(p,f)}else{var h=i.lineHeight/r.height*100;switch(a.lineAlign){case"center":o-=h/2;break;case"end":o-=h}switch(a.vertical){case"":e.applyStyles({top:e.formatStyle(o,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(o,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(o,"%")})}s=["+y","-x","+x","-y"],i=new v(e)}var d=function(t,e){for(var i,a=new v(t),o=1,s=0;su&&(i=new v(t),o=u),t=new v(a)}return i||a}(i,s);e.move(d.toCSSCompatValues(r))}(0,r,o,a),i.displayState=r.div,a.push(v.getSimpleBoxPosition(r))}()},b.Parser=function(t,e,r){r||(r=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=r||new TextDecoder("utf8"),this.regionList=[]},b.Parser.prototype={reportOrThrowError:function(t){if(t instanceof a)this.onparsingerror&&this.onparsingerror(t);else throw t},parse:function(t){var e=this;function r(){for(var t=e.buffer,r=0;r")){e.cue.id=i;continue}case"CUE":try{!function(t,e,r){var n=t;function i(){var e=o(t);if(null===e)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function c(){t=t.replace(/^\s+/,"")}if(c(),e.startTime=i(),c(),"-->"!==t.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+n);t=t.substr(3),c(),e.endTime=i(),c(),function(t,e){var n=new s;u(t,function(t,e){switch(t){case"region":for(var i=r.length-1;i>=0;i--)if(r[i].id===e){n.set(t,r[i].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var a=e.split(","),o=a[0];n.integer(t,o),n.percent(t,o)&&n.set("snapToLines",!1),n.alt(t,o,["auto"]),2===a.length&&n.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=e.split(","),n.percent(t,a[0]),2===a.length&&n.alt("positionAlign",a[1],["start","center","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","center","end","left","right"])}},/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");try{e.line=n.get("line","auto")}catch(i){}e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100);try{e.align=n.get("align","center")}catch(a){e.align=n.get("align","middle")}try{e.position=n.get("position","auto")}catch(o){e.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}(i,e.cue,e.regionList)}catch(p){e.reportOrThrowError(p),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var h=-1!==i.indexOf("-->");if(!i||h&&(f=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+="\n"),e.cue.text+=i.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":i||(e.state="ID");continue}}catch(d){e.reportOrThrowError(d),"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new a(a.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},t.exports=b},22230:function(t){var e={"":1,lr:1,rl:1},r={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function n(t){return"string"==typeof t&&!!r[t.toLowerCase()]&&t.toLowerCase()}function i(t,r,i){this.hasBeenReset=!1;var a="",o=!1,s=t,u=r,c=i,f=null,l="",p=!0,h="auto",d="start",m="auto",g="auto",y=100,v="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return a},set:function(t){a=""+t}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(t){o=!!t}},startTime:{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t)throw TypeError("Start time must be set to a number.");s=t,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return u},set:function(t){if("number"!=typeof t)throw TypeError("End time must be set to a number.");u=t,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(t){c=""+t,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return f},set:function(t){f=t,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return l},set:function(t){var r="string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase();if(!1===r)throw SyntaxError("Vertical: an invalid or illegal direction string was specified.");l=r,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(t){p=!!t,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return h},set:function(t){if("number"!=typeof t&&"auto"!==t)throw SyntaxError("Line: an invalid number or illegal string was specified.");h=t,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return d},set:function(t){var e=n(t);e?(d=e,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return m},set:function(t){if(t<0||t>100)throw Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(t){var e=n(t);e?(g=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(t){if(t<0||t>100)throw Error("Size must be between 0 and 100.");y=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return v},set:function(t){var e=n(t);if(!e)throw SyntaxError("align: an invalid or illegal alignment string was specified.");v=e,this.hasBeenReset=!0}}}),this.displayState=void 0}i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=i},13710:function(t){var e={"":!0,up:!0};function r(t){return"number"==typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,n=3,i=0,a=100,o=0,s=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!r(e))throw Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return n},set:function(t){if("number"!=typeof t)throw TypeError("Lines must be set to a number.");n=t}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!r(t))throw Error("RegionAnchorX must be between 0 and 100.");a=t}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(t){if(!r(t))throw Error("RegionAnchorY must be between 0 and 100.");i=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!r(t))throw Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!r(t))throw Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return u},set:function(t){var r="string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase();!1===r?console.warn("Scroll: an invalid or illegal string was specified."):u=r}}})}},5647:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(89611),i=r(78814);function a(t,e,r){return(a=(0,i.Z)()?Reflect.construct.bind():function(t,e,r){var i=[null];i.push.apply(i,e);var a=new(Function.bind.apply(t,i));return r&&(0,n.Z)(a,r.prototype),a}).apply(null,arguments)}},94578:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});var n=r(89611);function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,n.Z)(t,e)}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/7902-522e54232e4e108b.js b/static/web/_next/static/chunks/7902-522e54232e4e108b.js new file mode 100644 index 000000000..bc0224a44 --- /dev/null +++ b/static/web/_next/static/chunks/7902-522e54232e4e108b.js @@ -0,0 +1,14 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7902],{60562:function(t,e,r){"use strict";r.d(e,{Au:function(){return s},G3:function(){return g},Ki:function(){return u},d3:function(){return h},hL:function(){return p},lx:function(){return m},qX:function(){return d},tm:function(){return l}});var n,i,a=r(58908),o=r.n(a),s=function(t){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},u=function(t){return t instanceof Uint8Array?t:(Array.isArray(t)||s(t)||t instanceof ArrayBuffer||(t="number"!=typeof t||"number"==typeof t&&t!=t?0:[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0))},c=o().BigInt||Number,f=[c("0x1"),c("0x100"),c("0x10000"),c("0x1000000"),c("0x100000000"),c("0x10000000000"),c("0x1000000000000"),c("0x100000000000000"),c("0x10000000000000000")];n=new Uint16Array([65484]),255===(i=new Uint8Array(n.buffer,n.byteOffset,n.byteLength))[0]||i[0];var l=function(t,e){var r=void 0===e?{}:e,n=r.signed,i=r.le,a=void 0!==i&&i;t=u(t);var o=a?"reduce":"reduceRight",s=(t[o]?t[o]:Array.prototype[o]).call(t,function(e,r,n){var i=a?n:Math.abs(n+1-t.length);return e+c(r)*f[i]},c(0));if(void 0!==n&&n){var l=f[t.length]/c(2)-c(1);(s=c(s))>l&&(s-=l,s-=l,s-=c(2))}return Number(s)},p=function(t,e){var r=(void 0===e?{}:e).le,n=void 0!==r&&r;("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&t!=t)&&(t=0);for(var i=Math.ceil((t=c(t)).toString(2).length/8),a=new Uint8Array(new ArrayBuffer(i)),o=0;o=e.length&&c.call(e,function(e,r){return e===(s[r]?s[r]&t[a+r]:t[a+r])})}},92260:function(t,e,r){"use strict";r.d(e,{Hi:function(){return d},Jg:function(){return f},KL:function(){return l},_5:function(){return p},kS:function(){return c},lA:function(){return m},p7:function(){return h},ws:function(){return u},xz:function(){return g}});var n=r(58908),i=r.n(n),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},o=["video","audio","text"],s=["Video","Audio","Text"],u=function(t){return t?t.replace(/avc1\.(\d+)\.(\d+)/i,function(t,e,r){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(r).toString(16)).slice(-2)}):t},c=function(t){void 0===t&&(t="");var e=t.split(","),r=[];return e.forEach(function(t){var e;t=t.trim(),o.forEach(function(n){var i=a[n].exec(t.toLowerCase());if(i&&!(i.length<=1)){e=n;var o=t.substring(0,i[1].length),s=t.replace(o,"");r.push({type:o,details:s,mediaType:n})}}),e||r.push({type:t,details:"",mediaType:"unknown"})}),r},f=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var r=t.mediaGroups.AUDIO[e];if(!r)return null;for(var n in r){var i=r[n];if(i.default&&i.playlists)return c(i.playlists[0].attributes.CODECS)}return null},l=function(t){return void 0===t&&(t=""),a.audio.test(t.trim().toLowerCase())},p=function(t){if(t&&"string"==typeof t){var e,r=t.toLowerCase().split(",").map(function(t){return u(t.trim())}),n="video";1===r.length&&l(r[0])?n="audio":1===r.length&&(void 0===(e=r[0])&&(e=""),a.text.test(e.trim().toLowerCase()))&&(n="application");var i="mp4";return r.every(function(t){return a.mp4.test(t)})?i="mp4":r.every(function(t){return a.webm.test(t)})?i="webm":r.every(function(t){return a.ogg.test(t)})&&(i="ogg"),n+"/"+i+';codecs="'+t+'"'}},h=function(t){return void 0===t&&(t=""),i().MediaSource&&i().MediaSource.isTypeSupported&&i().MediaSource.isTypeSupported(p(t))||!1},d=function(t){return void 0===t&&(t=""),t.toLowerCase().split(",").every(function(t){t=t.trim();for(var e=0;er;){var a=t[r],o=0,s=0,u=t[++s];for(s++;128&u;)o=(127&u)<<7,u=t[s],s++;o+=127&u;for(var c=0;c>>0,f=e.subarray(u+4,u+8);if(0===c)break;var l=u+c;if(l>e.length){if(n)break;l=e.length}var p=e.subarray(u+8,l);(0,i.G3)(f,r[0])&&(1===r.length?s.push(p):s.push.apply(s,t(p,r.slice(1),n))),u=l}return s},u={EBML:(0,i.Ki)([26,69,223,163]),DocType:(0,i.Ki)([66,130]),Segment:(0,i.Ki)([24,83,128,103]),SegmentInfo:(0,i.Ki)([21,73,169,102]),Tracks:(0,i.Ki)([22,84,174,107]),Track:(0,i.Ki)([174]),TrackNumber:(0,i.Ki)([215]),DefaultDuration:(0,i.Ki)([35,227,131]),TrackEntry:(0,i.Ki)([174]),TrackType:(0,i.Ki)([131]),FlagDefault:(0,i.Ki)([136]),CodecID:(0,i.Ki)([134]),CodecPrivate:(0,i.Ki)([99,162]),VideoTrack:(0,i.Ki)([224]),AudioTrack:(0,i.Ki)([225]),Cluster:(0,i.Ki)([31,67,182,117]),Timestamp:(0,i.Ki)([231]),TimestampScale:(0,i.Ki)([42,215,177]),BlockGroup:(0,i.Ki)([160]),BlockDuration:(0,i.Ki)([155]),Block:(0,i.Ki)([161]),SimpleBlock:(0,i.Ki)([163])},c=[128,64,32,16,8,4,2,1],f=function(t){for(var e=1,r=0;r=r.length)return r.length;var a=l(r,n,!1);if((0,i.G3)(e.bytes,a.bytes))return n;var o=l(r,n+a.length);return t(e,r,n+o.length+o.value+a.length)},d=function t(e,r){r=Array.isArray(n=r)?n.map(function(t){return p(t)}):[p(n)],e=(0,i.Ki)(e);var n,a=[];if(!r.length)return a;for(var o=0;oe.length?e.length:c+u.value,d=e.subarray(c,f);(0,i.G3)(r[0],s.bytes)&&(1===r.length?a.push(d):a=a.concat(t(d,r.slice(1))));var m=s.length+u.length+d.length;o+=m}return a},m=r(68925),g=(0,i.Ki)([0,0,0,1]),y=(0,i.Ki)([0,0,1]),v=(0,i.Ki)([0,0,3]),b=function(t){for(var e=[],r=1;r>1&63),-1!==r.indexOf(c)&&(a=o+u),o+=u+("h264"===e?1:2)}return t.subarray(0,0)},T={webm:(0,i.Ki)([119,101,98,109]),matroska:(0,i.Ki)([109,97,116,114,111,115,107,97]),flac:(0,i.Ki)([102,76,97,67]),ogg:(0,i.Ki)([79,103,103,83]),ac3:(0,i.Ki)([11,119]),riff:(0,i.Ki)([82,73,70,70]),avi:(0,i.Ki)([65,86,73]),wav:(0,i.Ki)([87,65,86,69]),"3gp":(0,i.Ki)([102,116,121,112,51,103]),mp4:(0,i.Ki)([102,116,121,112]),fmp4:(0,i.Ki)([115,116,121,112]),mov:(0,i.Ki)([102,116,121,112,113,116]),moov:(0,i.Ki)([109,111,111,118]),moof:(0,i.Ki)([109,111,111,102])},w={aac:function(t){var e=(0,m.c)(t);return(0,i.G3)(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=(0,m.c)(t);return(0,i.G3)(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=d(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,T.webm)},mkv:function(t){var e=d(t,[u.EBML,u.DocType])[0];return(0,i.G3)(e,T.matroska)},mp4:function(t){return!(w["3gp"](t)||w.mov(t))&&(!!((0,i.G3)(t,T.mp4,{offset:4})||(0,i.G3)(t,T.fmp4,{offset:4})||(0,i.G3)(t,T.moof,{offset:4})||(0,i.G3)(t,T.moov,{offset:4}))||void 0)},mov:function(t){return(0,i.G3)(t,T.mov,{offset:4})},"3gp":function(t){return(0,i.G3)(t,T["3gp"],{offset:4})},ac3:function(t){var e=(0,m.c)(t);return(0,i.G3)(t,T.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return 71===t[0];for(var e=0;e+1880}},36722:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(58908),i=r.n(n),a=r(48764).lW;function o(t){for(var e=i().atob?i().atob(t):a.from(t,"base64").toString("binary"),r=new Uint8Array(e.length),n=0;n>4?i+20:i+10},o=function t(e,r){return(void 0===r&&(r=0),(e=(0,n.Ki)(e)).length-r<10||!(0,n.G3)(e,i,{offset:r}))?r:(r+=a(e,r),t(e,r))}},8485:function(t,e,r){"use strict";r.d(e,{t:function(){return a}});var n=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,i=/^application\/dash\+xml/i,a=function(t){return n.test(t)?"hls":i.test(t)?"dash":"application/vnd.videojs.vhs+json"===t?"vhs-json":null}},80779:function(t,e,r){"use strict";var n=r(49945),i=r.n(n),a=r(58908),o=r.n(a),s="http://example.com";e.Z=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=o().location&&o().location.href||"");var r="function"==typeof o().URL,n=/^\/\//.test(t),a=!o().location&&!/\/\//i.test(t);if(r?t=new(o()).URL(t,o().location||s):/\/\//i.test(t)||(t=i().buildAbsoluteURL(o().location&&o().location.href||"",t)),r){var u=new URL(e,t);return a?u.href.slice(s.length):n?u.href.slice(u.protocol.length):u.href}return i().buildAbsoluteURL(t,e)}},13490:function(t,e,r){"use strict";var n=r(58908);t.exports=function(t,e){return void 0===e&&(e=!1),function(r,i,a){if(r){t(r);return}if(i.statusCode>=400&&i.statusCode<=599){var o=a;if(e){if(n.TextDecoder){var s,u=(void 0===(s=i.headers&&i.headers["content-type"])&&(s=""),s.toLowerCase().split(";").reduce(function(t,e){var r=e.split("="),n=r[0],i=r[1];return"charset"===n.trim()?i.trim():t},"utf-8"));try{o=new TextDecoder(u).decode(a)}catch(c){}}else o=String.fromCharCode.apply(null,new Uint8Array(a))}t({cause:o});return}t(null,a)}}},9603:function(t,e,r){"use strict";var n=r(58908),i=r(10434),a=r(27376);u.httpHandler=r(13490);/** + * @license + * slighly modified parse-headers 2.0.2 + * Copyright (c) 2014 David Björklund + * Available under the MIT license + * + */var o=function(t){var e={};return t&&t.trim().split("\n").forEach(function(t){var r=t.indexOf(":"),n=t.slice(0,r).trim().toLowerCase(),i=t.slice(r+1).trim();void 0===e[n]?e[n]=i:Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]}),e};function s(t,e,r){var n=t;return a(e)?(r=e,"string"==typeof t&&(n={uri:t})):n=i({},e,{uri:t}),n.callback=r,n}function u(t,e,r){return c(e=s(t,e,r))}function c(t){if(void 0===t.callback)throw Error("callback argument missing");var e,r,n,i=!1,a=function(e,r,n){i||(i=!0,t.callback(e,r,n))};function s(t){return clearTimeout(n),t instanceof Error||(t=Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,a(t,y)}function c(){if(!r){clearTimeout(n);var e,i=y,s=null;return 0!==(e=t.useXDR&&void 0===f.status?200:1223===f.status?204:f.status)?(i={body:function(){var t=void 0;if(t=f.response?f.response:f.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(r){}return null}(f),g)try{t=JSON.parse(t)}catch(e){}return t}(),statusCode:e,method:p,headers:{},url:l,rawRequest:f},f.getAllResponseHeaders&&(i.headers=o(f.getAllResponseHeaders()))):s=Error("Internal XMLHttpRequest Error"),a(s,i,i.body)}}var f=t.xhr||null;f||(f=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var l=f.url=t.uri||t.url,p=f.method=t.method||"GET",h=t.body||t.data,d=f.headers=t.headers||{},m=!!t.sync,g=!1,y={body:void 0,headers:{},statusCode:0,method:p,url:l,rawRequest:f};if("json"in t&&!1!==t.json&&(g=!0,d.accept||d.Accept||(d.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(d["content-type"]||d["Content-Type"]||(d["Content-Type"]="application/json"),h=JSON.stringify(!0===t.json?h:t.json))),f.onreadystatechange=function(){4===f.readyState&&setTimeout(c,0)},f.onload=c,f.onerror=s,f.onprogress=function(){},f.onabort=function(){r=!0},f.ontimeout=s,f.open(p,l,!m,t.username,t.password),m||(f.withCredentials=!!t.withCredentials),!m&&t.timeout>0&&(n=setTimeout(function(){if(!r){r=!0,f.abort("timeout");var t=Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",s(t)}},t.timeout)),f.setRequestHeader)for(e in d)d.hasOwnProperty(e)&&f.setRequestHeader(e,d[e]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(f.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(f),f.send(h||null),f}t.exports=u,t.exports.default=u,u.XMLHttpRequest=n.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var r=0;r=e+r||e?new java.lang.String(t,e,r)+"":t}function g(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}l.prototype.parseFromString=function(t,e){var r=this.options,n=new f,i=r.domBuilder||new p,o=r.errorHandler,s=r.locator,c=r.xmlns||{},l=/\/x?html?$/.test(e),h=l?a.HTML_ENTITIES:a.XML_ENTITIES;return s&&i.setDocumentLocator(s),n.errorHandler=function(t,e,r){if(!t){if(e instanceof p)return e;t=e}var n={},i=t instanceof Function;function a(e){var a=t[e];!a&&i&&(a=2==t.length?function(r){t(e,r)}:t),n[e]=a&&function(t){a("[xmldom "+e+"] "+t+d(r))}||function(){}}return r=r||{},a("warning"),a("error"),a("fatalError"),n}(o,i,s),n.domBuilder=r.domBuilder||i,l&&(c[""]=u.HTML),c.xml=c.xml||u.XML,t&&"string"==typeof t?n.parse(t,c,h):n.errorHandler.error("invalid doc source"),i.doc},p.prototype={startDocument:function(){this.doc=new s().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,r,n){var i=this.doc,a=i.createElementNS(t,r||e),o=n.length;g(this,a),this.currentElement=a,this.locator&&h(this.locator,a);for(var s=0;s=0){for(var i=e.length-1;n"==t&&">"||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function G(t,e){if(e(t))return!0;if(t=t.firstChild)do if(G(t,e))return!0;while(t=t.nextSibling)}function F(){this.ownerDocument=this}function H(t,e,r,n){t&&t._inc++,r.namespaceURI===a.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function V(t,e,r){if(t&&t._inc){t._inc++;var n=e.childNodes;if(r)n[n.length++]=r;else{for(var i=e.firstChild,a=0;i;)n[a++]=i,i=i.nextSibling;n.length=a,delete n[n.length]}}}function q(t,e){var r=e.previousSibling,n=e.nextSibling;return r?r.nextSibling=n:t.firstChild=n,n?n.previousSibling=r:t.lastChild=r,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,V(t.ownerDocument,t),e}function z(t){return t&&t.nodeType===k.DOCUMENT_TYPE_NODE}function j(t){return t&&t.nodeType===k.ELEMENT_NODE}function K(t){return t&&t.nodeType===k.TEXT_NODE}function Y(t,e){var r=t.childNodes||[];if(i(r,j)||z(e))return!1;var n=i(r,z);return!(e&&n&&r.indexOf(n)>r.indexOf(e))}function $(t,e){var r=t.childNodes||[];if(i(r,function(t){return j(t)&&t!==e}))return!1;var n=i(r,z);return!(e&&n&&r.indexOf(n)>r.indexOf(e))}function W(t,e,r){var n=t.childNodes||[],a=e.childNodes||[];if(e.nodeType===k.DOCUMENT_FRAGMENT_NODE){var o=a.filter(j);if(o.length>1||i(a,K))throw new D(x,"More than one element or text in fragment");if(1===o.length&&!Y(t,r))throw new D(x,"Element in fragment can not be inserted before doctype")}if(j(e)&&!Y(t,r))throw new D(x,"Only one element can be added and only after doctype");if(z(e)){if(i(n,z))throw new D(x,"Only one doctype is allowed");var s=i(n,j);if(r&&n.indexOf(s)1||i(a,K))throw new D(x,"More than one element or text in fragment");if(1===o.length&&!$(t,r))throw new D(x,"Element in fragment can not be inserted before doctype")}if(j(e)&&!$(t,r))throw new D(x,"Only one element can be added and only after doctype");if(z(e)){if(i(n,function(t){return z(t)&&t!==r}))throw new D(x,"Only one doctype is allowed");var s=i(n,j);if(r&&n.indexOf(s)=0;N--){var S=i[N];if(""===S.prefix&&S.namespace===t.namespaceURI){o=S.namespace;break}}if(o!==t.namespaceURI)for(var N=i.length-1;N>=0;N--){var S=i[N];if(S.namespace===t.namespaceURI){S.prefix&&(l=S.prefix+":"+f);break}}}e.push("<",l);for(var A=0;A"),r&&/^script$/i.test(f))for(;c;)c.data?e.push(c.data):tm(c,e,r,n,i.slice()),c=c.nextSibling;else for(;c;)tm(c,e,r,n,i.slice()),c=c.nextSibling;e.push("")}else e.push("/>");return;case E:case w:for(var c=t.firstChild;c;)tm(c,e,r,n,i.slice()),c=c.nextSibling;return;case h:return td(e,t.name,t.value);case d:return e.push(t.data.replace(/[<&]/g,X).replace(/]]>/g,"]]>"));case m:return e.push("");case b:return e.push("");case T:var D=t.publicId,R=t.systemId;if(e.push("");else if(R&&"."!=R)e.push(" SYSTEM ",R,">");else{var C=t.internalSubset;C&&e.push(" [",C,"]"),e.push(">")}return;case v:return e.push("");case g:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function tg(t,e,r){t[e]=r}S.INVALID_STATE_ERR=(A[11]="Invalid state",11),S.SYNTAX_ERR=(A[12]="Syntax error",12),S.INVALID_MODIFICATION_ERR=(A[13]="Invalid modification",13),S.NAMESPACE_ERR=(A[14]="Invalid namespace",14),S.INVALID_ACCESS_ERR=(A[15]="Invalid access",15),D.prototype=Error.prototype,c(S,D),R.prototype={length:0,item:function(t){return this[t]||null},toString:function(t,e){for(var r=[],n=0;n0},lookupPrefix:function(t){for(var e=this;e;){var r=e._nsMap;if(r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===t)return n}e=e.nodeType==h?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var r=e._nsMap;if(r&&t in r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];e=e.nodeType==h?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},c(l,k),c(l,k.prototype),F.prototype={nodeName:"#document",nodeType:E,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==w){for(var r=t.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,e),r=n}return t}return Q(this,t,e),t.ownerDocument=this,null===this.documentElement&&t.nodeType===p&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),q(this,t)},replaceChild:function(t,e){Q(this,t,e,Z),t.ownerDocument=this,e&&this.removeChild(e),j(t)&&(this.documentElement=t)},importNode:function(t,e){return function t(e,r,n){var i;switch(r.nodeType){case p:(i=r.cloneNode(!1)).ownerDocument=e;case w:break;case h:n=!0}if(i||(i=r.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n)for(var a=r.firstChild;a;)i.appendChild(t(e,a,n)),a=a.nextSibling;return i}(this,t,e)},getElementById:function(t){var e=null;return G(this.documentElement,function(r){if(r.nodeType==p&&r.getAttribute("id")==t)return e=r,!0}),e},getElementsByClassName:function(t){var e=u(t);return new C(this,function(r){var n=[];return e.length>0&&G(r.documentElement,function(i){if(i!==r&&i.nodeType===p){var a=i.getAttribute("class");if(a){var o=t===a;if(!o){var s=u(a);o=e.every(function(t){return s&&-1!==s.indexOf(t)})}o&&n.push(i)}}}),n})},createElement:function(t){var e=new J;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new R,(e.attributes=new M)._ownerElement=e,e},createDocumentFragment:function(){var t=new tc;return t.ownerDocument=this,t.childNodes=new R,t},createTextNode:function(t){var e=new tr;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new tn;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new ti;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new tf;return r.ownerDocument=this,r.tagName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){var e=new tt;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new tu;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var r=new J,n=e.split(":"),i=r.attributes=new M;return r.childNodes=new R,r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.namespaceURI=t,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,i._ownerElement=r,r},createAttributeNS:function(t,e){var r=new tt,n=e.split(":");return r.ownerDocument=this,r.nodeName=e,r.name=e,r.namespaceURI=t,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=e,r}},f(F,k),J.prototype={nodeType:p,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+e,this.setAttributeNode(r)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){var e,r;return t.nodeType===w?this.insertBefore(t,null):(e=this,(r=t).parentNode&&r.parentNode.removeChild(r),r.parentNode=e,r.previousSibling=e.lastChild,r.nextSibling=null,r.previousSibling?r.previousSibling.nextSibling=r:e.firstChild=r,e.lastChild=r,V(e.ownerDocument,e,r),r)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r&&r.value||""},setAttributeNS:function(t,e,r){var n=this.ownerDocument.createAttributeNS(t,e);n.value=n.nodeValue=""+r,this.setAttributeNode(n)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new C(this,function(e){var r=[];return G(e,function(n){n!==e&&n.nodeType==p&&("*"===t||n.tagName==t)&&r.push(n)}),r})},getElementsByTagNameNS:function(t,e){return new C(this,function(r){var n=[];return G(r,function(i){i!==r&&i.nodeType===p&&("*"===t||i.namespaceURI===t)&&("*"===e||i.localName==e)&&n.push(i)}),n})}},F.prototype.getElementsByTagName=J.prototype.getElementsByTagName,F.prototype.getElementsByTagNameNS=J.prototype.getElementsByTagNameNS,f(J,k),tt.prototype.nodeType=h,f(tt,k),te.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw Error(A[x])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){r=this.data.substring(0,t)+r+this.data.substring(t+e),this.nodeValue=this.data=r,this.length=r.length}},f(te,k),tr.prototype={nodeName:"#text",nodeType:d,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},f(tr,te),tn.prototype={nodeName:"#comment",nodeType:b},f(tn,te),ti.prototype={nodeName:"#cdata-section",nodeType:m},f(ti,te),ta.prototype.nodeType=T,f(ta,k),to.prototype.nodeType=N,f(to,k),ts.prototype.nodeType=y,f(ts,k),tu.prototype.nodeType=g,f(tu,k),tc.prototype.nodeName="#document-fragment",tc.prototype.nodeType=w,f(tc,k),tf.prototype.nodeType=v,f(tf,k),tl.prototype.serializeToString=function(t,e,r){return tp.call(t,e,r)},k.prototype.toString=tp;try{Object.defineProperty&&(Object.defineProperty(C.prototype,"length",{get:function(){return U(this),this.$$length}}),Object.defineProperty(k.prototype,"textContent",{get:function(){return function t(e){switch(e.nodeType){case p:case w:var r=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&r.push(t(e)),e=e.nextSibling;return r.join("");default:return e.nodeValue}}(this)},set:function(t){switch(this.nodeType){case p:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),tg=function(t,e,r){t["$$"+e]=r})}catch(ty){}e.DocumentType=ta,e.DOMException=D,e.DOMImplementation=_,e.Element=J,e.Node=k,e.NodeList=R,e.XMLSerializer=tl},31045:function(t,e,r){var n=r(72167).freeze;e.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",times:"\xd7",divide:"\xf7",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),e.entityMap=e.HTML_ENTITIES},3969:function(t,e,r){var n=r(41146);n.DOMImplementation,n.XMLSerializer,e.DOMParser=r(86129).DOMParser},76925:function(t,e,r){var n=r(72167).NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=RegExp("^"+i.source+a.source+"*(?::"+i.source+a.source+"*)?$");function s(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function u(){}function c(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function f(t,e,r){for(var i=t.tagName,a=null,o=t.length;o--;){var s=t[o],u=s.qName,c=s.value,f=u.indexOf(":");if(f>0)var p=s.prefix=u.slice(0,f),h=u.slice(f+1),d="xmlns"===p&&h;else h=u,p=null,d="xmlns"===u&&"";s.localName=h,!1!==d&&(null==a&&(a={},l(r,r={})),r[d]=a[d]=c,s.uri=n.XMLNS,e.startPrefixMapping(d,c))}for(var o=t.length;o--;){var p=(s=t[o]).prefix;p&&("xml"===p&&(s.uri=n.XML),"xmlns"!==p&&(s.uri=r[p||""]))}var f=i.indexOf(":");f>0?(p=t.prefix=i.slice(0,f),h=t.localName=i.slice(f+1)):(p=null,h=t.localName=i);var m=t.uri=r[p||""];if(e.startElement(m,h,i,t),!t.closed)return t.currentNSMap=r,t.localNSMap=a,!0;if(e.endElement(m,h,i),a)for(p in a)Object.prototype.hasOwnProperty.call(a,p)&&e.endPrefixMapping(p)}function l(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}function p(){this.attributeNames={}}s.prototype=Error(),s.prototype.name=s.name,u.prototype={parse:function(t,e,r){var i=this.domBuilder;i.startDocument(),l(e,e={}),function(t,e,r,i,a){function o(t){var e,n=t.slice(1,-1);return n in r?r[n]:"#"!==n.charAt(0)?(a.error("entity not found:"+t),t):(e=parseInt(n.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)}function u(e){if(e>b){var r=t.substring(b,e).replace(/&#?\w+;/g,o);g&&l(b),i.characters(r,0,e-b),b=e}}function l(e,r){for(;e>=d&&(r=m.exec(t));)d=(h=r.index)+r[0].length,g.lineNumber++;g.columnNumber=e-h+1}for(var h=0,d=0,m=/.*(?:\r\n?|\n)|.*$/g,g=i.locator,y=[{currentNSMap:e}],v={},b=0;;){try{var E=t.indexOf("<",b);if(E<0){if(!t.substr(b).match(/^\s*$/)){var T=i.doc,w=T.createTextNode(t.substr(b));T.appendChild(w),i.currentElement=w}return}switch(E>b&&u(E),t.charAt(E+1)){case"/":var N=t.indexOf(">",E+3),S=t.substring(E+2,N).replace(/[ \t\n\r]+$/g,""),A=y.pop();N<0?(S=t.substring(E+2).replace(/[\s<].*/,""),a.error("end tag name: "+S+" is not complete:"+A.tagName),N=E+1+S.length):S.match(/\s",e);if(n){var i=t.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i)return i[0].length,r.processingInstruction(i[1],i[2]),n+2}return -1}(t,E,i);break;case"!":g&&l(E),N=function(t,e,r,n){if("-"===t.charAt(e+2)){if("-"===t.charAt(e+3)){var i=t.indexOf("-->",e+4);if(i>e)return r.comment(t,e+4,i-e-4),i+3;n.error("Unclosed comment")}}else{if("CDATA["==t.substr(e+3,6)){var i=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,i-e-9),r.endCDATA(),i+3}var a=function(t,e){var r,n=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=e,i.exec(t);r=i.exec(t);)if(n.push(r),r[1])return n}(t,e),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var s=a[1][0],u=!1,c=!1;o>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],c=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var f=a[o-1];return r.startDTD(s,u,c),r.endDTD(),f.index+f[0].length}}return -1}(t,E,i,a);break;default:g&&l(E);var D=new p,R=y[y.length-1].currentNSMap,N=function(t,e,r,i,a,o){function s(t,e,n){r.attributeNames.hasOwnProperty(t)&&o.fatalError("Attribute "+t+" redefined"),r.addValue(t,e,n)}for(var u,c,f=++e,l=0;;){var p=t.charAt(f);switch(p){case"=":if(1===l)u=t.slice(e,f),l=3;else if(2===l)l=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===l||1===l){if(1===l&&(o.warning('attribute value must after "="'),u=t.slice(e,f)),e=f+1,(f=t.indexOf(p,e))>0)s(u,c=t.slice(e,f).replace(/&#?\w+;/g,a),e-1),l=5;else throw Error("attribute value no end '"+p+"' match")}else if(4==l)s(u,c=t.slice(e,f).replace(/&#?\w+;/g,a),e),o.warning('attribute "'+u+'" missed start quot('+p+")!!"),e=f+1,l=5;else throw Error('attribute value must after "="');break;case"/":switch(l){case 0:r.setTagName(t.slice(e,f));case 5:case 6:case 7:l=7,r.closed=!0;case 4:case 1:case 2:break;default:throw Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==l&&r.setTagName(t.slice(e,f)),f;case">":switch(l){case 0:r.setTagName(t.slice(e,f));case 5:case 6:case 7:break;case 4:case 1:"/"===(c=t.slice(e,f)).slice(-1)&&(r.closed=!0,c=c.slice(0,-1));case 2:2===l&&(c=u),4==l?(o.warning('attribute "'+c+'" missed quot(")!'),s(u,c.replace(/&#?\w+;/g,a),e)):(n.isHTML(i[""])&&c.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),s(c,c,e));break;case 3:throw Error("attribute value missed!!")}return f;case"\x80":p=" ";default:if(p<=" ")switch(l){case 0:r.setTagName(t.slice(e,f)),l=6;break;case 1:u=t.slice(e,f),l=2;break;case 4:var c=t.slice(e,f).replace(/&#?\w+;/g,a);o.warning('attribute "'+c+'" missed quot(")!!'),s(u,c,e);case 5:l=6}else switch(l){case 2:r.tagName,n.isHTML(i[""])&&u.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+u+'" missed value!! "'+u+'" instead2!!'),s(u,u,e),e=f,l=1;break;case 5:o.warning('attribute space is required"'+u+'"!!');case 6:l=1,e=f;break;case 3:l=4,e=f;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}f++}}(t,E,D,R,o,a),C=D.length;if(!D.closed&&function(t,e,r,n){var i=n[r];return null==i&&((i=t.lastIndexOf(""))",e),o=t.substring(e+1,a);if(/[&<]/.test(o))return/^script$/i.test(r)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,n),i.characters(o,0,o.length),a)}return e+1}(t,N,D.tagName,o,i):N++}}catch(P){if(P instanceof s)throw P;a.error("element parse error: "+P),N=-1}N>b?b=N:u(Math.max(E,b)+1)}}(t,e,r,i,this.errorHandler),i.endDocument()}},p.prototype={setTagName:function(t){if(!o.test(t))throw Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!o.test(t))throw Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=u,e.ParseError=s},79742:function(t,e){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,a=u(t),o=a[0],s=a[1],c=new i((o+s)*3/4-s),f=0,l=s>0?o-4:o;for(r=0;r>16&255,c[f++]=e>>8&255,c[f++]=255&e;return 2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[f++]=255&e),1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,a=[],o=0,s=n-i;o>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}(t,o,o+16383>s?s:o+16383));return 1===i?a.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&a.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),a.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},48764:function(t,e,r){"use strict";/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */var n=r(79742),i=r(80645),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function o(t){if(t>2147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return f(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!s.isEncoding(e))throw TypeError("Unknown encoding: "+e);var r=0|d(t,e),n=o(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(D(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return l(t)}(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(D(t,ArrayBuffer)||t&&D(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(D(t,SharedArrayBuffer)||t&&D(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return s.from(n,e,r);var i=function(t){if(s.isBuffer(t)){var e,r=0|h(t.length),n=o(r);return 0===n.length||t.copy(n,0,0,r),n}return void 0!==t.length?"number"!=typeof t.length||(e=t.length)!=e?o(0):l(t):"Buffer"===t.type&&Array.isArray(t.data)?l(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function f(t){return c(t),o(t<0?0:0|h(t))}function l(t){for(var e=t.length<0?0:0|h(t.length),r=o(e),n=0;n=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function d(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||D(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return x(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return I(t).length;default:if(i)return n?-1:x(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,r){var i,a,o=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=e;a2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(a=r=+r)!=a&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return -1;r=t.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof e&&(e=s.from(e,n)),s.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,i);throw TypeError("val must be string, number or Buffer")}function v(t,e,r,n,i){var a,o=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;o=2,s/=2,u/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var f=-1;for(a=r;as&&(r=s-u),a=r;a>=0;a--){for(var l=!0,p=0;p239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:(192&(a=t[i+1]))==128&&(u=(31&c)<<6|63&a)>127&&(f=u);break;case 3:a=t[i+1],o=t[i+2],(192&a)==128&&(192&o)==128&&(u=(15&c)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(u=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function T(t,e,r,n,i,a){if(!s.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw RangeError("Index out of range")}function w(t,e,r,n,i,a){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function N(t,e,r,n,a){return e=+e,r>>>=0,a||w(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function S(t,e,r,n,a){return e=+e,r>>>=0,a||w(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}e.lW=s,e.h2=50,s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(r){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,r){return(c(t),t<=0)?o(t):void 0!==e?"string"==typeof r?o(t).fill(e,r):o(t).fill(e):o(t)},s.allocUnsafe=function(t){return f(t)},s.allocUnsafeSlow=function(t){return f(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(D(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),D(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);in.length?s.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else if(s.isBuffer(a))a.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=a.length}return n},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(t+=" ... "),""},a&&(s.prototype[a]=s.prototype.inspect),s.prototype.compare=function(t,e,r,n,i){if(D(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var a=i-n,o=r-e,u=Math.min(a,o),c=this.slice(n,i),f=t.slice(e,r),l=0;l>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,s,u,c,f,l,p=this.length-e;if((void 0===r||r>p)&&(r=p),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var h=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=e.length;n>a/2&&(n=a/2);for(var o=0;o>8,i.push(r%256),i.push(n);return i}(t,this.length-f),this,f,l);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t>>>=0,e||E(t,1,this.length),this[t]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||E(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||E(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*e)),n},s.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n>0&&(i*=256);)a+=this[t+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*e)),a},s.prototype.readInt8=function(t,e){return(t>>>=0,e||E(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||E(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(t,e){t>>>=0,e||E(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return t>>>=0,e||E(t,4,this.length),i.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||E(t,4,this.length),i.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||E(t,8,this.length),i.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||E(t,8,this.length),i.read(this,t,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;T(this,t,e,r,i,0)}var a=1,o=0;for(this[e]=255&t;++o>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;T(this,t,e,r,i,0)}var a=r-1,o=1;for(this[e+a]=255&t;--a>=0&&(o*=256);)this[e+a]=t/o&255;return e+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&t;++a>0)-s&255;return e+r},s.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);T(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+r},s.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||T(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeFloatLE=function(t,e,r){return N(this,t,e,!0,r)},s.prototype.writeFloatBE=function(t,e,r){return N(this,t,e,!1,r)},s.prototype.writeDoubleLE=function(t,e,r){return S(this,t,e,!0,r)},s.prototype.writeDoubleBE=function(t,e,r){return S(this,t,e,!1,r)},s.prototype.copy=function(t,e,r,n){if(!s.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&r<57344){if(!i){if(r>56319||o+1===n){(e-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;a.push(r)}else if(r<2048){if((e-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function I(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function O(t,e,r,n){for(var i=0;i=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function D(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var R=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},89144:function(t,e,r){var n,i=void 0!==r.g?r.g:"undefined"!=typeof window?window:{},a=r(25893);"undefined"!=typeof document?n=document:(n=i["__GLOBAL_DOCUMENT_CACHE@4"])||(n=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),t.exports=n},58908:function(t,e,r){var n;n="undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},t.exports=n},80645:function(t,e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */e.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,u=(1<>1,f=-7,l=r?i-1:0,p=r?-1:1,h=t[e+l];for(l+=p,a=h&(1<<-f)-1,h>>=-f,f+=s;f>0;a=256*a+t[e+l],l+=p,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=n;f>0;o=256*o+t[e+l],l+=p,f-=8);if(0===a)a=1-c;else{if(a===u)return o?NaN:(h?-1:1)*(1/0);o+=Math.pow(2,n),a-=c}return(h?-1:1)*o*Math.pow(2,a-n)},e.write=function(t,e,r,n,i,a){var o,s,u,c=8*a-i-1,f=(1<>1,p=23===i?5960464477539062e-23:0,h=n?0:a-1,d=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(s=isNaN(e)?1:0,o=f):(o=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+l>=1?e+=p/u:e+=p*Math.pow(2,1-l),e*u>=2&&(o++,u/=2),o+l>=f?(s=0,o=f):o+l>=1?(s=(e*u-1)*Math.pow(2,i),o+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),o=0));i>=8;t[r+h]=255&s,h+=d,s/=256,i-=8);for(o=o<0;t[r+h]=255&o,h+=d,o/=256,c-=8);t[r+h-d]|=128*m}},27376:function(t){t.exports=function(t){if(!t)return!1;var r=e.call(t);return"[object Function]"===r||"function"==typeof t&&"[object RegExp]"!==r||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString},27537:function(t,e){function r(t){if(t&&"object"==typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"==typeof t)return o[t];var r=String(t),a=n[r.toLowerCase()];if(a)return a;var a=i[r.toLowerCase()];return a||(1===r.length?r.charCodeAt(0):void 0)}r.isEventKey=function(t,e){if(t&&"object"==typeof t){var r=t.which||t.keyCode||t.charCode;if(null==r)return!1;if("string"==typeof e){var a=n[e.toLowerCase()];if(a)return a===r;var a=i[e.toLowerCase()];if(a)return a===r}else if("number"==typeof e)return e===r;return!1}};var n=(e=t.exports=r).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=e.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*! + * Programatically add the following + */for(a=97;a<123;a++)n[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)n[a-48]=a;for(a=1;a<13;a++)n["f"+a]=a+111;for(a=0;a<10;a++)n["numpad "+a]=a+96;var o=e.names=e.title={};for(a in n)o[n[a]]=a;for(var s in i)n[s]=i[s]},9323:function(t,e,r){"use strict";r.d(e,{_b:function(){return d}});var n=r(94578),i=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var r=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(r,1),r>-1},e.trigger=function(t){var e=this.listeners[t];if(e){if(2==arguments.length)for(var r=e.length,n=0;n-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(i),c=function(t){var e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),r={};return e[1]&&(r.length=parseInt(e[1],10)),e[2]&&(r.offset=parseInt(e[2],10)),r},f=function(t){for(var e,r=t.split(RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},i=r.length;i--;)""!==r[i]&&((e=/([^=]*)=(.*)/.exec(r[i]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),n[e[0]]=e[1]);return n},l=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}(0,n.Z)(e,t);var r=e.prototype;return r.push=function(t){var e,r,n=this;if(0!==(t=t.trim()).length){if("#"!==t[0]){this.trigger("data",{type:"uri",uri:t});return}this.tagMappers.reduce(function(e,r){var n=r(t);return n===t?e:e.concat([n])},[t]).forEach(function(t){for(var i=0;i0&&(f.duration=t.duration),0===t.duration&&(f.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=c},key:function(){if(!t.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if("NONE"===t.attributes.METHOD){n=null;return}if(!t.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if("com.apple.streamingkeydelivery"===t.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:t.attributes};return}if("com.microsoft.playready"===t.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:t.attributes.URI};return}if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT){if(-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2))){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:(0,s.Z)(t.attributes.URI.split(",")[1])};return}t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void 0!==t.attributes.IV&&(n.iv=t.attributes.IV)},"media-sequence":function(){if(!isFinite(t.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number});return}this.manifest.mediaSequence=t.number},"discontinuity-sequence":function(){if(!isFinite(t.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number});return}this.manifest.discontinuitySequence=t.number,y=t.number},"playlist-type":function(){if(!/VOD|EVENT/.test(t.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist});return}this.manifest.playlistType=t.playlistType},map:function(){r={},t.uri&&(r.uri=t.uri),t.byterange&&(r.byterange=t.byterange),n&&(r.key=n)},"stream-inf":function(){if(this.manifest.playlists=c,this.manifest.mediaGroups=this.manifest.mediaGroups||g,!t.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}f.attributes||(f.attributes={}),(0,a.Z)(f.attributes,t.attributes)},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||g,!(t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}var r=this.manifest.mediaGroups[t.attributes.TYPE];r[t.attributes["GROUP-ID"]]=r[t.attributes["GROUP-ID"]]||{},e=r[t.attributes["GROUP-ID"]],(o={default:/yes/i.test(t.attributes.DEFAULT)}).default?o.autoselect=!0:o.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(o.language=t.attributes.LANGUAGE),t.attributes.URI&&(o.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(o.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(o.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(o.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=o},discontinuity:function(){y+=1,f.discontinuity=!0,this.manifest.discontinuityStarts.push(c.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),f.dateTimeString=t.dateTimeString,f.dateTimeObject=t.dateTimeObject},targetduration:function(){if(!isFinite(t.duration)||t.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration});return}this.manifest.targetDuration=t.duration,h.call(this,this.manifest)},start:function(){if(!t.attributes||isNaN(t.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}},"cue-out":function(){f.cueOut=t.data},"cue-out-cont":function(){f.cueOutCont=t.data},"cue-in":function(){f.cueIn=t.data},skip:function(){this.manifest.skip=p(t.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",t.attributes,["SKIPPED-SEGMENTS"])},part:function(){var e=this;d=!0;var r=this.manifest.segments.length,n=p(t.attributes);f.parts=f.parts||[],f.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=b),b=n.byterange.offset+n.byterange.length);var i=f.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+i+" for segment #"+r,t.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(t,r){t.hasOwnProperty("lastPart")||e.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+r+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var e=this.manifest.serverControl=p(t.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),h.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var e=this.manifest.segments.length,r=p(t.attributes),n=r.type&&"PART"===r.type;f.preloadHints=f.preloadHints||[],f.preloadHints.push(r),r.byterange&&!r.byterange.hasOwnProperty("offset")&&(r.byterange.offset=n?b:0,n&&(b=r.byterange.offset+r.byterange.length));var i=f.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+i+" for segment #"+e,t.attributes,["TYPE","URI"]),r.type)for(var a=0;ae.timeline?1:-1})},I=function(t,e){for(var r=0;rr.timeline||r.segments.length&&t.timeline>r.segments[r.segments.length-1].timeline)&&t.discontinuitySequence--;return}r.segments[a].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),D({playlist:t,mediaSequence:r.segments[a].number})}})},C=function(t){var e=t.oldManifest,r=t.newManifest,n=e.playlists.concat(O(e)),i=r.playlists.concat(O(r));return r.timelineStarts=x([e.timelineStarts,r.timelineStarts]),R({oldPlaylists:n,newPlaylists:i,timelineStarts:r.timelineStarts}),r},U=function(t){return t&&t.uri+"-"+v(t.byterange)},M=function(t){return l(t.reduce(function(t,e){var r,n=e.attributes.id+(e.attributes.lang||"");return t[n]?(e.segments&&(e.segments[0]&&(e.segments[0].discontinuity=!0),(r=t[n].segments).push.apply(r,e.segments)),e.attributes.contentProtection&&(t[n].attributes.contentProtection=e.attributes.contentProtection)):(t[n]=e,t[n].attributes.timelineStarts=[]),t[n].attributes.timelineStarts.push({start:e.attributes.periodStart,timeline:e.attributes.periodStart}),t},{})).map(function(t){return t.discontinuityStarts=(t.segments||[]).reduce(function(t,e,r){return e.discontinuity&&t.push(r),t},[]),t})},L=function(t,e){var r=U(t.sidx),n=r&&e[r]&&e[r].sidx;return n&&N(t,n,t.sidx.resolvedUri),t},P=function(t,e){if(void 0===e&&(e={}),!Object.keys(e).length)return t;for(var r in t)t[r]=L(t[r],e);return t},B=function(t,e){var r,n=t.attributes,i=t.segments,a=t.sidx,o=t.mediaSequence,s=t.discontinuitySequence,u=t.discontinuityStarts,c={attributes:((r={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs})["PROGRAM-ID"]=1,r),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuitySequence:s,discontinuityStarts:u,timelineStarts:n.timelineStarts,mediaSequence:o,segments:i};return n.contentProtection&&(c.contentProtection=n.contentProtection),a&&(c.sidx=a),e&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c},_=function(t){var e,r=t.attributes,n=t.segments,i=t.mediaSequence,a=t.discontinuityStarts,o=t.discontinuitySequence;void 0===n&&(n=[{uri:r.baseUrl,timeline:r.periodStart,resolvedUri:r.baseUrl||"",duration:r.sourceDuration,number:0}],r.duration=r.sourceDuration);var s=((e={NAME:r.id,BANDWIDTH:r.bandwidth})["PROGRAM-ID"]=1,e);return r.codecs&&(s.CODECS=r.codecs),{attributes:s,uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:r.baseUrl||"",targetDuration:r.duration,timelineStarts:r.timelineStarts,discontinuityStarts:a,discontinuitySequence:o,mediaSequence:i,segments:n}},k=function(t,e,r){void 0===e&&(e={}),void 0===r&&(r=!1);var n,i=t.reduce(function(t,i){var a=i.attributes.role&&i.attributes.role.value||"",o=i.attributes.lang||"",s=i.attributes.label||"main";o&&!i.attributes.label&&(s=""+i.attributes.lang+(a?" ("+a+")":"")),t[s]||(t[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var u=L(B(i,r),e);return t[s].playlists.push(u),void 0===n&&"main"===a&&((n=i).default=!0),t},{});if(!n){var a=Object.keys(i)[0];i[a].default=!0}return i},X=function(t){var e,r=t.attributes,n=t.segments,i=t.sidx,a=t.discontinuityStarts,o={attributes:((e={NAME:r.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:r.width,height:r.height},CODECS:r.codecs,BANDWIDTH:r.bandwidth})["PROGRAM-ID"]=1,e),uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:"",targetDuration:r.duration,discontinuityStarts:a,timelineStarts:r.timelineStarts,segments:n};return r.contentProtection&&(o.contentProtection=r.contentProtection),i&&(o.sidx=i),o},G=function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType},F=function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType},H=function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType},V=function(t,e){t.forEach(function(t){t.mediaSequence=0,t.discontinuitySequence=m(e,function(e){return e.timeline===t.timeline}),t.segments&&t.segments.forEach(function(t,e){t.number=e})})},q=function(t){return t?Object.keys(t).reduce(function(e,r){var n=t[r];return e.concat(n.playlists)},[]):[]},z=function(t){var e,r,n=t.dashPlaylists,i=t.locations,a=t.sidxMapping,o=void 0===a?{}:a,s=t.previousManifest;if(!n.length)return{};var u=n[0].attributes,c=u.sourceDuration,f=u.type,l=u.suggestedPresentationDelay,p=u.minimumUpdatePeriod,h=M(n.filter(G)).map(X),d=M(n.filter(F)),m=M(n.filter(H)),g=n.map(function(t){return t.attributes.captionServices}).filter(Boolean),y={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:((r={AUDIO:{},VIDEO:{}})["CLOSED-CAPTIONS"]={},r.SUBTITLES={},r),uri:"",duration:c,playlists:P(h,o)};p>=0&&(y.minimumUpdatePeriod=1e3*p),i&&(y.locations=i),"dynamic"===f&&(y.suggestedPresentationDelay=l);var v=0===y.playlists.length,b=d.length?k(d,o,v):null,E=m.length?(void 0===(e=o)&&(e={}),m.reduce(function(t,r){var n=r.attributes.lang||"text";return t[n]||(t[n]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),t[n].playlists.push(L(_(r),e)),t},{})):null,T=h.concat(q(b),q(E)),w=T.map(function(t){return t.timelineStarts});return y.timelineStarts=x(w),V(T,y.timelineStarts),b&&(y.mediaGroups.AUDIO.audio=b),E&&(y.mediaGroups.SUBTITLES.subs=E),g.length&&(y.mediaGroups["CLOSED-CAPTIONS"].cc=g.reduce(function(t,e){return e&&e.forEach(function(e){var r=e.channel,n=e.language;t[n]={autoselect:!1,default:!1,instreamId:r,language:n},e.hasOwnProperty("aspectRatio")&&(t[n].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(t[n].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(t[n]["3D"]=e["3D"])}),t},{})),s?C({oldManifest:s,newManifest:y}):y},j=function(t,e,r){var n=t.NOW,i=t.clientOffset,a=t.availabilityStartTime,o=t.timescale,s=t.periodStart,u=t.minimumUpdatePeriod;return Math.ceil((((n+i)/1e3+(void 0===u?0:u)-(a+(void 0===s?0:s)))*(void 0===o?1:o)-e)/r)},K=function(t,e){for(var r=t.type,n=t.minimumUpdatePeriod,i=void 0===n?0:n,a=t.media,o=void 0===a?"":a,s=t.sourceDuration,u=t.timescale,c=void 0===u?1:u,f=t.startNumber,l=void 0===f?1:f,p=t.periodStart,h=[],d=-1,m=0;md&&(d=b);var E=void 0;if(v<0){var T=m+1;E=T===e.length?"dynamic"===r&&i>0&&o.indexOf("$Number$")>0?j(t,d,y):(s*c-d)/y:(e[T].t-d)/y}else E=v+1;for(var w=l+h.length+E,N=l+h.length;N=i)?a:""+Array(i-a.length+1).join("0")+a})},W=function(t,e){var r={RepresentationID:t.id,Bandwidth:t.bandwidth||0},i=t.initialization,a=void 0===i?{sourceURL:"",range:""}:i,o=y({baseUrl:t.baseUrl,source:$(a.sourceURL,r),range:a.range});return(t.duration||e?t.duration?T(t):K(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]).map(function(e){r.Number=e.number,r.Time=e.time;var i=$(t.media||"",r),a=t.timescale||1,s=t.presentationTimeOffset||0,u=t.periodStart+(e.time-s)/a;return{uri:i,timeline:e.timeline,duration:e.duration,resolvedUri:(0,n.Z)(t.baseUrl||"",i),map:o,number:e.number,presentationTime:u}})},Z=function(t,e){var r=t.baseUrl,n=t.initialization,i=void 0===n?{}:n,a=y({baseUrl:r,source:i.sourceURL,range:i.range}),o=y({baseUrl:r,source:e.media,range:e.mediaRange});return o.map=a,o},Q=function(t,e){var r,n=t.duration,i=t.segmentUrls,a=t.periodStart;if(!n&&!e||n&&e)throw Error(g.SEGMENT_TIME_UNSPECIFIED);var o=(void 0===i?[]:i).map(function(e){return Z(t,e)});return n&&(r=T(t)),e&&(r=K(t,e)),r.map(function(e,r){if(o[r]){var n=o[r],i=t.timescale||1,s=t.presentationTimeOffset||0;return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n.presentationTime=a+(e.time-s)/i,n}}).filter(function(t){return t})},J=function(t){var e,r,n=t.attributes,i=t.segmentInfo;i.template?(r=W,e=f(n,i.template)):i.base?(r=w,e=f(n,i.base)):i.list&&(r=Q,e=f(n,i.list));var a={attributes:n};if(!r)return a;var o=r(e,i.segmentTimeline);if(e.duration){var s=e,u=s.duration,c=s.timescale;e.duration=u/(void 0===c?1:c)}else o.length?e.duration=o.reduce(function(t,e){return Math.max(t,Math.ceil(e.duration))},0):e.duration=0;return a.attributes=e,a.segments=o,i.base&&e.indexRange&&(a.sidx=o[0],a.segments=[]),a},tt=function(t,e){return d(t.childNodes).filter(function(t){return t.tagName===e})},te=function(t){return t.textContent.trim()},tr=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var r=e.slice(1),n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(a||0)+3600*parseFloat(o||0)+60*parseFloat(s||0)+parseFloat(u||0)},tn={mediaPresentationDuration:function(t){return tr(t)},availabilityStartTime:function(t){var e;return e=t,/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)/1e3},minimumUpdatePeriod:function(t){return tr(t)},suggestedPresentationDelay:function(t){return tr(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return tr(t)},start:function(t){return tr(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},presentationTimeOffset:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?tr(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},ti=function(t){return t&&t.attributes?d(t.attributes).reduce(function(t,e){var r=tn[e.name]||tn.DEFAULT;return t[e.name]=r(e.value),t},{}):{}},ta={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},to=function(t,e){return e.length?h(t.map(function(t){return e.map(function(e){return(0,n.Z)(t,te(e))})})):t},ts=function(t){var e=tt(t,"SegmentTemplate")[0],r=tt(t,"SegmentList")[0],n=r&&tt(r,"SegmentURL").map(function(t){return f({tag:"SegmentURL"},ti(t))}),i=tt(t,"SegmentBase")[0],a=r||e,o=a&&tt(a,"SegmentTimeline")[0],s=r||i||e,u=s&&tt(s,"Initialization")[0],c=e&&ti(e);c&&u?c.initialization=u&&ti(u):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});var l={template:c,segmentTimeline:o&&tt(o,"S").map(function(t){return ti(t)}),list:r&&f(ti(r),{segmentUrls:n,initialization:ti(u)}),base:i&&f(ti(i),{initialization:ti(u)})};return Object.keys(l).forEach(function(t){l[t]||delete l[t]}),l},tu=function(t){var e=t.attributes,r=t.priorPeriodAttributes,n=t.mpdType;return"number"==typeof e.start?e.start:r&&"number"==typeof r.start&&"number"==typeof r.duration?r.start+r.duration:r||"static"!==n?null:0},tc=function(t,e){void 0===e&&(e={});var r=e,n=r.manifestUri,i=r.NOW,a=void 0===i?Date.now():i,o=r.clientOffset,u=tt(t,"Period");if(!u.length)throw Error(g.INVALID_NUMBER_OF_PERIOD);var c=tt(t,"Location"),l=ti(t),p=to([void 0===n?"":n],tt(t,"BaseURL"));l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=a,l.clientOffset=void 0===o?0:o,c.length&&(l.locations=c.map(te));var d=[];return u.forEach(function(t,e){var r=ti(t),n=d[e-1];r.start=tu({attributes:r,priorPeriodAttributes:n?n.attributes:null,mpdType:l.type}),d.push({node:t,attributes:r})}),{locations:l.locations,representationInfo:h(d.map(function(t,e){var r=to(p,tt(t.node,"BaseURL")),n=f(l,{periodStart:t.attributes.start});"number"==typeof t.attributes.duration&&(n.periodDuration=t.attributes.duration);var i=tt(t.node,"AdaptationSet"),a=ts(t.node);return h(i.map(function(t){var e,i,o=ti(t),u=to(r,tt(t,"BaseURL")),c=f(n,o,{role:ti(tt(t,"Role")[0])}),l="urn:scte:dash:cc:cea-608:2015"===(e=ti(tt(t,"Accessibility")[0])).schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(function(t){if(r=t,/^CC\d=/.test(t)){var e,r,n=t.split("=");e=n[0],r=n[1]}else/^CC\d$/.test(t)&&(e=t);return{channel:e,language:r}}):"urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map(function(t){var e={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){var r=t.split("="),n=r[0],i=r[1];e.channel=n,e.language=t,(void 0===i?"":i).split(",").forEach(function(t){var r=t.split(":"),n=r[0],i=r[1];"lang"===n?e.language=i:"er"===n?e.easyReader=Number(i):"war"===n?e.aspectRatio=Number(i):"3D"===n&&(e["3D"]=Number(i))})}else e.language=t;return e.channel&&(e.channel="SERVICE"+e.channel),e}):void 0;l&&(c=f(c,{captionServices:l}));var p=tt(t,"Label")[0];p&&p.childNodes.length&&(c=f(c,{label:p.childNodes[0].nodeValue.trim()}));var d=tt(t,"ContentProtection").reduce(function(t,e){var r=ti(e);r.schemeIdUri&&(r.schemeIdUri=r.schemeIdUri.toLowerCase());var n=ta[r.schemeIdUri];if(n){t[n]={attributes:r};var i=tt(e,"cenc:pssh")[0];if(i){var a=te(i);t[n].pssh=a&&(0,s.Z)(a)}}return t},{});Object.keys(d).length&&(c=f(c,{contentProtection:d}));var m=ts(t),g=tt(t,"Representation"),y=f(a,m);return h(g.map((i=c,function(t){var e=to(u,tt(t,"BaseURL")),r=f(i,ti(t)),n=ts(t);return e.map(function(t){return{segmentInfo:f(y,n),attributes:f(r,{baseUrl:t})}})})))}))}))}},tf=function(t){if(""===t)throw Error(g.DASH_EMPTY_MANIFEST);var e,r,n=new u.DOMParser;try{r=(e=n.parseFromString(t,"application/xml"))&&"MPD"===e.documentElement.tagName?e.documentElement:null}catch(i){}if(!r||r&&r.getElementsByTagName("parsererror").length>0)throw Error(g.DASH_INVALID_XML);return r},tl=function(t){var e=tt(t,"UTCTiming")[0];if(!e)return null;var r=ti(e);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;default:throw Error(g.UNSUPPORTED_UTC_TIMING_SCHEME)}return r},tp=function(t,e){void 0===e&&(e={});var r=tc(tf(t),e);return z({dashPlaylists:r.representationInfo.map(J),locations:r.locations,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest})},th=function(t){return tl(tf(t))}},84221:function(t,e,r){var n=r(46894).getUint64;t.exports=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),r={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=e.getUint32(i),r.firstOffset=e.getUint32(i+4),i+=8):(r.earliestPresentationTime=n(t.subarray(i)),r.firstOffset=n(t.subarray(i+8)),i+=16),i+=2;var a=e.getUint16(i);for(i+=2;a>0;i+=12,a--)r.references.push({referenceType:(128&t[i])>>>7,referencedSize:2147483647&e.getUint32(i),subsegmentDuration:e.getUint32(i+4),startsWithSap:!!(128&t[i+8]),sapType:(112&t[i+8])>>>4,sapDeltaTime:268435455&e.getUint32(i+8)});return r}},51489:function(t){var e,r,n,i;e=function(t){return 9e4*t},r=function(t,e){return t*e},n=function(t){return t/9e4},i=function(t,e){return t/e},t.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:e,secondsToAudioTs:r,videoTsToSeconds:n,audioTsToSeconds:i,audioTsToVideoTs:function(t,r){return e(i(t,r))},videoTsToAudioTs:function(t,e){return r(n(t),e)},metadataTsToSeconds:function(t,e,r){return n(r?t:t-e)}}},46894:function(t){t.exports={getUint64:function(t){var e,r=new DataView(t.buffer,t.byteOffset,t.byteLength);return r.getBigUint64?(e=r.getBigUint64(0))59?e(r[1],r[2],0,r[4]):e(0,r[1],r[2],r[4]):null}function s(){this.values=i(null)}function u(t,e,r,n){var i=n?t.split(n):[t];for(var a in i)if("string"==typeof i[a]){var o=i[a].split(r);2===o.length&&e(o[0].trim(),o[1].trim())}}a.prototype=i(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,r){for(var n=0;n=0&&e<=100)&&(this.set(t,e),!0)}};var c=n.createElement&&n.createElement("textarea"),f={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},l={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},h={rt:"ruby"};function d(t,e){for(var r,n=t.document.createElement("div"),i=n,a=[];null!==(r=function(){if(!e)return null;var t,r=e.match(/^([^<]*)(<[^>]*>?)?/);return t=r[1]?r[1]:r[2],e=e.substr(t.length),t}());){if("<"===r[0]){if("/"===r[1]){a.length&&a[a.length-1]===r.substr(2).replace(">","")&&(a.pop(),i=i.parentNode);continue}var s,u,d,m,g=o(r.substr(1,r.length-2));if(g){m=t.document.createProcessingInstruction("timestamp",g),i.appendChild(m);continue}var y=r.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y||!(m=function(e,r){var n=f[e];if(!n)return null;var i=t.document.createElement(n),a=p[e];return a&&r&&(i[a]=r.trim()),i}(y[1],y[3]))||(u=i,h[(d=m).localName]&&h[d.localName]!==u.localName))continue;if(y[2]){var v=y[2].split(".");v.forEach(function(t){var e=/^bg_/.test(t),r=e?t.slice(3):t;if(l.hasOwnProperty(r)){var n=e?"background-color":"color",i=l[r];m.style[n]=i}}),m.className=v.join(" ")}a.push(y[1]),i.appendChild(m),i=m;continue}i.appendChild(t.document.createTextNode((s=r,c.innerHTML=s,s=c.textContent,c.textContent="",s)))}return n}var m=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function g(){}function y(t,e,r){g.call(this),this.cue=e,this.cueDiv=d(t,e.text);var n={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(n,this.cueDiv),this.div=t.document.createElement("div"),n={direction:function(t){var e=[],r="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var r=e.childNodes.length-1;r>=0;r--)t.push(e.childNodes[r])}for(n(e,t);r=function t(e){if(!e||!e.length)return null;var r=e.pop(),i=r.textContent||r.innerText;if(i){var a=i.match(/^.*(\n|\r)/);return a?(e.length=0,a[0]):i}return"ruby"===r.tagName?t(e):r.childNodes?(n(e,r),t(e)):void 0}(e);)for(var i=0;i=r[0]&&t<=r[1])return!0}return!1}(r.charCodeAt(i)))return"rtl";return"ltr"}(this.cueDiv),writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===e.align?"center":e.align,font:r.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var i=0;switch(e.positionAlign){case"start":i=e.position;break;case"center":i=e.position-e.size/2;break;case"end":i=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(i,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(i,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function v(t){var e,r,n,i;if(t.div){r=t.div.offsetHeight,n=t.div.offsetWidth,i=t.div.offsetTop;var a=(a=t.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();t=t.div.getBoundingClientRect(),e=a?Math.max(a[0]&&a[0].height||0,t.height/a.length):0}this.left=t.left,this.right=t.right,this.top=t.top||i,this.height=t.height||r,this.bottom=t.bottom||i+(t.height||r),this.width=t.width||n,this.lineHeight=void 0!==e?e:t.lineHeight}function b(){}g.prototype.applyStyles=function(t,e){for(var r in e=e||this.div,t)t.hasOwnProperty(r)&&(e.style[r]=t[r])},g.prototype.formatStyle=function(t,e){return 0===t?0:t+e},y.prototype=i(g.prototype),y.prototype.constructor=y,v.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},v.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},v.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},v.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},v.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},v.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},v.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,r=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||r}},b.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},b.convertCueToDOMTree=function(t,e){return t&&e?d(t,e):null},b.processCues=function(t,e,r){if(!t||!e||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",r.appendChild(n),!function(t){for(var e=0;e=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return -1;for(var e=t.track,r=e.textTrackList,n=0,i=0;il&&(f=(f<0?-1:1)*(Math.ceil(l/c)*c)),o<0&&(f+=""===a.vertical?r.height:r.width,s=s.reverse()),i.move(p,f)}else{var h=i.lineHeight/r.height*100;switch(a.lineAlign){case"center":o-=h/2;break;case"end":o-=h}switch(a.vertical){case"":e.applyStyles({top:e.formatStyle(o,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(o,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(o,"%")})}s=["+y","-x","+x","-y"],i=new v(e)}var d=function(t,e){for(var i,a=new v(t),o=1,s=0;su&&(i=new v(t),o=u),t=new v(a)}return i||a}(i,s);e.move(d.toCSSCompatValues(r))}(0,r,o,a),i.displayState=r.div,a.push(v.getSimpleBoxPosition(r))}()},b.Parser=function(t,e,r){r||(r=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=r||new TextDecoder("utf8"),this.regionList=[]},b.Parser.prototype={reportOrThrowError:function(t){if(t instanceof a)this.onparsingerror&&this.onparsingerror(t);else throw t},parse:function(t){var e=this;function r(){for(var t=e.buffer,r=0;r")){e.cue.id=i;continue}case"CUE":try{!function(t,e,r){var n=t;function i(){var e=o(t);if(null===e)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function c(){t=t.replace(/^\s+/,"")}if(c(),e.startTime=i(),c(),"-->"!==t.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+n);t=t.substr(3),c(),e.endTime=i(),c(),function(t,e){var n=new s;u(t,function(t,e){switch(t){case"region":for(var i=r.length-1;i>=0;i--)if(r[i].id===e){n.set(t,r[i].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var a=e.split(","),o=a[0];n.integer(t,o),n.percent(t,o)&&n.set("snapToLines",!1),n.alt(t,o,["auto"]),2===a.length&&n.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=e.split(","),n.percent(t,a[0]),2===a.length&&n.alt("positionAlign",a[1],["start","center","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","center","end","left","right"])}},/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");try{e.line=n.get("line","auto")}catch(i){}e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100);try{e.align=n.get("align","center")}catch(a){e.align=n.get("align","middle")}try{e.position=n.get("position","auto")}catch(o){e.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}(i,e.cue,e.regionList)}catch(p){e.reportOrThrowError(p),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var h=-1!==i.indexOf("-->");if(!i||h&&(f=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+="\n"),e.cue.text+=i.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":i||(e.state="ID");continue}}catch(d){e.reportOrThrowError(d),"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new a(a.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},t.exports=b},22230:function(t){var e={"":1,lr:1,rl:1},r={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function n(t){return"string"==typeof t&&!!r[t.toLowerCase()]&&t.toLowerCase()}function i(t,r,i){this.hasBeenReset=!1;var a="",o=!1,s=t,u=r,c=i,f=null,l="",p=!0,h="auto",d="start",m="auto",g="auto",y=100,v="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return a},set:function(t){a=""+t}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(t){o=!!t}},startTime:{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t)throw TypeError("Start time must be set to a number.");s=t,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return u},set:function(t){if("number"!=typeof t)throw TypeError("End time must be set to a number.");u=t,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(t){c=""+t,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return f},set:function(t){f=t,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return l},set:function(t){var r="string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase();if(!1===r)throw SyntaxError("Vertical: an invalid or illegal direction string was specified.");l=r,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(t){p=!!t,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return h},set:function(t){if("number"!=typeof t&&"auto"!==t)throw SyntaxError("Line: an invalid number or illegal string was specified.");h=t,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return d},set:function(t){var e=n(t);e?(d=e,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return m},set:function(t){if(t<0||t>100)throw Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(t){var e=n(t);e?(g=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(t){if(t<0||t>100)throw Error("Size must be between 0 and 100.");y=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return v},set:function(t){var e=n(t);if(!e)throw SyntaxError("align: an invalid or illegal alignment string was specified.");v=e,this.hasBeenReset=!0}}}),this.displayState=void 0}i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=i},13710:function(t){var e={"":!0,up:!0};function r(t){return"number"==typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,n=3,i=0,a=100,o=0,s=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!r(e))throw Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return n},set:function(t){if("number"!=typeof t)throw TypeError("Lines must be set to a number.");n=t}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(t){if(!r(t))throw Error("RegionAnchorX must be between 0 and 100.");a=t}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(t){if(!r(t))throw Error("RegionAnchorY must be between 0 and 100.");i=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!r(t))throw Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!r(t))throw Error("ViewportAnchorX must be between 0 and 100.");o=t}},scroll:{enumerable:!0,get:function(){return u},set:function(t){var r="string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase();!1===r?console.warn("Scroll: an invalid or illegal string was specified."):u=r}}})}},5647:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(89611),i=r(78814);function a(t,e,r){return(a=(0,i.Z)()?Reflect.construct.bind():function(t,e,r){var i=[null];i.push.apply(i,e);var a=new(Function.bind.apply(t,i));return r&&(0,n.Z)(a,r.prototype),a}).apply(null,arguments)}},94578:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});var n=r(89611);function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,n.Z)(t,e)}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/8088.f07baa2645bf9ef0.js b/static/web/_next/static/chunks/8088.f8b90d813102e1d7.js similarity index 97% rename from static/web/_next/static/chunks/8088.f07baa2645bf9ef0.js rename to static/web/_next/static/chunks/8088.f8b90d813102e1d7.js index eed2df482..f98c1a041 100644 --- a/static/web/_next/static/chunks/8088.f07baa2645bf9ef0.js +++ b/static/web/_next/static/chunks/8088.f8b90d813102e1d7.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8088],{28088:function(O,$,r){r.r($),r.d($,{globalCompletion:function(){return y},localCompletionSource:function(){return X},python:function(){return T},pythonLanguage:function(){return U}});var e=r(53105),o=r(35524);let Q=new Set([23,47,48,255,63,121,54,55,230,60,61,58,59,71,142,143,146]),i=new e.Jq((O,$)=>{if(O.next<0)O.acceptToken(194);else if(10!=O.next&&13!=O.next);else if($.context.depth<0)O.acceptToken(192,1);else{O.advance();let r=0;for(;32==O.next||9==O.next;)O.advance(),r++;let e=10==O.next||13==O.next||35==O.next;O.acceptToken(e?193:191,-r)}},{contextual:!0,fallback:!0}),t=new e.Jq((O,$)=>{let r=$.context.depth;if(r<0)return;let e=O.peek(-1);if((10==e||13==e)&&$.context.depth>=0){let o=0,Q=0;for(;;){if(32==O.next)o++;else if(9==O.next)o+=8-o%8;else break;O.advance(),Q++}o!=r&&10!=O.next&&13!=O.next&&35!=O.next&&(oO.depth<0&&Q.has($)?O.parent:O,shift:(O,$,r,e)=>189==$?new a(O,function(O){let $=0;for(let r=0;rO.hash}),p=new e.Jq(O=>{for(let $=0;$<5;$++){if(O.next!="print".charCodeAt($))return;O.advance()}if(!/\w/.test(String.fromCharCode(O.next)))for(let r=0;;r++){let e=O.peek(r);if(32!=e&&9!=e){40!=e&&46!=e&&10!=e&&13!=e&&35!=e&&O.acceptToken(1);return}}}),W=(0,o.Gv)({'async "*" "**" FormatConversion FormatSpec':o.pJ.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":o.pJ.controlKeyword,"in not and or is del":o.pJ.operatorKeyword,"from def class global nonlocal lambda":o.pJ.definitionKeyword,import:o.pJ.moduleKeyword,"with as print":o.pJ.keyword,Boolean:o.pJ.bool,None:o.pJ.null,VariableName:o.pJ.variableName,"CallExpression/VariableName":o.pJ.function(o.pJ.variableName),"FunctionDefinition/VariableName":o.pJ.function(o.pJ.definition(o.pJ.variableName)),"ClassDefinition/VariableName":o.pJ.definition(o.pJ.className),PropertyName:o.pJ.propertyName,"CallExpression/MemberExpression/PropertyName":o.pJ.function(o.pJ.propertyName),Comment:o.pJ.lineComment,Number:o.pJ.number,String:o.pJ.string,FormatString:o.pJ.special(o.pJ.string),UpdateOp:o.pJ.updateOperator,ArithOp:o.pJ.arithmeticOperator,BitOp:o.pJ.bitwiseOperator,CompareOp:o.pJ.compareOperator,AssignOp:o.pJ.definitionOperator,Ellipsis:o.pJ.punctuation,At:o.pJ.meta,"( )":o.pJ.paren,"[ ]":o.pJ.squareBracket,"{ }":o.pJ.brace,".":o.pJ.derefOperator,", ;":o.pJ.separator}),n={__proto__:null,await:40,or:50,and:52,in:56,not:58,is:60,if:66,else:68,lambda:72,yield:90,from:92,async:98,for:100,None:152,True:154,False:154,del:168,pass:172,break:176,continue:180,return:184,raise:192,import:196,as:198,global:202,nonlocal:204,assert:208,elif:218,while:222,try:228,except:230,finally:232,with:236,def:240,class:250,match:261,case:267},x=e.WQ.deserialize({version:14,states:"!L`O`Q$IXOOO%fQ$I[O'#G|OOQ$IS'#Cm'#CmOOQ$IS'#Cn'#CnO'UQ$IWO'#ClO(wQ$I[O'#G{OOQ$IS'#G|'#G|OOQ$IS'#DS'#DSOOQ$IS'#G{'#G{O)eQ$IWO'#CsO)uQ$IWO'#DdO*VQ$IWO'#DhOOQ$IS'#Ds'#DsO*jO`O'#DsO*rOpO'#DsO*zO!bO'#DtO+VO#tO'#DtO+bO&jO'#DtO+mO,UO'#DtO-oQ$I[O'#GmOOQ$IS'#Gm'#GmO'UQ$IWO'#GlO/RQ$I[O'#GlOOQ$IS'#E]'#E]O/jQ$IWO'#E^OOQ$IS'#Gk'#GkO/tQ$IWO'#GjOOQ$IV'#Gj'#GjO0PQ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QS-q-O.yR/v/xU#|u-s/wR(p&b[gOr#n$n)c+cX!yX#^$U$XQ#WZQ$RvR$[|Q%c!zQ%j!}Q%p#RQ'e$|Q(Q%fQ(U%kQ(^%qQ(a%rQ*h(ZQ-P,PQ-u-QR.d-tQ$ZxQ'|%dR*_'}Q-t-OR/T.yR#QYR#VZR%R!jQ%P!jV)}'h*O+v!]!mP!o#j#w$Y$h$t$v$w$x$y$z${%f%k%q%r&e&}'d(j(u)Y*Z*d+Z,V.w/mR%U!lR%z#^Q(g%zR*w(hQ$e!RQ&l$XQ)_'OR+_)`Q#rlQ$^!OQ$a!PR&t$`Q(z&sR+Q(}Q(z&sQ+P(|R+Q(}R$c!QXpOr)c+cQ$j!UR'P$kQ$q!XR'Q$lR)u'^Q)s'^V,r+q,s-]Q-l,wQ.W-fR.X-gU-e,w-f-gQ.]-iQ.h-{Q.m.RU.o.T.p/PQ.t.YQ/S.uQ/U.zU/W.{/Y/bQ/c/[Q/g/aR/h/dR.[-hR.j-{",nodeNames:"⚠ print Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatConversion FormatSpec ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:267,context:s,nodeProps:[["group",-14,4,80,82,83,85,87,89,91,93,94,95,97,100,103,"Statement Statement",-22,6,16,19,23,38,47,48,54,55,58,59,60,61,62,65,68,69,70,74,75,76,77,"Expression",-10,105,107,110,112,113,117,119,124,126,129,"Statement",-9,134,135,138,139,141,142,143,144,145,"Pattern"],["openedBy",21,"(",52,"[",56,"{"],["closedBy",22,")",53,"]",57,"}"]],propSources:[W],skippedNodes:[0,2],repeatNodeCount:38,tokenData:"&JdMgR!^OX$}XY!&]Y[$}[]!&]]p$}pq!&]qr!(grs!,^st!IYtu$}uv$5[vw$7nwx$8zxy%'vyz%(|z{%*S{|%,r|}%.O}!O%/U!O!P%1k!P!Q%UZ&^7[&WW&f#tOr(}rs)}sw(}wx>wx#O(}#O#P2]#P#o(}#o#p:X#p#q(}#q#r2q#r~(}:Y?QX&^7[&WW&f#tOr>wrs?ms#O>w#O#PAP#P#o>w#o#p8Y#p#q>w#q#r6g#r~>w:Y?rX&^7[Or>wrs@_s#O>w#O#PAP#P#o>w#o#p8Y#p#q>w#q#r6g#r~>w:Y@dX&^7[Or>wrs-}s#O>w#O#PAP#P#o>w#o#p8Y#p#q>w#q#r6g#r~>w:YAUT&^7[O#o>w#o#p6g#p#q>w#q#r6g#r~>w`x#O!`x#O!gZ&WW&R,XOY!wZ]!Ad]^>w^r!Adrs!Bhs#O!Ad#O#P!C[#P#o!Ad#o#p!9f#p#q!Ad#q#r!7x#r~!AdEc!BoX&^7[&R,XOr>wrs@_s#O>w#O#PAP#P#o>w#o#p8Y#p#q>w#q#r6g#r~>wEc!CaT&^7[O#o!Ad#o#p!7x#p#q!Ad#q#r!7x#r~!AdGZ!CuT&^7[O#o!-l#o#p!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z`&d!bOr'Prs&;Wsw'Pwx(Rx#O'P#O#PAe#P#o'P#o#pEu#p#q'P#q#rAy#r~'PD]&;eX&^7[&TS&e,X&Z`&d!bOwGgwx,kx#OGg#O#PH_#P#oGg#o#pET#p#qGg#q#rD_#r~GgGk&<_Z&^7[&WW&ap&f#t&Y,XOrIqrs)}swIqwx&=Qx#OIq#O#PJs#P#oIq#o#p! T#p#qIq#q#rKX#r~IqGk&=]Z&^7[&WW&ap&f#tOrIqrs)}swIqwx&>Ox#OIq#O#PJs#P#oIq#o#p! T#p#qIq#q#rKX#r~IqFT&>]X&^7[&WW&c,X&ap&f#tOr!!urs?ms#O!!u#O#P!#m#P#o!!u#o#pNc#p#q!!u#q#rMm#r~!!uMg&?_c&^7[&TS&WW&Q&j&Z`&ap&d!b&f#t%m,XOr$}rs&9Ysw$}wx&x!i!t&+n!t!u&5j!u!}&+n!}#O$}#O#P!$R#P#R$}#R#S&+n#S#T$}#T#U&+n#U#V&5j#V#Y&+n#Y#Z&>x#Z#o&+n#o#p!%i#p#q$}#q#r!$g#r$g$}$g~&+nG{&CXZ!V,X&^7[&TS&WW&Z`&ap&d!b&f#tOr$}rs&Rsw$}wxHsx#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}n[O]||-1}],tokenPrec:7282});var q=r(59119),I=r(41113),w=r(34790);let d=new I.hr,S=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function Y(O){return($,r,e)=>{if(e)return!1;let o=$.node.getChild("VariableName");return o&&r(o,O),!0}}let l={FunctionDefinition:Y("function"),ClassDefinition:Y("class"),ForStatement(O,$,r){if(r){for(let e=O.node.firstChild;e;e=e.nextSibling)if("VariableName"==e.name)$(e,"variable");else if("in"==e.name)break}},ImportStatement(O,$){var r,e;let{node:o}=O,Q=(null===(r=o.firstChild)||void 0===r?void 0:r.name)=="from";for(let i=o.getChild("import");i;i=i.nextSibling)"VariableName"==i.name&&(null===(e=i.nextSibling)||void 0===e?void 0:e.name)!="as"&&$(i,Q?"variable":"namespace")},AssignStatement(O,$){for(let r=O.node.firstChild;r;r=r.nextSibling)if("VariableName"==r.name)$(r,"variable");else if(":"==r.name||"AssignOp"==r.name)break},ParamList(O,$){for(let r=null,e=O.node.firstChild;e;e=e.nextSibling)"VariableName"!=e.name||r&&/\*|AssignOp/.test(r.name)||$(e,"variable"),r=e},CapturePattern:Y("variable"),AsPattern:Y("variable"),__proto__:null},R=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,Z=["String","FormatString","Comment","PropertyName"];function X(O){let $=(0,q.qz)(O.state).resolveInner(O.pos,-1);if(Z.indexOf($.name)>-1)return null;let r="VariableName"==$.name||$.to-$.from<20&&R.test(O.state.sliceDoc($.from,$.to));if(!r&&!O.explicit)return null;let e=[];for(let o=$;o;o=o.parent)S.has(o.name)&&(e=e.concat(function O($,r){let e=d.get(r);if(e)return e;console.log("get scope for",r.name);let o=[],Q=!0;function i(O,r){let e=$.sliceString(O.from,O.to);o.push({label:e,type:r})}return r.cursor(I.vj.IncludeAnonymous).iterate(r=>{if(r.name){let e=l[r.name];if(e&&e(r,i,Q)||!Q&&S.has(r.name))return console.log("bail for",r.name),!1;Q=!1}else if(r.to-r.from>8192){for(let t of O($,r.node))o.push(t);return!1}}),d.set(r,o),o}(O.state.doc,o)));return{options:e,from:r?$.from:O.pos,validFor:R}}let f=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(O=>({label:O,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(O=>({label:O,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(O=>({label:O,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(O=>({label:O,type:"function"}))),m=[(0,w.Gn)("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),(0,w.Gn)("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),(0,w.Gn)("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),(0,w.Gn)("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),(0,w.Gn)("if ${}:\n \n",{label:"if",detail:"block",type:"keyword"}),(0,w.Gn)("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),(0,w.Gn)("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),(0,w.Gn)("import ${module}",{label:"import",detail:"statement",type:"keyword"}),(0,w.Gn)("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],y=(0,w.eC)(Z,(0,w.Mb)(f.concat(m)));function b(O,$){let r=O.lineIndent($.from),e=O.lineAt(O.pos,-1),o=e.from+e.text.length;return!/\S/.test(e.text)&&O.node.tor?null:r+O.unit}let U=q.qp.define({name:"python",parser:x.configure({props:[q.uj.add({Body(O){var $;return null!==($=b(O,O.node))&&void 0!==$?$:O.continue()},IfStatement:O=>/^\s*(else:|elif )/.test(O.textAfter)?O.baseIndent:O.continue(),TryStatement:O=>/^\s*(except |finally:|else:)/.test(O.textAfter)?O.baseIndent:O.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":(0,q.vw)({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":(0,q.vw)({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":(0,q.vw)({closing:"]"}),"String FormatString":()=>null,Script(O){if(O.pos+/\s*/.exec(O.textAfter)[0].length>=O.node.to){let $=null;for(let r=O.node,e=r.to;(r=r.lastChild)&&r.to==e;)"Body"==r.type.name&&($=r);if($){let o=b(O,$);if(null!=o)return o}}return O.continue()}}),q.x0.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":q.Dv,Body:(O,$)=>({from:O.from+1,to:O.to-(O.to==$.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function T(){return new q.ri(U,[U.data.of({autocomplete:X}),U.data.of({autocomplete:y})])}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8088],{28088:function(O,$,r){r.r($),r.d($,{globalCompletion:function(){return y},localCompletionSource:function(){return X},python:function(){return T},pythonLanguage:function(){return U}});var e=r(53105),o=r(35524);let Q=new Set([23,47,48,255,63,121,54,55,230,60,61,58,59,71,142,143,146]),i=new e.Jq((O,$)=>{if(O.next<0)O.acceptToken(194);else if(10!=O.next&&13!=O.next);else if($.context.depth<0)O.acceptToken(192,1);else{O.advance();let r=0;for(;32==O.next||9==O.next;)O.advance(),r++;let e=10==O.next||13==O.next||35==O.next;O.acceptToken(e?193:191,-r)}},{contextual:!0,fallback:!0}),t=new e.Jq((O,$)=>{let r=$.context.depth;if(r<0)return;let e=O.peek(-1);if((10==e||13==e)&&$.context.depth>=0){let o=0,Q=0;for(;;){if(32==O.next)o++;else if(9==O.next)o+=8-o%8;else break;O.advance(),Q++}o!=r&&10!=O.next&&13!=O.next&&35!=O.next&&(oO.depth<0&&Q.has($)?O.parent:O,shift:(O,$,r,e)=>189==$?new a(O,function(O){let $=0;for(let r=0;rO.hash}),p=new e.Jq(O=>{for(let $=0;$<5;$++){if(O.next!="print".charCodeAt($))return;O.advance()}if(!/\w/.test(String.fromCharCode(O.next)))for(let r=0;;r++){let e=O.peek(r);if(32!=e&&9!=e){40!=e&&46!=e&&10!=e&&13!=e&&35!=e&&O.acceptToken(1);return}}}),W=(0,o.Gv)({'async "*" "**" FormatConversion FormatSpec':o.pJ.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":o.pJ.controlKeyword,"in not and or is del":o.pJ.operatorKeyword,"from def class global nonlocal lambda":o.pJ.definitionKeyword,import:o.pJ.moduleKeyword,"with as print":o.pJ.keyword,Boolean:o.pJ.bool,None:o.pJ.null,VariableName:o.pJ.variableName,"CallExpression/VariableName":o.pJ.function(o.pJ.variableName),"FunctionDefinition/VariableName":o.pJ.function(o.pJ.definition(o.pJ.variableName)),"ClassDefinition/VariableName":o.pJ.definition(o.pJ.className),PropertyName:o.pJ.propertyName,"CallExpression/MemberExpression/PropertyName":o.pJ.function(o.pJ.propertyName),Comment:o.pJ.lineComment,Number:o.pJ.number,String:o.pJ.string,FormatString:o.pJ.special(o.pJ.string),UpdateOp:o.pJ.updateOperator,ArithOp:o.pJ.arithmeticOperator,BitOp:o.pJ.bitwiseOperator,CompareOp:o.pJ.compareOperator,AssignOp:o.pJ.definitionOperator,Ellipsis:o.pJ.punctuation,At:o.pJ.meta,"( )":o.pJ.paren,"[ ]":o.pJ.squareBracket,"{ }":o.pJ.brace,".":o.pJ.derefOperator,", ;":o.pJ.separator}),n={__proto__:null,await:40,or:50,and:52,in:56,not:58,is:60,if:66,else:68,lambda:72,yield:90,from:92,async:98,for:100,None:152,True:154,False:154,del:168,pass:172,break:176,continue:180,return:184,raise:192,import:196,as:198,global:202,nonlocal:204,assert:208,elif:218,while:222,try:228,except:230,finally:232,with:236,def:240,class:250,match:261,case:267},x=e.WQ.deserialize({version:14,states:"!L`O`Q$IXOOO%fQ$I[O'#G|OOQ$IS'#Cm'#CmOOQ$IS'#Cn'#CnO'UQ$IWO'#ClO(wQ$I[O'#G{OOQ$IS'#G|'#G|OOQ$IS'#DS'#DSOOQ$IS'#G{'#G{O)eQ$IWO'#CsO)uQ$IWO'#DdO*VQ$IWO'#DhOOQ$IS'#Ds'#DsO*jO`O'#DsO*rOpO'#DsO*zO!bO'#DtO+VO#tO'#DtO+bO&jO'#DtO+mO,UO'#DtO-oQ$I[O'#GmOOQ$IS'#Gm'#GmO'UQ$IWO'#GlO/RQ$I[O'#GlOOQ$IS'#E]'#E]O/jQ$IWO'#E^OOQ$IS'#Gk'#GkO/tQ$IWO'#GjOOQ$IV'#Gj'#GjO0PQ$IWO'#FPOOQ$IS'#GX'#GXO0UQ$IWO'#FOOOQ$IV'#Hx'#HxOOQ$IV'#Gi'#GiOOQ$IT'#Fh'#FhQ`Q$IXOOO'UQ$IWO'#CoO0dQ$IWO'#C{O0kQ$IWO'#DPO0yQ$IWO'#HQO1ZQ$I[O'#EQO'UQ$IWO'#EROOQ$IS'#ET'#ETOOQ$IS'#EV'#EVOOQ$IS'#EX'#EXO1oQ$IWO'#EZO2VQ$IWO'#E_O0PQ$IWO'#EaO2jQ$I[O'#EaO0PQ$IWO'#EdO/jQ$IWO'#EgO/jQ$IWO'#EkO/jQ$IWO'#EnO2uQ$IWO'#EpO2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z&sQ+P(|R+Q(}R$c!QXpOr)c+cQ$j!UR'P$kQ$q!XR'Q$lR)u'^Q)s'^V,r+q,s-]Q-l,wQ.W-fR.X-gU-e,w-f-gQ.]-iQ.h-{Q.m.RU.o.T.p/PQ.t.YQ/S.uQ/U.zU/W.{/Y/bQ/c/[Q/g/aR/h/dR.[-hR.j-{",nodeNames:"⚠ print Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatConversion FormatSpec ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:267,context:s,nodeProps:[["group",-14,4,80,82,83,85,87,89,91,93,94,95,97,100,103,"Statement Statement",-22,6,16,19,23,38,47,48,54,55,58,59,60,61,62,65,68,69,70,74,75,76,77,"Expression",-10,105,107,110,112,113,117,119,124,126,129,"Statement",-9,134,135,138,139,141,142,143,144,145,"Pattern"],["openedBy",21,"(",52,"[",56,"{"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u#O#P!#m#P#o!!u#o#pNc#p#q!!u#q#rMm#r~!!uMg&?_c&^7[&TS&WW&Q&j&Z`&ap&d!b&f#t%m,XOr$}rs&9Ysw$}wx&x!i!t&+n!t!u&5j!u!}&+n!}#O$}#O#P!$R#P#R$}#R#S&+n#S#T$}#T#U&+n#U#V&5j#V#Y&+n#Y#Z&>x#Z#o&+n#o#p!%i#p#q$}#q#r!$g#r$g$}$g~&+nG{&CXZ!V,X&^7[&TS&WW&Z`&ap&d!b&f#tOr$}rs&Rsw$}wxHsx#O$}#O#P!$R#P#o$}#o#p!%i#p#q$}#q#r!$g#r~$}n[O]||-1}],tokenPrec:7282});var q=r(59119),I=r(41113),w=r(34790);let d=new I.hr,S=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function Y(O){return($,r,e)=>{if(e)return!1;let o=$.node.getChild("VariableName");return o&&r(o,O),!0}}let l={FunctionDefinition:Y("function"),ClassDefinition:Y("class"),ForStatement(O,$,r){if(r){for(let e=O.node.firstChild;e;e=e.nextSibling)if("VariableName"==e.name)$(e,"variable");else if("in"==e.name)break}},ImportStatement(O,$){var r,e;let{node:o}=O,Q=(null===(r=o.firstChild)||void 0===r?void 0:r.name)=="from";for(let i=o.getChild("import");i;i=i.nextSibling)"VariableName"==i.name&&(null===(e=i.nextSibling)||void 0===e?void 0:e.name)!="as"&&$(i,Q?"variable":"namespace")},AssignStatement(O,$){for(let r=O.node.firstChild;r;r=r.nextSibling)if("VariableName"==r.name)$(r,"variable");else if(":"==r.name||"AssignOp"==r.name)break},ParamList(O,$){for(let r=null,e=O.node.firstChild;e;e=e.nextSibling)"VariableName"!=e.name||r&&/\*|AssignOp/.test(r.name)||$(e,"variable"),r=e},CapturePattern:Y("variable"),AsPattern:Y("variable"),__proto__:null},R=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,Z=["String","FormatString","Comment","PropertyName"];function X(O){let $=(0,q.qz)(O.state).resolveInner(O.pos,-1);if(Z.indexOf($.name)>-1)return null;let r="VariableName"==$.name||$.to-$.from<20&&R.test(O.state.sliceDoc($.from,$.to));if(!r&&!O.explicit)return null;let e=[];for(let o=$;o;o=o.parent)S.has(o.name)&&(e=e.concat(function O($,r){let e=d.get(r);if(e)return e;console.log("get scope for",r.name);let o=[],Q=!0;function i(O,r){let e=$.sliceString(O.from,O.to);o.push({label:e,type:r})}return r.cursor(I.vj.IncludeAnonymous).iterate(r=>{if(r.name){let e=l[r.name];if(e&&e(r,i,Q)||!Q&&S.has(r.name))return console.log("bail for",r.name),!1;Q=!1}else if(r.to-r.from>8192){for(let t of O($,r.node))o.push(t);return!1}}),d.set(r,o),o}(O.state.doc,o)));return{options:e,from:r?$.from:O.pos,validFor:R}}let f=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(O=>({label:O,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(O=>({label:O,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(O=>({label:O,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(O=>({label:O,type:"function"}))),m=[(0,w.Gn)("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),(0,w.Gn)("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),(0,w.Gn)("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),(0,w.Gn)("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),(0,w.Gn)("if ${}:\n \n",{label:"if",detail:"block",type:"keyword"}),(0,w.Gn)("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),(0,w.Gn)("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),(0,w.Gn)("import ${module}",{label:"import",detail:"statement",type:"keyword"}),(0,w.Gn)("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],y=(0,w.eC)(Z,(0,w.Mb)(f.concat(m)));function b(O,$){let r=O.lineIndent($.from),e=O.lineAt(O.pos,-1),o=e.from+e.text.length;return!/\S/.test(e.text)&&O.node.tor?null:r+O.unit}let U=q.qp.define({name:"python",parser:x.configure({props:[q.uj.add({Body:O=>{var $;return null!==($=b(O,O.node))&&void 0!==$?$:O.continue()},IfStatement:O=>/^\s*(else:|elif )/.test(O.textAfter)?O.baseIndent:O.continue(),TryStatement:O=>/^\s*(except |finally:|else:)/.test(O.textAfter)?O.baseIndent:O.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":(0,q.vw)({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":(0,q.vw)({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":(0,q.vw)({closing:"]"}),"String FormatString":()=>null,Script:O=>{if(O.pos+/\s*/.exec(O.textAfter)[0].length>=O.node.to){let $=null;for(let r=O.node,e=r.to;(r=r.lastChild)&&r.to==e;)"Body"==r.type.name&&($=r);if($){let o=b(O,$);if(null!=o)return o}}return O.continue()}}),q.x0.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":q.Dv,Body:(O,$)=>({from:O.from+1,to:O.to-(O.to==$.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function T(){return new q.ri(U,[U.data.of({autocomplete:X}),U.data.of({autocomplete:y})])}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/8245-76489876aab9eb67.js b/static/web/_next/static/chunks/8245-76489876aab9eb67.js new file mode 100644 index 000000000..b3b38d626 --- /dev/null +++ b/static/web/_next/static/chunks/8245-76489876aab9eb67.js @@ -0,0 +1,17 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8245],{92616:function(t){t.exports=function(){"use strict";function t(t){return"[object Array]"===Object.prototype.toString.call(t)}function e(t){return t instanceof Function}function n(t){return"[object Object]"===Object.prototype.toString.call(t)&&!e(t)&&t instanceof Object}function r(e,o){var i;for(i in o)"__proto__"!==i&&(n(o[i])||t(o[i])?(n(o[i])&&!n(e[i])&&(e[i]={}),t(o[i])&&!t(e[i])&&(e[i]=[]),r(e[i],o[i])):void 0!==o[i]&&(e[i]=o[i]))}function o(t,e){var n={};return r(n,t),r(n,e),n}var i=/^(\d\d\d\d)(-)?(\d\d)(-)?(\d\d)$/i;function a(t){return""+t}function s(t){return parseFloat(t)}function l(t){var e,n,r,o;if("object"!=typeof t){if("number"==typeof t)t=new Date(1e3*t);else{if(e=(t=""+t).match(i))return n=parseInt(e[1],10),r=parseInt(e[3],10)-1,o=parseInt(e[5],10),new Date(n,r,o);var a=t.replace(/ /,"T").replace(" ","").replace("UTC","Z");t=new Date(Date.parse(a)||t)}}return t}function c(e){if(!t(e)){var n,r=[];for(n in e)e.hasOwnProperty(n)&&r.push([n,e[n]]);e=r}return e}function u(t,e,n,r,i,a,s,l){return function(c,u,f){var h=c.data,p=o({},t);return p=o(p,f||{}),(c.singleSeriesFormat||"legend"in u)&&e(p,u.legend,c.singleSeriesFormat),u.title&&n(p,u.title),"min"in u?r(p,u.min):!function(t){var e,n,r;for(e=0;e=6}function x(t){return"number"==typeof t}var v=["bytes","KB","MB","GB","TB","PB","EB"];function M(t,e,n,r){t=t||"",n.prefix&&(e<0&&(e*=-1,t+="-"),t+=n.prefix);var o=n.suffix||"",i=n.precision,a=n.round;if(n.byteScale){var s,l=r?n.byteScale:e;l>=0x1000000000000000?(e/=0x1000000000000000,s=6):l>=0x4000000000000?(e/=0x4000000000000,s=5):l>=1099511627776?(e/=1099511627776,s=4):l>=1073741824?(e/=1073741824,s=3):l>=1048576?(e/=1048576,s=2):l>=1024?(e/=1024,s=1):s=0,void 0===i&&void 0===a&&(e>=1023.5&&s=1e3?4:3),o=" "+v[s]}if(void 0!==i&&void 0!==a)throw Error("Use either round or precision, not both");if(!r&&(void 0===i||(e=e.toPrecision(i),n.zeros||(e=parseFloat(e))),void 0!==a)){if(a<0){var c=Math.pow(10,-1*a);e=parseInt((1*e/c).toFixed(0))*c}else e=e.toFixed(a),n.zeros||(e=parseFloat(e))}if(n.thousands||n.decimal){var u=(e=""+e).split(".");e=u[0],n.thousands&&(e=e.replace(/\B(?=(\d{3})+(?!\d))/g,n.thousands)),u.length>1&&(e+=(n.decimal||".")+u[1])}return t+e+o}function w(t,e,n){return n in e?e[n]:n in t.options?t.options[n]:null}var z={maintainAspectRatio:!1,animation:!1,plugins:{legend:{},tooltip:{displayColors:!1,callbacks:{}},title:{font:{size:20},color:"#333"}},interaction:{}},_={scales:{y:{ticks:{maxTicksLimit:4},title:{font:{size:16},color:"#333"},grid:{}},x:{grid:{drawOnChartArea:!1},title:{font:{size:16},color:"#333"},time:{},ticks:{}}}},C=["#3366CC","#DC3912","#FF9900","#109618","#990099","#3B3EAC","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#329262","#5574A6","#651067"],k=function(t,e,n){void 0!==e?(t.plugins.legend.display=!!e,e&&!0!==e&&(t.plugins.legend.position=e)):n&&(t.plugins.legend.display=!1)},A=function(t,e){t.plugins.title.display=!0,t.plugins.title.text=e},O=function(t,e){null!==e&&(t.scales.x.min=s(e))},T=function(t,e){t.scales.x.max=s(e)},S=function(t,e){t.scales.x.stacked=!!e,t.scales.y.stacked=!!e},P=function(t,e){t.scales.x.title.display=!0,t.scales.x.title.text=e},E=function(t,e){t.scales.y.title.display=!0,t.scales.y.title.text=e},D=function(t,e){var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?"rgba("+parseInt(n[1],16)+", "+parseInt(n[2],16)+", "+parseInt(n[3],16)+", "+e+")":t},j=function(t){return null!=t},R=function(t,e,n){var r=Math.ceil(t.element.offsetWidth/4/e.labels.length);r>25?r=25:r<10&&(r=10),n.scales.x.ticks.callback||(n.scales.x.ticks.callback=function(t){return(t=""+this.getLabelForValue(t)).length>r?t.substring(0,r-2)+"...":t})},L=function(e,n,r){var o={prefix:e.options.prefix,suffix:e.options.suffix,thousands:e.options.thousands,decimal:e.options.decimal,precision:e.options.precision,round:e.options.round,zeros:e.options.zeros};if(e.options.bytes){var i=e.data;"pie"===r&&(i=[{data:i}]);for(var a=0,s=0;sa&&(a=l.data[c][1]);for(var u=1;a>=1024;)u*=1024,a/=1024;o.byteScale=u}if("pie"!==r){var f=n.scales.y;"bar"===r&&(f=n.scales.x),o.byteScale&&(f.ticks.stepSize||(f.ticks.stepSize=o.byteScale/2),f.ticks.maxTicksLimit||(f.ticks.maxTicksLimit=4)),f.ticks.callback||(f.ticks.callback=function(t){return M("",t,o,!0)})}if(!n.plugins.tooltip.callbacks.label){if("scatter"===r)n.plugins.tooltip.callbacks.label=function(t){var e=t.dataset.label||"";return e&&(e+=": "),e+"("+t.label+", "+t.formattedValue+")"};else if("bubble"===r)n.plugins.tooltip.callbacks.label=function(t){var e=t.dataset.label||"";e&&(e+=": ");var n=t.raw;return e+"("+n.x+", "+n.y+", "+n.v+")"};else if("pie"===r)n.plugins.tooltip.callbacks.label=function(e){var n=e.label;return t(n)?(n=n.slice(),n[0]+=": "):n+=": ",M(n,e.parsed,o)};else{var h="bar"===r?"x":"y";n.plugins.tooltip.callbacks.label=function(t){if(null!==t.parsed[h]){var e=t.dataset.label||"";return e&&(e+=": "),M(e,t.parsed[h],o)}}}}},F=u(o(z,_),k,A,function(t,e){null!==e&&(t.scales.y.min=s(e))},function(t,e){t.scales.y.max=s(e)},S,P,E),B=function(e,n,r){var i=[],a=[],c=e.options.colors||C,u=!0,f=!0,h=!0,m=!0,x=!0,v=!0,M=e.data,z=0;if("bubble"===r)for(var _=0;_z&&(z=k.data[A][2]);var O,T,S,P,E,R,L=[],F=[];if("bar"===r||"column"===r||"number"!==e.xtype&&"bubble"!==e.xtype){var B,I,N,W,H,Y=[];for(T=0;T0){var tt,te,tn,tr=(j(K)?l(K):a[0]).getTime(),to=(j(G)?l(G):a[0]).getTime();for(T=1;Tto&&(to=ti)}var ta=(to-tr)/864e5;if(!n.scales.x.time.unit&&(m||ta>3650?(n.scales.x.time.unit="year",tn=365):h||ta>300?(n.scales.x.time.unit="month",tn=30):u||ta>10?(n.scales.x.time.unit="day",tn=1):x||ta>.5?(n.scales.x.time.displayFormats={hour:"MMM d, h a"},n.scales.x.time.unit="hour",tn=1/24):v&&(n.scales.x.time.displayFormats={minute:"h:mm a"},n.scales.x.time.unit="minute",tn=1/24/60),tn&&ta>0)){var ts=e.element.offsetWidth;if(ts>0){var tl=Math.ceil(ta/tn/(ts/100));f&&1===tn&&(tl=7*Math.ceil(tl/7)),n.scales.x.time.stepSize=tl}}!n.scales.x.time.tooltipFormat&&(u?n.scales.x.time.tooltipFormat="PP":x?n.scales.x.time.tooltipFormat="MMM d, h a":v&&(n.scales.x.time.tooltipFormat="h:mm a"))}return{labels:a,datasets:i}},I=function(t){this.name="chartjs",this.library=t};I.prototype.renderLineChart=function(t,e){var n={};!t.options.max&&function(t){var e,n,r;for(e=0;e● '+M(this.series.name+": ",this.y,o)+"
"})},V=function(t){this.name="highcharts",this.library=t};V.prototype.renderLineChart=function(t,e){var n={};"areaspline"===(e=e||"spline")&&(n={plotOptions:{areaspline:{stacking:"normal"},area:{stacking:"normal"},series:{marker:{enabled:!1}}}}),!1===t.options.curve&&("areaspline"===e?e="area":"spline"===e&&(e="line"));var r,o,i,a=Y(t,t.options,n);"number"===t.xtype?a.xAxis.type=a.xAxis.type||"linear":a.xAxis.type="string"===t.xtype?"category":"datetime",a.chart.type||(a.chart.type=e),U(t,a,e);var s=t.data;for(o=0;o0)return!1;return!0}function tc(t,e,n){if(t.addEventListener)return t.addEventListener(e,n,!1),n;var r=function(){return n.call(t,window.event)};return t.attachEvent("on"+e,r),r}function tu(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)}function tf(t,e){if(t===e)return!1;for(;e&&e!==t;)e=e.parentNode;return e===t}to.prototype.renderLineChart=function(t){var e=this;this.waitForLoaded(t,function(){var n={};!1===t.options.curve&&(n.curveType="none"),!1===t.options.points&&(n.pointSize=0);var r=tn(t,t.options,n),o=e.createDataTable(t.data,t.xtype);e.drawChart(t,"LineChart",o,r)})},to.prototype.renderPieChart=function(t){var e=this;this.waitForLoaded(t,function(){var n={chartArea:{top:"10%",height:"80%"},legend:{}};t.options.colors&&(n.colors=t.options.colors),t.options.donut&&(n.pieHole=.5),"legend"in t.options&&J(n,t.options.legend),t.options.title&&Z(n,t.options.title);var r=o(o($,n),t.options.library||{}),i=new e.library.visualization.DataTable;i.addColumn("string",""),i.addColumn("number","Value"),i.addRows(t.data),e.drawChart(t,"PieChart",i,r)})},to.prototype.renderColumnChart=function(t){var e=this;this.waitForLoaded(t,function(){var n=tn(t,t.options),r=e.createDataTable(t.data,t.xtype);e.drawChart(t,"ColumnChart",r,n)})},to.prototype.renderBarChart=function(t){var e=this;this.waitForLoaded(t,function(){var n=u($,J,Z,q,K,G,tt,te)(t,t.options,{hAxis:{gridlines:{color:"#ccc"}}}),r=e.createDataTable(t.data,t.xtype);e.drawChart(t,"BarChart",r,n)})},to.prototype.renderAreaChart=function(t){var e=this;this.waitForLoaded(t,function(){var n=tn(t,t.options,{isStacked:!0,pointSize:0,areaOpacity:.5}),r=e.createDataTable(t.data,t.xtype);e.drawChart(t,"AreaChart",r,n)})},to.prototype.renderGeoChart=function(t){var e=this;this.waitForLoaded(t,"geochart",function(){var n=o(o($,{legend:"none",colorAxis:{colors:t.options.colors||["#f6c7b6","#ce502d"]}}),t.options.library||{}),r=new e.library.visualization.DataTable;r.addColumn("string",""),r.addColumn("number",t.options.label||"Value"),r.addRows(t.data),e.drawChart(t,"GeoChart",r,n)})},to.prototype.renderScatterChart=function(t){var e=this;this.waitForLoaded(t,function(){var n,r,o,i,a=tn(t,t.options,{}),s=t.data,l=[];for(n=0;n0)throw Error("No charting library found for "+t);throw Error("No charting libraries found - be sure to include one before your charts")})(t,n),n.options.download&&!n.__downloadAttached&&"chartjs"===n.adapter&&(o=(r=n).element,i=document.createElement("a"),!0===(a=r.options.download)?a={}:"string"==typeof a&&(a={filename:a}),i.download=a.filename||"chart.png",i.style.position="absolute",i.style.top="20px",i.style.right="20px",i.style.zIndex=1e3,i.style.lineHeight="20px",i.target="_blank",(s=document.createElement("img")).alt="Download",s.style.border="none",s.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABCFBMVEUAAADMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMywEsqxAAAAV3RSTlMAAQIDBggJCgsMDQ4PERQaHB0eISIjJCouLzE0OTo/QUJHSUpLTU5PUllhYmltcHh5foWLjI+SlaCio6atr7S1t7m6vsHHyM7R2tze5Obo7fHz9ff5+/1hlxK2AAAA30lEQVQYGUXBhVYCQQBA0TdYWAt2d3d3YWAHyur7/z9xgD16Lw0DW+XKx+1GgX+FRzM3HWQWrHl5N/oapW5RPe0PkBu+UYeICvozTWZVK23Ao04B79oJrOsJDOoxkZoQPWgX29pHpCZEk7rEvQYiNSFq1UMqvlCjJkRBS1R8hb00Vb/TajtBL7nTHE1X1vyMQF732dQhyF2o6SAwrzP06iUQzvwsArlnzcOdrgBhJyHa1QOgO9U1GsKuvjUTjavliZYQ8nNPapG6sap/3nrIdJ6bOWzmX/fy0XVpfzZP3S8OJT3g9EEiJwAAAABJRU5ErkJggg==",i.appendChild(s),o.style.position="relative",r.__downloadAttached=!0,r.__enterEvent=tc(o,"mouseover",function(t){var e=t.relatedTarget;e&&(e===this||tf(this,e))||!r.options.download||(i.href=r.toImage(a),o.appendChild(i))}),r.__leaveEvent=tc(o,"mouseout",function(t){var e=t.relatedTarget;e&&(e===this||tf(this,e))||!i.parentNode||i.parentNode.removeChild(i)}))}(this.__chartName(),this)},tz.prototype.__config=function(){return ty};var t_={LineChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return ta(this)},e.prototype.__chartName=function(){return"LineChart"},e}(tz),PieChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return ts(this)},e.prototype.__chartName=function(){return"PieChart"},e}(tz),ColumnChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return ta(this,null,!0)},e.prototype.__chartName=function(){return"ColumnChart"},e}(tz),BarChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return ta(this,null,!0)},e.prototype.__chartName=function(){return"BarChart"},e}(tz),AreaChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return ta(this)},e.prototype.__chartName=function(){return"AreaChart"},e}(tz),GeoChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return ts(this)},e.prototype.__chartName=function(){return"GeoChart"},e}(tz),ScatterChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return ta(this,"number")},e.prototype.__chartName=function(){return"ScatterChart"},e}(tz),BubbleChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return ta(this,"bubble")},e.prototype.__chartName=function(){return"BubbleChart"},e}(tz),Timeline:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){var t,e=this.rawData;for(t=0;tt(e,n,r,o),override:i=>t(e.override(i),n,r,o)};return new Proxy(i,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,n,r)=>eP(e,n,()=>(function(e,n,r){let{_proxy:o,_context:i,_subProxy:a,_descriptors:s}=e,l=o[n];return tr(l)&&s.isScriptable(n)&&(l=function(t,e,n,r){let{_proxy:o,_context:i,_subProxy:a,_stack:s}=n;if(s.has(t))throw Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);return s.add(t),e=e(i,a||r),s.delete(t),eS(t,e)&&(e=eD(o._scopes,o,t,e)),e}(n,l,e,r)),F(l)&&l.length&&(l=function(e,n,r,o){let{_proxy:i,_context:a,_subProxy:s,_descriptors:l}=r;if(tn(a.index)&&o(e))n=n[a.index%n.length];else if(B(n[0])){let c=n,u=i._scopes.filter(t=>t!==c);for(let f of(n=[],c)){let h=eD(u,i,e,f);n.push(t(h,a,s&&s[e],l))}}return n}(n,l,e,s.isIndexable)),eS(n,l)&&(l=t(l,i,a&&a[n],s)),l})(e,n,r)),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,r)=>(e[n]=r,delete t[n],!0)})}},a9:function(){return eA},aA:function(){return e4},aB:function(){return tQ},aC:function(){return e8},aD:function(){return el},aE:function(){return tk},aF:function(){return j},aG:function(){return tM},aH:function(){return tb},aI:function(){return tv},aJ:function(){return ty},aK:function(){return t_},aL:function(){return t8},aM:function(){return td},aN:function(){return eo},aO:function(){return tL},aP:function(){return tD},aa:function(){return eO},ab:function(){return q},ac:function(){return R},ad:function(){return tY},ae:function(){return eG},af:function(){return ea},ag:function(){return to},ah:function(){return Q},ai:function(){return ti},aj:function(){return tE},ak:function(){return ex},al:function(){return eH},am:function(){return nn},an:function(){return ne},ao:function(){return e5},ap:function(){return e6},aq:function(){return e2},ar:function(){return eh},as:function(){return ep},at:function(){return es},au:function(){return eg},av:function(){return ev},aw:function(){return eM},ax:function(){return nt},ay:function(){return tO},az:function(){return e3},b:function(){return F},c:function(){return t0},d:function(){return en},e:function(){return tK},f:function(){return tt},g:function(){return I},h:function(){return tn},i:function(){return B},j:function(){return ek},k:function(){return L},l:function(){return tB},m:function(){return H},n:function(){return Y},o:function(){return t3},p:function(){return tT},q:function(){return tX},r:function(){return tW},s:function(){return tg},t:function(){return tw},u:function(){return tI},v:function(){return W},w:function(){return t$},x:function(){return tx},y:function(){return eF},z:function(){return eZ}});let a=(t,e,n)=>Math.max(Math.min(t,n),e);function s(t){return a(i(2.55*t),0,255)}function l(t){return a(i(255*t),0,255)}function c(t){return a(i(t/2.55)/100,0,1)}function u(t){return a(i(100*t),0,100)}let f={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},h=[..."0123456789ABCDEF"],p=t=>h[15&t],d=t=>h[(240&t)>>4]+h[15&t],g=t=>(240&t)>>4==(15&t),y=t=>g(t.r)&&g(t.g)&&g(t.b)&&g(t.a),b=(t,e)=>t<255?e(t):"",m=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function x(t,e,n){let r=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function v(t,e,n){let r=(r,o=(r+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function M(t,e,n){let r;let o=x(t,1,.5);for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)o[r]*=1-e-n,o[r]+=e;return o}function w(t){let e,n,r;let o=t.r/255,i=t.g/255,a=t.b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=(s+l)/2;return s!==l&&(r=s-l,n=c>.5?r/(2-s-l):r/(s+l),e=60*(e=o===s?(i-a)/r+(it<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,T=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function S(t,e,n){if(t){let r=w(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=z(x,r,void 0,void 0),t.r=r[0],t.g=r[1],t.b=r[2]}}function P(t,e){return t?Object.assign(e||{},t):t}function E(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=l(t[3]))):(e=P(t,{r:0,g:0,b:0,a:1})).a=l(e.a),e}class D{constructor(t){let e;if(t instanceof D)return t;let n=typeof t;if("object"===n)e=E(t);else if("string"===n){var o,i;i=t.length,"#"===t[0]&&(4===i||5===i?o={r:255&17*f[t[1]],g:255&17*f[t[2]],b:255&17*f[t[3]],a:5===i?17*f[t[4]]:255}:(7===i||9===i)&&(o={r:f[t[1]]<<4|f[t[2]],g:f[t[3]]<<4|f[t[4]],b:f[t[5]]<<4|f[t[6]],a:9===i?f[t[7]]<<4|f[t[8]]:255})),e=o||function(t){r||((r=function(){let t,e,n,r,o;let i={},a=Object.keys(k),s=Object.keys(C);for(t=0;t>16&255,n>>8&255,255&n]}return i}()).transparent=[0,0,0,0]);let e=r[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||("r"===t.charAt(0)?function(t){let e,n,r;let o=A.exec(t),i=255;if(o){if(o[7]!==e){let l=+o[7];i=o[8]?s(l):a(255*l,0,255)}return e=+o[1],n=+o[3],r=+o[5],{r:e=255&(o[2]?s(e):a(e,0,255)),g:n=255&(o[4]?s(n):a(n,0,255)),b:r=255&(o[6]?s(r):a(r,0,255)),a:i}}}(t):function(t){let e;let n=m.exec(t),r=255;if(!n)return;n[5]!==e&&(r=n[6]?s(+n[5]):l(+n[5]));let o=_(+n[2]),i=+n[3]/100,a=+n[4]/100;return{r:(e="hwb"===n[1]?z(M,o,i,a):"hsv"===n[1]?z(v,o,i,a):z(x,o,i,a))[0],g:e[1],b:e[2],a:r}}(t))}this._rgb=e,this._valid=!!e}get valid(){return this._valid}get rgb(){var t=P(this._rgb);return t&&(t.a=c(t.a)),t}set rgb(t){this._rgb=E(t)}rgbString(){var t;return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${c(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0}hexString(){var t,e;return this._valid?(e=y(t=this._rgb)?p:d,t?"#"+e(t.r)+e(t.g)+e(t.b)+b(t.a,e):void 0):void 0}hslString(){return this._valid?function(t){if(!t)return;let e=w(t),n=e[0],r=u(e[1]),o=u(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${o}%, ${c(t.a)})`:`hsl(${n}, ${r}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){let n;let r=this.rgb,o=t.rgb,i=e===n?.5:e,a=2*i-1,s=r.a-o.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;n=1-l,r.r=255&l*r.r+n*o.r+.5,r.g=255&l*r.g+n*o.g+.5,r.b=255&l*r.b+n*o.b+.5,r.a=i*r.a+(1-i)*o.a,this.rgb=r}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){let r=T(c(t.r)),o=T(c(t.g)),i=T(c(t.b));return{r:l(O(r+n*(T(c(e.r))-r))),g:l(O(o+n*(T(c(e.g))-o))),b:l(O(i+n*(T(c(e.b))-i))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new D(this.rgb)}alpha(t){return this._rgb.a=l(t),this}clearer(t){let e=this._rgb;return e.a*=1-t,this}greyscale(){let t=this._rgb,e=i(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){let e=this._rgb;return e.a*=1+t,this}negate(){let t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return S(this._rgb,2,t),this}darken(t){return S(this._rgb,2,-t),this}saturate(t){return S(this._rgb,1,t),this}desaturate(t){return S(this._rgb,1,-t),this}rotate(t){var e,n;return(n=w(e=this._rgb))[0]=_(n[0]+t),n=z(x,n,void 0,void 0),e.r=n[0],e.g=n[1],e.b=n[2],this}}/*! + * Chart.js v4.1.0 + * https://www.chartjs.org + * (c) 2022 Chart.js Contributors + * Released under the MIT License + */function j(){}let R=(o=0,()=>o++);function L(t){return null==t}function F(t){if(Array.isArray&&Array.isArray(t))return!0;let e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function B(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function I(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function N(t,e){return I(t)?t:e}function W(t,e){return void 0===t?e:t}let H=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e,Y=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function U(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function V(t,e,n,r){let o,i,a;if(F(t)){if(i=t.length,r)for(o=i-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;ot,x:t=>t.x,y:t=>t.y};function tt(t,e){let n=G[e]||(G[e]=function(t){let e=function(t){let e=t.split("."),n=[],r="";for(let o of e)(r+=o).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(t);return t=>{for(let n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function te(t){return t.charAt(0).toUpperCase()+t.slice(1)}let tn=t=>void 0!==t,tr=t=>"function"==typeof t,to=(t,e)=>{if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0};function ti(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}let ta=Math.PI,ts=2*ta,tl=ts+ta,tc=Number.POSITIVE_INFINITY,tu=ta/180,tf=ta/2,th=ta/4,tp=2*ta/3,td=Math.log10,tg=Math.sign;function ty(t,e,n){return Math.abs(t-e)t-e).pop(),n}function tx(t){return!isNaN(parseFloat(t))&&isFinite(t)}function tv(t,e){let n=Math.round(t);return n-e<=t&&n+e>=t}function tM(t,e,n){let r,o,i;for(r=0,o=t.length;rl&&c=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function tD(t,e,n){let r;n=n||(n=>t[n]1;)n(r=i+o>>1)?i=r:o=r;return{lo:i,hi:o}}let tj=(t,e,n,r)=>tD(t,n,r?r=>{let o=t[r][e];return ot[r][e]tD(t,n,r=>t[r][e]>=n);function tL(t,e,n){let r=0,o=t.length;for(;rr&&t[o-1]>n;)o--;return r>0||o{let n="_onData"+te(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){let o=r.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"==typeof t[n]&&t[n](...e)}),o}})})}function tI(t,e){let n=t._chartjs;if(!n)return;let r=n.listeners,o=r.indexOf(e);-1!==o&&r.splice(o,1),r.length>0||(tF.forEach(e=>{delete t[e]}),delete t._chartjs)}function tN(t){let e,n;let r=new Set;for(e=0,n=t.length;e{r=!1,t.apply(e,n)}))}}function tY(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}let tU=t=>"start"===t?"left":"end"===t?"right":"center",tV=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,tQ=(t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e;function tX(t,e,n){let r=e.length,o=0,i=r;if(t._sorted){let{iScale:a,_parsed:s}=t,l=a.axis,{min:c,max:u,minDefined:f,maxDefined:h}=a.getUserBounds();f&&(o=tS(Math.min(tj(s,a.axis,c).lo,n?r:tj(e,l,a.getPixelForValue(c)).lo),0,r-1)),i=h?tS(Math.max(tj(s,a.axis,u,!0).hi+1,n?0:tj(e,l,a.getPixelForValue(u),!0).hi+1),o,r)-o:r-o}return{start:o,count:i}}function t$(t){let{xScale:e,yScale:n,_scaleRanges:r}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=o,!0;let i=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,o),i}let tJ=t=>0===t||1===t,tZ=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*ts/n)),tq=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*ts/n)+1,tK={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*tf)+1,easeOutSine:t=>Math.sin(t*tf),easeInOutSine:t=>-.5*(Math.cos(ta*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>tJ(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(-Math.pow(2,-10*(2*t-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>tJ(t)?t:tZ(t,.075,.3),easeOutElastic:t=>tJ(t)?t:tq(t,.075,.3),easeInOutElastic:t=>tJ(t)?t:t<.5?.5*tZ(2*t,.1125,.45):.5+.5*tq(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-tK.easeOutBounce(1-t),easeOutBounce:t=>t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375,easeInOutBounce:t=>t<.5?.5*tK.easeInBounce(2*t):.5*tK.easeOutBounce(2*t-1)+.5};function tG(t){if(t&&"object"==typeof t){let e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function t0(t){return tG(t)?t:new D(t)}function t1(t){return tG(t)?t:new D(t).saturate(.5).darken(.1).hexString()}let t2=["x","y","borderWidth","radius","tension"],t5=["color","borderColor","backgroundColor"],t6=new Map;function t3(t,e,n){return(function(t,e){e=e||{};let n=t+JSON.stringify(e),r=t6.get(n);return r||(r=new Intl.NumberFormat(t,e),t6.set(n,r)),r})(e,n).format(t)}let t4={values:t=>F(t)?t:""+t,numeric(t,e,n){let r;if(0===t)return"0";let o=this.chart.options.locale,i=t;if(n.length>1){let a;let s=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(s<1e-4||s>1e15)&&(r="scientific"),Math.abs(a=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value)>=1&&t!==Math.floor(t)&&(a=t-Math.floor(t)),i=a}let l=td(Math.abs(i)),c=Math.max(Math.min(-1*Math.floor(l),20),0),u={notation:r,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(u,this.options.ticks.format),t3(t,o,u)},logarithmic(t,e,n){if(0===t)return"0";let r=n[e].significand||t/Math.pow(10,Math.floor(td(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?t4.numeric.call(this,t,e,n):""}};var t8={formatters:t4};let t7=Object.create(null),t9=Object.create(null);function et(t,e){if(!e)return t;let n=e.split(".");for(let r=0,o=n.length;rt.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>t1(e.backgroundColor),this.hoverBorderColor=(t,e)=>t1(e.borderColor),this.hoverColor=(t,e)=>t1(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return ee(this,t,e)}get(t){return et(this,t)}describe(t,e){return ee(t9,t,e)}override(t,e){return ee(t7,t,e)}route(t,e,n,r){let o=et(this,t),i=et(this,n),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){let t=this[a],e=i[r];return B(t)?Object.assign({},e,t):W(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach(t=>t(this))}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:t5},numbers:{type:"number",properties:t2}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:t8.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function er(t,e,n,r,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,n.push(o)),i>r&&(r=i),r}function eo(t,e,n,r){let o,i,a,s,l;let c=(r=r||{}).data=r.data||{},u=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(c=r.data={},u=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let f=0,h=n.length;for(o=0;on.length){for(o=0;o0&&t.stroke()}}function ec(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&""!==i.strokeColor;for(t.save(),t.font=o.string,a=t,i.translation&&a.translate(i.translation[0],i.translation[1]),L(i.rotation)||a.rotate(i.rotation),i.color&&(a.fillStyle=i.color),i.textAlign&&(a.textAlign=i.textAlign),i.textBaseline&&(a.textBaseline=i.textBaseline),s=0;s+t||0;function ex(t,e){let n={},r=B(e),o=r?Object.keys(e):e,i=B(t)?r?n=>W(t[n],t[e[n]]):e=>t[e]:()=>t;for(let a of o)n[a]=em(i(a));return n}function ev(t){return ex(t,{top:"y",right:"x",bottom:"y",left:"x"})}function eM(t){return ex(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ew(t){let e=ev(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ez(t,e){t=t||{},e=e||en.font;let n=W(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let r=W(t.style,e.style);r&&!(""+r).match(eb)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);let o={family:W(t.family,e.family),lineHeight:function(t,e){let n=(""+t).match(ey);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}(W(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:W(t.weight,e.weight),string:""};return o.string=!o||L(o.size)||L(o.family)?null:(o.style?o.style+" ":"")+(o.weight?o.weight+" ":"")+o.size+"px "+o.family,o}function e_(t,e,n,r){let o,i,a,s=!0;for(o=0,i=t.length;on&&0===t?0:t+e;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function ek(t,e){return Object.assign(Object.create(t),e)}function eA(t,e=[""],n=t,r,o=()=>t[0]){tn(r)||(r=eR("_fallback",t));let i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:o,override:o=>eA([o,...t],e,n,r)};return new Proxy(i,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,r)=>eP(n,r,()=>(function(t,e,n,r){let o;for(let i of e)if(tn(o=eR(eT(i,t),n)))return eS(t,o)?eD(n,r,t,o):o})(r,e,t,n)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>eL(t).includes(e),ownKeys:t=>eL(t),set(t,e,n){let r=t._storage||(t._storage=o());return t[e]=r[e]=n,delete t._keys,!0}})}function eO(t,e={scriptable:!0,indexable:!0}){let{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:r,isScriptable:tr(n)?n:()=>n,isIndexable:tr(r)?r:()=>r}}let eT=(t,e)=>t?t+te(e):e,eS=(t,e)=>B(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function eP(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];let r=n();return t[e]=r,r}let eE=(t,e)=>!0===t?e:"string"==typeof t?tt(e,t):void 0;function eD(t,e,n,r){var o;let i=e._rootScopes,a=tr(o=e._fallback)?o(n,r):o,s=[...t,...i],l=new Set;l.add(r);let c=ej(l,s,n,a||n,r);return!(null===c||tn(a)&&a!==n&&null===(c=ej(l,s,a,c,r)))&&eA(Array.from(l),[""],i,a,()=>(function(t,e,n){let r=t._getTarget();e in r||(r[e]={});let o=r[e];return F(o)&&B(n)?n:o||{}})(e,n,r))}function ej(t,e,n,r,o){for(;n;)n=function(t,e,n,r,o){for(let i of e){let a=eE(n,i);if(a){var s;t.add(a);let l=tr(s=a._fallback)?s(n,o):s;if(tn(l)&&l!==n&&l!==r)return l}else if(!1===a&&tn(r)&&n!==r)return null}return!1}(t,e,n,r,o);return n}function eR(t,e){for(let n of e){if(!n)continue;let r=n[t];if(tn(r))return r}}function eL(t){let e=t._keys;return e||(e=t._keys=function(t){let e=new Set;for(let n of t)for(let r of Object.keys(n).filter(t=>!t.startsWith("_")))e.add(r);return Array.from(e)}(t._scopes)),e}function eF(t,e,n,r){let o,i,a;let{iScale:s}=t,{key:l="r"}=this._parsing,c=Array(r);for(o=0;oe"x"===t?"y":"x";function eW(t,e,n){return Math.max(Math.min(t,n),e)}function eH(t,e,n,r,o){let i,a,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){let n,r,o;let i=eN(e),a=t.length,s=Array(a).fill(0),l=Array(a),c=eI(t,0);for(n=0;nt.ownerDocument.defaultView.getComputedStyle(t,null),eX=["top","right","bottom","left"];function e$(t,e,n){let r={};n=n?"-"+n:"";for(let o=0;o<4;o++){let i=eX[o];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}let eJ=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function eZ(t,e){if("native"in t)return t;let{canvas:n,currentDevicePixelRatio:r}=e,o=eQ(n),i="border-box"===o.boxSizing,a=e$(o,"padding"),s=e$(o,"border","width"),{x:l,y:c,box:u}=function(t,e){let n,r;let o=t.touches,i=o&&o.length?o[0]:t,{offsetX:a,offsetY:s}=i,l=!1;if(eJ(a,s,t.target))n=a,r=s;else{let c=e.getBoundingClientRect();n=i.clientX-c.left,r=i.clientY-c.top,l=!0}return{x:n,y:r,box:l}}(t,n),f=a.left+(u&&s.left),h=a.top+(u&&s.top),{width:p,height:d}=e;return i&&(p-=a.width+s.width,d-=a.height+s.height),{x:Math.round((l-f)/p*n.width/r),y:Math.round((c-h)/d*n.height/r)}}let eq=t=>Math.round(10*t)/10;function eK(t,e,n,r){let o=eQ(t),i=e$(o,"margin"),a=eV(o.maxWidth,t,"clientWidth")||tc,s=eV(o.maxHeight,t,"clientHeight")||tc,l=function(t,e,n){let r,o;if(void 0===e||void 0===n){let i=eU(t);if(i){let a=i.getBoundingClientRect(),s=eQ(i),l=e$(s,"border","width"),c=e$(s,"padding");e=a.width-c.width-l.width,n=a.height-c.height-l.height,r=eV(s.maxWidth,i,"clientWidth"),o=eV(s.maxHeight,i,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||tc,maxHeight:o||tc}}(t,e,n),{width:c,height:u}=l;if("content-box"===o.boxSizing){let f=e$(o,"border","width"),h=e$(o,"padding");c-=h.width+f.width,u-=h.height+f.height}return c=Math.max(0,c-i.width),u=Math.max(0,r?Math.floor(c/r):u-i.height),c=eq(Math.min(c,a,l.maxWidth)),u=eq(Math.min(u,s,l.maxHeight)),c&&!u&&(u=eq(c/2)),(void 0!==e||void 0!==n)&&r&&l.height&&u>l.height&&(c=eq(Math.floor((u=l.height)*r))),{width:c,height:u}}function eG(t,e,n){let r=e||1,o=Math.floor(t.height*r),i=Math.floor(t.width*r);t.height=o/r,t.width=i/r;let a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||a.height!==o||a.width!==i)&&(t.currentDevicePixelRatio=r,a.height=o,a.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0)}let e0=function(){let t=!1;try{let e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(n){}return t}();function e1(t,e){let n=eQ(t).getPropertyValue(e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function e2(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function e5(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:"middle"===r?n<.5?t.y:e.y:"after"===r?n<1?t.y:e.y:n>0?e.y:t.y}}function e6(t,e,n,r){let o={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=e2(t,o,n),s=e2(o,i,n),l=e2(i,e,n),c=e2(a,s,n),u=e2(s,l,n);return e2(c,u,n)}function e3(t,e,n){var r;return t?(r=n,{x:t=>e+e+r-t,setWidth(t){r=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function e4(t,e){let n,r;("ltr"===e||"rtl"===e)&&(r=[(n=t.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function e8(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function e7(t){return"angle"===t?{between:tT,compare:tA,normalize:tO}:{between:tE,compare:(t,e)=>t-e,normalize:t=>t}}function e9({start:t,end:e,count:n,loop:r,style:o}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n==0,style:o}}function nt(t,e,n){let r,o,i;if(!n)return[t];let{property:a,start:s,end:l}=n,c=e.length,{compare:u,between:f,normalize:h}=e7(a),{start:p,end:d,loop:g,style:y}=function(t,e,n){let r;let{property:o,start:i,end:a}=n,{between:s,normalize:l}=e7(o),c=e.length,{start:u,end:f,loop:h}=t;if(h){for(u+=c,f+=c,r=0;rf(s,i,r)&&0!==u(s,i),M=()=>0===u(l,r)||f(l,i,r),w=()=>m||v(),z=()=>!m||M();for(let _=p,C=p;_<=d;++_)(o=e[_%c]).skip||(r=h(o[a]))===i||(m=f(r,s,l),null===x&&w()&&(x=0===u(r,s)?_:C),null!==x&&z()&&(b.push(e9({start:x,end:_,loop:g,count:c,style:y})),x=null),C=_,i=r);return null!==x&&b.push(e9({start:x,end:d,loop:g,count:c,style:y})),b}function ne(t,e){let n=[],r=t.segments;for(let o=0;oo&&t[i%e].skip;)i--;return i%=e,{start:o,end:i}}(n,o,i,r);if(!0===r)return nr(t,[{start:a,end:s,loop:i}],n,e);let l=!!t._fullLoop&&0===a&&s===o-1;return nr(t,function(t,e,n,r){let o;let i=t.length,a=[],s=e,l=t[e];for(o=e+1;o<=n;++o){let c=t[o%i];c.skip||c.stop?l.skip||(r=!1,a.push({start:e%i,end:(o-1)%i,loop:r}),e=s=c.stop?o:null):(s=o,l.skip&&(e=o)),l=c}return null!==s&&a.push({start:e%i,end:s%i,loop:r}),a}(n,a,s=6}function x(t){return"number"==typeof t}var v=["bytes","KB","MB","GB","TB","PB","EB"];function M(t,e,n,r){t=t||"",n.prefix&&(e<0&&(e*=-1,t+="-"),t+=n.prefix);var o=n.suffix||"",i=n.precision,a=n.round;if(n.byteScale){var s,l=r?n.byteScale:e;l>=0x1000000000000000?(e/=0x1000000000000000,s=6):l>=0x4000000000000?(e/=0x4000000000000,s=5):l>=1099511627776?(e/=1099511627776,s=4):l>=1073741824?(e/=1073741824,s=3):l>=1048576?(e/=1048576,s=2):l>=1024?(e/=1024,s=1):s=0,void 0===i&&void 0===a&&(e>=1023.5&&s=1e3?4:3),o=" "+v[s]}if(void 0!==i&&void 0!==a)throw Error("Use either round or precision, not both");if(!r&&(void 0===i||(e=e.toPrecision(i),n.zeros||(e=parseFloat(e))),void 0!==a)){if(a<0){var c=Math.pow(10,-1*a);e=parseInt((1*e/c).toFixed(0))*c}else e=e.toFixed(a),n.zeros||(e=parseFloat(e))}if(n.thousands||n.decimal){var u=(e=""+e).split(".");e=u[0],n.thousands&&(e=e.replace(/\B(?=(\d{3})+(?!\d))/g,n.thousands)),u.length>1&&(e+=(n.decimal||".")+u[1])}return t+e+o}function w(t,e,n){return n in e?e[n]:n in t.options?t.options[n]:null}var z={maintainAspectRatio:!1,animation:!1,plugins:{legend:{},tooltip:{displayColors:!1,callbacks:{}},title:{font:{size:20},color:"#333"}},interaction:{}},_={scales:{y:{ticks:{maxTicksLimit:4},title:{font:{size:16},color:"#333"},grid:{}},x:{grid:{drawOnChartArea:!1},title:{font:{size:16},color:"#333"},time:{},ticks:{}}}},C=["#3366CC","#DC3912","#FF9900","#109618","#990099","#3B3EAC","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#329262","#5574A6","#651067"],k=function(t,e,n){void 0!==e?(t.plugins.legend.display=!!e,e&&!0!==e&&(t.plugins.legend.position=e)):n&&(t.plugins.legend.display=!1)},A=function(t,e){t.plugins.title.display=!0,t.plugins.title.text=e},O=function(t,e){null!==e&&(t.scales.x.min=s(e))},T=function(t,e){t.scales.x.max=s(e)},S=function(t,e){t.scales.x.stacked=!!e,t.scales.y.stacked=!!e},P=function(t,e){t.scales.x.title.display=!0,t.scales.x.title.text=e},E=function(t,e){t.scales.y.title.display=!0,t.scales.y.title.text=e},D=function(t,e){var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?"rgba("+parseInt(n[1],16)+", "+parseInt(n[2],16)+", "+parseInt(n[3],16)+", "+e+")":t},j=function(t){return null!=t},R=function(t,e,n){var r=Math.ceil(t.element.offsetWidth/4/e.labels.length);r>25?r=25:r<10&&(r=10),n.scales.x.ticks.callback||(n.scales.x.ticks.callback=function(t){return(t=""+this.getLabelForValue(t)).length>r?t.substring(0,r-2)+"...":t})},L=function(e,n,r){var o={prefix:e.options.prefix,suffix:e.options.suffix,thousands:e.options.thousands,decimal:e.options.decimal,precision:e.options.precision,round:e.options.round,zeros:e.options.zeros};if(e.options.bytes){var i=e.data;"pie"===r&&(i=[{data:i}]);for(var a=0,s=0;sa&&(a=l.data[c][1]);for(var u=1;a>=1024;)u*=1024,a/=1024;o.byteScale=u}if("pie"!==r){var f=n.scales.y;"bar"===r&&(f=n.scales.x),o.byteScale&&(f.ticks.stepSize||(f.ticks.stepSize=o.byteScale/2),f.ticks.maxTicksLimit||(f.ticks.maxTicksLimit=4)),f.ticks.callback||(f.ticks.callback=function(t){return M("",t,o,!0)})}if(!n.plugins.tooltip.callbacks.label){if("scatter"===r)n.plugins.tooltip.callbacks.label=function(t){var e=t.dataset.label||"";return e&&(e+=": "),e+"("+t.label+", "+t.formattedValue+")"};else if("bubble"===r)n.plugins.tooltip.callbacks.label=function(t){var e=t.dataset.label||"";e&&(e+=": ");var n=t.raw;return e+"("+n.x+", "+n.y+", "+n.v+")"};else if("pie"===r)n.plugins.tooltip.callbacks.label=function(e){var n=e.label;return t(n)?(n=n.slice(),n[0]+=": "):n+=": ",M(n,e.parsed,o)};else{var h="bar"===r?"x":"y";n.plugins.tooltip.callbacks.label=function(t){if(null!==t.parsed[h]){var e=t.dataset.label||"";return e&&(e+=": "),M(e,t.parsed[h],o)}}}}},F=u(o(z,_),k,A,function(t,e){null!==e&&(t.scales.y.min=s(e))},function(t,e){t.scales.y.max=s(e)},S,P,E),B=function(e,n,r){var i=[],a=[],c=e.options.colors||C,u=!0,f=!0,h=!0,m=!0,x=!0,v=!0,M=e.data,z=0;if("bubble"===r)for(var _=0;_z&&(z=k.data[A][2]);var O,T,S,P,E,R,L=[],F=[];if("bar"===r||"column"===r||"number"!==e.xtype&&"bubble"!==e.xtype){var B,I,N,W,H,Y=[];for(T=0;T0){var tt,te,tn,tr=(j(K)?l(K):a[0]).getTime(),to=(j(G)?l(G):a[0]).getTime();for(T=1;Tto&&(to=ti)}var ta=(to-tr)/864e5;if(!n.scales.x.time.unit&&(m||ta>3650?(n.scales.x.time.unit="year",tn=365):h||ta>300?(n.scales.x.time.unit="month",tn=30):u||ta>10?(n.scales.x.time.unit="day",tn=1):x||ta>.5?(n.scales.x.time.displayFormats={hour:"MMM d, h a"},n.scales.x.time.unit="hour",tn=1/24):v&&(n.scales.x.time.displayFormats={minute:"h:mm a"},n.scales.x.time.unit="minute",tn=1/24/60),tn&&ta>0)){var ts=e.element.offsetWidth;if(ts>0){var tl=Math.ceil(ta/tn/(ts/100));f&&1===tn&&(tl=7*Math.ceil(tl/7)),n.scales.x.time.stepSize=tl}}!n.scales.x.time.tooltipFormat&&(u?n.scales.x.time.tooltipFormat="PP":x?n.scales.x.time.tooltipFormat="MMM d, h a":v&&(n.scales.x.time.tooltipFormat="h:mm a"))}return{labels:a,datasets:i}},I=function(t){this.name="chartjs",this.library=t};I.prototype.renderLineChart=function(t,e){var n={};!t.options.max&&function(t){var e,n,r;for(e=0;e● '+M(this.series.name+": ",this.y,o)+"
"})},V=function(t){this.name="highcharts",this.library=t};V.prototype.renderLineChart=function(t,e){var n={};"areaspline"===(e=e||"spline")&&(n={plotOptions:{areaspline:{stacking:"normal"},area:{stacking:"normal"},series:{marker:{enabled:!1}}}}),!1===t.options.curve&&("areaspline"===e?e="area":"spline"===e&&(e="line"));var r,o,i,a=Y(t,t.options,n);"number"===t.xtype?a.xAxis.type=a.xAxis.type||"linear":a.xAxis.type="string"===t.xtype?"category":"datetime",a.chart.type||(a.chart.type=e),U(t,a,e);var s=t.data;for(o=0;o0)return!1;return!0}function tc(t,e,n){if(t.addEventListener)return t.addEventListener(e,n,!1),n;var r=function(){return n.call(t,window.event)};return t.attachEvent("on"+e,r),r}function tu(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)}function tf(t,e){if(t===e)return!1;for(;e&&e!==t;)e=e.parentNode;return e===t}to.prototype.renderLineChart=function(t){var e=this;this.waitForLoaded(t,function(){var n={};!1===t.options.curve&&(n.curveType="none"),!1===t.options.points&&(n.pointSize=0);var r=tn(t,t.options,n),o=e.createDataTable(t.data,t.xtype);e.drawChart(t,"LineChart",o,r)})},to.prototype.renderPieChart=function(t){var e=this;this.waitForLoaded(t,function(){var n={chartArea:{top:"10%",height:"80%"},legend:{}};t.options.colors&&(n.colors=t.options.colors),t.options.donut&&(n.pieHole=.5),"legend"in t.options&&J(n,t.options.legend),t.options.title&&Z(n,t.options.title);var r=o(o($,n),t.options.library||{}),i=new e.library.visualization.DataTable;i.addColumn("string",""),i.addColumn("number","Value"),i.addRows(t.data),e.drawChart(t,"PieChart",i,r)})},to.prototype.renderColumnChart=function(t){var e=this;this.waitForLoaded(t,function(){var n=tn(t,t.options),r=e.createDataTable(t.data,t.xtype);e.drawChart(t,"ColumnChart",r,n)})},to.prototype.renderBarChart=function(t){var e=this;this.waitForLoaded(t,function(){var n=u($,J,Z,q,K,G,tt,te)(t,t.options,{hAxis:{gridlines:{color:"#ccc"}}}),r=e.createDataTable(t.data,t.xtype);e.drawChart(t,"BarChart",r,n)})},to.prototype.renderAreaChart=function(t){var e=this;this.waitForLoaded(t,function(){var n=tn(t,t.options,{isStacked:!0,pointSize:0,areaOpacity:.5}),r=e.createDataTable(t.data,t.xtype);e.drawChart(t,"AreaChart",r,n)})},to.prototype.renderGeoChart=function(t){var e=this;this.waitForLoaded(t,"geochart",function(){var n=o(o($,{legend:"none",colorAxis:{colors:t.options.colors||["#f6c7b6","#ce502d"]}}),t.options.library||{}),r=new e.library.visualization.DataTable;r.addColumn("string",""),r.addColumn("number",t.options.label||"Value"),r.addRows(t.data),e.drawChart(t,"GeoChart",r,n)})},to.prototype.renderScatterChart=function(t){var e=this;this.waitForLoaded(t,function(){var n,r,o,i,a=tn(t,t.options,{}),s=t.data,l=[];for(n=0;n0)throw Error("No charting library found for "+t);throw Error("No charting libraries found - be sure to include one before your charts")})(t,n),n.options.download&&!n.__downloadAttached&&"chartjs"===n.adapter&&(o=(r=n).element,i=document.createElement("a"),!0===(a=r.options.download)?a={}:"string"==typeof a&&(a={filename:a}),i.download=a.filename||"chart.png",i.style.position="absolute",i.style.top="20px",i.style.right="20px",i.style.zIndex=1e3,i.style.lineHeight="20px",i.target="_blank",(s=document.createElement("img")).alt="Download",s.style.border="none",s.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABCFBMVEUAAADMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMywEsqxAAAAV3RSTlMAAQIDBggJCgsMDQ4PERQaHB0eISIjJCouLzE0OTo/QUJHSUpLTU5PUllhYmltcHh5foWLjI+SlaCio6atr7S1t7m6vsHHyM7R2tze5Obo7fHz9ff5+/1hlxK2AAAA30lEQVQYGUXBhVYCQQBA0TdYWAt2d3d3YWAHyur7/z9xgD16Lw0DW+XKx+1GgX+FRzM3HWQWrHl5N/oapW5RPe0PkBu+UYeICvozTWZVK23Ao04B79oJrOsJDOoxkZoQPWgX29pHpCZEk7rEvQYiNSFq1UMqvlCjJkRBS1R8hb00Vb/TajtBL7nTHE1X1vyMQF732dQhyF2o6SAwrzP06iUQzvwsArlnzcOdrgBhJyHa1QOgO9U1GsKuvjUTjavliZYQ8nNPapG6sap/3nrIdJ6bOWzmX/fy0XVpfzZP3S8OJT3g9EEiJwAAAABJRU5ErkJggg==",i.appendChild(s),o.style.position="relative",r.__downloadAttached=!0,r.__enterEvent=tc(o,"mouseover",function(t){var e=t.relatedTarget;e&&(e===this||tf(this,e))||!r.options.download||(i.href=r.toImage(a),o.appendChild(i))}),r.__leaveEvent=tc(o,"mouseout",function(t){var e=t.relatedTarget;e&&(e===this||tf(this,e))||!i.parentNode||i.parentNode.removeChild(i)}))}(this.__chartName(),this)},tz.prototype.__config=function(){return ty};var t_={LineChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return ta(this)},e.prototype.__chartName=function(){return"LineChart"},e}(tz),PieChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return ts(this)},e.prototype.__chartName=function(){return"PieChart"},e}(tz),ColumnChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return ta(this,null,!0)},e.prototype.__chartName=function(){return"ColumnChart"},e}(tz),BarChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return ta(this,null,!0)},e.prototype.__chartName=function(){return"BarChart"},e}(tz),AreaChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return ta(this)},e.prototype.__chartName=function(){return"AreaChart"},e}(tz),GeoChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return ts(this)},e.prototype.__chartName=function(){return"GeoChart"},e}(tz),ScatterChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return ta(this,"number")},e.prototype.__chartName=function(){return"ScatterChart"},e}(tz),BubbleChart:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return ta(this,"bubble")},e.prototype.__chartName=function(){return"BubbleChart"},e}(tz),Timeline:function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){var t,e=this.rawData;for(t=0;tt(e,n,r,o),override:i=>t(e.override(i),n,r,o)};return new Proxy(i,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,n,r)=>eP(e,n,()=>(function(e,n,r){let{_proxy:o,_context:i,_subProxy:a,_descriptors:s}=e,l=o[n];return tr(l)&&s.isScriptable(n)&&(l=function(t,e,n,r){let{_proxy:o,_context:i,_subProxy:a,_stack:s}=n;if(s.has(t))throw Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);return s.add(t),e=e(i,a||r),s.delete(t),eS(t,e)&&(e=eD(o._scopes,o,t,e)),e}(n,l,e,r)),F(l)&&l.length&&(l=function(e,n,r,o){let{_proxy:i,_context:a,_subProxy:s,_descriptors:l}=r;if(tn(a.index)&&o(e))n=n[a.index%n.length];else if(B(n[0])){let c=n,u=i._scopes.filter(t=>t!==c);for(let f of(n=[],c)){let h=eD(u,i,e,f);n.push(t(h,a,s&&s[e],l))}}return n}(n,l,e,s.isIndexable)),eS(n,l)&&(l=t(l,i,a&&a[n],s)),l})(e,n,r)),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,r)=>(e[n]=r,delete t[n],!0)})}},a9:function(){return eA},aA:function(){return e4},aB:function(){return tQ},aC:function(){return e8},aD:function(){return el},aE:function(){return tk},aF:function(){return j},aG:function(){return tM},aH:function(){return tb},aI:function(){return tv},aJ:function(){return ty},aK:function(){return t_},aL:function(){return t8},aM:function(){return td},aN:function(){return eo},aO:function(){return tL},aP:function(){return tD},aa:function(){return eO},ab:function(){return q},ac:function(){return R},ad:function(){return tY},ae:function(){return eG},af:function(){return ea},ag:function(){return to},ah:function(){return Q},ai:function(){return ti},aj:function(){return tE},ak:function(){return ex},al:function(){return eH},am:function(){return nn},an:function(){return ne},ao:function(){return e5},ap:function(){return e6},aq:function(){return e2},ar:function(){return eh},as:function(){return ep},at:function(){return es},au:function(){return eg},av:function(){return ev},aw:function(){return eM},ax:function(){return nt},ay:function(){return tO},az:function(){return e3},b:function(){return F},c:function(){return t0},d:function(){return en},e:function(){return tK},f:function(){return tt},g:function(){return I},h:function(){return tn},i:function(){return B},j:function(){return ek},k:function(){return L},l:function(){return tB},m:function(){return H},n:function(){return Y},o:function(){return t3},p:function(){return tT},q:function(){return tX},r:function(){return tW},s:function(){return tg},t:function(){return tw},u:function(){return tI},v:function(){return W},w:function(){return t$},x:function(){return tx},y:function(){return eF},z:function(){return eZ}});let a=(t,e,n)=>Math.max(Math.min(t,n),e);function s(t){return a(i(2.55*t),0,255)}function l(t){return a(i(255*t),0,255)}function c(t){return a(i(t/2.55)/100,0,1)}function u(t){return a(i(100*t),0,100)}let f={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},h=[..."0123456789ABCDEF"],p=t=>h[15&t],d=t=>h[(240&t)>>4]+h[15&t],g=t=>(240&t)>>4==(15&t),y=t=>g(t.r)&&g(t.g)&&g(t.b)&&g(t.a),b=(t,e)=>t<255?e(t):"",m=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function x(t,e,n){let r=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function v(t,e,n){let r=(r,o=(r+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function M(t,e,n){let r;let o=x(t,1,.5);for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)o[r]*=1-e-n,o[r]+=e;return o}function w(t){let e,n,r;let o=t.r/255,i=t.g/255,a=t.b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=(s+l)/2;return s!==l&&(r=s-l,n=c>.5?r/(2-s-l):r/(s+l),e=60*(e=o===s?(i-a)/r+(it<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,T=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function S(t,e,n){if(t){let r=w(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=z(x,r,void 0,void 0),t.r=r[0],t.g=r[1],t.b=r[2]}}function P(t,e){return t?Object.assign(e||{},t):t}function E(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=l(t[3]))):(e=P(t,{r:0,g:0,b:0,a:1})).a=l(e.a),e}class D{constructor(t){let e;if(t instanceof D)return t;let n=typeof t;if("object"===n)e=E(t);else if("string"===n){var o,i;i=t.length,"#"===t[0]&&(4===i||5===i?o={r:255&17*f[t[1]],g:255&17*f[t[2]],b:255&17*f[t[3]],a:5===i?17*f[t[4]]:255}:(7===i||9===i)&&(o={r:f[t[1]]<<4|f[t[2]],g:f[t[3]]<<4|f[t[4]],b:f[t[5]]<<4|f[t[6]],a:9===i?f[t[7]]<<4|f[t[8]]:255})),e=o||function(t){r||((r=function(){let t,e,n,r,o;let i={},a=Object.keys(k),s=Object.keys(C);for(t=0;t>16&255,n>>8&255,255&n]}return i}()).transparent=[0,0,0,0]);let e=r[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||("r"===t.charAt(0)?function(t){let e,n,r;let o=A.exec(t),i=255;if(o){if(o[7]!==e){let l=+o[7];i=o[8]?s(l):a(255*l,0,255)}return e=+o[1],n=+o[3],r=+o[5],{r:e=255&(o[2]?s(e):a(e,0,255)),g:n=255&(o[4]?s(n):a(n,0,255)),b:r=255&(o[6]?s(r):a(r,0,255)),a:i}}}(t):function(t){let e;let n=m.exec(t),r=255;if(!n)return;n[5]!==e&&(r=n[6]?s(+n[5]):l(+n[5]));let o=_(+n[2]),i=+n[3]/100,a=+n[4]/100;return{r:(e="hwb"===n[1]?z(M,o,i,a):"hsv"===n[1]?z(v,o,i,a):z(x,o,i,a))[0],g:e[1],b:e[2],a:r}}(t))}this._rgb=e,this._valid=!!e}get valid(){return this._valid}get rgb(){var t=P(this._rgb);return t&&(t.a=c(t.a)),t}set rgb(t){this._rgb=E(t)}rgbString(){var t;return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${c(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0}hexString(){var t,e;return this._valid?(e=y(t=this._rgb)?p:d,t?"#"+e(t.r)+e(t.g)+e(t.b)+b(t.a,e):void 0):void 0}hslString(){return this._valid?function(t){if(!t)return;let e=w(t),n=e[0],r=u(e[1]),o=u(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${o}%, ${c(t.a)})`:`hsl(${n}, ${r}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){let n;let r=this.rgb,o=t.rgb,i=e===n?.5:e,a=2*i-1,s=r.a-o.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;n=1-l,r.r=255&l*r.r+n*o.r+.5,r.g=255&l*r.g+n*o.g+.5,r.b=255&l*r.b+n*o.b+.5,r.a=i*r.a+(1-i)*o.a,this.rgb=r}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){let r=T(c(t.r)),o=T(c(t.g)),i=T(c(t.b));return{r:l(O(r+n*(T(c(e.r))-r))),g:l(O(o+n*(T(c(e.g))-o))),b:l(O(i+n*(T(c(e.b))-i))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new D(this.rgb)}alpha(t){return this._rgb.a=l(t),this}clearer(t){let e=this._rgb;return e.a*=1-t,this}greyscale(){let t=this._rgb,e=i(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){let e=this._rgb;return e.a*=1+t,this}negate(){let t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return S(this._rgb,2,t),this}darken(t){return S(this._rgb,2,-t),this}saturate(t){return S(this._rgb,1,t),this}desaturate(t){return S(this._rgb,1,-t),this}rotate(t){var e,n;return(n=w(e=this._rgb))[0]=_(n[0]+t),n=z(x,n,void 0,void 0),e.r=n[0],e.g=n[1],e.b=n[2],this}}/*! - * Chart.js v4.1.0 - * https://www.chartjs.org - * (c) 2022 Chart.js Contributors - * Released under the MIT License - */ function j(){}let R=(o=0,()=>o++);function L(t){return null==t}function F(t){if(Array.isArray&&Array.isArray(t))return!0;let e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function B(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function I(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function N(t,e){return I(t)?t:e}function W(t,e){return void 0===t?e:t}let H=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e,Y=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function U(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function V(t,e,n,r){let o,i,a;if(F(t)){if(i=t.length,r)for(o=i-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;ot,x:t=>t.x,y:t=>t.y};function tt(t,e){let n=G[e]||(G[e]=function(t){let e=function(t){let e=t.split("."),n=[],r="";for(let o of e)(r+=o).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(t);return t=>{for(let n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function te(t){return t.charAt(0).toUpperCase()+t.slice(1)}let tn=t=>void 0!==t,tr=t=>"function"==typeof t,to=(t,e)=>{if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0};function ti(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}let ta=Math.PI,ts=2*ta,tl=ts+ta,tc=Number.POSITIVE_INFINITY,tu=ta/180,tf=ta/2,th=ta/4,tp=2*ta/3,td=Math.log10,tg=Math.sign;function ty(t,e,n){return Math.abs(t-e)t-e).pop(),n}function tx(t){return!isNaN(parseFloat(t))&&isFinite(t)}function tv(t,e){let n=Math.round(t);return n-e<=t&&n+e>=t}function tM(t,e,n){let r,o,i;for(r=0,o=t.length;rl&&c=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function tD(t,e,n){let r;n=n||(n=>t[n]1;)n(r=i+o>>1)?i=r:o=r;return{lo:i,hi:o}}let tj=(t,e,n,r)=>tD(t,n,r?r=>{let o=t[r][e];return ot[r][e]tD(t,n,r=>t[r][e]>=n);function tL(t,e,n){let r=0,o=t.length;for(;rr&&t[o-1]>n;)o--;return r>0||o{let n="_onData"+te(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){let o=r.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"==typeof t[n]&&t[n](...e)}),o}})})}function tI(t,e){let n=t._chartjs;if(!n)return;let r=n.listeners,o=r.indexOf(e);-1!==o&&r.splice(o,1),r.length>0||(tF.forEach(e=>{delete t[e]}),delete t._chartjs)}function tN(t){let e,n;let r=new Set;for(e=0,n=t.length;e{r=!1,t.apply(e,n)}))}}function tY(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}let tU=t=>"start"===t?"left":"end"===t?"right":"center",tV=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,tQ=(t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e;function tX(t,e,n){let r=e.length,o=0,i=r;if(t._sorted){let{iScale:a,_parsed:s}=t,l=a.axis,{min:c,max:u,minDefined:f,maxDefined:h}=a.getUserBounds();f&&(o=tS(Math.min(tj(s,a.axis,c).lo,n?r:tj(e,l,a.getPixelForValue(c)).lo),0,r-1)),i=h?tS(Math.max(tj(s,a.axis,u,!0).hi+1,n?0:tj(e,l,a.getPixelForValue(u),!0).hi+1),o,r)-o:r-o}return{start:o,count:i}}function t$(t){let{xScale:e,yScale:n,_scaleRanges:r}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=o,!0;let i=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,o),i}let tJ=t=>0===t||1===t,tZ=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*ts/n)),tq=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*ts/n)+1,tK={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*tf)+1,easeOutSine:t=>Math.sin(t*tf),easeInOutSine:t=>-.5*(Math.cos(ta*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>tJ(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(-Math.pow(2,-10*(2*t-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>tJ(t)?t:tZ(t,.075,.3),easeOutElastic:t=>tJ(t)?t:tq(t,.075,.3),easeInOutElastic:t=>tJ(t)?t:t<.5?.5*tZ(2*t,.1125,.45):.5+.5*tq(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-tK.easeOutBounce(1-t),easeOutBounce:t=>t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375,easeInOutBounce:t=>t<.5?.5*tK.easeInBounce(2*t):.5*tK.easeOutBounce(2*t-1)+.5};function tG(t){if(t&&"object"==typeof t){let e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function t0(t){return tG(t)?t:new D(t)}function t1(t){return tG(t)?t:new D(t).saturate(.5).darken(.1).hexString()}let t2=["x","y","borderWidth","radius","tension"],t5=["color","borderColor","backgroundColor"],t6=new Map;function t3(t,e,n){return(function(t,e){e=e||{};let n=t+JSON.stringify(e),r=t6.get(n);return r||(r=new Intl.NumberFormat(t,e),t6.set(n,r)),r})(e,n).format(t)}let t4={values:t=>F(t)?t:""+t,numeric(t,e,n){let r;if(0===t)return"0";let o=this.chart.options.locale,i=t;if(n.length>1){let a;let s=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(s<1e-4||s>1e15)&&(r="scientific"),Math.abs(a=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value)>=1&&t!==Math.floor(t)&&(a=t-Math.floor(t)),i=a}let l=td(Math.abs(i)),c=Math.max(Math.min(-1*Math.floor(l),20),0),u={notation:r,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(u,this.options.ticks.format),t3(t,o,u)},logarithmic(t,e,n){if(0===t)return"0";let r=n[e].significand||t/Math.pow(10,Math.floor(td(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?t4.numeric.call(this,t,e,n):""}};var t8={formatters:t4};let t7=Object.create(null),t9=Object.create(null);function et(t,e){if(!e)return t;let n=e.split(".");for(let r=0,o=n.length;rt.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>t1(e.backgroundColor),this.hoverBorderColor=(t,e)=>t1(e.borderColor),this.hoverColor=(t,e)=>t1(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return ee(this,t,e)}get(t){return et(this,t)}describe(t,e){return ee(t9,t,e)}override(t,e){return ee(t7,t,e)}route(t,e,n,r){let o=et(this,t),i=et(this,n),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){let t=this[a],e=i[r];return B(t)?Object.assign({},e,t):W(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach(t=>t(this))}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:t5},numbers:{type:"number",properties:t2}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:t8.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function er(t,e,n,r,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,n.push(o)),i>r&&(r=i),r}function eo(t,e,n,r){let o,i,a,s,l;let c=(r=r||{}).data=r.data||{},u=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(c=r.data={},u=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let f=0,h=n.length;for(o=0;on.length){for(o=0;o0&&t.stroke()}}function ec(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&""!==i.strokeColor;for(t.save(),t.font=o.string,a=t,i.translation&&a.translate(i.translation[0],i.translation[1]),L(i.rotation)||a.rotate(i.rotation),i.color&&(a.fillStyle=i.color),i.textAlign&&(a.textAlign=i.textAlign),i.textBaseline&&(a.textBaseline=i.textBaseline),s=0;s+t||0;function ex(t,e){let n={},r=B(e),o=r?Object.keys(e):e,i=B(t)?r?n=>W(t[n],t[e[n]]):e=>t[e]:()=>t;for(let a of o)n[a]=em(i(a));return n}function ev(t){return ex(t,{top:"y",right:"x",bottom:"y",left:"x"})}function eM(t){return ex(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ew(t){let e=ev(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ez(t,e){t=t||{},e=e||en.font;let n=W(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let r=W(t.style,e.style);r&&!(""+r).match(eb)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);let o={family:W(t.family,e.family),lineHeight:function(t,e){let n=(""+t).match(ey);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}(W(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:W(t.weight,e.weight),string:""};return o.string=!o||L(o.size)||L(o.family)?null:(o.style?o.style+" ":"")+(o.weight?o.weight+" ":"")+o.size+"px "+o.family,o}function e_(t,e,n,r){let o,i,a,s=!0;for(o=0,i=t.length;on&&0===t?0:t+e;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function ek(t,e){return Object.assign(Object.create(t),e)}function eA(t,e=[""],n=t,r,o=()=>t[0]){tn(r)||(r=eR("_fallback",t));let i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:r,_getTarget:o,override:o=>eA([o,...t],e,n,r)};return new Proxy(i,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,r)=>eP(n,r,()=>(function(t,e,n,r){let o;for(let i of e)if(tn(o=eR(eT(i,t),n)))return eS(t,o)?eD(n,r,t,o):o})(r,e,t,n)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>eL(t).includes(e),ownKeys:t=>eL(t),set(t,e,n){let r=t._storage||(t._storage=o());return t[e]=r[e]=n,delete t._keys,!0}})}function eO(t,e={scriptable:!0,indexable:!0}){let{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:r,isScriptable:tr(n)?n:()=>n,isIndexable:tr(r)?r:()=>r}}let eT=(t,e)=>t?t+te(e):e,eS=(t,e)=>B(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function eP(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];let r=n();return t[e]=r,r}let eE=(t,e)=>!0===t?e:"string"==typeof t?tt(e,t):void 0;function eD(t,e,n,r){var o;let i=e._rootScopes,a=tr(o=e._fallback)?o(n,r):o,s=[...t,...i],l=new Set;l.add(r);let c=ej(l,s,n,a||n,r);return!(null===c||tn(a)&&a!==n&&null===(c=ej(l,s,a,c,r)))&&eA(Array.from(l),[""],i,a,()=>(function(t,e,n){let r=t._getTarget();e in r||(r[e]={});let o=r[e];return F(o)&&B(n)?n:o||{}})(e,n,r))}function ej(t,e,n,r,o){for(;n;)n=function(t,e,n,r,o){for(let i of e){let a=eE(n,i);if(a){var s;t.add(a);let l=tr(s=a._fallback)?s(n,o):s;if(tn(l)&&l!==n&&l!==r)return l}else if(!1===a&&tn(r)&&n!==r)return null}return!1}(t,e,n,r,o);return n}function eR(t,e){for(let n of e){if(!n)continue;let r=n[t];if(tn(r))return r}}function eL(t){let e=t._keys;return e||(e=t._keys=function(t){let e=new Set;for(let n of t)for(let r of Object.keys(n).filter(t=>!t.startsWith("_")))e.add(r);return Array.from(e)}(t._scopes)),e}function eF(t,e,n,r){let o,i,a;let{iScale:s}=t,{key:l="r"}=this._parsing,c=Array(r);for(o=0;oe"x"===t?"y":"x";function eW(t,e,n){return Math.max(Math.min(t,n),e)}function eH(t,e,n,r,o){let i,a,s,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){let n,r,o;let i=eN(e),a=t.length,s=Array(a).fill(0),l=Array(a),c=eI(t,0);for(n=0;nt.ownerDocument.defaultView.getComputedStyle(t,null),eX=["top","right","bottom","left"];function e$(t,e,n){let r={};n=n?"-"+n:"";for(let o=0;o<4;o++){let i=eX[o];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}let eJ=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function eZ(t,e){if("native"in t)return t;let{canvas:n,currentDevicePixelRatio:r}=e,o=eQ(n),i="border-box"===o.boxSizing,a=e$(o,"padding"),s=e$(o,"border","width"),{x:l,y:c,box:u}=function(t,e){let n,r;let o=t.touches,i=o&&o.length?o[0]:t,{offsetX:a,offsetY:s}=i,l=!1;if(eJ(a,s,t.target))n=a,r=s;else{let c=e.getBoundingClientRect();n=i.clientX-c.left,r=i.clientY-c.top,l=!0}return{x:n,y:r,box:l}}(t,n),f=a.left+(u&&s.left),h=a.top+(u&&s.top),{width:p,height:d}=e;return i&&(p-=a.width+s.width,d-=a.height+s.height),{x:Math.round((l-f)/p*n.width/r),y:Math.round((c-h)/d*n.height/r)}}let eq=t=>Math.round(10*t)/10;function eK(t,e,n,r){let o=eQ(t),i=e$(o,"margin"),a=eV(o.maxWidth,t,"clientWidth")||tc,s=eV(o.maxHeight,t,"clientHeight")||tc,l=function(t,e,n){let r,o;if(void 0===e||void 0===n){let i=eU(t);if(i){let a=i.getBoundingClientRect(),s=eQ(i),l=e$(s,"border","width"),c=e$(s,"padding");e=a.width-c.width-l.width,n=a.height-c.height-l.height,r=eV(s.maxWidth,i,"clientWidth"),o=eV(s.maxHeight,i,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||tc,maxHeight:o||tc}}(t,e,n),{width:c,height:u}=l;if("content-box"===o.boxSizing){let f=e$(o,"border","width"),h=e$(o,"padding");c-=h.width+f.width,u-=h.height+f.height}return c=Math.max(0,c-i.width),u=Math.max(0,r?Math.floor(c/r):u-i.height),c=eq(Math.min(c,a,l.maxWidth)),u=eq(Math.min(u,s,l.maxHeight)),c&&!u&&(u=eq(c/2)),(void 0!==e||void 0!==n)&&r&&l.height&&u>l.height&&(c=eq(Math.floor((u=l.height)*r))),{width:c,height:u}}function eG(t,e,n){let r=e||1,o=Math.floor(t.height*r),i=Math.floor(t.width*r);t.height=o/r,t.width=i/r;let a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||a.height!==o||a.width!==i)&&(t.currentDevicePixelRatio=r,a.height=o,a.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0)}let e0=function(){let t=!1;try{let e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(n){}return t}();function e1(t,e){let n=eQ(t).getPropertyValue(e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function e2(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function e5(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:"middle"===r?n<.5?t.y:e.y:"after"===r?n<1?t.y:e.y:n>0?e.y:t.y}}function e6(t,e,n,r){let o={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=e2(t,o,n),s=e2(o,i,n),l=e2(i,e,n),c=e2(a,s,n),u=e2(s,l,n);return e2(c,u,n)}function e3(t,e,n){var r;return t?(r=n,{x:t=>e+e+r-t,setWidth(t){r=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function e4(t,e){let n,r;("ltr"===e||"rtl"===e)&&(r=[(n=t.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function e8(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function e7(t){return"angle"===t?{between:tT,compare:tA,normalize:tO}:{between:tE,compare:(t,e)=>t-e,normalize:t=>t}}function e9({start:t,end:e,count:n,loop:r,style:o}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n==0,style:o}}function nt(t,e,n){let r,o,i;if(!n)return[t];let{property:a,start:s,end:l}=n,c=e.length,{compare:u,between:f,normalize:h}=e7(a),{start:p,end:d,loop:g,style:y}=function(t,e,n){let r;let{property:o,start:i,end:a}=n,{between:s,normalize:l}=e7(o),c=e.length,{start:u,end:f,loop:h}=t;if(h){for(u+=c,f+=c,r=0;rf(s,i,r)&&0!==u(s,i),M=()=>0===u(l,r)||f(l,i,r),w=()=>m||v(),z=()=>!m||M();for(let _=p,C=p;_<=d;++_)(o=e[_%c]).skip||(r=h(o[a]))===i||(m=f(r,s,l),null===x&&w()&&(x=0===u(r,s)?_:C),null!==x&&z()&&(b.push(e9({start:x,end:_,loop:g,count:c,style:y})),x=null),C=_,i=r);return null!==x&&b.push(e9({start:x,end:d,loop:g,count:c,style:y})),b}function ne(t,e){let n=[],r=t.segments;for(let o=0;oo&&t[i%e].skip;)i--;return i%=e,{start:o,end:i}}(n,o,i,r);if(!0===r)return nr(t,[{start:a,end:s,loop:i}],n,e);let l=!!t._fullLoop&&0===a&&s===o-1;return nr(t,function(t,e,n,r){let o;let i=t.length,a=[],s=e,l=t[e];for(o=e+1;o<=n;++o){let c=t[o%i];c.skip||c.stop?l.skip||(r=!1,a.push({start:e%i,end:(o-1)%i,loop:r}),e=s=c.stop?o:null):(s=o,l.skip&&(e=o)),l=c}return null!==s&&a.push({start:e%i,end:s%i,loop:r}),a}(n,a,st.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},y=f.forwardRef(function(e,t){var r,l,g,y=f.useContext(v),b=f.useState(1),w=(0,i.Z)(b,2),Z=w[0],x=w[1],C=f.useState(!1),E=(0,i.Z)(C,2),O=E[0],N=E[1],P=f.useState(!0),_=(0,i.Z)(P,2),j=_[0],z=_[1],S=f.useRef(null),k=f.useRef(null),M=(0,u.sQ)(t,S),R=f.useContext(d.E_).getPrefixCls,L=function(){if(k.current&&S.current){var t=k.current.offsetWidth,r=S.current.offsetWidth;if(0!==t&&0!==r){var n=e.gap,a=void 0===n?4:n;2*at.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},d=["xs","sm","md","lg","xl","xxl"],p=c.forwardRef(function(e,t){var r,i=c.useContext(s.E_),p=i.getPrefixCls,m=i.direction,v=c.useContext(u.Z),g=v.gutter,h=v.wrap,y=v.supportFlexGap,b=e.prefixCls,w=e.span,Z=e.order,x=e.offset,C=e.push,E=e.pull,O=e.className,N=e.children,P=e.flex,_=e.style,j=f(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),z=p("col",b),S={};d.forEach(function(t){var r,i={},l=e[t];"number"==typeof l?i.span=l:"object"===(0,o.Z)(l)&&(i=l||{}),delete j[t],S=(0,a.Z)((0,a.Z)({},S),(r={},(0,n.Z)(r,"".concat(z,"-").concat(t,"-").concat(i.span),void 0!==i.span),(0,n.Z)(r,"".concat(z,"-").concat(t,"-order-").concat(i.order),i.order||0===i.order),(0,n.Z)(r,"".concat(z,"-").concat(t,"-offset-").concat(i.offset),i.offset||0===i.offset),(0,n.Z)(r,"".concat(z,"-").concat(t,"-push-").concat(i.push),i.push||0===i.push),(0,n.Z)(r,"".concat(z,"-").concat(t,"-pull-").concat(i.pull),i.pull||0===i.pull),(0,n.Z)(r,"".concat(z,"-rtl"),"rtl"===m),r))});var k=l()(z,(r={},(0,n.Z)(r,"".concat(z,"-").concat(w),void 0!==w),(0,n.Z)(r,"".concat(z,"-order-").concat(Z),Z),(0,n.Z)(r,"".concat(z,"-offset-").concat(x),x),(0,n.Z)(r,"".concat(z,"-push-").concat(C),C),(0,n.Z)(r,"".concat(z,"-pull-").concat(E),E),r),O,S),M={};if(g&&g[0]>0){var R=g[0]/2;M.paddingLeft=R,M.paddingRight=R}if(g&&g[1]>0&&!y){var L=g[1]/2;M.paddingTop=L,M.paddingBottom=L}return P&&(M.flex="number"==typeof P?"".concat(P," ").concat(P," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(P)?"0 0 ".concat(P):P,!1!==h||M.minWidth||(M.minWidth=0)),c.createElement("div",(0,a.Z)({},j,{style:(0,a.Z)((0,a.Z)({},M),_),className:k,ref:t}),N)});t.Z=p},92820:function(e,t,r){"use strict";var n=r(87462),a=r(4942),o=r(71002),i=r(97685),l=r(94184),c=r.n(l),s=r(67294),u=r(53124),f=r(98082),d=r(24308),p=r(93355),m=r(99134),v=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function g(e,t){var r=s.useState("string"==typeof e?e:""),n=(0,i.Z)(r,2),a=n[0],l=n[1],c=function(){if("object"===(0,o.Z)(e))for(var r=0;r0?-(B[0]/2):void 0,q=null!=B[1]&&B[1]>0?-(B[1]/2):void 0;if(G&&(F.marginLeft=G,F.marginRight=G),H){var U=(0,i.Z)(B,2);F.rowGap=U[1]}else q&&(F.marginTop=q,F.marginBottom=q);var X=(0,i.Z)(B,2),Y=X[0],J=X[1],$=s.useMemo(function(){return{gutter:[Y,J],wrap:E,supportFlexGap:H}},[Y,J,E,H]);return s.createElement(m.Z.Provider,{value:$},s.createElement("div",(0,n.Z)({},O,{className:W,style:(0,n.Z)((0,n.Z)({},F),w),ref:t}),Z))});t.Z=h},79216:function(e,t,r){"use strict";r.d(t,{Z:function(){return el}});var n=r(87462),a=r(71002),o=r(99611),i=r(1413),l=r(4942),c=r(97685),s=r(45987),u=r(67294),f=r(94184),d=r.n(f),p=r(27678),m=r(21770),v=r(2788),g=r(38425),h=r(62874),y=r(64019),b=r(15105),w=r(80334),Z=r(75164);function x(e,t,r,n){var a=t+r,o=(r-n)/2;if(r>n){if(t>0)return(0,l.Z)({},e,o);if(t<0&&an)return(0,l.Z)({},e,t<0?o:-o);return{}}var C=["visible","onVisibleChange","getContainer","current","countRender"],E=u.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}},rootClassName:""}),O=E.Provider,N=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","getContainer","countRender","scaleStep","transitionName","maskTransitionName"],P=u.useState,_=u.useEffect,j=u.useCallback,z=u.useRef,S=u.useContext,k={x:0,y:0},M=function(e){var t,r,a,o,f,m,C,O=e.prefixCls,M=e.src,R=e.alt,L=e.onClose,I=(e.afterClose,e.visible),D=e.icons,A=void 0===D?{}:D,H=e.rootClassName,T=e.getContainer,V=e.countRender,B=e.scaleStep,W=void 0===B?.5:B,F=e.transitionName,G=e.maskTransitionName,q=void 0===G?"fade":G,U=(0,s.Z)(e,N),X=A.rotateLeft,Y=A.rotateRight,J=A.zoomIn,$=A.zoomOut,K=A.close,Q=A.left,ee=A.right,et=P(1),er=(0,c.Z)(et,2),en=er[0],ea=er[1],eo=P(0),ei=(0,c.Z)(eo,2),el=ei[0],ec=ei[1],es=(t=u.useRef(null),r=u.useState(k),o=(a=(0,c.Z)(r,2))[0],f=a[1],m=u.useRef([]),u.useEffect(function(){return function(){return t.current&&Z.Z.cancel(t.current)}},[]),[o,function(e){null===t.current&&(m.current=[],t.current=(0,Z.Z)(function(){f(function(e){var r=e;return m.current.forEach(function(e){r=(0,i.Z)((0,i.Z)({},r),e)}),t.current=null,r})})),m.current.push(e)}]),eu=(0,c.Z)(es,2),ef=eu[0],ed=eu[1],ep=z(),em=z({originX:0,originY:0,deltaX:0,deltaY:0}),ev=P(!1),eg=(0,c.Z)(ev,2),eh=eg[0],ey=eg[1],eb=S(E),ew=eb.previewUrls,eZ=eb.current,ex=eb.isPreviewGroup,eC=eb.setCurrent,eE=ew.size,eO=Array.from(ew.keys()),eN=eO.indexOf(eZ),eP=ex?ew.get(eZ):M,e_=ex&&eE>1,ej=P({wheelDirection:0}),ez=(0,c.Z)(ej,2),eS=ez[0],ek=ez[1],eM=function(){ea(function(e){return e+W}),ed(k)},eR=function(){en>1&&ea(function(e){return e-W}),ed(k)},eL=d()((0,l.Z)({},"".concat(O,"-moving"),eh)),eI="".concat(O,"-operations-operation"),eD="".concat(O,"-operations-icon"),eA=function(){if(I&&eh){var e,t,r,n,a,o,l=ep.current.offsetWidth*en,c=ep.current.offsetHeight*en,s=ep.current.getBoundingClientRect(),u=s.left,f=s.top,d=el%180!=0;ey(!1);var m=(e=d?c:l,t=d?l:c,n=(r=(0,p.g1)()).width,a=r.height,o=null,e<=n&&t<=a?o={x:0,y:0}:(e>n||t>a)&&(o=(0,i.Z)((0,i.Z)({},x("x",u,e,n)),x("y",f,t,a))),o);m&&ed((0,i.Z)({},m))}},eH=function(e){I&&eh&&ed({x:e.pageX-em.current.deltaX,y:e.pageY-em.current.deltaY})},eT=function(e){I&&(e.preventDefault(),ek({wheelDirection:e.deltaY}))},eV=j(function(e){I&&e_&&(e.keyCode===b.Z.LEFT?eN>0&&eC(eO[eN-1]):e.keyCode===b.Z.RIGHT&&eN0?eR():e<0&&eM()},[eS]),_(function(){var e,t,r=(0,y.Z)(window,"mouseup",eA,!1),n=(0,y.Z)(window,"mousemove",eH,!1),a=(0,y.Z)(window,"wheel",eT,{passive:!1}),o=(0,y.Z)(window,"keydown",eV,!1);try{window.top!==window.self&&(e=(0,y.Z)(window.top,"mouseup",eA,!1),t=(0,y.Z)(window.top,"mousemove",eH,!1))}catch(i){(0,w.Kp)(!1,"[rc-image] ".concat(i))}return function(){r.remove(),n.remove(),a.remove(),o.remove(),null==e||e.remove(),null==t||t.remove()}},[I,eh,eV]);var eB=u.createElement(u.Fragment,null,e_&&u.createElement("div",{className:d()("".concat(O,"-switch-left"),(0,l.Z)({},"".concat(O,"-switch-left-disabled"),0===eN)),onClick:function(e){e.preventDefault(),e.stopPropagation(),eN>0&&eC(eO[eN-1])}},Q),e_&&u.createElement("div",{className:d()("".concat(O,"-switch-right"),(0,l.Z)({},"".concat(O,"-switch-right-disabled"),eN===eE-1)),onClick:function(e){e.preventDefault(),e.stopPropagation(),eN=1&&u.createElement("li",{className:"".concat(O,"-operations-progress")},null!==(C=null==V?void 0:V(eN+1,eE))&&void 0!==C?C:"".concat(eN+1," / ").concat(eE)),[{icon:K,onClick:L,type:"close"},{icon:J,onClick:eM,type:"zoomIn"},{icon:$,onClick:eR,type:"zoomOut",disabled:1===en},{icon:Y,onClick:function(){ec(function(e){return e+90})},type:"rotateRight"},{icon:X,onClick:function(){ec(function(e){return e-90})},type:"rotateLeft"}].map(function(e){var t,r=e.icon,n=e.onClick,a=e.type,o=e.disabled;return u.createElement("li",{className:d()(eI,(t={},(0,l.Z)(t,"".concat(O,"-operations-operation-").concat(a),!0),(0,l.Z)(t,"".concat(O,"-operations-operation-disabled"),!!o),t)),onClick:n,key:a},u.isValidElement(r)?u.cloneElement(r,{className:eD}):r)})));return u.createElement(u.Fragment,null,u.createElement(g.Z,(0,n.Z)({transitionName:void 0===F?"zoom":F,maskTransitionName:q,closable:!1,keyboard:!0,prefixCls:O,onClose:L,afterClose:function(){ea(1),ec(0),ed(k)},visible:I,wrapClassName:eL,rootClassName:H,getContainer:T},U),u.createElement("div",{className:"".concat(O,"-img-wrapper"),style:{transform:"translate3d(".concat(ef.x,"px, ").concat(ef.y,"px, 0)")}},u.createElement("img",{width:e.width,height:e.height,onMouseDown:function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),em.current.deltaX=e.pageX-ef.x,em.current.deltaY=e.pageY-ef.y,em.current.originX=ef.x,em.current.originY=ef.y,ey(!0))},onDoubleClick:function(){I&&(1!==en&&ea(1),(ef.x!==k.x||ef.y!==k.y)&&ed(k))},ref:ep,className:"".concat(O,"-img"),src:eP,alt:R,style:{transform:"scale3d(".concat(en,", ").concat(en,", 1) rotate(").concat(el,"deg)")}}))),u.createElement(h.Z,{visible:I,motionName:q},function(e){var t=e.className,r=e.style;return u.createElement(v.Z,{open:!0,getContainer:null!=T?T:document.body},u.createElement("div",{className:d()("".concat(O,"-operations-wrapper"),t,H),style:r},eB))}))},R=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","useMap","draggable"],L=["src","visible","onVisibleChange","getContainer","mask","maskClassName","icons","scaleStep"],I=0,D=function(e){var t,r=e.src,o=e.alt,f=e.onPreviewClose,v=e.prefixCls,g=void 0===v?"rc-image":v,h=e.previewPrefixCls,y=e.placeholder,b=e.fallback,w=e.width,Z=e.height,x=e.style,C=e.preview,O=void 0===C||C,N=e.className,P=e.onClick,_=e.onError,j=e.wrapperClassName,z=e.wrapperStyle,S=e.rootClassName,k=e.crossOrigin,D=e.decoding,A=e.loading,H=e.referrerPolicy,T=e.sizes,V=e.srcSet,B=e.useMap,W=e.draggable,F=(0,s.Z)(e,R),G=y&&!0!==y,q="object"===(0,a.Z)(O)?O:{},U=q.src,X=q.visible,Y=void 0===X?void 0:X,J=q.onVisibleChange,$=q.getContainer,K=q.mask,Q=q.maskClassName,ee=q.icons,et=q.scaleStep,er=(0,s.Z)(q,L),en=null!=U?U:r,ea=void 0!==Y,eo=(0,m.Z)(!!Y,{value:Y,onChange:void 0===J?f:J}),ei=(0,c.Z)(eo,2),el=ei[0],ec=ei[1],es=(0,u.useState)(G?"loading":"normal"),eu=(0,c.Z)(es,2),ef=eu[0],ed=eu[1],ep=(0,u.useState)(null),em=(0,c.Z)(ep,2),ev=em[0],eg=em[1],eh="error"===ef,ey=u.useContext(E),eb=ey.isPreviewGroup,ew=ey.setCurrent,eZ=ey.setShowPreview,ex=ey.setMousePosition,eC=ey.registerImage,eE=u.useState(function(){return I+=1}),eO=(0,c.Z)(eE,1)[0],eN=!!O,eP=u.useRef(!1),e_=function(){ed("normal")};u.useEffect(function(){return eC(eO,en)},[]),u.useEffect(function(){eC(eO,en,eN)},[en,eN]),u.useEffect(function(){eh&&ed("normal"),G&&!eP.current&&ed("loading")},[r]);var ej=d()(g,j,S,(0,l.Z)({},"".concat(g,"-error"),eh)),ez={crossOrigin:k,decoding:D,draggable:W,loading:A,referrerPolicy:H,sizes:T,srcSet:V,useMap:B,alt:o,className:d()("".concat(g,"-img"),(0,l.Z)({},"".concat(g,"-img-placeholder"),!0===y),N),style:(0,i.Z)({height:Z},x)};return u.createElement(u.Fragment,null,u.createElement("div",(0,n.Z)({},F,{className:ej,onClick:eN?function(e){if(!ea){var t=(0,p.os)(e.target),r=t.left,n=t.top;eb?(ew(eO),ex({x:r,y:n})):eg({x:r,y:n})}eb?eZ(!0):ec(!0),P&&P(e)}:P,style:(0,i.Z)({width:w,height:Z},z)}),u.createElement("img",(0,n.Z)({},ez,{ref:function(e){eP.current=!1,"loading"===ef&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(eP.current=!0,e_())}},eh&&b?{src:b}:{onLoad:e_,onError:function(e){_&&_(e),ed("error")},src:r},{width:w,height:Z})),"loading"===ef&&u.createElement("div",{"aria-hidden":"true",className:"".concat(g,"-placeholder")},y),K&&eN&&u.createElement("div",{className:d()("".concat(g,"-mask"),Q),style:{display:(null===(t=ez.style)||void 0===t?void 0:t.display)==="none"?"none":void 0}},K)),!eb&&eN&&u.createElement(M,(0,n.Z)({"aria-hidden":!el,visible:el,prefixCls:void 0===h?"".concat(g,"-preview"):h,onClose:function(e){e.stopPropagation(),ec(!1),ea||eg(null)},mousePosition:ev,src:eh&&b?b:en,alt:o,getContainer:void 0===$?void 0:$,icons:ee,scaleStep:et,rootClassName:S},er)))};D.PreviewGroup=function(e){var t=e.previewPrefixCls,r=e.children,o=e.icons,i=e.preview,l="object"===(0,a.Z)(i)?i:{},f=l.visible,d=void 0===f?void 0:f,p=l.onVisibleChange,v=l.getContainer,g=l.current,h=l.countRender,y=(0,s.Z)(l,C),b=(0,u.useState)(new Map),w=(0,c.Z)(b,2),Z=w[0],x=w[1],E=(0,u.useState)(),N=(0,c.Z)(E,2),P=N[0],_=N[1],j=(0,m.Z)(!!d,{value:d,onChange:void 0===p?void 0:p}),z=(0,c.Z)(j,2),S=z[0],k=z[1],R=(0,u.useState)(null),L=(0,c.Z)(R,2),I=L[0],D=L[1],A=void 0!==d,H=Array.from(Z.keys())[void 0===g?0:g],T=new Map(Array.from(Z).filter(function(e){return!!(0,c.Z)(e,2)[1].canPreview}).map(function(e){var t=(0,c.Z)(e,2);return[t[0],t[1].url]}));return u.useEffect(function(){_(H)},[H]),u.useEffect(function(){!S&&A&&_(H)},[H,A,S]),u.createElement(O,{value:{isPreviewGroup:!0,previewUrls:T,setPreviewUrls:x,current:P,setCurrent:_,setShowPreview:k,setMousePosition:D,registerImage:function(e,t){var r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return x(function(n){return new Map(n).set(e,{url:t,canPreview:r})}),function(){x(function(t){var r=new Map(t);return r.delete(e)?r:t})}}}},r,u.createElement(M,(0,n.Z)({"aria-hidden":!S,visible:S,prefixCls:void 0===t?"rc-image-preview":t,onClose:function(e){e.stopPropagation(),k(!1),D(null)},mousePosition:I,src:T.get(P),icons:void 0===o?{}:o,getContainer:void 0===v?void 0:v,countRender:void 0===h?void 0:h},y)))},D.displayName="Image";var A=r(53124),H=r(40378),T=r(33603),V=r(97937),B=r(6171),W=r(18073),F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},G=r(42135),q=function(e,t){return u.createElement(G.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:F}))};q.displayName="RotateLeftOutlined";var U=u.forwardRef(q),X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Y=function(e,t){return u.createElement(G.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:X}))};Y.displayName="RotateRightOutlined";var J=u.forwardRef(Y),$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},K=function(e,t){return u.createElement(G.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:$}))};K.displayName="ZoomInOutlined";var Q=u.forwardRef(K),ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},et=function(e,t){return u.createElement(G.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:ee}))};et.displayName="ZoomOutOutlined";var er=u.forwardRef(et),en=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ea={rotateLeft:u.createElement(U,null),rotateRight:u.createElement(J,null),zoomIn:u.createElement(Q,null),zoomOut:u.createElement(er,null),close:u.createElement(V.Z,null),left:u.createElement(B.Z,null),right:u.createElement(W.Z,null)},eo=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ei=function(e){var t=e.prefixCls,r=e.preview,i=eo(e,["prefixCls","preview"]),l=(0,u.useContext)(A.E_),c=l.getPrefixCls,s=l.locale,f=void 0===s?H.Z:s,d=l.getPopupContainer,p=c("image",t),m=c(),v=f.Image||H.Z.Image,g=u.useMemo(function(){if(!1===r)return r;var e="object"===(0,a.Z)(r)?r:{},t=e.getContainer,i=eo(e,["getContainer"]);return(0,n.Z)((0,n.Z)({mask:u.createElement("div",{className:"".concat(p,"-mask-info")},u.createElement(o.Z,null),null==v?void 0:v.preview),icons:ea},i),{getContainer:t||d,transitionName:(0,T.mL)(m,"zoom",e.transitionName),maskTransitionName:(0,T.mL)(m,"fade",e.maskTransitionName)})},[r,v]);return u.createElement(D,(0,n.Z)({prefixCls:p,preview:g},i))};ei.PreviewGroup=function(e){var t=e.previewPrefixCls,r=e.preview,o=en(e,["previewPrefixCls","preview"]),i=u.useContext(A.E_).getPrefixCls,l=i("image-preview",t),c=i(),s=u.useMemo(function(){if(!1===r)return r;var e="object"===(0,a.Z)(r)?r:{};return(0,n.Z)((0,n.Z)({},e),{transitionName:(0,T.mL)(c,"zoom",e.transitionName),maskTransitionName:(0,T.mL)(c,"fade",e.maskTransitionName)})},[r]);return u.createElement(D.PreviewGroup,(0,n.Z)({preview:s,previewPrefixCls:l,icons:ea},o))};var el=ei},55241:function(e,t,r){"use strict";var n=r(87462),a=r(67294),o=r(53124),i=r(94199),l=r(81643),c=r(33603),s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},u=function(e){var t=e.title,r=e.content,n=e.prefixCls;return t||r?a.createElement(a.Fragment,null,t&&a.createElement("div",{className:"".concat(n,"-title")},(0,l.Z)(t)),a.createElement("div",{className:"".concat(n,"-inner-content")},(0,l.Z)(r))):null},f=a.forwardRef(function(e,t){var r=e.prefixCls,l=e.title,f=e.content,d=e._overlay,p=e.placement,m=e.trigger,v=e.mouseEnterDelay,g=e.mouseLeaveDelay,h=e.overlayStyle,y=s(e,["prefixCls","title","content","_overlay","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),b=a.useContext(o.E_).getPrefixCls,w=b("popover",r),Z=b();return a.createElement(i.Z,(0,n.Z)({placement:void 0===p?"top":p,trigger:void 0===m?"hover":m,mouseEnterDelay:void 0===v?.1:v,mouseLeaveDelay:void 0===g?.1:g,overlayStyle:void 0===h?{}:h},y,{prefixCls:w,ref:t,overlay:d||a.createElement(u,{prefixCls:w,title:l,content:f}),transitionName:(0,c.mL)(Z,"zoom-big",y.transitionName)}))});t.Z=f},71230:function(e,t,r){"use strict";var n=r(92820);t.Z=n.Z},26303:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n=r(4942),a=r(87462),o=r(71002),i=r(94184),l=r.n(i),c=r(67294),s=r(53124),u=r(98423),f=function(e){var t,r,o=e.prefixCls,i=e.className,s=e.style,u=e.size,f=e.shape,d=l()((t={},(0,n.Z)(t,"".concat(o,"-lg"),"large"===u),(0,n.Z)(t,"".concat(o,"-sm"),"small"===u),t)),p=l()((r={},(0,n.Z)(r,"".concat(o,"-circle"),"circle"===f),(0,n.Z)(r,"".concat(o,"-square"),"square"===f),(0,n.Z)(r,"".concat(o,"-round"),"round"===f),r)),m=c.useMemo(function(){return"number"==typeof u?{width:u,height:u,lineHeight:"".concat(u,"px")}:{}},[u]);return c.createElement("span",{className:l()(o,d,p,i),style:(0,a.Z)((0,a.Z)({},m),s)})},d=r(1413),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},m=r(42135),v=function(e,t){return c.createElement(m.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:t,icon:p}))};v.displayName="DotChartOutlined";var g=c.forwardRef(v),h=r(74902),y=function(e){var t=function(t){var r=e.width,n=e.rows;return Array.isArray(r)?r[t]:(void 0===n?2:n)-1===t?r:void 0},r=e.prefixCls,n=e.className,a=e.style,o=e.rows,i=(0,h.Z)(Array(o)).map(function(e,r){return c.createElement("li",{key:r,style:{width:t(r)}})});return c.createElement("ul",{className:l()(r,n),style:a},i)},b=function(e){var t=e.prefixCls,r=e.className,n=e.width,o=e.style;return c.createElement("h3",{className:l()(t,r),style:(0,a.Z)({width:n},o)})};function w(e){return e&&"object"===(0,o.Z)(e)?e:{}}var Z=function(e){var t=e.prefixCls,r=e.loading,o=e.className,i=e.style,u=e.children,d=e.avatar,p=void 0!==d&&d,m=e.title,v=void 0===m||m,g=e.paragraph,h=void 0===g||g,Z=e.active,x=e.round,C=c.useContext(s.E_),E=C.getPrefixCls,O=C.direction,N=E("skeleton",t);if(r||!("loading"in e)){var P=!!p,_=!!v,j=!!h;if(P){var z=(0,a.Z)((0,a.Z)({prefixCls:"".concat(N,"-avatar")},_&&!j?{size:"large",shape:"square"}:{size:"large",shape:"circle"}),w(p));k=c.createElement("div",{className:"".concat(N,"-header")},c.createElement(f,(0,a.Z)({},z)))}if(_||j){if(_){var S,k,M,R,L,I=(0,a.Z)((0,a.Z)({prefixCls:"".concat(N,"-title")},!P&&j?{width:"38%"}:P&&j?{width:"50%"}:{}),w(v));R=c.createElement(b,(0,a.Z)({},I))}if(j){var D,A=(0,a.Z)((0,a.Z)({prefixCls:"".concat(N,"-paragraph")},(D={},P&&_||(D.width="61%"),!P&&_?D.rows=3:D.rows=2,D)),w(h));L=c.createElement(y,(0,a.Z)({},A))}M=c.createElement("div",{className:"".concat(N,"-content")},R,L)}var H=l()(N,(S={},(0,n.Z)(S,"".concat(N,"-with-avatar"),P),(0,n.Z)(S,"".concat(N,"-active"),Z),(0,n.Z)(S,"".concat(N,"-rtl"),"rtl"===O),(0,n.Z)(S,"".concat(N,"-round"),x),S),o);return c.createElement("div",{className:H,style:i},k,M)}return void 0!==u?u:null};Z.Button=function(e){var t,r=e.prefixCls,o=e.className,i=e.active,d=e.block,p=e.size,m=(0,c.useContext(s.E_).getPrefixCls)("skeleton",r),v=(0,u.Z)(e,["prefixCls"]),g=l()(m,"".concat(m,"-element"),(t={},(0,n.Z)(t,"".concat(m,"-active"),i),(0,n.Z)(t,"".concat(m,"-block"),void 0!==d&&d),t),o);return c.createElement("div",{className:g},c.createElement(f,(0,a.Z)({prefixCls:"".concat(m,"-button"),size:void 0===p?"default":p},v)))},Z.Avatar=function(e){var t=e.prefixCls,r=e.className,o=e.active,i=e.shape,d=e.size,p=(0,c.useContext(s.E_).getPrefixCls)("skeleton",t),m=(0,u.Z)(e,["prefixCls","className"]),v=l()(p,"".concat(p,"-element"),(0,n.Z)({},"".concat(p,"-active"),o),r);return c.createElement("div",{className:v},c.createElement(f,(0,a.Z)({prefixCls:"".concat(p,"-avatar"),shape:void 0===i?"circle":i,size:void 0===d?"default":d},m)))},Z.Input=function(e){var t,r=e.prefixCls,o=e.className,i=e.active,d=e.block,p=e.size,m=(0,c.useContext(s.E_).getPrefixCls)("skeleton",r),v=(0,u.Z)(e,["prefixCls"]),g=l()(m,"".concat(m,"-element"),(t={},(0,n.Z)(t,"".concat(m,"-active"),i),(0,n.Z)(t,"".concat(m,"-block"),d),t),o);return c.createElement("div",{className:g},c.createElement(f,(0,a.Z)({prefixCls:"".concat(m,"-input"),size:void 0===p?"default":p},v)))},Z.Image=function(e){var t=e.prefixCls,r=e.className,a=e.style,o=e.active,i=(0,c.useContext(s.E_).getPrefixCls)("skeleton",t),u=l()(i,"".concat(i,"-element"),(0,n.Z)({},"".concat(i,"-active"),o),r);return c.createElement("div",{className:u},c.createElement("div",{className:l()("".concat(i,"-image"),r),style:a},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(i,"-image-svg")},c.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(i,"-image-path")}))))},Z.Node=function(e){var t=e.prefixCls,r=e.className,a=e.style,o=e.active,i=e.children,u=(0,c.useContext(s.E_).getPrefixCls)("skeleton",t),f=l()(u,"".concat(u,"-element"),(0,n.Z)({},"".concat(u,"-active"),o),r),d=null!=i?i:c.createElement(g,null);return c.createElement("div",{className:f},c.createElement("div",{className:l()("".concat(u,"-image"),r),style:a},d))};var x=Z},63406:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},87412:function(e,t,r){"use strict";var n,a=r(75263).default,o=r(64836).default;t.ZP=void 0;var i=o(r(38416)),l=o(r(10434)),c=o(r(27424)),s=o(r(54067)),u=o(r(68229)),f=o(r(67638)),d=o(r(94184)),p=o(r(18475)),m=a(r(67294)),v=r(31929),g=o(r(63406)),h=r(62704),y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},w=m.createContext({}),Z=(n=0,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return n+=1,"".concat(e).concat(n)}),x=m.forwardRef(function(e,t){var r,n,a,o,x,C,E,O,N,P,_=e.prefixCls,j=e.className,z=e.trigger,S=e.children,k=e.defaultCollapsed,M=e.theme,R=e.style,L=e.collapsible,I=void 0!==L&&L,D=e.reverseArrow,A=void 0!==D&&D,H=e.width,T=e.collapsedWidth,V=void 0===T?80:T,B=e.zeroWidthTriggerStyle,W=e.breakpoint,F=e.onCollapse,G=e.onBreakpoint,q=y(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),U=(0,m.useContext)(h.LayoutContext).siderHook,X=(0,m.useState)("collapsed"in q?q.collapsed:void 0!==k&&k),Y=(0,c.default)(X,2),J=Y[0],$=Y[1],K=(0,m.useState)(!1),Q=(0,c.default)(K,2),ee=Q[0],et=Q[1];(0,m.useEffect)(function(){"collapsed"in q&&$(q.collapsed)},[q.collapsed]);var er=function(e,t){"collapsed"in q||$(e),null==F||F(e,t)},en=(0,m.useRef)();en.current=function(e){et(e.matches),null==G||G(e.matches),J!==e.matches&&er(e.matches,"responsive")},(0,m.useEffect)(function(){function e(e){return en.current(e)}if("undefined"!=typeof window){var t,r=window.matchMedia;if(r&&W&&W in b){t=r("(max-width: ".concat(b[W],")"));try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return function(){try{null==t||t.removeEventListener("change",e)}catch(r){null==t||t.removeListener(e)}}},[W]),(0,m.useEffect)(function(){var e=Z("ant-sider-");return U.addSider(e),function(){return U.removeSider(e)}},[]);var ea=function(){er(!J,"clickTrigger")},eo=(0,m.useContext)(v.ConfigContext).getPrefixCls,ei=m.useMemo(function(){return{siderCollapsed:J}},[J]);return m.createElement(w.Provider,{value:ei},(n=eo("layout-sider",_),a=(0,p.default)(q,["collapsed"]),o=J?V:void 0===H?200:H,x=(0,g.default)(o)?"".concat(o,"px"):String(o),C=0===parseFloat(String(V||0))?m.createElement("span",{onClick:ea,className:(0,d.default)("".concat(n,"-zero-width-trigger"),"".concat(n,"-zero-width-trigger-").concat(A?"right":"left")),style:B},z||m.createElement(s.default,null)):null,E=({expanded:A?m.createElement(f.default,null):m.createElement(u.default,null),collapsed:A?m.createElement(u.default,null):m.createElement(f.default,null)})[J?"collapsed":"expanded"],O=null!==z?C||m.createElement("div",{className:"".concat(n,"-trigger"),onClick:ea,style:{width:x}},z||E):null,N=(0,l.default)((0,l.default)({},void 0===R?{}:R),{flex:"0 0 ".concat(x),maxWidth:x,minWidth:x,width:x}),P=(0,d.default)(n,"".concat(n,"-").concat(void 0===M?"dark":M),(r={},(0,i.default)(r,"".concat(n,"-collapsed"),!!J),(0,i.default)(r,"".concat(n,"-has-trigger"),I&&null!==z&&!C),(0,i.default)(r,"".concat(n,"-below"),!!ee),(0,i.default)(r,"".concat(n,"-zero-width"),0===parseFloat(x)),r),j),m.createElement("aside",(0,l.default)({className:P},a,{style:N,ref:t}),m.createElement("div",{className:"".concat(n,"-children")},S),I||ee&&C?O:null)))});t.ZP=x},62704:function(e,t,r){"use strict";var n=r(75263).default,a=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.LayoutContext=t.Header=t.Footer=t.Content=void 0;var o=a(r(861)),i=a(r(38416)),l=a(r(27424)),c=a(r(10434)),s=a(r(94184)),u=n(r(67294)),f=r(31929),d=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},p=u.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function m(e){var t=e.suffixCls,r=e.tagName;return e.displayName,function(e){return u.forwardRef(function(n,a){var o=(0,u.useContext(f.ConfigContext).getPrefixCls)(t,n.prefixCls);return u.createElement(e,(0,c.default)({ref:a,prefixCls:o,tagName:r},n))})}}t.LayoutContext=p;var v=u.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.children,o=e.tagName,i=d(e,["prefixCls","className","children","tagName"]),l=(0,s.default)(r,n);return u.createElement(o,(0,c.default)((0,c.default)({className:l},i),{ref:t}),a)}),g=u.forwardRef(function(e,t){var r,n=u.useContext(f.ConfigContext).direction,a=u.useState([]),m=(0,l.default)(a,2),v=m[0],g=m[1],h=e.prefixCls,y=e.className,b=e.children,w=e.hasSider,Z=e.tagName,x=d(e,["prefixCls","className","children","hasSider","tagName"]),C=(0,s.default)(h,(r={},(0,i.default)(r,"".concat(h,"-has-sider"),"boolean"==typeof w?w:v.length>0),(0,i.default)(r,"".concat(h,"-rtl"),"rtl"===n),r),y),E=u.useMemo(function(){return{siderHook:{addSider:function(e){g(function(t){return[].concat((0,o.default)(t),[e])})},removeSider:function(e){g(function(t){return t.filter(function(t){return t!==e})})}}}},[]);return u.createElement(p.Provider,{value:E},u.createElement(Z,(0,c.default)({ref:t,className:C},x),b))}),h=m({suffixCls:"layout",tagName:"section",displayName:"Layout"})(g),y=m({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(v);t.Header=y;var b=m({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(v);t.Footer=b;var w=m({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(v);t.Content=w,t.default=h},19749:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(6495).Z,a=r(92648).Z,o=r(91598).Z,i=r(17273).Z,l=o(r(67294)),c=a(r(83121)),s=r(2675),u=r(10139),f=r(28730);r(57238);var d=a(r(89824));let p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function m(e){return void 0!==e.default}function v(e){return"number"==typeof e||void 0===e?e:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function g(e,t,r,a,o){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let i="decode"in e?e.decode():Promise.resolve();i.catch(()=>{}).then(()=>{if(e.parentNode){if(null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let o=!1,i=!1;r.current(n({},t,{nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>o,isPropagationStopped:()=>i,persist(){},preventDefault(){o=!0,t.preventDefault()},stopPropagation(){i=!0,t.stopPropagation()}}))}(null==a?void 0:a.current)&&a.current(e)}})}let h=l.forwardRef((e,t)=>{var{imgAttributes:r,heightInt:a,widthInt:o,qualityInt:c,className:s,imgStyle:u,blurStyle:f,isLazy:d,fill:p,placeholder:m,loading:v,srcString:h,config:y,unoptimized:b,loader:w,onLoadRef:Z,onLoadingCompleteRef:x,onLoad:C,onError:E}=e,O=i(e,["imgAttributes","heightInt","widthInt","qualityInt","className","imgStyle","blurStyle","isLazy","fill","placeholder","loading","srcString","config","unoptimized","loader","onLoadRef","onLoadingCompleteRef","onLoad","onError"]);return v=d?"lazy":v,l.default.createElement(l.default.Fragment,null,l.default.createElement("img",Object.assign({},O,r,{width:o,height:a,decoding:"async","data-nimg":p?"fill":"1",className:s,loading:v,style:n({},u,f),ref:l.useCallback(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(E&&(e.src=e.src),e.complete&&g(e,h,Z,x,b))},[h,Z,x,E,b,t]),onLoad(e){let t=e.currentTarget;g(t,h,Z,x,b)},onError(e){let{style:t}=e.currentTarget;"transparent"===t.color&&(t.color=""),"blur"===m&&t.backgroundImage&&(t.backgroundSize="",t.backgroundPosition="",t.backgroundRepeat="",t.backgroundImage=""),E&&E(e)}})))}),y=l.forwardRef((e,t)=>{let r,a;var o,{src:g,sizes:y,unoptimized:b=!1,priority:w=!1,loading:Z,className:x,quality:C,width:E,height:O,fill:N,style:P,onLoad:_,onLoadingComplete:j,placeholder:z="empty",blurDataURL:S,layout:k,objectFit:M,objectPosition:R,lazyBoundary:L,lazyRoot:I}=e,D=i(e,["src","sizes","unoptimized","priority","loading","className","quality","width","height","fill","style","onLoad","onLoadingComplete","placeholder","blurDataURL","layout","objectFit","objectPosition","lazyBoundary","lazyRoot"]);let A=l.useContext(f.ImageConfigContext),H=l.useMemo(()=>{let e=p||A||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return n({},e,{allSizes:t,deviceSizes:r})},[A]),T=D,V=T.loader||d.default;if(delete T.loader,"__next_img_default"in V){if("custom"===H.loader)throw Error('Image with src "'.concat(g,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}else{let B=V;V=e=>{let{config:t}=e,r=i(e,["config"]);return B(r)}}if(k){"fill"===k&&(N=!0);let W={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[k];W&&(P=n({},P,W));let F={responsive:"100vw",fill:"100vw"}[k];F&&!y&&(y=F)}let G="",q=v(E),U=v(O);if("object"==typeof(o=g)&&(m(o)||void 0!==o.src)){let X=m(g)?g.default:g;if(!X.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(X)));if(!X.height||!X.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(X)));if(r=X.blurWidth,a=X.blurHeight,S=S||X.blurDataURL,G=X.src,!N){if(q||U){if(q&&!U){let Y=q/X.width;U=Math.round(X.height*Y)}else if(!q&&U){let J=U/X.height;q=Math.round(X.width*J)}}else q=X.width,U=X.height}}let $=!w&&("lazy"===Z||void 0===Z);((g="string"==typeof g?g:G).startsWith("data:")||g.startsWith("blob:"))&&(b=!0,$=!1),H.unoptimized&&(b=!0);let K=v(C),Q=Object.assign(N?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:R}:{},{color:"transparent"},P),ee="blur"===z&&S?{backgroundSize:Q.objectFit||"cover",backgroundPosition:Q.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'.concat(s.getImageBlurSvg({widthInt:q,heightInt:U,blurWidth:r,blurHeight:a,blurDataURL:S}),'")')}:{},et=function(e){let{config:t,src:r,unoptimized:n,width:a,quality:o,sizes:i,loader:l}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:c,kind:s}=function(e,t,r){let{deviceSizes:n,allSizes:a}=e;if(r){let o=/(^|\s)(1?\d?\d)vw/g,i=[];for(let l;l=o.exec(r);l)i.push(parseInt(l[2]));if(i.length){let c=.01*Math.min(...i);return{widths:a.filter(e=>e>=n[0]*c),kind:"w"}}return{widths:a,kind:"w"}}if("number"!=typeof t)return{widths:n,kind:"w"};let s=[...new Set([t,2*t].map(e=>a.find(t=>t>=e)||a[a.length-1]))];return{widths:s,kind:"x"}}(t,a,i),u=c.length-1;return{sizes:i||"w"!==s?i:"100vw",srcSet:c.map((e,n)=>"".concat(l({config:t,src:r,quality:o,width:e})," ").concat("w"===s?e:n+1).concat(s)).join(", "),src:l({config:t,src:r,quality:o,width:c[u]})}}({config:H,src:g,unoptimized:b,width:q,quality:K,sizes:y,loader:V}),er=g,en={imageSrcSet:et.srcSet,imageSizes:et.sizes,crossOrigin:T.crossOrigin},ea=l.useRef(_);l.useEffect(()=>{ea.current=_},[_]);let eo=l.useRef(j);l.useEffect(()=>{eo.current=j},[j]);let ei=n({isLazy:$,imgAttributes:et,heightInt:U,widthInt:q,qualityInt:K,className:x,imgStyle:Q,blurStyle:ee,loading:Z,config:H,fill:N,unoptimized:b,placeholder:z,loader:V,srcString:er,onLoadRef:ea,onLoadingCompleteRef:eo},T);return l.default.createElement(l.default.Fragment,null,l.default.createElement(h,Object.assign({},ei,{ref:t})),w?l.default.createElement(c.default,null,l.default.createElement("link",Object.assign({key:"__nimg-"+et.src+et.srcSet+et.sizes,rel:"preload",as:"image",href:et.srcSet?void 0:et.src},en))):null)});t.default=y,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37645:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let r=o.default,a=(null==t?void 0:t.suspense)?{}:{loading(e){let{error:t,isLoading:r,pastDelay:n}=e;return null}};if(e instanceof Promise?a.loader=()=>e:"function"==typeof e?a.loader=e:"object"==typeof e&&(a=n({},a,e)),(a=n({},a,t)).suspense&&(delete a.ssr,delete a.loading),a.loadableGenerated&&delete(a=n({},a,a.loadableGenerated)).loadableGenerated,"boolean"==typeof a.ssr&&!a.suspense){if(!a.ssr)return delete a.ssr,i(r,a);delete a.ssr}return r(a)},t.noSSR=i;var n=r(6495).Z,a=r(92648).Z,o=(a(r(67294)),a(r(14588)));function i(e,t){return delete t.webpack,delete t.modules,e(t)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2675:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getImageBlurSvg=function(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:a,blurDataURL:o}=e,i=n||t,l=a||r,c=o.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return i&&l?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 ".concat(i," ").concat(l,"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='").concat(n&&a?"1":"20","'/%3E").concat(c,"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='").concat(o,"'/%3E%3C/svg%3E"):"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' x='0' y='0' height='100%25' width='100%25' href='".concat(o,"'/%3E%3C/svg%3E")}},89824:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:a}=e;return r.endsWith(".svg")&&!t.dangerouslyAllowSVG?r:"".concat(t.path,"?url=").concat(encodeURIComponent(r),"&w=").concat(n,"&q=").concat(a||75)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r.__next_img_default=!0,t.default=r},33644:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var n=(0,r(92648).Z)(r(67294));let a=n.default.createContext(null);t.LoadableContext=a},14588:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(6495).Z,a=(0,r(91598).Z)(r(67294)),o=r(33644);let i=[],l=[],c=!1;function s(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state=n({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function f(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},t);r.suspense&&(r.lazy=a.default.lazy(r.loader));let i=null;function s(){if(!i){let t=new u(e,r);i={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return i.promise()}if(!c){let f=r.webpack?r.webpack():r.modules;f&&l.push(e=>{for(let t of f)if(-1!==e.indexOf(t))return s()})}function d(){s();let e=a.default.useContext(o.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}let p=r.suspense?function(e,t){return d(),a.default.createElement(r.lazy,n({},e,{ref:t}))}:function(e,t){d();let n=a.useSyncExternalStore(i.subscribe,i.getCurrentValue,i.getCurrentValue);return a.default.useImperativeHandle(t,()=>({retry:i.retry}),[]),a.default.useMemo(()=>{var t;return n.loading||n.error?a.default.createElement(r.loading,{isLoading:n.loading,pastDelay:n.pastDelay,timedOut:n.timedOut,error:n.error,retry:i.retry}):n.loaded?a.default.createElement((t=n.loaded)&&t.__esModule?t.default:t,e):null},[e,n])};return p.preload=()=>s(),p.displayName="LoadableComponent",a.default.forwardRef(p)}(s,e)}function d(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return d(e,t)})}f.preloadAll=()=>new Promise((e,t)=>{d(i).then(e,t)}),f.preloadReady=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(t=>{let r=()=>(c=!0,t());d(l,e).then(r,r)})},window.__NEXT_PRELOADREADY=f.preloadReady,t.default=f},5152:function(e,t,r){e.exports=r(37645)},25675:function(e,t,r){e.exports=r(19749)}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8793],{25413:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"}},6594:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"}},77307:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"}},54067:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(45799))&&n.__esModule?n:{default:n};t.default=a,e.exports=a},68229:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(7500))&&n.__esModule?n:{default:n};t.default=a,e.exports=a},67638:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,a=(n=r(86994))&&n.__esModule?n:{default:n};t.default=a,e.exports=a},71578:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(1413),a=r(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.8-240-277.2V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.8C336.3 170.2 232 286.9 232 428v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48z"}}]},name:"bell",theme:"filled"},i=r(42135),l=function(e,t){return a.createElement(i.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:o}))};l.displayName="BellFilled";var c=a.forwardRef(l)},60198:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(1413),a=r(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"},i=r(42135),l=function(e,t){return a.createElement(i.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:o}))};l.displayName="BellOutlined";var c=a.forwardRef(l)},34447:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(1413),a=r(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z"}}]},name:"heart",theme:"filled"},i=r(42135),l=function(e,t){return a.createElement(i.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:o}))};l.displayName="HeartFilled";var c=a.forwardRef(l)},49647:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(1413),a=r(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}}]},name:"heart",theme:"outlined"},i=r(42135),l=function(e,t){return a.createElement(i.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:o}))};l.displayName="HeartOutlined";var c=a.forwardRef(l)},94149:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(1413),a=r(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},i=r(42135),l=function(e,t){return a.createElement(i.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:o}))};l.displayName="LockOutlined";var c=a.forwardRef(l)},87547:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(1413),a=r(67294),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},i=r(42135),l=function(e,t){return a.createElement(i.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:o}))};l.displayName="UserOutlined";var c=a.forwardRef(l)},45799:function(e,t,r){"use strict";var n=r(64836),a=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),l=n(r(25413)),c=n(r(92074));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var u=function(e,t){return i.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:l.default}))};u.displayName="BarsOutlined";var f=i.forwardRef(u);t.default=f},7500:function(e,t,r){"use strict";var n=r(64836),a=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),l=n(r(6594)),c=n(r(92074));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var u=function(e,t){return i.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:l.default}))};u.displayName="LeftOutlined";var f=i.forwardRef(u);t.default=f},86994:function(e,t,r){"use strict";var n=r(64836),a=r(18698);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(42122)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(67294)),l=n(r(77307)),c=n(r(92074));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var u=function(e,t){return i.createElement(c.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:l.default}))};u.displayName="RightOutlined";var f=i.forwardRef(u);t.default=f},81643:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var n=function(e){return e?"function"==typeof e?e():e:null}},24093:function(e,t,r){"use strict";r.d(t,{C:function(){return x}});var n=r(87462),a=r(4942),o=r(71002),i=r(97685),l=r(94184),c=r.n(l),s=r(48555),u=r(42550),f=r(67294),d=r(53124),p=r(25378),m=r(24308),v=f.createContext("default"),g=function(e){var t=e.children,r=e.size;return f.createElement(v.Consumer,null,function(e){return f.createElement(v.Provider,{value:r||e},t)})},h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},y=f.forwardRef(function(e,t){var r,l,g,y=f.useContext(v),b=f.useState(1),w=(0,i.Z)(b,2),Z=w[0],C=w[1],x=f.useState(!1),E=(0,i.Z)(x,2),O=E[0],N=E[1],P=f.useState(!0),_=(0,i.Z)(P,2),S=_[0],j=_[1],z=f.useRef(null),k=f.useRef(null),M=(0,u.sQ)(t,z),R=f.useContext(d.E_).getPrefixCls,L=function(){if(k.current&&z.current){var t=k.current.offsetWidth,r=z.current.offsetWidth;if(0!==t&&0!==r){var n=e.gap,a=void 0===n?4:n;2*at.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},d=["xs","sm","md","lg","xl","xxl"],p=c.forwardRef(function(e,t){var r,i=c.useContext(s.E_),p=i.getPrefixCls,m=i.direction,v=c.useContext(u.Z),g=v.gutter,h=v.wrap,y=v.supportFlexGap,b=e.prefixCls,w=e.span,Z=e.order,C=e.offset,x=e.push,E=e.pull,O=e.className,N=e.children,P=e.flex,_=e.style,S=f(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),j=p("col",b),z={};d.forEach(function(t){var r,i={},l=e[t];"number"==typeof l?i.span=l:"object"===(0,o.Z)(l)&&(i=l||{}),delete S[t],z=(0,a.Z)((0,a.Z)({},z),(r={},(0,n.Z)(r,"".concat(j,"-").concat(t,"-").concat(i.span),void 0!==i.span),(0,n.Z)(r,"".concat(j,"-").concat(t,"-order-").concat(i.order),i.order||0===i.order),(0,n.Z)(r,"".concat(j,"-").concat(t,"-offset-").concat(i.offset),i.offset||0===i.offset),(0,n.Z)(r,"".concat(j,"-").concat(t,"-push-").concat(i.push),i.push||0===i.push),(0,n.Z)(r,"".concat(j,"-").concat(t,"-pull-").concat(i.pull),i.pull||0===i.pull),(0,n.Z)(r,"".concat(j,"-rtl"),"rtl"===m),r))});var k=l()(j,(r={},(0,n.Z)(r,"".concat(j,"-").concat(w),void 0!==w),(0,n.Z)(r,"".concat(j,"-order-").concat(Z),Z),(0,n.Z)(r,"".concat(j,"-offset-").concat(C),C),(0,n.Z)(r,"".concat(j,"-push-").concat(x),x),(0,n.Z)(r,"".concat(j,"-pull-").concat(E),E),r),O,z),M={};if(g&&g[0]>0){var R=g[0]/2;M.paddingLeft=R,M.paddingRight=R}if(g&&g[1]>0&&!y){var L=g[1]/2;M.paddingTop=L,M.paddingBottom=L}return P&&(M.flex="number"==typeof P?"".concat(P," ").concat(P," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(P)?"0 0 ".concat(P):P,!1!==h||M.minWidth||(M.minWidth=0)),c.createElement("div",(0,a.Z)({},S,{style:(0,a.Z)((0,a.Z)({},M),_),className:k,ref:t}),N)});t.Z=p},92820:function(e,t,r){"use strict";var n=r(87462),a=r(4942),o=r(71002),i=r(97685),l=r(94184),c=r.n(l),s=r(67294),u=r(53124),f=r(98082),d=r(24308),p=r(93355),m=r(99134),v=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function g(e,t){var r=s.useState("string"==typeof e?e:""),n=(0,i.Z)(r,2),a=n[0],l=n[1],c=function(){if("object"===(0,o.Z)(e))for(var r=0;r0?-(V[0]/2):void 0,q=null!=V[1]&&V[1]>0?-(V[1]/2):void 0;if(G&&(F.marginLeft=G,F.marginRight=G),T){var X=(0,i.Z)(V,2);F.rowGap=X[1]}else q&&(F.marginTop=q,F.marginBottom=q);var Y=(0,i.Z)(V,2),U=Y[0],J=Y[1],$=s.useMemo(function(){return{gutter:[U,J],wrap:E,supportFlexGap:T}},[U,J,E,T]);return s.createElement(m.Z.Provider,{value:$},s.createElement("div",(0,n.Z)({},O,{className:W,style:(0,n.Z)((0,n.Z)({},F),w),ref:t}),Z))});t.Z=h},79216:function(e,t,r){"use strict";r.d(t,{Z:function(){return el}});var n=r(87462),a=r(71002),o=r(99611),i=r(1413),l=r(4942),c=r(97685),s=r(45987),u=r(67294),f=r(94184),d=r.n(f),p=r(27678),m=r(21770),v=r(2788),g=r(38425),h=r(62874),y=r(64019),b=r(15105),w=r(80334),Z=r(75164);function C(e,t,r,n){var a=t+r,o=(r-n)/2;if(r>n){if(t>0)return(0,l.Z)({},e,o);if(t<0&&an)return(0,l.Z)({},e,t<0?o:-o);return{}}var x=["visible","onVisibleChange","getContainer","current","countRender"],E=u.createContext({previewUrls:new Map,setPreviewUrls:function(){return null},current:null,setCurrent:function(){return null},setShowPreview:function(){return null},setMousePosition:function(){return null},registerImage:function(){return function(){return null}},rootClassName:""}),O=E.Provider,N=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","getContainer","countRender","scaleStep","transitionName","maskTransitionName"],P=u.useState,_=u.useEffect,S=u.useCallback,j=u.useRef,z=u.useContext,k={x:0,y:0},M=function(e){var t,r,a,o,f,m,x,O=e.prefixCls,M=e.src,R=e.alt,L=e.onClose,D=(e.afterClose,e.visible),I=e.icons,A=void 0===I?{}:I,T=e.rootClassName,H=e.getContainer,B=e.countRender,V=e.scaleStep,W=void 0===V?.5:V,F=e.transitionName,G=e.maskTransitionName,q=void 0===G?"fade":G,X=(0,s.Z)(e,N),Y=A.rotateLeft,U=A.rotateRight,J=A.zoomIn,$=A.zoomOut,K=A.close,Q=A.left,ee=A.right,et=P(1),er=(0,c.Z)(et,2),en=er[0],ea=er[1],eo=P(0),ei=(0,c.Z)(eo,2),el=ei[0],ec=ei[1],es=(t=u.useRef(null),r=u.useState(k),o=(a=(0,c.Z)(r,2))[0],f=a[1],m=u.useRef([]),u.useEffect(function(){return function(){return t.current&&Z.Z.cancel(t.current)}},[]),[o,function(e){null===t.current&&(m.current=[],t.current=(0,Z.Z)(function(){f(function(e){var r=e;return m.current.forEach(function(e){r=(0,i.Z)((0,i.Z)({},r),e)}),t.current=null,r})})),m.current.push(e)}]),eu=(0,c.Z)(es,2),ef=eu[0],ed=eu[1],ep=j(),em=j({originX:0,originY:0,deltaX:0,deltaY:0}),ev=P(!1),eg=(0,c.Z)(ev,2),eh=eg[0],ey=eg[1],eb=z(E),ew=eb.previewUrls,eZ=eb.current,eC=eb.isPreviewGroup,ex=eb.setCurrent,eE=ew.size,eO=Array.from(ew.keys()),eN=eO.indexOf(eZ),eP=eC?ew.get(eZ):M,e_=eC&&eE>1,eS=P({wheelDirection:0}),ej=(0,c.Z)(eS,2),ez=ej[0],ek=ej[1],eM=function(){ea(function(e){return e+W}),ed(k)},eR=function(){en>1&&ea(function(e){return e-W}),ed(k)},eL=d()((0,l.Z)({},"".concat(O,"-moving"),eh)),eD="".concat(O,"-operations-operation"),eI="".concat(O,"-operations-icon"),eA=function(){if(D&&eh){var e,t,r,n,a,o,l=ep.current.offsetWidth*en,c=ep.current.offsetHeight*en,s=ep.current.getBoundingClientRect(),u=s.left,f=s.top,d=el%180!=0;ey(!1);var m=(e=d?c:l,t=d?l:c,n=(r=(0,p.g1)()).width,a=r.height,o=null,e<=n&&t<=a?o={x:0,y:0}:(e>n||t>a)&&(o=(0,i.Z)((0,i.Z)({},C("x",u,e,n)),C("y",f,t,a))),o);m&&ed((0,i.Z)({},m))}},eT=function(e){D&&eh&&ed({x:e.pageX-em.current.deltaX,y:e.pageY-em.current.deltaY})},eH=function(e){D&&(e.preventDefault(),ek({wheelDirection:e.deltaY}))},eB=S(function(e){D&&e_&&(e.keyCode===b.Z.LEFT?eN>0&&ex(eO[eN-1]):e.keyCode===b.Z.RIGHT&&eN0?eR():e<0&&eM()},[ez]),_(function(){var e,t,r=(0,y.Z)(window,"mouseup",eA,!1),n=(0,y.Z)(window,"mousemove",eT,!1),a=(0,y.Z)(window,"wheel",eH,{passive:!1}),o=(0,y.Z)(window,"keydown",eB,!1);try{window.top!==window.self&&(e=(0,y.Z)(window.top,"mouseup",eA,!1),t=(0,y.Z)(window.top,"mousemove",eT,!1))}catch(i){(0,w.Kp)(!1,"[rc-image] ".concat(i))}return function(){r.remove(),n.remove(),a.remove(),o.remove(),null==e||e.remove(),null==t||t.remove()}},[D,eh,eB]);var eV=u.createElement(u.Fragment,null,e_&&u.createElement("div",{className:d()("".concat(O,"-switch-left"),(0,l.Z)({},"".concat(O,"-switch-left-disabled"),0===eN)),onClick:function(e){e.preventDefault(),e.stopPropagation(),eN>0&&ex(eO[eN-1])}},Q),e_&&u.createElement("div",{className:d()("".concat(O,"-switch-right"),(0,l.Z)({},"".concat(O,"-switch-right-disabled"),eN===eE-1)),onClick:function(e){e.preventDefault(),e.stopPropagation(),eN=1&&u.createElement("li",{className:"".concat(O,"-operations-progress")},null!==(x=null==B?void 0:B(eN+1,eE))&&void 0!==x?x:"".concat(eN+1," / ").concat(eE)),[{icon:K,onClick:L,type:"close"},{icon:J,onClick:eM,type:"zoomIn"},{icon:$,onClick:eR,type:"zoomOut",disabled:1===en},{icon:U,onClick:function(){ec(function(e){return e+90})},type:"rotateRight"},{icon:Y,onClick:function(){ec(function(e){return e-90})},type:"rotateLeft"}].map(function(e){var t,r=e.icon,n=e.onClick,a=e.type,o=e.disabled;return u.createElement("li",{className:d()(eD,(t={},(0,l.Z)(t,"".concat(O,"-operations-operation-").concat(a),!0),(0,l.Z)(t,"".concat(O,"-operations-operation-disabled"),!!o),t)),onClick:n,key:a},u.isValidElement(r)?u.cloneElement(r,{className:eI}):r)})));return u.createElement(u.Fragment,null,u.createElement(g.Z,(0,n.Z)({transitionName:void 0===F?"zoom":F,maskTransitionName:q,closable:!1,keyboard:!0,prefixCls:O,onClose:L,afterClose:function(){ea(1),ec(0),ed(k)},visible:D,wrapClassName:eL,rootClassName:T,getContainer:H},X),u.createElement("div",{className:"".concat(O,"-img-wrapper"),style:{transform:"translate3d(".concat(ef.x,"px, ").concat(ef.y,"px, 0)")}},u.createElement("img",{width:e.width,height:e.height,onMouseDown:function(e){0===e.button&&(e.preventDefault(),e.stopPropagation(),em.current.deltaX=e.pageX-ef.x,em.current.deltaY=e.pageY-ef.y,em.current.originX=ef.x,em.current.originY=ef.y,ey(!0))},onDoubleClick:function(){D&&(1!==en&&ea(1),(ef.x!==k.x||ef.y!==k.y)&&ed(k))},ref:ep,className:"".concat(O,"-img"),src:eP,alt:R,style:{transform:"scale3d(".concat(en,", ").concat(en,", 1) rotate(").concat(el,"deg)")}}))),u.createElement(h.Z,{visible:D,motionName:q},function(e){var t=e.className,r=e.style;return u.createElement(v.Z,{open:!0,getContainer:null!=H?H:document.body},u.createElement("div",{className:d()("".concat(O,"-operations-wrapper"),t,T),style:r},eV))}))},R=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName","crossOrigin","decoding","loading","referrerPolicy","sizes","srcSet","useMap","draggable"],L=["src","visible","onVisibleChange","getContainer","mask","maskClassName","icons","scaleStep"],D=0,I=function(e){var t,r=e.src,o=e.alt,f=e.onPreviewClose,v=e.prefixCls,g=void 0===v?"rc-image":v,h=e.previewPrefixCls,y=e.placeholder,b=e.fallback,w=e.width,Z=e.height,C=e.style,x=e.preview,O=void 0===x||x,N=e.className,P=e.onClick,_=e.onError,S=e.wrapperClassName,j=e.wrapperStyle,z=e.rootClassName,k=e.crossOrigin,I=e.decoding,A=e.loading,T=e.referrerPolicy,H=e.sizes,B=e.srcSet,V=e.useMap,W=e.draggable,F=(0,s.Z)(e,R),G=y&&!0!==y,q="object"===(0,a.Z)(O)?O:{},X=q.src,Y=q.visible,U=void 0===Y?void 0:Y,J=q.onVisibleChange,$=q.getContainer,K=q.mask,Q=q.maskClassName,ee=q.icons,et=q.scaleStep,er=(0,s.Z)(q,L),en=null!=X?X:r,ea=void 0!==U,eo=(0,m.Z)(!!U,{value:U,onChange:void 0===J?f:J}),ei=(0,c.Z)(eo,2),el=ei[0],ec=ei[1],es=(0,u.useState)(G?"loading":"normal"),eu=(0,c.Z)(es,2),ef=eu[0],ed=eu[1],ep=(0,u.useState)(null),em=(0,c.Z)(ep,2),ev=em[0],eg=em[1],eh="error"===ef,ey=u.useContext(E),eb=ey.isPreviewGroup,ew=ey.setCurrent,eZ=ey.setShowPreview,eC=ey.setMousePosition,ex=ey.registerImage,eE=u.useState(function(){return D+=1}),eO=(0,c.Z)(eE,1)[0],eN=!!O,eP=u.useRef(!1),e_=function(){ed("normal")};u.useEffect(function(){return ex(eO,en)},[]),u.useEffect(function(){ex(eO,en,eN)},[en,eN]),u.useEffect(function(){eh&&ed("normal"),G&&!eP.current&&ed("loading")},[r]);var eS=d()(g,S,z,(0,l.Z)({},"".concat(g,"-error"),eh)),ej={crossOrigin:k,decoding:I,draggable:W,loading:A,referrerPolicy:T,sizes:H,srcSet:B,useMap:V,alt:o,className:d()("".concat(g,"-img"),(0,l.Z)({},"".concat(g,"-img-placeholder"),!0===y),N),style:(0,i.Z)({height:Z},C)};return u.createElement(u.Fragment,null,u.createElement("div",(0,n.Z)({},F,{className:eS,onClick:eN?function(e){if(!ea){var t=(0,p.os)(e.target),r=t.left,n=t.top;eb?(ew(eO),eC({x:r,y:n})):eg({x:r,y:n})}eb?eZ(!0):ec(!0),P&&P(e)}:P,style:(0,i.Z)({width:w,height:Z},j)}),u.createElement("img",(0,n.Z)({},ej,{ref:function(e){eP.current=!1,"loading"===ef&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(eP.current=!0,e_())}},eh&&b?{src:b}:{onLoad:e_,onError:function(e){_&&_(e),ed("error")},src:r},{width:w,height:Z})),"loading"===ef&&u.createElement("div",{"aria-hidden":"true",className:"".concat(g,"-placeholder")},y),K&&eN&&u.createElement("div",{className:d()("".concat(g,"-mask"),Q),style:{display:(null===(t=ej.style)||void 0===t?void 0:t.display)==="none"?"none":void 0}},K)),!eb&&eN&&u.createElement(M,(0,n.Z)({"aria-hidden":!el,visible:el,prefixCls:void 0===h?"".concat(g,"-preview"):h,onClose:function(e){e.stopPropagation(),ec(!1),ea||eg(null)},mousePosition:ev,src:eh&&b?b:en,alt:o,getContainer:void 0===$?void 0:$,icons:ee,scaleStep:et,rootClassName:z},er)))};I.PreviewGroup=function(e){var t=e.previewPrefixCls,r=e.children,o=e.icons,i=e.preview,l="object"===(0,a.Z)(i)?i:{},f=l.visible,d=void 0===f?void 0:f,p=l.onVisibleChange,v=l.getContainer,g=l.current,h=l.countRender,y=(0,s.Z)(l,x),b=(0,u.useState)(new Map),w=(0,c.Z)(b,2),Z=w[0],C=w[1],E=(0,u.useState)(),N=(0,c.Z)(E,2),P=N[0],_=N[1],S=(0,m.Z)(!!d,{value:d,onChange:void 0===p?void 0:p}),j=(0,c.Z)(S,2),z=j[0],k=j[1],R=(0,u.useState)(null),L=(0,c.Z)(R,2),D=L[0],I=L[1],A=void 0!==d,T=Array.from(Z.keys())[void 0===g?0:g],H=new Map(Array.from(Z).filter(function(e){return!!(0,c.Z)(e,2)[1].canPreview}).map(function(e){var t=(0,c.Z)(e,2);return[t[0],t[1].url]}));return u.useEffect(function(){_(T)},[T]),u.useEffect(function(){!z&&A&&_(T)},[T,A,z]),u.createElement(O,{value:{isPreviewGroup:!0,previewUrls:H,setPreviewUrls:C,current:P,setCurrent:_,setShowPreview:k,setMousePosition:I,registerImage:function(e,t){var r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return C(function(n){return new Map(n).set(e,{url:t,canPreview:r})}),function(){C(function(t){var r=new Map(t);return r.delete(e)?r:t})}}}},r,u.createElement(M,(0,n.Z)({"aria-hidden":!z,visible:z,prefixCls:void 0===t?"rc-image-preview":t,onClose:function(e){e.stopPropagation(),k(!1),I(null)},mousePosition:D,src:H.get(P),icons:void 0===o?{}:o,getContainer:void 0===v?void 0:v,countRender:void 0===h?void 0:h},y)))},I.displayName="Image";var A=r(53124),T=r(40378),H=r(33603),B=r(97937),V=r(6171),W=r(18073),F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},G=r(42135),q=function(e,t){return u.createElement(G.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:F}))};q.displayName="RotateLeftOutlined";var X=u.forwardRef(q),Y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},U=function(e,t){return u.createElement(G.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:Y}))};U.displayName="RotateRightOutlined";var J=u.forwardRef(U),$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},K=function(e,t){return u.createElement(G.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:$}))};K.displayName="ZoomInOutlined";var Q=u.forwardRef(K),ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},et=function(e,t){return u.createElement(G.Z,(0,i.Z)((0,i.Z)({},e),{},{ref:t,icon:ee}))};et.displayName="ZoomOutOutlined";var er=u.forwardRef(et),en=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ea={rotateLeft:u.createElement(X,null),rotateRight:u.createElement(J,null),zoomIn:u.createElement(Q,null),zoomOut:u.createElement(er,null),close:u.createElement(B.Z,null),left:u.createElement(V.Z,null),right:u.createElement(W.Z,null)},eo=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},ei=function(e){var t=e.prefixCls,r=e.preview,i=eo(e,["prefixCls","preview"]),l=(0,u.useContext)(A.E_),c=l.getPrefixCls,s=l.locale,f=void 0===s?T.Z:s,d=l.getPopupContainer,p=c("image",t),m=c(),v=f.Image||T.Z.Image,g=u.useMemo(function(){if(!1===r)return r;var e="object"===(0,a.Z)(r)?r:{},t=e.getContainer,i=eo(e,["getContainer"]);return(0,n.Z)((0,n.Z)({mask:u.createElement("div",{className:"".concat(p,"-mask-info")},u.createElement(o.Z,null),null==v?void 0:v.preview),icons:ea},i),{getContainer:t||d,transitionName:(0,H.mL)(m,"zoom",e.transitionName),maskTransitionName:(0,H.mL)(m,"fade",e.maskTransitionName)})},[r,v]);return u.createElement(I,(0,n.Z)({prefixCls:p,preview:g},i))};ei.PreviewGroup=function(e){var t=e.previewPrefixCls,r=e.preview,o=en(e,["previewPrefixCls","preview"]),i=u.useContext(A.E_).getPrefixCls,l=i("image-preview",t),c=i(),s=u.useMemo(function(){if(!1===r)return r;var e="object"===(0,a.Z)(r)?r:{};return(0,n.Z)((0,n.Z)({},e),{transitionName:(0,H.mL)(c,"zoom",e.transitionName),maskTransitionName:(0,H.mL)(c,"fade",e.maskTransitionName)})},[r]);return u.createElement(I.PreviewGroup,(0,n.Z)({preview:s,previewPrefixCls:l,icons:ea},o))};var el=ei},55241:function(e,t,r){"use strict";var n=r(87462),a=r(67294),o=r(53124),i=r(94199),l=r(81643),c=r(33603),s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},u=function(e){var t=e.title,r=e.content,n=e.prefixCls;return t||r?a.createElement(a.Fragment,null,t&&a.createElement("div",{className:"".concat(n,"-title")},(0,l.Z)(t)),a.createElement("div",{className:"".concat(n,"-inner-content")},(0,l.Z)(r))):null},f=a.forwardRef(function(e,t){var r=e.prefixCls,l=e.title,f=e.content,d=e._overlay,p=e.placement,m=e.trigger,v=e.mouseEnterDelay,g=e.mouseLeaveDelay,h=e.overlayStyle,y=s(e,["prefixCls","title","content","_overlay","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),b=a.useContext(o.E_).getPrefixCls,w=b("popover",r),Z=b();return a.createElement(i.Z,(0,n.Z)({placement:void 0===p?"top":p,trigger:void 0===m?"hover":m,mouseEnterDelay:void 0===v?.1:v,mouseLeaveDelay:void 0===g?.1:g,overlayStyle:void 0===h?{}:h},y,{prefixCls:w,ref:t,overlay:d||a.createElement(u,{prefixCls:w,title:l,content:f}),transitionName:(0,c.mL)(Z,"zoom-big",y.transitionName)}))});t.Z=f},71230:function(e,t,r){"use strict";var n=r(92820);t.Z=n.Z},26303:function(e,t,r){"use strict";r.d(t,{Z:function(){return C}});var n=r(4942),a=r(87462),o=r(71002),i=r(94184),l=r.n(i),c=r(67294),s=r(53124),u=r(98423),f=function(e){var t,r,o=e.prefixCls,i=e.className,s=e.style,u=e.size,f=e.shape,d=l()((t={},(0,n.Z)(t,"".concat(o,"-lg"),"large"===u),(0,n.Z)(t,"".concat(o,"-sm"),"small"===u),t)),p=l()((r={},(0,n.Z)(r,"".concat(o,"-circle"),"circle"===f),(0,n.Z)(r,"".concat(o,"-square"),"square"===f),(0,n.Z)(r,"".concat(o,"-round"),"round"===f),r)),m=c.useMemo(function(){return"number"==typeof u?{width:u,height:u,lineHeight:"".concat(u,"px")}:{}},[u]);return c.createElement("span",{className:l()(o,d,p,i),style:(0,a.Z)((0,a.Z)({},m),s)})},d=r(1413),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},m=r(42135),v=function(e,t){return c.createElement(m.Z,(0,d.Z)((0,d.Z)({},e),{},{ref:t,icon:p}))};v.displayName="DotChartOutlined";var g=c.forwardRef(v),h=r(74902),y=function(e){var t=function(t){var r=e.width,n=e.rows;return Array.isArray(r)?r[t]:(void 0===n?2:n)-1===t?r:void 0},r=e.prefixCls,n=e.className,a=e.style,o=e.rows,i=(0,h.Z)(Array(o)).map(function(e,r){return c.createElement("li",{key:r,style:{width:t(r)}})});return c.createElement("ul",{className:l()(r,n),style:a},i)},b=function(e){var t=e.prefixCls,r=e.className,n=e.width,o=e.style;return c.createElement("h3",{className:l()(t,r),style:(0,a.Z)({width:n},o)})};function w(e){return e&&"object"===(0,o.Z)(e)?e:{}}var Z=function(e){var t=e.prefixCls,r=e.loading,o=e.className,i=e.style,u=e.children,d=e.avatar,p=void 0!==d&&d,m=e.title,v=void 0===m||m,g=e.paragraph,h=void 0===g||g,Z=e.active,C=e.round,x=c.useContext(s.E_),E=x.getPrefixCls,O=x.direction,N=E("skeleton",t);if(r||!("loading"in e)){var P=!!p,_=!!v,S=!!h;if(P){var j=(0,a.Z)((0,a.Z)({prefixCls:"".concat(N,"-avatar")},_&&!S?{size:"large",shape:"square"}:{size:"large",shape:"circle"}),w(p));k=c.createElement("div",{className:"".concat(N,"-header")},c.createElement(f,(0,a.Z)({},j)))}if(_||S){if(_){var z,k,M,R,L,D=(0,a.Z)((0,a.Z)({prefixCls:"".concat(N,"-title")},!P&&S?{width:"38%"}:P&&S?{width:"50%"}:{}),w(v));R=c.createElement(b,(0,a.Z)({},D))}if(S){var I,A=(0,a.Z)((0,a.Z)({prefixCls:"".concat(N,"-paragraph")},(I={},P&&_||(I.width="61%"),!P&&_?I.rows=3:I.rows=2,I)),w(h));L=c.createElement(y,(0,a.Z)({},A))}M=c.createElement("div",{className:"".concat(N,"-content")},R,L)}var T=l()(N,(z={},(0,n.Z)(z,"".concat(N,"-with-avatar"),P),(0,n.Z)(z,"".concat(N,"-active"),Z),(0,n.Z)(z,"".concat(N,"-rtl"),"rtl"===O),(0,n.Z)(z,"".concat(N,"-round"),C),z),o);return c.createElement("div",{className:T,style:i},k,M)}return void 0!==u?u:null};Z.Button=function(e){var t,r=e.prefixCls,o=e.className,i=e.active,d=e.block,p=e.size,m=(0,c.useContext(s.E_).getPrefixCls)("skeleton",r),v=(0,u.Z)(e,["prefixCls"]),g=l()(m,"".concat(m,"-element"),(t={},(0,n.Z)(t,"".concat(m,"-active"),i),(0,n.Z)(t,"".concat(m,"-block"),void 0!==d&&d),t),o);return c.createElement("div",{className:g},c.createElement(f,(0,a.Z)({prefixCls:"".concat(m,"-button"),size:void 0===p?"default":p},v)))},Z.Avatar=function(e){var t=e.prefixCls,r=e.className,o=e.active,i=e.shape,d=e.size,p=(0,c.useContext(s.E_).getPrefixCls)("skeleton",t),m=(0,u.Z)(e,["prefixCls","className"]),v=l()(p,"".concat(p,"-element"),(0,n.Z)({},"".concat(p,"-active"),o),r);return c.createElement("div",{className:v},c.createElement(f,(0,a.Z)({prefixCls:"".concat(p,"-avatar"),shape:void 0===i?"circle":i,size:void 0===d?"default":d},m)))},Z.Input=function(e){var t,r=e.prefixCls,o=e.className,i=e.active,d=e.block,p=e.size,m=(0,c.useContext(s.E_).getPrefixCls)("skeleton",r),v=(0,u.Z)(e,["prefixCls"]),g=l()(m,"".concat(m,"-element"),(t={},(0,n.Z)(t,"".concat(m,"-active"),i),(0,n.Z)(t,"".concat(m,"-block"),d),t),o);return c.createElement("div",{className:g},c.createElement(f,(0,a.Z)({prefixCls:"".concat(m,"-input"),size:void 0===p?"default":p},v)))},Z.Image=function(e){var t=e.prefixCls,r=e.className,a=e.style,o=e.active,i=(0,c.useContext(s.E_).getPrefixCls)("skeleton",t),u=l()(i,"".concat(i,"-element"),(0,n.Z)({},"".concat(i,"-active"),o),r);return c.createElement("div",{className:u},c.createElement("div",{className:l()("".concat(i,"-image"),r),style:a},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(i,"-image-svg")},c.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(i,"-image-path")}))))},Z.Node=function(e){var t=e.prefixCls,r=e.className,a=e.style,o=e.active,i=e.children,u=(0,c.useContext(s.E_).getPrefixCls)("skeleton",t),f=l()(u,"".concat(u,"-element"),(0,n.Z)({},"".concat(u,"-active"),o),r),d=null!=i?i:c.createElement(g,null);return c.createElement("div",{className:f},c.createElement("div",{className:l()("".concat(u,"-image"),r),style:a},d))};var C=Z},63406:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return!isNaN(parseFloat(e))&&isFinite(e)}},87412:function(e,t,r){"use strict";var n,a=r(75263).default,o=r(64836).default;t.ZP=void 0;var i=o(r(38416)),l=o(r(10434)),c=o(r(27424)),s=o(r(54067)),u=o(r(68229)),f=o(r(67638)),d=o(r(94184)),p=o(r(18475)),m=a(r(67294)),v=r(31929),g=o(r(63406)),h=r(62704),y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},w=m.createContext({}),Z=(n=0,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return n+=1,"".concat(e).concat(n)}),C=m.forwardRef(function(e,t){var r,n,a,o,C,x,E,O,N,P,_=e.prefixCls,S=e.className,j=e.trigger,z=e.children,k=e.defaultCollapsed,M=e.theme,R=e.style,L=e.collapsible,D=void 0!==L&&L,I=e.reverseArrow,A=void 0!==I&&I,T=e.width,H=e.collapsedWidth,B=void 0===H?80:H,V=e.zeroWidthTriggerStyle,W=e.breakpoint,F=e.onCollapse,G=e.onBreakpoint,q=y(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),X=(0,m.useContext)(h.LayoutContext).siderHook,Y=(0,m.useState)("collapsed"in q?q.collapsed:void 0!==k&&k),U=(0,c.default)(Y,2),J=U[0],$=U[1],K=(0,m.useState)(!1),Q=(0,c.default)(K,2),ee=Q[0],et=Q[1];(0,m.useEffect)(function(){"collapsed"in q&&$(q.collapsed)},[q.collapsed]);var er=function(e,t){"collapsed"in q||$(e),null==F||F(e,t)},en=(0,m.useRef)();en.current=function(e){et(e.matches),null==G||G(e.matches),J!==e.matches&&er(e.matches,"responsive")},(0,m.useEffect)(function(){function e(e){return en.current(e)}if("undefined"!=typeof window){var t,r=window.matchMedia;if(r&&W&&W in b){t=r("(max-width: ".concat(b[W],")"));try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return function(){try{null==t||t.removeEventListener("change",e)}catch(r){null==t||t.removeListener(e)}}},[W]),(0,m.useEffect)(function(){var e=Z("ant-sider-");return X.addSider(e),function(){return X.removeSider(e)}},[]);var ea=function(){er(!J,"clickTrigger")},eo=(0,m.useContext)(v.ConfigContext).getPrefixCls,ei=m.useMemo(function(){return{siderCollapsed:J}},[J]);return m.createElement(w.Provider,{value:ei},(n=eo("layout-sider",_),a=(0,p.default)(q,["collapsed"]),o=J?B:void 0===T?200:T,C=(0,g.default)(o)?"".concat(o,"px"):String(o),x=0===parseFloat(String(B||0))?m.createElement("span",{onClick:ea,className:(0,d.default)("".concat(n,"-zero-width-trigger"),"".concat(n,"-zero-width-trigger-").concat(A?"right":"left")),style:V},j||m.createElement(s.default,null)):null,E=({expanded:A?m.createElement(f.default,null):m.createElement(u.default,null),collapsed:A?m.createElement(u.default,null):m.createElement(f.default,null)})[J?"collapsed":"expanded"],O=null!==j?x||m.createElement("div",{className:"".concat(n,"-trigger"),onClick:ea,style:{width:C}},j||E):null,N=(0,l.default)((0,l.default)({},void 0===R?{}:R),{flex:"0 0 ".concat(C),maxWidth:C,minWidth:C,width:C}),P=(0,d.default)(n,"".concat(n,"-").concat(void 0===M?"dark":M),(r={},(0,i.default)(r,"".concat(n,"-collapsed"),!!J),(0,i.default)(r,"".concat(n,"-has-trigger"),D&&null!==j&&!x),(0,i.default)(r,"".concat(n,"-below"),!!ee),(0,i.default)(r,"".concat(n,"-zero-width"),0===parseFloat(C)),r),S),m.createElement("aside",(0,l.default)({className:P},a,{style:N,ref:t}),m.createElement("div",{className:"".concat(n,"-children")},z),D||ee&&x?O:null)))});t.ZP=C},62704:function(e,t,r){"use strict";var n=r(75263).default,a=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.LayoutContext=t.Header=t.Footer=t.Content=void 0;var o=a(r(861)),i=a(r(38416)),l=a(r(27424)),c=a(r(10434)),s=a(r(94184)),u=n(r(67294)),f=r(31929),d=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);at.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},p=u.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function m(e){var t=e.suffixCls,r=e.tagName;return e.displayName,function(e){return u.forwardRef(function(n,a){var o=(0,u.useContext(f.ConfigContext).getPrefixCls)(t,n.prefixCls);return u.createElement(e,(0,c.default)({ref:a,prefixCls:o,tagName:r},n))})}}t.LayoutContext=p;var v=u.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.children,o=e.tagName,i=d(e,["prefixCls","className","children","tagName"]),l=(0,s.default)(r,n);return u.createElement(o,(0,c.default)((0,c.default)({className:l},i),{ref:t}),a)}),g=u.forwardRef(function(e,t){var r,n=u.useContext(f.ConfigContext).direction,a=u.useState([]),m=(0,l.default)(a,2),v=m[0],g=m[1],h=e.prefixCls,y=e.className,b=e.children,w=e.hasSider,Z=e.tagName,C=d(e,["prefixCls","className","children","hasSider","tagName"]),x=(0,s.default)(h,(r={},(0,i.default)(r,"".concat(h,"-has-sider"),"boolean"==typeof w?w:v.length>0),(0,i.default)(r,"".concat(h,"-rtl"),"rtl"===n),r),y),E=u.useMemo(function(){return{siderHook:{addSider:function(e){g(function(t){return[].concat((0,o.default)(t),[e])})},removeSider:function(e){g(function(t){return t.filter(function(t){return t!==e})})}}}},[]);return u.createElement(p.Provider,{value:E},u.createElement(Z,(0,c.default)({ref:t,className:x},C),b))}),h=m({suffixCls:"layout",tagName:"section",displayName:"Layout"})(g),y=m({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(v);t.Header=y;var b=m({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(v);t.Footer=b;var w=m({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(v);t.Content=w,t.default=h},19749:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(6495).Z,a=r(92648).Z,o=r(91598).Z,i=r(17273).Z,l=o(r(67294)),c=a(r(83121)),s=r(2675),u=r(10139),f=r(28730);r(57238);var d=a(r(89824));let p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function m(e){return void 0!==e.default}function v(e){return"number"==typeof e||void 0===e?e:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function g(e,t,r,a,o){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let i="decode"in e?e.decode():Promise.resolve();i.catch(()=>{}).then(()=>{if(e.parentNode){if(null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let o=!1,i=!1;r.current(n({},t,{nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>o,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{o=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}}))}(null==a?void 0:a.current)&&a.current(e)}})}let h=l.forwardRef((e,t)=>{var{imgAttributes:r,heightInt:a,widthInt:o,qualityInt:c,className:s,imgStyle:u,blurStyle:f,isLazy:d,fill:p,placeholder:m,loading:v,srcString:h,config:y,unoptimized:b,loader:w,onLoadRef:Z,onLoadingCompleteRef:C,onLoad:x,onError:E}=e,O=i(e,["imgAttributes","heightInt","widthInt","qualityInt","className","imgStyle","blurStyle","isLazy","fill","placeholder","loading","srcString","config","unoptimized","loader","onLoadRef","onLoadingCompleteRef","onLoad","onError"]);return v=d?"lazy":v,l.default.createElement(l.default.Fragment,null,l.default.createElement("img",Object.assign({},O,r,{width:o,height:a,decoding:"async","data-nimg":p?"fill":"1",className:s,loading:v,style:n({},u,f),ref:l.useCallback(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(E&&(e.src=e.src),e.complete&&g(e,h,Z,C,b))},[h,Z,C,E,b,t]),onLoad:e=>{let t=e.currentTarget;g(t,h,Z,C,b)},onError:e=>{let{style:t}=e.currentTarget;"transparent"===t.color&&(t.color=""),"blur"===m&&t.backgroundImage&&(t.backgroundSize="",t.backgroundPosition="",t.backgroundRepeat="",t.backgroundImage=""),E&&E(e)}})))}),y=l.forwardRef((e,t)=>{let r,a;var o,{src:g,sizes:y,unoptimized:b=!1,priority:w=!1,loading:Z,className:C,quality:x,width:E,height:O,fill:N,style:P,onLoad:_,onLoadingComplete:S,placeholder:j="empty",blurDataURL:z,layout:k,objectFit:M,objectPosition:R,lazyBoundary:L,lazyRoot:D}=e,I=i(e,["src","sizes","unoptimized","priority","loading","className","quality","width","height","fill","style","onLoad","onLoadingComplete","placeholder","blurDataURL","layout","objectFit","objectPosition","lazyBoundary","lazyRoot"]);let A=l.useContext(f.ImageConfigContext),T=l.useMemo(()=>{let e=p||A||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return n({},e,{allSizes:t,deviceSizes:r})},[A]),H=I,B=H.loader||d.default;if(delete H.loader,"__next_img_default"in B){if("custom"===T.loader)throw Error('Image with src "'.concat(g,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}else{let V=B;B=e=>{let{config:t}=e,r=i(e,["config"]);return V(r)}}if(k){"fill"===k&&(N=!0);let W={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[k];W&&(P=n({},P,W));let F={responsive:"100vw",fill:"100vw"}[k];F&&!y&&(y=F)}let G="",q=v(E),X=v(O);if("object"==typeof(o=g)&&(m(o)||void 0!==o.src)){let Y=m(g)?g.default:g;if(!Y.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(Y)));if(!Y.height||!Y.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(Y)));if(r=Y.blurWidth,a=Y.blurHeight,z=z||Y.blurDataURL,G=Y.src,!N){if(q||X){if(q&&!X){let U=q/Y.width;X=Math.round(Y.height*U)}else if(!q&&X){let J=X/Y.height;q=Math.round(Y.width*J)}}else q=Y.width,X=Y.height}}let $=!w&&("lazy"===Z||void 0===Z);((g="string"==typeof g?g:G).startsWith("data:")||g.startsWith("blob:"))&&(b=!0,$=!1),T.unoptimized&&(b=!0);let K=v(x),Q=Object.assign(N?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:R}:{},{color:"transparent"},P),ee="blur"===j&&z?{backgroundSize:Q.objectFit||"cover",backgroundPosition:Q.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'.concat(s.getImageBlurSvg({widthInt:q,heightInt:X,blurWidth:r,blurHeight:a,blurDataURL:z}),'")')}:{},et=function(e){let{config:t,src:r,unoptimized:n,width:a,quality:o,sizes:i,loader:l}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:c,kind:s}=function(e,t,r){let{deviceSizes:n,allSizes:a}=e;if(r){let o=/(^|\s)(1?\d?\d)vw/g,i=[];for(let l;l=o.exec(r);l)i.push(parseInt(l[2]));if(i.length){let c=.01*Math.min(...i);return{widths:a.filter(e=>e>=n[0]*c),kind:"w"}}return{widths:a,kind:"w"}}if("number"!=typeof t)return{widths:n,kind:"w"};let s=[...new Set([t,2*t].map(e=>a.find(t=>t>=e)||a[a.length-1]))];return{widths:s,kind:"x"}}(t,a,i),u=c.length-1;return{sizes:i||"w"!==s?i:"100vw",srcSet:c.map((e,n)=>"".concat(l({config:t,src:r,quality:o,width:e})," ").concat("w"===s?e:n+1).concat(s)).join(", "),src:l({config:t,src:r,quality:o,width:c[u]})}}({config:T,src:g,unoptimized:b,width:q,quality:K,sizes:y,loader:B}),er=g,en={imageSrcSet:et.srcSet,imageSizes:et.sizes,crossOrigin:H.crossOrigin},ea=l.useRef(_);l.useEffect(()=>{ea.current=_},[_]);let eo=l.useRef(S);l.useEffect(()=>{eo.current=S},[S]);let ei=n({isLazy:$,imgAttributes:et,heightInt:X,widthInt:q,qualityInt:K,className:C,imgStyle:Q,blurStyle:ee,loading:Z,config:T,fill:N,unoptimized:b,placeholder:j,loader:B,srcString:er,onLoadRef:ea,onLoadingCompleteRef:eo},H);return l.default.createElement(l.default.Fragment,null,l.default.createElement(h,Object.assign({},ei,{ref:t})),w?l.default.createElement(c.default,null,l.default.createElement("link",Object.assign({key:"__nimg-"+et.src+et.srcSet+et.sizes,rel:"preload",as:"image",href:et.srcSet?void 0:et.src},en))):null)});t.default=y,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54564:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{children:t}=e;return t},t.suspense=function(){let e=Error(n.NEXT_DYNAMIC_NO_SSR_CODE);throw e.digest=n.NEXT_DYNAMIC_NO_SSR_CODE,e},(0,r(92648).Z)(r(67294));var n=r(92983)},37645:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let r=i.default,a={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?a.loader=()=>e:"function"==typeof e?a.loader=e:"object"==typeof e&&(a=n({},a,e)),a=n({},a,t);let o=a.loader,l=()=>o().then(c);if(a.loadableGenerated&&delete(a=n({},a,a.loadableGenerated,{loader:l})).loadableGenerated,"boolean"==typeof a.ssr){if(!a.ssr)return delete a.ssr,s(l,a);delete a.ssr}return r(a)},t.noSSR=s;var n=r(6495).Z,a=r(92648).Z,o=(0,r(91598).Z)(r(67294)),i=a(r(14588)),l=a(r(54564));function c(e){return{default:e.default||e}}function s(e,t){delete t.webpack,delete t.modules;let r=o.lazy(e),n=t.loading,a=o.default.createElement(n,{error:null,isLoading:!0,pastDelay:!1,timedOut:!1});return e=>o.default.createElement(o.Suspense,{fallback:a},o.default.createElement(l.default,null,o.default.createElement(r,Object.assign({},e))))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2675:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getImageBlurSvg=function(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:a,blurDataURL:o}=e,i=n||t,l=a||r,c=o.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return i&&l?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 ".concat(i," ").concat(l,"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='").concat(n&&a?"1":"20","'/%3E").concat(c,"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='").concat(o,"'/%3E%3C/svg%3E"):"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' x='0' y='0' height='100%25' width='100%25' href='".concat(o,"'/%3E%3C/svg%3E")}},89824:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:a}=e;return r.endsWith(".svg")&&!t.dangerouslyAllowSVG?r:"".concat(t.path,"?url=").concat(encodeURIComponent(r),"&w=").concat(n,"&q=").concat(a||75)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r.__next_img_default=!0,t.default=r},33644:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var n=(0,r(92648).Z)(r(67294));let a=n.default.createContext(null);t.LoadableContext=a},14588:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(6495).Z,a=(0,r(92648).Z)(r(67294)),o=r(33644);let i=[],l=[],c=!1;function s(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state=n({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function f(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t);r.lazy=a.default.lazy(r.loader);let n=null;function i(){if(!n){let t=new u(e,r);n={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return n.promise()}if(!c){let s=r.webpack?r.webpack():r.modules;s&&l.push(e=>{for(let t of s)if(-1!==e.indexOf(t))return i()})}function f(e){!function(){i();let e=a.default.useContext(o.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let t=a.default.createElement(r.loading,{isLoading:!0,pastDelay:!0,error:null});return a.default.createElement(a.default.Suspense,{fallback:t},a.default.createElement(r.lazy,e))}return f.preload=()=>i(),f.displayName="LoadableComponent",f}(s,e)}function d(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return d(e,t)})}f.preloadAll=()=>new Promise((e,t)=>{d(i).then(e,t)}),f.preloadReady=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(t=>{let r=()=>(c=!0,t());d(l,e).then(r,r)})},window.__NEXT_PRELOADREADY=f.preloadReady,t.default=f},5152:function(e,t,r){e.exports=r(37645)},25675:function(e,t,r){e.exports=r(19749)}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/d3048c20-5ff314987ce2bf57.js b/static/web/_next/static/chunks/d3048c20-5ff314987ce2bf57.js new file mode 100644 index 000000000..3deb19c42 --- /dev/null +++ b/static/web/_next/static/chunks/d3048c20-5ff314987ce2bf57.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1272],{77493:function(u,e,t){t.d(e,{E9:function(){return uB},Jh:function(){return E},ML:function(){return Q},NB:function(){return ur},W_:function(){return Z},YR:function(){return uI},e6:function(){return uA},o4:function(){return uE},xv:function(){return uy},y$:function(){return uo}});var r,n,D=t(45628),a=t(12902);function o(u,e,t){return e in u?Object.defineProperty(u,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):u[e]=t,u}var i=new WeakMap,s=new WeakMap,C=new WeakMap,B=new WeakMap,l=new WeakMap,c=new WeakMap,f=new WeakMap;function A(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable})),t.push.apply(t,r)}return t}function h(u){for(var e=1;e{var u={children:[],operations:[],selection:null,marks:null,id:F++,isInline:()=>!1,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:e=>{for(var t of Q.pathRefs(u))ui.transform(t,e);for(var r of Q.pointRefs(u))ul.transform(r,e);for(var n of Q.rangeRefs(u))uh.transform(n,e);var D,a,o=i.get(u)||[],B=s.get(u)||new Set,l=u=>{if(u){var e=u.join(",");a.has(e)||(a.add(e),D.push(u))}};if(uo.operationCanTransformPath(e))for(var c of(D=[],a=new Set,o))l(uo.transform(c,e));else D=o,a=B;for(var f of u.getDirtyPaths(e))l(f);i.set(u,D),s.set(u,a),uI.transform(u,e),u.operations.push(e),Q.normalize(u),"set_selection"===e.type&&(u.marks=null),C.get(u)||(C.set(u,!0),Promise.resolve().then(()=>{C.set(u,!1),u.onChange(),u.operations=[]}))},addMark:(e,t)=>{var{selection:r,markableVoid:n}=u;if(r){var D=(e,t)=>{if(!uy.isText(e))return!1;var[r,n]=Q.parent(u,t);return!u.isVoid(r)||u.markableVoid(r)},a=uA.isExpanded(r),o=!1;if(!a){var[i,s]=Q.node(u,r);if(i&&D(i,s)){var[B]=Q.parent(u,s);o=B&&u.markableVoid(B)}}if(a||o)uI.setNodes(u,{[e]:t},{match:D,split:!0,voids:!0});else{var l=h(h({},Q.marks(u)||{}),{},{[e]:t});u.marks=l,C.get(u)||u.onChange()}}},deleteBackward:e=>{var{selection:t}=u;t&&uA.isCollapsed(t)&&uI.delete(u,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:t}=u;t&&uA.isCollapsed(t)&&uI.delete(u,{unit:e})},deleteFragment:e=>{var{selection:t}=u;t&&uA.isExpanded(t)&&uI.delete(u,{reverse:"backward"===e})},getFragment:()=>{var{selection:e}=u;return e?ur.fragment(u,e):[]},insertBreak:()=>{uI.splitNodes(u,{always:!0})},insertSoftBreak:()=>{uI.splitNodes(u,{always:!0})},insertFragment:e=>{uI.insertFragment(u,e)},insertNode:e=>{uI.insertNodes(u,e)},insertText:e=>{var{selection:t,marks:r}=u;if(t){if(r){var n=h({text:e},r);uI.insertNodes(u,n)}else uI.insertText(u,e);u.marks=null}},normalizeNode:e=>{var[t,r]=e;if(!uy.isText(t)){if(Z.isElement(t)&&0===t.children.length){uI.insertNodes(u,{text:""},{at:r.concat(0),voids:!0});return}for(var n=!Q.isEditor(t)&&Z.isElement(t)&&(u.isInline(t)||0===t.children.length||uy.isText(t.children[0])||u.isInline(t.children[0])),D=0,a=0;a{var{selection:t}=u;if(t){var r=(e,t)=>{if(!uy.isText(e))return!1;var[r,n]=Q.parent(u,t);return!u.isVoid(r)||u.markableVoid(r)},n=uA.isExpanded(t),D=!1;if(!n){var[a,o]=Q.node(u,t);if(a&&r(a,o)){var[i]=Q.parent(u,o);D=i&&u.markableVoid(i)}}if(n||D)uI.unsetNodes(u,e,{match:r,split:!0,voids:!0});else{var s=h({},Q.marks(u)||{});delete s[e],u.marks=s,C.get(u)||u.onChange()}}},getDirtyPaths:u=>{switch(u.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=u;return uo.levels(e);case"insert_node":var{node:t,path:r}=u;return[...uo.levels(r),...uy.isText(t)?[]:Array.from(ur.nodes(t),u=>{var[,e]=u;return r.concat(e)})];case"merge_node":var{path:n}=u;return[...uo.ancestors(n),uo.previous(n)];case"move_node":var{path:D,newPath:a}=u;if(uo.equals(D,a))return[];var o=[],i=[];for(var s of uo.ancestors(D)){var C=uo.transform(s,u);o.push(C)}for(var B of uo.ancestors(a)){var l=uo.transform(B,u);i.push(l)}var c=i[i.length-1],f=a[a.length-1];return[...o,...i,c.concat(f)];case"remove_node":var{path:A}=u;return[...uo.ancestors(A)];case"split_node":var{path:h}=u;return[...uo.levels(h),uo.next(h)];default:return[]}}};return u};function d(u,e){if(null==u)return{};var t,r,n=function(u,e){if(null==u)return{};var t,r,n={},D=Object.keys(u);for(r=0;r=0||(n[t]=u[t]);return n}(u,e);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(u);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(u,t)&&(n[t]=u[t])}return n}var p=function(u){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=!e,r=e?x(u):u,D=n.None,a=n.None,o=0,i=null;for(var s of r){var C,B,l,c,f,A,h,F,E=s.codePointAt(0);if(!E)break;var d=I(s,E);if([D,a]=t?[a,d]:[d,D],(D&n.ZWJ)!=0&&(a&n.ExtPict)!=0&&!(t?M(u.substring(0,o)):M(u.substring(0,u.length-o)))||(D&n.RI)!=0&&(a&n.RI)!=0&&!(i=null!==i?!i:!!t||$(u.substring(0,u.length-o)))||D!==n.None&&a!==n.None&&function(u,e){return -1===z.findIndex(t=>(u&t[0])!=0&&(e&t[1])!=0)}(D,a))break;o+=s.length}return o||1},v=/\s/,g=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,m=/['\u2018\u2019]/,y=function(u){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=0,r=!1;u.length>0;){var n=p(u,e),[D,a]=b(u,n,e);if(w(D,a,e))r=!0,t+=n;else if(r)break;else t+=n;u=a}return t},b=(u,e,t)=>{if(t){var r=u.length-e;return[u.slice(r,u.length),u.slice(0,r)]}return[u.slice(0,e),u.slice(e)]},w=function u(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(v.test(e))return!1;if(m.test(e)){var n=p(t,r),[D,a]=b(t,n,r);if(u(D,a,r))return!0}return!g.test(e)},x=function*(u){for(var e=u.length-1,t=0;tu>=55296&&u<=56319,P=u=>u>=56320&&u<=57343;(r=n||(n={}))[r.None=0]="None",r[r.Extend=1]="Extend",r[r.ZWJ=2]="ZWJ",r[r.RI=4]="RI",r[r.Prepend=8]="Prepend",r[r.SpacingMark=16]="SpacingMark",r[r.L=32]="L",r[r.V=64]="V",r[r.T=128]="T",r[r.LV=256]="LV",r[r.LVT=512]="LVT",r[r.ExtPict=1024]="ExtPict",r[r.Any=2048]="Any";var k=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\u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\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,j=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,N=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,_=/^[\u1100-\u115F\uA960-\uA97C]$/,T=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,R=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,S=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,q=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,V=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,I=(u,e)=>{var t=n.Any;return -1!==u.search(k)&&(t|=n.Extend),8205===e&&(t|=n.ZWJ),e>=127462&&e<=127487&&(t|=n.RI),-1!==u.search(j)&&(t|=n.Prepend),-1!==u.search(N)&&(t|=n.SpacingMark),-1!==u.search(_)&&(t|=n.L),-1!==u.search(T)&&(t|=n.V),-1!==u.search(R)&&(t|=n.T),-1!==u.search(S)&&(t|=n.LV),-1!==u.search(q)&&(t|=n.LVT),-1!==u.search(V)&&(t|=n.ExtPict),t},z=[[n.L,n.L|n.V|n.LV|n.LVT],[n.LV|n.V,n.V|n.T],[n.LVT|n.T,n.T],[n.Any,n.Extend|n.ZWJ],[n.Any,n.SpacingMark],[n.Prepend,n.Any],[n.ZWJ,n.ExtPict],[n.RI,n.RI]],L=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uD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D8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,M=u=>-1!==u.search(L),W=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,$=u=>{var e=u.match(W);return null!==e&&e[0].length/2%2==1},J=u=>(0,D.P)(u)&&ur.isNodeList(u.children)&&!Q.isEditor(u),Z={isAncestor:u=>(0,D.P)(u)&&ur.isNodeList(u.children),isElement:J,isElementList:u=>Array.isArray(u)&&u.every(u=>Z.isElement(u)),isElementProps:u=>void 0!==u.children,isElementType:function(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return J(u)&&u[t]===e},matches(u,e){for(var t in e)if("children"!==t&&u[t]!==e[t])return!1;return!0}},U=["text"],Y=["text"];function G(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable})),t.push.apply(t,r)}return t}function H(u){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},{voids:t=!1,mode:r="lowest",at:n=u.selection,match:D}=e;if(n){var a=Q.path(u,n);for(var[o,i]of Q.levels(u,{at:a,voids:t,match:D,reverse:"lowest"===r})){if(uy.isText(o))return;if(uA.isRange(n)){if(uo.isAncestor(i,n.anchor.path)&&uo.isAncestor(i,n.focus.path))return[o,i]}else if(!uo.equals(a,i))return[o,i]}}},addMark(u,e,t){u.addMark(e,t)},after(u,e){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Q.point(u,e,{edge:"end"}),D=Q.end(u,[]),{distance:a=1}=r,o=0;for(var i of Q.positions(u,H(H({},r),{},{at:{anchor:n,focus:D}}))){if(o>a)break;0!==o&&(t=i),o++}return t},before(u,e){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Q.start(u,[]),D=Q.point(u,e,{edge:"start"}),{distance:a=1}=r,o=0;for(var i of Q.positions(u,H(H({},r),{},{at:{anchor:n,focus:D},reverse:!0}))){if(o>a)break;0!==o&&(t=i),o++}return t},deleteBackward(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:t="character"}=e;u.deleteBackward(t)},deleteForward(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:t="character"}=e;u.deleteForward(t)},deleteFragment(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:t="forward"}=e;u.deleteFragment(t)},edges:(u,e)=>[Q.start(u,e),Q.end(u,e)],end:(u,e)=>Q.point(u,e,{edge:"end"}),first(u,e){var t=Q.path(u,e,{edge:"start"});return Q.node(u,t)},fragment(u,e){var t=Q.range(u,e);return ur.fragment(u,t)},hasBlocks:(u,e)=>e.children.some(e=>Q.isBlock(u,e)),hasInlines:(u,e)=>e.children.some(e=>uy.isText(e)||Q.isInline(u,e)),hasTexts:(u,e)=>e.children.every(u=>uy.isText(u)),insertBreak(u){u.insertBreak()},insertSoftBreak(u){u.insertSoftBreak()},insertFragment(u,e){u.insertFragment(e)},insertNode(u,e){u.insertNode(e)},insertText(u,e){u.insertText(e)},isBlock:(u,e)=>Z.isElement(e)&&!u.isInline(e),isEditor(u){var e=K.get(u);if(void 0!==e)return e;if(!(0,D.P)(u))return!1;var t="function"==typeof u.addMark&&"function"==typeof u.apply&&"function"==typeof u.deleteBackward&&"function"==typeof u.deleteForward&&"function"==typeof u.deleteFragment&&"function"==typeof u.insertBreak&&"function"==typeof u.insertSoftBreak&&"function"==typeof u.insertFragment&&"function"==typeof u.insertNode&&"function"==typeof u.insertText&&"function"==typeof u.isInline&&"function"==typeof u.isVoid&&"function"==typeof u.normalizeNode&&"function"==typeof u.onChange&&"function"==typeof u.removeMark&&"function"==typeof u.getDirtyPaths&&(null===u.marks||(0,D.P)(u.marks))&&(null===u.selection||uA.isRange(u.selection))&&ur.isNodeList(u.children)&&ua.isOperationList(u.operations);return K.set(u,t),t},isEnd(u,e,t){var r=Q.end(u,t);return uB.equals(e,r)},isEdge:(u,e,t)=>Q.isStart(u,e,t)||Q.isEnd(u,e,t),isEmpty(u,e){var{children:t}=e,[r]=t;return 0===t.length||1===t.length&&uy.isText(r)&&""===r.text&&!u.isVoid(e)},isInline:(u,e)=>Z.isElement(e)&&u.isInline(e),isNormalizing(u){var e=B.get(u);return void 0===e||e},isStart(u,e,t){if(0!==e.offset)return!1;var r=Q.start(u,t);return uB.equals(e,r)},isVoid:(u,e)=>Z.isElement(e)&&u.isVoid(e),last(u,e){var t=Q.path(u,e,{edge:"end"});return Q.node(u,t)},leaf(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Q.path(u,e,t);return[ur.leaf(u,r),r]},*levels(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:t=u.selection,reverse:r=!1,voids:n=!1}=e,{match:D}=e;if(null==D&&(D=()=>!0),t){var a=[],o=Q.path(u,t);for(var[i,s]of ur.levels(u,o))if(D(i,s)&&(a.push([i,s]),!n&&Q.isVoid(u,i)))break;r&&a.reverse(),yield*a}},marks(u){var{marks:e,selection:t}=u;if(!t)return null;if(e)return e;if(uA.isExpanded(t)){var[r]=Q.nodes(u,{match:uy.isText});if(!r)return{};var[n]=r;return d(n,U)}var{anchor:D}=t,{path:a}=D,[o]=Q.leaf(u,a);if(0===D.offset){var i=Q.previous(u,{at:a,match:uy.isText});if(!Q.above(u,{match:e=>Q.isVoid(u,e)&&u.markableVoid(e)})){var s=Q.above(u,{match:e=>Q.isBlock(u,e)});if(i&&s){var[C,B]=i,[,l]=s;uo.isAncestor(l,B)&&(o=C)}}}return d(o,Y)},next(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:t="lowest",voids:r=!1}=e,{match:n,at:D=u.selection}=e;if(D){var a=Q.after(u,D,{voids:r});if(a){var[,o]=Q.last(u,[]),i=[a.path,o];if(uo.isPath(D)&&0===D.length)throw Error("Cannot get the next node from the root node!");if(null==n){if(uo.isPath(D)){var[s]=Q.parent(u,D);n=u=>s.children.includes(u)}else n=()=>!0}var[C]=Q.nodes(u,{at:i,match:n,mode:t,voids:r});return C}}},node(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Q.path(u,e,t);return[ur.get(u,r),r]},*nodes(u){var e,t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:D=u.selection,mode:a="all",universal:o=!1,reverse:i=!1,voids:s=!1}=n,{match:C}=n;if(C||(C=()=>!0),D){if(X.isSpan(D))e=D[0],t=D[1];else{var B=Q.path(u,D,{edge:"start"}),l=Q.path(u,D,{edge:"end"});e=i?l:B,t=i?B:l}var c=ur.nodes(u,{reverse:i,from:e,to:t,pass:e=>{var[t]=e;return!s&&Q.isVoid(u,t)}}),f=[];for(var[A,h]of c){var F=r&&0===uo.compare(h,r[1]);if("highest"!==a||!F){if(!C(A,h)){if(o&&!F&&uy.isText(A))return;continue}if("lowest"===a&&F){r=[A,h];continue}var E="lowest"===a?r:[A,h];E&&(o?f.push(E):yield E),r=[A,h]}}"lowest"===a&&r&&(o?f.push(r):yield r),o&&(yield*f)}},normalize(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:t=!1}=e,r=u=>i.get(u)||[],n=u=>s.get(u)||new Set,D=u=>{var e=r(u).pop(),t=e.join(",");return n(u).delete(t),e};if(Q.isNormalizing(u)){if(t){var a=Array.from(ur.nodes(u),u=>{var[,e]=u;return e}),o=new Set(a.map(u=>u.join(",")));i.set(u,a),s.set(u,o)}0!==r(u).length&&Q.withoutNormalizing(u,()=>{for(var e of r(u))if(ur.has(u,e)){var t=Q.node(u,e),[n,a]=t;Z.isElement(n)&&0===n.children.length&&u.normalizeNode(t)}for(var o=42*r(u).length,i=0;0!==r(u).length;){if(i>o)throw Error("\n Could not completely normalize the editor after ".concat(o," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=D(u);if(ur.has(u,s)){var C=Q.node(u,s);u.normalizeNode(C)}i++}})}},parent(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Q.path(u,e,t),n=uo.parent(r);return Q.node(u,n)},path(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:n}=t;if(uo.isPath(e)){if("start"===n){var[,D]=ur.first(u,e);e=D}else if("end"===n){var[,a]=ur.last(u,e);e=a}}return uA.isRange(e)&&(e="start"===n?uA.start(e):"end"===n?uA.end(e):uo.common(e.anchor.path,e.focus.path)),uB.isPoint(e)&&(e=e.path),null!=r&&(e=e.slice(0,r)),e},hasPath:(u,e)=>ur.has(u,e),pathRef(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=t,n={current:e,affinity:r,unref(){var{current:e}=n;return Q.pathRefs(u).delete(n),n.current=null,e}};return Q.pathRefs(u).add(n),n},pathRefs(u){var e=l.get(u);return e||(e=new Set,l.set(u,e)),e},point(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=t;if(uo.isPath(e)){if("end"===r){var n,[,D]=ur.last(u,e);n=D}else{var[,a]=ur.first(u,e);n=a}var o=ur.get(u,n);if(!uy.isText(o))throw Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:n,offset:"end"===r?o.text.length:0}}if(uA.isRange(e)){var[i,s]=uA.edges(e);return"start"===r?i:s}return e},pointRef(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=t,n={current:e,affinity:r,unref(){var{current:e}=n;return Q.pointRefs(u).delete(n),n.current=null,e}};return Q.pointRefs(u).add(n),n},pointRefs(u){var e=c.get(u);return e||(e=new Set,c.set(u,e)),e},*positions(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:t=u.selection,unit:r="offset",reverse:n=!1,voids:D=!1}=e;if(t){var a=Q.range(u,t),[o,i]=uA.edges(a),s=n?i:o,C=!1,B="",l=0,c=0,f=0;for(var[A,h]of Q.nodes(u,{at:t,reverse:n,voids:D})){if(Z.isElement(A)){if(!D&&u.isVoid(A)){yield Q.start(u,h);continue}if(u.isInline(A))continue;if(Q.hasInlines(u,A)){var F=uo.isAncestor(h,i.path)?i:Q.end(u,h),E=uo.isAncestor(h,o.path)?o:Q.start(u,h);B=Q.string(u,{anchor:E,focus:F},{voids:D}),C=!0}}if(uy.isText(A)){var d,v=uo.equals(h,s.path);for(v?(c=n?s.offset:A.text.length-s.offset,f=s.offset):(c=A.text.length,f=n?c:0),(v||C||"offset"===r)&&(yield{path:h,offset:f},C=!1);;){if(0===l){if(""===B)break;d=B,l="character"===r?p(d,n):"word"===r?y(d,n):"line"===r||"block"===r?d.length:1,B=b(B,l,n)[1]}if(f=n?f-l:f+l,(c-=l)<0){l=-c;break}l=0,yield{path:h,offset:f}}}}}},previous(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:t="lowest",voids:r=!1}=e,{match:n,at:D=u.selection}=e;if(D){var a=Q.before(u,D,{voids:r});if(a){var[,o]=Q.first(u,[]),i=[a.path,o];if(uo.isPath(D)&&0===D.length)throw Error("Cannot get the previous node from the root node!");if(null==n){if(uo.isPath(D)){var[s]=Q.parent(u,D);n=u=>s.children.includes(u)}else n=()=>!0}var[C]=Q.nodes(u,{reverse:!0,at:i,match:n,mode:t,voids:r});return C}}},range:(u,e,t)=>uA.isRange(e)&&!t?e:{anchor:Q.start(u,e),focus:Q.end(u,t||e)},rangeRef(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=t,n={current:e,affinity:r,unref(){var{current:e}=n;return Q.rangeRefs(u).delete(n),n.current=null,e}};return Q.rangeRefs(u).add(n),n},rangeRefs(u){var e=f.get(u);return e||(e=new Set,f.set(u,e)),e},removeMark(u,e){u.removeMark(e)},setNormalizing(u,e){B.set(u,e)},start:(u,e)=>Q.point(u,e,{edge:"start"}),string(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=t,n=Q.range(u,e),[D,a]=uA.edges(n),o="";for(var[i,s]of Q.nodes(u,{at:n,match:uy.isText,voids:r})){var C=i.text;uo.equals(s,a.path)&&(C=C.slice(0,a.offset)),uo.equals(s,D.path)&&(C=C.slice(D.offset)),o+=C}return o},unhangRange(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=t,[n,D]=uA.edges(e);if(0!==n.offset||0!==D.offset||uA.isCollapsed(e)||uo.hasPrevious(D.path))return e;var a=Q.above(u,{at:D,match:e=>Q.isBlock(u,e),voids:r}),o=a?a[1]:[],i={anchor:Q.start(u,n),focus:D},s=!0;for(var[C,B]of Q.nodes(u,{at:i,match:uy.isText,reverse:!0,voids:r})){if(s){s=!1;continue}if(""!==C.text||uo.isBefore(B,o)){D={path:B,offset:C.text.length};break}}return{anchor:n,focus:D}},void(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Q.above(u,H(H({},e),{},{match:e=>Q.isVoid(u,e)}))},withoutNormalizing(u,e){var t=Q.isNormalizing(u);Q.setNormalizing(u,!1);try{e()}finally{Q.setNormalizing(u,t)}Q.normalize(u)}},X={isSpan:u=>Array.isArray(u)&&2===u.length&&u.every(uo.isPath)},uu=["children"],ue=["text"],ut=new WeakMap,ur={ancestor(u,e){var t=ur.get(u,e);if(uy.isText(t))throw Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(uE.stringify(t)));return t},*ancestors(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of uo.ancestors(e,t))yield[ur.ancestor(u,r),r]},child(u,e){if(uy.isText(u))throw Error("Cannot get the child of a text node: ".concat(uE.stringify(u)));var t=u.children[e];if(null==t)throw Error("Cannot get child at index `".concat(e,"` in node: ").concat(uE.stringify(u)));return t},*children(u,e){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=t,n=ur.ancestor(u,e),{children:D}=n,a=r?D.length-1:0;r?a>=0:a1&&void 0!==arguments[1]?arguments[1]:{};for(var[t,r]of ur.nodes(u,e))0!==r.length&&(yield[t,r])},*elements(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[t,r]of ur.nodes(u,e))Z.isElement(t)&&(yield[t,r])},extractProps(u){if(Z.isAncestor(u)){var e=d(u,uu);return e}var e=d(u,ue);return e},first(u,e){for(var t=e.slice(),r=ur.get(u,t);r&&!uy.isText(r)&&0!==r.children.length;)r=r.children[0],t.push(0);return[r,t]},fragment(u,e){if(uy.isText(u))throw Error("Cannot get a fragment starting from a root text node: ".concat(uE.stringify(u)));return(0,a.Uy)({children:u.children},u=>{var[t,r]=uA.edges(e);for(var[,n]of ur.nodes(u,{reverse:!0,pass:u=>{var[,t]=u;return!uA.includes(e,t)}})){if(!uA.includes(e,n)){var D=ur.parent(u,n),a=n[n.length-1];D.children.splice(a,1)}if(uo.equals(n,r.path)){var o=ur.leaf(u,n);o.text=o.text.slice(0,r.offset)}if(uo.equals(n,t.path)){var i=ur.leaf(u,n);i.text=i.text.slice(t.offset)}}Q.isEditor(u)&&(u.selection=null)}).children},get(u,e){for(var t=u,r=0;ruy.isText(u)||Z.isElement(u)||Q.isEditor(u),isNodeList(u){if(!Array.isArray(u))return!1;var e=ut.get(u);if(void 0!==e)return e;var t=u.every(u=>ur.isNode(u));return ut.set(u,t),t},last(u,e){for(var t=e.slice(),r=ur.get(u,t);r&&!uy.isText(r)&&0!==r.children.length;){var n=r.children.length-1;r=r.children[n],t.push(n)}return[r,t]},leaf(u,e){var t=ur.get(u,e);if(!uy.isText(t))throw Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(uE.stringify(t)));return t},*levels(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of uo.levels(e,t))yield[ur.get(u,r),r]},matches:(u,e)=>Z.isElement(u)&&Z.isElementProps(e)&&Z.matches(u,e)||uy.isText(u)&&uy.isTextProps(e)&&uy.matches(u,e),*nodes(u){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:t,reverse:r=!1}=e,{from:n=[],to:D}=e,a=new Set,o=[],i=u;!(D&&(r?uo.isBefore(o,D):uo.isAfter(o,D)));){if(a.has(i)||(yield[i,o]),!a.has(i)&&!uy.isText(i)&&0!==i.children.length&&(null==t||!1===t([i,o]))){a.add(i);var s=r?i.children.length-1:0;uo.isAncestor(o,n)&&(s=n[o.length]),o=o.concat(s),i=ur.get(u,o);continue}if(0===o.length)break;if(!r){var C=uo.next(o);if(ur.has(u,C)){o=C,i=ur.get(u,o);continue}}if(r&&0!==o[o.length-1]){o=uo.previous(o),i=ur.get(u,o);continue}o=uo.parent(o),i=ur.get(u,o),a.add(i)}},parent(u,e){var t=uo.parent(e),r=ur.get(u,t);if(uy.isText(r))throw Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:u=>uy.isText(u)?u.text:u.children.map(ur.string).join(""),*texts(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[t,r]of ur.nodes(u,e))uy.isText(t)&&(yield[t,r])}};function un(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable})),t.push.apply(t,r)}return t}function uD(u){for(var e=1;eua.isOperation(u)&&u.type.endsWith("_node"),isOperation(u){if(!(0,D.P)(u))return!1;switch(u.type){case"insert_node":case"remove_node":return uo.isPath(u.path)&&ur.isNode(u.node);case"insert_text":case"remove_text":return"number"==typeof u.offset&&"string"==typeof u.text&&uo.isPath(u.path);case"merge_node":return"number"==typeof u.position&&uo.isPath(u.path)&&(0,D.P)(u.properties);case"move_node":return uo.isPath(u.path)&&uo.isPath(u.newPath);case"set_node":return uo.isPath(u.path)&&(0,D.P)(u.properties)&&(0,D.P)(u.newProperties);case"set_selection":return null===u.properties&&uA.isRange(u.newProperties)||null===u.newProperties&&uA.isRange(u.properties)||(0,D.P)(u.properties)&&(0,D.P)(u.newProperties);case"split_node":return uo.isPath(u.path)&&"number"==typeof u.position&&(0,D.P)(u.properties);default:return!1}},isOperationList:u=>Array.isArray(u)&&u.every(u=>ua.isOperation(u)),isSelectionOperation:u=>ua.isOperation(u)&&u.type.endsWith("_selection"),isTextOperation:u=>ua.isOperation(u)&&u.type.endsWith("_text"),inverse(u){switch(u.type){case"insert_node":return uD(uD({},u),{},{type:"remove_node"});case"insert_text":return uD(uD({},u),{},{type:"remove_text"});case"merge_node":return uD(uD({},u),{},{type:"split_node",path:uo.previous(u.path)});case"move_node":var{newPath:e,path:t}=u;if(uo.equals(e,t))return u;if(uo.isSibling(t,e))return uD(uD({},u),{},{path:e,newPath:t});var r=uo.transform(t,u),n=uo.transform(uo.next(t),u);return uD(uD({},u),{},{path:r,newPath:n});case"remove_node":return uD(uD({},u),{},{type:"insert_node"});case"remove_text":return uD(uD({},u),{},{type:"insert_text"});case"set_node":var{properties:D,newProperties:a}=u;return uD(uD({},u),{},{properties:a,newProperties:D});case"set_selection":var{properties:o,newProperties:i}=u;if(null==o)return uD(uD({},u),{},{properties:i,newProperties:null});if(null==i)return uD(uD({},u),{},{properties:null,newProperties:o});return uD(uD({},u),{},{properties:i,newProperties:o});case"split_node":return uD(uD({},u),{},{type:"merge_node",path:uo.next(u.path)})}}},uo={ancestors(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:t=!1}=e,r=uo.levels(u,e);return t?r.slice(1):r.slice(0,-1)},common(u,e){for(var t=[],r=0;re[r])return 1}return 0},endsAfter(u,e){var t=u.length-1,r=u.slice(0,t),n=e.slice(0,t),D=u[t],a=e[t];return uo.equals(r,n)&&D>a},endsAt(u,e){var t=u.length,r=u.slice(0,t),n=e.slice(0,t);return uo.equals(r,n)},endsBefore(u,e){var t=u.length-1,r=u.slice(0,t),n=e.slice(0,t),D=u[t],a=e[t];return uo.equals(r,n)&&Du.length===e.length&&u.every((u,t)=>u===e[t]),hasPrevious:u=>u[u.length-1]>0,isAfter:(u,e)=>1===uo.compare(u,e),isAncestor:(u,e)=>u.length-1===uo.compare(u,e),isChild:(u,e)=>u.length===e.length+1&&0===uo.compare(u,e),isCommon:(u,e)=>u.length<=e.length&&0===uo.compare(u,e),isDescendant:(u,e)=>u.length>e.length&&0===uo.compare(u,e),isParent:(u,e)=>u.length+1===e.length&&0===uo.compare(u,e),isPath:u=>Array.isArray(u)&&(0===u.length||"number"==typeof u[0]),isSibling(u,e){if(u.length!==e.length)return!1;var t=u.slice(0,-1),r=e.slice(0,-1);return u[u.length-1]!==e[e.length-1]&&uo.equals(t,r)},levels(u){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:t=!1}=e,r=[],n=0;n<=u.length;n++)r.push(u.slice(0,n));return t&&r.reverse(),r},next(u){if(0===u.length)throw Error("Cannot get the next path of a root path [".concat(u,"], because it has no next index."));var e=u[u.length-1];return u.slice(0,-1).concat(e+1)},operationCanTransformPath(u){switch(u.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(u){if(0===u.length)throw Error("Cannot get the parent path of the root path [".concat(u,"]."));return u.slice(0,-1)},previous(u){if(0===u.length)throw Error("Cannot get the previous path of a root path [".concat(u,"], because it has no previous index."));var e=u[u.length-1];if(e<=0)throw Error("Cannot get the previous path of a first child path [".concat(u,"] because it would result in a negative index."));return u.slice(0,-1).concat(e-1)},relative(u,e){if(!uo.isAncestor(e,u)&&!uo.equals(u,e))throw Error("Cannot get the relative path of [".concat(u,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return u.slice(e.length)},transform(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!u)return null;var r=[...u],{affinity:n="forward"}=t;if(0===u.length)return r;switch(e.type){case"insert_node":var{path:D}=e;(uo.equals(D,r)||uo.endsBefore(D,r)||uo.isAncestor(D,r))&&(r[D.length-1]+=1);break;case"remove_node":var{path:a}=e;if(uo.equals(a,r)||uo.isAncestor(a,r))return null;uo.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:o,position:i}=e;uo.equals(o,r)||uo.endsBefore(o,r)?r[o.length-1]-=1:uo.isAncestor(o,r)&&(r[o.length-1]-=1,r[o.length]+=i);break;case"split_node":var{path:s,position:C}=e;if(uo.equals(s,r)){if("forward"===n)r[r.length-1]+=1;else if("backward"!==n)return null}else uo.endsBefore(s,r)?r[s.length-1]+=1:uo.isAncestor(s,r)&&u[s.length]>=C&&(r[s.length-1]+=1,r[s.length]-=C);break;case"move_node":var{path:B,newPath:l}=e;if(uo.equals(B,l))break;if(uo.isAncestor(B,r)||uo.equals(B,r)){var c=l.slice();return uo.endsBefore(B,l)&&B.lengthe.offset?1:0:t},isAfter:(u,e)=>1===uB.compare(u,e),isBefore:(u,e)=>-1===uB.compare(u,e),equals:(u,e)=>u.offset===e.offset&&uo.equals(u.path,e.path),isPoint:u=>(0,D.P)(u)&&"number"==typeof u.offset&&uo.isPath(u.path),transform(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,a.Uy)(u,u=>{if(null===u)return null;var{affinity:r="forward"}=t,{path:n,offset:D}=u;switch(e.type){case"insert_node":case"move_node":u.path=uo.transform(n,e,t);break;case"insert_text":uo.equals(e.path,n)&&(e.offset1&&void 0!==arguments[1]?arguments[1]:{},{reverse:t=!1}=e,{anchor:r,focus:n}=u;return uA.isBackward(u)===t?[r,n]:[n,r]},end(u){var[,e]=uA.edges(u);return e},equals:(u,e)=>uB.equals(u.anchor,e.anchor)&&uB.equals(u.focus,e.focus),includes(u,e){if(uA.isRange(e)){if(uA.includes(u,e.anchor)||uA.includes(u,e.focus))return!0;var[t,r]=uA.edges(u),[n,D]=uA.edges(e);return uB.isBefore(t,n)&&uB.isAfter(r,D)}var[a,o]=uA.edges(u),i=!1,s=!1;return uB.isPoint(e)?(i=uB.compare(e,a)>=0,s=0>=uB.compare(e,o)):(i=uo.compare(e,a.path)>=0,s=0>=uo.compare(e,o.path)),i&&s},intersection(u,e){var t=d(u,uc),[r,n]=uA.edges(u),[D,a]=uA.edges(e),i=uB.isBefore(r,D)?D:r,s=uB.isBefore(n,a)?n:a;return uB.isBefore(s,i)?null:function(u){for(var e=1;e!uA.isCollapsed(u),isForward:u=>!uA.isBackward(u),isRange:u=>(0,D.P)(u)&&uB.isPoint(u.anchor)&&uB.isPoint(u.focus),*points(u){yield[u.anchor,"anchor"],yield[u.focus,"focus"]},start(u){var[e]=uA.edges(u);return e},transform(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,a.Uy)(u,u=>{if(null===u)return null;var r,n,{affinity:D="inward"}=t;if("inward"===D){var a=uA.isCollapsed(u);uA.isForward(u)?(r="forward",n=a?r:"backward"):(r="backward",n=a?r:"forward")}else"outward"===D?uA.isForward(u)?(r="backward",n="forward"):(r="forward",n="backward"):(r=D,n=D);var o=uB.transform(u.anchor,e,{affinity:r}),i=uB.transform(u.focus,e,{affinity:n});if(!o||!i)return null;u.anchor=o,u.focus=i})}},uh={transform(u,e){var{current:t,affinity:r}=u;if(null!=t){var n=uA.transform(t,e,{affinity:r});u.current=n,null==n&&u.unref()}}},uF=void 0,uE={setScrubber(u){uF=u},stringify:u=>JSON.stringify(u,uF)},ud=(u,e)=>{for(var t in u){var r=u[t],n=e[t];if((0,D.P)(r)&&(0,D.P)(n)){if(!ud(r,n))return!1}else if(Array.isArray(r)&&Array.isArray(n)){if(r.length!==n.length)return!1;for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=t;return ud(r?d(u,up):u,r?d(e,up):e)},isText:u=>(0,D.P)(u)&&"string"==typeof u.text,isTextList:u=>Array.isArray(u)&&u.every(u=>uy.isText(u)),isTextProps:u=>void 0!==u.text,matches(u,e){for(var t in e)if("text"!==t&&(!u.hasOwnProperty(t)||u[t]!==e[t]))return!1;return!0},decorations(u,e){var t=[um({},u)];for(var r of e){var n=d(r,uv),[D,a]=uA.edges(r),o=[],i=0,s=D.offset,C=a.offset;for(var B of t){var{length:l}=B.text,c=i;if(i+=l,s<=c&&i<=C){Object.assign(B,n),o.push(B);continue}if(s!==C&&(s===i||C===c)||s>i||Cc){var E=s-c;A=um(um({},f),{},{text:f.text.slice(0,E)}),f=um(um({},f),{},{text:f.text.slice(E)})}Object.assign(f,n),A&&o.push(A),o.push(f),h&&o.push(h)}t=o}return t}};function ub(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable})),t.push.apply(t,r)}return t}function uw(u){for(var e=1;e{switch(t.type){case"insert_node":var{path:r,node:n}=t,D=ur.parent(u,r),a=r[r.length-1];if(a>D.children.length)throw Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(D.children.splice(a,0,n),e)for(var[o,i]of uA.points(e))e[i]=uB.transform(o,t);break;case"insert_text":var{path:s,offset:C,text:B}=t;if(0===B.length)break;var l=ur.leaf(u,s),c=l.text.slice(0,C),f=l.text.slice(C);if(l.text=c+B+f,e)for(var[A,h]of uA.points(e))e[h]=uB.transform(A,t);break;case"merge_node":var{path:F}=t,E=ur.get(u,F),d=uo.previous(F),p=ur.get(u,d),v=ur.parent(u,F),g=F[F.length-1];if(uy.isText(E)&&uy.isText(p))p.text+=E.text;else if(uy.isText(E)||uy.isText(p))throw Error('Cannot apply a "merge_node" operation at path ['.concat(F,"] to nodes of different interfaces: ").concat(uE.stringify(E)," ").concat(uE.stringify(p)));else p.children.push(...E.children);if(v.children.splice(g,1),e)for(var[m,y]of uA.points(e))e[y]=uB.transform(m,t);break;case"move_node":var{path:b,newPath:w}=t;if(uo.isAncestor(b,w))throw Error("Cannot move a path [".concat(b,"] to new path [").concat(w,"] because the destination is inside itself."));var x=ur.get(u,b),O=ur.parent(u,b),P=b[b.length-1];O.children.splice(P,1);var k=uo.transform(b,t),j=ur.get(u,uo.parent(k)),N=k[k.length-1];if(j.children.splice(N,0,x),e)for(var[_,T]of uA.points(e))e[T]=uB.transform(_,t);break;case"remove_node":var{path:R}=t,S=R[R.length-1];if(ur.parent(u,R).children.splice(S,1),e)for(var[q,V]of uA.points(e)){var I=uB.transform(q,t);if(null!=e&&null!=I)e[V]=I;else{var z=void 0,L=void 0;for(var[M,W]of ur.texts(u))if(-1===uo.compare(W,R))z=[M,W];else{L=[M,W];break}var $=!1;z&&L&&($=uo.equals(L[1],R)?!uo.hasPrevious(L[1]):uo.common(z[1],R).lengthZ.isElement(e)?!!Q.isVoid(u,e)||1===e.children.length&&uN(u,e.children[0]):!Q.isEditor(e),u_=(u,e)=>{if(uA.isCollapsed(e))return e.anchor;var[,t]=uA.edges(e),r=Q.pointRef(u,t);return uI.delete(u,{at:e}),r.unref()},uT=(u,e)=>{var[t]=Q.node(u,e);return u=>u===t};function uR(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable})),t.push.apply(t,r)}return t}function uS(u){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{};Q.withoutNormalizing(u,()=>{var{hanging:r=!1,voids:n=!1,mode:D="lowest"}=t,{at:a,match:o,select:i}=t;if(ur.isNode(e)&&(e=[e]),0!==e.length){var[s]=e;if(a||(a=u.selection?u.selection:u.children.length>0?Q.end(u,[]):[0],i=!0),null==i&&(i=!1),uA.isRange(a)){if(r||(a=Q.unhangRange(u,a,{voids:n})),uA.isCollapsed(a))a=a.anchor;else{var[,C]=uA.edges(a),B=Q.pointRef(u,C);uI.delete(u,{at:a}),a=B.unref()}}if(uB.isPoint(a)){null==o&&(o=uy.isText(s)?u=>uy.isText(u):u.isInline(s)?e=>uy.isText(e)||Q.isInline(u,e):e=>Q.isBlock(u,e));var[l]=Q.nodes(u,{at:a.path,match:o,mode:D,voids:n});if(!l)return;var[,c]=l,f=Q.pathRef(u,c),A=Q.isEnd(u,a,c);uI.splitNodes(u,{at:a,match:o,mode:D,voids:n});var h=f.unref();a=A?uo.next(h):h}var F=uo.parent(a),E=a[a.length-1];if(!(!n&&Q.void(u,{at:F}))){for(var d of e){var p=F.concat(E);E++,u.apply({type:"insert_node",path:p,node:d}),a=uo.next(a)}if(a=uo.previous(a),i){var v=Q.end(u,a);v&&uI.select(u,v)}}}})},liftNodes(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Q.withoutNormalizing(u,()=>{var{at:t=u.selection,mode:r="lowest",voids:n=!1}=e,{match:D}=e;if(null==D&&(D=uo.isPath(t)?uT(u,t):e=>Q.isBlock(u,e)),t)for(var a of Array.from(Q.nodes(u,{at:t,match:D,mode:r,voids:n}),e=>{var[,t]=e;return Q.pathRef(u,t)})){var o=a.unref();if(o.length<2)throw Error("Cannot lift node at a path [".concat(o,"] because it has a depth of less than `2`."));var[i,s]=Q.node(u,uo.parent(o)),C=o[o.length-1],{length:B}=i.children;if(1===B){var l=uo.next(s);uI.moveNodes(u,{at:o,to:l,voids:n}),uI.removeNodes(u,{at:s,voids:n})}else if(0===C)uI.moveNodes(u,{at:o,to:s,voids:n});else if(C===B-1){var c=uo.next(s);uI.moveNodes(u,{at:o,to:c,voids:n})}else{var f=uo.next(o),A=uo.next(s);uI.splitNodes(u,{at:f,voids:n}),uI.moveNodes(u,{at:o,to:A,voids:n})}}})},mergeNodes(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Q.withoutNormalizing(u,()=>{var t,r,{match:n,at:D=u.selection}=e,{hanging:a=!1,voids:o=!1,mode:i="lowest"}=e;if(D){if(null==n){if(uo.isPath(D)){var[s]=Q.parent(u,D);n=u=>s.children.includes(u)}else n=e=>Q.isBlock(u,e)}if(!a&&uA.isRange(D)&&(D=Q.unhangRange(u,D,{voids:o})),uA.isRange(D)){if(uA.isCollapsed(D))D=D.anchor;else{var[,C]=uA.edges(D),B=Q.pointRef(u,C);uI.delete(u,{at:D}),D=B.unref(),null==e.at&&uI.select(u,D)}}var[l]=Q.nodes(u,{at:D,match:n,voids:o,mode:i}),c=Q.previous(u,{at:D,match:n,voids:o,mode:i});if(l&&c){var[f,A]=l,[h,F]=c;if(0!==A.length&&0!==F.length){var E=uo.next(F),p=uo.common(A,F),v=uo.isSibling(A,F),g=Array.from(Q.levels(u,{at:A}),u=>{var[e]=u;return e}).slice(p.length).slice(0,-1),m=Q.above(u,{at:A,mode:"highest",match:e=>g.includes(e)&&uN(u,e)}),y=m&&Q.pathRef(u,m[1]);if(uy.isText(f)&&uy.isText(h)){var b=d(f,uO);r=h.text.length,t=b}else if(Z.isElement(f)&&Z.isElement(h)){var b=d(f,uP);r=h.children.length,t=b}else throw Error("Cannot merge the node at path [".concat(A,"] with the previous sibling because it is not the same kind: ").concat(uE.stringify(f)," ").concat(uE.stringify(h)));v||uI.moveNodes(u,{at:A,to:E,voids:o}),y&&uI.removeNodes(u,{at:y.current,voids:o}),Z.isElement(h)&&Q.isEmpty(u,h)||uy.isText(h)&&""===h.text&&0!==F[F.length-1]?uI.removeNodes(u,{at:F,voids:o}):u.apply({type:"merge_node",path:E,position:r,properties:t}),y&&y.unref()}}}})},moveNodes(u,e){Q.withoutNormalizing(u,()=>{var{to:t,at:r=u.selection,mode:n="lowest",voids:D=!1}=e,{match:a}=e;if(r){null==a&&(a=uo.isPath(r)?uT(u,r):e=>Q.isBlock(u,e));var o=Q.pathRef(u,t);for(var i of Array.from(Q.nodes(u,{at:r,match:a,mode:n,voids:D}),e=>{var[,t]=e;return Q.pathRef(u,t)})){var s=i.unref(),C=o.current;0!==s.length&&u.apply({type:"move_node",path:s,newPath:C}),o.current&&uo.isSibling(C,s)&&uo.isAfter(C,s)&&(o.current=uo.next(o.current))}o.unref()}})},removeNodes(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Q.withoutNormalizing(u,()=>{var{hanging:t=!1,voids:r=!1,mode:n="lowest"}=e,{at:D=u.selection,match:a}=e;if(D)for(var o of(null==a&&(a=uo.isPath(D)?uT(u,D):e=>Q.isBlock(u,e)),!t&&uA.isRange(D)&&(D=Q.unhangRange(u,D,{voids:r})),Array.from(Q.nodes(u,{at:D,match:a,mode:n,voids:r}),e=>{var[,t]=e;return Q.pathRef(u,t)}))){var i=o.unref();if(i){var[s]=Q.node(u,i);u.apply({type:"remove_node",path:i,node:s})}}})},setNodes(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Q.withoutNormalizing(u,()=>{var{match:r,at:n=u.selection,compare:D,merge:a}=t,{hanging:o=!1,mode:i="lowest",split:s=!1,voids:C=!1}=t;if(n){if(null==r&&(r=uo.isPath(n)?uT(u,n):e=>Q.isBlock(u,e)),!o&&uA.isRange(n)&&(n=Q.unhangRange(u,n,{voids:C})),s&&uA.isRange(n)){if(uA.isCollapsed(n)&&Q.leaf(u,n.anchor)[0].text.length>0)return;var B=Q.rangeRef(u,n,{affinity:"inward"}),[l,c]=uA.edges(n),f="lowest"===i?"lowest":"highest",A=Q.isEnd(u,c,c.path);uI.splitNodes(u,{at:c,match:r,mode:f,voids:C,always:!A});var h=Q.isStart(u,l,l.path);uI.splitNodes(u,{at:l,match:r,mode:f,voids:C,always:!h}),n=B.unref(),null==t.at&&uI.select(u,n)}for(var[F,E]of(D||(D=(u,e)=>u!==e),Q.nodes(u,{at:n,match:r,mode:i,voids:C}))){var d={},p={};if(0!==E.length){var v=!1;for(var g in e)"children"!==g&&"text"!==g&&D(e[g],F[g])&&(v=!0,F.hasOwnProperty(g)&&(d[g]=F[g]),a?null!=e[g]&&(p[g]=a(F[g],e[g])):null!=e[g]&&(p[g]=e[g]));v&&u.apply({type:"set_node",path:E,properties:d,newProperties:p})}}}})},splitNodes(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Q.withoutNormalizing(u,()=>{var t,{mode:r="lowest",voids:n=!1}=e,{match:D,at:a=u.selection,height:o=0,always:i=!1}=e;if(null==D&&(D=e=>Q.isBlock(u,e)),uA.isRange(a)&&(a=u_(u,a)),uo.isPath(a)){var s=a,C=Q.point(u,s),[B]=Q.parent(u,s);D=u=>u===B,o=C.path.length-s.length+1,a=C,i=!0}if(a){var l=Q.pointRef(u,a,{affinity:"backward"});try{var[c]=Q.nodes(u,{at:a,match:D,mode:r,voids:n});if(!c)return;var f=Q.void(u,{at:a,mode:"highest"});if(!n&&f){var[A,h]=f;if(Z.isElement(A)&&u.isInline(A)){var F=Q.after(u,h);if(!F){var E=uo.next(h);uI.insertNodes(u,{text:""},{at:E,voids:n}),F=Q.point(u,E)}a=F,i=!0}o=a.path.length-h.length+1,i=!0}t=Q.pointRef(u,a);var d=a.path.length-o,[,p]=c,v=a.path.slice(0,d),g=0===o?a.offset:a.path[d]+0;for(var[m,y]of Q.levels(u,{at:v,reverse:!0,voids:n})){var b=!1;if(y.length2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var n of e)r[n]=null;uI.setNodes(u,r,t)},unwrapNodes(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Q.withoutNormalizing(u,()=>{var{mode:t="lowest",split:r=!1,voids:n=!1}=e,{at:D=u.selection,match:a}=e;if(D){null==a&&(a=uo.isPath(D)?uT(u,D):e=>Q.isBlock(u,e)),uo.isPath(D)&&(D=Q.range(u,D));var o=uA.isRange(D)?Q.rangeRef(u,D):null;for(var i of Array.from(Q.nodes(u,{at:D,match:a,mode:t,voids:n}),e=>{var[,t]=e;return Q.pathRef(u,t)}).reverse())!function(e){var t=e.unref(),[D]=Q.node(u,t),a=Q.range(u,t);r&&o&&(a=uA.intersection(o.current,a)),uI.liftNodes(u,{at:a,match:u=>Z.isAncestor(D)&&D.children.includes(u),voids:n})}(i);o&&o.unref()}})},wrapNodes(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Q.withoutNormalizing(u,()=>{var{mode:r="lowest",split:n=!1,voids:D=!1}=t,{match:a,at:o=u.selection}=t;if(o){if(null==a&&(a=uo.isPath(o)?uT(u,o):u.isInline(e)?e=>Q.isInline(u,e)||uy.isText(e):e=>Q.isBlock(u,e)),n&&uA.isRange(o)){var[i,s]=uA.edges(o),C=Q.rangeRef(u,o,{affinity:"inward"});uI.splitNodes(u,{at:s,match:a,voids:D}),uI.splitNodes(u,{at:i,match:a,voids:D}),o=C.unref(),null==t.at&&uI.select(u,o)}for(var[,B]of Array.from(Q.nodes(u,{at:o,match:u.isInline(e)?e=>Q.isBlock(u,e):u=>Q.isEditor(u),mode:"lowest",voids:D}))){var l=uA.isRange(o)?uA.intersection(o,Q.range(u,B)):o;if(l){var c=Array.from(Q.nodes(u,{at:l,match:a,mode:r,voids:D}));if(c.length>0&&"continue"===function(){var[t]=c,r=c[c.length-1],[,n]=t,[,a]=r;if(0===n.length&&0===a.length)return"continue";var o=uo.equals(n,a)?uo.parent(n):uo.common(n,a),i=Q.range(u,n,a),[s]=Q.node(u,o),C=o.length+1,B=uo.next(a.slice(0,C)),l=uj(uj({},e),{},{children:[]});uI.insertNodes(u,l,{at:B,voids:D}),uI.moveNodes(u,{at:i,match:u=>Z.isAncestor(s)&&s.children.includes(u),to:B.concat(0),voids:D})}())continue}}}})}}),{collapse(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:t="anchor"}=e,{selection:r}=u;if(r){if("anchor"===t)uI.select(u,r.anchor);else if("focus"===t)uI.select(u,r.focus);else if("start"===t){var[n]=uA.edges(r);uI.select(u,n)}else if("end"===t){var[,D]=uA.edges(r);uI.select(u,D)}}},deselect(u){var{selection:e}=u;e&&u.apply({type:"set_selection",properties:e,newProperties:null})},move(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:t}=u,{distance:r=1,unit:n="character",reverse:D=!1}=e,{edge:a=null}=e;if(t){"start"===a&&(a=uA.isBackward(t)?"focus":"anchor"),"end"===a&&(a=uA.isBackward(t)?"anchor":"focus");var{anchor:o,focus:i}=t,s={distance:r,unit:n},C={};if(null==a||"anchor"===a){var B=D?Q.before(u,o,s):Q.after(u,o,s);B&&(C.anchor=B)}if(null==a||"focus"===a){var l=D?Q.before(u,i,s):Q.after(u,i,s);l&&(C.focus=l)}uI.setSelection(u,C)}},select(u,e){var{selection:t}=u;if(e=Q.range(u,e),t){uI.setSelection(u,e);return}if(!uA.isRange(e))throw Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(uE.stringify(e)));u.apply({type:"set_selection",properties:t,newProperties:e})},setPoint(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=u,{edge:n="both"}=t;if(r){"start"===n&&(n=uA.isBackward(r)?"focus":"anchor"),"end"===n&&(n=uA.isBackward(r)?"anchor":"focus");var{anchor:D,focus:a}=r,o="anchor"===n?D:a;uI.setSelection(u,{["anchor"===n?"anchor":"focus"]:uS(uS({},o),e)})}},setSelection(u,e){var{selection:t}=u,r={},n={};if(t){for(var D in e)("anchor"!==D||null==e.anchor||uB.equals(e.anchor,t.anchor))&&("focus"!==D||null==e.focus||uB.equals(e.focus,t.focus))&&("anchor"===D||"focus"===D||e[D]===t[D])||(r[D]=t[D],n[D]=e[D]);Object.keys(r).length>0&&u.apply({type:"set_selection",properties:r,newProperties:n})}}}),{delete(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Q.withoutNormalizing(u,()=>{var t,{reverse:r=!1,unit:n="character",distance:D=1,voids:a=!1}=e,{at:o=u.selection,hanging:i=!1}=e;if(o){var s=!1;if(uA.isRange(o)&&uA.isCollapsed(o)&&(s=!0,o=o.anchor),uB.isPoint(o)){var C=Q.void(u,{at:o,mode:"highest"});if(!a&&C){var[,B]=C;o=B}else{var l={unit:n,distance:D},c=r?Q.before(u,o,l)||Q.start(u,[]):Q.after(u,o,l)||Q.end(u,[]);o={anchor:o,focus:c},i=!0}}if(uo.isPath(o)){uI.removeNodes(u,{at:o,voids:a});return}if(!uA.isCollapsed(o)){if(!i){var[,f]=uA.edges(o),A=Q.end(u,[]);uB.equals(f,A)||(o=Q.unhangRange(u,o,{voids:a}))}var[h,F]=uA.edges(o),E=Q.above(u,{match:e=>Q.isBlock(u,e),at:h,voids:a}),d=Q.above(u,{match:e=>Q.isBlock(u,e),at:F,voids:a}),p=E&&d&&!uo.equals(E[1],d[1]),v=uo.equals(h.path,F.path),g=a?null:Q.void(u,{at:h,mode:"highest"}),m=a?null:Q.void(u,{at:F,mode:"highest"});if(g){var y=Q.before(u,h);y&&E&&uo.isAncestor(E[1],y.path)&&(h=y)}if(m){var b=Q.after(u,F);b&&d&&uo.isAncestor(d[1],b.path)&&(F=b)}var w=[];for(var x of Q.nodes(u,{at:o,voids:a})){var[O,P]=x;(!t||0!==uo.compare(P,t))&&(!a&&Q.isVoid(u,O)||!uo.isCommon(P,h.path)&&!uo.isCommon(P,F.path))&&(w.push(x),t=P)}var k=Array.from(w,e=>{var[,t]=e;return Q.pathRef(u,t)}),j=Q.pointRef(u,h),N=Q.pointRef(u,F),_="";if(!v&&!g){var T=j.current,[R]=Q.leaf(u,T),{path:S}=T,{offset:q}=h,V=R.text.slice(q);V.length>0&&(u.apply({type:"remove_text",path:S,offset:q,text:V}),_=V)}if(k.reverse().map(u=>u.unref()).filter(u=>null!==u).forEach(e=>uI.removeNodes(u,{at:e,voids:a})),!m){var I=N.current,[z]=Q.leaf(u,I),{path:L}=I,M=v?h.offset:0,W=z.text.slice(M,F.offset);W.length>0&&(u.apply({type:"remove_text",path:L,offset:M,text:W}),_=W)}!v&&p&&N.current&&j.current&&uI.mergeNodes(u,{at:N.current,hanging:!0,voids:a}),s&&r&&"character"===n&&_.length>1&&_.match(/[\u0E00-\u0E7F]+/)&&uI.insertText(u,_.slice(0,_.length-D));var $=j.unref(),J=N.unref(),Z=r?$||J:J||$;null==e.at&&Z&&uI.select(u,Z)}}})},insertFragment(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Q.withoutNormalizing(u,()=>{var r,{hanging:n=!1,voids:D=!1}=t,{at:a=u.selection}=t;if(e.length&&a){if(uA.isRange(a)){if(n||(a=Q.unhangRange(u,a,{voids:D})),uA.isCollapsed(a))a=a.anchor;else{var[,o]=uA.edges(a);if(!D&&Q.void(u,{at:o}))return;var i=Q.pointRef(u,o);uI.delete(u,{at:a}),a=i.unref()}}else uo.isPath(a)&&(a=Q.start(u,a));if(!(!D&&Q.void(u,{at:a}))){var s=Q.above(u,{at:a,match:e=>Q.isInline(u,e),mode:"highest",voids:D});if(s){var[,C]=s;Q.isEnd(u,a,C)?a=Q.after(u,C):Q.isStart(u,a,C)&&(a=Q.before(u,C))}var[,B]=Q.above(u,{match:e=>Q.isBlock(u,e),at:a,voids:D}),l=Q.isStart(u,a,B),c=Q.isEnd(u,a,B),f=l&&c,A=!l||l&&c,h=!c,[,F]=ur.first({children:e},[]),[,E]=ur.last({children:e},[]),d=[],p=e=>{var[t,r]=e;return 0!==r.length&&(!!f||!(A&&uo.isAncestor(r,F)&&Z.isElement(t)&&!u.isVoid(t)&&!u.isInline(t)||h&&uo.isAncestor(r,E)&&Z.isElement(t)&&!u.isVoid(t)&&!u.isInline(t)))};for(var v of ur.nodes({children:e},{pass:p}))p(v)&&d.push(v);var g=[],m=[],y=[],b=!0,w=!1;for(var[x]of d)Z.isElement(x)&&!u.isInline(x)?(b=!1,w=!0,m.push(x)):b?g.push(x):y.push(x);var[O]=Q.nodes(u,{at:a,match:e=>uy.isText(e)||Q.isInline(u,e),mode:"highest",voids:D}),[,P]=O,k=Q.isStart(u,a,P),j=Q.isEnd(u,a,P),N=Q.pathRef(u,c&&!y.length?uo.next(B):B),_=Q.pathRef(u,j?uo.next(P):P);uI.splitNodes(u,{at:a,match:e=>w?Q.isBlock(u,e):uy.isText(e)||Q.isInline(u,e),mode:w?"lowest":"highest",always:w&&(!l||g.length>0)&&(!c||y.length>0),voids:D});var T=Q.pathRef(u,!k||k&&j?uo.next(P):P);if(uI.insertNodes(u,g,{at:T.current,match:e=>uy.isText(e)||Q.isInline(u,e),mode:"highest",voids:D}),f&&!g.length&&m.length&&!y.length&&uI.delete(u,{at:B,voids:D}),uI.insertNodes(u,m,{at:N.current,match:e=>Q.isBlock(u,e),mode:"lowest",voids:D}),uI.insertNodes(u,y,{at:_.current,match:e=>uy.isText(e)||Q.isInline(u,e),mode:"highest",voids:D}),!t.at&&(y.length>0&&_.current?r=uo.previous(_.current):m.length>0&&N.current?r=uo.previous(N.current):T.current&&(r=uo.previous(T.current)),r)){var R=Q.end(u,r);uI.select(u,R)}T.unref(),N.unref(),_.unref()}}})},insertText(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Q.withoutNormalizing(u,()=>{var{voids:r=!1}=t,{at:n=u.selection}=t;if(n){if(uo.isPath(n)&&(n=Q.range(u,n)),uA.isRange(n)){if(uA.isCollapsed(n))n=n.anchor;else{var D=uA.end(n);if(!r&&Q.void(u,{at:D}))return;var a=uA.start(n),o=Q.pointRef(u,a),i=Q.pointRef(u,D);uI.delete(u,{at:n,voids:r});var s=o.unref(),C=i.unref();n=s||C,uI.setSelection(u,{anchor:n,focus:n})}}if(!(!r&&Q.void(u,{at:n}))){var{path:B,offset:l}=n;e.length>0&&u.apply({type:"insert_text",path:B,offset:l,text:e})}}})}})}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/d3048c20-93c008b4ff3ddb0e.js b/static/web/_next/static/chunks/d3048c20-93c008b4ff3ddb0e.js deleted file mode 100644 index 37667bf23..000000000 --- a/static/web/_next/static/chunks/d3048c20-93c008b4ff3ddb0e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1272],{77493:function(u,e,t){t.d(e,{E9:function(){return uB},Jh:function(){return E},ML:function(){return Q},NB:function(){return ur},W_:function(){return Z},YR:function(){return uI},e6:function(){return uA},o4:function(){return uE},xv:function(){return uy},y$:function(){return uo}});var r,n,D=t(45628),a=t(12902);function o(u,e,t){return e in u?Object.defineProperty(u,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):u[e]=t,u}var i=new WeakMap,s=new WeakMap,C=new WeakMap,B=new WeakMap,l=new WeakMap,c=new WeakMap,f=new WeakMap;function A(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable})),t.push.apply(t,r)}return t}function h(u){for(var e=1;e{var u={children:[],operations:[],selection:null,marks:null,id:F++,isInline:()=>!1,isVoid:()=>!1,markableVoid:()=>!1,onChange(){},apply(e){for(var t of Q.pathRefs(u))ui.transform(t,e);for(var r of Q.pointRefs(u))ul.transform(r,e);for(var n of Q.rangeRefs(u))uh.transform(n,e);var D,a,o=i.get(u)||[],B=s.get(u)||new Set,l=u=>{if(u){var e=u.join(",");a.has(e)||(a.add(e),D.push(u))}};if(uo.operationCanTransformPath(e))for(var c of(D=[],a=new Set,o))l(uo.transform(c,e));else D=o,a=B;for(var f of u.getDirtyPaths(e))l(f);i.set(u,D),s.set(u,a),uI.transform(u,e),u.operations.push(e),Q.normalize(u),"set_selection"===e.type&&(u.marks=null),C.get(u)||(C.set(u,!0),Promise.resolve().then(()=>{C.set(u,!1),u.onChange(),u.operations=[]}))},addMark(e,t){var{selection:r,markableVoid:n}=u;if(r){var D=(e,t)=>{if(!uy.isText(e))return!1;var[r,n]=Q.parent(u,t);return!u.isVoid(r)||u.markableVoid(r)},a=uA.isExpanded(r),o=!1;if(!a){var[i,s]=Q.node(u,r);if(i&&D(i,s)){var[B]=Q.parent(u,s);o=B&&u.markableVoid(B)}}if(a||o)uI.setNodes(u,{[e]:t},{match:D,split:!0,voids:!0});else{var l=h(h({},Q.marks(u)||{}),{},{[e]:t});u.marks=l,C.get(u)||u.onChange()}}},deleteBackward(e){var{selection:t}=u;t&&uA.isCollapsed(t)&&uI.delete(u,{unit:e,reverse:!0})},deleteForward(e){var{selection:t}=u;t&&uA.isCollapsed(t)&&uI.delete(u,{unit:e})},deleteFragment(e){var{selection:t}=u;t&&uA.isExpanded(t)&&uI.delete(u,{reverse:"backward"===e})},getFragment(){var{selection:e}=u;return e?ur.fragment(u,e):[]},insertBreak(){uI.splitNodes(u,{always:!0})},insertSoftBreak(){uI.splitNodes(u,{always:!0})},insertFragment(e){uI.insertFragment(u,e)},insertNode(e){uI.insertNodes(u,e)},insertText(e){var{selection:t,marks:r}=u;if(t){if(r){var n=h({text:e},r);uI.insertNodes(u,n)}else uI.insertText(u,e);u.marks=null}},normalizeNode(e){var[t,r]=e;if(!uy.isText(t)){if(Z.isElement(t)&&0===t.children.length){uI.insertNodes(u,{text:""},{at:r.concat(0),voids:!0});return}for(var n=!Q.isEditor(t)&&Z.isElement(t)&&(u.isInline(t)||0===t.children.length||uy.isText(t.children[0])||u.isInline(t.children[0])),D=0,a=0;a{if(!uy.isText(e))return!1;var[r,n]=Q.parent(u,t);return!u.isVoid(r)||u.markableVoid(r)},n=uA.isExpanded(t),D=!1;if(!n){var[a,o]=Q.node(u,t);if(a&&r(a,o)){var[i]=Q.parent(u,o);D=i&&u.markableVoid(i)}}if(n||D)uI.unsetNodes(u,e,{match:r,split:!0,voids:!0});else{var s=h({},Q.marks(u)||{});delete s[e],u.marks=s,C.get(u)||u.onChange()}}},getDirtyPaths(u){switch(u.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=u;return uo.levels(e);case"insert_node":var{node:t,path:r}=u;return[...uo.levels(r),...uy.isText(t)?[]:Array.from(ur.nodes(t),u=>{var[,e]=u;return r.concat(e)})];case"merge_node":var{path:n}=u;return[...uo.ancestors(n),uo.previous(n)];case"move_node":var{path:D,newPath:a}=u;if(uo.equals(D,a))return[];var o=[],i=[];for(var s of uo.ancestors(D)){var C=uo.transform(s,u);o.push(C)}for(var B of uo.ancestors(a)){var l=uo.transform(B,u);i.push(l)}var c=i[i.length-1],f=a[a.length-1];return[...o,...i,c.concat(f)];case"remove_node":var{path:A}=u;return[...uo.ancestors(A)];case"split_node":var{path:h}=u;return[...uo.levels(h),uo.next(h)];default:return[]}}};return u};function d(u,e){if(null==u)return{};var t,r,n=function(u,e){if(null==u)return{};var t,r,n={},D=Object.keys(u);for(r=0;r=0||(n[t]=u[t]);return n}(u,e);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(u);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(u,t)&&(n[t]=u[t])}return n}var p=function(u){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=!e,r=e?x(u):u,D=n.None,a=n.None,o=0,i=null;for(var s of r){var C,B,l,c,f,A,h,F,E=s.codePointAt(0);if(!E)break;var d=I(s,E);if([D,a]=t?[a,d]:[d,D],(D&n.ZWJ)!=0&&(a&n.ExtPict)!=0&&!(t?M(u.substring(0,o)):M(u.substring(0,u.length-o)))||(D&n.RI)!=0&&(a&n.RI)!=0&&!(i=null!==i?!i:!!t||$(u.substring(0,u.length-o)))||D!==n.None&&a!==n.None&&function(u,e){return -1===z.findIndex(t=>(u&t[0])!=0&&(e&t[1])!=0)}(D,a))break;o+=s.length}return o||1},v=/\s/,g=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,m=/['\u2018\u2019]/,y=function(u){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=0,r=!1;u.length>0;){var n=p(u,e),[D,a]=b(u,n,e);if(w(D,a,e))r=!0,t+=n;else if(r)break;else t+=n;u=a}return t},b=(u,e,t)=>{if(t){var r=u.length-e;return[u.slice(r,u.length),u.slice(0,r)]}return[u.slice(0,e),u.slice(e)]},w=function u(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(v.test(e))return!1;if(m.test(e)){var n=p(t,r),[D,a]=b(t,n,r);if(u(D,a,r))return!0}return!g.test(e)},x=function*(u){for(var e=u.length-1,t=0;tu>=55296&&u<=56319,P=u=>u>=56320&&u<=57343;(r=n||(n={}))[r.None=0]="None",r[r.Extend=1]="Extend",r[r.ZWJ=2]="ZWJ",r[r.RI=4]="RI",r[r.Prepend=8]="Prepend",r[r.SpacingMark=16]="SpacingMark",r[r.L=32]="L",r[r.V=64]="V",r[r.T=128]="T",r[r.LV=256]="LV",r[r.LVT=512]="LVT",r[r.ExtPict=1024]="ExtPict",r[r.Any=2048]="Any";var k=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6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C30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,j=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,N=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,_=/^[\u1100-\u115F\uA960-\uA97C]$/,T=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,R=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,S=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,q=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,V=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,I=(u,e)=>{var t=n.Any;return -1!==u.search(k)&&(t|=n.Extend),8205===e&&(t|=n.ZWJ),e>=127462&&e<=127487&&(t|=n.RI),-1!==u.search(j)&&(t|=n.Prepend),-1!==u.search(N)&&(t|=n.SpacingMark),-1!==u.search(_)&&(t|=n.L),-1!==u.search(T)&&(t|=n.V),-1!==u.search(R)&&(t|=n.T),-1!==u.search(S)&&(t|=n.LV),-1!==u.search(q)&&(t|=n.LVT),-1!==u.search(V)&&(t|=n.ExtPict),t},z=[[n.L,n.L|n.V|n.LV|n.LVT],[n.LV|n.V,n.V|n.T],[n.LVT|n.T,n.T],[n.Any,n.Extend|n.ZWJ],[n.Any,n.SpacingMark],[n.Prepend,n.Any],[n.ZWJ,n.ExtPict],[n.RI,n.RI]],L=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\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\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,M=u=>-1!==u.search(L),W=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,$=u=>{var e=u.match(W);return null!==e&&e[0].length/2%2==1},J=u=>(0,D.P)(u)&&ur.isNodeList(u.children)&&!Q.isEditor(u),Z={isAncestor:u=>(0,D.P)(u)&&ur.isNodeList(u.children),isElement:J,isElementList:u=>Array.isArray(u)&&u.every(u=>Z.isElement(u)),isElementProps:u=>void 0!==u.children,isElementType:function(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return J(u)&&u[t]===e},matches(u,e){for(var t in e)if("children"!==t&&u[t]!==e[t])return!1;return!0}},U=["text"],Y=["text"];function G(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable})),t.push.apply(t,r)}return t}function H(u){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},{voids:t=!1,mode:r="lowest",at:n=u.selection,match:D}=e;if(n){var a=Q.path(u,n);for(var[o,i]of Q.levels(u,{at:a,voids:t,match:D,reverse:"lowest"===r})){if(uy.isText(o))return;if(uA.isRange(n)){if(uo.isAncestor(i,n.anchor.path)&&uo.isAncestor(i,n.focus.path))return[o,i]}else if(!uo.equals(a,i))return[o,i]}}},addMark(u,e,t){u.addMark(e,t)},after(u,e){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Q.point(u,e,{edge:"end"}),D=Q.end(u,[]),{distance:a=1}=r,o=0;for(var i of Q.positions(u,H(H({},r),{},{at:{anchor:n,focus:D}}))){if(o>a)break;0!==o&&(t=i),o++}return t},before(u,e){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Q.start(u,[]),D=Q.point(u,e,{edge:"start"}),{distance:a=1}=r,o=0;for(var i of Q.positions(u,H(H({},r),{},{at:{anchor:n,focus:D},reverse:!0}))){if(o>a)break;0!==o&&(t=i),o++}return t},deleteBackward(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:t="character"}=e;u.deleteBackward(t)},deleteForward(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:t="character"}=e;u.deleteForward(t)},deleteFragment(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:t="forward"}=e;u.deleteFragment(t)},edges:(u,e)=>[Q.start(u,e),Q.end(u,e)],end:(u,e)=>Q.point(u,e,{edge:"end"}),first(u,e){var t=Q.path(u,e,{edge:"start"});return Q.node(u,t)},fragment(u,e){var t=Q.range(u,e);return ur.fragment(u,t)},hasBlocks:(u,e)=>e.children.some(e=>Q.isBlock(u,e)),hasInlines:(u,e)=>e.children.some(e=>uy.isText(e)||Q.isInline(u,e)),hasTexts:(u,e)=>e.children.every(u=>uy.isText(u)),insertBreak(u){u.insertBreak()},insertSoftBreak(u){u.insertSoftBreak()},insertFragment(u,e){u.insertFragment(e)},insertNode(u,e){u.insertNode(e)},insertText(u,e){u.insertText(e)},isBlock:(u,e)=>Z.isElement(e)&&!u.isInline(e),isEditor(u){var e=K.get(u);if(void 0!==e)return e;if(!(0,D.P)(u))return!1;var t="function"==typeof u.addMark&&"function"==typeof u.apply&&"function"==typeof u.deleteBackward&&"function"==typeof u.deleteForward&&"function"==typeof u.deleteFragment&&"function"==typeof u.insertBreak&&"function"==typeof u.insertSoftBreak&&"function"==typeof u.insertFragment&&"function"==typeof u.insertNode&&"function"==typeof u.insertText&&"function"==typeof u.isInline&&"function"==typeof u.isVoid&&"function"==typeof u.normalizeNode&&"function"==typeof u.onChange&&"function"==typeof u.removeMark&&"function"==typeof u.getDirtyPaths&&(null===u.marks||(0,D.P)(u.marks))&&(null===u.selection||uA.isRange(u.selection))&&ur.isNodeList(u.children)&&ua.isOperationList(u.operations);return K.set(u,t),t},isEnd(u,e,t){var r=Q.end(u,t);return uB.equals(e,r)},isEdge:(u,e,t)=>Q.isStart(u,e,t)||Q.isEnd(u,e,t),isEmpty(u,e){var{children:t}=e,[r]=t;return 0===t.length||1===t.length&&uy.isText(r)&&""===r.text&&!u.isVoid(e)},isInline:(u,e)=>Z.isElement(e)&&u.isInline(e),isNormalizing(u){var e=B.get(u);return void 0===e||e},isStart(u,e,t){if(0!==e.offset)return!1;var r=Q.start(u,t);return uB.equals(e,r)},isVoid:(u,e)=>Z.isElement(e)&&u.isVoid(e),last(u,e){var t=Q.path(u,e,{edge:"end"});return Q.node(u,t)},leaf(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Q.path(u,e,t);return[ur.leaf(u,r),r]},*levels(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:t=u.selection,reverse:r=!1,voids:n=!1}=e,{match:D}=e;if(null==D&&(D=()=>!0),t){var a=[],o=Q.path(u,t);for(var[i,s]of ur.levels(u,o))if(D(i,s)&&(a.push([i,s]),!n&&Q.isVoid(u,i)))break;r&&a.reverse(),yield*a}},marks(u){var{marks:e,selection:t}=u;if(!t)return null;if(e)return e;if(uA.isExpanded(t)){var[r]=Q.nodes(u,{match:uy.isText});if(!r)return{};var[n]=r;return d(n,U)}var{anchor:D}=t,{path:a}=D,[o]=Q.leaf(u,a);if(0===D.offset){var i=Q.previous(u,{at:a,match:uy.isText});if(!Q.above(u,{match:e=>Q.isVoid(u,e)&&u.markableVoid(e)})){var s=Q.above(u,{match:e=>Q.isBlock(u,e)});if(i&&s){var[C,B]=i,[,l]=s;uo.isAncestor(l,B)&&(o=C)}}}return d(o,Y)},next(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:t="lowest",voids:r=!1}=e,{match:n,at:D=u.selection}=e;if(D){var a=Q.after(u,D,{voids:r});if(a){var[,o]=Q.last(u,[]),i=[a.path,o];if(uo.isPath(D)&&0===D.length)throw Error("Cannot get the next node from the root node!");if(null==n){if(uo.isPath(D)){var[s]=Q.parent(u,D);n=u=>s.children.includes(u)}else n=()=>!0}var[C]=Q.nodes(u,{at:i,match:n,mode:t,voids:r});return C}}},node(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Q.path(u,e,t);return[ur.get(u,r),r]},*nodes(u){var e,t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:D=u.selection,mode:a="all",universal:o=!1,reverse:i=!1,voids:s=!1}=n,{match:C}=n;if(C||(C=()=>!0),D){if(X.isSpan(D))e=D[0],t=D[1];else{var B=Q.path(u,D,{edge:"start"}),l=Q.path(u,D,{edge:"end"});e=i?l:B,t=i?B:l}var c=ur.nodes(u,{reverse:i,from:e,to:t,pass(e){var[t]=e;return!s&&Q.isVoid(u,t)}}),f=[];for(var[A,h]of c){var F=r&&0===uo.compare(h,r[1]);if("highest"!==a||!F){if(!C(A,h)){if(o&&!F&&uy.isText(A))return;continue}if("lowest"===a&&F){r=[A,h];continue}var E="lowest"===a?r:[A,h];E&&(o?f.push(E):yield E),r=[A,h]}}"lowest"===a&&r&&(o?f.push(r):yield r),o&&(yield*f)}},normalize(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:t=!1}=e,r=u=>i.get(u)||[],n=u=>s.get(u)||new Set,D=u=>{var e=r(u).pop(),t=e.join(",");return n(u).delete(t),e};if(Q.isNormalizing(u)){if(t){var a=Array.from(ur.nodes(u),u=>{var[,e]=u;return e}),o=new Set(a.map(u=>u.join(",")));i.set(u,a),s.set(u,o)}0!==r(u).length&&Q.withoutNormalizing(u,()=>{for(var e of r(u))if(ur.has(u,e)){var t=Q.node(u,e),[n,a]=t;Z.isElement(n)&&0===n.children.length&&u.normalizeNode(t)}for(var o=42*r(u).length,i=0;0!==r(u).length;){if(i>o)throw Error("\n Could not completely normalize the editor after ".concat(o," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=D(u);if(ur.has(u,s)){var C=Q.node(u,s);u.normalizeNode(C)}i++}})}},parent(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Q.path(u,e,t),n=uo.parent(r);return Q.node(u,n)},path(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:n}=t;if(uo.isPath(e)){if("start"===n){var[,D]=ur.first(u,e);e=D}else if("end"===n){var[,a]=ur.last(u,e);e=a}}return uA.isRange(e)&&(e="start"===n?uA.start(e):"end"===n?uA.end(e):uo.common(e.anchor.path,e.focus.path)),uB.isPoint(e)&&(e=e.path),null!=r&&(e=e.slice(0,r)),e},hasPath:(u,e)=>ur.has(u,e),pathRef(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=t,n={current:e,affinity:r,unref(){var{current:e}=n;return Q.pathRefs(u).delete(n),n.current=null,e}};return Q.pathRefs(u).add(n),n},pathRefs(u){var e=l.get(u);return e||(e=new Set,l.set(u,e)),e},point(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=t;if(uo.isPath(e)){if("end"===r){var n,[,D]=ur.last(u,e);n=D}else{var[,a]=ur.first(u,e);n=a}var o=ur.get(u,n);if(!uy.isText(o))throw Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:n,offset:"end"===r?o.text.length:0}}if(uA.isRange(e)){var[i,s]=uA.edges(e);return"start"===r?i:s}return e},pointRef(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=t,n={current:e,affinity:r,unref(){var{current:e}=n;return Q.pointRefs(u).delete(n),n.current=null,e}};return Q.pointRefs(u).add(n),n},pointRefs(u){var e=c.get(u);return e||(e=new Set,c.set(u,e)),e},*positions(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:t=u.selection,unit:r="offset",reverse:n=!1,voids:D=!1}=e;if(t){var a=Q.range(u,t),[o,i]=uA.edges(a),s=n?i:o,C=!1,B="",l=0,c=0,f=0;for(var[A,h]of Q.nodes(u,{at:t,reverse:n,voids:D})){if(Z.isElement(A)){if(!D&&u.isVoid(A)){yield Q.start(u,h);continue}if(u.isInline(A))continue;if(Q.hasInlines(u,A)){var F=uo.isAncestor(h,i.path)?i:Q.end(u,h),E=uo.isAncestor(h,o.path)?o:Q.start(u,h);B=Q.string(u,{anchor:E,focus:F},{voids:D}),C=!0}}if(uy.isText(A)){var d,v=uo.equals(h,s.path);for(v?(c=n?s.offset:A.text.length-s.offset,f=s.offset):(c=A.text.length,f=n?c:0),(v||C||"offset"===r)&&(yield{path:h,offset:f},C=!1);;){if(0===l){if(""===B)break;d=B,l="character"===r?p(d,n):"word"===r?y(d,n):"line"===r||"block"===r?d.length:1,B=b(B,l,n)[1]}if(f=n?f-l:f+l,(c-=l)<0){l=-c;break}l=0,yield{path:h,offset:f}}}}}},previous(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:t="lowest",voids:r=!1}=e,{match:n,at:D=u.selection}=e;if(D){var a=Q.before(u,D,{voids:r});if(a){var[,o]=Q.first(u,[]),i=[a.path,o];if(uo.isPath(D)&&0===D.length)throw Error("Cannot get the previous node from the root node!");if(null==n){if(uo.isPath(D)){var[s]=Q.parent(u,D);n=u=>s.children.includes(u)}else n=()=>!0}var[C]=Q.nodes(u,{reverse:!0,at:i,match:n,mode:t,voids:r});return C}}},range:(u,e,t)=>uA.isRange(e)&&!t?e:{anchor:Q.start(u,e),focus:Q.end(u,t||e)},rangeRef(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=t,n={current:e,affinity:r,unref(){var{current:e}=n;return Q.rangeRefs(u).delete(n),n.current=null,e}};return Q.rangeRefs(u).add(n),n},rangeRefs(u){var e=f.get(u);return e||(e=new Set,f.set(u,e)),e},removeMark(u,e){u.removeMark(e)},setNormalizing(u,e){B.set(u,e)},start:(u,e)=>Q.point(u,e,{edge:"start"}),string(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=t,n=Q.range(u,e),[D,a]=uA.edges(n),o="";for(var[i,s]of Q.nodes(u,{at:n,match:uy.isText,voids:r})){var C=i.text;uo.equals(s,a.path)&&(C=C.slice(0,a.offset)),uo.equals(s,D.path)&&(C=C.slice(D.offset)),o+=C}return o},unhangRange(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=t,[n,D]=uA.edges(e);if(0!==n.offset||0!==D.offset||uA.isCollapsed(e)||uo.hasPrevious(D.path))return e;var a=Q.above(u,{at:D,match:e=>Q.isBlock(u,e),voids:r}),o=a?a[1]:[],i={anchor:Q.start(u,n),focus:D},s=!0;for(var[C,B]of Q.nodes(u,{at:i,match:uy.isText,reverse:!0,voids:r})){if(s){s=!1;continue}if(""!==C.text||uo.isBefore(B,o)){D={path:B,offset:C.text.length};break}}return{anchor:n,focus:D}},void(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Q.above(u,H(H({},e),{},{match:e=>Q.isVoid(u,e)}))},withoutNormalizing(u,e){var t=Q.isNormalizing(u);Q.setNormalizing(u,!1);try{e()}finally{Q.setNormalizing(u,t)}Q.normalize(u)}},X={isSpan:u=>Array.isArray(u)&&2===u.length&&u.every(uo.isPath)},uu=["children"],ue=["text"],ut=new WeakMap,ur={ancestor(u,e){var t=ur.get(u,e);if(uy.isText(t))throw Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(uE.stringify(t)));return t},*ancestors(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of uo.ancestors(e,t))yield[ur.ancestor(u,r),r]},child(u,e){if(uy.isText(u))throw Error("Cannot get the child of a text node: ".concat(uE.stringify(u)));var t=u.children[e];if(null==t)throw Error("Cannot get child at index `".concat(e,"` in node: ").concat(uE.stringify(u)));return t},*children(u,e){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=t,n=ur.ancestor(u,e),{children:D}=n,a=r?D.length-1:0;r?a>=0:a1&&void 0!==arguments[1]?arguments[1]:{};for(var[t,r]of ur.nodes(u,e))0!==r.length&&(yield[t,r])},*elements(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[t,r]of ur.nodes(u,e))Z.isElement(t)&&(yield[t,r])},extractProps(u){if(Z.isAncestor(u)){var e=d(u,uu);return e}var e=d(u,ue);return e},first(u,e){for(var t=e.slice(),r=ur.get(u,t);r&&!uy.isText(r)&&0!==r.children.length;)r=r.children[0],t.push(0);return[r,t]},fragment(u,e){if(uy.isText(u))throw Error("Cannot get a fragment starting from a root text node: ".concat(uE.stringify(u)));return(0,a.Uy)({children:u.children},u=>{var[t,r]=uA.edges(e);for(var[,n]of ur.nodes(u,{reverse:!0,pass(u){var[,t]=u;return!uA.includes(e,t)}})){if(!uA.includes(e,n)){var D=ur.parent(u,n),a=n[n.length-1];D.children.splice(a,1)}if(uo.equals(n,r.path)){var o=ur.leaf(u,n);o.text=o.text.slice(0,r.offset)}if(uo.equals(n,t.path)){var i=ur.leaf(u,n);i.text=i.text.slice(t.offset)}}Q.isEditor(u)&&(u.selection=null)}).children},get(u,e){for(var t=u,r=0;ruy.isText(u)||Z.isElement(u)||Q.isEditor(u),isNodeList(u){if(!Array.isArray(u))return!1;var e=ut.get(u);if(void 0!==e)return e;var t=u.every(u=>ur.isNode(u));return ut.set(u,t),t},last(u,e){for(var t=e.slice(),r=ur.get(u,t);r&&!uy.isText(r)&&0!==r.children.length;){var n=r.children.length-1;r=r.children[n],t.push(n)}return[r,t]},leaf(u,e){var t=ur.get(u,e);if(!uy.isText(t))throw Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(uE.stringify(t)));return t},*levels(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of uo.levels(e,t))yield[ur.get(u,r),r]},matches:(u,e)=>Z.isElement(u)&&Z.isElementProps(e)&&Z.matches(u,e)||uy.isText(u)&&uy.isTextProps(e)&&uy.matches(u,e),*nodes(u){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:t,reverse:r=!1}=e,{from:n=[],to:D}=e,a=new Set,o=[],i=u;!(D&&(r?uo.isBefore(o,D):uo.isAfter(o,D)));){if(a.has(i)||(yield[i,o]),!a.has(i)&&!uy.isText(i)&&0!==i.children.length&&(null==t||!1===t([i,o]))){a.add(i);var s=r?i.children.length-1:0;uo.isAncestor(o,n)&&(s=n[o.length]),o=o.concat(s),i=ur.get(u,o);continue}if(0===o.length)break;if(!r){var C=uo.next(o);if(ur.has(u,C)){o=C,i=ur.get(u,o);continue}}if(r&&0!==o[o.length-1]){o=uo.previous(o),i=ur.get(u,o);continue}o=uo.parent(o),i=ur.get(u,o),a.add(i)}},parent(u,e){var t=uo.parent(e),r=ur.get(u,t);if(uy.isText(r))throw Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:u=>uy.isText(u)?u.text:u.children.map(ur.string).join(""),*texts(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[t,r]of ur.nodes(u,e))uy.isText(t)&&(yield[t,r])}};function un(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable})),t.push.apply(t,r)}return t}function uD(u){for(var e=1;eua.isOperation(u)&&u.type.endsWith("_node"),isOperation(u){if(!(0,D.P)(u))return!1;switch(u.type){case"insert_node":case"remove_node":return uo.isPath(u.path)&&ur.isNode(u.node);case"insert_text":case"remove_text":return"number"==typeof u.offset&&"string"==typeof u.text&&uo.isPath(u.path);case"merge_node":return"number"==typeof u.position&&uo.isPath(u.path)&&(0,D.P)(u.properties);case"move_node":return uo.isPath(u.path)&&uo.isPath(u.newPath);case"set_node":return uo.isPath(u.path)&&(0,D.P)(u.properties)&&(0,D.P)(u.newProperties);case"set_selection":return null===u.properties&&uA.isRange(u.newProperties)||null===u.newProperties&&uA.isRange(u.properties)||(0,D.P)(u.properties)&&(0,D.P)(u.newProperties);case"split_node":return uo.isPath(u.path)&&"number"==typeof u.position&&(0,D.P)(u.properties);default:return!1}},isOperationList:u=>Array.isArray(u)&&u.every(u=>ua.isOperation(u)),isSelectionOperation:u=>ua.isOperation(u)&&u.type.endsWith("_selection"),isTextOperation:u=>ua.isOperation(u)&&u.type.endsWith("_text"),inverse(u){switch(u.type){case"insert_node":return uD(uD({},u),{},{type:"remove_node"});case"insert_text":return uD(uD({},u),{},{type:"remove_text"});case"merge_node":return uD(uD({},u),{},{type:"split_node",path:uo.previous(u.path)});case"move_node":var{newPath:e,path:t}=u;if(uo.equals(e,t))return u;if(uo.isSibling(t,e))return uD(uD({},u),{},{path:e,newPath:t});var r=uo.transform(t,u),n=uo.transform(uo.next(t),u);return uD(uD({},u),{},{path:r,newPath:n});case"remove_node":return uD(uD({},u),{},{type:"insert_node"});case"remove_text":return uD(uD({},u),{},{type:"insert_text"});case"set_node":var{properties:D,newProperties:a}=u;return uD(uD({},u),{},{properties:a,newProperties:D});case"set_selection":var{properties:o,newProperties:i}=u;if(null==o)return uD(uD({},u),{},{properties:i,newProperties:null});if(null==i)return uD(uD({},u),{},{properties:null,newProperties:o});return uD(uD({},u),{},{properties:i,newProperties:o});case"split_node":return uD(uD({},u),{},{type:"merge_node",path:uo.next(u.path)})}}},uo={ancestors(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:t=!1}=e,r=uo.levels(u,e);return t?r.slice(1):r.slice(0,-1)},common(u,e){for(var t=[],r=0;re[r])return 1}return 0},endsAfter(u,e){var t=u.length-1,r=u.slice(0,t),n=e.slice(0,t),D=u[t],a=e[t];return uo.equals(r,n)&&D>a},endsAt(u,e){var t=u.length,r=u.slice(0,t),n=e.slice(0,t);return uo.equals(r,n)},endsBefore(u,e){var t=u.length-1,r=u.slice(0,t),n=e.slice(0,t),D=u[t],a=e[t];return uo.equals(r,n)&&Du.length===e.length&&u.every((u,t)=>u===e[t]),hasPrevious:u=>u[u.length-1]>0,isAfter:(u,e)=>1===uo.compare(u,e),isAncestor:(u,e)=>u.length-1===uo.compare(u,e),isChild:(u,e)=>u.length===e.length+1&&0===uo.compare(u,e),isCommon:(u,e)=>u.length<=e.length&&0===uo.compare(u,e),isDescendant:(u,e)=>u.length>e.length&&0===uo.compare(u,e),isParent:(u,e)=>u.length+1===e.length&&0===uo.compare(u,e),isPath:u=>Array.isArray(u)&&(0===u.length||"number"==typeof u[0]),isSibling(u,e){if(u.length!==e.length)return!1;var t=u.slice(0,-1),r=e.slice(0,-1);return u[u.length-1]!==e[e.length-1]&&uo.equals(t,r)},levels(u){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:t=!1}=e,r=[],n=0;n<=u.length;n++)r.push(u.slice(0,n));return t&&r.reverse(),r},next(u){if(0===u.length)throw Error("Cannot get the next path of a root path [".concat(u,"], because it has no next index."));var e=u[u.length-1];return u.slice(0,-1).concat(e+1)},operationCanTransformPath(u){switch(u.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(u){if(0===u.length)throw Error("Cannot get the parent path of the root path [".concat(u,"]."));return u.slice(0,-1)},previous(u){if(0===u.length)throw Error("Cannot get the previous path of a root path [".concat(u,"], because it has no previous index."));var e=u[u.length-1];if(e<=0)throw Error("Cannot get the previous path of a first child path [".concat(u,"] because it would result in a negative index."));return u.slice(0,-1).concat(e-1)},relative(u,e){if(!uo.isAncestor(e,u)&&!uo.equals(u,e))throw Error("Cannot get the relative path of [".concat(u,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return u.slice(e.length)},transform(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!u)return null;var r=[...u],{affinity:n="forward"}=t;if(0===u.length)return r;switch(e.type){case"insert_node":var{path:D}=e;(uo.equals(D,r)||uo.endsBefore(D,r)||uo.isAncestor(D,r))&&(r[D.length-1]+=1);break;case"remove_node":var{path:a}=e;if(uo.equals(a,r)||uo.isAncestor(a,r))return null;uo.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:o,position:i}=e;uo.equals(o,r)||uo.endsBefore(o,r)?r[o.length-1]-=1:uo.isAncestor(o,r)&&(r[o.length-1]-=1,r[o.length]+=i);break;case"split_node":var{path:s,position:C}=e;if(uo.equals(s,r)){if("forward"===n)r[r.length-1]+=1;else if("backward"!==n)return null}else uo.endsBefore(s,r)?r[s.length-1]+=1:uo.isAncestor(s,r)&&u[s.length]>=C&&(r[s.length-1]+=1,r[s.length]-=C);break;case"move_node":var{path:B,newPath:l}=e;if(uo.equals(B,l))break;if(uo.isAncestor(B,r)||uo.equals(B,r)){var c=l.slice();return uo.endsBefore(B,l)&&B.lengthe.offset?1:0:t},isAfter:(u,e)=>1===uB.compare(u,e),isBefore:(u,e)=>-1===uB.compare(u,e),equals:(u,e)=>u.offset===e.offset&&uo.equals(u.path,e.path),isPoint:u=>(0,D.P)(u)&&"number"==typeof u.offset&&uo.isPath(u.path),transform(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,a.Uy)(u,u=>{if(null===u)return null;var{affinity:r="forward"}=t,{path:n,offset:D}=u;switch(e.type){case"insert_node":case"move_node":u.path=uo.transform(n,e,t);break;case"insert_text":uo.equals(e.path,n)&&(e.offset1&&void 0!==arguments[1]?arguments[1]:{},{reverse:t=!1}=e,{anchor:r,focus:n}=u;return uA.isBackward(u)===t?[r,n]:[n,r]},end(u){var[,e]=uA.edges(u);return e},equals:(u,e)=>uB.equals(u.anchor,e.anchor)&&uB.equals(u.focus,e.focus),includes(u,e){if(uA.isRange(e)){if(uA.includes(u,e.anchor)||uA.includes(u,e.focus))return!0;var[t,r]=uA.edges(u),[n,D]=uA.edges(e);return uB.isBefore(t,n)&&uB.isAfter(r,D)}var[a,o]=uA.edges(u),i=!1,s=!1;return uB.isPoint(e)?(i=uB.compare(e,a)>=0,s=0>=uB.compare(e,o)):(i=uo.compare(e,a.path)>=0,s=0>=uo.compare(e,o.path)),i&&s},intersection(u,e){var t=d(u,uc),[r,n]=uA.edges(u),[D,a]=uA.edges(e),i=uB.isBefore(r,D)?D:r,s=uB.isBefore(n,a)?n:a;return uB.isBefore(s,i)?null:function(u){for(var e=1;e!uA.isCollapsed(u),isForward:u=>!uA.isBackward(u),isRange:u=>(0,D.P)(u)&&uB.isPoint(u.anchor)&&uB.isPoint(u.focus),*points(u){yield[u.anchor,"anchor"],yield[u.focus,"focus"]},start(u){var[e]=uA.edges(u);return e},transform(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,a.Uy)(u,u=>{if(null===u)return null;var r,n,{affinity:D="inward"}=t;if("inward"===D){var a=uA.isCollapsed(u);uA.isForward(u)?(r="forward",n=a?r:"backward"):(r="backward",n=a?r:"forward")}else"outward"===D?uA.isForward(u)?(r="backward",n="forward"):(r="forward",n="backward"):(r=D,n=D);var o=uB.transform(u.anchor,e,{affinity:r}),i=uB.transform(u.focus,e,{affinity:n});if(!o||!i)return null;u.anchor=o,u.focus=i})}},uh={transform(u,e){var{current:t,affinity:r}=u;if(null!=t){var n=uA.transform(t,e,{affinity:r});u.current=n,null==n&&u.unref()}}},uF=void 0,uE={setScrubber(u){uF=u},stringify:u=>JSON.stringify(u,uF)},ud=(u,e)=>{for(var t in u){var r=u[t],n=e[t];if((0,D.P)(r)&&(0,D.P)(n)){if(!ud(r,n))return!1}else if(Array.isArray(r)&&Array.isArray(n)){if(r.length!==n.length)return!1;for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=t;return ud(r?d(u,up):u,r?d(e,up):e)},isText:u=>(0,D.P)(u)&&"string"==typeof u.text,isTextList:u=>Array.isArray(u)&&u.every(u=>uy.isText(u)),isTextProps:u=>void 0!==u.text,matches(u,e){for(var t in e)if("text"!==t&&(!u.hasOwnProperty(t)||u[t]!==e[t]))return!1;return!0},decorations(u,e){var t=[um({},u)];for(var r of e){var n=d(r,uv),[D,a]=uA.edges(r),o=[],i=0,s=D.offset,C=a.offset;for(var B of t){var{length:l}=B.text,c=i;if(i+=l,s<=c&&i<=C){Object.assign(B,n),o.push(B);continue}if(s!==C&&(s===i||C===c)||s>i||Cc){var E=s-c;A=um(um({},f),{},{text:f.text.slice(0,E)}),f=um(um({},f),{},{text:f.text.slice(E)})}Object.assign(f,n),A&&o.push(A),o.push(f),h&&o.push(h)}t=o}return t}};function ub(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable})),t.push.apply(t,r)}return t}function uw(u){for(var e=1;e{switch(t.type){case"insert_node":var{path:r,node:n}=t,D=ur.parent(u,r),a=r[r.length-1];if(a>D.children.length)throw Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(D.children.splice(a,0,n),e)for(var[o,i]of uA.points(e))e[i]=uB.transform(o,t);break;case"insert_text":var{path:s,offset:C,text:B}=t;if(0===B.length)break;var l=ur.leaf(u,s),c=l.text.slice(0,C),f=l.text.slice(C);if(l.text=c+B+f,e)for(var[A,h]of uA.points(e))e[h]=uB.transform(A,t);break;case"merge_node":var{path:F}=t,E=ur.get(u,F),d=uo.previous(F),p=ur.get(u,d),v=ur.parent(u,F),g=F[F.length-1];if(uy.isText(E)&&uy.isText(p))p.text+=E.text;else if(uy.isText(E)||uy.isText(p))throw Error('Cannot apply a "merge_node" operation at path ['.concat(F,"] to nodes of different interfaces: ").concat(uE.stringify(E)," ").concat(uE.stringify(p)));else p.children.push(...E.children);if(v.children.splice(g,1),e)for(var[m,y]of uA.points(e))e[y]=uB.transform(m,t);break;case"move_node":var{path:b,newPath:w}=t;if(uo.isAncestor(b,w))throw Error("Cannot move a path [".concat(b,"] to new path [").concat(w,"] because the destination is inside itself."));var x=ur.get(u,b),O=ur.parent(u,b),P=b[b.length-1];O.children.splice(P,1);var k=uo.transform(b,t),j=ur.get(u,uo.parent(k)),N=k[k.length-1];if(j.children.splice(N,0,x),e)for(var[_,T]of uA.points(e))e[T]=uB.transform(_,t);break;case"remove_node":var{path:R}=t,S=R[R.length-1];if(ur.parent(u,R).children.splice(S,1),e)for(var[q,V]of uA.points(e)){var I=uB.transform(q,t);if(null!=e&&null!=I)e[V]=I;else{var z=void 0,L=void 0;for(var[M,W]of ur.texts(u))if(-1===uo.compare(W,R))z=[M,W];else{L=[M,W];break}var $=!1;z&&L&&($=uo.equals(L[1],R)?!uo.hasPrevious(L[1]):uo.common(z[1],R).lengthZ.isElement(e)?!!Q.isVoid(u,e)||1===e.children.length&&uN(u,e.children[0]):!Q.isEditor(e),u_=(u,e)=>{if(uA.isCollapsed(e))return e.anchor;var[,t]=uA.edges(e),r=Q.pointRef(u,t);return uI.delete(u,{at:e}),r.unref()},uT=(u,e)=>{var[t]=Q.node(u,e);return u=>u===t};function uR(u,e){var t=Object.keys(u);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(u);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(u,e).enumerable})),t.push.apply(t,r)}return t}function uS(u){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{};Q.withoutNormalizing(u,()=>{var{hanging:r=!1,voids:n=!1,mode:D="lowest"}=t,{at:a,match:o,select:i}=t;if(ur.isNode(e)&&(e=[e]),0!==e.length){var[s]=e;if(a||(a=u.selection?u.selection:u.children.length>0?Q.end(u,[]):[0],i=!0),null==i&&(i=!1),uA.isRange(a)){if(r||(a=Q.unhangRange(u,a,{voids:n})),uA.isCollapsed(a))a=a.anchor;else{var[,C]=uA.edges(a),B=Q.pointRef(u,C);uI.delete(u,{at:a}),a=B.unref()}}if(uB.isPoint(a)){null==o&&(o=uy.isText(s)?u=>uy.isText(u):u.isInline(s)?e=>uy.isText(e)||Q.isInline(u,e):e=>Q.isBlock(u,e));var[l]=Q.nodes(u,{at:a.path,match:o,mode:D,voids:n});if(!l)return;var[,c]=l,f=Q.pathRef(u,c),A=Q.isEnd(u,a,c);uI.splitNodes(u,{at:a,match:o,mode:D,voids:n});var h=f.unref();a=A?uo.next(h):h}var F=uo.parent(a),E=a[a.length-1];if(!(!n&&Q.void(u,{at:F}))){for(var d of e){var p=F.concat(E);E++,u.apply({type:"insert_node",path:p,node:d}),a=uo.next(a)}if(a=uo.previous(a),i){var v=Q.end(u,a);v&&uI.select(u,v)}}}})},liftNodes(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Q.withoutNormalizing(u,()=>{var{at:t=u.selection,mode:r="lowest",voids:n=!1}=e,{match:D}=e;if(null==D&&(D=uo.isPath(t)?uT(u,t):e=>Q.isBlock(u,e)),t)for(var a of Array.from(Q.nodes(u,{at:t,match:D,mode:r,voids:n}),e=>{var[,t]=e;return Q.pathRef(u,t)})){var o=a.unref();if(o.length<2)throw Error("Cannot lift node at a path [".concat(o,"] because it has a depth of less than `2`."));var[i,s]=Q.node(u,uo.parent(o)),C=o[o.length-1],{length:B}=i.children;if(1===B){var l=uo.next(s);uI.moveNodes(u,{at:o,to:l,voids:n}),uI.removeNodes(u,{at:s,voids:n})}else if(0===C)uI.moveNodes(u,{at:o,to:s,voids:n});else if(C===B-1){var c=uo.next(s);uI.moveNodes(u,{at:o,to:c,voids:n})}else{var f=uo.next(o),A=uo.next(s);uI.splitNodes(u,{at:f,voids:n}),uI.moveNodes(u,{at:o,to:A,voids:n})}}})},mergeNodes(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Q.withoutNormalizing(u,()=>{var t,r,{match:n,at:D=u.selection}=e,{hanging:a=!1,voids:o=!1,mode:i="lowest"}=e;if(D){if(null==n){if(uo.isPath(D)){var[s]=Q.parent(u,D);n=u=>s.children.includes(u)}else n=e=>Q.isBlock(u,e)}if(!a&&uA.isRange(D)&&(D=Q.unhangRange(u,D,{voids:o})),uA.isRange(D)){if(uA.isCollapsed(D))D=D.anchor;else{var[,C]=uA.edges(D),B=Q.pointRef(u,C);uI.delete(u,{at:D}),D=B.unref(),null==e.at&&uI.select(u,D)}}var[l]=Q.nodes(u,{at:D,match:n,voids:o,mode:i}),c=Q.previous(u,{at:D,match:n,voids:o,mode:i});if(l&&c){var[f,A]=l,[h,F]=c;if(0!==A.length&&0!==F.length){var E=uo.next(F),p=uo.common(A,F),v=uo.isSibling(A,F),g=Array.from(Q.levels(u,{at:A}),u=>{var[e]=u;return e}).slice(p.length).slice(0,-1),m=Q.above(u,{at:A,mode:"highest",match:e=>g.includes(e)&&uN(u,e)}),y=m&&Q.pathRef(u,m[1]);if(uy.isText(f)&&uy.isText(h)){var b=d(f,uO);r=h.text.length,t=b}else if(Z.isElement(f)&&Z.isElement(h)){var b=d(f,uP);r=h.children.length,t=b}else throw Error("Cannot merge the node at path [".concat(A,"] with the previous sibling because it is not the same kind: ").concat(uE.stringify(f)," ").concat(uE.stringify(h)));v||uI.moveNodes(u,{at:A,to:E,voids:o}),y&&uI.removeNodes(u,{at:y.current,voids:o}),Z.isElement(h)&&Q.isEmpty(u,h)||uy.isText(h)&&""===h.text&&0!==F[F.length-1]?uI.removeNodes(u,{at:F,voids:o}):u.apply({type:"merge_node",path:E,position:r,properties:t}),y&&y.unref()}}}})},moveNodes(u,e){Q.withoutNormalizing(u,()=>{var{to:t,at:r=u.selection,mode:n="lowest",voids:D=!1}=e,{match:a}=e;if(r){null==a&&(a=uo.isPath(r)?uT(u,r):e=>Q.isBlock(u,e));var o=Q.pathRef(u,t);for(var i of Array.from(Q.nodes(u,{at:r,match:a,mode:n,voids:D}),e=>{var[,t]=e;return Q.pathRef(u,t)})){var s=i.unref(),C=o.current;0!==s.length&&u.apply({type:"move_node",path:s,newPath:C}),o.current&&uo.isSibling(C,s)&&uo.isAfter(C,s)&&(o.current=uo.next(o.current))}o.unref()}})},removeNodes(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Q.withoutNormalizing(u,()=>{var{hanging:t=!1,voids:r=!1,mode:n="lowest"}=e,{at:D=u.selection,match:a}=e;if(D)for(var o of(null==a&&(a=uo.isPath(D)?uT(u,D):e=>Q.isBlock(u,e)),!t&&uA.isRange(D)&&(D=Q.unhangRange(u,D,{voids:r})),Array.from(Q.nodes(u,{at:D,match:a,mode:n,voids:r}),e=>{var[,t]=e;return Q.pathRef(u,t)}))){var i=o.unref();if(i){var[s]=Q.node(u,i);u.apply({type:"remove_node",path:i,node:s})}}})},setNodes(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Q.withoutNormalizing(u,()=>{var{match:r,at:n=u.selection,compare:D,merge:a}=t,{hanging:o=!1,mode:i="lowest",split:s=!1,voids:C=!1}=t;if(n){if(null==r&&(r=uo.isPath(n)?uT(u,n):e=>Q.isBlock(u,e)),!o&&uA.isRange(n)&&(n=Q.unhangRange(u,n,{voids:C})),s&&uA.isRange(n)){if(uA.isCollapsed(n)&&Q.leaf(u,n.anchor)[0].text.length>0)return;var B=Q.rangeRef(u,n,{affinity:"inward"}),[l,c]=uA.edges(n),f="lowest"===i?"lowest":"highest",A=Q.isEnd(u,c,c.path);uI.splitNodes(u,{at:c,match:r,mode:f,voids:C,always:!A});var h=Q.isStart(u,l,l.path);uI.splitNodes(u,{at:l,match:r,mode:f,voids:C,always:!h}),n=B.unref(),null==t.at&&uI.select(u,n)}for(var[F,E]of(D||(D=(u,e)=>u!==e),Q.nodes(u,{at:n,match:r,mode:i,voids:C}))){var d={},p={};if(0!==E.length){var v=!1;for(var g in e)"children"!==g&&"text"!==g&&D(e[g],F[g])&&(v=!0,F.hasOwnProperty(g)&&(d[g]=F[g]),a?null!=e[g]&&(p[g]=a(F[g],e[g])):null!=e[g]&&(p[g]=e[g]));v&&u.apply({type:"set_node",path:E,properties:d,newProperties:p})}}}})},splitNodes(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Q.withoutNormalizing(u,()=>{var t,{mode:r="lowest",voids:n=!1}=e,{match:D,at:a=u.selection,height:o=0,always:i=!1}=e;if(null==D&&(D=e=>Q.isBlock(u,e)),uA.isRange(a)&&(a=u_(u,a)),uo.isPath(a)){var s=a,C=Q.point(u,s),[B]=Q.parent(u,s);D=u=>u===B,o=C.path.length-s.length+1,a=C,i=!0}if(a){var l=Q.pointRef(u,a,{affinity:"backward"});try{var[c]=Q.nodes(u,{at:a,match:D,mode:r,voids:n});if(!c)return;var f=Q.void(u,{at:a,mode:"highest"});if(!n&&f){var[A,h]=f;if(Z.isElement(A)&&u.isInline(A)){var F=Q.after(u,h);if(!F){var E=uo.next(h);uI.insertNodes(u,{text:""},{at:E,voids:n}),F=Q.point(u,E)}a=F,i=!0}o=a.path.length-h.length+1,i=!0}t=Q.pointRef(u,a);var d=a.path.length-o,[,p]=c,v=a.path.slice(0,d),g=0===o?a.offset:a.path[d]+0;for(var[m,y]of Q.levels(u,{at:v,reverse:!0,voids:n})){var b=!1;if(y.length2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var n of e)r[n]=null;uI.setNodes(u,r,t)},unwrapNodes(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Q.withoutNormalizing(u,()=>{var{mode:t="lowest",split:r=!1,voids:n=!1}=e,{at:D=u.selection,match:a}=e;if(D){null==a&&(a=uo.isPath(D)?uT(u,D):e=>Q.isBlock(u,e)),uo.isPath(D)&&(D=Q.range(u,D));var o=uA.isRange(D)?Q.rangeRef(u,D):null;for(var i of Array.from(Q.nodes(u,{at:D,match:a,mode:t,voids:n}),e=>{var[,t]=e;return Q.pathRef(u,t)}).reverse())!function(e){var t=e.unref(),[D]=Q.node(u,t),a=Q.range(u,t);r&&o&&(a=uA.intersection(o.current,a)),uI.liftNodes(u,{at:a,match:u=>Z.isAncestor(D)&&D.children.includes(u),voids:n})}(i);o&&o.unref()}})},wrapNodes(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Q.withoutNormalizing(u,()=>{var{mode:r="lowest",split:n=!1,voids:D=!1}=t,{match:a,at:o=u.selection}=t;if(o){if(null==a&&(a=uo.isPath(o)?uT(u,o):u.isInline(e)?e=>Q.isInline(u,e)||uy.isText(e):e=>Q.isBlock(u,e)),n&&uA.isRange(o)){var[i,s]=uA.edges(o),C=Q.rangeRef(u,o,{affinity:"inward"});uI.splitNodes(u,{at:s,match:a,voids:D}),uI.splitNodes(u,{at:i,match:a,voids:D}),o=C.unref(),null==t.at&&uI.select(u,o)}for(var[,B]of Array.from(Q.nodes(u,{at:o,match:u.isInline(e)?e=>Q.isBlock(u,e):u=>Q.isEditor(u),mode:"lowest",voids:D}))){var l=uA.isRange(o)?uA.intersection(o,Q.range(u,B)):o;if(l){var c=Array.from(Q.nodes(u,{at:l,match:a,mode:r,voids:D}));if(c.length>0&&"continue"===function(){var[t]=c,r=c[c.length-1],[,n]=t,[,a]=r;if(0===n.length&&0===a.length)return"continue";var o=uo.equals(n,a)?uo.parent(n):uo.common(n,a),i=Q.range(u,n,a),[s]=Q.node(u,o),C=o.length+1,B=uo.next(a.slice(0,C)),l=uj(uj({},e),{},{children:[]});uI.insertNodes(u,l,{at:B,voids:D}),uI.moveNodes(u,{at:i,match:u=>Z.isAncestor(s)&&s.children.includes(u),to:B.concat(0),voids:D})}())continue}}}})}}),{collapse(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:t="anchor"}=e,{selection:r}=u;if(r){if("anchor"===t)uI.select(u,r.anchor);else if("focus"===t)uI.select(u,r.focus);else if("start"===t){var[n]=uA.edges(r);uI.select(u,n)}else if("end"===t){var[,D]=uA.edges(r);uI.select(u,D)}}},deselect(u){var{selection:e}=u;e&&u.apply({type:"set_selection",properties:e,newProperties:null})},move(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:t}=u,{distance:r=1,unit:n="character",reverse:D=!1}=e,{edge:a=null}=e;if(t){"start"===a&&(a=uA.isBackward(t)?"focus":"anchor"),"end"===a&&(a=uA.isBackward(t)?"anchor":"focus");var{anchor:o,focus:i}=t,s={distance:r,unit:n},C={};if(null==a||"anchor"===a){var B=D?Q.before(u,o,s):Q.after(u,o,s);B&&(C.anchor=B)}if(null==a||"focus"===a){var l=D?Q.before(u,i,s):Q.after(u,i,s);l&&(C.focus=l)}uI.setSelection(u,C)}},select(u,e){var{selection:t}=u;if(e=Q.range(u,e),t){uI.setSelection(u,e);return}if(!uA.isRange(e))throw Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(uE.stringify(e)));u.apply({type:"set_selection",properties:t,newProperties:e})},setPoint(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=u,{edge:n="both"}=t;if(r){"start"===n&&(n=uA.isBackward(r)?"focus":"anchor"),"end"===n&&(n=uA.isBackward(r)?"anchor":"focus");var{anchor:D,focus:a}=r,o="anchor"===n?D:a;uI.setSelection(u,{["anchor"===n?"anchor":"focus"]:uS(uS({},o),e)})}},setSelection(u,e){var{selection:t}=u,r={},n={};if(t){for(var D in e)("anchor"!==D||null==e.anchor||uB.equals(e.anchor,t.anchor))&&("focus"!==D||null==e.focus||uB.equals(e.focus,t.focus))&&("anchor"===D||"focus"===D||e[D]===t[D])||(r[D]=t[D],n[D]=e[D]);Object.keys(r).length>0&&u.apply({type:"set_selection",properties:r,newProperties:n})}}}),{delete(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Q.withoutNormalizing(u,()=>{var t,{reverse:r=!1,unit:n="character",distance:D=1,voids:a=!1}=e,{at:o=u.selection,hanging:i=!1}=e;if(o){var s=!1;if(uA.isRange(o)&&uA.isCollapsed(o)&&(s=!0,o=o.anchor),uB.isPoint(o)){var C=Q.void(u,{at:o,mode:"highest"});if(!a&&C){var[,B]=C;o=B}else{var l={unit:n,distance:D},c=r?Q.before(u,o,l)||Q.start(u,[]):Q.after(u,o,l)||Q.end(u,[]);o={anchor:o,focus:c},i=!0}}if(uo.isPath(o)){uI.removeNodes(u,{at:o,voids:a});return}if(!uA.isCollapsed(o)){if(!i){var[,f]=uA.edges(o),A=Q.end(u,[]);uB.equals(f,A)||(o=Q.unhangRange(u,o,{voids:a}))}var[h,F]=uA.edges(o),E=Q.above(u,{match:e=>Q.isBlock(u,e),at:h,voids:a}),d=Q.above(u,{match:e=>Q.isBlock(u,e),at:F,voids:a}),p=E&&d&&!uo.equals(E[1],d[1]),v=uo.equals(h.path,F.path),g=a?null:Q.void(u,{at:h,mode:"highest"}),m=a?null:Q.void(u,{at:F,mode:"highest"});if(g){var y=Q.before(u,h);y&&E&&uo.isAncestor(E[1],y.path)&&(h=y)}if(m){var b=Q.after(u,F);b&&d&&uo.isAncestor(d[1],b.path)&&(F=b)}var w=[];for(var x of Q.nodes(u,{at:o,voids:a})){var[O,P]=x;(!t||0!==uo.compare(P,t))&&(!a&&Q.isVoid(u,O)||!uo.isCommon(P,h.path)&&!uo.isCommon(P,F.path))&&(w.push(x),t=P)}var k=Array.from(w,e=>{var[,t]=e;return Q.pathRef(u,t)}),j=Q.pointRef(u,h),N=Q.pointRef(u,F),_="";if(!v&&!g){var T=j.current,[R]=Q.leaf(u,T),{path:S}=T,{offset:q}=h,V=R.text.slice(q);V.length>0&&(u.apply({type:"remove_text",path:S,offset:q,text:V}),_=V)}if(k.reverse().map(u=>u.unref()).filter(u=>null!==u).forEach(e=>uI.removeNodes(u,{at:e,voids:a})),!m){var I=N.current,[z]=Q.leaf(u,I),{path:L}=I,M=v?h.offset:0,W=z.text.slice(M,F.offset);W.length>0&&(u.apply({type:"remove_text",path:L,offset:M,text:W}),_=W)}!v&&p&&N.current&&j.current&&uI.mergeNodes(u,{at:N.current,hanging:!0,voids:a}),s&&r&&"character"===n&&_.length>1&&_.match(/[\u0E00-\u0E7F]+/)&&uI.insertText(u,_.slice(0,_.length-D));var $=j.unref(),J=N.unref(),Z=r?$||J:J||$;null==e.at&&Z&&uI.select(u,Z)}}})},insertFragment(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Q.withoutNormalizing(u,()=>{var r,{hanging:n=!1,voids:D=!1}=t,{at:a=u.selection}=t;if(e.length&&a){if(uA.isRange(a)){if(n||(a=Q.unhangRange(u,a,{voids:D})),uA.isCollapsed(a))a=a.anchor;else{var[,o]=uA.edges(a);if(!D&&Q.void(u,{at:o}))return;var i=Q.pointRef(u,o);uI.delete(u,{at:a}),a=i.unref()}}else uo.isPath(a)&&(a=Q.start(u,a));if(!(!D&&Q.void(u,{at:a}))){var s=Q.above(u,{at:a,match:e=>Q.isInline(u,e),mode:"highest",voids:D});if(s){var[,C]=s;Q.isEnd(u,a,C)?a=Q.after(u,C):Q.isStart(u,a,C)&&(a=Q.before(u,C))}var[,B]=Q.above(u,{match:e=>Q.isBlock(u,e),at:a,voids:D}),l=Q.isStart(u,a,B),c=Q.isEnd(u,a,B),f=l&&c,A=!l||l&&c,h=!c,[,F]=ur.first({children:e},[]),[,E]=ur.last({children:e},[]),d=[],p=e=>{var[t,r]=e;return 0!==r.length&&(!!f||!(A&&uo.isAncestor(r,F)&&Z.isElement(t)&&!u.isVoid(t)&&!u.isInline(t)||h&&uo.isAncestor(r,E)&&Z.isElement(t)&&!u.isVoid(t)&&!u.isInline(t)))};for(var v of ur.nodes({children:e},{pass:p}))p(v)&&d.push(v);var g=[],m=[],y=[],b=!0,w=!1;for(var[x]of d)Z.isElement(x)&&!u.isInline(x)?(b=!1,w=!0,m.push(x)):b?g.push(x):y.push(x);var[O]=Q.nodes(u,{at:a,match:e=>uy.isText(e)||Q.isInline(u,e),mode:"highest",voids:D}),[,P]=O,k=Q.isStart(u,a,P),j=Q.isEnd(u,a,P),N=Q.pathRef(u,c&&!y.length?uo.next(B):B),_=Q.pathRef(u,j?uo.next(P):P);uI.splitNodes(u,{at:a,match:e=>w?Q.isBlock(u,e):uy.isText(e)||Q.isInline(u,e),mode:w?"lowest":"highest",always:w&&(!l||g.length>0)&&(!c||y.length>0),voids:D});var T=Q.pathRef(u,!k||k&&j?uo.next(P):P);if(uI.insertNodes(u,g,{at:T.current,match:e=>uy.isText(e)||Q.isInline(u,e),mode:"highest",voids:D}),f&&!g.length&&m.length&&!y.length&&uI.delete(u,{at:B,voids:D}),uI.insertNodes(u,m,{at:N.current,match:e=>Q.isBlock(u,e),mode:"lowest",voids:D}),uI.insertNodes(u,y,{at:_.current,match:e=>uy.isText(e)||Q.isInline(u,e),mode:"highest",voids:D}),!t.at&&(y.length>0&&_.current?r=uo.previous(_.current):m.length>0&&N.current?r=uo.previous(N.current):T.current&&(r=uo.previous(T.current)),r)){var R=Q.end(u,r);uI.select(u,R)}T.unref(),N.unref(),_.unref()}}})},insertText(u,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Q.withoutNormalizing(u,()=>{var{voids:r=!1}=t,{at:n=u.selection}=t;if(n){if(uo.isPath(n)&&(n=Q.range(u,n)),uA.isRange(n)){if(uA.isCollapsed(n))n=n.anchor;else{var D=uA.end(n);if(!r&&Q.void(u,{at:D}))return;var a=uA.start(n),o=Q.pointRef(u,a),i=Q.pointRef(u,D);uI.delete(u,{at:n,voids:r});var s=o.unref(),C=i.unref();n=s||C,uI.setSelection(u,{anchor:n,focus:n})}}if(!(!r&&Q.void(u,{at:n}))){var{path:B,offset:l}=n;e.length>0&&u.apply({type:"insert_text",path:B,offset:l,text:e})}}})}})}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/d6e1aeb5-0705bf43bcd6af77.js b/static/web/_next/static/chunks/d6e1aeb5-0705bf43bcd6af77.js deleted file mode 100644 index 5095f03ac..000000000 --- a/static/web/_next/static/chunks/d6e1aeb5-0705bf43bcd6af77.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2544],{85215:function(e,t,i){for(var n,r,a,s,o,l,u,d,c,h,p,f=i(58908),m=i.n(f),g=i(89144),_=i.n(g),v=i(87462),y=i(27537),T=i.n(y),b=i(97326),S=i(94578),k=i(75974),C=i.n(k),E=i(9603),w=i.n(E),I=i(13407),x=i.n(I),P=i(5647),A=i(60136),L=i(80779),O=i(9323),D=i(92260),M=i(8485),R=i(60562),U=i(12955),B=i(84221),N=i.n(B),F=i(68925),j=i(86185),H=i(51489),q="7.20.3",V={},W=function(e,t){return V[e]=V[e]||[],t&&(V[e]=V[e].concat(t)),V[e]},z=function(e,t){var i=W(e).indexOf(t);return!(i<=-1)&&(V[e]=V[e].slice(),V[e].splice(i,1),!0)},G={prefixed:!0},K=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],Z=K[0],Q=0;Q0?o:0)}if(m().console){var l=m().console[e];l||"debug"!==e||(l=m().console.info||m().console.log),l&&a&&s.test(e)&&l[Array.isArray(n)?"apply":"call"](m().console,n)}},r.createLogger=function(i){return e(t+": "+i)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},r.level=function(e){if("string"==typeof e){if(!r.levels.hasOwnProperty(e))throw Error('"'+e+'" in not a valid log level');n=e}return n},r.history=function(){return Y?[].concat(Y):[]},r.history.filter=function(e){return(Y||[]).filter(function(t){return RegExp(".*"+e+".*").test(t[0])})},r.history.clear=function(){Y&&(Y.length=0)},r.history.disable=function(){null!==Y&&(Y.length=0,Y=null)},r.history.enable=function(){null===Y&&(Y=[])},r.error=function(){for(var e=arguments.length,t=Array(e),r=0;r1?t-1:0),n=1;n=0)throw Error("class has illegal whitespace characters")}function eA(){return _()===m().document}function eL(e){return er(e)&&1===e.nodeType}function eO(){try{return m().parent!==m().self}catch(e){return!0}}function eD(e){return function(t,i){if(!ex(t))return _()[e](null);ex(i)&&(i=_().querySelector(i));var n=eL(i)?i:_();return n[e]&&n[e](t)}}function eM(e,t,i,n){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===i&&(i={});var r=_().createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var i=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?($.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+i+"."),r.setAttribute(e,i)):"textContent"===e?eR(r,i):(r[e]!==i||"tabIndex"===e)&&(r[e]=i)}),Object.getOwnPropertyNames(i).forEach(function(e){r.setAttribute(e,i[e])}),n&&e0(r,n),r}function eR(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function eU(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function eB(e,t){return(eP(t),e.classList)?e.classList.contains(t):RegExp("(^|\\s)"+t+"($|\\s)").test(e.className)}function eN(e,t){return e.classList?e.classList.add(t):eB(e,t)||(e.className=(e.className+" "+t).trim()),e}function eF(e,t){return e?(e.classList?e.classList.remove(t):(eP(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e):($.warn("removeClass was called with an element that doesn't exist"),null)}function ej(e,t,i){var n=eB(e,t);if("function"==typeof i&&(i=i(e,t)),"boolean"!=typeof i&&(i=!n),i!==n)return i?eN(e,t):eF(e,t),e}function eH(e,t){Object.getOwnPropertyNames(t).forEach(function(i){var n=t[i];null==n||!1===n?e.removeAttribute(i):e.setAttribute(i,!0===n?"":n)})}function eq(e){var t={};if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,n=i.length-1;n>=0;n--){var r=i[n].name,a=i[n].value;("boolean"==typeof e[r]||-1!==",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+r+","))&&(a=null!==a),t[r]=a}return t}function eV(e,t){return e.getAttribute(t)}function eW(e,t,i){e.setAttribute(t,i)}function ez(e,t){e.removeAttribute(t)}function eG(){_().body.focus(),_().onselectstart=function(){return!1}}function eK(){_().onselectstart=function(){return!0}}function eZ(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(i[e]=t[e])}),i.height||(i.height=parseFloat(es(e,"height"))),i.width||(i.width=parseFloat(es(e,"width"))),i}}function eQ(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,i=e.offsetHeight,n=0,r=0;e.offsetParent&&e!==_()[G.fullscreenElement];)n+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:n,top:r,width:t,height:i}}function eX(e,t){var i={x:0,y:0};if(eE)for(var n=e;n&&"html"!==n.nodeName.toLowerCase();){var r=es(n,"transform");if(/^matrix/.test(r)){var a=r.slice(7,-1).split(/,\s/).map(Number);i.x+=a[4],i.y+=a[5]}else if(/^matrix3d/.test(r)){var s=r.slice(9,-1).split(/,\s/).map(Number);i.x+=s[12],i.y+=s[13]}n=n.parentNode}var o={},l=eQ(t.target),u=eQ(e),d=u.width,c=u.height,h=t.offsetY-(u.top-l.top),p=t.offsetX-(u.left-l.left);return t.changedTouches&&(p=t.changedTouches[0].pageX-u.left,h=t.changedTouches[0].pageY+u.top,eE&&(p-=i.x,h-=i.y)),o.y=1-Math.max(0,Math.min(1,h/c)),o.x=Math.max(0,Math.min(1,p/d)),o}function eY(e){return er(e)&&3===e.nodeType}function e$(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function eJ(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return("function"==typeof e&&(e=e()),eL(e)||eY(e))?e:"string"==typeof e&&/\S/.test(e)?_().createTextNode(e):void 0}).filter(function(e){return e})}function e0(e,t){return eJ(t).forEach(function(t){return e.appendChild(t)}),e}function e1(e,t){return e0(e$(e),t)}function e2(e){return void 0===e.button&&void 0===e.buttons||0===e.button&&void 0===e.buttons||"mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons}var e8=eD("querySelector"),e4=eD("querySelectorAll"),e5=Object.freeze({__proto__:null,isReal:eA,isEl:eL,isInFrame:eO,createEl:eM,textContent:eR,prependTo:eU,hasClass:eB,addClass:eN,removeClass:eF,toggleClass:ej,setAttributes:eH,getAttributes:eq,getAttribute:eV,setAttribute:eW,removeAttribute:ez,blockTextSelection:eG,unblockTextSelection:eK,getBoundingClientRect:eZ,findPosition:eQ,getPointerPosition:eX,isTextNode:eY,emptyEl:e$,normalizeContent:eJ,appendContent:e0,insertContent:e1,isSingleLeftClick:e2,$:e8,$$:e4}),e3=!1,e6=function(){if(!1!==l.options.autoSetup){var e=Array.prototype.slice.call(_().getElementsByTagName("video")),t=Array.prototype.slice.call(_().getElementsByTagName("audio")),i=Array.prototype.slice.call(_().getElementsByTagName("video-js")),n=e.concat(t,i);if(n&&n.length>0)for(var r=0,a=n.length;r-1&&(r={passive:!0}),e.addEventListener(t,n.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,n.dispatcher)}}function td(e,t,i){if(tn.has(e)){var n=tn.get(e);if(n.handlers){if(Array.isArray(t))return ta(td,e,t,i);var r=function(e,t){n.handlers[t]=[],tr(e,t)};if(void 0===t){for(var a in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},a)&&r(e,a);return}var s=n.handlers[t];if(s){if(!i){r(e,t);return}if(i.guid)for(var o=0;o=t&&(e.apply(void 0,arguments),i=n)}},t_=function(e,t,i,n){void 0===n&&(n=m());var r,a=function(){var a=this,s=arguments,o=function(){r=null,o=null,i||e.apply(a,s)};!r&&i&&e.apply(a,s),n.clearTimeout(r),r=n.setTimeout(o,t)};return a.cancel=function(){n.clearTimeout(r),r=null},a},tv=function(){};tv.prototype.allowedEvents_={},tv.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},tu(this,e,t),this.addEventListener=i},tv.prototype.addEventListener=tv.prototype.on,tv.prototype.off=function(e,t){td(this,e,t)},tv.prototype.removeEventListener=tv.prototype.off,tv.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},th(this,e,t),this.addEventListener=i},tv.prototype.any=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},tp(this,e,t),this.addEventListener=i},tv.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=ts(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),tc(this,e)},tv.prototype.dispatchEvent=tv.prototype.trigger,tv.prototype.queueTrigger=function(e){var t=this;c||(c=new Map);var i=e.type||e,n=c.get(this);n||(n=new Map,c.set(this,n));var r=n.get(i);n.delete(i),m().clearTimeout(r);var a=m().setTimeout(function(){0===n.size&&(n=null,c.delete(t)),t.trigger(e)},0);n.set(i,a)};var ty=function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},tT=function(e){return e instanceof tv||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},tb=function(e,t){tT(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},tS=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},tk=function(e,t,i){if(!e||!e.nodeName&&!tT(e))throw Error("Invalid target for "+ty(t)+"#"+i+"; must be a DOM node or evented object.")},tC=function(e,t,i){if(!tS(e))throw Error("Invalid event type for "+ty(t)+"#"+i+"; must be a non-empty string or array.")},tE=function(e,t,i){if("function"!=typeof e)throw Error("Invalid listener for "+ty(t)+"#"+i+"; must be a function.")},tw=function(e,t,i){var n,r,a,s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return s?(n=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],a=t[1]):(n=t[0],r=t[1],a=t[2]),tk(n,e,i),tC(r,e,i),tE(a,e,i),{isTargetingSelf:s,target:n,type:r,listener:a=tm(e,a)}},tI=function(e,t,i,n){tk(e,e,t),e.nodeName?tf[t](e,i,n):e[t](i,n)},tx={on:function(){for(var e=this,t=arguments.length,i=Array(t),n=0;n=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e&&(this.options_=tM(this.options_,e)),this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,i){return eM(e,t,i)},t.localize=function(e,t,i){void 0===i&&(i=e);var n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[n],s=n&&n.split("-")[0],o=r&&r[s],l=i;return a&&a[e]?l=a[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,i){var n=t[i-1],r=n;return void 0===n&&(r=e),r})),l},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=Array(e),i=0;i=0;i--)if(this.children_[i]===e){t=!0,this.children_.splice(i,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[tD(e.name())]=null,this.childNameIndex_[tO(e.name())]=null;var n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,i=this.options_.children;if(i){var n,r=this.options_,a=e.getComponent("Tech");(n=Array.isArray(i)?i:Object.keys(i)).concat(Object.keys(this.options_).filter(function(e){return!n.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var n,r;return"string"==typeof e?r=i[n=e]||t.options_[n]||{}:(n=e.name,r=e),{name:n,opts:r}}).filter(function(t){var i=e.getComponent(t.opts.componentClass||tD(t.name));return i&&!a.isTech(i)}).forEach(function(e){var i=e.name,n=e.opts;if(void 0!==r[i]&&(n=r[i]),!1!==n){!0===n&&(n={}),n.playerOptions=t.options_.playerOptions;var a=t.addChild(i,n);a&&(t[i]=a)}})}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e);return}t?e.call(this):this.setTimeout(e,1)}},t.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},t.$=function(e,t){return e8(e,t||this.contentEl())},t.$$=function(e,t){return e4(e,t||this.contentEl())},t.hasClass=function(e){return eB(this.el_,e)},t.addClass=function(e){eN(this.el_,e)},t.removeClass=function(e){eF(this.el_,e)},t.toggleClass=function(e,t){ej(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return eV(this.el_,e)},t.setAttribute=function(e,t){eW(this.el_,e,t)},t.removeAttribute=function(e){ez(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,i){if(void 0!==t){(null===t||t!=t)&&(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:"auto"===t?this.el_.style[e]="":this.el_.style[e]=t+"px",i||this.trigger("componentresize");return}if(!this.el_)return 0;var n=this.el_.style[e],r=n.indexOf("px");return -1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+tD(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw Error("currentDimension only accepts width or height value");if(0===(t=parseFloat(t=es(this.el_,e)))||isNaN(t)){var i="offset"+tD(e);t=this.el_[i]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(T().isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,i=null;this.on("touchstart",function(n){1===n.touches.length&&(i={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},t=m().performance.now(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(i){var n=t.touches[0].pageX-i.pageX,r=t.touches[0].pageY-i.pageY;Math.sqrt(n*n+r*r)>10&&(e=!1)}});var n=function(){e=!1};this.on("touchleave",n),this.on("touchcancel",n),this.on("touchend",function(n){i=null,!0===e&&m().performance.now()-t<200&&(n.preventDefault(),this.trigger("tap"))})},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=tm(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var i=function(i){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",i),this.on("touchcancel",i)}},t.setTimeout=function(e,t){var i,n=this;return e=tm(this,e),this.clearTimersOnDispose_(),i=m().setTimeout(function(){n.setTimeoutIds_.has(i)&&n.setTimeoutIds_.delete(i),e()},t),this.setTimeoutIds_.add(i),i},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),m().clearTimeout(e)),e},t.setInterval=function(e,t){e=tm(this,e),this.clearTimersOnDispose_();var i=m().setInterval(e,t);return this.setIntervalIds_.add(i),i},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),m().clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,i=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=tm(this,e),t=m().requestAnimationFrame(function(){i.rafIds_.has(t)&&i.rafIds_.delete(t),e()}),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var i=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=tm(this,t);var n=this.requestAnimationFrame(function(){t(),i.namedRafs_.has(e)&&i.namedRafs_.delete(e)});return this.namedRafs_.set(e,n),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),m().cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(t){var i=t[0],n=t[1];e[i].forEach(function(t,i){return e[n](i)})}),e.clearingTimersOnDispose_=!1}))},e.registerComponent=function(t,i){if("string"!=typeof t||!t)throw Error('Illegal component name, "'+t+'"; must be a non-empty string.');var n=e.getComponent("Tech"),r=n&&n.isTech(i),a=e===i||e.prototype.isPrototypeOf(i.prototype);if(r||!a)throw Error('Illegal component, "'+t+'"; '+(r?"techs must be registered using Tech.registerTech()":"must be a Component subclass")+".");t=tD(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var o=s.players,l=Object.keys(o);if(o&&l.length>0&&l.map(function(e){return o[e]}).every(Boolean))throw Error("Can not register Player component after player has been created.")}return e.components_[t]=i,e.components_[tO(t)]=i,i},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function tj(e,t,i,n){return!function(e,t,i){if("number"!=typeof t||t<0||t>i)throw Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").")}(e,n,i.length-1),i[n][t]}function tH(e){var t;return t=void 0===e||0===e.length?{length:0,start:function(){throw Error("This TimeRanges object is empty")},end:function(){throw Error("This TimeRanges object is empty")}}:{length:e.length,start:tj.bind(null,"start",0,e),end:tj.bind(null,"end",1,e)},m().Symbol&&m().Symbol.iterator&&(t[m().Symbol.iterator]=function(){return(e||[]).values()}),t}function tq(e,t){return Array.isArray(e)?tH(e):void 0===e||void 0===t?tH():tH([[e,t]])}function tV(e,t){var i,n,r=0;if(!t)return 0;e&&e.length||(e=tq(0,0));for(var a=0;at&&(n=t),r+=n-i;return r/t}function tW(e){if(e instanceof tW)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:er(e)&&("number"==typeof e.code&&(this.code=e.code),en(this,e)),this.message||(this.message=tW.defaultMessages[this.code]||"")}tF.prototype.supportsRaf_="function"==typeof m().requestAnimationFrame&&"function"==typeof m().cancelAnimationFrame,tF.registerComponent("Component",tF),tW.prototype.code=0,tW.prototype.message="",tW.prototype.status=null,tW.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],tW.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var tz=0;tz=0;n--)if(t[n].enabled){t0(t,t[n]);break}return(i=e.call(this,t)||this).changing_=!1,i}(0,S.Z)(t,e);var i=t.prototype;return i.addTrack=function(t){var i=this;t.enabled&&t0(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){i.changing_||(i.changing_=!0,t0(i,t),i.changing_=!1,i.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},i.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(t$),t2=function(e,t){for(var i=0;i=0;n--)if(t[n].selected){t2(t,t[n]);break}return(i=e.call(this,t)||this).changing_=!1,Object.defineProperty((0,b.Z)(i),"selectedIndex",{get:function(){for(var e=0;e0&&(m().console&&m().console.groupCollapsed&&m().console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach(function(e){return $.error(e)}),m().console&&m().console.groupEnd&&m().console.groupEnd()),i.flush()},iu=function(e,t){var i={uri:e},n=is(e);n&&(i.cors=n);var r="use-credentials"===t.tech_.crossOrigin();r&&(i.withCredentials=r),w()(i,tm(this,function(e,i,n){if(e)return $.error(e,i);t.loaded_=!0,"function"!=typeof m().WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],function(e){if("vttjserror"===e.type){$.error("vttjs failed to load, stopping trying to process "+t.src);return}return il(n,t)}):il(n,t)}))},id=function(e){function t(t){if(void 0===t&&(t={}),!t.tech)throw Error("A tech was not provided.");var i,n=tM(t,{kind:t9[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=ie[n.mode]||"disabled",a=n.default;("metadata"===n.kind||"chapters"===n.kind)&&(r="hidden"),(i=e.call(this,n)||this).tech_=n.tech,i.cues_=[],i.activeCues_=[],i.preload_=!1!==i.tech_.preloadTextTracks;var s=new t3(i.cues_),o=new t3(i.activeCues_),l=!1;return i.timeupdateHandler=tm((0,b.Z)(i),function(e){if(void 0===e&&(e={}),!this.tech_.isDisposed()){if(!this.tech_.isReady_){"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}}),i.tech_.one("dispose",function(){i.stopTracking()}),"disabled"!==r&&i.startTracking(),Object.defineProperties((0,b.Z)(i),{default:{get:function(){return a},set:function(){}},mode:{get:function(){return r},set:function(e){ie[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||iu(this.src,this),this.stopTracking(),"disabled"!==r&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?s:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return o;for(var e=this.tech_.currentTime(),t=[],i=0,n=this.cues.length;i=e?t.push(r):r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e&&t.push(r)}if(l=!1,t.length!==this.activeCues_.length)l=!0;else for(var a=0;a0){this.trigger("vttjsloaded");return}var t=_().createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),m().WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)}},i.emulateTextTracks=function(){var e=this,t=this.textTracks(),i=this.remoteTextTracks(),n=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};i.on("addtrack",n),i.on("removetrack",r),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},s=function(){a();for(var e=0;e=0;r--){var a=e[r];a[t]&&a[t](n,i)}}(e,i,o,s),o}var ik={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},iC={setCurrentTime:1,setMuted:1,setVolume:1},iE={play:1,pause:1};function iw(e){return function(t,i){return t===ib?ib:i[e]?i[e](t):t}}var iI={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},ix=function(e){return void 0===e&&(e=""),iI[ia(e).toLowerCase()]||""},iP=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var i=e.cache_.sources.filter(function(e){return e.src===t});if(i.length)return i[0].type;for(var n=e.$$("source"),r=0;r0;this.player_.tech(!0)&&!((ey||eg)&&t)&&this.player_.tech(!0).focus(),this.player_.paused()?tK(this.player_.play()):this.player_.pause()}},t}(iD);tF.registerComponent("PosterImage",iM);var iR="#222",iU="#ccc",iB={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function iN(e,t){var i;if(4===e.length)i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else if(7===e.length)i=e.slice(1);else throw Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function iF(e,t,i){try{e.style[t]=i}catch(n){return}}var ij=function(e){function t(t,i,n){r=e.call(this,t,i,n)||this;var r,a=function(e){return r.updateDisplay(e)};return t.on("loadstart",function(e){return r.toggleDisplay(e)}),t.on("texttrackchange",a),t.on("loadedmetadata",function(e){return r.preselectTrack(e)}),t.ready(tm((0,b.Z)(r),function(){if(t.tech_&&t.tech_.featuresNativeTextTracks){this.hide();return}t.on("fullscreenchange",a),t.on("playerresize",a),m().addEventListener("orientationchange",a),t.on("dispose",function(){return m().removeEventListener("orientationchange",a)});for(var e=this.options_.playerOptions.tracks||[],i=0;i0;tK(t),this.player_.tech(!0)&&!((ey||eg)&&i)&&this.player_.tech(!0).focus();return}var n=this.player_.getChild("controlBar"),r=n&&n.getChild("playToggle");if(!r){this.player_.tech(!0).focus();return}var a=function(){return r.focus()};tG(t)?t.then(a,function(){}):this.setTimeout(a,1)},i.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},i.handleMouseDown=function(e){this.mouseused_=!0},t}(iq);iV.prototype.controlText_="Play Video",tF.registerComponent("BigPlayButton",iV);var iW=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).controlText(i&&i.controlText||n.localize("Close")),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},i.handleKeyDown=function(t){T().isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(iq);tF.registerComponent("CloseButton",iW);var iz=function(e){function t(t,i){var n;return void 0===i&&(i={}),n=e.call(this,t,i)||this,i.replay=void 0===i.replay||i.replay,n.on(t,"play",function(e){return n.handlePlay(e)}),n.on(t,"pause",function(e){return n.handlePause(e)}),i.replay&&n.on(t,"ended",function(e){return n.handleEnded(e)}),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){this.player_.paused()?tK(this.player_.play()):this.player_.pause()},i.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},i.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},i.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},i.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",function(e){return t.handleSeeked(e)})},t}(iq);iz.prototype.controlText_="Play",tF.registerComponent("PlayToggle",iz);var iG=function(e,t){var i=Math.floor((e=e<0?0:e)%60),n=Math.floor(e/60%60),r=Math.floor(e/3600);return(isNaN(e)||e===1/0)&&(r=n=i="-"),n=(((r=r>0||Math.floor(t/3600)>0?r+":":"")||Math.floor(t/60%60)>=10)&&n<10?"0"+n:n)+":",r+n+(i=i<10?"0"+i:i)},iK=iG;function iZ(e,t){return void 0===t&&(t=e),iK(e,t)}var iQ=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,["timeupdate","ended"],function(e){return n.updateContent(e)}),n.updateTextNode_(),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){var t=this.buildCSSClass(),i=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),n=eM("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+"\xa0"},{role:"presentation"});return i.appendChild(n),this.contentEl_=eM("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),i.appendChild(this.contentEl_),i},i.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},i.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=iZ(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,$.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=_().createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}}))},i.updateContent=function(e){},t}(tF);iQ.prototype.labelText_="Time",iQ.prototype.controlText_="Time",tF.registerComponent("TimeDisplay",iQ);var iX=function(e){function t(){return e.apply(this,arguments)||this}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-current-time"},i.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(iQ);iX.prototype.labelText_="Current Time",iX.prototype.controlText_="Current Time",tF.registerComponent("CurrentTimeDisplay",iX);var iY=function(e){function t(t,i){n=e.call(this,t,i)||this;var n,r=function(e){return n.updateContent(e)};return n.on(t,"durationchange",r),n.on(t,"loadstart",r),n.on(t,"loadedmetadata",r),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-duration"},i.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(iQ);iY.prototype.labelText_="Duration",iY.prototype.controlText_="Duration",tF.registerComponent("DurationDisplay",iY);var i$=function(e){function t(){return e.apply(this,arguments)||this}return(0,S.Z)(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),i=e.prototype.createEl.call(this,"div"),n=e.prototype.createEl.call(this,"span",{textContent:"/"});return i.appendChild(n),t.appendChild(i),t},t}(tF);tF.registerComponent("TimeDivider",i$);var iJ=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,"durationchange",function(e){return n.updateContent(e)}),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-remaining-time"},i.createEl=function(){var t=e.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&t.insertBefore(eM("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},i.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(iQ);iJ.prototype.labelText_="Remaining Time",iJ.prototype.controlText_="Remaining Time",tF.registerComponent("RemainingTimeDisplay",iJ);var i0=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).updateShowing(),n.on(n.player(),"durationchange",function(e){return n.updateShowing(e)}),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=eM("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(eM("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+"\xa0"})),this.contentEl_.appendChild(_().createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},i.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},i.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(tF);tF.registerComponent("LiveDisplay",i0);var i1=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).updateLiveEdgeStatus(),n.player_.liveTracker&&(n.updateLiveEdgeStatusHandler_=function(e){return n.updateLiveEdgeStatus(e)},n.on(n.player_.liveTracker,"liveedgechange",n.updateLiveEdgeStatusHandler_)),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=eM("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},i.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},i.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},i.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(iq);i1.prototype.controlText_="Seek to live, currently playing live",tF.registerComponent("SeekToLive",i1);var i2=function(e,t,i){return Math.min(i,Math.max(t,isNaN(e=Number(e))?t:e))},i8=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).handleMouseDown_=function(e){return n.handleMouseDown(e)},n.handleMouseUp_=function(e){return n.handleMouseUp(e)},n.handleKeyDown_=function(e){return n.handleKeyDown(e)},n.handleClick_=function(e){return n.handleClick(e)},n.handleMouseMove_=function(e){return n.handleMouseMove(e)},n.update_=function(e){return n.update(e)},n.bar=n.getChild(n.options_.barName),n.vertical(!!n.options_.vertical),n.enable(),n}(0,S.Z)(t,e);var i=t.prototype;return i.enabled=function(){return this.enabled_},i.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},i.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},i.createEl=function(t,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),i.className=i.className+" vjs-slider",i=en({tabIndex:0},i),n=en({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n),e.prototype.createEl.call(this,t,i,n)},i.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||e_||e.preventDefault(),eG(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)},i.handleMouseMove=function(e){},i.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;eK(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},i.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",function(){var i=e.vertical()?"height":"width";e.bar.el().style[i]=(100*t).toFixed(2)+"%"})),t}},i.getProgress=function(){return Number(i2(this.getPercent(),0,1).toFixed(4))},i.calculateDistance=function(e){var t=eX(this.el_,e);return this.vertical()?t.y:t.x},i.handleKeyDown=function(t){T().isEventKey(t,"Left")||T().isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):T().isEventKey(t,"Right")||T().isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},i.handleClick=function(e){e.stopPropagation(),e.preventDefault()},i.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(tF);tF.registerComponent("Slider",i8);var i4=function(e,t){return i2(e/t*100,0,100).toFixed(2)+"%"},i5=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).partEls_=[],n.on(t,"progress",function(e){return n.update(e)}),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),i=eM("span",{className:"vjs-control-text"}),n=eM("span",{textContent:this.localize("Loaded")}),r=_().createTextNode(": ");return this.percentageEl_=eM("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(i),i.appendChild(n),i.appendChild(r),i.appendChild(this.percentageEl_),t},i.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},i.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=t.player_.liveTracker,i=t.player_.buffered(),n=e&&e.isLive()?e.seekableEnd():t.player_.duration(),r=t.player_.bufferedEnd(),a=t.partEls_,s=i4(r,n);t.percent_!==s&&(t.el_.style.width=s,eR(t.percentageEl_,s),t.percent_=s);for(var o=0;oi.length;c--)t.el_.removeChild(a[c-1]);a.length=i.length})},t}(tF);tF.registerComponent("LoadProgressBar",i5);var i3=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=tg(tm((0,b.Z)(n),n.update),30),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},i.update=function(e,t,i){var n=eQ(this.el_),r=eZ(this.player_.el()),a=e.width*t;if(r&&n){var s=e.left-r.left+a,o=e.width-a+(r.right-e.right),l=n.width/2;sn.width&&(l=n.width),l=Math.round(l),this.el_.style.right="-"+l+"px",this.write(i)}},i.write=function(e){eR(this.el_,e)},i.updateTime=function(e,t,i,n){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var a,s=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var o=r.player_.liveTracker.liveWindow(),l=o-t*o;a=(l<1?"":"-")+iZ(l,o)}else a=iZ(i,s);r.update(e,t,a),n&&n()})},t}(tF);tF.registerComponent("TimeTooltip",i3);var i6=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=tg(tm((0,b.Z)(n),n.update),30),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},i.update=function(e,t){var i=this.getChild("timeTooltip");if(i){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,t,n)}},t}(tF);i6.prototype.options_={children:[]},eE||eh||i6.prototype.options_.children.push("timeTooltip"),tF.registerComponent("PlayProgressBar",i6);var i7=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=tg(tm((0,b.Z)(n),n.update),30),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},i.update=function(e,t){var i=this,n=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,n,function(){i.el_.style.left=e.width*t+"px"})},t}(tF);i7.prototype.options_={children:["timeTooltip"]},tF.registerComponent("MouseTimeDisplay",i7);var i9=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).setEventHandlers_(),n}(0,S.Z)(t,e);var i=t.prototype;return i.setEventHandlers_=function(){var e=this;this.update_=tm(this,this.update),this.update=tg(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in _()&&"visibilityState"in _()&&this.on(_(),"visibilitychange",this.toggleVisibility_)},i.toggleVisibility_=function(e){"hidden"===_().visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},i.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},i.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||!this.updateInterval||(this.clearInterval(this.updateInterval),this.updateInterval=null)},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},i.update=function(t){var i=this;if("hidden"!==_().visibilityState){var n=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var e=i.player_.ended()?i.player_.duration():i.getCurrentTime_(),t=i.player_.liveTracker,r=i.player_.duration();t&&t.isLive()&&(r=i.player_.liveTracker.liveCurrentTime()),i.percent_!==n&&(i.el_.setAttribute("aria-valuenow",(100*n).toFixed(2)),i.percent_=n),(i.currentTime_!==e||i.duration_!==r)&&(i.el_.setAttribute("aria-valuetext",i.localize("progress bar timing: currentTime={1} duration={2}",[iZ(e,r),iZ(r,r)],"{1} of {2}")),i.currentTime_=e,i.duration_=r),i.bar&&i.bar.update(eZ(i.el()),i.getProgress())}),n}},i.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},i.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},i.getPercent=function(){var e,t=this.getCurrentTime_(),i=this.player_.liveTracker;return i&&i.isLive()?(e=(t-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},i.handleMouseDown=function(t){e2(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},i.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),e2(e)){t||this.player_.scrubbing()||this.player_.scrubbing(!0);var i,n=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(n>=.99){r.seekToLiveEdge();return}var a=r.seekableStart(),s=r.liveCurrentTime();if((i=a+n*r.liveWindow())>=s&&(i=s),i<=a&&(i=a+.1),i===1/0)return}else(i=n*this.player_.duration())===this.player_.duration()&&(i-=.1);this.userSeek_(i)}},i.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},i.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},i.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?tK(this.player_.play()):this.update_()},i.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},i.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},i.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},i.handleKeyDown=function(t){var i=this.player_.liveTracker;if(T().isEventKey(t,"Space")||T().isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(T().isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(T().isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),i&&i.isLive()?this.userSeek_(i.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(T()(t))){t.preventDefault(),t.stopPropagation();var n=(T().codes[T()(t)]-T().codes[0])*10/100;i&&i.isLive()?this.userSeek_(i.seekableStart()+i.liveWindow()*n):this.userSeek_(this.player_.duration()*n)}else T().isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):T().isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},i.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in _()&&"visibilityState"in _()&&this.off(_(),"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(i8);i9.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},eE||eh||i9.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),tF.registerComponent("SeekBar",i9);var ne=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).handleMouseMove=tg(tm((0,b.Z)(n),n.handleMouseMove),30),n.throttledHandleMouseSeek=tg(tm((0,b.Z)(n),n.handleMouseSeek),30),n.handleMouseUpHandler_=function(e){return n.handleMouseUp(e)},n.handleMouseDownHandler_=function(e){return n.handleMouseDown(e)},n.enable(),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},i.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var i=t.getChild("playProgressBar"),n=t.getChild("mouseTimeDisplay");if(i||n){var r=t.el(),a=eQ(r),s=eX(r,e).x;s=i2(s,0,1),n&&n.update(a,s),i&&i.update(a,t.getProgress())}}},i.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},i.enabled=function(){return this.enabled_},i.disable=function(){if(this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&tK(this.player_.play())}},i.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},i.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},i.handleMouseDown=function(e){var t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},i.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(tF);ne.prototype.options_={children:["seekBar"]},tF.registerComponent("ProgressControl",ne);var nt=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,["enterpictureinpicture","leavepictureinpicture"],function(e){return n.handlePictureInPictureChange(e)}),n.on(t,["disablepictureinpicturechanged","loadedmetadata"],function(e){return n.handlePictureInPictureEnabledChange(e)}),n.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],function(){"audio"===t.currentType().substring(0,5)||t.audioPosterMode()||t.audioOnlyMode()?(t.isInPictureInPicture()&&t.exitPictureInPicture(),n.hide()):n.show()}),n.disable(),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},i.handlePictureInPictureEnabledChange=function(){_().pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},i.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},i.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(iq);nt.prototype.controlText_="Picture-in-Picture",tF.registerComponent("PictureInPictureToggle",nt);var ni=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,"fullscreenchange",function(e){return n.handleFullscreenChange(e)}),!1===_()[t.fsApi_.fullscreenEnabled]&&n.disable(),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},i.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},i.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(iq);ni.prototype.controlText_="Fullscreen",tF.registerComponent("FullscreenToggle",ni);var nn=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},nr=function(e){function t(){return e.apply(this,arguments)||this}return(0,S.Z)(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(tF);tF.registerComponent("VolumeLevel",nr);var na=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=tg(tm((0,b.Z)(n),n.update),30),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},i.update=function(e,t,i,n){if(!i){var r=eZ(this.el_),a=eZ(this.player_.el()),s=e.width*t;if(!a||!r)return;var o=e.left-a.left+s,l=e.width-s+(a.right-e.right),u=r.width/2;or.width&&(u=r.width),this.el_.style.right="-"+u+"px"}this.write(n+"%")},i.write=function(e){eR(this.el_,e)},i.updateVolume=function(e,t,i,n,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){a.update(e,t,i,n.toFixed(0)),r&&r()})},t}(tF);tF.registerComponent("VolumeLevelTooltip",na);var ns=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=tg(tm((0,b.Z)(n),n.update),30),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},i.update=function(e,t,i){var n=this;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,100*t,function(){i?n.el_.style.bottom=e.height*t+"px":n.el_.style.left=e.width*t+"px"})},t}(tF);ns.prototype.options_={children:["volumeLevelTooltip"]},tF.registerComponent("MouseVolumeLevelDisplay",ns);var no=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on("slideractive",function(e){return n.updateLastVolume_(e)}),n.on(t,"volumechange",function(e){return n.updateARIAAttributes(e)}),t.ready(function(){return n.updateARIAAttributes()}),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},i.handleMouseDown=function(t){e2(t)&&e.prototype.handleMouseDown.call(this,t)},i.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var i=this.el(),n=eZ(i),r=this.vertical(),a=eX(i,e);a=i2(a=r?a.y:a.x,0,1),t.update(n,a,r)}e2(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},i.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},i.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},i.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},i.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},i.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},i.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},i.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},t}(i8);no.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},eE||eh||no.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),no.prototype.playerEvent="volumechange",tF.registerComponent("VolumeBar",no);var nl=function(e){function t(t,i){var n;return void 0===i&&(i={}),i.vertical=i.vertical||!1,(void 0===i.volumeBar||ea(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical),n=e.call(this,t,i)||this,nn((0,b.Z)(n),t),n.throttledHandleMouseMove=tg(tm((0,b.Z)(n),n.handleMouseMove),30),n.handleMouseUpHandler_=function(e){return n.handleMouseUp(e)},n.on("mousedown",function(e){return n.handleMouseDown(e)}),n.on("touchstart",function(e){return n.handleMouseDown(e)}),n.on("mousemove",function(e){return n.handleMouseMove(e)}),n.on(n.volumeBar,["focus","slideractive"],function(){n.volumeBar.addClass("vjs-slider-active"),n.addClass("vjs-slider-active"),n.trigger("slideractive")}),n.on(n.volumeBar,["blur","sliderinactive"],function(){n.volumeBar.removeClass("vjs-slider-active"),n.removeClass("vjs-slider-active"),n.trigger("sliderinactive")}),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},i.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},i.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},i.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(tF);nl.prototype.options_={children:["volumeBar"]},tF.registerComponent("VolumeControl",nl);var nu=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},nd=function(e){function t(t,i){var n;return n=e.call(this,t,i)||this,nu((0,b.Z)(n),t),n.on(t,["loadstart","volumechange"],function(e){return n.update(e)}),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){var t=this.player_.volume(),i=this.player_.lastVolume_();0===t?(this.player_.volume(i<.1?.1:i),this.player_.muted(!1)):this.player_.muted(!this.player_.muted())},i.update=function(e){this.updateIcon_(),this.updateControlText_()},i.updateIcon_=function(){var e=this.player_.volume(),t=3;eE&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var i=0;i<4;i++)eF(this.el_,"vjs-vol-"+i);eN(this.el_,"vjs-vol-"+t)},i.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(iq);nd.prototype.controlText_="Mute",tF.registerComponent("MuteToggle",nd);var nc=function(e){function t(t,i){var n;return void 0===i&&(i={}),void 0!==i.inline?i.inline=i.inline:i.inline=!0,(void 0===i.volumeControl||ea(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline),(n=e.call(this,t,i)||this).handleKeyPressHandler_=function(e){return n.handleKeyPress(e)},n.on(t,["loadstart"],function(e){return n.volumePanelState_(e)}),n.on(n.muteToggle,"keyup",function(e){return n.handleKeyPress(e)}),n.on(n.volumeControl,"keyup",function(e){return n.handleVolumeControlKeyUp(e)}),n.on("keydown",function(e){return n.handleKeyPress(e)}),n.on("mouseover",function(e){return n.handleMouseOver(e)}),n.on("mouseout",function(e){return n.handleMouseOut(e)}),n.on(n.volumeControl,["slideractive"],n.sliderActive_),n.on(n.volumeControl,["sliderinactive"],n.sliderInactive_),n}(0,S.Z)(t,e);var i=t.prototype;return i.sliderActive_=function(){this.addClass("vjs-slider-active")},i.sliderInactive_=function(){this.removeClass("vjs-slider-active")},i.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},i.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},i.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},i.handleVolumeControlKeyUp=function(e){T().isEventKey(e,"Esc")&&this.muteToggle.focus()},i.handleMouseOver=function(e){this.addClass("vjs-hover"),tu(_(),"keyup",this.handleKeyPressHandler_)},i.handleMouseOut=function(e){this.removeClass("vjs-hover"),td(_(),"keyup",this.handleKeyPressHandler_)},i.handleKeyPress=function(e){T().isEventKey(e,"Esc")&&this.handleMouseOut()},t}(tF);nc.prototype.options_={children:["muteToggle","volumeControl"]},tF.registerComponent("VolumePanel",nc);var nh=function(e){function t(t,i){var n;return n=e.call(this,t,i)||this,i&&(n.menuButton_=i.menuButton),n.focusedChild_=-1,n.on("keydown",function(e){return n.handleKeyDown(e)}),n.boundHandleBlur_=function(e){return n.handleBlur(e)},n.boundHandleTapClick_=function(e){return n.handleTapClick(e)},n}(0,S.Z)(t,e);var i=t.prototype;return i.addEventListenerForItem=function(e){e instanceof tF&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},i.removeEventListenerForItem=function(e){e instanceof tF&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},i.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},i.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},i.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=eM(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var i=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return i.appendChild(this.contentEl_),tu(i,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),i},i.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},i.handleBlur=function(e){var t=e.relatedTarget||_().activeElement;if(!this.children().some(function(e){return e.el()===t})){var i=this.menuButton_;i&&i.buttonPressed_&&t!==i.el().firstChild&&i.unpressButton()}},i.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(Array.isArray(t)){var i=t.filter(function(t){return t.el()===e.target})[0];i&&"CaptionSettingsMenuItem"!==i.name()&&this.menuButton_.focus()}}},i.handleKeyDown=function(e){T().isEventKey(e,"Left")||T().isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(T().isEventKey(e,"Right")||T().isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},i.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},i.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},i.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(tF);tF.registerComponent("Menu",nh);var np=function(e){function t(t,i){void 0===i&&(i={}),(n=e.call(this,t,i)||this).menuButton_=new iq(t,i),n.menuButton_.controlText(n.controlText_),n.menuButton_.el_.setAttribute("aria-haspopup","true");var n,r=iq.prototype.buildCSSClass();n.menuButton_.el_.className=n.buildCSSClass()+" "+r,n.menuButton_.removeClass("vjs-control"),n.addChild(n.menuButton_),n.update(),n.enabled_=!0;var a=function(e){return n.handleClick(e)};return n.handleMenuKeyUp_=function(e){return n.handleMenuKeyUp(e)},n.on(n.menuButton_,"tap",a),n.on(n.menuButton_,"click",a),n.on(n.menuButton_,"keydown",function(e){return n.handleKeyDown(e)}),n.on(n.menuButton_,"mouseenter",function(){n.addClass("vjs-hover"),n.menu.show(),tu(_(),"keyup",n.handleMenuKeyUp_)}),n.on("mouseleave",function(e){return n.handleMouseLeave(e)}),n.on("keydown",function(e){return n.handleSubmenuKeyDown(e)}),n}(0,S.Z)(t,e);var i=t.prototype;return i.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},i.createMenu=function(){var e=new nh(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=eM("li",{className:"vjs-menu-title",textContent:tD(this.options_.title),tabIndex:-1}),i=new tF(this.player_,{el:t});e.addItem(i)}if(this.items=this.createItems(),this.items)for(var n=0;n-1&&"showing"===a.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)},i.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n-1&&"showing"===a.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(n_);tF.registerComponent("OffTextTrackMenuItem",nv);var ny=function(e){function t(t,i){return void 0===i&&(i={}),i.tracks=t.textTracks(),e.call(this,t,i)||this}return(0,S.Z)(t,e),t.prototype.createItems=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=n_),this.label_&&(i=this.label_+" off"),e.push(new nv(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;var i,n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r-1){var s=new t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+a.kind+"-menu-item"),e.push(s)}}return e},t}(nf);tF.registerComponent("TextTrackButton",ny);var nT=function(e){function t(t,i){var n,r=i.track,a=i.cue,s=t.currentTime();return i.selectable=!0,i.multiSelectable=!1,i.label=a.text,i.selected=a.startTime<=s&&s=0;t--){var i=e[t];if(i.kind===this.kind_)return i}},i.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(tD(this.kind_))},i.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},i.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var i=0,n=t.length;i-1&&(n.label_="captions"),n.menuButton_.controlText(tD(n.label_)),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},i.createItems=function(){var t=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(t.push(new nC(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,nw)},t}(ny);nI.prototype.kinds_=["captions","subtitles"],nI.prototype.controlText_="Subtitles",tF.registerComponent("SubsCapsButton",nI);var nx=function(e){function t(t,i){var n,r=i.track,a=t.audioTracks();i.label=r.label||r.language||"Unknown",i.selected=r.enabled,(n=e.call(this,t,i)||this).track=r,n.addClass("vjs-"+r.kind+"-menu-item");var s=function(){for(var e=arguments.length,t=Array(e),i=0;i=0;i--)t.push(new nA(this.player(),{rate:e[i]+"x"}));return t},i.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},i.handleClick=function(e){var t=this.player().playbackRate(),i=this.playbackRates(),n=(i.indexOf(t)+1)%i.length;this.player().playbackRate(i[n])},i.handlePlaybackRateschange=function(e){this.update()},i.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},i.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},i.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},i.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(np);nL.prototype.controlText_="Playback Rate",tF.registerComponent("PlaybackRateMenuButton",nL);var nO=function(e){function t(){return e.apply(this,arguments)||this}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(t,i,n){return void 0===t&&(t="div"),void 0===i&&(i={}),void 0===n&&(n={}),i.className||(i.className=this.buildCSSClass()),e.prototype.createEl.call(this,t,i,n)},t}(tF);tF.registerComponent("Spacer",nO);var nD=function(e){function t(){return e.apply(this,arguments)||this}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:"\xa0"})},t}(nO);tF.registerComponent("CustomControlSpacer",nD);var nM=function(e){function t(){return e.apply(this,arguments)||this}return(0,S.Z)(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(tF);nM.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in _()&&nM.prototype.options_.children.splice(nM.prototype.options_.children.length-1,0,"pictureInPictureToggle"),tF.registerComponent("ControlBar",nM);var nR=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,"error",function(e){return n.open(e)}),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},i.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(tY);nR.prototype.options_=(0,v.Z)({},tY.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),tF.registerComponent("ErrorDisplay",nR);var nU="vjs-text-track-settings",nB=["#000","Black"],nN=["#00F","Blue"],nF=["#0FF","Cyan"],nj=["#0F0","Green"],nH=["#F0F","Magenta"],nq=["#F00","Red"],nV=["#FFF","White"],nW=["#FF0","Yellow"],nz=["1","Opaque"],nG=["0.5","Semi-Transparent"],nK=["0","Transparent"],nZ={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[nB,nV,nq,nj,nN,nW,nH,nF]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[nz,nG,nK]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[nV,nB,nq,nj,nN,nW,nH,nF]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[nz,nG]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[nK,nG,nz]}};function nQ(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}nZ.windowColor.options=nZ.backgroundColor.options;var nX=function(e){function t(t,i){var n;return i.temporary=!1,(n=e.call(this,t,i)||this).updateDisplay=n.updateDisplay.bind((0,b.Z)(n)),n.fill(),n.hasBeenOpened_=n.hasBeenFilled_=!0,n.endDialog=eM("p",{className:"vjs-control-text",textContent:n.localize("End of dialog window.")}),n.el().appendChild(n.endDialog),n.setDefaults(),void 0===i.persistTextTrackSettings&&(n.options_.persistTextTrackSettings=n.options_.playerOptions.persistTextTrackSettings),n.on(n.$(".vjs-done-button"),"click",function(){n.saveSettings(),n.close()}),n.on(n.$(".vjs-default-button"),"click",function(){n.setDefaults(),n.updateDisplay()}),ei(nZ,function(e){n.on(n.$(e.selector),"change",n.updateDisplay)}),n.options_.persistTextTrackSettings&&n.restoreSettings(),n}(0,S.Z)(t,e);var i=t.prototype;return i.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},i.createElSelect_=function(e,t,i){var n=this;void 0===t&&(t=""),void 0===i&&(i="label");var r=nZ[e],a=r.id.replace("%s",this.id_),s=[t,a].join(" ").trim();return["<"+i+' id="'+a+'" class="'+("label"===i?"vjs-label":"")+'">',this.localize(r.label),"",'").join("")},i.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['
','',this.localize("Text"),"",this.createElSelect_("color",e),'',this.createElSelect_("textOpacity",e),"","
"].join("")},i.createElBgColor_=function(){var e="captions-background-"+this.id_;return['
','',this.localize("Background"),"",this.createElSelect_("backgroundColor",e),'',this.createElSelect_("backgroundOpacity",e),"","
"].join("")},i.createElWinColor_=function(){var e="captions-window-"+this.id_;return['
','',this.localize("Window"),"",this.createElSelect_("windowColor",e),'',this.createElSelect_("windowOpacity",e),"","
"].join("")},i.createElColors_=function(){return eM("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},i.createElFont_=function(){return eM("div",{className:"vjs-track-settings-font",innerHTML:['
',this.createElSelect_("fontPercent","","legend"),"
",'
',this.createElSelect_("edgeStyle","","legend"),"
",'
',this.createElSelect_("fontFamily","","legend"),"
"].join("")})},i.createElControls_=function(){var e=this.localize("restore all settings to the default values");return eM("div",{className:"vjs-track-settings-controls",innerHTML:['",'"].join("")})},i.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},i.label=function(){return this.localize("Caption Settings Dialog")},i.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},i.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},i.getValues=function(){var e,t=this;return e=function(e,i,n){var r,a,s=(r=t.$(i.selector),a=i.parser,nQ(r.options[r.options.selectedIndex].value,a));return void 0!==s&&(e[n]=s),e},et(nZ).reduce(function(t,i){return e(t,nZ[i],i)},{})},i.setValues=function(e){var t=this;ei(nZ,function(i,n){!function(e,t,i){if(t){for(var n=0;nthis.options_.liveTolerance;this.timeupdateSeen_&&n!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}},i.handleDurationchange=function(){this.toggleTracking()},i.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},i.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},i.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},i.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},i.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},i.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},i.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},i.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},i.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0},i.seekableStart=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0},i.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},i.isLive=function(){return this.isTracking()},i.atLiveEdge=function(){return!this.behindLiveEdge()},i.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},i.pastSeekEnd=function(){var e=this.seekableEnd();return -1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},i.behindLiveEdge=function(){return this.behindLiveEdge_},i.isTracking=function(){return"number"==typeof this.trackingInterval_},i.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},i.dispose=function(){this.off(_(),"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(tF);tF.registerComponent("LiveTracker",nJ);var n0=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var i=e.$$("source"),n=[],r="";if(!i.length)return!1;for(var a=0;a=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(e){this.trigger(e)},this)})}},i.setScrubbing=function(e){this.isScrubbing_=e},i.scrubbing=function(){return this.isScrubbing_},i.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&ew?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){$(t,"Video is not ready. (Video.js)")}},i.duration=function(){var e=this;return this.el_.duration===1/0&&eh&&e_&&0===this.el_.currentTime?(this.on("timeupdate",function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))}),NaN):this.el_.duration||NaN},i.width=function(){return this.el_.offsetWidth},i.height=function(){return this.el_.offsetHeight},i.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},i=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",i),this.on("dispose",function(){e.off("webkitbeginfullscreen",i),e.off("webkitendfullscreen",t)})}},i.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=m().navigator&&m().navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},i.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)tK(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},0);else try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},i.exitFullScreen=function(){if(!this.el_.webkitDisplayingFullscreen){this.trigger("fullscreenerror",Error("The video is not fullscreen"));return}this.el_.webkitExitFullScreen()},i.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},i.requestVideoFrameCallback=function(t){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(t):e.prototype.requestVideoFrameCallback.call(this,t)},i.cancelVideoFrameCallback=function(t){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(t):e.prototype.cancelVideoFrameCallback.call(this,t)},i.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},i.reset=function(){t.resetMediaElement(this.el_)},i.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},i.setControls=function(e){this.el_.controls=!!e},i.addTextTrack=function(t,i,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,i,n):e.prototype.addTextTrack.call(this,t,i,n)},i.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var i=_().createElement("track");return t.kind&&(i.kind=t.kind),t.label&&(i.label=t.label),(t.language||t.srclang)&&(i.srclang=t.language||t.srclang),t.default&&(i.default=t.default),t.id&&(i.id=t.id),t.src&&(i.src=t.src),i},i.addRemoteTextTrack=function(t,i){var n=e.prototype.addRemoteTextTrack.call(this,t,i);return this.featuresNativeTextTracks&&this.el().appendChild(n),n},i.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var i=this.$$("track"),n=i.length;n--;)(t===i[n]||t===i[n].track)&&this.el().removeChild(i[n])},i.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),m().performance&&"function"==typeof m().performance.now?e.creationTime=m().performance.now():m().performance&&m().performance.timing&&"number"==typeof m().performance.timing.navigationStart&&(e.creationTime=m().Date.now()-m().performance.timing.navigationStart),e},t}(iv);n3(n6,"TEST_VID",function(){if(eA()){var e=_().createElement("video"),t=_().createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}}),n6.isSupported=function(){try{n6.TEST_VID.volume=.5}catch(e){return!1}return!!(n6.TEST_VID&&n6.TEST_VID.canPlayType)},n6.canPlayType=function(e){return n6.TEST_VID.canPlayType(e)},n6.canPlaySource=function(e,t){return n6.canPlayType(e.type)},n6.canControlVolume=function(){try{var e=n6.TEST_VID.volume;n6.TEST_VID.volume=e/2+.1;var t=e!==n6.TEST_VID.volume;if(t&&eE)return m().setTimeout(function(){n6&&n6.prototype&&(n6.prototype.featuresVolumeControl=e!==n6.TEST_VID.volume)}),!1;return t}catch(i){return!1}},n6.canMuteVolume=function(){try{var e=n6.TEST_VID.muted;return n6.TEST_VID.muted=!e,n6.TEST_VID.muted?eW(n6.TEST_VID,"muted","muted"):ez(n6.TEST_VID,"muted","muted"),e!==n6.TEST_VID.muted}catch(t){return!1}},n6.canControlPlaybackRate=function(){if(eh&&e_&&ev<58)return!1;try{var e=n6.TEST_VID.playbackRate;return n6.TEST_VID.playbackRate=e/2+.1,e!==n6.TEST_VID.playbackRate}catch(t){return!1}},n6.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(_().createElement("video"),"src",{get:e,set:e}),Object.defineProperty(_().createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(_().createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(_().createElement("audio"),"innerHTML",{get:e,set:e})}catch(t){return!1}return!0},n6.supportsNativeTextTracks=function(){return ew||eE&&e_},n6.supportsNativeVideoTracks=function(){return!!(n6.TEST_VID&&n6.TEST_VID.videoTracks)},n6.supportsNativeAudioTracks=function(){return!!(n6.TEST_VID&&n6.TEST_VID.audioTracks)},n6.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(e){var t=e[0],i=e[1];n3(n6.prototype,t,function(){return n6[i]()},!0)}),n6.prototype.featuresVolumeControl=n6.canControlVolume(),n6.prototype.movingMediaElementInDOM=!eE,n6.prototype.featuresFullscreenResize=!0,n6.prototype.featuresProgressEvents=!0,n6.prototype.featuresTimeupdateEvents=!0,n6.prototype.featuresVideoFrameCallback=!!(n6.TEST_VID&&n6.TEST_VID.requestVideoFrameCallback),n6.patchCanPlayType=function(){!(ep>=4)||em||e_||(h=n6.TEST_VID&&n6.TEST_VID.constructor.prototype.canPlayType,n6.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":h.call(this,e)})},n6.unpatchCanPlayType=function(){var e=n6.TEST_VID.constructor.prototype.canPlayType;return h&&(n6.TEST_VID.constructor.prototype.canPlayType=h),e},n6.patchCanPlayType(),n6.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(t){}}()}},n6.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),i=t.length;i--;)e.removeChild(t[i]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){n6.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){n6.prototype["set"+tD(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){n6.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){n6.prototype["set"+tD(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){n6.prototype[e]=function(){return this.el_[e]()}}),iv.withSourceHandlers(n6),n6.nativeSourceHandler={},n6.nativeSourceHandler.canPlayType=function(e){try{return n6.TEST_VID.canPlayType(e)}catch(t){return""}},n6.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return n6.nativeSourceHandler.canPlayType(e.type);if(e.src){var i=ia(e.src);return n6.nativeSourceHandler.canPlayType("video/"+i)}return""},n6.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},n6.nativeSourceHandler.dispose=function(){},n6.registerSourceHandler(n6.nativeSourceHandler),iv.registerTech("Html5",n6);var n7=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],n9={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},re=["tiny","xsmall","small","medium","large","xlarge","huge"],rt={};re.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;rt[e]="vjs-layout-"+t});var ri={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},rn=function(e){function t(i,n,r){if(i.id=i.id||n.id||"vjs_video_"+ti++,(n=en(t.getTagSettings(i),n)).initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language){if("function"==typeof i.closest){var a,s=i.closest("[lang]");s&&s.getAttribute&&(n.language=s.getAttribute("lang"))}else for(var o=i;o&&1===o.nodeType;){if(eq(o).hasOwnProperty("lang")){n.language=o.getAttribute("lang");break}o=o.parentNode}}if((a=e.call(this,null,n,r)||this).boundDocumentFullscreenChange_=function(e){return a.documentFullscreenChange_(e)},a.boundFullWindowOnEscKey_=function(e){return a.fullWindowOnEscKey(e)},a.boundUpdateStyleEl_=function(e){return a.updateStyleEl_(e)},a.boundApplyInitTime_=function(e){return a.applyInitTime_(e)},a.boundUpdateCurrentBreakpoint_=function(e){return a.updateCurrentBreakpoint_(e)},a.boundHandleTechClick_=function(e){return a.handleTechClick_(e)},a.boundHandleTechDoubleClick_=function(e){return a.handleTechDoubleClick_(e)},a.boundHandleTechTouchStart_=function(e){return a.handleTechTouchStart_(e)},a.boundHandleTechTouchMove_=function(e){return a.handleTechTouchMove_(e)},a.boundHandleTechTouchEnd_=function(e){return a.handleTechTouchEnd_(e)},a.boundHandleTechTap_=function(e){return a.handleTechTap_(e)},a.isFullscreen_=!1,a.log=J(a.id_),a.fsApi_=G,a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!1,a.debugEnabled_=!1,a.audioOnlyMode_=!1,a.audioPosterMode_=!1,a.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!a.options_||!a.options_.techOrder||!a.options_.techOrder.length)throw Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(a.tag=i,a.tagAttributes=i&&eq(i),a.language(a.options_.language),n.languages){var l={};Object.getOwnPropertyNames(n.languages).forEach(function(e){l[e.toLowerCase()]=n.languages[e]}),a.languages_=l}else a.languages_=t.prototype.options_.languages;a.resetCache_(),a.poster_=n.poster||"",a.controls_=!!n.controls,i.controls=!1,i.removeAttribute("controls"),a.changingSrc_=!1,a.playCallbacks_=[],a.playTerminatedQueue_=[],i.hasAttribute("autoplay")?a.autoplay(!0):a.autoplay(a.options_.autoplay),n.plugins&&Object.keys(n.plugins).forEach(function(e){if("function"!=typeof a[e])throw Error('plugin "'+e+'" does not exist')}),a.scrubbing_=!1,a.el_=a.createEl(),tP((0,b.Z)(a),{eventBusKey:"el_"}),a.fsApi_.requestFullscreen&&(tu(_(),a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_),a.on(a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_)),a.fluid_&&a.on(["playerreset","resize"],a.boundUpdateStyleEl_);var u=tM(a.options_);n.plugins&&Object.keys(n.plugins).forEach(function(e){a[e](n.plugins[e])}),n.debug&&a.debug(!0),a.options_.playerOptions=u,a.middleware_=[],a.playbackRates(n.playbackRates),a.initChildren(),a.isAudio("audio"===i.nodeName.toLowerCase()),a.controls()?a.addClass("vjs-controls-enabled"):a.addClass("vjs-controls-disabled"),a.el_.setAttribute("role","region"),a.isAudio()?a.el_.setAttribute("aria-label",a.localize("Audio Player")):a.el_.setAttribute("aria-label",a.localize("Video Player")),a.isAudio()&&a.addClass("vjs-audio"),a.flexNotSupported_()&&a.addClass("vjs-no-flex"),eS&&a.addClass("vjs-touch-enabled"),eE||a.addClass("vjs-workinghover"),t.players[a.id_]=(0,b.Z)(a);var d=q.split(".")[0];return a.addClass("vjs-v"+d),a.userActive(!0),a.reportUserActivity(),a.one("play",function(e){return a.listenForUserActivity_(e)}),a.on("stageclick",function(e){return a.handleStageClick_(e)}),a.on("keydown",function(e){return a.handleKeyDown(e)}),a.on("languagechange",function(e){return a.handleLanguagechange(e)}),a.breakpoints(a.options_.breakpoints),a.responsive(a.options_.responsive),a.on("ready",function(){a.audioPosterMode(a.options_.audioPosterMode),a.audioOnlyMode(a.options_.audioOnlyMode)}),a}(0,S.Z)(t,e);var i=t.prototype;return i.dispose=function(){var i,n=this;this.trigger("dispose"),this.off("dispose"),td(_(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),td(_(),"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),i=this,iT[i.id()]=null,i_.names.forEach(function(e){var t=n[i_[e].getterName]();t&&t.off&&t.off()}),e.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},i.createEl=function(){var t,i=this.tag,n=this.playerElIngest_=i.parentNode&&i.parentNode.hasAttribute&&i.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();n?t=this.el_=i.parentNode:r||(t=this.el_=e.prototype.createEl.call(this,"div"));var a=eq(i);if(r){for(t=this.el_=i,i=this.tag=_().createElement("video");t.children.length;)i.appendChild(t.firstChild);eB(t,"video-js")||eN(t,"video-js"),t.appendChild(i),n=this.playerElIngest_=t,Object.keys(t).forEach(function(e){try{i[e]=t[e]}catch(n){}})}if(i.setAttribute("tabindex","-1"),a.tabindex="-1",(ey||e_&&eb)&&(i.setAttribute("role","application"),a.role="application"),i.removeAttribute("width"),i.removeAttribute("height"),"width"in a&&delete a.width,"height"in a&&delete a.height,Object.getOwnPropertyNames(a).forEach(function(e){r&&"class"===e||t.setAttribute(e,a[e]),r&&i.setAttribute(e,a[e])}),i.playerId=i.id,i.id+="_html5_api",i.className="vjs-tech",i.player=t.player=this,this.addClass("vjs-paused"),!0!==m().VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=te("vjs-styles-dimensions");var s=e8(".vjs-styles-defaults"),o=e8("head");o.insertBefore(this.styleEl_,s?s.nextSibling:o.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var l=i.getElementsByTagName("a"),u=0;u=0&&(a.width=n),r>=0&&(a.height=r));return}var s=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=s[1]/s[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*o,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),tt(this.styleEl_,"\n ."+i+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+i+".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: "+100*o+"%;\n }\n ")},i.loadTech_=function(e,t){var i=this;this.tech_&&this.unloadTech_();var n=tD(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(iv.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var a=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(a=!1);var s={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};i_.names.forEach(function(e){var t=i_[e];s[t.getterName]=i[t.privateName]}),en(s,this.options_[n]),en(s,this.options_[r]),en(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(s.startTime=this.cache_.currentTime);var o=iv.getTech(e);if(!o)throw Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new o(s),this.tech_.ready(tm(this,this.handleTechReady_),!0),tQ.jsonToTextTracks(this.textTracksJson_||[],this.tech_),n7.forEach(function(e){i.on(i.tech_,e,function(t){return i["handleTech"+tD(e)+"_"](t)})}),Object.keys(n9).forEach(function(e){i.on(i.tech_,e,function(t){if(0===i.tech_.playbackRate()&&i.tech_.seeking()){i.queuedCallbacks_.push({callback:i["handleTech"+n9[e]+"_"].bind(i),event:t});return}i["handleTech"+n9[e]+"_"](t)})}),this.on(this.tech_,"loadstart",function(e){return i.handleTechLoadStart_(e)}),this.on(this.tech_,"sourceset",function(e){return i.handleTechSourceset_(e)}),this.on(this.tech_,"waiting",function(e){return i.handleTechWaiting_(e)}),this.on(this.tech_,"ended",function(e){return i.handleTechEnded_(e)}),this.on(this.tech_,"seeking",function(e){return i.handleTechSeeking_(e)}),this.on(this.tech_,"play",function(e){return i.handleTechPlay_(e)}),this.on(this.tech_,"firstplay",function(e){return i.handleTechFirstPlay_(e)}),this.on(this.tech_,"pause",function(e){return i.handleTechPause_(e)}),this.on(this.tech_,"durationchange",function(e){return i.handleTechDurationChange_(e)}),this.on(this.tech_,"fullscreenchange",function(e,t){return i.handleTechFullscreenChange_(e,t)}),this.on(this.tech_,"fullscreenerror",function(e,t){return i.handleTechFullscreenError_(e,t)}),this.on(this.tech_,"enterpictureinpicture",function(e){return i.handleTechEnterPictureInPicture_(e)}),this.on(this.tech_,"leavepictureinpicture",function(e){return i.handleTechLeavePictureInPicture_(e)}),this.on(this.tech_,"error",function(e){return i.handleTechError_(e)}),this.on(this.tech_,"posterchange",function(e){return i.handleTechPosterChange_(e)}),this.on(this.tech_,"textdata",function(e){return i.handleTechTextData_(e)}),this.on(this.tech_,"ratechange",function(e){return i.handleTechRateChange_(e)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||eU(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},i.unloadTech_=function(){var e=this;i_.names.forEach(function(t){var i=i_[t];e[i.privateName]=e[i.getterName]()}),this.textTracksJson_=tQ.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},i.tech=function(e){return void 0===e&&$.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},i.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},i.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},i.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},i.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},i.manualAutoplay_=function(e){var t,i=this;if(this.tech_&&"string"==typeof e){var n=function(){var e=i.muted();i.muted(!0);var t=function(){i.muted(e)};i.playTerminatedQueue_.push(t);var n=i.play();if(tG(n))return n.catch(function(e){throw t(),Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))})};if("any"!==e||this.muted()?t="muted"!==e||this.muted()?this.play():n():tG(t=this.play())&&(t=t.catch(n)),tG(t))return t.then(function(){i.trigger({type:"autoplay-success",autoplay:e})}).catch(function(){i.trigger({type:"autoplay-failure",autoplay:e})})}},i.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,i="";"string"!=typeof t&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=iP(this,t)),this.cache_.source=tM({},e,{src:t,type:i});for(var n=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),r=[],a=this.$$("source"),s=[],o=0;o0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},i.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",function i(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",i))})},i.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},i.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},i.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},i.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},i.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},i.handleTechFirstPlay_=function(){this.options_.starttime&&($.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},i.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},i.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},i.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},i.handleTechClick_=function(e){this.controls_&&(void 0===this.options_||void 0===this.options_.userActions||void 0===this.options_.userActions.click||!1!==this.options_.userActions.click)&&(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?tK(this.play()):this.pause())},i.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(t){return t.contains(e.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},i.handleTechTap_=function(){this.userActive(!this.userActive())},i.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},i.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},i.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},i.handleStageClick_=function(){this.reportUserActivity()},i.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},i.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var i=this.el(),n=_()[this.fsApi_.fullscreenElement]===i;!n&&i.matches?n=i.matches(":"+this.fsApi_.fullscreen):!n&&i.msMatchesSelector&&(n=i.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(n)}},i.handleTechFullscreenChange_=function(e,t){var i=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",function(){i.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))},i.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},i.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},i.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},i.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},i.handleTechError_=function(){var e=this.tech_.error();this.error(e)},i.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},i.getCache=function(){return this.cache_},i.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},i.techCall_=function(e,t){this.ready(function(){if(e in iC){var i;return i=this.middleware_,this.tech_[e](i.reduce(iw(e),t))}if(e in iE)return iS(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(n){throw $(n),n}},!0)},i.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in ik){var t,i;return t=this.middleware_,i=this.tech_,t.reduceRight(iw(e),i[e]())}if(e in iE)return iS(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(n){if(void 0===this.tech_[e])throw $("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",n),n;if("TypeError"===n.name)throw $("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",n),this.tech_.isReady_=!1,n;throw $(n),n}}},i.play=function(){var e=this,t=this.options_.Promise||m().Promise;return t?new t(function(t){e.play_(t)}):this.play_()},i.play_=function(e){var t=this;void 0===e&&(e=tK),this.playCallbacks_.push(e);var i=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!i){this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!i&&(ew||eE)&&this.load();return}var n=this.techGet_("play");null===n?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(n)},i.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})},i.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})},i.pause=function(){this.techCall_("pause")},i.paused=function(){return!1!==this.techGet_("paused")},i.played=function(){return this.techGet_("played")||tq(0,0)},i.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},i.currentTime=function(e){if(void 0!==e){if(e<0&&(e=0),!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),this.one("canplay",this.boundApplyInitTime_);return}this.techCall_("setCurrentTime",e),this.cache_.initTime=0;return}return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime},i.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},i.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e===this.cache_.duration||(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},i.remainingTime=function(){return this.duration()-this.currentTime()},i.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},i.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=tq(0,0)),e},i.bufferedPercent=function(){return tV(this.buffered(),this.duration())},i.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),i=e.end(e.length-1);return i>t&&(i=t),i},i.volume=function(e){var t;if(void 0!==e){t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),t>0&&this.lastVolume_(t);return}return isNaN(t=parseFloat(this.techGet_("volume")))?1:t},i.muted=function(e){if(void 0!==e){this.techCall_("setMuted",e);return}return this.techGet_("muted")||!1},i.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},i.lastVolume_=function(e){if(void 0!==e&&0!==e){this.cache_.lastVolume=e;return}return this.cache_.lastVolume},i.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},i.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_();return}return this.isFullscreen_},i.requestFullscreen=function(e){var t=this.options_.Promise||m().Promise;if(t){var i=this;return new t(function(t,n){function r(){i.off("fullscreenerror",s),i.off("fullscreenchange",a)}function a(){r(),t()}function s(e,t){r(),n(t)}i.one("fullscreenchange",a),i.one("fullscreenerror",s);var o=i.requestFullscreenHelper_(e);o&&(o.then(r,r),o.then(t,n))})}return this.requestFullscreenHelper_()},i.requestFullscreenHelper_=function(e){var t,i=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0===e||(t=e)),this.fsApi_.requestFullscreen){var n=this.el_[this.fsApi_.requestFullscreen](t);return n&&n.then(function(){return i.isFullscreen(!0)},function(){return i.isFullscreen(!1)}),n}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},i.exitFullscreen=function(){var e=this.options_.Promise||m().Promise;if(e){var t=this;return new e(function(e,i){function n(){t.off("fullscreenerror",a),t.off("fullscreenchange",r)}function r(){n(),e()}function a(e,t){n(),i(t)}t.one("fullscreenchange",r),t.one("fullscreenerror",a);var s=t.exitFullscreenHelper_();s&&(s.then(n,n),s.then(e,i))})}return this.exitFullscreenHelper_()},i.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=_()[this.fsApi_.exitFullscreen]();return t&&tK(t.then(function(){return e.isFullscreen(!1)})),t}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},i.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=_().documentElement.style.overflow,tu(_(),"keydown",this.boundFullWindowOnEscKey_),_().documentElement.style.overflow="hidden",eN(_().body,"vjs-full-window"),this.trigger("enterFullWindow")},i.fullWindowOnEscKey=function(e){T().isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},i.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,td(_(),"keydown",this.boundFullWindowOnEscKey_),_().documentElement.style.overflow=this.docOrigOverflow,eF(_().body,"vjs-full-window"),this.trigger("exitFullWindow")},i.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},i.isInPictureInPicture=function(e){if(void 0!==e){this.isInPictureInPicture_=!!e,this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_},i.requestPictureInPicture=function(){if("pictureInPictureEnabled"in _()&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},i.exitPictureInPicture=function(){if("pictureInPictureEnabled"in _())return _().exitPictureInPicture()},i.handleKeyDown=function(e){var t,i,n=this.options_.userActions;n&&n.hotkeys&&(i=(t=this.el_.ownerDocument.activeElement).tagName.toLowerCase(),t.isContentEditable||("input"===i?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(t.type):-1!==["textarea"].indexOf(i))||("function"==typeof n.hotkeys?n.hotkeys.call(this,e):this.handleHotkeys(e)))},i.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},i=t.fullscreenKey,n=t.muteKey,r=t.playPauseKey;if((void 0===i?function(e){return T().isEventKey(e,"f")}:i).call(this,e)){e.preventDefault(),e.stopPropagation();var a=tF.getComponent("FullscreenToggle");!1!==_()[this.fsApi_.fullscreenEnabled]&&a.prototype.handleClick.call(this,e)}else(void 0===n?function(e){return T().isEventKey(e,"m")}:n).call(this,e)?(e.preventDefault(),e.stopPropagation(),tF.getComponent("MuteToggle").prototype.handleClick.call(this,e)):(void 0===r?function(e){return T().isEventKey(e,"k")||T().isEventKey(e,"Space")}:r).call(this,e)&&(e.preventDefault(),e.stopPropagation(),tF.getComponent("PlayToggle").prototype.handleClick.call(this,e))},i.canPlayType=function(e){for(var t,i=0,n=this.options_.techOrder;i1?i.handleSrc_(n.slice(1)):(i.changingSrc_=!1,i.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),void i.triggerReady());!function(e,t){e.forEach(function(e){return e.setTech&&e.setTech(t)})}(r,i.tech_)}),this.options_.retryOnError&&n.length>1){var r=function(){i.error(null),i.handleSrc_(n.slice(1),!0)},a=function(){i.off("error",r)};this.one("error",r),this.one("playing",a),this.resetRetryOnError_=function(){i.off("error",r),i.off("playing",a)}}},i.src=function(e){return this.handleSrc_(e,!1)},i.src_=function(e){var t,i,n=this,r=this.selectSource([e]);return!r||((t=r.tech,i=this.techName_,tD(t)!==tD(i))?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready(function(){n.changingSrc_=!1}),!1):(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1))},i.load=function(){this.techCall_("load")},i.reset=function(){var e=this,t=this.options_.Promise||m().Promise;this.paused()||!t?this.doReset_():tK(this.play().then(function(){return e.doReset_()}))},i.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),tT(this)&&this.trigger("playerreset")},i.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},i.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar||{},t=e.durationDisplay,i=e.remainingTimeDisplay;t&&t.updateContent(),i&&i.updateContent()},i.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},i.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},i.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},i.currentSource=function(){return this.cache_.source||{}},i.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},i.currentType=function(){return this.currentSource()&&this.currentSource().type||""},i.preload=function(e){if(void 0!==e){this.techCall_("setPreload",e),this.options_.preload=e;return}return this.techGet_("preload")},i.autoplay=function(e){var t;if(void 0===e)return this.options_.autoplay||!1;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):e?this.options_.autoplay=!0:this.options_.autoplay=!1,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},i.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},i.loop=function(e){if(void 0!==e){this.techCall_("setLoop",e),this.options_.loop=e;return}return this.techGet_("loop")},i.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},i.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},i.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},i.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},i.error=function(e){var t=this;if(void 0===e)return this.error_||null;if(W("beforeerror").forEach(function(i){var n=i(t,e);if(!(er(n)&&!Array.isArray(n)||"string"==typeof n||"number"==typeof n||null===n)){t.log.error("please return a value that MediaError expects in beforeerror hooks");return}e=n}),this.options_.suppressNotSupportedError&&e&&4===e.code){var i=function(){this.error(e)};this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],i),this.one("loadstart",function(){this.off(["click","touchstart"],i)});return}if(null===e){this.error_=e,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new tW(e),this.addClass("vjs-error"),$.error("(CODE:"+this.error_.code+" "+tW.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),W("error").forEach(function(e){return e(t,t.error_)})},i.reportUserActivity=function(e){this.userActivity_=!0},i.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_){this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");return}this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},i.listenForUserActivity_=function(){var e,t,i,n,r=tm(this,this.reportUserActivity),a=function(t){r(),this.clearInterval(e)};this.on("mousedown",function(){r(),this.clearInterval(e),e=this.setInterval(r,250)}),this.on("mousemove",function(e){(e.screenX!==t||e.screenY!==i)&&(t=e.screenX,i=e.screenY,r())}),this.on("mouseup",a),this.on("mouseleave",a);var s=this.getChild("controlBar");!s||eE||eh||(s.on("mouseenter",function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),s.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r),this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(n);var e=this.options_.inactivityTimeout;e<=0||(n=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},i.playbackRate=function(e){if(void 0!==e){this.techCall_("setPlaybackRate",e);return}return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1},i.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},i.isAudio=function(e){if(void 0!==e){this.isAudio_=!!e;return}return!!this.isAudio_},i.enableAudioOnlyUI_=function(){var e=this;this.addClass("vjs-audio-only-mode");var t=this.children(),i=this.getChild("ControlBar"),n=i&&i.currentHeight();t.forEach(function(t){t!==i&&t.el_&&!t.hasClass("vjs-hidden")&&(t.hide(),e.audioOnlyCache_.hiddenChildren.push(t))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(n),this.trigger("audioonlymodechange")},i.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(function(e){return e.show()}),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},i.audioOnlyMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=e;var i=this.options_.Promise||m().Promise;if(i){if(e){var n=[];return this.isInPictureInPicture()&&n.push(this.exitPictureInPicture()),this.isFullscreen()&&n.push(this.exitFullscreen()),this.audioPosterMode()&&n.push(this.audioPosterMode(!1)),i.all(n).then(function(){return t.enableAudioOnlyUI_()})}return i.resolve().then(function(){return t.disableAudioOnlyUI_()})}e?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},i.enablePosterModeUI_=function(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},i.disablePosterModeUI_=function(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},i.audioPosterMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=e;var i=this.options_.Promise||m().Promise;if(i)return e?this.audioOnlyMode()?this.audioOnlyMode(!1).then(function(){t.enablePosterModeUI_()}):i.resolve().then(function(){t.enablePosterModeUI_()}):i.resolve().then(function(){t.disablePosterModeUI_()});if(e){this.audioOnlyMode()&&this.audioOnlyMode(!1),this.enablePosterModeUI_();return}this.disablePosterModeUI_()},i.addTextTrack=function(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)},i.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},i.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)},i.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},i.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},i.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},i.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),tT(this)&&this.trigger("languagechange"))},i.languages=function(){return tM(t.prototype.options_.languages,this.languages_)},i.toJSON=function(){var e=tM(this.options_),t=e.tracks;e.tracks=[];for(var i=0;i"):function(){}},rS=1/30,rk=3*(1/30),rC=function(e,t){var i,n=[];if(e&&e.length)for(i=0;i=t})},rw=function(e,t){return rC(e,function(e){return e-rS>=t})},rI=function(e){if(e.length<2)return rg.createTimeRanges();for(var t=[],i=1;i "+e.end(i));return t.join(", ")},rA=function(e){for(var t=[],i=0;ia)){if(t>r&&t<=a){i+=a-t;continue}i+=a-r}}return i},rM=rg.createTimeRange,rR=function(e,t){if(!t.preload)return t.duration;var i=0;return(t.parts||[]).forEach(function(e){i+=e.duration}),(t.preloadHints||[]).forEach(function(t){"PART"===t.type&&(i+=e.partTargetDuration)}),i},rU=function(e){return(e.segments||[]).reduce(function(e,t,i){return t.parts?t.parts.forEach(function(n,r){e.push({duration:n.duration,segmentIndex:i,partIndex:r,part:n,segment:t})}):e.push({duration:t.duration,segmentIndex:i,partIndex:null,segment:t,part:null}),e},[])},rB=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},rN=function(e){var t=e.preloadSegment;if(t){var i=t.parts;return(t.preloadHints||[]).reduce(function(e,t){return e+("PART"===t.type?1:0)},0)+(i&&i.length?i.length:0)}},rF=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var i=rB(t).length>0;return i&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:i&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},rj=function(e,t){var i=0,n=t-e.mediaSequence,r=e.segments[n];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;n--;){if(void 0!==(r=e.segments[n]).end)return{result:i+r.end,precise:!0};if(i+=rR(e,r),void 0!==r.start)return{result:i+r.start,precise:!0}}return{result:i,precise:!1}},rH=function(e,t){for(var i,n=0,r=t-e.mediaSequence;rr){var s=[r,n];n=s[0],r=s[1]}if(n<0){for(var o=n;oDate.now()},rK=function(e){return e.excludeUntil&&e.excludeUntil===1/0},rZ=function(e){var t=rG(e);return!e.disabled&&!t},rQ=function(e,t){return t.attributes&&t.attributes[e]},rX=function(e,t){if(1===e.playlists.length)return!0;var i=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(function(e){return!!rZ(e)&&(e.attributes.BANDWIDTH||0)0)for(var h=u-1;h>=0;h--){var p=l[h];if(o+=p.duration,s){if(o<0)continue}else if(o+rS<=0)continue;return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:a-rW({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:h})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:i}}if(u<0){for(var f=u;f<0;f++)if((o-=t.targetDuration)<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:i};u=0}for(var m=u;m0)continue}else if(o-rS>=0)continue;return{partIndex:g.partIndex,segmentIndex:g.segmentIndex,startTime:a+rW({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:m})}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:i}},isEnabled:rZ,isDisabled:function(e){return e.disabled},isBlacklisted:rG,isIncompatible:rK,playlistEnd:rz,isAes:function(e){for(var t=0;t-1&&s!==a.length-1&&(i._HLS_part=s),(s>-1||a.length)&&r--}i._HLS_msn=r}if(t.serverControl&&t.serverControl.canSkipUntil&&(i._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(i).length){var o=new(m()).URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(e){i.hasOwnProperty(e)&&o.searchParams.set(e,i[e])}),e=o.toString()}return e},an=function(e,t){if(!e)return t;var i=ae(e,t);if(e.preloadHints&&!t.preloadHints&&delete i.preloadHints,e.parts&&!t.parts)delete i.parts;else if(e.parts&&t.parts)for(var n=0;n=500?4:2},this.trigger("error")},i.parseManifest_=function(e){var t=this,i=e.url;return r8({onwarn:function(e){var n=e.message;return t.logger_("m3u8-parser warn for "+i+": "+n)},oninfo:function(e){var n=e.message;return t.logger_("m3u8-parser info for "+i+": "+n)},manifestString:e.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},i.haveMetadata=function(e){var t=e.playlistString,i=e.playlistObject,n=e.url,r=e.id;this.request=null,this.state="HAVE_METADATA";var a=i||this.parseManifest_({url:n,manifestString:t});a.lastRequest=Date.now(),r5({playlist:a,uri:n,id:r});var s=al(this.master,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,s?(this.master=s,this.media_=this.master.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(au(this.media(),!!s)),this.trigger("loadedplaylist")},i.dispose=function(){this.trigger("dispose"),this.stopRequest(),m().clearTimeout(this.mediaUpdateTimeout),m().clearTimeout(this.finalRenditionTimeout),this.off()},i.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},i.media=function(e,t){var i=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.master.playlists[e])throw Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(m().clearTimeout(this.finalRenditionTimeout),t){var n=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=m().setTimeout(this.media.bind(this,e,!1),n);return}var r=this.state,a=!this.media_||e.id!==this.media_.id,s=this.master.playlists[e.id];if(s&&s.endList||e.endList&&e.segments.length){this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,a&&(this.trigger("mediachanging"),"HAVE_MASTER"===r?this.trigger("loadedmetadata"):this.trigger("mediachange"));return}if(this.updateMediaUpdateTimeout_(au(e,!0)),a){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},function(t,n){if(i.request){if(e.lastRequest=Date.now(),e.resolvedUri=rT(i.handleManifestRedirects,e.resolvedUri,n),t)return i.playlistRequestError(i.request,e,r);i.haveMetadata({playlistString:n.responseText,url:e.uri,id:e.id}),"HAVE_MASTER"===r?i.trigger("loadedmetadata"):i.trigger("mediachange")}})}},i.pause=function(){this.mediaUpdateTimeout&&(m().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},i.load=function(e){var t=this;this.mediaUpdateTimeout&&(m().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var i=this.media();if(e){var n=i?(i.partTargetDuration||i.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=m().setTimeout(function(){t.mediaUpdateTimeout=null,t.load()},n);return}if(!this.started){this.start();return}i&&!i.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist")},i.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(m().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=m().setTimeout(function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)},e))},i.start=function(){var e=this;if(this.started=!0,"object"==typeof this.src){this.src.uri||(this.src.uri=m().location.href),this.src.resolvedUri=this.src.uri,setTimeout(function(){e.setupInitialPlaylist(e.src)},0);return}this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(t,i){if(e.request){if(e.request=null,t)return e.error={status:i.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:i.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=rT(e.handleManifestRedirects,e.src,i);var n=e.parseManifest_({manifestString:i.responseText,url:e.src});e.setupInitialPlaylist(n)}})},i.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},i.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists){this.master=e,r9(this.master,this.srcUri()),e.playlists.forEach(function(e){e.segments=as(e),e.segments.forEach(function(t){aa(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.master.playlists[0]);return}var t=this.srcUri()||m().location.href;this.master=r7(e,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(at),ac=rg.xhr,ah=rg.mergeOptions,ap=function(e,t,i,n){var r="arraybuffer"===e.responseType?e.response:e.responseText;t||!r||(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8e3))),i.headers&&(e.responseHeaders=i.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===i.statusCode||206===i.statusCode||0===i.statusCode||(t=Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),n(t,e)},af=function(){var e=function e(t,i){t=ah({timeout:45e3},t);var n=e.beforeRequest||rg.Vhs.xhr.beforeRequest;if(n&&"function"==typeof n){var r=n(t);r&&(t=r)}var a=(!0===rg.Vhs.xhr.original?ac:rg.Vhs.xhr)(t,function(e,t){return ap(a,e,t,i)}),s=a.abort;return a.abort=function(){return a.aborted=!0,s.apply(a,arguments)},a.uri=t.uri,a.requestTime=Date.now(),a};return e.original=!0,e},am=function(e){var t,i={};return e.byterange&&(i.Range="bytes="+(t=e.byterange).offset+"-"+("bigint"==typeof t.offset||"bigint"==typeof t.length?m().BigInt(t.offset)+m().BigInt(t.length)-m().BigInt(1):t.offset+t.length-1)),i},ag=function(e,t){var i=e.toString(16);return"00".substring(0,2-i.length)+i+(t%2?" ":"")},a_=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},av=function(e){var t={};return Object.keys(e).forEach(function(i){var n=e[i];(0,R.Au)(n)?t[i]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:t[i]=n}),t},ay=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},aT=function(e){return e.resolvedUri},ab=function(e){for(var t=Array.prototype.slice.call(e),i="",n=0;nnew Date(l.getTime()+1e3*u)?null:(r>l&&(a=o),{segment:a,estimatedStart:a.videoTimingInfo?a.videoTimingInfo.transmuxedPresentationStart:r0.duration(t,t.mediaSequence+t.segments.indexOf(a)),type:a.videoTimingInfo?"accurate":"estimate"})},aE=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var i,n=0,r=0;rn){if(e>n+.25*a.duration)return null;i=a}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:n-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}},aw=function(e,t){try{n=new Date(e),r=new Date(t)}catch(i){}var n,r,a=n.getTime();return(r.getTime()-a)/1e3},aI=function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t=d+u)return s(t,{response:o.subarray(u,u+d),status:i.status,uri:i.uri});n.request=n.vhs_.xhr({uri:a,responseType:"arraybuffer",headers:am({byterange:e.sidx.byterange})},s)})},i.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},m().clearTimeout(this.minimumUpdatePeriodTimeout_),m().clearTimeout(this.mediaRequest_),m().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},i.hasPendingRequest=function(){return this.request||this.mediaRequest_},i.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},i.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw Error("Cannot switch media playlist from "+this.state);var i=this.state;if("string"==typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var n=!this.media_||e.id!==this.media_.id;if(n&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList){this.state="HAVE_METADATA",this.media_=e,n&&(this.trigger("mediachanging"),this.trigger("mediachange"));return}n&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,i,function(n){t.haveMetadata({startingState:i,playlist:e})}))},i.haveMetadata=function(e){var t=e.startingState,i=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[i.id]=i,this.mediaRequest_=null,this.refreshMedia_(i.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},i.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),m().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(m().clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},i.load=function(e){var t=this;m().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var i=this.media();if(e){var n=i?i.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=m().setTimeout(function(){return t.load()},n);return}if(!this.started){this.start();return}i&&!i.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist")},i.start=function(){var e=this;if(this.started=!0,!this.isMaster_){this.mediaRequest_=m().setTimeout(function(){return e.haveMaster_()},0);return}this.requestMaster_(function(t,i){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])})},i.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(i,n){if(t.requestErrored_(i,n)){"HAVE_NOTHING"===t.state&&(t.started=!1);return}var r=n.responseText!==t.masterPlaylistLoader_.masterXml_;if(t.masterPlaylistLoader_.masterXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?t.masterLoaded_=Date.parse(n.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=rT(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,n),r){t.handleMaster_(),t.syncClientServerClock_(function(){return e(n,r)});return}return e(n,r)})},i.syncClientServerClock_=function(e){var t=this,i=(0,U.LG)(this.masterPlaylistLoader_.masterXml_);return null===i?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===i.method?(this.masterPlaylistLoader_.clientOffset_=i.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:ry(this.masterPlaylistLoader_.srcUrl,i.value),method:i.method,withCredentials:this.withCredentials},function(n,r){var a;if(t.request){if(n)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();a="HEAD"===i.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.masterLoaded_:Date.parse(r.responseText),t.masterPlaylistLoader_.clientOffset_=a-Date.now(),e()}}))},i.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},i.handleMaster_=function(){this.mediaRequest_=null;var e=this.masterPlaylistLoader_.master,t=aR({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(t=aU(e,t,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=t||e;var i=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return i&&i!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=i),(!e||t&&t.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(t)},i.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(m().clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.master&&e.master.minimumUpdatePeriod;if(0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0){t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout");return}this.createMUPTimeout_(t)},i.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=m().setTimeout(function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)},i.refreshXml_=function(){var e=this;this.requestMaster_(function(t,i){i&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=aN(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.sidxMapping_),e.addSidxSegments_(e.media(),e.state,function(t){e.refreshMedia_(e.media().id)}))})},i.refreshMedia_=function(e){var t=this;if(!e)throw Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var i=this.masterPlaylistLoader_.master.playlists,n=!this.media_||this.media_!==i[e];n?this.media_=i[e]:this.trigger("playlistunchanged"),this.mediaUpdateTimeout||function e(){t.media().endList||(t.mediaUpdateTimeout=m().setTimeout(function(){t.trigger("mediaupdatetimeout"),e()},au(t.media(),Boolean(n))))}(),this.trigger("loadedplaylist")},t}(aO),aj={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},aH=function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),i=0;i-1)},this.trigger=function(t){var i,n,r,a;if(i=e[t]){if(2==arguments.length)for(n=0,r=i.length;n>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),$(ef.mdhd,t)},es=function(e){var t;return $(ef.mdia,eo(e),(t=e.type,$(ef.hdlr,ev[t])),ee(e))},ee=function(e){return $(ef.minf,"video"===e.type?$(ef.vmhd,ey):$(ef.smhd,eT),$(ef.dinf,$(ef.dref,eb)),eu(e))},et=function(e){for(var t=e.length,i=[];t--;)i[t]=er(e[t]);return $.apply(null,[ef.moov,en(4294967295)].concat(i).concat(ei(e)))},ei=function(e){for(var t=e.length,i=[];t--;)i[t]=eh(e[t]);return $.apply(null,[ef.mvex].concat(i))},en=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return $(ef.mvhd,t)},el=function(e){var t,i,n=e.samples||[],r=new Uint8Array(4+n.length);for(i=0;i>>8),a.push(255&n[t].byteLength),a=a.concat(Array.prototype.slice.call(n[t]));for(t=0;t>>8),s.push(255&r[t].byteLength),s=s.concat(Array.prototype.slice.call(r[t]));if(i=[ef.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),$(ef.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([n.length],a,[r.length],s))),$(ef.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var o=e.sarRatio[0],l=e.sarRatio[1];i.push($(ef.pasp,new Uint8Array([(4278190080&o)>>24,(16711680&o)>>16,(65280&o)>>8,255&o,(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l])))}return $.apply(null,i)},Z=function(e){return $(ef.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),$(ef.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2])))},ea=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return $(ef.tkhd,t)},ec=function(e){var t,i,n,r,a,s;return(t=$(ef.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(e.baseMediaDecodeTime/g),s=Math.floor(e.baseMediaDecodeTime%g),i=$(ef.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s])),"audio"===e.type)?(n=ep(e,92),$(ef.traf,t,i,n)):(r=el(e),n=ep(e,r.length+92),$(ef.traf,t,i,n,r))},er=function(e){return e.duration=e.duration||4294967295,$(ef.trak,ea(e),es(e))},eh=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),$(ef.trex,t)},Y=function(e,t){var i=0,n=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(i=1),void 0!==e[0].size&&(n=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,i|n|r|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},X=function(e,t){var i,n,r,a,s,o;for(t+=20+16*(a=e.samples||[]).length,r=Y(a,t),(n=new Uint8Array(r.length+16*a.length)).set(r),i=r.length,o=0;o>>24,n[i++]=(16711680&s.duration)>>>16,n[i++]=(65280&s.duration)>>>8,n[i++]=255&s.duration,n[i++]=(4278190080&s.size)>>>24,n[i++]=(16711680&s.size)>>>16,n[i++]=(65280&s.size)>>>8,n[i++]=255&s.size,n[i++]=s.flags.isLeading<<2|s.flags.dependsOn,n[i++]=s.flags.isDependedOn<<6|s.flags.hasRedundancy<<4|s.flags.paddingValue<<1|s.flags.isNonSyncSample,n[i++]=61440&s.flags.degradationPriority,n[i++]=15&s.flags.degradationPriority,n[i++]=(4278190080&s.compositionTimeOffset)>>>24,n[i++]=(16711680&s.compositionTimeOffset)>>>16,n[i++]=(65280&s.compositionTimeOffset)>>>8,n[i++]=255&s.compositionTimeOffset;return $(ef.trun,n)},Q=function(e,t){var i,n,r,a,s,o;for(t+=20+8*(a=e.samples||[]).length,r=Y(a,t),(i=new Uint8Array(r.length+8*a.length)).set(r),n=r.length,o=0;o>>24,i[n++]=(16711680&s.duration)>>>16,i[n++]=(65280&s.duration)>>>8,i[n++]=255&s.duration,i[n++]=(4278190080&s.size)>>>24,i[n++]=(16711680&s.size)>>>16,i[n++]=(65280&s.size)>>>8,i[n++]=255&s.size;return $(ef.trun,i)},ep=function(e,t){return"audio"===e.type?Q(e,t):X(e,t)};var _={ftyp:J,mdat:function(e){return $(ef.mdat,e)},moof:function(e,t){for(var i=[],n=t.length;n--;)i[n]=ec(t[n]);return $.apply(null,[ef.moof,$(ef.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))].concat(i))},moov:et,initSegment:function(e){var t,i=J(),n=et(e);return(t=new Uint8Array(i.byteLength+n.byteLength)).set(i),t.set(n,i.byteLength),t}},v=function(e,t){var i={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return i.dataOffset=t,i.compositionTimeOffset=e.pts-e.dts,i.duration=e.duration,i.size=4*e.length,i.size+=e.byteLength,e.keyFrame&&(i.flags.dependsOn=2,i.flags.isNonSyncSample=0),i},y={groupNalsIntoFrames:function(e){var t,i,n=[],r=[];for(t=0,r.byteLength=0,r.nalCount=0,r.duration=0,n.byteLength=0;t1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},generateSampleTable:function(e,t){var i,n,r,a,s=t||0,o=[];for(i=0;iC.ONE_SECOND_IN_TS/2))){for((a=k()[e.samplerate])||(a=t[0].data),s=0;s=i?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=i&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},generateSampleTable:function(e){var t,i=[];for(t=0;t=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},M.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},M.prototype.addText=function(e){this.rows[this.rowIdx]+=e},M.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var R=function(e,t,i){this.serviceNum=e,this.text="",this.currentWindow=new M(-1),this.windows=[],this.stream=i,"string"==typeof t&&this.createTextDecoder(t)};R.prototype.init=function(e,t){this.startPts=e;for(var i=0;i<8;i++)this.windows[i]=new M(i),"function"==typeof t&&(this.windows[i].beforeRowOverflow=t)},R.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},R.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var U=function e(t){t=t||{},e.prototype.init.call(this);var i,n=this,r=t.captionServices||{},a={};Object.keys(r).forEach(function(e){i=r[e],/^SERVICE/.test(e)&&(a[e]=i.encoding)}),this.serviceEncodings=a,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(n.new708Packet(),n.add708Bytes(e)):(null===n.current708Packet&&n.new708Packet(),n.add708Bytes(e))}};U.prototype=new f,U.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},U.prototype.add708Bytes=function(e){var t=e.ccData;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(t>>>8),this.current708Packet.data.push(255&t)},U.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,i=null,n=null,r=0,a=t[r++];for(e.seq=a>>6,e.sizeCode=63&a;r>5,n=31&a,7===i&&n>0&&(i=a=t[r++]),this.pushServiceBlock(i,r,n),n>0&&(r+=n-1)},U.prototype.pushServiceBlock=function(e,t,i){var n,r=t,a=this.current708Packet.data,s=this.services[e];for(s||(s=this.initService(e,r));r>5,a.rowLock=(16&n)>>4,a.columnLock=(8&n)>>3,a.priority=7&n,n=i[++e],a.relativePositioning=(128&n)>>7,a.anchorVertical=127&n,n=i[++e],a.anchorHorizontal=n,n=i[++e],a.anchorPoint=(240&n)>>4,a.rowCount=15&n,n=i[++e],a.columnCount=63&n,n=i[++e],a.windowStyle=(56&n)>>3,a.penStyle=7&n,a.virtualRowCount=a.rowCount+1,e},U.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.winAttr;return n=i[++e],r.fillOpacity=(192&n)>>6,r.fillRed=(48&n)>>4,r.fillGreen=(12&n)>>2,r.fillBlue=3&n,n=i[++e],r.borderType=(192&n)>>6,r.borderRed=(48&n)>>4,r.borderGreen=(12&n)>>2,r.borderBlue=3&n,n=i[++e],r.borderType+=(128&n)>>5,r.wordWrap=(64&n)>>6,r.printDirection=(48&n)>>4,r.scrollDirection=(12&n)>>2,r.justify=3&n,n=i[++e],r.effectSpeed=(240&n)>>4,r.effectDirection=(12&n)>>2,r.displayEffect=3&n,e},U.prototype.flushDisplayed=function(e,t){for(var i=[],n=0;n<8;n++)t.windows[n].visible&&!t.windows[n].isEmpty()&&i.push(t.windows[n].getText());t.endPts=e,t.text=i.join("\n\n"),this.pushCaption(t),t.startPts=e},U.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},U.prototype.displayWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<>4,r.offset=(12&n)>>2,r.penSize=3&n,n=i[++e],r.italics=(128&n)>>7,r.underline=(64&n)>>6,r.edgeType=(56&n)>>3,r.fontStyle=7&n,e},U.prototype.setPenColor=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penColor;return n=i[++e],r.fgOpacity=(192&n)>>6,r.fgRed=(48&n)>>4,r.fgGreen=(12&n)>>2,r.fgBlue=3&n,n=i[++e],r.bgOpacity=(192&n)>>6,r.bgRed=(48&n)>>4,r.bgGreen=(12&n)>>2,r.bgBlue=3&n,n=i[++e],r.edgeRed=(48&n)>>4,r.edgeGreen=(12&n)>>2,r.edgeBlue=3&n,e},U.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,n=i[++e],r.row=15&n,n=i[++e],r.column=63&n,e},U.prototype.reset=function(e,t){var i=this.getPts(e);return this.flushDisplayed(i,t),this.initService(t.serviceNum,e)};var B={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},N=function(e){return null===e?"":String.fromCharCode(e=B[e]||e)},F=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],j=function(){for(var e=[],t=15;t--;)e.push("");return e},H=function e(t,i){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=i||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(e){var t,i,n,r,a;if((t=32639&e.ccData)===this.lastControlCode_){this.lastControlCode_=null;return}if((61440&t)==4096?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),n=t>>>8,r=255&t,t!==this.PADDING_){if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),i=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=i,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=j();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=j();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=j()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(n,r))a=N((n=(3&n)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(n,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),a=N((n=(3&n)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(n,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,(14&r)==14&&this.addFormatting(e.pts,["i"]),(1&r)==1&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(n,r))this.column_+=3&r;else if(this.isPAC(n,r)){var s=F.indexOf(7968&t);"rollUp"===this.mode_&&(s-this.rollUpRows_+1<0&&(s=this.rollUpRows_-1),this.setRollUp(e.pts,s)),s!==this.row_&&(this.clearFormatting(e.pts),this.row_=s),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),(16&t)==16&&(this.column_=((14&t)>>1)*4),this.isColorPAC(r)&&(14&r)==14&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(n)&&(0===r&&(r=null),a=N(n)+N(r),this[this.mode_](e.pts,a),this.column_+=a.length)}}};H.prototype=new f,H.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e,t){try{return e.trim()}catch(i){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}},this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},H.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=j(),this.nonDisplayed_=j(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},H.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},H.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},H.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},H.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},H.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},H.prototype.isPAC=function(e,t){return e>=this.BASE_&&e=64&&t<=127},H.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},H.prototype.isNormalChar=function(e){return e>=32&&e<=127},H.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=j(),this.displayed_=j()),void 0!==t&&t!==this.row_)for(var i=0;i"},"");this[this.mode_](e,i)},H.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+""},"");this.formatting_=[],this[this.mode_](e,t)}},H.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_];i+=t,this.nonDisplayed_[this.row_]=i},H.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_];i+=t,this.displayed_[this.row_]=i},H.prototype.shiftRowsUp_=function(){var e;for(e=0;et&&(i=-1);Math.abs(t-e)>4294967296;)e+=8589934592*i;return e},G=function e(t){var i,n;e.prototype.init.call(this),this.type_=t||W,this.push=function(e){(this.type_===W||e.type===this.type_)&&(void 0===n&&(n=e.dts),e.dts=z(e.dts,n),e.pts=z(e.pts,n),i=e.dts,this.trigger("data",e))},this.flush=function(){n=i,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,i=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};G.prototype=new f;var K,Z,Q,X,Y,$,J,ee,et,ei,en,er,ea,es,eo,el,eu,ed,ec,eh,ep,ef,em,eg,e_,ev,ey,eT,eb,eS,ek,eC,eE,ew,eI,ex,eP,eA,eL,eO={TimestampRolloverStream:G,handleRollover:z},eD=function(e,t,i){var n,r="";for(n=t;n>>2;d*=4,d+=3&u[7],o.timeStamp=d,void 0===t.pts&&void 0===t.dts&&(t.pts=o.timeStamp,t.dts=o.timeStamp),this.trigger("timestamp",o)}t.frames.push(o),i+=10+s}while(i>>4>1&&(n+=t[n]+1),0===i.pid)i.type="pat",e(t.subarray(n),i),this.trigger("data",i);else if(i.pid===this.pmtPid)for(i.type="pmt",e(t.subarray(n),i),this.trigger("data",i);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,n,i]):this.processPes_(t,n,i)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=V.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=V.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=e.subarray(t),this.trigger("data",i)}}).prototype=new f,t.STREAM_TYPES={h264:27,adts:15},(n=function(){var e,t=this,i=!1,r={data:[],size:0},a={data:[],size:0},s={data:[],size:0},o=function(e,t){var i,n=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===n&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=(4&e[6])!=0,192&(i=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&i&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))},l=function(e,i,n){var r,a=new Uint8Array(e.size),s={type:i},l=0,u=0,d=!1;if(e.data.length&&!(e.size<9)){for(l=0,s.trackId=e.data[0].pid;l>5,u=(l=((3&t[d+6])+1)*1024)*ej/eH[(60&t[d+2])>>>2],t.byteLength-d>>6&3)+1,channelcount:(1&t[d+2])<<2|(192&t[d+3])>>>6,samplerate:eH[(60&t[d+2])>>>2],samplingfrequencyindex:(60&t[d+2])>>>2,samplesize:16,data:t.subarray(d+7+s,d+a)}),i++,d+=a}"number"==typeof r&&(this.skipWarn_(r,d),r=null),t=t.subarray(d)}},this.flush=function(){i=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}}).prototype=new f;var eq=function(e){var t=e.byteLength,i=0,n=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+n},this.loadWord=function(){var r=e.byteLength-t,a=new Uint8Array(4),s=Math.min(4,t);if(0===s)throw Error("no bytes available");a.set(e.subarray(r,r+s)),i=new DataView(a.buffer).getUint32(0),n=8*s,t-=s},this.skipBits=function(e){var r;n>e?(i<<=e,n-=e):(e-=n,r=Math.floor(e/8),e-=8*r,t-=r,this.loadWord(),i<<=e,n-=e)},this.readBits=function(e){var r=Math.min(n,e),a=i>>>32-r;return((n-=r)>0?i<<=r:t>0&&this.loadWord(),(r=e-r)>0)?a<>>e)!=0)return i<<=e,n-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(s=function(){var e,t,i=0;s.prototype.init.call(this),this.push=function(n){t?((r=new Uint8Array(t.byteLength+n.data.byteLength)).set(t),r.set(n.data,t.byteLength),t=r):t=n.data;for(var r,a=t.byteLength;i3&&this.trigger("data",t.subarray(i+3)),t=null,i=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new f,o={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(a=function(){var e,t,i,n,r,l,u,d=new s;a.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,i=e.pts,n=e.dts,d.push(e))},d.on("data",function(a){var s={trackId:t,pts:i,dts:n,data:a,nalUnitTypeCode:31&a[0]};switch(s.nalUnitTypeCode){case 5:s.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:s.nalUnitType="sei_rbsp",s.escapedRBSP=r(a.subarray(1));break;case 7:s.nalUnitType="seq_parameter_set_rbsp",s.escapedRBSP=r(a.subarray(1)),s.config=l(s.escapedRBSP);break;case 8:s.nalUnitType="pic_parameter_set_rbsp";break;case 9:s.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",s)}),d.on("done",function(){e.trigger("done")}),d.on("partialdone",function(){e.trigger("partialdone")}),d.on("reset",function(){e.trigger("reset")}),d.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){d.flush()},this.partialFlush=function(){d.partialFlush()},this.reset=function(){d.reset()},this.endTimeline=function(){d.endTimeline()},u=function(e,t){var i,n=8,r=8;for(i=0;i=0?i:0,(16&e[t+5])>>4)?i+20:i+10},ez=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},eG=function(e,t,i){var n,r="";for(n=t;n=t+2&&(255&e[t])==255&&(240&e[t+1])==240&&(22&e[t+1])==16},parseId3TagSize:eW,parseAdtsSize:function(e,t){var i=(224&e[t+5])>>5,n=e[t+4]<<3;return 6144&e[t+3]|n|i},parseType:function(e,t){return 73===e[t]&&68===e[t+1]&&51===e[t+2]?"timed-metadata":!0&e[t]&&(240&e[t+1])==240?"audio":null},parseSampleRate:function(e){for(var t=0;t+5>>2]}return null},parseAacTimestamp:function(e){var t,i,n;t=10,64&e[5]&&(t+=4+ez(e.subarray(10,14)));do{if((i=ez(e.subarray(t+4,t+8)))<1)break;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){n=e.subarray(t+10,t+i+10);for(var r=0;r>>2;return s*=4,s+=3&a[7]}break}}t+=10+i}while(t=3;){if(73===e[o]&&68===e[o+1]&&51===e[o+2]){if(e.length-o<10||(s=eK.parseId3TagSize(e,o),o+s>e.length))break;n={type:"timed-metadata",data:e.subarray(o,o+s)},this.trigger("data",n),o+=s;continue}if((255&e[o])==255&&(240&e[o+1])==240){if(e.length-o<7||(s=eK.parseAdtsSize(e,o),o+s>e.length))break;r={type:"audio",data:e.subarray(o,o+s),pts:t,dts:t},this.trigger("data",r),o+=s;continue}o++}e=e.length-o>0?e.subarray(o):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new f;var eZ=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],eQ=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],eX=eK.isLikelyAacData,eY=C.ONE_SECOND_IN_TS,e$=function(e,t){t.stream=e,this.trigger("log",t)},eJ=function(e,t){for(var i=Object.keys(t),n=0;n=-1e4&&i<=45e3&&(!n||o>i)&&(n=a,o=i);return n?n.gop:null},this.alignGopsAtStart_=function(e){var t,i,n,r,a,o,l,u;for(a=e.byteLength,o=e.nalCount,l=e.duration,t=i=0;tn.pts){t++;continue}i++,a-=r.byteLength,o-=r.nalCount,l-=r.duration}return 0===i?e:i===e.length?null:((u=e.slice(i)).byteLength=a,u.duration=l,u.nalCount=o,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){for(t=s.length-1,i=e.length-1,a=null,o=!1;t>=0&&i>=0;){if(n=s[t],r=e[i],n.pts===r.pts){o=!0;break}if(n.pts>r.pts){t--;continue}t===s.length-1&&(a=i),i--}if(!o&&null===a)return null;if(0===(l=o?i:a))return e;var t,i,n,r,a,o,l,u=e.slice(l),d=u.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return u.byteLength=d.byteLength,u.duration=d.duration,u.nalCount=d.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){s=e}}).prototype=new f,(h=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,h.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):void(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),"audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes)))}}).prototype=new f,h.prototype.flush=function(e){var t,i,n,r,a=0,s={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0);return}}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,eQ.forEach(function(e){s.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,eZ.forEach(function(e){s.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,n=_.initSegment(this.pendingTracks),s.initSegment=new Uint8Array(n.byteLength),s.initSegment.set(n),s.data=new Uint8Array(this.pendingBytes),r=0;r=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},h.prototype.setRemux=function(e){this.remuxTracks=e},(c=function(e){var t,i,n=this,s=!0;c.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var a={};this.transmuxPipeline_=a,a.type="aac",a.metadataStream=new eN.MetadataStream,a.aacStream=new l,a.audioTimestampRolloverStream=new eN.TimestampRolloverStream("audio"),a.timedMetadataTimestampRolloverStream=new eN.TimestampRolloverStream("timed-metadata"),a.adtsStream=new r,a.coalesceStream=new h(e,a.metadataStream),a.headOfPipeline=a.aacStream,a.aacStream.pipe(a.audioTimestampRolloverStream).pipe(a.adtsStream),a.aacStream.pipe(a.timedMetadataTimestampRolloverStream).pipe(a.metadataStream).pipe(a.coalesceStream),a.metadataStream.on("timestamp",function(e){a.aacStream.setTimestamp(e.timeStamp)}),a.aacStream.on("data",function(r){"timed-metadata"!==r.type&&"audio"!==r.type||a.audioSegmentStream||(i=i||{timelineStartInfo:{baseMediaDecodeTime:n.baseMediaDecodeTime},codec:"adts",type:"audio"},a.coalesceStream.numberOfTracks++,a.audioSegmentStream=new d(i,e),a.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),a.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),a.adtsStream.pipe(a.audioSegmentStream).pipe(a.coalesceStream),n.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t}))}),a.coalesceStream.on("data",this.trigger.bind(this,"data")),a.coalesceStream.on("done",this.trigger.bind(this,"done")),eJ(this,a)},this.setupTsPipeline=function(){var s={};this.transmuxPipeline_=s,s.type="ts",s.metadataStream=new eN.MetadataStream,s.packetStream=new eN.TransportPacketStream,s.parseStream=new eN.TransportParseStream,s.elementaryStream=new eN.ElementaryStream,s.timestampRolloverStream=new eN.TimestampRolloverStream,s.adtsStream=new r,s.h264Stream=new a,s.captionStream=new eN.CaptionStream(e),s.coalesceStream=new h(e,s.metadataStream),s.headOfPipeline=s.packetStream,s.packetStream.pipe(s.parseStream).pipe(s.elementaryStream).pipe(s.timestampRolloverStream),s.timestampRolloverStream.pipe(s.h264Stream),s.timestampRolloverStream.pipe(s.adtsStream),s.timestampRolloverStream.pipe(s.metadataStream).pipe(s.coalesceStream),s.h264Stream.pipe(s.captionStream).pipe(s.coalesceStream),s.elementaryStream.on("data",function(r){var a;if("metadata"===r.type){for(a=r.tracks.length;a--;)t||"video"!==r.tracks[a].type?i||"audio"!==r.tracks[a].type||((i=r.tracks[a]).timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime):(t=r.tracks[a]).timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime;t&&!s.videoSegmentStream&&(s.coalesceStream.numberOfTracks++,s.videoSegmentStream=new u(t,e),s.videoSegmentStream.on("log",n.getLogTrigger_("videoSegmentStream")),s.videoSegmentStream.on("timelineStartInfo",function(t){i&&!e.keepOriginalTimestamps&&(i.timelineStartInfo=t,s.audioSegmentStream.setEarliestDts(t.dts-n.baseMediaDecodeTime))}),s.videoSegmentStream.on("processedGopsInfo",n.trigger.bind(n,"gopInfo")),s.videoSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"videoSegmentTimingInfo")),s.videoSegmentStream.on("baseMediaDecodeTime",function(e){i&&s.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),s.videoSegmentStream.on("timingInfo",n.trigger.bind(n,"videoTimingInfo")),s.h264Stream.pipe(s.videoSegmentStream).pipe(s.coalesceStream)),i&&!s.audioSegmentStream&&(s.coalesceStream.numberOfTracks++,s.audioSegmentStream=new d(i,e),s.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),s.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),s.audioSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"audioSegmentTimingInfo")),s.adtsStream.pipe(s.audioSegmentStream).pipe(s.coalesceStream)),n.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t})}}),s.coalesceStream.on("data",this.trigger.bind(this,"data")),s.coalesceStream.on("id3Frame",function(e){e.dispatchType=s.metadataStream.dispatchType,n.trigger("id3Frame",e)}),s.coalesceStream.on("caption",this.trigger.bind(this,"caption")),s.coalesceStream.on("done",this.trigger.bind(this,"done")),eJ(this,s)},this.setBaseMediaDecodeTime=function(n){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=n),i&&(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,x.clearDtsInfo(i),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,x.clearDtsInfo(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){i&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var i=this.transmuxPipeline_;e.remux=t,i&&i.coalesceStream&&i.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(i){i.stream=e,t.trigger("log",i)}},this.push=function(e){if(s){var t=eX(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),s=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){s=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new f;var e2={Transmuxer:c,VideoSegmentStream:u,AudioSegmentStream:d,AUDIO_PROPERTIES:eZ,VIDEO_PROPERTIES:eQ,generateSegmentTimingInfo:e1},e8={toUnsigned:function(e){return e>>>0},toHexString:function(e){return("00"+e.toString(16)).slice(-2)}},e4=function(e){return""+(String.fromCharCode(e[0])+String.fromCharCode(e[1])+String.fromCharCode(e[2])+String.fromCharCode(e[3]))},e5=e8.toUnsigned,e3=function e(t,i){var n,r,a,s,o,l=[];if(!i.length)return null;for(n=0;n1?n+r:t.byteLength,a===i[0]&&(1===i.length?l.push(t.subarray(n+8,s)):(o=e(t.subarray(n+8,s),i.slice(1))).length&&(l=l.concat(o))),n=s;return l},e6=e8.toUnsigned,e7=m.getUint64,e9=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=e7(e.subarray(4)):t.baseMediaDecodeTime=e6(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},te=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},tt=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&i.flags[2],a=4&i.flags[2],s=1&i.flags[1],o=2&i.flags[1],l=4&i.flags[1],u=8&i.flags[1],d=n.getUint32(4),c=8;for(r&&(i.dataOffset=n.getInt32(c),c+=4),a&&d&&(t={flags:te(e.subarray(c,c+4))},c+=4,s&&(t.duration=n.getUint32(c),c+=4),o&&(t.size=n.getUint32(c),c+=4),u&&(1===i.version?t.compositionTimeOffset=n.getInt32(c):t.compositionTimeOffset=n.getUint32(c),c+=4),i.samples.push(t),d--);d--;)t={},s&&(t.duration=n.getUint32(c),c+=4),o&&(t.size=n.getUint32(c),c+=4),l&&(t.flags=te(e.subarray(c,c+4)),c+=4),u&&(1===i.version?t.compositionTimeOffset=n.getInt32(c):t.compositionTimeOffset=n.getUint32(c),c+=4),i.samples.push(t);return i},ti=function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:i.getUint32(4)},r=1&n.flags[2],a=2&n.flags[2],s=8&n.flags[2],o=16&n.flags[2],l=32&n.flags[2],u=65536&n.flags[0],d=131072&n.flags[0];return t=8,r&&(t+=4,n.baseDataOffset=i.getUint32(12),t+=4),a&&(n.sampleDescriptionIndex=i.getUint32(t),t+=4),s&&(n.defaultSampleDuration=i.getUint32(t),t+=4),o&&(n.defaultSampleSize=i.getUint32(t),t+=4),l&&(n.defaultSampleFlags=i.getUint32(t)),u&&(n.durationIsEmpty=!0),!r&&d&&(n.baseDataOffsetIsMoof=!0),n},tn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},tr="undefined"!=typeof window?window:void 0!==tn?tn:"undefined"!=typeof self?self:{},ta=P.discardEmulationPreventionBytes,ts=q.CaptionStream,to=function(e,t){for(var i=e,n=0;n0?e9(l[0]).baseMediaDecodeTime:0,d=e3(a,["trun"]);t===o&&d.length>0&&(i=tl(n,tu(d,u,s),o),r[o]||(r[o]={seiNals:[],logs:[]}),r[o].seiNals=r[o].seiNals.concat(i.seiNals),r[o].logs=r[o].logs.concat(i.logs))}),r},tc=function(e,t,i){if(null===t)return null;var n=td(e,t)[t]||{};return{seiNals:n.seiNals,logs:n.logs,timescale:i}},th=function(){var e,t,i,n,r,a,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new ts,s=!0,a=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/n,e.endTime=e.endPts/n,r.captions.push(e),r.captionStreams[e.stream]=!0}),e.on("log",function(e){r.logs.push(e)})},this.isNewInit=function(e,t){return(!e||0!==e.length)&&(!t||"object"!=typeof t||0!==Object.keys(t).length)&&(i!==e[0]||n!==t[i])},this.parse=function(e,a,s){var o;if(!this.isInitialized()||!a||!s)return null;if(this.isNewInit(a,s))n=s[i=a[0]];else if(null===i||!n)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,a,s)}return((o=tc(e,i,n))&&o.logs&&(r.logs=r.logs.concat(o.logs)),null!==o&&o.seiNals)?(this.pushNals(o.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach(function(t){e.push(t)})},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],i=null,n=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},tp=e8.toUnsigned,tf=e8.toHexString,tm=m.getUint64,tg={findBox:e3,parseType:e4,timescale:function(e){return e3(e,["moov","trak"]).reduce(function(e,t){var i,n,r,a;return(i=e3(t,["tkhd"])[0])&&(r=tp(i[n=0===i[0]?12:20]<<24|i[n+1]<<16|i[n+2]<<8|i[n+3]),a=e3(t,["mdia","mdhd"])[0])?(n=0===a[0]?12:20,e[r]=tp(a[n]<<24|a[n+1]<<16|a[n+2]<<8|a[n+3]),e):null},{})},startTime:function(e,t){var i=e3(t,["moof","traf"]).reduce(function(t,i){var n,r,a=e3(i,["tfhd"])[0],s=e[tp(a[4]<<24|a[5]<<16|a[6]<<8|a[7])]||9e4,o=e3(i,["tfdt"])[0],l=new DataView(o.buffer,o.byteOffset,o.byteLength);return"bigint"==typeof(n=1===o[0]?tm(o.subarray(4,12)):l.getUint32(4))?r=n/tr.BigInt(s):"number"!=typeof n||isNaN(n)||(r=n/s),r11?(t.codec+=".",t.codec+=tf(u[9]),t.codec+=tf(u[10]),t.codec+=tf(u[11])):t.codec="avc1.4d400d":/^mp4[a,v]$/i.test(t.codec)?"esds"===e4((u=c.subarray(28)).subarray(4,8))&&u.length>20&&0!==u[19]?(t.codec+="."+tf(u[19]),t.codec+="."+tf(u[20]>>>2&63).replace(/^0/,"")):t.codec="mp4a.40.2":t.codec=t.codec.toLowerCase())}var h=e3(e,["mdia","mdhd"])[0];h&&(t.timescale=p(h)),i.push(t)}),i},getTimescaleFromMediaHeader:p=function(e){var t=0===e[0]?12:20;return tp(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])}},t_=function(e){var t=31&e[1];return t<<=8,t|=e[2]},tv=function(e){return!!(64&e[1])},ty=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},tT=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},tb=eO.handleRollover,tS={};tS.ts={parseType:function(e,t){var i=t_(e);return 0===i?"pat":i===t?"pmt":t?"pes":null},parsePat:function(e){var t=tv(e),i=4+ty(e);return t&&(i+=e[i]+1),(31&e[i+10])<<8|e[i+11]},parsePmt:function(e){var t,i={},n=tv(e),r=4+ty(e);if(n&&(r+=e[r]+1),1&e[r+5]){t=3+((15&e[r+1])<<8|e[r+2])-4;for(var a=12+((15&e[r+10])<<8|e[r+11]);a=e.byteLength)return null;var n=null;return 192&(t=e[i+7])&&((n={}).pts=(14&e[i+9])<<27|(255&e[i+10])<<20|(254&e[i+11])<<12|(255&e[i+12])<<5|(254&e[i+13])>>>3,n.pts*=4,n.pts+=(6&e[i+13])>>>1,n.dts=n.pts,64&t&&(n.dts=(14&e[i+14])<<27|(255&e[i+15])<<20|(254&e[i+16])<<12|(255&e[i+17])<<5|(254&e[i+18])>>>3,n.dts*=4,n.dts+=(6&e[i+18])>>>1)),n},videoPacketContainsKeyFrame:function(e){for(var t=4+ty(e),i=e.subarray(t),n=0,r=0,a=!1;r3&&"slice_layer_without_partitioning_rbsp_idr"===tT(31&i[r+3])&&(a=!0),a}},tS.aac=eK;var tk=C.ONE_SECOND_IN_TS,tC=function(e,t){for(var i,n=0,r=188;r=0;){if(71===e[o]&&(71===e[l]||l===e.byteLength)){if(n=e.subarray(o,l),"pes"===tS.ts.parseType(n,t.pid)&&(r=tS.ts.parsePesType(n,t.table),a=tS.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&a&&(s=tS.ts.parsePesTime(n))&&(s.type="audio",i.audio.push(s),u=!0)),u)break;o-=188,l-=188;continue}o--,l--}},tw=function(e,t,i){for(var n,r,a,s,o,l,u,d=0,c=188,h=!1,p={data:[],size:0};c=0;){if(71===e[d]&&71===e[c]){if(n=e.subarray(d,c),"pes"===tS.ts.parseType(n,t.pid)&&(r=tS.ts.parsePesType(n,t.table),a=tS.ts.parsePayloadUnitStartIndicator(n),"video"===r&&a&&(s=tS.ts.parsePesTime(n))&&(s.type="video",i.video.push(s),h=!0)),h)break;d-=188,c-=188;continue}d--,c--}},tI=function(e,t){if(e.audio&&e.audio.length){var i=t;(void 0===i||isNaN(i))&&(i=e.audio[0].dts),e.audio.forEach(function(e){e.dts=tb(e.dts,i),e.pts=tb(e.pts,i),e.dtsTime=e.dts/tk,e.ptsTime=e.pts/tk})}if(e.video&&e.video.length){var n=t;if((void 0===n||isNaN(n))&&(n=e.video[0].dts),e.video.forEach(function(e){e.dts=tb(e.dts,n),e.pts=tb(e.pts,n),e.dtsTime=e.dts/tk,e.ptsTime=e.pts/tk}),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=tb(r.dts,n),r.pts=tb(r.pts,n),r.dtsTime=r.dts/tk,r.ptsTime=r.pts/tk}}},tx=function(e){for(var t,i=!1,n=0,r=null,a=null,s=0,o=0;e.length-o>=3;){switch(tS.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10||(s=tS.aac.parseId3TagSize(e,o))>e.length){i=!0;break}null===a&&(t=e.subarray(o,o+s),a=tS.aac.parseAacTimestamp(t)),o+=s;break;case"audio":if(e.length-o<7||(s=tS.aac.parseAdtsSize(e,o))>e.length){i=!0;break}null===r&&(t=e.subarray(o,o+s),r=tS.aac.parseSampleRate(t)),n++,o+=s;break;default:o++}if(i)return null}if(null===r||null===a)return null;var l=tk/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*n*l,pts:a+1024*n*l}]}},tP=function(e){var t={pid:null,table:null},i={};for(var n in tC(e,t),t.table)if(t.table.hasOwnProperty(n))switch(t.table[n]){case V.H264_STREAM_TYPE:i.video=[],tw(e,t,i),0===i.video.length&&delete i.video;break;case V.ADTS_STREAM_TYPE:i.audio=[],tE(e,t,i),0===i.audio.length&&delete i.audio}return i},tA={inspect:function(e,t){var i;return(i=tS.aac.isLikelyAacData(e)?tx(e):tP(e))&&(i.audio||i.video)?(tI(i,t),i):null},parseAudioPes_:tE},tL=function(e,t){t.on("data",function(t){var i=t.initSegment;t.initSegment={data:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength};var n=t.data;t.data=n.buffer,e.postMessage({action:"data",segment:t,byteOffset:n.byteOffset,byteLength:n.byteLength},[t.data])}),t.on("done",function(t){e.postMessage({action:"done"})}),t.on("gopInfo",function(t){e.postMessage({action:"gopInfo",gopInfo:t})}),t.on("videoSegmentTimingInfo",function(t){var i={start:{decode:C.videoTsToSeconds(t.start.dts),presentation:C.videoTsToSeconds(t.start.pts)},end:{decode:C.videoTsToSeconds(t.end.dts),presentation:C.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:C.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=C.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:i})}),t.on("audioSegmentTimingInfo",function(t){var i={start:{decode:C.videoTsToSeconds(t.start.dts),presentation:C.videoTsToSeconds(t.start.pts)},end:{decode:C.videoTsToSeconds(t.end.dts),presentation:C.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:C.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=C.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:i})}),t.on("id3Frame",function(t){e.postMessage({action:"id3Frame",id3Frame:t})}),t.on("caption",function(t){e.postMessage({action:"caption",caption:t})}),t.on("trackinfo",function(t){e.postMessage({action:"trackinfo",trackInfo:t})}),t.on("audioTimingInfo",function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:C.videoTsToSeconds(t.start),end:C.videoTsToSeconds(t.end)}})}),t.on("videoTimingInfo",function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:C.videoTsToSeconds(t.start),end:C.videoTsToSeconds(t.end)}})}),t.on("log",function(t){e.postMessage({action:"log",log:t})})},tO=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new e2.Transmuxer(this.options),tL(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new th,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),i=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:i&&i.captions||[],logs:i&&i.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales,i=e.data,n=tg.startTime(t,i);this.self.postMessage({action:"probeMp4StartTime",startTime:n,data:i},[i.buffer])},t.probeMp4Tracks=function(e){var t=e.data,i=tg.tracks(t);this.self.postMessage({action:"probeMp4Tracks",tracks:i,data:t},[t.buffer])},t.probeTs=function(e){var t=e.data,i=e.baseStartTime,n="number"!=typeof i||isNaN(i)?void 0:i*C.ONE_SECOND_IN_TS,r=tA.inspect(t,n),a=null;r&&((a={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(a.videoStart=r.video[0].ptsTime),a.hasAudio&&(a.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:a,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(C.secondsToVideoTs(t)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(C.secondsToVideoTs(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();self.onmessage=function(e){if("init"===e.data.action&&e.data.options){this.messageHandlers=new tO(self,e.data.options);return}this.messageHandlers||(this.messageHandlers=new tO(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data)}}))),aZ=function(e,t,i){var n=e.data.segment,r=n.type,a=n.initSegment,s=n.captions,o=n.captionStreams,l=n.metadata,u=n.videoFrameDtsTime,d=n.videoFramePtsTime;t.buffer.push({captions:s,captionStreams:o,metadata:l});var c=e.data.segment.boxes||{data:e.data.segment.data},h={type:r,data:new Uint8Array(c.data,c.data.byteOffset,c.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};void 0!==u&&(h.videoFrameDtsTime=u),void 0!==d&&(h.videoFramePtsTime=d),i(h)},aQ=function(e){var t=e.transmuxedData,i=e.callback;t.buffer=[],i(t)},aX=function(e,t){t.gopInfo=e.data.gopInfo},aY=function(e){var t=e.transmuxer,i=e.bytes,n=e.audioAppendStart,r=e.gopsToAlignWith,a=e.remux,s=e.onData,o=e.onTrackInfo,l=e.onAudioTimingInfo,u=e.onVideoTimingInfo,d=e.onVideoSegmentTimingInfo,c=e.onAudioSegmentTimingInfo,h=e.onId3,p=e.onCaptions,f=e.onDone,m=e.onEndedTimeline,g=e.onTransmuxerLog,_=e.isEndOfTimeline,v={buffer:[]},y=_;if(t.onmessage=function(i){t.currentTransmux===e&&("data"===i.data.action&&aZ(i,v,s),"trackinfo"===i.data.action&&o(i.data.trackInfo),"gopInfo"===i.data.action&&aX(i,v),"audioTimingInfo"===i.data.action&&l(i.data.audioTimingInfo),"videoTimingInfo"===i.data.action&&u(i.data.videoTimingInfo),"videoSegmentTimingInfo"===i.data.action&&d(i.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===i.data.action&&c(i.data.audioSegmentTimingInfo),"id3Frame"===i.data.action&&h([i.data.id3Frame],i.data.id3Frame.dispatchType),"caption"===i.data.action&&p(i.data.caption),"endedtimeline"===i.data.action&&(y=!1,m()),"log"===i.data.action&&g(i.data.log),"transmuxed"!==i.data.type||y||(t.onmessage=null,aQ({transmuxedData:v,callback:f}),a$(t)))},n&&t.postMessage({action:"setAudioAppendStart",appendStart:n}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==a&&t.postMessage({action:"setRemux",remux:a}),i.byteLength){var T=i instanceof ArrayBuffer?i:i.buffer,b=i instanceof ArrayBuffer?0:i.byteOffset;t.postMessage({action:"push",data:T,byteOffset:b,byteLength:i.byteLength},[T])}_&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},a$=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():aY(e.currentTransmux))},aJ=function(e,t){e.postMessage({action:t}),a$(e)},a0=function(e,t){if(!t.currentTransmux){t.currentTransmux=e,aJ(t,e);return}t.transmuxQueue.push(aJ.bind(null,t,e))},a1=function(e){if(!e.transmuxer.currentTransmux){e.transmuxer.currentTransmux=e,aY(e);return}e.transmuxer.transmuxQueue.push(e)},a2={reset:function(e){a0("reset",e)},endTimeline:function(e){a0("endTimeline",e)},transmux:a1,createTransmuxer:function(e){var t=new aK;t.currentTransmux=null,t.transmuxQueue=[];var i=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,i.call(t)},t.postMessage({action:"init",options:e}),t}},a8=function(e){var t=e.transmuxer,i=e.endAction||e.action,n=e.callback,r=(0,v.Z)({},e,{endAction:null,transmuxer:null,callback:null});if(t.addEventListener("message",function r(a){a.data.action===i&&(t.removeEventListener("message",r),a.data.data&&(a.data.data=new Uint8Array(a.data.data,e.byteOffset||0,e.byteLength||a.data.data.byteLength),e.data&&(e.data=a.data.data)),n(a.data))}),e.data){var a=e.data instanceof ArrayBuffer;r.byteOffset=a?0:e.data.byteOffset,r.byteLength=e.data.byteLength;var s=[a?e.data:e.data.buffer];t.postMessage(r,s)}else t.postMessage(r)},a4={FAILURE:2,TIMEOUT:-101,ABORTED:-102},a5=function(e){e.forEach(function(e){e.abort()})},a3=function(e){var t=e.target,i={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return i.bytesReceived=e.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8e3),i},a6=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:a4.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:a4.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:a4.FAILURE,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:a4.FAILURE,xhr:t}:null},a7=function(e,t,i){return function(n,r){var a=r.response,s=a6(n,r);if(s)return i(s,e);if(16!==a.byteLength)return i({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:a4.FAILURE,xhr:r},e);for(var o=new DataView(a),l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]),u=0;u1){sd("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),t[e]=null;return}t[e]=t[e][0]}),t},sm=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},sg=function(e,t){var i=t.attributes||{},n=sf(sc(t)||[]);if(sh(e,t)&&!n.audio&&!sp(e,t)){var r=sf((0,D.Jg)(e,i.AUDIO)||[]);r.audio&&(n.audio=r.audio)}return n},s_=rb("PlaylistSelector"),sv=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},sy=function(e,t){if(!e)return"";var i=m().getComputedStyle(e);return i?i[t]:""},sT=function(e,t){var i=e.slice();e.sort(function(e,n){var r=t(e,n);return 0===r?i.indexOf(e)-i.indexOf(n):r})},sb=function(e,t){var i,n;return e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||m().Number.MAX_VALUE,t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),i-(n=n||m().Number.MAX_VALUE)},sS=function(e,t,i,n,r,a){if(e){var s,o,l,u,d={bandwidth:t,width:i,height:n,limitRenditionByPlayerDimensions:r},c=e.playlists;r0.isAudioOnly(e)&&(c=a.getAudioTrackPlaylists_(),d.audioOnly=!0);var h=c.map(function(e){var t=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return{bandwidth:e.attributes&&e.attributes.BANDWIDTH||m().Number.MAX_VALUE,width:t,height:i,playlist:e}});sT(h,function(e,t){return e.bandwidth-t.bandwidth});var p=(h=h.filter(function(e){return!r0.isIncompatible(e.playlist)})).filter(function(e){return r0.isEnabled(e.playlist)});p.length||(p=h.filter(function(e){return!r0.isDisabled(e.playlist)}));var f=p.filter(function(e){return e.bandwidth*aj.BANDWIDTH_VARIANCEi||e.height>n})).filter(function(e){return e.width===s[0].width&&e.height===s[0].height}))[o.length-1],l=o.filter(function(e){return e.bandwidth===g.bandwidth})[0]),a.experimentalLeastPixelDiffSelector){var k=T.map(function(e){return e.pixelDiff=Math.abs(e.width-i)+Math.abs(e.height-n),e});sT(k,function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff}),u=k[0]}var C=u||l||S||_||p[0]||h[0];if(C&&C.playlist){var E="sortedPlaylistReps";return u?E="leastPixelDiffRep":l?E="resolutionPlusOneRep":S?E="resolutionBestRep":_?E="bandwidthBestRep":p[0]&&(E="enabledPlaylistReps"),s_("choosing "+sv(C)+" using "+E+" with options",d),C.playlist}return s_("could not choose a playlist with options",d),null}},sk=function(){var e=this.useDevicePixelRatio&&m().devicePixelRatio||1;return sS(this.playlists.master,this.systemBandwidth,parseInt(sy(this.tech_.el(),"width"),10)*e,parseInt(sy(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},sC=function(e){var t=e.master,i=e.currentTime,n=e.bandwidth,r=e.duration,a=e.segmentDuration,s=e.timeUntilRebuffer,o=e.currentTimeline,l=e.syncController,u=t.playlists.filter(function(e){return!r0.isIncompatible(e)}),d=u.filter(r0.isEnabled);d.length||(d=u.filter(function(e){return!r0.isDisabled(e)}));var c=d.filter(r0.hasAttribute.bind(null,"BANDWIDTH")).map(function(e){var t=l.getSyncPoint(e,r,o,i),u=r0.estimateSegmentRequestTime(a,n,e);return{playlist:e,rebufferingImpact:u*(t?1:2)-s}}),h=c.filter(function(e){return e.rebufferingImpact<=0});return(sT(h,function(e,t){return sb(t.playlist,e.playlist)}),h.length)?h[0]:(sT(c,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),c[0]||null)},sE=function(e){var t,i=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach(function(e){t.set(e,i),i+=e.byteLength})),t},sw=function(e,t,i){if(!e[i]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var n=i;/^cc708_/.test(i)&&(n="SERVICE"+i.split("_")[1]);var r=t.textTracks().getTrackById(n);if(r)e[i]=r;else{var a=t.options_.vhs&&t.options_.vhs.captionServices||{},s=i,o=i,l=!1,u=a[n];u&&(s=u.label,o=u.language,l=u.default),e[i]=t.addRemoteTextTrack({kind:"captions",id:n,default:l,label:s,language:o},!1).track}}},sI=function(e){var t=e.inbandTextTracks,i=e.captionArray,n=e.timestampOffset;if(i){var r=m().WebKitDataCue||m().VTTCue;i.forEach(function(e){t[e.stream].addCue(new r(e.startTime+n,e.endTime+n,e.text))})}},sx=function(e){Object.defineProperties(e.frame,{id:{get:function(){return rg.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return rg.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return rg.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},sP=function(e){var t=e.inbandTextTracks,i=e.metadataArray,n=e.timestampOffset,r=e.videoDuration;if(i){var a=m().WebKitDataCue||m().VTTCue,s=t.metadataTrack_;if(s&&(i.forEach(function(e){var t=e.cueTime+n;"number"!=typeof t||m().isNaN(t)||t<0||!(t<1/0)||e.frames.forEach(function(e){var i=new a(t,t,e.value||e.url||e.data||"");i.frame=e,i.value=e,sx(i),s.addCue(i)})}),s.cues&&s.cues.length)){for(var o=s.cues,l=[],u=0;u=e&&r.endTime<=t&&i.removeCue(r)},sO=function(e){var t=e.cues;if(t)for(var i=0;i1&&n.push(t[a]);n.length&&n.forEach(function(t){return e.removeCue(t)})}},sD=function(e,t,i){if(null==t||!e.length)return[];var n,r=Math.ceil((t-i+3)*H.ONE_SECOND_IN_TS);for(n=0;nr);n++);return e.slice(n)},sM=function(e,t,i){if(!t.length)return e;if(i)return t.slice();for(var n=t[0].pts,r=0;r=n);r++);return e.slice(0,r).concat(t)},sR=function(e,t,i,n){for(var r=Math.ceil((t-n)*H.ONE_SECOND_IN_TS),a=Math.ceil((i-n)*H.ONE_SECOND_IN_TS),s=e.slice(),o=e.length;o--&&!(e[o].pts<=a););if(-1===o)return s;for(var l=o+1;l--&&!(e[l].pts<=r););return l=Math.max(l,0),s.splice(l,o-l+1),s},sU=function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var i=Object.keys(e).sort(),n=Object.keys(t).sort();if(i.length!==n.length)return!1;for(var r=0;ri))return a}return 0===n.length?0:n[n.length-1]},sN=function(e){return"number"==typeof e&&isFinite(e)},sF=1/60,sj=function(e,t,i){var n=t-aj.BACK_BUFFER_LENGTH;return e.length&&(n=Math.max(n,e.start(0))),Math.min(t-i,n)},sH=function(e){var t=e.startOfSegment,i=e.duration,n=e.segment,r=e.part,a=e.playlist,s=a.mediaSequence,o=a.id,l=a.segments,u=e.mediaIndex,d=e.partIndex,c=e.timeline,h=(void 0===l?[]:l).length-1,p="mediaIndex/partIndex increment";e.getMediaInfoForTime?p="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(p="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(p+=" with independent "+e.independent);var f="number"==typeof d,m=e.segment.uri?"segment":"pre-segment",g=f?rN({preloadSegment:n})-1:0;return m+" ["+(s+u)+"/"+(s+h)+"]"+(f?" part ["+d+"/"+g+"]":"")+(" segment start/end ["+n.start)+" => "+n.end+"]"+(f?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+i+"] timeline ["+c+"] selected by ["+p+"] playlist ["+o+"]"},sq=function(e){return e+"TimingInfo"},sV=function(e){var t=e.segmentTimeline,i=e.currentTimeline,n=e.startOfSegment,r=e.buffered;return e.overrideCheck||t!==i?tt&&(t=n)}}),"bigint"==typeof t&&ti+rS},sK=function(e,t){if("hls"!==t)return null;var i=sz({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!i)return null;var n=e.playlist.targetDuration,r=sG({segmentDuration:i,maxDuration:2*n}),a=sG({segmentDuration:i,maxDuration:n}),s="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+i+" when the reported duration is "+e.duration+" and the target duration is "+n+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return r||a?{severity:r?"warn":"info",message:s}:null},sZ=function(e){function t(t,i){var n;if(n=e.call(this)||this,!t)throw TypeError("Initialization settings are required");if("function"!=typeof t.currentTime)throw TypeError("No currentTime getter specified");if(!t.mediaSource)throw TypeError("No MediaSource specified");return n.bandwidth=t.bandwidth,n.throughput={rate:0,count:0},n.roundTrip=NaN,n.resetStats_(),n.mediaIndex=null,n.partIndex=null,n.hasPlayed_=t.hasPlayed,n.currentTime_=t.currentTime,n.seekable_=t.seekable,n.seeking_=t.seeking,n.duration_=t.duration,n.mediaSource_=t.mediaSource,n.vhs_=t.vhs,n.loaderType_=t.loaderType,n.currentMediaInfo_=void 0,n.startingMediaInfo_=void 0,n.segmentMetadataTrack_=t.segmentMetadataTrack,n.goalBufferLength_=t.goalBufferLength,n.sourceType_=t.sourceType,n.sourceUpdater_=t.sourceUpdater,n.inbandTextTracks_=t.inbandTextTracks,n.state_="INIT",n.timelineChangeController_=t.timelineChangeController,n.shouldSaveSegmentTimingInfo_=!0,n.parse708captions_=t.parse708captions,n.useDtsForTimestampOffset_=t.useDtsForTimestampOffset,n.captionServices_=t.captionServices,n.experimentalExactManifestTimings=t.experimentalExactManifestTimings,n.checkBufferTimeout_=null,n.error_=void 0,n.currentTimeline_=-1,n.pendingSegment_=null,n.xhrOptions_=null,n.pendingSegments_=[],n.audioDisabled_=!1,n.isPendingTimestampOffset_=!1,n.gopBuffer_=[],n.timeMapping_=0,n.safeAppend_=rg.browser.IE_VERSION>=11,n.appendInitSegment_={audio:!0,video:!0},n.playlistOfLastInitSegment_={audio:null,video:null},n.callQueue_=[],n.loadQueue_=[],n.metadataQueue_={id3:[],caption:[]},n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=null,n.activeInitSegmentId_=null,n.initSegments_={},n.cacheEncryptionKeys_=t.cacheEncryptionKeys,n.keyCache_={},n.decrypter_=t.decrypter,n.syncController_=t.syncController,n.syncPoint_={segmentIndex:0,time:0},n.transmuxer_=n.createTransmuxer_(),n.triggerSyncInfoUpdate_=function(){return n.trigger("syncinfoupdate")},n.syncController_.on("syncinfoupdate",n.triggerSyncInfoUpdate_),n.mediaSource_.addEventListener("sourceopen",function(){n.isEndOfStream_()||(n.ended_=!1)}),n.fetchAtBuffer_=!1,n.logger_=rb("SegmentLoader["+n.loaderType_+"]"),Object.defineProperty((0,b.Z)(n),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),n.sourceUpdater_.on("ready",function(){n.hasEnoughInfoToAppend_()&&n.processCallQueue_()}),"main"===n.loaderType_&&n.timelineChangeController_.on("pendingtimelinechange",function(){n.hasEnoughInfoToAppend_()&&n.processCallQueue_()}),"audio"===n.loaderType_&&n.timelineChangeController_.on("timelinechange",function(){n.hasEnoughInfoToLoad_()&&n.processLoadQueue_(),n.hasEnoughInfoToAppend_()&&n.processCallQueue_()}),n}(0,S.Z)(t,e);var i=t.prototype;return i.createTransmuxer_=function(){return a2.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},i.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},i.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&m().clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},i.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},i.abort=function(){if("WAITING"!==this.state){this.pendingSegment_&&(this.pendingSegment_=null);return}this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()},i.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,m().clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},i.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},i.error=function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},i.endOfStream=function(){this.ended_=!0,this.transmuxer_&&a2.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},i.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return rg.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,i=e.hasVideo,n=e.isMuxed;if(i&&t&&!this.audioDisabled_&&!n)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},i.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var i=ay(e),n=this.initSegments_[i];return t&&!n&&e.bytes&&(this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),n||e},i.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var i=aT(e),n=this.keyCache_[i];this.cacheEncryptionKeys_&&t&&!n&&e.bytes&&(this.keyCache_[i]=n={resolvedUri:e.resolvedUri,bytes:e.bytes});var r={resolvedUri:(n||e).resolvedUri};return n&&(r.bytes=n.bytes),r},i.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},i.load=function(){if(this.monitorBuffer_(),this.playlist_){if("INIT"===this.state&&this.couldBeginLoading_())return this.init_();this.couldBeginLoading_()&&("READY"===this.state||"INIT"===this.state)&&(this.state="READY")}},i.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},i.playlist=function(e,t){if(void 0===t&&(t={}),e){var i=this.playlist_,n=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var r=null;if(i&&(i.id?r=i.id:i.uri&&(r=i.uri)),this.logger_("playlist update ["+r+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri){null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}var a=e.mediaSequence-i.mediaSequence;if(this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex){if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var s=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!s.parts||!s.parts.length||!s.parts[this.partIndex])){var o=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=o}}}n&&(n.mediaIndex-=a,n.mediaIndex<0?(n.mediaIndex=null,n.partIndex=null):(n.mediaIndex>=0&&(n.segment=e.segments[n.mediaIndex]),n.partIndex>=0&&n.segment.parts&&(n.part=n.segment.parts[n.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}},i.pause=function(){this.checkBufferTimeout_&&(m().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},i.paused=function(){return null===this.checkBufferTimeout_},i.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},i.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},i.resyncLoader=function(){this.transmuxer_&&a2.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},i.remove=function(e,t,i,n){if(void 0===i&&(i=function(){}),void 0===n&&(n=!1),t===1/0&&(t=this.duration_()),t<=e){this.logger_("skipping remove because end ${end} is <= start ${start}");return}if(!this.sourceUpdater_||!this.getMediaInfo_()){this.logger_("skipping remove because no source updater or starting media info");return}var r=1,a=function(){0==--r&&i()};for(var s in(n||!this.audioDisabled_)&&(r++,this.sourceUpdater_.removeAudio(e,t,a)),(n||"main"===this.loaderType_)&&(this.gopBuffer_=sR(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,a)),this.inbandTextTracks_)sL(e,t,this.inbandTextTracks_[s]);sL(e,t,this.segmentMetadataTrack_),a()},i.monitorBuffer_=function(){this.checkBufferTimeout_&&m().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=m().setTimeout(this.monitorBufferTick_.bind(this),1)},i.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&m().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=m().setTimeout(this.monitorBufferTick_.bind(this),500)},i.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();e&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}},i.isEndOfStream_=function(e,t,i){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===i&&(i=this.partIndex),!t||!this.mediaSource_)return!1;var n="number"==typeof e&&t.segments[e],r=e+1===t.segments.length,a=!n||!n.parts||i+1===n.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&a},i.chooseNextRequest_=function(){var e=this.buffered_(),t=rO(e)||0,i=rD(e,this.currentTime_()),n=!this.hasPlayed_()&&i>=1,r=i>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||n||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var s={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(s.isSyncRequest)s.mediaIndex=sB(this.currentTimeline_,a,t);else if(null!==this.mediaIndex){var o=a[this.mediaIndex],l="number"==typeof this.partIndex?this.partIndex:-1;s.startOfSegment=o.end?o.end:t,o.parts&&o.parts[l+1]?(s.mediaIndex=this.mediaIndex,s.partIndex=l+1):s.mediaIndex=this.mediaIndex+1}else{var u=r0.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),d=u.segmentIndex,c=u.startTime,h=u.partIndex;s.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),s.mediaIndex=d,s.startOfSegment=c,s.partIndex=h}var p=a[s.mediaIndex],f=p&&"number"==typeof s.partIndex&&p.parts&&p.parts[s.partIndex];if(!p||"number"==typeof s.partIndex&&!f)return null;if("number"!=typeof s.partIndex&&p.parts&&(s.partIndex=0,f=p.parts[0]),!i&&f&&!f.independent){if(0===s.partIndex){var m=a[s.mediaIndex-1],g=m.parts&&m.parts.length&&m.parts[m.parts.length-1];g&&g.independent&&(s.mediaIndex-=1,s.partIndex=m.parts.length-1,s.independent="previous segment")}else p.parts[s.partIndex-1].independent&&(s.partIndex-=1,s.independent="previous part")}var _=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return s.mediaIndex>=a.length-1&&_&&!this.seeking_()?null:this.generateSegmentInfo_(s)},i.generateSegmentInfo_=function(e){var t=e.independent,i=e.playlist,n=e.mediaIndex,r=e.startOfSegment,a=e.isSyncRequest,s=e.partIndex,o=e.forceTimestampOffset,l=e.getMediaInfoForTime,u=i.segments[n],d="number"==typeof s&&u.parts[s],c={requestId:"segment-loader-"+Math.random(),uri:d&&d.resolvedUri||u.resolvedUri,mediaIndex:n,partIndex:d?s:null,isSyncRequest:a,startOfSegment:r,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:d&&d.duration||u.duration,segment:u,part:d,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},h=void 0!==o?o:this.isPendingTimestampOffset_;c.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:h});var p=rO(this.sourceUpdater_.audioBuffered());return"number"==typeof p&&(c.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(c.gopsToAlignWith=sD(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),c},i.timestampOffsetForSegment_=function(e){return sV(e)},i.earlyAbortWhenNeeded_=function(e){if(!(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t,i,n=this.currentTime_(),r=e.bandwidth,a=this.pendingSegment_.duration,s=r0.estimateSegmentRequestTime(a,r,this.playlist_,e.bytesReceived),o=(t=this.buffered_(),void 0===(i=this.vhs_.tech_.playbackRate())&&(i=1),((t.length?t.end(t.length-1):0)-n)/i-1);if(!(s<=o)){var l=sC({master:this.vhs_.playlists.master,currentTime:n,bandwidth:r,duration:this.duration_(),segmentDuration:a,timeUntilRebuffer:o,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(l){var u=s-o-l.rebufferingImpact,d=.5;o<=rS&&(d=1),l.playlist&&l.playlist.uri!==this.playlist_.uri&&!(u "+s+" for "+e),sw(l,i.vhs_.tech_,e),sL(a,s,l[e]),sI({captionArray:o,inbandTextTracks:l,timestampOffset:n})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}},i.handleId3_=function(e,t,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,i));return}var n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();sA(this.inbandTextTracks_,i,this.vhs_.tech_),sP({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:n,videoDuration:this.duration_()})}},i.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach(function(e){return e()}),this.metadataQueue_.caption.forEach(function(e){return e()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},i.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach(function(e){return e()})},i.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach(function(e){return e()})},i.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!sW({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},i.getCurrentMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),e&&e.trackInfo||this.currentMediaInfo_},i.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},i.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var i=t.hasAudio,n=t.hasVideo,r=t.isMuxed;return!(n&&!e.videoTimingInfo||i&&!this.audioDisabled_&&!r&&!e.audioTimingInfo||sW({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},i.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){this.callQueue_.push(this.handleData_.bind(this,e,t));return}var i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||i.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4)this.trigger("fmp4"),i.timingInfo.start=i[sq(t.type)].start;else{var n,r=this.getCurrentMediaInfo_(),a="main"===this.loaderType_&&r&&r.hasVideo;a&&(n=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:a,firstVideoFrameTimeForData:n,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(i,t.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:"main"===this.loaderType_});var s=this.chooseNextRequest_();if(s.mediaIndex!==i.mediaIndex||s.partIndex!==i.partIndex){this.logger_("sync segment was incorrect, not appending");return}this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,t)}}},i.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},i.getInitSegmentAndUpdateState_=function(e){var t=e.type,i=e.initSegment,n=e.map,r=e.playlist;if(n){var a=ay(n);if(this.activeInitSegmentId_===a)return null;i=this.initSegmentForMap(n,!0).bytes,this.activeInitSegmentId_=a}return i&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,i):null},i.handleQuotaExceededError_=function(e,t){var i=this,n=e.segmentInfo,r=e.type,a=e.bytes,s=this.sourceUpdater_.audioBuffered(),o=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+rA(s).join(", ")),o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+rA(o).join(", "));var l=s.length?s.start(0):0,u=s.length?s.end(s.length-1):0,d=o.length?o.start(0):0,c=o.length?o.end(o.length-1):0;if(u-l<=1&&c-d<=1){this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+a.byteLength+", audio buffer: "+rA(s).join(", ")+", video buffer: "+rA(o).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),this.trigger("error");return}this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:n,type:r,bytes:a}));var h=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+h),this.remove(0,h,function(){i.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=m().setTimeout(function(){i.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),i.quotaExceededErrorRetryTimeout_=null,i.processCallQueue_()},1e3)},!0)},i.handleAppendError_=function(e,t){var i=e.segmentInfo,n=e.type,r=e.bytes;if(t){if(22===t.code){this.handleQuotaExceededError_({segmentInfo:i,type:n,bytes:r});return}this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(n+" append of "+r.length+"b failed for segment #"+i.mediaIndex+" in playlist "+i.playlist.id),this.trigger("appenderror")}},i.appendToSourceBuffer_=function(e){var t=e.segmentInfo,i=e.type,n=e.initSegment,r=e.data,a=e.bytes;if(!a){var s=[r],o=r.byteLength;n&&(s.unshift(n),o+=n.byteLength),a=sE({bytes:o,segments:s})}this.sourceUpdater_.appendBuffer({segmentInfo:t,type:i,bytes:a},this.handleAppendError_.bind(this,{segmentInfo:t,type:i,bytes:a}))},i.handleSegmentTimingInfo_=function(e,t,i){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var n=this.pendingSegment_.segment,r=e+"TimingInfo";n[r]||(n[r]={}),n[r].transmuxerPrependedSeconds=i.prependedContentDuration||0,n[r].transmuxedPresentationStart=i.start.presentation,n[r].transmuxedDecodeStart=i.start.decode,n[r].transmuxedPresentationEnd=i.end.presentation,n[r].transmuxedDecodeEnd=i.end.decode,n[r].baseMediaDecodeTime=i.baseMediaDecodeTime}},i.appendData_=function(e,t){var i=t.type,n=t.data;if(n&&n.byteLength&&("audio"!==i||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:i,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:r,data:n})}},i.loadSegment_=function(e){var t=this;if(this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_()){this.loadQueue_.push(function(){var i=(0,v.Z)({},e,{forceTimestampOffset:!0});(0,v.Z)(e,t.generateSegmentInfo_(i)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)});return}this.updateTransmuxerAndRequestSegment_(e)},i.updateTransmuxerAndRequestSegment_=function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var i=this.createSimplifiedSegmentObj_(e),n=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=null!==this.mediaIndex,a=e.timeline!==this.currentTimeline_&&e.timeline>0;this.logger_("Requesting "+sH(e)),i.map&&!i.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=su({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:i,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:n||r&&a,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(i){var n=i.message,r=i.level,a=i.stream;t.logger_(sH(e)+" logged from transmuxer stream "+a+" as a "+r+": "+n)}})},i.trimBackBuffer_=function(e){var t=sj(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)},i.createSimplifiedSegmentObj_=function(e){var t=e.segment,i=e.part,n={resolvedUri:i?i.resolvedUri:t.resolvedUri,byterange:i?i.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},r=e.playlist.segments[e.mediaIndex-1];if(r&&r.timeline===t.timeline&&(r.videoTimingInfo?n.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(n.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){var a=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);n.key=this.segmentKey(t.key),n.key.iv=a}return t.map&&(n.map=this.initSegmentForMap(t.map)),n},i.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},i.saveBandwidthRelatedStats_=function(e,t){if(this.pendingSegment_.byteLength=t.bytesReceived,e3*e.playlist.targetDuration,a=n&&n.end&&this.currentTime_()-n.end>3*e.playlist.partTargetDuration;if(r||a){this.logger_("bad "+(r?"segment":"part")+" "+sH(e)),this.resetEverything();return}null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()},i.recordThroughput_=function(e){if(e.duration=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},i.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},i.segmentRequestFinished_=function(e,t,i){var n=this;if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(t.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(e){e.code===a4.TIMEOUT&&this.handleTimeout_(),e.code===a4.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(e);return}var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");var a=r.segment;if(a.map&&(a.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!=typeof m().WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var s,o=function(){n.subtitlesTrack_.tech_.off("vttjsloaded",s),n.stopForError({message:"Error loading vtt.js"})};s=function(){n.subtitlesTrack_.tech_.off("vttjserror",o),n.segmentRequestFinished_(e,t,i)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",s),this.subtitlesTrack_.tech_.one("vttjserror",o);return}a.requested=!0;try{this.parseVTTCues_(r)}catch(l){this.stopForError({message:l.message});return}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=a.duration,r.cues.forEach(function(e){n.subtitlesTrack_.addCue(n.featuresNativeTextTracks_?new(m()).VTTCue(e.startTime,e.endTime,e.text):e)}),sO(this.subtitlesTrack_),this.handleAppendsDone_()},i.handleData_=function(){},i.updateTimingInfoEnd_=function(){},i.parseVTTCues_=function(e){var t,i=!1;"function"==typeof m().TextDecoder?t=new(m()).TextDecoder("utf8"):(t=m().WebVTT.StringDecoder(),i=!0);var n=new(m()).WebVTT.Parser(m(),m().vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},n.oncue=e.cues.push.bind(e.cues),n.ontimestampmap=function(t){e.timestampmap=t},n.onparsingerror=function(e){rg.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var r=e.segment.map.bytes;i&&(r=s6(r)),n.parse(r)}var a=e.bytes;i&&(a=s6(a)),n.parse(a),n.flush()},i.updateTimeMapping_=function(e,t,i){var n=e.segment;if(t){if(!e.cues.length){n.empty=!0;return}var r=e.timestampmap,a=r.MPEGTS/H.ONE_SECOND_IN_TS-r.LOCAL+t.mapping;if(e.cues.forEach(function(e){e.startTime+=a,e.endTime+=a}),!i.syncInfo){var s=e.cues[0].startTime,o=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(s,o-n.duration)}}}},t}(sZ),oe=function(e,t){for(var i=e.cues,n=0;n=r.adStartTime&&t<=r.adEndTime)return r}return null},ot=function(e,t,i){if(void 0===i&&(i=0),e.segments)for(var n,r=i,a=0;a=h)&&(s=h,a={time:c,segmentIndex:u.segmentIndex,partIndex:u.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,i,n,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var s=null,o=0;o=c)&&(s=c,a={time:d.time,segmentIndex:l,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,i,n,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],on=function(e){function t(t){var i;return(i=e.call(this)||this).timelines=[],i.discontinuities=[],i.timelineToDatetimeMappings={},i.logger_=rb("SyncController"),i}(0,S.Z)(t,e);var i=t.prototype;return i.getSyncPoint=function(e,t,i,n){var r=this.runStrategies_(e,t,i,n);return r.length?this.selectSyncPoint_(r,{key:"time",value:n}):null},i.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var i=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!i.length)return null;var n=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return n.segmentIndex>0&&(n.time*=-1),Math.abs(n.time+rW({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:n.segmentIndex,endIndex:0}))},i.runStrategies_=function(e,t,i,n){for(var r=[],a=0;a86400){rg.log.warn("Not saving expired segment info. Media sequence gap "+i+" is too large.");return}for(var n=i-1;n>=0;n--){var r=e.segments[n];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+n,time:r.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},i.setDateTimeMappingForStart=function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],i=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-i}},i.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,i=e.shouldSaveTimelineMapping,n=this.calculateSegmentTimeMapping_(t,t.timingInfo,i),r=t.segment;n&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));var a=r.dateTimeObject;r.discontinuity&&i&&a&&(this.timelineToDatetimeMappings[r.timeline]=-(a.getTime()/1e3))},i.timestampOffsetForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].time},i.mappingForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping},i.calculateSegmentTimeMapping_=function(e,t,i){var n,r,a=e.segment,s=e.part,o=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},i&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": "+("[time: "+o.time)+"] [mapping: "+o.mapping+"]")),n=e.startOfSegment,r=t.end+o.mapping;else{if(!o)return!1;n=t.start+o.mapping,r=t.end+o.mapping}return s&&(s.start=n,s.end=r),(!a.start||no){var l=void 0;l=s<0?i.start-rW({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):i.end+rW({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[a]={time:l,accuracy:o}}}},i.dispose=function(){this.trigger("dispose"),this.off()},t}(rg.EventTarget),or=function(e){function t(){var t;return(t=e.call(this)||this).pendingTimelineChanges_={},t.lastTimelineChanges_={},t}(0,S.Z)(t,e);var i=t.prototype;return i.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},i.pendingTimelineChange=function(e){var t=e.type,i=e.from,n=e.to;return"number"==typeof i&&"number"==typeof n&&(this.pendingTimelineChanges_[t]={type:t,from:i,to:n},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},i.lastTimelineChange=function(e){var t=e.type,i=e.from,n=e.to;return"number"==typeof i&&"number"==typeof n&&(this.lastTimelineChanges_[t]={type:t,from:i,to:n},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},i.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(rg.EventTarget),oa=aW(az(aG(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function t(e,t,i){return e(i={path:t,exports:{},require:function(e,t){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e,null==t?i.path:t)}},i.exports),i.exports}var n=t(function(e){function t(e,t){for(var i=0;i-1},t.trigger=function(e){var t=this.listeners[e];if(t){if(2==arguments.length)for(var i=t.length,n=0;n>7)*283)^e]=e;for(t=i=0;!c[t];t^=n||1,i=f[i]||1)for(e=0,a=(a=i^i<<1^i<<2^i<<3^i<<4)>>8^255&a^99,c[t]=a,h[a]=t,o=16843009*p[r=p[n=p[t]]]^65537*r^257*n^16843008*t,s=257*p[a]^16843008*a;e<4;e++)u[e][t]=s=s<<24^s>>>8,d[e][a]=o=o<<24^o>>>8;for(e=0;e<5;e++)u[e]=u[e].slice(0),d[e]=d[e].slice(0);return l},l=null,u=function(){function e(e){l||(l=o()),this._tables=[[l[0][0].slice(),l[0][1].slice(),l[0][2].slice(),l[0][3].slice(),l[0][4].slice()],[l[1][0].slice(),l[1][1].slice(),l[1][2].slice(),l[1][3].slice(),l[1][4].slice()]];var t,i,n,r=this._tables[0][4],a=this._tables[1],s=e.length,u=1;if(4!==s&&6!==s&&8!==s)throw Error("Invalid aes key size");var d=e.slice(0),c=[];for(this._key=[d,c],t=s;t<4*s+28;t++)n=d[t-1],(t%s==0||8===s&&t%s==4)&&(n=r[n>>>24]<<24^r[n>>16&255]<<16^r[n>>8&255]<<8^r[255&n],t%s==0&&(n=n<<8^n>>>24^u<<24,u=u<<1^(u>>7)*283)),d[t]=d[t-s]^n;for(i=0;t;i++,t--)n=d[3&i?t:t-4],t<=4||i<4?c[i]=n:c[i]=a[0][r[n>>>24]]^a[1][r[n>>16&255]]^a[2][r[n>>8&255]]^a[3][r[255&n]]}return e.prototype.decrypt=function(e,t,i,n,r,a){var s,o,l,u,d=this._key[1],c=e^d[0],h=n^d[1],p=i^d[2],f=t^d[3],m=d.length/4-2,g=4,_=this._tables[1],v=_[0],y=_[1],T=_[2],b=_[3],S=_[4];for(u=0;u>>24]^y[h>>16&255]^T[p>>8&255]^b[255&f]^d[g],o=v[h>>>24]^y[p>>16&255]^T[f>>8&255]^b[255&c]^d[g+1],l=v[p>>>24]^y[f>>16&255]^T[c>>8&255]^b[255&h]^d[g+2],f=v[f>>>24]^y[c>>16&255]^T[h>>8&255]^b[255&p]^d[g+3],g+=4,c=s,h=o,p=l;for(u=0;u<4;u++)r[(3&-u)+a]=S[c>>>24]<<24^S[h>>16&255]<<16^S[p>>8&255]<<8^S[255&f]^d[g++],s=c,c=h,h=p,p=f,f=s},e}(),d=function(e){function t(){var t;return(t=e.call(this,s)||this).jobs=[],t.delay=1,t.timeout_=null,t}a(t,e);var i=t.prototype;return i.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},i.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(s),c=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},h=function(e,t,i){var n,r,a,s,o,l,d,h,p,f=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),m=new u(Array.prototype.slice.call(t)),g=new Uint8Array(e.byteLength),_=new Int32Array(g.buffer);for(p=0,n=i[0],r=i[1],a=i[2],s=i[3];p=0&&(t="main-desc"),t},oo=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},ol=function(e,t){t.activePlaylistLoader=e,e.load()},ou={AUDIO:function(e,t){return function(){var i=t.segmentLoaders[e],n=t.mediaTypes[e],r=t.blacklistCurrentPlaylist;oo(i,n);var a=n.activeTrack(),s=n.activeGroup(),o=(s.filter(function(e){return e.default})[0]||s[0]).id,l=n.tracks[o];if(a===l){r({message:"Problem encountered loading the default audio track."});return}for(var u in rg.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),n.tracks)n.tracks[u].enabled=n.tracks[u]===l;n.onTrackChanged()}},SUBTITLES:function(e,t){return function(){var i=t.segmentLoaders[e],n=t.mediaTypes[e];rg.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),oo(i,n);var r=n.activeTrack();r&&(r.mode="disabled"),n.onTrackChanged()}}},od={AUDIO:function(e,t,i){if(t){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),(!n.paused()||e.endList&&"none"!==n.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),n.paused()||a.load()}),t.on("error",ou[e](e,i))}},SUBTITLES:function(e,t,i){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[e],s=i.mediaTypes[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),a.track(s.activeTrack()),(!n.paused()||e.endList&&"none"!==n.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),n.paused()||a.load()}),t.on("error",ou[e](e,i))}},oc={AUDIO:function(e,t){var i=t.vhs,n=t.sourceType,r=t.segmentLoaders[e],a=t.requestOptions,s=t.master.mediaGroups,o=t.mediaTypes[e],l=o.groups,u=o.tracks,d=o.logger_,c=t.masterPlaylistLoader,h=rJ(c.master);for(var p in(!s[e]||0===Object.keys(s[e]).length)&&(s[e]={main:{default:{default:!0}}},h&&(s[e].main.default.playlists=c.master.playlists)),s[e])for(var f in l[p]||(l[p]=[]),s[e][p]){var m=s[e][p][f],g=void 0;if(h?(d("AUDIO group '"+p+"' label '"+f+"' is a master playlist"),m.isMasterPlaylist=!0,g=null):g="vhs-json"===n&&m.playlists?new ad(m.playlists[0],i,a):m.resolvedUri?new ad(m.resolvedUri,i,a):m.playlists&&"dash"===n?new aF(m.playlists[0],i,a,c):null,m=rg.mergeOptions({id:f,playlistLoader:g},m),od[e](e,m.playlistLoader,t),l[p].push(m),void 0===u[f]){var _=new rg.AudioTrack({id:f,kind:os(m),enabled:!1,language:m.language,default:m.default,label:f});u[f]=_}}r.on("error",ou[e](e,t))},SUBTITLES:function(e,t){var i=t.tech,n=t.vhs,r=t.sourceType,a=t.segmentLoaders[e],s=t.requestOptions,o=t.master.mediaGroups,l=t.mediaTypes[e],u=l.groups,d=l.tracks,c=t.masterPlaylistLoader;for(var h in o[e])for(var p in u[h]||(u[h]=[]),o[e][h])if(!o[e][h][p].forced){var f=o[e][h][p],m=void 0;if("hls"===r)m=new ad(f.resolvedUri,n,s);else if("dash"===r){if(!f.playlists.filter(function(e){return e.excludeUntil!==1/0}).length)return;m=new aF(f.playlists[0],n,s,c)}else"vhs-json"===r&&(m=new ad(f.playlists?f.playlists[0]:f.resolvedUri,n,s));if(f=rg.mergeOptions({id:p,playlistLoader:m},f),od[e](e,f.playlistLoader,t),u[h].push(f),void 0===d[p]){var g=i.addRemoteTextTrack({id:p,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:p},!1).track;d[p]=g}}a.on("error",ou[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var i=t.tech,n=t.master.mediaGroups,r=t.mediaTypes[e],a=r.groups,s=r.tracks;for(var o in n[e])for(var l in a[o]||(a[o]=[]),n[e][o]){var u=n[e][o][l];if(/^(?:CC|SERVICE)/.test(u.instreamId)){var d=i.options_.vhs&&i.options_.vhs.captionServices||{},c={label:l,language:u.language,instreamId:u.instreamId,default:u.default&&u.autoselect};if(d[c.instreamId]&&(c=rg.mergeOptions(c,d[c.instreamId])),void 0===c.default&&delete c.default,a[o].push(rg.mergeOptions({id:l},u)),void 0===s[l]){var h=i.addRemoteTextTrack({id:c.instreamId,kind:"captions",default:c.default,language:c.language,label:c.label},!1).track;s[l]=h}}}}},oh=function e(t,i){for(var n=0;n1&&rJ(e.master))for(var l=0;l "+r.id;if(!t)return u(d+" as current playlist is not set"),!0;if(r.id===t.id)return!1;var c=Boolean(rE(i,n).length);if(!t.endList)return c||"number"!=typeof t.partTargetDuration?(u(d+" as current playlist is live"),!0):(u("not "+d+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var h=rD(i,n),p=l?aj.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:aj.MAX_BUFFER_LOW_WATER_LINE;if(om)&&h>=a){var _=d+" as forwardBuffer >= bufferLowWaterLine ("+h+" >= "+a+")";return l&&(_+=" and next bandwidth > current bandwidth ("+f+" > "+m+")"),u(_),!0}return u("not "+d+" as no switching criteria met"),!1},oT=function(e){function t(t){i=e.call(this)||this;var i,n=t.src,r=t.handleManifestRedirects,a=t.withCredentials,s=t.tech,o=t.bandwidth,l=t.externVhs,u=t.useCueTags,d=t.blacklistDuration,c=t.enableLowInitialPlaylist,h=t.sourceType,f=t.cacheEncryptionKeys,g=t.experimentalBufferBasedABR,_=t.experimentalLeastPixelDiffSelector,v=t.captionServices;if(!n)throw Error("A non-empty playlist URL or JSON manifest string is required");var y=t.maxPlaylistRetries;null==y&&(y=1/0),p=l,i.experimentalBufferBasedABR=Boolean(g),i.experimentalLeastPixelDiffSelector=Boolean(_),i.withCredentials=a,i.tech_=s,i.vhs_=s.vhs,i.sourceType_=h,i.useCueTags_=u,i.blacklistDuration=d,i.maxPlaylistRetries=y,i.enableLowInitialPlaylist=c,i.useCueTags_&&(i.cueTagsTrack_=i.tech_.addTextTrack("metadata","ad-cues"),i.cueTagsTrack_.inBandMetadataTrackDispatchType=""),i.requestOptions_={withCredentials:a,handleManifestRedirects:r,maxPlaylistRetries:y,timeout:null},i.on("error",i.pauseLoading),i.mediaTypes_=og(),i.mediaSource=new(m()).MediaSource,i.handleDurationChange_=i.handleDurationChange_.bind((0,b.Z)(i)),i.handleSourceOpen_=i.handleSourceOpen_.bind((0,b.Z)(i)),i.handleSourceEnded_=i.handleSourceEnded_.bind((0,b.Z)(i)),i.mediaSource.addEventListener("durationchange",i.handleDurationChange_),i.mediaSource.addEventListener("sourceopen",i.handleSourceOpen_),i.mediaSource.addEventListener("sourceended",i.handleSourceEnded_),i.seekable_=rg.createTimeRanges(),i.hasPlayed_=!1,i.syncController_=new on(t),i.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,i.decrypter_=new oa,i.sourceUpdater_=new s3(i.mediaSource),i.inbandTextTracks_={},i.timelineChangeController_=new or;var T={vhs:i.vhs_,parse708captions:t.parse708captions,useDtsForTimestampOffset:t.useDtsForTimestampOffset,captionServices:v,mediaSource:i.mediaSource,currentTime:i.tech_.currentTime.bind(i.tech_),seekable:function(){return i.seekable()},seeking:function(){return i.tech_.seeking()},duration:function(){return i.duration()},hasPlayed:function(){return i.hasPlayed_},goalBufferLength:function(){return i.goalBufferLength()},bandwidth:o,syncController:i.syncController_,decrypter:i.decrypter_,sourceType:i.sourceType_,inbandTextTracks:i.inbandTextTracks_,cacheEncryptionKeys:f,sourceUpdater:i.sourceUpdater_,timelineChangeController:i.timelineChangeController_,experimentalExactManifestTimings:t.experimentalExactManifestTimings};i.masterPlaylistLoader_="dash"===i.sourceType_?new aF(n,i.vhs_,i.requestOptions_):new ad(n,i.vhs_,i.requestOptions_),i.setupMasterPlaylistLoaderListeners_(),i.mainSegmentLoader_=new sZ(rg.mergeOptions(T,{segmentMetadataTrack:i.segmentMetadataTrack_,loaderType:"main"}),t),i.audioSegmentLoader_=new sZ(rg.mergeOptions(T,{loaderType:"audio"}),t),i.subtitleSegmentLoader_=new s9(rg.mergeOptions(T,{loaderType:"vtt",featuresNativeTextTracks:i.tech_.featuresNativeTextTracks}),t),i.setupSegmentLoaderListeners_(),i.experimentalBufferBasedABR&&(i.masterPlaylistLoader_.one("loadedplaylist",function(){return i.startABRTimer_()}),i.tech_.on("pause",function(){return i.stopABRTimer_()}),i.tech_.on("play",function(){return i.startABRTimer_()})),o_.forEach(function(e){i[e+"_"]=ov.bind((0,b.Z)(i),e)}),i.logger_=rb("MPC"),i.triggeredFmp4Usage=!1,"none"===i.tech_.preload()?(i.loadOnPlay_=function(){i.loadOnPlay_=null,i.masterPlaylistLoader_.load()},i.tech_.one("play",i.loadOnPlay_)):i.masterPlaylistLoader_.load(),i.timeToLoadedData__=-1,i.mainAppendsToLoadedData__=-1,i.audioAppendsToLoadedData__=-1;var S="none"===i.tech_.preload()?"play":"loadstart";return i.tech_.one(S,function(){var e=Date.now();i.tech_.one("loadeddata",function(){i.timeToLoadedData__=Date.now()-e,i.mainAppendsToLoadedData__=i.mainSegmentLoader_.mediaAppends,i.audioAppendsToLoadedData__=i.audioSegmentLoader_.mediaAppends})}),i}(0,S.Z)(t,e);var i=t.prototype;return i.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},i.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},i.appendsToLoadedData_=function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return -1===e||-1===t?-1:e+t},i.timeToLoadedData_=function(){return this.timeToLoadedData__},i.checkABR_=function(){var e=this.selectPlaylist();e&&this.shouldSwitchToMedia_(e)&&this.switchMedia_(e,"abr")},i.switchMedia_=function(e,t,i){var n=this.media(),r=n&&(n.id||n.uri),a=e.id||e.uri;r&&r!==a&&(this.logger_("switch media "+r+" -> "+a+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,i)},i.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=m().setInterval(function(){return e.checkABR_()},250)},i.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(m().clearInterval(this.abrTimer_),this.abrTimer_=null)},i.getAudioTrackPlaylists_=function(){var e,t=this.master(),i=t&&t.playlists||[];if(!t||!t.mediaGroups||!t.mediaGroups.AUDIO)return i;var n=t.mediaGroups.AUDIO,r=Object.keys(n);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)e=this.mediaTypes_.AUDIO.activeTrack();else{var a=n.main||r.length&&n[r[0]];for(var s in a)if(a[s].default){e={label:s};break}}if(!e)return i;var o=[];for(var l in n)if(n[l][e.label]){var u=n[l][e.label];if(u.playlists&&u.playlists.length)o.push.apply(o,u.playlists);else if(u.uri)o.push(u);else if(t.playlists.length)for(var d=0;d1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},i.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),n=this.bufferLowWaterLine(),r=this.bufferHighWaterLine();return oy({buffered:this.tech_.buffered(),currentTime:i,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:n,bufferHighWaterLine:r,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},i.setupSegmentLoaderListeners_=function(){var e=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",function(){var t=e.selectPlaylist();e.shouldSwitchToMedia_(t)&&e.switchMedia_(t,"bandwidthupdate"),e.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){e.trigger("progress")})),this.mainSegmentLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("appenderror",function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){e.logger_("main segment loader ended"),e.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(t){e.experimentalBufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))});var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()})},i.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},i.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},i.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},i.fastQualityChange_=function(e){var t=this;if(void 0===e&&(e=this.selectPlaylist()),e===this.masterPlaylistLoader_.media()){this.logger_("skipping fastQualityChange because new media is same as old");return}this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything(function(){rg.browser.IE_VERSION||rg.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())})},i.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();if(this.tech_.duration()===1/0&&this.tech_.currentTime()this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=i,e.reason&&(n.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var l=this.selectPlaylist();if(!l){this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error");return}var u=e.internal?this.logger_:rg.log.warn,d=e.message?" "+e.message:"";u((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+d+" Switching to playlist "+l.id+"."),l.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var c=l.targetDuration/2*1e3||5e3,h="number"==typeof l.lastRequest&&Date.now()-l.lastRequest<=c;return this.switchMedia_(l,"exclude",s||h)},i.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},i.delegateLoaders_=function(e,t){var i=this,n=[],r="all"===e;(r||"main"===e)&&n.push(this.masterPlaylistLoader_);var a=[];(r||"audio"===e)&&a.push("AUDIO"),(r||"subtitle"===e)&&(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach(function(e){var t=i.mediaTypes_[e]&&i.mediaTypes_[e].activePlaylistLoader;t&&n.push(t)}),["main","audio","subtitle"].forEach(function(t){var r=i[t+"SegmentLoader_"];r&&(e===t||"all"===e)&&n.push(r)}),n.forEach(function(e){return t.forEach(function(t){"function"==typeof e[t]&&e[t]()})})},i.setCurrentTime=function(e){var t=rE(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:void(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),this.load()):0},i.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:p.Playlist.duration(e):1/0:0},i.seekable=function(){return this.seekable_},i.onSyncInfoUpdate_=function(){if(!!this.masterPlaylistLoader_){var e,t,i,n=this.masterPlaylistLoader_.media();if(n){var r=this.syncController_.getExpiredTime(n,this.duration());if(null!==r){var a=this.masterPlaylistLoader_.master,s=p.Playlist.seekable(n,r,p.Playlist.liveEdgeDelay(a,n));0!==s.length&&(!this.mediaTypes_.AUDIO.activePlaylistLoader||(n=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null!==(r=this.syncController_.getExpiredTime(n,this.duration()))&&0!==(e=p.Playlist.seekable(n,r,p.Playlist.liveEdgeDelay(a,n))).length))&&(this.seekable_&&this.seekable_.length&&(t=this.seekable_.end(0),i=this.seekable_.start(0)),e?e.start(0)>s.end(0)||s.start(0)>e.end(0)?this.seekable_=s:this.seekable_=rg.createTimeRanges([[e.start(0)>s.start(0)?e.start(0):s.start(0),e.end(0)0&&(n=Math.max(n,i.end(i.length-1))),this.mediaSource.duration!==n&&this.sourceUpdater_.setDuration(n)},i.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(function(t){var i=e.mediaTypes_[t].groups;for(var n in i)i[n].forEach(function(e){e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},i.master=function(){return this.masterPlaylistLoader_.master},i.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},i.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!!t&&!!i},i.getCodecsOrExclude_=function(){var e,t=this,i={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};i.video=i.main;var n=sg(this.master(),this.media()),r={},a=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(i.main.hasVideo&&(r.video=n.video||i.main.videoCodec||D.xz),i.main.isMuxed&&(r.video+=","+(n.audio||i.main.audioCodec||D.lA)),(i.main.hasAudio&&!i.main.isMuxed||i.audio.hasAudio||a)&&(r.audio=n.audio||i.main.audioCodec||i.audio.audioCodec||D.lA,i.audio.isFmp4=i.main.hasAudio&&!i.main.isMuxed?i.main.isFmp4:i.audio.isFmp4),!r.audio&&!r.video){this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0});return}var s={};if(["video","audio"].forEach(function(t){var n,a;if(r.hasOwnProperty(t)&&(n=i[t].isFmp4,a=r[t],n?!(0,D.p7)(a):!(0,D.Hi)(a))){var o=i[t].isFmp4?"browser":"muxer";s[o]=s[o]||[],s[o].push(r[t]),"audio"===t&&(e=o)}}),a&&e&&this.media().attributes.AUDIO){var o=this.media().attributes.AUDIO;this.master().playlists.forEach(function(e){(e.attributes&&e.attributes.AUDIO)===o&&e!==t.media()&&(e.excludeUntil=1/0)}),this.logger_("excluding audio group "+o+" as "+e+' does not support codec(s): "'+r.audio+'"')}if(Object.keys(s).length){var l=Object.keys(s).reduce(function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+s[t].join(",")+'"'},"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:l,blacklistDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var u=[];if(["video","audio"].forEach(function(e){var i=((0,D.kS)(t.sourceUpdater_.codecs[e]||"")[0]||{}).type,n=((0,D.kS)(r[e]||"")[0]||{}).type;i&&n&&i.toLowerCase()!==n.toLowerCase()&&u.push('"'+t.sourceUpdater_.codecs[e]+'" -> "'+r[e]+'"')}),u.length){this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+u.join(", ")+".",blacklistDuration:1/0,internal:!0});return}}return r},i.tryToCreateSourceBuffers_=function(){if(!("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers())&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}},i.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,i=[];Object.keys(t).forEach(function(n){var r=t[n];if(-1===i.indexOf(r.id)){i.push(r.id);var a=sg(e.master,r),s=[];!a.audio||(0,D.Hi)(a.audio)||(0,D.p7)(a.audio)||s.push("audio codec "+a.audio),!a.video||(0,D.Hi)(a.video)||(0,D.p7)(a.video)||s.push("video codec "+a.video),a.text&&"stpp.ttml.im1t"===a.text&&s.push("text codec "+a.text),s.length&&(r.excludeUntil=1/0,e.logger_("excluding "+r.id+" for unsupported: "+s.join(", ")))}})},i.excludeIncompatibleVariants_=function(e){var t=this,i=[],n=this.master().playlists,r=sf((0,D.kS)(e)),a=sm(r),s=r.video&&(0,D.kS)(r.video)[0]||null,o=r.audio&&(0,D.kS)(r.audio)[0]||null;Object.keys(n).forEach(function(e){var r=n[e];if(-1===i.indexOf(r.id)&&r.excludeUntil!==1/0){i.push(r.id);var l=[],u=sg(t.masterPlaylistLoader_.master,r),d=sm(u);if(u.audio||u.video){if(d!==a&&l.push('codec count "'+d+'" !== "'+a+'"'),!t.sourceUpdater_.canChangeType()){var c=u.video&&(0,D.kS)(u.video)[0]||null,h=u.audio&&(0,D.kS)(u.audio)[0]||null;c&&s&&c.type.toLowerCase()!==s.type.toLowerCase()&&l.push('video codec "'+c.type+'" !== "'+s.type+'"'),h&&o&&h.type.toLowerCase()!==o.type.toLowerCase()&&l.push('audio codec "'+h.type+'" !== "'+o.type+'"')}l.length&&(r.excludeUntil=1/0,t.logger_("blacklisting "+r.id+": "+l.join(" && ")))}}})},i.updateAdCues_=function(e){var t=0,i=this.seekable();i.length&&(t=i.start(0)),ot(e,this.cueTagsTrack_,t)},i.goalBufferLength=function(){var e=this.tech_.currentTime(),t=aj.GOAL_BUFFER_LENGTH,i=aj.GOAL_BUFFER_LENGTH_RATE,n=Math.max(t,aj.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*i,n)},i.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=aj.BUFFER_LOW_WATER_LINE,i=aj.BUFFER_LOW_WATER_LINE_RATE,n=Math.max(t,aj.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,aj.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*i,this.experimentalBufferBasedABR?r:n)},i.bufferHighWaterLine=function(){return aj.BUFFER_HIGH_WATER_LINE},t}(rg.EventTarget),ob=function(e,t,i){var n,r,a=e.masterPlaylistController_,s=a[(e.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(a);if(t.attributes){var o=t.attributes.RESOLUTION;this.width=o&&o.width,this.height=o&&o.height,this.bandwidth=t.attributes.BANDWIDTH}this.codecs=sg(a.master(),t),this.playlist=t,this.id=i,this.enabled=(n=e.playlists,r=t.id,function(e){var t=n.master.playlists[r],i=rK(t),a=rZ(t);return void 0===e?a:(e?delete t.disabled:t.disabled=!0,e===a||i||(s(),e?n.trigger("renditionenabled"):n.trigger("renditiondisabled")),e)})},oS=function(e){e.representations=function(){var t=e.masterPlaylistController_.master(),i=rJ(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return i?i.filter(function(e){return!rK(e)}).map(function(t,i){return new ob(e,t,t.id)}):[]}},ok=["seeking","seeked","pause","playing","error"],oC=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=rb("PlaybackWatcher"),this.logger_("initialize");var i=function(){return t.monitorCurrentTime_()},n=function(){return t.monitorCurrentTime_()},r=function(){return t.techWaiting_()},a=function(){return t.cancelTimer_()},s=this.masterPlaylistController_,o=["main","subtitle","audio"],l={};o.forEach(function(e){l[e]={reset:function(){return t.resetSegmentDownloads_(e)},updateend:function(){return t.checkSegmentDownloads_(e)}},s[e+"SegmentLoader_"].on("appendsdone",l[e].updateend),s[e+"SegmentLoader_"].on("playlistupdate",l[e].reset),t.tech_.on(["seeked","seeking"],l[e].reset)});var u=function(e){["main","audio"].forEach(function(i){s[i+"SegmentLoader_"][e]("appended",t.seekingAppendCheck_)})};this.seekingAppendCheck_=function(){t.fixesBadSeeks_()&&(t.consecutiveUpdates=0,t.lastRecordedTime=t.tech_.currentTime(),u("off"))},this.clearSeekingAppendCheck_=function(){return u("off")},this.watchForBadSeeking_=function(){t.clearSeekingAppendCheck_(),u("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",r),this.tech_.on(ok,a),this.tech_.on("canplay",n),this.tech_.one("play",i),this.dispose=function(){t.clearSeekingAppendCheck_(),t.logger_("dispose"),t.tech_.off("waiting",r),t.tech_.off(ok,a),t.tech_.off("canplay",n),t.tech_.off("play",i),t.tech_.off("seeking",t.watchForBadSeeking_),t.tech_.off("seeked",t.clearSeekingAppendCheck_),o.forEach(function(e){s[e+"SegmentLoader_"].off("appendsdone",l[e].updateend),s[e+"SegmentLoader_"].off("playlistupdate",l[e].reset),t.tech_.off(["seeked","seeking"],l[e].reset)}),t.checkCurrentTimeTimeout_&&m().clearTimeout(t.checkCurrentTimeTimeout_),t.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&m().clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=m().setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(e){var t=this.masterPlaylistController_[e+"SegmentLoader_"];this[e+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,i=t[e+"SegmentLoader_"],n=i.buffered_(),r=rL(this[e+"Buffered_"],n);if(this[e+"Buffered_"]=n,r){this.resetSegmentDownloads_(e);return}this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:i.playlist_&&i.playlist_.id,buffered:rA(n)}),!(this[e+"StalledDownloads_"]<10)&&(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-"+e+"-download-exclusion"}),"subtitle"!==e&&t.blacklistCurrentPlaylist({message:"Excessive "+e+" segment downloading detected."},1/0))},t.checkCurrentTime_=function(){if(!(this.tech_.paused()||this.tech_.seeking())){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+rk>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),i=this.tech_.currentTime();if(this.afterSeekableWindow_(t,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1)),this.beforeSeekableWindow_(t,i)){var n=t.start(0);e=n+(n===t.end(0)?0:rk)}if(void 0!==e)return this.logger_("Trying to seek outside of seekable at time "+i+" with seekable range "+rP(t)+". Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0;for(var r=this.masterPlaylistController_.sourceUpdater_,a=this.tech_.buffered(),s=r.audioBuffer?r.audioBuffered():null,o=r.videoBuffer?r.videoBuffered():null,l=this.media(),u=l.partTargetDuration?l.partTargetDuration:(l.targetDuration-rS)*2,d=[s,o],c=0;c "+t.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"});return}}},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var i=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+i),this.cancelTimer_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var n=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:n.audioBuffered(),videoBuffered:n.videoBuffered(),currentTime:t}))return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var a=rw(r,t);if(a.length>0){var s=a.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+s+", seeking to "+a.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*s,t),!0}return!1},t.afterSeekableWindow_=function(e,t,i,n){if(void 0===n&&(n=!1),!e.length)return!1;var r=e.end(e.length-1)+rk;return!i.endList&&n&&(r=e.end(e.length-1)+3*i.targetDuration),t>r},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&e.start(0)>0&&t2)return{start:r,end:a}}return null},e}(),oE={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},ow=function e(t,i){var n=0,r=0,a=rg.mergeOptions(oE,i);t.ready(function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})});var s=function(){r&&t.currentTime(r)},o=function(e){null!=e&&(r=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",s),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},l=function(){if(Date.now()-n<1e3*a.errorInterval){t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),t.trigger({type:"usage",name:"hls-error-reload-canceled"});return}if(!a.getSource||"function"!=typeof a.getSource){rg.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}return n=Date.now(),a.getSource.call(t,o)},u=function e(){t.off("loadedmetadata",s),t.off("error",l),t.off("dispose",e)};t.on("error",l),t.on("dispose",u),t.reloadSourceOnError=function(i){u(),e(t,i)}},oI="2.14.3",ox={PlaylistLoader:ad,Playlist:r0,utils:aS,STANDARD_PLAYLIST_SELECTOR:sk,INITIAL_PLAYLIST_SELECTOR:function(){var e=this,t=this.playlists.master.playlists.filter(r0.isEnabled);return sT(t,function(e,t){return sb(e,t)}),t.filter(function(t){return!!sg(e.playlists.master,t).video})[0]||null},lastBandwidthSelector:sk,movingAverageBandwidthSelector:function(e){var t=-1,i=-1;if(e<0||e>1)throw Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var n=this.useDevicePixelRatio&&m().devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,i=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==i&&(t=e*this.systemBandwidth+(1-e)*t,i=this.systemBandwidth),sS(this.playlists.master,t,parseInt(sy(this.tech_.el(),"width"),10)*n,parseInt(sy(this.tech_.el(),"height"),10)*n,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:sb,comparePlaylistResolution:function(e,t){var i,n;return(e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||m().Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),i===(n=n||m().Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH)?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:i-n},xhr:af()};Object.keys(aj).forEach(function(e){Object.defineProperty(ox,e,{get:function(){return rg.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),aj[e]},set:function(t){if(rg.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0){rg.log.warn("value of Vhs."+e+" must be greater than or equal to 0");return}aj[e]=t}})});var oP="videojs-vhs",oA=function(e,t){for(var i=t.media(),n=-1,r=0;r=1e7&&e>=1e7?Math.max(e,i):i}return e},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){return Math.floor(1/(1/(this.bandwidth||1)+(this.throughput>0?1/this.throughput:0)))},set:function(){rg.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return rA(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return rA(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",function(){n.options_.useBandwidthFromLocalStorage&&oU({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})}),this.masterPlaylistController_.on("selectedinitialmedia",function(){oS(n)}),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",function(){n.setupEme_()}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=m().URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},i.createKeySessions_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),oD({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media keys for EME",code:3})})},i.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},i.setupEme_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,i=oM({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});if(this.player_.tech_.on("keystatuschange",function(t){if("output-restricted"===t.status){var i,n=e.masterPlaylistController_.master();if(n&&n.playlists){var r=[];n.playlists.forEach(function(e){e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height>=720&&(!e.excludeUntil||e.excludeUntil<1/0)&&(e.excludeUntil=1/0,r.push(e))}),r.length&&((i=rg.log).warn.apply(i,['DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.'].concat(r)),e.masterPlaylistController_.fastQualityChange_())}}}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11===rg.browser.IE_VERSION||!i){this.masterPlaylistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()},i.setupQualityLevels_=function(){var e=this,t=rg.players[this.tech_.options_.playerId];t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){oL(e.qualityLevels_,e)}),this.playlists.on("mediachange",function(){oA(e.qualityLevels_,e.playlists)}))},t.version=function(){return{"@videojs/http-streaming":oI,"mux.js":"6.0.1","mpd-parser":"0.21.1","m3u8-parser":"4.7.1","aes-decrypter":"3.1.3"}},i.version=function(){return this.constructor.version()},i.canChangeType=function(){return s3.canChangeType()},i.play=function(){this.masterPlaylistController_.play()},i.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},i.duration=function(){return this.masterPlaylistController_.duration()},i.seekable=function(){return this.masterPlaylistController_.seekable()},i.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&m().URL.revokeObjectURL&&(m().URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),e.prototype.dispose.call(this)},i.convertToProgramTime=function(e,t){return ax({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},i.seekToProgramTime=function(e,t,i,n){return void 0===i&&(i=!0),void 0===n&&(n=2),aP({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:n,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(rg.getComponent("Component")),oN={name:"videojs-http-streaming",VERSION:oI,canHandleSource:function(e,t){void 0===t&&(t={});var i=rg.mergeOptions(rg.options,t);return oN.canPlayType(e.type,i)},handleSource:function(e,t,i){void 0===i&&(i={});var n=rg.mergeOptions(rg.options,i);return t.vhs=new oB(e,t,n),rg.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return rg.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=af(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){void 0===t&&(t={});var i=rg.mergeOptions(rg.options,t),n=i.vhs,r=(n=void 0===n?{}:n).overrideNative,a=void 0===r?!rg.browser.IS_ANY_SAFARI:r,s=i.hls,o=(s=void 0===s?{}:s).overrideNative,l=(0,M.t)(e);return l&&(!ox.supportsTypeNatively(l)||void 0!==o&&o||a)?"maybe":""}};(0,D.p7)("avc1.4d400d,mp4a.40.2")&&rg.getTech("Html5").registerSourceHandler(oN,0),rg.VhsHandler=oB,Object.defineProperty(rg,"HlsHandler",{get:function(){return rg.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),oB},configurable:!0}),rg.VhsSourceHandler=oN,Object.defineProperty(rg,"HlsSourceHandler",{get:function(){return rg.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),oN},configurable:!0}),rg.Vhs=ox,Object.defineProperty(rg,"Hls",{get:function(){return rg.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),ox},configurable:!0}),rg.use||(rg.registerComponent("Hls",ox),rg.registerComponent("Vhs",ox)),rg.options.vhs=rg.options.vhs||{},rg.options.hls=rg.options.hls||{},rg.getPlugin&&rg.getPlugin("reloadSourceOnError")||(rg.registerPlugin||rg.plugin)("reloadSourceOnError",function(e){ow(this,e)}),t.Z=rg}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/d6e1aeb5-d7082cd8806a5835.js b/static/web/_next/static/chunks/d6e1aeb5-d7082cd8806a5835.js new file mode 100644 index 000000000..bd3c2aef8 --- /dev/null +++ b/static/web/_next/static/chunks/d6e1aeb5-d7082cd8806a5835.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2544],{85215:function(e,t,i){for(var n,r,a,s,o,l,u,d,c,h,p,f=i(58908),m=i.n(f),g=i(89144),_=i.n(g),v=i(87462),y=i(27537),T=i.n(y),b=i(97326),S=i(94578),k=i(75974),C=i.n(k),E=i(9603),w=i.n(E),I=i(13407),x=i.n(I),P=i(5647),A=i(60136),L=i(80779),O=i(9323),D=i(92260),M=i(8485),R=i(60562),U=i(12955),B=i(84221),N=i.n(B),F=i(68925),j=i(86185),H=i(51489),q="7.20.3",V={},W=function(e,t){return V[e]=V[e]||[],t&&(V[e]=V[e].concat(t)),V[e]},z=function(e,t){var i=W(e).indexOf(t);return!(i<=-1)&&(V[e]=V[e].slice(),V[e].splice(i,1),!0)},G={prefixed:!0},K=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],Z=K[0],Q=0;Q0?o:0)}if(m().console){var l=m().console[e];l||"debug"!==e||(l=m().console.info||m().console.log),l&&a&&s.test(e)&&l[Array.isArray(n)?"apply":"call"](m().console,n)}},r.createLogger=function(i){return e(t+": "+i)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},r.level=function(e){if("string"==typeof e){if(!r.levels.hasOwnProperty(e))throw Error('"'+e+'" in not a valid log level');n=e}return n},r.history=function(){return Y?[].concat(Y):[]},r.history.filter=function(e){return(Y||[]).filter(function(t){return RegExp(".*"+e+".*").test(t[0])})},r.history.clear=function(){Y&&(Y.length=0)},r.history.disable=function(){null!==Y&&(Y.length=0,Y=null)},r.history.enable=function(){null===Y&&(Y=[])},r.error=function(){for(var e=arguments.length,t=Array(e),r=0;r1?t-1:0),n=1;n=0)throw Error("class has illegal whitespace characters")}function eA(){return _()===m().document}function eL(e){return er(e)&&1===e.nodeType}function eO(){try{return m().parent!==m().self}catch(e){return!0}}function eD(e){return function(t,i){if(!ex(t))return _()[e](null);ex(i)&&(i=_().querySelector(i));var n=eL(i)?i:_();return n[e]&&n[e](t)}}function eM(e,t,i,n){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===i&&(i={});var r=_().createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var i=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?($.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+i+"."),r.setAttribute(e,i)):"textContent"===e?eR(r,i):(r[e]!==i||"tabIndex"===e)&&(r[e]=i)}),Object.getOwnPropertyNames(i).forEach(function(e){r.setAttribute(e,i[e])}),n&&e0(r,n),r}function eR(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function eU(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function eB(e,t){return(eP(t),e.classList)?e.classList.contains(t):RegExp("(^|\\s)"+t+"($|\\s)").test(e.className)}function eN(e,t){return e.classList?e.classList.add(t):eB(e,t)||(e.className=(e.className+" "+t).trim()),e}function eF(e,t){return e?(e.classList?e.classList.remove(t):(eP(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e):($.warn("removeClass was called with an element that doesn't exist"),null)}function ej(e,t,i){var n=eB(e,t);if("function"==typeof i&&(i=i(e,t)),"boolean"!=typeof i&&(i=!n),i!==n)return i?eN(e,t):eF(e,t),e}function eH(e,t){Object.getOwnPropertyNames(t).forEach(function(i){var n=t[i];null==n||!1===n?e.removeAttribute(i):e.setAttribute(i,!0===n?"":n)})}function eq(e){var t={};if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,n=i.length-1;n>=0;n--){var r=i[n].name,a=i[n].value;("boolean"==typeof e[r]||-1!==",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+r+","))&&(a=null!==a),t[r]=a}return t}function eV(e,t){return e.getAttribute(t)}function eW(e,t,i){e.setAttribute(t,i)}function ez(e,t){e.removeAttribute(t)}function eG(){_().body.focus(),_().onselectstart=function(){return!1}}function eK(){_().onselectstart=function(){return!0}}function eZ(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(i[e]=t[e])}),i.height||(i.height=parseFloat(es(e,"height"))),i.width||(i.width=parseFloat(es(e,"width"))),i}}function eQ(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,i=e.offsetHeight,n=0,r=0;e.offsetParent&&e!==_()[G.fullscreenElement];)n+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:n,top:r,width:t,height:i}}function eX(e,t){var i={x:0,y:0};if(eE)for(var n=e;n&&"html"!==n.nodeName.toLowerCase();){var r=es(n,"transform");if(/^matrix/.test(r)){var a=r.slice(7,-1).split(/,\s/).map(Number);i.x+=a[4],i.y+=a[5]}else if(/^matrix3d/.test(r)){var s=r.slice(9,-1).split(/,\s/).map(Number);i.x+=s[12],i.y+=s[13]}n=n.parentNode}var o={},l=eQ(t.target),u=eQ(e),d=u.width,c=u.height,h=t.offsetY-(u.top-l.top),p=t.offsetX-(u.left-l.left);return t.changedTouches&&(p=t.changedTouches[0].pageX-u.left,h=t.changedTouches[0].pageY+u.top,eE&&(p-=i.x,h-=i.y)),o.y=1-Math.max(0,Math.min(1,h/c)),o.x=Math.max(0,Math.min(1,p/d)),o}function eY(e){return er(e)&&3===e.nodeType}function e$(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function eJ(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return("function"==typeof e&&(e=e()),eL(e)||eY(e))?e:"string"==typeof e&&/\S/.test(e)?_().createTextNode(e):void 0}).filter(function(e){return e})}function e0(e,t){return eJ(t).forEach(function(t){return e.appendChild(t)}),e}function e1(e,t){return e0(e$(e),t)}function e2(e){return void 0===e.button&&void 0===e.buttons||0===e.button&&void 0===e.buttons||"mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons}var e8=eD("querySelector"),e4=eD("querySelectorAll"),e5=Object.freeze({__proto__:null,isReal:eA,isEl:eL,isInFrame:eO,createEl:eM,textContent:eR,prependTo:eU,hasClass:eB,addClass:eN,removeClass:eF,toggleClass:ej,setAttributes:eH,getAttributes:eq,getAttribute:eV,setAttribute:eW,removeAttribute:ez,blockTextSelection:eG,unblockTextSelection:eK,getBoundingClientRect:eZ,findPosition:eQ,getPointerPosition:eX,isTextNode:eY,emptyEl:e$,normalizeContent:eJ,appendContent:e0,insertContent:e1,isSingleLeftClick:e2,$:e8,$$:e4}),e3=!1,e6=function(){if(!1!==l.options.autoSetup){var e=Array.prototype.slice.call(_().getElementsByTagName("video")),t=Array.prototype.slice.call(_().getElementsByTagName("audio")),i=Array.prototype.slice.call(_().getElementsByTagName("video-js")),n=e.concat(t,i);if(n&&n.length>0)for(var r=0,a=n.length;r-1&&(r={passive:!0}),e.addEventListener(t,n.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,n.dispatcher)}}function td(e,t,i){if(tn.has(e)){var n=tn.get(e);if(n.handlers){if(Array.isArray(t))return ta(td,e,t,i);var r=function(e,t){n.handlers[t]=[],tr(e,t)};if(void 0===t){for(var a in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},a)&&r(e,a);return}var s=n.handlers[t];if(s){if(!i){r(e,t);return}if(i.guid)for(var o=0;o=t&&(e.apply(void 0,arguments),i=n)}},t_=function(e,t,i,n){void 0===n&&(n=m());var r,a=function(){var a=this,s=arguments,o=function(){r=null,o=null,i||e.apply(a,s)};!r&&i&&e.apply(a,s),n.clearTimeout(r),r=n.setTimeout(o,t)};return a.cancel=function(){n.clearTimeout(r),r=null},a},tv=function(){};tv.prototype.allowedEvents_={},tv.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},tu(this,e,t),this.addEventListener=i},tv.prototype.addEventListener=tv.prototype.on,tv.prototype.off=function(e,t){td(this,e,t)},tv.prototype.removeEventListener=tv.prototype.off,tv.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},th(this,e,t),this.addEventListener=i},tv.prototype.any=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},tp(this,e,t),this.addEventListener=i},tv.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=ts(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),tc(this,e)},tv.prototype.dispatchEvent=tv.prototype.trigger,tv.prototype.queueTrigger=function(e){var t=this;c||(c=new Map);var i=e.type||e,n=c.get(this);n||(n=new Map,c.set(this,n));var r=n.get(i);n.delete(i),m().clearTimeout(r);var a=m().setTimeout(function(){0===n.size&&(n=null,c.delete(t)),t.trigger(e)},0);n.set(i,a)};var ty=function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},tT=function(e){return e instanceof tv||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},tb=function(e,t){tT(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},tS=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},tk=function(e,t,i){if(!e||!e.nodeName&&!tT(e))throw Error("Invalid target for "+ty(t)+"#"+i+"; must be a DOM node or evented object.")},tC=function(e,t,i){if(!tS(e))throw Error("Invalid event type for "+ty(t)+"#"+i+"; must be a non-empty string or array.")},tE=function(e,t,i){if("function"!=typeof e)throw Error("Invalid listener for "+ty(t)+"#"+i+"; must be a function.")},tw=function(e,t,i){var n,r,a,s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return s?(n=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],a=t[1]):(n=t[0],r=t[1],a=t[2]),tk(n,e,i),tC(r,e,i),tE(a,e,i),{isTargetingSelf:s,target:n,type:r,listener:a=tm(e,a)}},tI=function(e,t,i,n){tk(e,e,t),e.nodeName?tf[t](e,i,n):e[t](i,n)},tx={on:function(){for(var e=this,t=arguments.length,i=Array(t),n=0;n=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e&&(this.options_=tM(this.options_,e)),this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,i){return eM(e,t,i)},t.localize=function(e,t,i){void 0===i&&(i=e);var n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[n],s=n&&n.split("-")[0],o=r&&r[s],l=i;return a&&a[e]?l=a[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,i){var n=t[i-1],r=n;return void 0===n&&(r=e),r})),l},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=Array(e),i=0;i=0;i--)if(this.children_[i]===e){t=!0,this.children_.splice(i,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[tD(e.name())]=null,this.childNameIndex_[tO(e.name())]=null;var n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,i=this.options_.children;if(i){var n,r=this.options_,a=e.getComponent("Tech");(n=Array.isArray(i)?i:Object.keys(i)).concat(Object.keys(this.options_).filter(function(e){return!n.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var n,r;return"string"==typeof e?r=i[n=e]||t.options_[n]||{}:(n=e.name,r=e),{name:n,opts:r}}).filter(function(t){var i=e.getComponent(t.opts.componentClass||tD(t.name));return i&&!a.isTech(i)}).forEach(function(e){var i=e.name,n=e.opts;if(void 0!==r[i]&&(n=r[i]),!1!==n){!0===n&&(n={}),n.playerOptions=t.options_.playerOptions;var a=t.addChild(i,n);a&&(t[i]=a)}})}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e);return}t?e.call(this):this.setTimeout(e,1)}},t.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},t.$=function(e,t){return e8(e,t||this.contentEl())},t.$$=function(e,t){return e4(e,t||this.contentEl())},t.hasClass=function(e){return eB(this.el_,e)},t.addClass=function(e){eN(this.el_,e)},t.removeClass=function(e){eF(this.el_,e)},t.toggleClass=function(e,t){ej(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return eV(this.el_,e)},t.setAttribute=function(e,t){eW(this.el_,e,t)},t.removeAttribute=function(e){ez(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,i){if(void 0!==t){(null===t||t!=t)&&(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:"auto"===t?this.el_.style[e]="":this.el_.style[e]=t+"px",i||this.trigger("componentresize");return}if(!this.el_)return 0;var n=this.el_.style[e],r=n.indexOf("px");return -1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+tD(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw Error("currentDimension only accepts width or height value");if(0===(t=parseFloat(t=es(this.el_,e)))||isNaN(t)){var i="offset"+tD(e);t=this.el_[i]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(T().isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,i=null;this.on("touchstart",function(n){1===n.touches.length&&(i={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},t=m().performance.now(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(i){var n=t.touches[0].pageX-i.pageX,r=t.touches[0].pageY-i.pageY;Math.sqrt(n*n+r*r)>10&&(e=!1)}});var n=function(){e=!1};this.on("touchleave",n),this.on("touchcancel",n),this.on("touchend",function(n){i=null,!0===e&&m().performance.now()-t<200&&(n.preventDefault(),this.trigger("tap"))})},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=tm(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var i=function(i){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",i),this.on("touchcancel",i)}},t.setTimeout=function(e,t){var i,n=this;return e=tm(this,e),this.clearTimersOnDispose_(),i=m().setTimeout(function(){n.setTimeoutIds_.has(i)&&n.setTimeoutIds_.delete(i),e()},t),this.setTimeoutIds_.add(i),i},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),m().clearTimeout(e)),e},t.setInterval=function(e,t){e=tm(this,e),this.clearTimersOnDispose_();var i=m().setInterval(e,t);return this.setIntervalIds_.add(i),i},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),m().clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,i=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=tm(this,e),t=m().requestAnimationFrame(function(){i.rafIds_.has(t)&&i.rafIds_.delete(t),e()}),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var i=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=tm(this,t);var n=this.requestAnimationFrame(function(){t(),i.namedRafs_.has(e)&&i.namedRafs_.delete(e)});return this.namedRafs_.set(e,n),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),m().cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(t){var i=t[0],n=t[1];e[i].forEach(function(t,i){return e[n](i)})}),e.clearingTimersOnDispose_=!1}))},e.registerComponent=function(t,i){if("string"!=typeof t||!t)throw Error('Illegal component name, "'+t+'"; must be a non-empty string.');var n=e.getComponent("Tech"),r=n&&n.isTech(i),a=e===i||e.prototype.isPrototypeOf(i.prototype);if(r||!a)throw Error('Illegal component, "'+t+'"; '+(r?"techs must be registered using Tech.registerTech()":"must be a Component subclass")+".");t=tD(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var o=s.players,l=Object.keys(o);if(o&&l.length>0&&l.map(function(e){return o[e]}).every(Boolean))throw Error("Can not register Player component after player has been created.")}return e.components_[t]=i,e.components_[tO(t)]=i,i},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function tj(e,t,i,n){return!function(e,t,i){if("number"!=typeof t||t<0||t>i)throw Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").")}(e,n,i.length-1),i[n][t]}function tH(e){var t;return t=void 0===e||0===e.length?{length:0,start:function(){throw Error("This TimeRanges object is empty")},end:function(){throw Error("This TimeRanges object is empty")}}:{length:e.length,start:tj.bind(null,"start",0,e),end:tj.bind(null,"end",1,e)},m().Symbol&&m().Symbol.iterator&&(t[m().Symbol.iterator]=function(){return(e||[]).values()}),t}function tq(e,t){return Array.isArray(e)?tH(e):void 0===e||void 0===t?tH():tH([[e,t]])}function tV(e,t){var i,n,r=0;if(!t)return 0;e&&e.length||(e=tq(0,0));for(var a=0;at&&(n=t),r+=n-i;return r/t}function tW(e){if(e instanceof tW)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:er(e)&&("number"==typeof e.code&&(this.code=e.code),en(this,e)),this.message||(this.message=tW.defaultMessages[this.code]||"")}tF.prototype.supportsRaf_="function"==typeof m().requestAnimationFrame&&"function"==typeof m().cancelAnimationFrame,tF.registerComponent("Component",tF),tW.prototype.code=0,tW.prototype.message="",tW.prototype.status=null,tW.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],tW.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var tz=0;tz=0;n--)if(t[n].enabled){t0(t,t[n]);break}return(i=e.call(this,t)||this).changing_=!1,i}(0,S.Z)(t,e);var i=t.prototype;return i.addTrack=function(t){var i=this;t.enabled&&t0(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){i.changing_||(i.changing_=!0,t0(i,t),i.changing_=!1,i.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},i.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(t$),t2=function(e,t){for(var i=0;i=0;n--)if(t[n].selected){t2(t,t[n]);break}return(i=e.call(this,t)||this).changing_=!1,Object.defineProperty((0,b.Z)(i),"selectedIndex",{get:function(){for(var e=0;e0&&(m().console&&m().console.groupCollapsed&&m().console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach(function(e){return $.error(e)}),m().console&&m().console.groupEnd&&m().console.groupEnd()),i.flush()},iu=function(e,t){var i={uri:e},n=is(e);n&&(i.cors=n);var r="use-credentials"===t.tech_.crossOrigin();r&&(i.withCredentials=r),w()(i,tm(this,function(e,i,n){if(e)return $.error(e,i);t.loaded_=!0,"function"!=typeof m().WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],function(e){if("vttjserror"===e.type){$.error("vttjs failed to load, stopping trying to process "+t.src);return}return il(n,t)}):il(n,t)}))},id=function(e){function t(t){if(void 0===t&&(t={}),!t.tech)throw Error("A tech was not provided.");var i,n=tM(t,{kind:t9[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=ie[n.mode]||"disabled",a=n.default;("metadata"===n.kind||"chapters"===n.kind)&&(r="hidden"),(i=e.call(this,n)||this).tech_=n.tech,i.cues_=[],i.activeCues_=[],i.preload_=!1!==i.tech_.preloadTextTracks;var s=new t3(i.cues_),o=new t3(i.activeCues_),l=!1;return i.timeupdateHandler=tm((0,b.Z)(i),function(e){if(void 0===e&&(e={}),!this.tech_.isDisposed()){if(!this.tech_.isReady_){"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}}),i.tech_.one("dispose",function(){i.stopTracking()}),"disabled"!==r&&i.startTracking(),Object.defineProperties((0,b.Z)(i),{default:{get:function(){return a},set:function(){}},mode:{get:function(){return r},set:function(e){ie[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||iu(this.src,this),this.stopTracking(),"disabled"!==r&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?s:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return o;for(var e=this.tech_.currentTime(),t=[],i=0,n=this.cues.length;i=e?t.push(r):r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e&&t.push(r)}if(l=!1,t.length!==this.activeCues_.length)l=!0;else for(var a=0;a0){this.trigger("vttjsloaded");return}var t=_().createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),m().WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)}},i.emulateTextTracks=function(){var e=this,t=this.textTracks(),i=this.remoteTextTracks(),n=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};i.on("addtrack",n),i.on("removetrack",r),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},s=function(){a();for(var e=0;e=0;r--){var a=e[r];a[t]&&a[t](n,i)}}(e,i,o,s),o}var ik={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},iC={setCurrentTime:1,setMuted:1,setVolume:1},iE={play:1,pause:1};function iw(e){return function(t,i){return t===ib?ib:i[e]?i[e](t):t}}var iI={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},ix=function(e){return void 0===e&&(e=""),iI[ia(e).toLowerCase()]||""},iP=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var i=e.cache_.sources.filter(function(e){return e.src===t});if(i.length)return i[0].type;for(var n=e.$$("source"),r=0;r0;this.player_.tech(!0)&&!((ey||eg)&&t)&&this.player_.tech(!0).focus(),this.player_.paused()?tK(this.player_.play()):this.player_.pause()}},t}(iD);tF.registerComponent("PosterImage",iM);var iR="#222",iU="#ccc",iB={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function iN(e,t){var i;if(4===e.length)i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else if(7===e.length)i=e.slice(1);else throw Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function iF(e,t,i){try{e.style[t]=i}catch(n){return}}var ij=function(e){function t(t,i,n){r=e.call(this,t,i,n)||this;var r,a=function(e){return r.updateDisplay(e)};return t.on("loadstart",function(e){return r.toggleDisplay(e)}),t.on("texttrackchange",a),t.on("loadedmetadata",function(e){return r.preselectTrack(e)}),t.ready(tm((0,b.Z)(r),function(){if(t.tech_&&t.tech_.featuresNativeTextTracks){this.hide();return}t.on("fullscreenchange",a),t.on("playerresize",a),m().addEventListener("orientationchange",a),t.on("dispose",function(){return m().removeEventListener("orientationchange",a)});for(var e=this.options_.playerOptions.tracks||[],i=0;i0;tK(t),this.player_.tech(!0)&&!((ey||eg)&&i)&&this.player_.tech(!0).focus();return}var n=this.player_.getChild("controlBar"),r=n&&n.getChild("playToggle");if(!r){this.player_.tech(!0).focus();return}var a=function(){return r.focus()};tG(t)?t.then(a,function(){}):this.setTimeout(a,1)},i.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},i.handleMouseDown=function(e){this.mouseused_=!0},t}(iq);iV.prototype.controlText_="Play Video",tF.registerComponent("BigPlayButton",iV);var iW=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).controlText(i&&i.controlText||n.localize("Close")),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},i.handleKeyDown=function(t){T().isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(iq);tF.registerComponent("CloseButton",iW);var iz=function(e){function t(t,i){var n;return void 0===i&&(i={}),n=e.call(this,t,i)||this,i.replay=void 0===i.replay||i.replay,n.on(t,"play",function(e){return n.handlePlay(e)}),n.on(t,"pause",function(e){return n.handlePause(e)}),i.replay&&n.on(t,"ended",function(e){return n.handleEnded(e)}),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){this.player_.paused()?tK(this.player_.play()):this.player_.pause()},i.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},i.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},i.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},i.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",function(e){return t.handleSeeked(e)})},t}(iq);iz.prototype.controlText_="Play",tF.registerComponent("PlayToggle",iz);var iG=function(e,t){var i=Math.floor((e=e<0?0:e)%60),n=Math.floor(e/60%60),r=Math.floor(e/3600);return(isNaN(e)||e===1/0)&&(r=n=i="-"),n=(((r=r>0||Math.floor(t/3600)>0?r+":":"")||Math.floor(t/60%60)>=10)&&n<10?"0"+n:n)+":",r+n+(i=i<10?"0"+i:i)},iK=iG;function iZ(e,t){return void 0===t&&(t=e),iK(e,t)}var iQ=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,["timeupdate","ended"],function(e){return n.updateContent(e)}),n.updateTextNode_(),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){var t=this.buildCSSClass(),i=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),n=eM("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+"\xa0"},{role:"presentation"});return i.appendChild(n),this.contentEl_=eM("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),i.appendChild(this.contentEl_),i},i.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},i.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=iZ(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,$.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=_().createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}}))},i.updateContent=function(e){},t}(tF);iQ.prototype.labelText_="Time",iQ.prototype.controlText_="Time",tF.registerComponent("TimeDisplay",iQ);var iX=function(e){function t(){return e.apply(this,arguments)||this}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-current-time"},i.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(iQ);iX.prototype.labelText_="Current Time",iX.prototype.controlText_="Current Time",tF.registerComponent("CurrentTimeDisplay",iX);var iY=function(e){function t(t,i){n=e.call(this,t,i)||this;var n,r=function(e){return n.updateContent(e)};return n.on(t,"durationchange",r),n.on(t,"loadstart",r),n.on(t,"loadedmetadata",r),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-duration"},i.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(iQ);iY.prototype.labelText_="Duration",iY.prototype.controlText_="Duration",tF.registerComponent("DurationDisplay",iY);var i$=function(e){function t(){return e.apply(this,arguments)||this}return(0,S.Z)(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),i=e.prototype.createEl.call(this,"div"),n=e.prototype.createEl.call(this,"span",{textContent:"/"});return i.appendChild(n),t.appendChild(i),t},t}(tF);tF.registerComponent("TimeDivider",i$);var iJ=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,"durationchange",function(e){return n.updateContent(e)}),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-remaining-time"},i.createEl=function(){var t=e.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&t.insertBefore(eM("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},i.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(iQ);iJ.prototype.labelText_="Remaining Time",iJ.prototype.controlText_="Remaining Time",tF.registerComponent("RemainingTimeDisplay",iJ);var i0=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).updateShowing(),n.on(n.player(),"durationchange",function(e){return n.updateShowing(e)}),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=eM("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(eM("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+"\xa0"})),this.contentEl_.appendChild(_().createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},i.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},i.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(tF);tF.registerComponent("LiveDisplay",i0);var i1=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).updateLiveEdgeStatus(),n.player_.liveTracker&&(n.updateLiveEdgeStatusHandler_=function(e){return n.updateLiveEdgeStatus(e)},n.on(n.player_.liveTracker,"liveedgechange",n.updateLiveEdgeStatusHandler_)),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=eM("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},i.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},i.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},i.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(iq);i1.prototype.controlText_="Seek to live, currently playing live",tF.registerComponent("SeekToLive",i1);var i2=function(e,t,i){return Math.min(i,Math.max(t,isNaN(e=Number(e))?t:e))},i8=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).handleMouseDown_=function(e){return n.handleMouseDown(e)},n.handleMouseUp_=function(e){return n.handleMouseUp(e)},n.handleKeyDown_=function(e){return n.handleKeyDown(e)},n.handleClick_=function(e){return n.handleClick(e)},n.handleMouseMove_=function(e){return n.handleMouseMove(e)},n.update_=function(e){return n.update(e)},n.bar=n.getChild(n.options_.barName),n.vertical(!!n.options_.vertical),n.enable(),n}(0,S.Z)(t,e);var i=t.prototype;return i.enabled=function(){return this.enabled_},i.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},i.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},i.createEl=function(t,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),i.className=i.className+" vjs-slider",i=en({tabIndex:0},i),n=en({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n),e.prototype.createEl.call(this,t,i,n)},i.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||e_||e.preventDefault(),eG(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)},i.handleMouseMove=function(e){},i.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;eK(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},i.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",function(){var i=e.vertical()?"height":"width";e.bar.el().style[i]=(100*t).toFixed(2)+"%"})),t}},i.getProgress=function(){return Number(i2(this.getPercent(),0,1).toFixed(4))},i.calculateDistance=function(e){var t=eX(this.el_,e);return this.vertical()?t.y:t.x},i.handleKeyDown=function(t){T().isEventKey(t,"Left")||T().isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):T().isEventKey(t,"Right")||T().isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},i.handleClick=function(e){e.stopPropagation(),e.preventDefault()},i.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(tF);tF.registerComponent("Slider",i8);var i4=function(e,t){return i2(e/t*100,0,100).toFixed(2)+"%"},i5=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).partEls_=[],n.on(t,"progress",function(e){return n.update(e)}),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),i=eM("span",{className:"vjs-control-text"}),n=eM("span",{textContent:this.localize("Loaded")}),r=_().createTextNode(": ");return this.percentageEl_=eM("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(i),i.appendChild(n),i.appendChild(r),i.appendChild(this.percentageEl_),t},i.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},i.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=t.player_.liveTracker,i=t.player_.buffered(),n=e&&e.isLive()?e.seekableEnd():t.player_.duration(),r=t.player_.bufferedEnd(),a=t.partEls_,s=i4(r,n);t.percent_!==s&&(t.el_.style.width=s,eR(t.percentageEl_,s),t.percent_=s);for(var o=0;oi.length;c--)t.el_.removeChild(a[c-1]);a.length=i.length})},t}(tF);tF.registerComponent("LoadProgressBar",i5);var i3=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=tg(tm((0,b.Z)(n),n.update),30),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},i.update=function(e,t,i){var n=eQ(this.el_),r=eZ(this.player_.el()),a=e.width*t;if(r&&n){var s=e.left-r.left+a,o=e.width-a+(r.right-e.right),l=n.width/2;sn.width&&(l=n.width),l=Math.round(l),this.el_.style.right="-"+l+"px",this.write(i)}},i.write=function(e){eR(this.el_,e)},i.updateTime=function(e,t,i,n){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var a,s=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var o=r.player_.liveTracker.liveWindow(),l=o-t*o;a=(l<1?"":"-")+iZ(l,o)}else a=iZ(i,s);r.update(e,t,a),n&&n()})},t}(tF);tF.registerComponent("TimeTooltip",i3);var i6=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=tg(tm((0,b.Z)(n),n.update),30),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},i.update=function(e,t){var i=this.getChild("timeTooltip");if(i){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,t,n)}},t}(tF);i6.prototype.options_={children:[]},eE||eh||i6.prototype.options_.children.push("timeTooltip"),tF.registerComponent("PlayProgressBar",i6);var i7=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=tg(tm((0,b.Z)(n),n.update),30),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},i.update=function(e,t){var i=this,n=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,n,function(){i.el_.style.left=e.width*t+"px"})},t}(tF);i7.prototype.options_={children:["timeTooltip"]},tF.registerComponent("MouseTimeDisplay",i7);var i9=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).setEventHandlers_(),n}(0,S.Z)(t,e);var i=t.prototype;return i.setEventHandlers_=function(){var e=this;this.update_=tm(this,this.update),this.update=tg(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in _()&&"visibilityState"in _()&&this.on(_(),"visibilitychange",this.toggleVisibility_)},i.toggleVisibility_=function(e){"hidden"===_().visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},i.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},i.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||!this.updateInterval||(this.clearInterval(this.updateInterval),this.updateInterval=null)},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},i.update=function(t){var i=this;if("hidden"!==_().visibilityState){var n=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var e=i.player_.ended()?i.player_.duration():i.getCurrentTime_(),t=i.player_.liveTracker,r=i.player_.duration();t&&t.isLive()&&(r=i.player_.liveTracker.liveCurrentTime()),i.percent_!==n&&(i.el_.setAttribute("aria-valuenow",(100*n).toFixed(2)),i.percent_=n),(i.currentTime_!==e||i.duration_!==r)&&(i.el_.setAttribute("aria-valuetext",i.localize("progress bar timing: currentTime={1} duration={2}",[iZ(e,r),iZ(r,r)],"{1} of {2}")),i.currentTime_=e,i.duration_=r),i.bar&&i.bar.update(eZ(i.el()),i.getProgress())}),n}},i.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},i.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},i.getPercent=function(){var e,t=this.getCurrentTime_(),i=this.player_.liveTracker;return i&&i.isLive()?(e=(t-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},i.handleMouseDown=function(t){e2(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},i.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),e2(e)){t||this.player_.scrubbing()||this.player_.scrubbing(!0);var i,n=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(n>=.99){r.seekToLiveEdge();return}var a=r.seekableStart(),s=r.liveCurrentTime();if((i=a+n*r.liveWindow())>=s&&(i=s),i<=a&&(i=a+.1),i===1/0)return}else(i=n*this.player_.duration())===this.player_.duration()&&(i-=.1);this.userSeek_(i)}},i.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},i.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},i.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?tK(this.player_.play()):this.update_()},i.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},i.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},i.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},i.handleKeyDown=function(t){var i=this.player_.liveTracker;if(T().isEventKey(t,"Space")||T().isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(T().isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(T().isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),i&&i.isLive()?this.userSeek_(i.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(T()(t))){t.preventDefault(),t.stopPropagation();var n=(T().codes[T()(t)]-T().codes[0])*10/100;i&&i.isLive()?this.userSeek_(i.seekableStart()+i.liveWindow()*n):this.userSeek_(this.player_.duration()*n)}else T().isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):T().isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},i.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in _()&&"visibilityState"in _()&&this.off(_(),"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(i8);i9.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},eE||eh||i9.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),tF.registerComponent("SeekBar",i9);var ne=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).handleMouseMove=tg(tm((0,b.Z)(n),n.handleMouseMove),30),n.throttledHandleMouseSeek=tg(tm((0,b.Z)(n),n.handleMouseSeek),30),n.handleMouseUpHandler_=function(e){return n.handleMouseUp(e)},n.handleMouseDownHandler_=function(e){return n.handleMouseDown(e)},n.enable(),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},i.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var i=t.getChild("playProgressBar"),n=t.getChild("mouseTimeDisplay");if(i||n){var r=t.el(),a=eQ(r),s=eX(r,e).x;s=i2(s,0,1),n&&n.update(a,s),i&&i.update(a,t.getProgress())}}},i.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},i.enabled=function(){return this.enabled_},i.disable=function(){if(this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&tK(this.player_.play())}},i.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},i.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},i.handleMouseDown=function(e){var t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},i.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(tF);ne.prototype.options_={children:["seekBar"]},tF.registerComponent("ProgressControl",ne);var nt=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,["enterpictureinpicture","leavepictureinpicture"],function(e){return n.handlePictureInPictureChange(e)}),n.on(t,["disablepictureinpicturechanged","loadedmetadata"],function(e){return n.handlePictureInPictureEnabledChange(e)}),n.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],function(){"audio"===t.currentType().substring(0,5)||t.audioPosterMode()||t.audioOnlyMode()?(t.isInPictureInPicture()&&t.exitPictureInPicture(),n.hide()):n.show()}),n.disable(),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},i.handlePictureInPictureEnabledChange=function(){_().pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},i.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},i.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(iq);nt.prototype.controlText_="Picture-in-Picture",tF.registerComponent("PictureInPictureToggle",nt);var ni=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,"fullscreenchange",function(e){return n.handleFullscreenChange(e)}),!1===_()[t.fsApi_.fullscreenEnabled]&&n.disable(),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},i.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},i.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(iq);ni.prototype.controlText_="Fullscreen",tF.registerComponent("FullscreenToggle",ni);var nn=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},nr=function(e){function t(){return e.apply(this,arguments)||this}return(0,S.Z)(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(tF);tF.registerComponent("VolumeLevel",nr);var na=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=tg(tm((0,b.Z)(n),n.update),30),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},i.update=function(e,t,i,n){if(!i){var r=eZ(this.el_),a=eZ(this.player_.el()),s=e.width*t;if(!a||!r)return;var o=e.left-a.left+s,l=e.width-s+(a.right-e.right),u=r.width/2;or.width&&(u=r.width),this.el_.style.right="-"+u+"px"}this.write(n+"%")},i.write=function(e){eR(this.el_,e)},i.updateVolume=function(e,t,i,n,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){a.update(e,t,i,n.toFixed(0)),r&&r()})},t}(tF);tF.registerComponent("VolumeLevelTooltip",na);var ns=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).update=tg(tm((0,b.Z)(n),n.update),30),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},i.update=function(e,t,i){var n=this;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,100*t,function(){i?n.el_.style.bottom=e.height*t+"px":n.el_.style.left=e.width*t+"px"})},t}(tF);ns.prototype.options_={children:["volumeLevelTooltip"]},tF.registerComponent("MouseVolumeLevelDisplay",ns);var no=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on("slideractive",function(e){return n.updateLastVolume_(e)}),n.on(t,"volumechange",function(e){return n.updateARIAAttributes(e)}),t.ready(function(){return n.updateARIAAttributes()}),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},i.handleMouseDown=function(t){e2(t)&&e.prototype.handleMouseDown.call(this,t)},i.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var i=this.el(),n=eZ(i),r=this.vertical(),a=eX(i,e);a=i2(a=r?a.y:a.x,0,1),t.update(n,a,r)}e2(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},i.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},i.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},i.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},i.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},i.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},i.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},i.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},t}(i8);no.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},eE||eh||no.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),no.prototype.playerEvent="volumechange",tF.registerComponent("VolumeBar",no);var nl=function(e){function t(t,i){var n;return void 0===i&&(i={}),i.vertical=i.vertical||!1,(void 0===i.volumeBar||ea(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical),n=e.call(this,t,i)||this,nn((0,b.Z)(n),t),n.throttledHandleMouseMove=tg(tm((0,b.Z)(n),n.handleMouseMove),30),n.handleMouseUpHandler_=function(e){return n.handleMouseUp(e)},n.on("mousedown",function(e){return n.handleMouseDown(e)}),n.on("touchstart",function(e){return n.handleMouseDown(e)}),n.on("mousemove",function(e){return n.handleMouseMove(e)}),n.on(n.volumeBar,["focus","slideractive"],function(){n.volumeBar.addClass("vjs-slider-active"),n.addClass("vjs-slider-active"),n.trigger("slideractive")}),n.on(n.volumeBar,["blur","sliderinactive"],function(){n.volumeBar.removeClass("vjs-slider-active"),n.removeClass("vjs-slider-active"),n.trigger("sliderinactive")}),n}(0,S.Z)(t,e);var i=t.prototype;return i.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},i.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},i.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},i.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(tF);nl.prototype.options_={children:["volumeBar"]},tF.registerComponent("VolumeControl",nl);var nu=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},nd=function(e){function t(t,i){var n;return n=e.call(this,t,i)||this,nu((0,b.Z)(n),t),n.on(t,["loadstart","volumechange"],function(e){return n.update(e)}),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},i.handleClick=function(e){var t=this.player_.volume(),i=this.player_.lastVolume_();0===t?(this.player_.volume(i<.1?.1:i),this.player_.muted(!1)):this.player_.muted(!this.player_.muted())},i.update=function(e){this.updateIcon_(),this.updateControlText_()},i.updateIcon_=function(){var e=this.player_.volume(),t=3;eE&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var i=0;i<4;i++)eF(this.el_,"vjs-vol-"+i);eN(this.el_,"vjs-vol-"+t)},i.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(iq);nd.prototype.controlText_="Mute",tF.registerComponent("MuteToggle",nd);var nc=function(e){function t(t,i){var n;return void 0===i&&(i={}),void 0!==i.inline?i.inline=i.inline:i.inline=!0,(void 0===i.volumeControl||ea(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline),(n=e.call(this,t,i)||this).handleKeyPressHandler_=function(e){return n.handleKeyPress(e)},n.on(t,["loadstart"],function(e){return n.volumePanelState_(e)}),n.on(n.muteToggle,"keyup",function(e){return n.handleKeyPress(e)}),n.on(n.volumeControl,"keyup",function(e){return n.handleVolumeControlKeyUp(e)}),n.on("keydown",function(e){return n.handleKeyPress(e)}),n.on("mouseover",function(e){return n.handleMouseOver(e)}),n.on("mouseout",function(e){return n.handleMouseOut(e)}),n.on(n.volumeControl,["slideractive"],n.sliderActive_),n.on(n.volumeControl,["sliderinactive"],n.sliderInactive_),n}(0,S.Z)(t,e);var i=t.prototype;return i.sliderActive_=function(){this.addClass("vjs-slider-active")},i.sliderInactive_=function(){this.removeClass("vjs-slider-active")},i.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},i.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},i.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},i.handleVolumeControlKeyUp=function(e){T().isEventKey(e,"Esc")&&this.muteToggle.focus()},i.handleMouseOver=function(e){this.addClass("vjs-hover"),tu(_(),"keyup",this.handleKeyPressHandler_)},i.handleMouseOut=function(e){this.removeClass("vjs-hover"),td(_(),"keyup",this.handleKeyPressHandler_)},i.handleKeyPress=function(e){T().isEventKey(e,"Esc")&&this.handleMouseOut()},t}(tF);nc.prototype.options_={children:["muteToggle","volumeControl"]},tF.registerComponent("VolumePanel",nc);var nh=function(e){function t(t,i){var n;return n=e.call(this,t,i)||this,i&&(n.menuButton_=i.menuButton),n.focusedChild_=-1,n.on("keydown",function(e){return n.handleKeyDown(e)}),n.boundHandleBlur_=function(e){return n.handleBlur(e)},n.boundHandleTapClick_=function(e){return n.handleTapClick(e)},n}(0,S.Z)(t,e);var i=t.prototype;return i.addEventListenerForItem=function(e){e instanceof tF&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},i.removeEventListenerForItem=function(e){e instanceof tF&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},i.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},i.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},i.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=eM(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var i=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return i.appendChild(this.contentEl_),tu(i,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),i},i.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},i.handleBlur=function(e){var t=e.relatedTarget||_().activeElement;if(!this.children().some(function(e){return e.el()===t})){var i=this.menuButton_;i&&i.buttonPressed_&&t!==i.el().firstChild&&i.unpressButton()}},i.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(Array.isArray(t)){var i=t.filter(function(t){return t.el()===e.target})[0];i&&"CaptionSettingsMenuItem"!==i.name()&&this.menuButton_.focus()}}},i.handleKeyDown=function(e){T().isEventKey(e,"Left")||T().isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(T().isEventKey(e,"Right")||T().isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},i.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},i.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},i.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(tF);tF.registerComponent("Menu",nh);var np=function(e){function t(t,i){void 0===i&&(i={}),(n=e.call(this,t,i)||this).menuButton_=new iq(t,i),n.menuButton_.controlText(n.controlText_),n.menuButton_.el_.setAttribute("aria-haspopup","true");var n,r=iq.prototype.buildCSSClass();n.menuButton_.el_.className=n.buildCSSClass()+" "+r,n.menuButton_.removeClass("vjs-control"),n.addChild(n.menuButton_),n.update(),n.enabled_=!0;var a=function(e){return n.handleClick(e)};return n.handleMenuKeyUp_=function(e){return n.handleMenuKeyUp(e)},n.on(n.menuButton_,"tap",a),n.on(n.menuButton_,"click",a),n.on(n.menuButton_,"keydown",function(e){return n.handleKeyDown(e)}),n.on(n.menuButton_,"mouseenter",function(){n.addClass("vjs-hover"),n.menu.show(),tu(_(),"keyup",n.handleMenuKeyUp_)}),n.on("mouseleave",function(e){return n.handleMouseLeave(e)}),n.on("keydown",function(e){return n.handleSubmenuKeyDown(e)}),n}(0,S.Z)(t,e);var i=t.prototype;return i.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},i.createMenu=function(){var e=new nh(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=eM("li",{className:"vjs-menu-title",textContent:tD(this.options_.title),tabIndex:-1}),i=new tF(this.player_,{el:t});e.addItem(i)}if(this.items=this.createItems(),this.items)for(var n=0;n-1&&"showing"===a.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)},i.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n-1&&"showing"===a.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(n_);tF.registerComponent("OffTextTrackMenuItem",nv);var ny=function(e){function t(t,i){return void 0===i&&(i={}),i.tracks=t.textTracks(),e.call(this,t,i)||this}return(0,S.Z)(t,e),t.prototype.createItems=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=n_),this.label_&&(i=this.label_+" off"),e.push(new nv(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;var i,n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r-1){var s=new t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+a.kind+"-menu-item"),e.push(s)}}return e},t}(nf);tF.registerComponent("TextTrackButton",ny);var nT=function(e){function t(t,i){var n,r=i.track,a=i.cue,s=t.currentTime();return i.selectable=!0,i.multiSelectable=!1,i.label=a.text,i.selected=a.startTime<=s&&s=0;t--){var i=e[t];if(i.kind===this.kind_)return i}},i.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(tD(this.kind_))},i.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},i.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var i=0,n=t.length;i-1&&(n.label_="captions"),n.menuButton_.controlText(tD(n.label_)),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},i.createItems=function(){var t=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(t.push(new nC(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,nw)},t}(ny);nI.prototype.kinds_=["captions","subtitles"],nI.prototype.controlText_="Subtitles",tF.registerComponent("SubsCapsButton",nI);var nx=function(e){function t(t,i){var n,r=i.track,a=t.audioTracks();i.label=r.label||r.language||"Unknown",i.selected=r.enabled,(n=e.call(this,t,i)||this).track=r,n.addClass("vjs-"+r.kind+"-menu-item");var s=function(){for(var e=arguments.length,t=Array(e),i=0;i=0;i--)t.push(new nA(this.player(),{rate:e[i]+"x"}));return t},i.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},i.handleClick=function(e){var t=this.player().playbackRate(),i=this.playbackRates(),n=(i.indexOf(t)+1)%i.length;this.player().playbackRate(i[n])},i.handlePlaybackRateschange=function(e){this.update()},i.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},i.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},i.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},i.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(np);nL.prototype.controlText_="Playback Rate",tF.registerComponent("PlaybackRateMenuButton",nL);var nO=function(e){function t(){return e.apply(this,arguments)||this}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(t,i,n){return void 0===t&&(t="div"),void 0===i&&(i={}),void 0===n&&(n={}),i.className||(i.className=this.buildCSSClass()),e.prototype.createEl.call(this,t,i,n)},t}(tF);tF.registerComponent("Spacer",nO);var nD=function(e){function t(){return e.apply(this,arguments)||this}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:"\xa0"})},t}(nO);tF.registerComponent("CustomControlSpacer",nD);var nM=function(e){function t(){return e.apply(this,arguments)||this}return(0,S.Z)(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(tF);nM.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in _()&&nM.prototype.options_.children.splice(nM.prototype.options_.children.length-1,0,"pictureInPictureToggle"),tF.registerComponent("ControlBar",nM);var nR=function(e){function t(t,i){var n;return(n=e.call(this,t,i)||this).on(t,"error",function(e){return n.open(e)}),n}(0,S.Z)(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},i.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(tY);nR.prototype.options_=(0,v.Z)({},tY.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),tF.registerComponent("ErrorDisplay",nR);var nU="vjs-text-track-settings",nB=["#000","Black"],nN=["#00F","Blue"],nF=["#0FF","Cyan"],nj=["#0F0","Green"],nH=["#F0F","Magenta"],nq=["#F00","Red"],nV=["#FFF","White"],nW=["#FF0","Yellow"],nz=["1","Opaque"],nG=["0.5","Semi-Transparent"],nK=["0","Transparent"],nZ={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[nB,nV,nq,nj,nN,nW,nH,nF]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[nz,nG,nK]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[nV,nB,nq,nj,nN,nW,nH,nF]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[nz,nG]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[nK,nG,nz]}};function nQ(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}nZ.windowColor.options=nZ.backgroundColor.options;var nX=function(e){function t(t,i){var n;return i.temporary=!1,(n=e.call(this,t,i)||this).updateDisplay=n.updateDisplay.bind((0,b.Z)(n)),n.fill(),n.hasBeenOpened_=n.hasBeenFilled_=!0,n.endDialog=eM("p",{className:"vjs-control-text",textContent:n.localize("End of dialog window.")}),n.el().appendChild(n.endDialog),n.setDefaults(),void 0===i.persistTextTrackSettings&&(n.options_.persistTextTrackSettings=n.options_.playerOptions.persistTextTrackSettings),n.on(n.$(".vjs-done-button"),"click",function(){n.saveSettings(),n.close()}),n.on(n.$(".vjs-default-button"),"click",function(){n.setDefaults(),n.updateDisplay()}),ei(nZ,function(e){n.on(n.$(e.selector),"change",n.updateDisplay)}),n.options_.persistTextTrackSettings&&n.restoreSettings(),n}(0,S.Z)(t,e);var i=t.prototype;return i.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},i.createElSelect_=function(e,t,i){var n=this;void 0===t&&(t=""),void 0===i&&(i="label");var r=nZ[e],a=r.id.replace("%s",this.id_),s=[t,a].join(" ").trim();return["<"+i+' id="'+a+'" class="'+("label"===i?"vjs-label":"")+'">',this.localize(r.label),"",'").join("")},i.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['
','',this.localize("Text"),"",this.createElSelect_("color",e),'',this.createElSelect_("textOpacity",e),"","
"].join("")},i.createElBgColor_=function(){var e="captions-background-"+this.id_;return['
','',this.localize("Background"),"",this.createElSelect_("backgroundColor",e),'',this.createElSelect_("backgroundOpacity",e),"","
"].join("")},i.createElWinColor_=function(){var e="captions-window-"+this.id_;return['
','',this.localize("Window"),"",this.createElSelect_("windowColor",e),'',this.createElSelect_("windowOpacity",e),"","
"].join("")},i.createElColors_=function(){return eM("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},i.createElFont_=function(){return eM("div",{className:"vjs-track-settings-font",innerHTML:['
',this.createElSelect_("fontPercent","","legend"),"
",'
',this.createElSelect_("edgeStyle","","legend"),"
",'
',this.createElSelect_("fontFamily","","legend"),"
"].join("")})},i.createElControls_=function(){var e=this.localize("restore all settings to the default values");return eM("div",{className:"vjs-track-settings-controls",innerHTML:['",'"].join("")})},i.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},i.label=function(){return this.localize("Caption Settings Dialog")},i.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},i.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},i.getValues=function(){var e,t=this;return e=function(e,i,n){var r,a,s=(r=t.$(i.selector),a=i.parser,nQ(r.options[r.options.selectedIndex].value,a));return void 0!==s&&(e[n]=s),e},et(nZ).reduce(function(t,i){return e(t,nZ[i],i)},{})},i.setValues=function(e){var t=this;ei(nZ,function(i,n){!function(e,t,i){if(t){for(var n=0;nthis.options_.liveTolerance;this.timeupdateSeen_&&n!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}},i.handleDurationchange=function(){this.toggleTracking()},i.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},i.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},i.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},i.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},i.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},i.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},i.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},i.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},i.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0},i.seekableStart=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0},i.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},i.isLive=function(){return this.isTracking()},i.atLiveEdge=function(){return!this.behindLiveEdge()},i.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},i.pastSeekEnd=function(){var e=this.seekableEnd();return -1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},i.behindLiveEdge=function(){return this.behindLiveEdge_},i.isTracking=function(){return"number"==typeof this.trackingInterval_},i.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},i.dispose=function(){this.off(_(),"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(tF);tF.registerComponent("LiveTracker",nJ);var n0=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var i=e.$$("source"),n=[],r="";if(!i.length)return!1;for(var a=0;a=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(e){this.trigger(e)},this)})}},i.setScrubbing=function(e){this.isScrubbing_=e},i.scrubbing=function(){return this.isScrubbing_},i.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&ew?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){$(t,"Video is not ready. (Video.js)")}},i.duration=function(){var e=this;return this.el_.duration===1/0&&eh&&e_&&0===this.el_.currentTime?(this.on("timeupdate",function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))}),NaN):this.el_.duration||NaN},i.width=function(){return this.el_.offsetWidth},i.height=function(){return this.el_.offsetHeight},i.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},i=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",i),this.on("dispose",function(){e.off("webkitbeginfullscreen",i),e.off("webkitendfullscreen",t)})}},i.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=m().navigator&&m().navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},i.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)tK(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},0);else try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},i.exitFullScreen=function(){if(!this.el_.webkitDisplayingFullscreen){this.trigger("fullscreenerror",Error("The video is not fullscreen"));return}this.el_.webkitExitFullScreen()},i.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},i.requestVideoFrameCallback=function(t){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(t):e.prototype.requestVideoFrameCallback.call(this,t)},i.cancelVideoFrameCallback=function(t){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(t):e.prototype.cancelVideoFrameCallback.call(this,t)},i.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},i.reset=function(){t.resetMediaElement(this.el_)},i.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},i.setControls=function(e){this.el_.controls=!!e},i.addTextTrack=function(t,i,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,i,n):e.prototype.addTextTrack.call(this,t,i,n)},i.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var i=_().createElement("track");return t.kind&&(i.kind=t.kind),t.label&&(i.label=t.label),(t.language||t.srclang)&&(i.srclang=t.language||t.srclang),t.default&&(i.default=t.default),t.id&&(i.id=t.id),t.src&&(i.src=t.src),i},i.addRemoteTextTrack=function(t,i){var n=e.prototype.addRemoteTextTrack.call(this,t,i);return this.featuresNativeTextTracks&&this.el().appendChild(n),n},i.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var i=this.$$("track"),n=i.length;n--;)(t===i[n]||t===i[n].track)&&this.el().removeChild(i[n])},i.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),m().performance&&"function"==typeof m().performance.now?e.creationTime=m().performance.now():m().performance&&m().performance.timing&&"number"==typeof m().performance.timing.navigationStart&&(e.creationTime=m().Date.now()-m().performance.timing.navigationStart),e},t}(iv);n3(n6,"TEST_VID",function(){if(eA()){var e=_().createElement("video"),t=_().createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}}),n6.isSupported=function(){try{n6.TEST_VID.volume=.5}catch(e){return!1}return!!(n6.TEST_VID&&n6.TEST_VID.canPlayType)},n6.canPlayType=function(e){return n6.TEST_VID.canPlayType(e)},n6.canPlaySource=function(e,t){return n6.canPlayType(e.type)},n6.canControlVolume=function(){try{var e=n6.TEST_VID.volume;n6.TEST_VID.volume=e/2+.1;var t=e!==n6.TEST_VID.volume;if(t&&eE)return m().setTimeout(function(){n6&&n6.prototype&&(n6.prototype.featuresVolumeControl=e!==n6.TEST_VID.volume)}),!1;return t}catch(i){return!1}},n6.canMuteVolume=function(){try{var e=n6.TEST_VID.muted;return n6.TEST_VID.muted=!e,n6.TEST_VID.muted?eW(n6.TEST_VID,"muted","muted"):ez(n6.TEST_VID,"muted","muted"),e!==n6.TEST_VID.muted}catch(t){return!1}},n6.canControlPlaybackRate=function(){if(eh&&e_&&ev<58)return!1;try{var e=n6.TEST_VID.playbackRate;return n6.TEST_VID.playbackRate=e/2+.1,e!==n6.TEST_VID.playbackRate}catch(t){return!1}},n6.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(_().createElement("video"),"src",{get:e,set:e}),Object.defineProperty(_().createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(_().createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(_().createElement("audio"),"innerHTML",{get:e,set:e})}catch(t){return!1}return!0},n6.supportsNativeTextTracks=function(){return ew||eE&&e_},n6.supportsNativeVideoTracks=function(){return!!(n6.TEST_VID&&n6.TEST_VID.videoTracks)},n6.supportsNativeAudioTracks=function(){return!!(n6.TEST_VID&&n6.TEST_VID.audioTracks)},n6.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(e){var t=e[0],i=e[1];n3(n6.prototype,t,function(){return n6[i]()},!0)}),n6.prototype.featuresVolumeControl=n6.canControlVolume(),n6.prototype.movingMediaElementInDOM=!eE,n6.prototype.featuresFullscreenResize=!0,n6.prototype.featuresProgressEvents=!0,n6.prototype.featuresTimeupdateEvents=!0,n6.prototype.featuresVideoFrameCallback=!!(n6.TEST_VID&&n6.TEST_VID.requestVideoFrameCallback),n6.patchCanPlayType=function(){!(ep>=4)||em||e_||(h=n6.TEST_VID&&n6.TEST_VID.constructor.prototype.canPlayType,n6.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":h.call(this,e)})},n6.unpatchCanPlayType=function(){var e=n6.TEST_VID.constructor.prototype.canPlayType;return h&&(n6.TEST_VID.constructor.prototype.canPlayType=h),e},n6.patchCanPlayType(),n6.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(t){}}()}},n6.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),i=t.length;i--;)e.removeChild(t[i]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){n6.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){n6.prototype["set"+tD(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){n6.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){n6.prototype["set"+tD(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){n6.prototype[e]=function(){return this.el_[e]()}}),iv.withSourceHandlers(n6),n6.nativeSourceHandler={},n6.nativeSourceHandler.canPlayType=function(e){try{return n6.TEST_VID.canPlayType(e)}catch(t){return""}},n6.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return n6.nativeSourceHandler.canPlayType(e.type);if(e.src){var i=ia(e.src);return n6.nativeSourceHandler.canPlayType("video/"+i)}return""},n6.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},n6.nativeSourceHandler.dispose=function(){},n6.registerSourceHandler(n6.nativeSourceHandler),iv.registerTech("Html5",n6);var n7=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],n9={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},re=["tiny","xsmall","small","medium","large","xlarge","huge"],rt={};re.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;rt[e]="vjs-layout-"+t});var ri={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},rn=function(e){function t(i,n,r){if(i.id=i.id||n.id||"vjs_video_"+ti++,(n=en(t.getTagSettings(i),n)).initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language){if("function"==typeof i.closest){var a,s=i.closest("[lang]");s&&s.getAttribute&&(n.language=s.getAttribute("lang"))}else for(var o=i;o&&1===o.nodeType;){if(eq(o).hasOwnProperty("lang")){n.language=o.getAttribute("lang");break}o=o.parentNode}}if((a=e.call(this,null,n,r)||this).boundDocumentFullscreenChange_=function(e){return a.documentFullscreenChange_(e)},a.boundFullWindowOnEscKey_=function(e){return a.fullWindowOnEscKey(e)},a.boundUpdateStyleEl_=function(e){return a.updateStyleEl_(e)},a.boundApplyInitTime_=function(e){return a.applyInitTime_(e)},a.boundUpdateCurrentBreakpoint_=function(e){return a.updateCurrentBreakpoint_(e)},a.boundHandleTechClick_=function(e){return a.handleTechClick_(e)},a.boundHandleTechDoubleClick_=function(e){return a.handleTechDoubleClick_(e)},a.boundHandleTechTouchStart_=function(e){return a.handleTechTouchStart_(e)},a.boundHandleTechTouchMove_=function(e){return a.handleTechTouchMove_(e)},a.boundHandleTechTouchEnd_=function(e){return a.handleTechTouchEnd_(e)},a.boundHandleTechTap_=function(e){return a.handleTechTap_(e)},a.isFullscreen_=!1,a.log=J(a.id_),a.fsApi_=G,a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!1,a.debugEnabled_=!1,a.audioOnlyMode_=!1,a.audioPosterMode_=!1,a.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!a.options_||!a.options_.techOrder||!a.options_.techOrder.length)throw Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(a.tag=i,a.tagAttributes=i&&eq(i),a.language(a.options_.language),n.languages){var l={};Object.getOwnPropertyNames(n.languages).forEach(function(e){l[e.toLowerCase()]=n.languages[e]}),a.languages_=l}else a.languages_=t.prototype.options_.languages;a.resetCache_(),a.poster_=n.poster||"",a.controls_=!!n.controls,i.controls=!1,i.removeAttribute("controls"),a.changingSrc_=!1,a.playCallbacks_=[],a.playTerminatedQueue_=[],i.hasAttribute("autoplay")?a.autoplay(!0):a.autoplay(a.options_.autoplay),n.plugins&&Object.keys(n.plugins).forEach(function(e){if("function"!=typeof a[e])throw Error('plugin "'+e+'" does not exist')}),a.scrubbing_=!1,a.el_=a.createEl(),tP((0,b.Z)(a),{eventBusKey:"el_"}),a.fsApi_.requestFullscreen&&(tu(_(),a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_),a.on(a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_)),a.fluid_&&a.on(["playerreset","resize"],a.boundUpdateStyleEl_);var u=tM(a.options_);n.plugins&&Object.keys(n.plugins).forEach(function(e){a[e](n.plugins[e])}),n.debug&&a.debug(!0),a.options_.playerOptions=u,a.middleware_=[],a.playbackRates(n.playbackRates),a.initChildren(),a.isAudio("audio"===i.nodeName.toLowerCase()),a.controls()?a.addClass("vjs-controls-enabled"):a.addClass("vjs-controls-disabled"),a.el_.setAttribute("role","region"),a.isAudio()?a.el_.setAttribute("aria-label",a.localize("Audio Player")):a.el_.setAttribute("aria-label",a.localize("Video Player")),a.isAudio()&&a.addClass("vjs-audio"),a.flexNotSupported_()&&a.addClass("vjs-no-flex"),eS&&a.addClass("vjs-touch-enabled"),eE||a.addClass("vjs-workinghover"),t.players[a.id_]=(0,b.Z)(a);var d=q.split(".")[0];return a.addClass("vjs-v"+d),a.userActive(!0),a.reportUserActivity(),a.one("play",function(e){return a.listenForUserActivity_(e)}),a.on("stageclick",function(e){return a.handleStageClick_(e)}),a.on("keydown",function(e){return a.handleKeyDown(e)}),a.on("languagechange",function(e){return a.handleLanguagechange(e)}),a.breakpoints(a.options_.breakpoints),a.responsive(a.options_.responsive),a.on("ready",function(){a.audioPosterMode(a.options_.audioPosterMode),a.audioOnlyMode(a.options_.audioOnlyMode)}),a}(0,S.Z)(t,e);var i=t.prototype;return i.dispose=function(){var i,n=this;this.trigger("dispose"),this.off("dispose"),td(_(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),td(_(),"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),i=this,iT[i.id()]=null,i_.names.forEach(function(e){var t=n[i_[e].getterName]();t&&t.off&&t.off()}),e.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},i.createEl=function(){var t,i=this.tag,n=this.playerElIngest_=i.parentNode&&i.parentNode.hasAttribute&&i.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();n?t=this.el_=i.parentNode:r||(t=this.el_=e.prototype.createEl.call(this,"div"));var a=eq(i);if(r){for(t=this.el_=i,i=this.tag=_().createElement("video");t.children.length;)i.appendChild(t.firstChild);eB(t,"video-js")||eN(t,"video-js"),t.appendChild(i),n=this.playerElIngest_=t,Object.keys(t).forEach(function(e){try{i[e]=t[e]}catch(n){}})}if(i.setAttribute("tabindex","-1"),a.tabindex="-1",(ey||e_&&eb)&&(i.setAttribute("role","application"),a.role="application"),i.removeAttribute("width"),i.removeAttribute("height"),"width"in a&&delete a.width,"height"in a&&delete a.height,Object.getOwnPropertyNames(a).forEach(function(e){r&&"class"===e||t.setAttribute(e,a[e]),r&&i.setAttribute(e,a[e])}),i.playerId=i.id,i.id+="_html5_api",i.className="vjs-tech",i.player=t.player=this,this.addClass("vjs-paused"),!0!==m().VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=te("vjs-styles-dimensions");var s=e8(".vjs-styles-defaults"),o=e8("head");o.insertBefore(this.styleEl_,s?s.nextSibling:o.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var l=i.getElementsByTagName("a"),u=0;u=0&&(a.width=n),r>=0&&(a.height=r));return}var s=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=s[1]/s[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*o,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),tt(this.styleEl_,"\n ."+i+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+i+".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: "+100*o+"%;\n }\n ")},i.loadTech_=function(e,t){var i=this;this.tech_&&this.unloadTech_();var n=tD(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(iv.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var a=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(a=!1);var s={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};i_.names.forEach(function(e){var t=i_[e];s[t.getterName]=i[t.privateName]}),en(s,this.options_[n]),en(s,this.options_[r]),en(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(s.startTime=this.cache_.currentTime);var o=iv.getTech(e);if(!o)throw Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new o(s),this.tech_.ready(tm(this,this.handleTechReady_),!0),tQ.jsonToTextTracks(this.textTracksJson_||[],this.tech_),n7.forEach(function(e){i.on(i.tech_,e,function(t){return i["handleTech"+tD(e)+"_"](t)})}),Object.keys(n9).forEach(function(e){i.on(i.tech_,e,function(t){if(0===i.tech_.playbackRate()&&i.tech_.seeking()){i.queuedCallbacks_.push({callback:i["handleTech"+n9[e]+"_"].bind(i),event:t});return}i["handleTech"+n9[e]+"_"](t)})}),this.on(this.tech_,"loadstart",function(e){return i.handleTechLoadStart_(e)}),this.on(this.tech_,"sourceset",function(e){return i.handleTechSourceset_(e)}),this.on(this.tech_,"waiting",function(e){return i.handleTechWaiting_(e)}),this.on(this.tech_,"ended",function(e){return i.handleTechEnded_(e)}),this.on(this.tech_,"seeking",function(e){return i.handleTechSeeking_(e)}),this.on(this.tech_,"play",function(e){return i.handleTechPlay_(e)}),this.on(this.tech_,"firstplay",function(e){return i.handleTechFirstPlay_(e)}),this.on(this.tech_,"pause",function(e){return i.handleTechPause_(e)}),this.on(this.tech_,"durationchange",function(e){return i.handleTechDurationChange_(e)}),this.on(this.tech_,"fullscreenchange",function(e,t){return i.handleTechFullscreenChange_(e,t)}),this.on(this.tech_,"fullscreenerror",function(e,t){return i.handleTechFullscreenError_(e,t)}),this.on(this.tech_,"enterpictureinpicture",function(e){return i.handleTechEnterPictureInPicture_(e)}),this.on(this.tech_,"leavepictureinpicture",function(e){return i.handleTechLeavePictureInPicture_(e)}),this.on(this.tech_,"error",function(e){return i.handleTechError_(e)}),this.on(this.tech_,"posterchange",function(e){return i.handleTechPosterChange_(e)}),this.on(this.tech_,"textdata",function(e){return i.handleTechTextData_(e)}),this.on(this.tech_,"ratechange",function(e){return i.handleTechRateChange_(e)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||eU(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},i.unloadTech_=function(){var e=this;i_.names.forEach(function(t){var i=i_[t];e[i.privateName]=e[i.getterName]()}),this.textTracksJson_=tQ.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},i.tech=function(e){return void 0===e&&$.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},i.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},i.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},i.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},i.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},i.manualAutoplay_=function(e){var t,i=this;if(this.tech_&&"string"==typeof e){var n=function(){var e=i.muted();i.muted(!0);var t=function(){i.muted(e)};i.playTerminatedQueue_.push(t);var n=i.play();if(tG(n))return n.catch(function(e){throw t(),Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))})};if("any"!==e||this.muted()?t="muted"!==e||this.muted()?this.play():n():tG(t=this.play())&&(t=t.catch(n)),tG(t))return t.then(function(){i.trigger({type:"autoplay-success",autoplay:e})}).catch(function(){i.trigger({type:"autoplay-failure",autoplay:e})})}},i.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,i="";"string"!=typeof t&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=iP(this,t)),this.cache_.source=tM({},e,{src:t,type:i});for(var n=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),r=[],a=this.$$("source"),s=[],o=0;o0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},i.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",function i(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",i))})},i.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},i.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},i.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},i.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},i.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},i.handleTechFirstPlay_=function(){this.options_.starttime&&($.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},i.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},i.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},i.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},i.handleTechClick_=function(e){this.controls_&&(void 0===this.options_||void 0===this.options_.userActions||void 0===this.options_.userActions.click||!1!==this.options_.userActions.click)&&(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?tK(this.play()):this.pause())},i.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(t){return t.contains(e.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},i.handleTechTap_=function(){this.userActive(!this.userActive())},i.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},i.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},i.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},i.handleStageClick_=function(){this.reportUserActivity()},i.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},i.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var i=this.el(),n=_()[this.fsApi_.fullscreenElement]===i;!n&&i.matches?n=i.matches(":"+this.fsApi_.fullscreen):!n&&i.msMatchesSelector&&(n=i.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(n)}},i.handleTechFullscreenChange_=function(e,t){var i=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",function(){i.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))},i.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},i.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},i.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},i.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},i.handleTechError_=function(){var e=this.tech_.error();this.error(e)},i.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},i.getCache=function(){return this.cache_},i.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},i.techCall_=function(e,t){this.ready(function(){if(e in iC){var i;return i=this.middleware_,this.tech_[e](i.reduce(iw(e),t))}if(e in iE)return iS(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(n){throw $(n),n}},!0)},i.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in ik){var t,i;return t=this.middleware_,i=this.tech_,t.reduceRight(iw(e),i[e]())}if(e in iE)return iS(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(n){if(void 0===this.tech_[e])throw $("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",n),n;if("TypeError"===n.name)throw $("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",n),this.tech_.isReady_=!1,n;throw $(n),n}}},i.play=function(){var e=this,t=this.options_.Promise||m().Promise;return t?new t(function(t){e.play_(t)}):this.play_()},i.play_=function(e){var t=this;void 0===e&&(e=tK),this.playCallbacks_.push(e);var i=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!i){this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!i&&(ew||eE)&&this.load();return}var n=this.techGet_("play");null===n?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(n)},i.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})},i.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})},i.pause=function(){this.techCall_("pause")},i.paused=function(){return!1!==this.techGet_("paused")},i.played=function(){return this.techGet_("played")||tq(0,0)},i.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},i.currentTime=function(e){if(void 0!==e){if(e<0&&(e=0),!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),this.one("canplay",this.boundApplyInitTime_);return}this.techCall_("setCurrentTime",e),this.cache_.initTime=0;return}return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime},i.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},i.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e===this.cache_.duration||(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},i.remainingTime=function(){return this.duration()-this.currentTime()},i.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},i.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=tq(0,0)),e},i.bufferedPercent=function(){return tV(this.buffered(),this.duration())},i.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),i=e.end(e.length-1);return i>t&&(i=t),i},i.volume=function(e){var t;if(void 0!==e){t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),t>0&&this.lastVolume_(t);return}return isNaN(t=parseFloat(this.techGet_("volume")))?1:t},i.muted=function(e){if(void 0!==e){this.techCall_("setMuted",e);return}return this.techGet_("muted")||!1},i.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},i.lastVolume_=function(e){if(void 0!==e&&0!==e){this.cache_.lastVolume=e;return}return this.cache_.lastVolume},i.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},i.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_();return}return this.isFullscreen_},i.requestFullscreen=function(e){var t=this.options_.Promise||m().Promise;if(t){var i=this;return new t(function(t,n){function r(){i.off("fullscreenerror",s),i.off("fullscreenchange",a)}function a(){r(),t()}function s(e,t){r(),n(t)}i.one("fullscreenchange",a),i.one("fullscreenerror",s);var o=i.requestFullscreenHelper_(e);o&&(o.then(r,r),o.then(t,n))})}return this.requestFullscreenHelper_()},i.requestFullscreenHelper_=function(e){var t,i=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0===e||(t=e)),this.fsApi_.requestFullscreen){var n=this.el_[this.fsApi_.requestFullscreen](t);return n&&n.then(function(){return i.isFullscreen(!0)},function(){return i.isFullscreen(!1)}),n}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},i.exitFullscreen=function(){var e=this.options_.Promise||m().Promise;if(e){var t=this;return new e(function(e,i){function n(){t.off("fullscreenerror",a),t.off("fullscreenchange",r)}function r(){n(),e()}function a(e,t){n(),i(t)}t.one("fullscreenchange",r),t.one("fullscreenerror",a);var s=t.exitFullscreenHelper_();s&&(s.then(n,n),s.then(e,i))})}return this.exitFullscreenHelper_()},i.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=_()[this.fsApi_.exitFullscreen]();return t&&tK(t.then(function(){return e.isFullscreen(!1)})),t}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},i.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=_().documentElement.style.overflow,tu(_(),"keydown",this.boundFullWindowOnEscKey_),_().documentElement.style.overflow="hidden",eN(_().body,"vjs-full-window"),this.trigger("enterFullWindow")},i.fullWindowOnEscKey=function(e){T().isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},i.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,td(_(),"keydown",this.boundFullWindowOnEscKey_),_().documentElement.style.overflow=this.docOrigOverflow,eF(_().body,"vjs-full-window"),this.trigger("exitFullWindow")},i.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},i.isInPictureInPicture=function(e){if(void 0!==e){this.isInPictureInPicture_=!!e,this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_},i.requestPictureInPicture=function(){if("pictureInPictureEnabled"in _()&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},i.exitPictureInPicture=function(){if("pictureInPictureEnabled"in _())return _().exitPictureInPicture()},i.handleKeyDown=function(e){var t,i,n=this.options_.userActions;n&&n.hotkeys&&(i=(t=this.el_.ownerDocument.activeElement).tagName.toLowerCase(),t.isContentEditable||("input"===i?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(t.type):-1!==["textarea"].indexOf(i))||("function"==typeof n.hotkeys?n.hotkeys.call(this,e):this.handleHotkeys(e)))},i.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},i=t.fullscreenKey,n=t.muteKey,r=t.playPauseKey;if((void 0===i?function(e){return T().isEventKey(e,"f")}:i).call(this,e)){e.preventDefault(),e.stopPropagation();var a=tF.getComponent("FullscreenToggle");!1!==_()[this.fsApi_.fullscreenEnabled]&&a.prototype.handleClick.call(this,e)}else(void 0===n?function(e){return T().isEventKey(e,"m")}:n).call(this,e)?(e.preventDefault(),e.stopPropagation(),tF.getComponent("MuteToggle").prototype.handleClick.call(this,e)):(void 0===r?function(e){return T().isEventKey(e,"k")||T().isEventKey(e,"Space")}:r).call(this,e)&&(e.preventDefault(),e.stopPropagation(),tF.getComponent("PlayToggle").prototype.handleClick.call(this,e))},i.canPlayType=function(e){for(var t,i=0,n=this.options_.techOrder;i1?i.handleSrc_(n.slice(1)):(i.changingSrc_=!1,i.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),void i.triggerReady());!function(e,t){e.forEach(function(e){return e.setTech&&e.setTech(t)})}(r,i.tech_)}),this.options_.retryOnError&&n.length>1){var r=function(){i.error(null),i.handleSrc_(n.slice(1),!0)},a=function(){i.off("error",r)};this.one("error",r),this.one("playing",a),this.resetRetryOnError_=function(){i.off("error",r),i.off("playing",a)}}},i.src=function(e){return this.handleSrc_(e,!1)},i.src_=function(e){var t,i,n=this,r=this.selectSource([e]);return!r||((t=r.tech,i=this.techName_,tD(t)!==tD(i))?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready(function(){n.changingSrc_=!1}),!1):(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1))},i.load=function(){this.techCall_("load")},i.reset=function(){var e=this,t=this.options_.Promise||m().Promise;this.paused()||!t?this.doReset_():tK(this.play().then(function(){return e.doReset_()}))},i.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),tT(this)&&this.trigger("playerreset")},i.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},i.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar||{},t=e.durationDisplay,i=e.remainingTimeDisplay;t&&t.updateContent(),i&&i.updateContent()},i.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},i.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},i.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},i.currentSource=function(){return this.cache_.source||{}},i.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},i.currentType=function(){return this.currentSource()&&this.currentSource().type||""},i.preload=function(e){if(void 0!==e){this.techCall_("setPreload",e),this.options_.preload=e;return}return this.techGet_("preload")},i.autoplay=function(e){var t;if(void 0===e)return this.options_.autoplay||!1;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):e?this.options_.autoplay=!0:this.options_.autoplay=!1,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},i.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},i.loop=function(e){if(void 0!==e){this.techCall_("setLoop",e),this.options_.loop=e;return}return this.techGet_("loop")},i.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},i.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},i.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},i.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},i.error=function(e){var t=this;if(void 0===e)return this.error_||null;if(W("beforeerror").forEach(function(i){var n=i(t,e);if(!(er(n)&&!Array.isArray(n)||"string"==typeof n||"number"==typeof n||null===n)){t.log.error("please return a value that MediaError expects in beforeerror hooks");return}e=n}),this.options_.suppressNotSupportedError&&e&&4===e.code){var i=function(){this.error(e)};this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],i),this.one("loadstart",function(){this.off(["click","touchstart"],i)});return}if(null===e){this.error_=e,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new tW(e),this.addClass("vjs-error"),$.error("(CODE:"+this.error_.code+" "+tW.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),W("error").forEach(function(e){return e(t,t.error_)})},i.reportUserActivity=function(e){this.userActivity_=!0},i.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_){this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");return}this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},i.listenForUserActivity_=function(){var e,t,i,n,r=tm(this,this.reportUserActivity),a=function(t){r(),this.clearInterval(e)};this.on("mousedown",function(){r(),this.clearInterval(e),e=this.setInterval(r,250)}),this.on("mousemove",function(e){(e.screenX!==t||e.screenY!==i)&&(t=e.screenX,i=e.screenY,r())}),this.on("mouseup",a),this.on("mouseleave",a);var s=this.getChild("controlBar");!s||eE||eh||(s.on("mouseenter",function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),s.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r),this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(n);var e=this.options_.inactivityTimeout;e<=0||(n=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},i.playbackRate=function(e){if(void 0!==e){this.techCall_("setPlaybackRate",e);return}return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1},i.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},i.isAudio=function(e){if(void 0!==e){this.isAudio_=!!e;return}return!!this.isAudio_},i.enableAudioOnlyUI_=function(){var e=this;this.addClass("vjs-audio-only-mode");var t=this.children(),i=this.getChild("ControlBar"),n=i&&i.currentHeight();t.forEach(function(t){t!==i&&t.el_&&!t.hasClass("vjs-hidden")&&(t.hide(),e.audioOnlyCache_.hiddenChildren.push(t))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(n),this.trigger("audioonlymodechange")},i.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(function(e){return e.show()}),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},i.audioOnlyMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=e;var i=this.options_.Promise||m().Promise;if(i){if(e){var n=[];return this.isInPictureInPicture()&&n.push(this.exitPictureInPicture()),this.isFullscreen()&&n.push(this.exitFullscreen()),this.audioPosterMode()&&n.push(this.audioPosterMode(!1)),i.all(n).then(function(){return t.enableAudioOnlyUI_()})}return i.resolve().then(function(){return t.disableAudioOnlyUI_()})}e?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},i.enablePosterModeUI_=function(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},i.disablePosterModeUI_=function(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},i.audioPosterMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=e;var i=this.options_.Promise||m().Promise;if(i)return e?this.audioOnlyMode()?this.audioOnlyMode(!1).then(function(){t.enablePosterModeUI_()}):i.resolve().then(function(){t.enablePosterModeUI_()}):i.resolve().then(function(){t.disablePosterModeUI_()});if(e){this.audioOnlyMode()&&this.audioOnlyMode(!1),this.enablePosterModeUI_();return}this.disablePosterModeUI_()},i.addTextTrack=function(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)},i.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},i.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)},i.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},i.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},i.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},i.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),tT(this)&&this.trigger("languagechange"))},i.languages=function(){return tM(t.prototype.options_.languages,this.languages_)},i.toJSON=function(){var e=tM(this.options_),t=e.tracks;e.tracks=[];for(var i=0;i"):function(){}},rS=1/30,rk=3*(1/30),rC=function(e,t){var i,n=[];if(e&&e.length)for(i=0;i=t})},rw=function(e,t){return rC(e,function(e){return e-rS>=t})},rI=function(e){if(e.length<2)return rg.createTimeRanges();for(var t=[],i=1;i "+e.end(i));return t.join(", ")},rA=function(e){for(var t=[],i=0;ia)){if(t>r&&t<=a){i+=a-t;continue}i+=a-r}}return i},rM=rg.createTimeRange,rR=function(e,t){if(!t.preload)return t.duration;var i=0;return(t.parts||[]).forEach(function(e){i+=e.duration}),(t.preloadHints||[]).forEach(function(t){"PART"===t.type&&(i+=e.partTargetDuration)}),i},rU=function(e){return(e.segments||[]).reduce(function(e,t,i){return t.parts?t.parts.forEach(function(n,r){e.push({duration:n.duration,segmentIndex:i,partIndex:r,part:n,segment:t})}):e.push({duration:t.duration,segmentIndex:i,partIndex:null,segment:t,part:null}),e},[])},rB=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},rN=function(e){var t=e.preloadSegment;if(t){var i=t.parts;return(t.preloadHints||[]).reduce(function(e,t){return e+("PART"===t.type?1:0)},0)+(i&&i.length?i.length:0)}},rF=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var i=rB(t).length>0;return i&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:i&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},rj=function(e,t){var i=0,n=t-e.mediaSequence,r=e.segments[n];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;n--;){if(void 0!==(r=e.segments[n]).end)return{result:i+r.end,precise:!0};if(i+=rR(e,r),void 0!==r.start)return{result:i+r.start,precise:!0}}return{result:i,precise:!1}},rH=function(e,t){for(var i,n=0,r=t-e.mediaSequence;rr){var s=[r,n];n=s[0],r=s[1]}if(n<0){for(var o=n;oDate.now()},rK=function(e){return e.excludeUntil&&e.excludeUntil===1/0},rZ=function(e){var t=rG(e);return!e.disabled&&!t},rQ=function(e,t){return t.attributes&&t.attributes[e]},rX=function(e,t){if(1===e.playlists.length)return!0;var i=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(function(e){return!!rZ(e)&&(e.attributes.BANDWIDTH||0)0)for(var h=u-1;h>=0;h--){var p=l[h];if(o+=p.duration,s){if(o<0)continue}else if(o+rS<=0)continue;return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:a-rW({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:h})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:i}}if(u<0){for(var f=u;f<0;f++)if((o-=t.targetDuration)<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:i};u=0}for(var m=u;m0)continue}else if(o-rS>=0)continue;return{partIndex:g.partIndex,segmentIndex:g.segmentIndex,startTime:a+rW({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:m})}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:i}},isEnabled:rZ,isDisabled:function(e){return e.disabled},isBlacklisted:rG,isIncompatible:rK,playlistEnd:rz,isAes:function(e){for(var t=0;t-1&&s!==a.length-1&&(i._HLS_part=s),(s>-1||a.length)&&r--}i._HLS_msn=r}if(t.serverControl&&t.serverControl.canSkipUntil&&(i._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(i).length){var o=new(m()).URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(e){i.hasOwnProperty(e)&&o.searchParams.set(e,i[e])}),e=o.toString()}return e},an=function(e,t){if(!e)return t;var i=ae(e,t);if(e.preloadHints&&!t.preloadHints&&delete i.preloadHints,e.parts&&!t.parts)delete i.parts;else if(e.parts&&t.parts)for(var n=0;n=500?4:2},this.trigger("error")},i.parseManifest_=function(e){var t=this,i=e.url;return r8({onwarn:function(e){var n=e.message;return t.logger_("m3u8-parser warn for "+i+": "+n)},oninfo:function(e){var n=e.message;return t.logger_("m3u8-parser info for "+i+": "+n)},manifestString:e.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},i.haveMetadata=function(e){var t=e.playlistString,i=e.playlistObject,n=e.url,r=e.id;this.request=null,this.state="HAVE_METADATA";var a=i||this.parseManifest_({url:n,manifestString:t});a.lastRequest=Date.now(),r5({playlist:a,uri:n,id:r});var s=al(this.master,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,s?(this.master=s,this.media_=this.master.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(au(this.media(),!!s)),this.trigger("loadedplaylist")},i.dispose=function(){this.trigger("dispose"),this.stopRequest(),m().clearTimeout(this.mediaUpdateTimeout),m().clearTimeout(this.finalRenditionTimeout),this.off()},i.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},i.media=function(e,t){var i=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.master.playlists[e])throw Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(m().clearTimeout(this.finalRenditionTimeout),t){var n=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=m().setTimeout(this.media.bind(this,e,!1),n);return}var r=this.state,a=!this.media_||e.id!==this.media_.id,s=this.master.playlists[e.id];if(s&&s.endList||e.endList&&e.segments.length){this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,a&&(this.trigger("mediachanging"),"HAVE_MASTER"===r?this.trigger("loadedmetadata"):this.trigger("mediachange"));return}if(this.updateMediaUpdateTimeout_(au(e,!0)),a){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},function(t,n){if(i.request){if(e.lastRequest=Date.now(),e.resolvedUri=rT(i.handleManifestRedirects,e.resolvedUri,n),t)return i.playlistRequestError(i.request,e,r);i.haveMetadata({playlistString:n.responseText,url:e.uri,id:e.id}),"HAVE_MASTER"===r?i.trigger("loadedmetadata"):i.trigger("mediachange")}})}},i.pause=function(){this.mediaUpdateTimeout&&(m().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},i.load=function(e){var t=this;this.mediaUpdateTimeout&&(m().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var i=this.media();if(e){var n=i?(i.partTargetDuration||i.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=m().setTimeout(function(){t.mediaUpdateTimeout=null,t.load()},n);return}if(!this.started){this.start();return}i&&!i.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist")},i.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(m().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=m().setTimeout(function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)},e))},i.start=function(){var e=this;if(this.started=!0,"object"==typeof this.src){this.src.uri||(this.src.uri=m().location.href),this.src.resolvedUri=this.src.uri,setTimeout(function(){e.setupInitialPlaylist(e.src)},0);return}this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(t,i){if(e.request){if(e.request=null,t)return e.error={status:i.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:i.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=rT(e.handleManifestRedirects,e.src,i);var n=e.parseManifest_({manifestString:i.responseText,url:e.src});e.setupInitialPlaylist(n)}})},i.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},i.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists){this.master=e,r9(this.master,this.srcUri()),e.playlists.forEach(function(e){e.segments=as(e),e.segments.forEach(function(t){aa(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.master.playlists[0]);return}var t=this.srcUri()||m().location.href;this.master=r7(e,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(at),ac=rg.xhr,ah=rg.mergeOptions,ap=function(e,t,i,n){var r="arraybuffer"===e.responseType?e.response:e.responseText;t||!r||(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8e3))),i.headers&&(e.responseHeaders=i.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===i.statusCode||206===i.statusCode||0===i.statusCode||(t=Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),n(t,e)},af=function(){var e=function e(t,i){t=ah({timeout:45e3},t);var n=e.beforeRequest||rg.Vhs.xhr.beforeRequest;if(n&&"function"==typeof n){var r=n(t);r&&(t=r)}var a=(!0===rg.Vhs.xhr.original?ac:rg.Vhs.xhr)(t,function(e,t){return ap(a,e,t,i)}),s=a.abort;return a.abort=function(){return a.aborted=!0,s.apply(a,arguments)},a.uri=t.uri,a.requestTime=Date.now(),a};return e.original=!0,e},am=function(e){var t,i={};return e.byterange&&(i.Range="bytes="+(t=e.byterange).offset+"-"+("bigint"==typeof t.offset||"bigint"==typeof t.length?m().BigInt(t.offset)+m().BigInt(t.length)-m().BigInt(1):t.offset+t.length-1)),i},ag=function(e,t){var i=e.toString(16);return"00".substring(0,2-i.length)+i+(t%2?" ":"")},a_=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},av=function(e){var t={};return Object.keys(e).forEach(function(i){var n=e[i];(0,R.Au)(n)?t[i]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:t[i]=n}),t},ay=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},aT=function(e){return e.resolvedUri},ab=function(e){for(var t=Array.prototype.slice.call(e),i="",n=0;nnew Date(l.getTime()+1e3*u)?null:(r>l&&(a=o),{segment:a,estimatedStart:a.videoTimingInfo?a.videoTimingInfo.transmuxedPresentationStart:r0.duration(t,t.mediaSequence+t.segments.indexOf(a)),type:a.videoTimingInfo?"accurate":"estimate"})},aE=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var i,n=0,r=0;rn){if(e>n+.25*a.duration)return null;i=a}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:n-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}},aw=function(e,t){try{n=new Date(e),r=new Date(t)}catch(i){}var n,r,a=n.getTime();return(r.getTime()-a)/1e3},aI=function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t=d+u)return s(t,{response:o.subarray(u,u+d),status:i.status,uri:i.uri});n.request=n.vhs_.xhr({uri:a,responseType:"arraybuffer",headers:am({byterange:e.sidx.byterange})},s)})},i.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},m().clearTimeout(this.minimumUpdatePeriodTimeout_),m().clearTimeout(this.mediaRequest_),m().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},i.hasPendingRequest=function(){return this.request||this.mediaRequest_},i.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},i.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw Error("Cannot switch media playlist from "+this.state);var i=this.state;if("string"==typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var n=!this.media_||e.id!==this.media_.id;if(n&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList){this.state="HAVE_METADATA",this.media_=e,n&&(this.trigger("mediachanging"),this.trigger("mediachange"));return}n&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,i,function(n){t.haveMetadata({startingState:i,playlist:e})}))},i.haveMetadata=function(e){var t=e.startingState,i=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[i.id]=i,this.mediaRequest_=null,this.refreshMedia_(i.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},i.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),m().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(m().clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},i.load=function(e){var t=this;m().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var i=this.media();if(e){var n=i?i.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=m().setTimeout(function(){return t.load()},n);return}if(!this.started){this.start();return}i&&!i.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist")},i.start=function(){var e=this;if(this.started=!0,!this.isMaster_){this.mediaRequest_=m().setTimeout(function(){return e.haveMaster_()},0);return}this.requestMaster_(function(t,i){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])})},i.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(i,n){if(t.requestErrored_(i,n)){"HAVE_NOTHING"===t.state&&(t.started=!1);return}var r=n.responseText!==t.masterPlaylistLoader_.masterXml_;if(t.masterPlaylistLoader_.masterXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?t.masterLoaded_=Date.parse(n.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=rT(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,n),r){t.handleMaster_(),t.syncClientServerClock_(function(){return e(n,r)});return}return e(n,r)})},i.syncClientServerClock_=function(e){var t=this,i=(0,U.LG)(this.masterPlaylistLoader_.masterXml_);return null===i?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===i.method?(this.masterPlaylistLoader_.clientOffset_=i.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:ry(this.masterPlaylistLoader_.srcUrl,i.value),method:i.method,withCredentials:this.withCredentials},function(n,r){var a;if(t.request){if(n)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();a="HEAD"===i.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.masterLoaded_:Date.parse(r.responseText),t.masterPlaylistLoader_.clientOffset_=a-Date.now(),e()}}))},i.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},i.handleMaster_=function(){this.mediaRequest_=null;var e=this.masterPlaylistLoader_.master,t=aR({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(t=aU(e,t,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=t||e;var i=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return i&&i!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=i),(!e||t&&t.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(t)},i.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(m().clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.master&&e.master.minimumUpdatePeriod;if(0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0){t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout");return}this.createMUPTimeout_(t)},i.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=m().setTimeout(function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)},i.refreshXml_=function(){var e=this;this.requestMaster_(function(t,i){i&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=aN(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.sidxMapping_),e.addSidxSegments_(e.media(),e.state,function(t){e.refreshMedia_(e.media().id)}))})},i.refreshMedia_=function(e){var t=this;if(!e)throw Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var i=this.masterPlaylistLoader_.master.playlists,n=!this.media_||this.media_!==i[e];n?this.media_=i[e]:this.trigger("playlistunchanged"),this.mediaUpdateTimeout||function e(){t.media().endList||(t.mediaUpdateTimeout=m().setTimeout(function(){t.trigger("mediaupdatetimeout"),e()},au(t.media(),Boolean(n))))}(),this.trigger("loadedplaylist")},t}(aO),aj={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},aH=function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),i=0;i-1)},this.trigger=function(t){var i,n,r,a;if(i=e[t]){if(2==arguments.length)for(n=0,r=i.length;n>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),$(ef.mdhd,t)},es=function(e){var t;return $(ef.mdia,eo(e),(t=e.type,$(ef.hdlr,ev[t])),ee(e))},ee=function(e){return $(ef.minf,"video"===e.type?$(ef.vmhd,ey):$(ef.smhd,eT),$(ef.dinf,$(ef.dref,eb)),eu(e))},et=function(e){for(var t=e.length,i=[];t--;)i[t]=er(e[t]);return $.apply(null,[ef.moov,en(4294967295)].concat(i).concat(ei(e)))},ei=function(e){for(var t=e.length,i=[];t--;)i[t]=eh(e[t]);return $.apply(null,[ef.mvex].concat(i))},en=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return $(ef.mvhd,t)},el=function(e){var t,i,n=e.samples||[],r=new Uint8Array(4+n.length);for(i=0;i>>8),a.push(255&n[t].byteLength),a=a.concat(Array.prototype.slice.call(n[t]));for(t=0;t>>8),s.push(255&r[t].byteLength),s=s.concat(Array.prototype.slice.call(r[t]));if(i=[ef.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),$(ef.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([n.length],a,[r.length],s))),$(ef.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var o=e.sarRatio[0],l=e.sarRatio[1];i.push($(ef.pasp,new Uint8Array([(4278190080&o)>>24,(16711680&o)>>16,(65280&o)>>8,255&o,(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l])))}return $.apply(null,i)},Z=function(e){return $(ef.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),$(ef.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2])))},ea=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return $(ef.tkhd,t)},ec=function(e){var t,i,n,r,a,s;return(t=$(ef.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(e.baseMediaDecodeTime/g),s=Math.floor(e.baseMediaDecodeTime%g),i=$(ef.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s])),"audio"===e.type)?(n=ep(e,92),$(ef.traf,t,i,n)):(r=el(e),n=ep(e,r.length+92),$(ef.traf,t,i,n,r))},er=function(e){return e.duration=e.duration||4294967295,$(ef.trak,ea(e),es(e))},eh=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),$(ef.trex,t)},Y=function(e,t){var i=0,n=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(i=1),void 0!==e[0].size&&(n=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,i|n|r|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},X=function(e,t){var i,n,r,a,s,o;for(t+=20+16*(a=e.samples||[]).length,r=Y(a,t),(n=new Uint8Array(r.length+16*a.length)).set(r),i=r.length,o=0;o>>24,n[i++]=(16711680&s.duration)>>>16,n[i++]=(65280&s.duration)>>>8,n[i++]=255&s.duration,n[i++]=(4278190080&s.size)>>>24,n[i++]=(16711680&s.size)>>>16,n[i++]=(65280&s.size)>>>8,n[i++]=255&s.size,n[i++]=s.flags.isLeading<<2|s.flags.dependsOn,n[i++]=s.flags.isDependedOn<<6|s.flags.hasRedundancy<<4|s.flags.paddingValue<<1|s.flags.isNonSyncSample,n[i++]=61440&s.flags.degradationPriority,n[i++]=15&s.flags.degradationPriority,n[i++]=(4278190080&s.compositionTimeOffset)>>>24,n[i++]=(16711680&s.compositionTimeOffset)>>>16,n[i++]=(65280&s.compositionTimeOffset)>>>8,n[i++]=255&s.compositionTimeOffset;return $(ef.trun,n)},Q=function(e,t){var i,n,r,a,s,o;for(t+=20+8*(a=e.samples||[]).length,r=Y(a,t),(i=new Uint8Array(r.length+8*a.length)).set(r),n=r.length,o=0;o>>24,i[n++]=(16711680&s.duration)>>>16,i[n++]=(65280&s.duration)>>>8,i[n++]=255&s.duration,i[n++]=(4278190080&s.size)>>>24,i[n++]=(16711680&s.size)>>>16,i[n++]=(65280&s.size)>>>8,i[n++]=255&s.size;return $(ef.trun,i)},ep=function(e,t){return"audio"===e.type?Q(e,t):X(e,t)};var _={ftyp:J,mdat:function(e){return $(ef.mdat,e)},moof:function(e,t){for(var i=[],n=t.length;n--;)i[n]=ec(t[n]);return $.apply(null,[ef.moof,$(ef.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))].concat(i))},moov:et,initSegment:function(e){var t,i=J(),n=et(e);return(t=new Uint8Array(i.byteLength+n.byteLength)).set(i),t.set(n,i.byteLength),t}},v=function(e,t){var i={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return i.dataOffset=t,i.compositionTimeOffset=e.pts-e.dts,i.duration=e.duration,i.size=4*e.length,i.size+=e.byteLength,e.keyFrame&&(i.flags.dependsOn=2,i.flags.isNonSyncSample=0),i},y={groupNalsIntoFrames:function(e){var t,i,n=[],r=[];for(t=0,r.byteLength=0,r.nalCount=0,r.duration=0,n.byteLength=0;t1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},generateSampleTable:function(e,t){var i,n,r,a,s=t||0,o=[];for(i=0;iC.ONE_SECOND_IN_TS/2))){for((a=k()[e.samplerate])||(a=t[0].data),s=0;s=i?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=i&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},generateSampleTable:function(e){var t,i=[];for(t=0;t=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},M.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},M.prototype.addText=function(e){this.rows[this.rowIdx]+=e},M.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var R=function(e,t,i){this.serviceNum=e,this.text="",this.currentWindow=new M(-1),this.windows=[],this.stream=i,"string"==typeof t&&this.createTextDecoder(t)};R.prototype.init=function(e,t){this.startPts=e;for(var i=0;i<8;i++)this.windows[i]=new M(i),"function"==typeof t&&(this.windows[i].beforeRowOverflow=t)},R.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},R.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var U=function e(t){t=t||{},e.prototype.init.call(this);var i,n=this,r=t.captionServices||{},a={};Object.keys(r).forEach(function(e){i=r[e],/^SERVICE/.test(e)&&(a[e]=i.encoding)}),this.serviceEncodings=a,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(n.new708Packet(),n.add708Bytes(e)):(null===n.current708Packet&&n.new708Packet(),n.add708Bytes(e))}};U.prototype=new f,U.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},U.prototype.add708Bytes=function(e){var t=e.ccData;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(t>>>8),this.current708Packet.data.push(255&t)},U.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,i=null,n=null,r=0,a=t[r++];for(e.seq=a>>6,e.sizeCode=63&a;r>5,n=31&a,7===i&&n>0&&(i=a=t[r++]),this.pushServiceBlock(i,r,n),n>0&&(r+=n-1)},U.prototype.pushServiceBlock=function(e,t,i){var n,r=t,a=this.current708Packet.data,s=this.services[e];for(s||(s=this.initService(e,r));r>5,a.rowLock=(16&n)>>4,a.columnLock=(8&n)>>3,a.priority=7&n,n=i[++e],a.relativePositioning=(128&n)>>7,a.anchorVertical=127&n,n=i[++e],a.anchorHorizontal=n,n=i[++e],a.anchorPoint=(240&n)>>4,a.rowCount=15&n,n=i[++e],a.columnCount=63&n,n=i[++e],a.windowStyle=(56&n)>>3,a.penStyle=7&n,a.virtualRowCount=a.rowCount+1,e},U.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.winAttr;return n=i[++e],r.fillOpacity=(192&n)>>6,r.fillRed=(48&n)>>4,r.fillGreen=(12&n)>>2,r.fillBlue=3&n,n=i[++e],r.borderType=(192&n)>>6,r.borderRed=(48&n)>>4,r.borderGreen=(12&n)>>2,r.borderBlue=3&n,n=i[++e],r.borderType+=(128&n)>>5,r.wordWrap=(64&n)>>6,r.printDirection=(48&n)>>4,r.scrollDirection=(12&n)>>2,r.justify=3&n,n=i[++e],r.effectSpeed=(240&n)>>4,r.effectDirection=(12&n)>>2,r.displayEffect=3&n,e},U.prototype.flushDisplayed=function(e,t){for(var i=[],n=0;n<8;n++)t.windows[n].visible&&!t.windows[n].isEmpty()&&i.push(t.windows[n].getText());t.endPts=e,t.text=i.join("\n\n"),this.pushCaption(t),t.startPts=e},U.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},U.prototype.displayWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<>4,r.offset=(12&n)>>2,r.penSize=3&n,n=i[++e],r.italics=(128&n)>>7,r.underline=(64&n)>>6,r.edgeType=(56&n)>>3,r.fontStyle=7&n,e},U.prototype.setPenColor=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penColor;return n=i[++e],r.fgOpacity=(192&n)>>6,r.fgRed=(48&n)>>4,r.fgGreen=(12&n)>>2,r.fgBlue=3&n,n=i[++e],r.bgOpacity=(192&n)>>6,r.bgRed=(48&n)>>4,r.bgGreen=(12&n)>>2,r.bgBlue=3&n,n=i[++e],r.edgeRed=(48&n)>>4,r.edgeGreen=(12&n)>>2,r.edgeBlue=3&n,e},U.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,n=i[++e],r.row=15&n,n=i[++e],r.column=63&n,e},U.prototype.reset=function(e,t){var i=this.getPts(e);return this.flushDisplayed(i,t),this.initService(t.serviceNum,e)};var B={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},N=function(e){return null===e?"":String.fromCharCode(e=B[e]||e)},F=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],j=function(){for(var e=[],t=15;t--;)e.push("");return e},H=function e(t,i){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=i||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(e){var t,i,n,r,a;if((t=32639&e.ccData)===this.lastControlCode_){this.lastControlCode_=null;return}if((61440&t)==4096?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),n=t>>>8,r=255&t,t!==this.PADDING_){if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),i=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=i,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=j();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=j();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=j()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(n,r))a=N((n=(3&n)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(n,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),a=N((n=(3&n)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(n,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,(14&r)==14&&this.addFormatting(e.pts,["i"]),(1&r)==1&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(n,r))this.column_+=3&r;else if(this.isPAC(n,r)){var s=F.indexOf(7968&t);"rollUp"===this.mode_&&(s-this.rollUpRows_+1<0&&(s=this.rollUpRows_-1),this.setRollUp(e.pts,s)),s!==this.row_&&(this.clearFormatting(e.pts),this.row_=s),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),(16&t)==16&&(this.column_=((14&t)>>1)*4),this.isColorPAC(r)&&(14&r)==14&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(n)&&(0===r&&(r=null),a=N(n)+N(r),this[this.mode_](e.pts,a),this.column_+=a.length)}}};H.prototype=new f,H.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e,t){try{return e.trim()}catch(i){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}},this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},H.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=j(),this.nonDisplayed_=j(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},H.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},H.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},H.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},H.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},H.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},H.prototype.isPAC=function(e,t){return e>=this.BASE_&&e=64&&t<=127},H.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},H.prototype.isNormalChar=function(e){return e>=32&&e<=127},H.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=j(),this.displayed_=j()),void 0!==t&&t!==this.row_)for(var i=0;i"},"");this[this.mode_](e,i)},H.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+""},"");this.formatting_=[],this[this.mode_](e,t)}},H.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_];i+=t,this.nonDisplayed_[this.row_]=i},H.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_];i+=t,this.displayed_[this.row_]=i},H.prototype.shiftRowsUp_=function(){var e;for(e=0;et&&(i=-1);Math.abs(t-e)>4294967296;)e+=8589934592*i;return e},G=function e(t){var i,n;e.prototype.init.call(this),this.type_=t||W,this.push=function(e){(this.type_===W||e.type===this.type_)&&(void 0===n&&(n=e.dts),e.dts=z(e.dts,n),e.pts=z(e.pts,n),i=e.dts,this.trigger("data",e))},this.flush=function(){n=i,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,i=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};G.prototype=new f;var K,Z,Q,X,Y,$,J,ee,et,ei,en,er,ea,es,eo,el,eu,ed,ec,eh,ep,ef,em,eg,e_,ev,ey,eT,eb,eS,ek,eC,eE,ew,eI,ex,eP,eA,eL,eO={TimestampRolloverStream:G,handleRollover:z},eD=function(e,t,i){var n,r="";for(n=t;n>>2;d*=4,d+=3&u[7],o.timeStamp=d,void 0===t.pts&&void 0===t.dts&&(t.pts=o.timeStamp,t.dts=o.timeStamp),this.trigger("timestamp",o)}t.frames.push(o),i+=10+s}while(i>>4>1&&(n+=t[n]+1),0===i.pid)i.type="pat",e(t.subarray(n),i),this.trigger("data",i);else if(i.pid===this.pmtPid)for(i.type="pmt",e(t.subarray(n),i),this.trigger("data",i);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,n,i]):this.processPes_(t,n,i)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=V.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=V.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=e.subarray(t),this.trigger("data",i)}}).prototype=new f,t.STREAM_TYPES={h264:27,adts:15},(n=function(){var e,t=this,i=!1,r={data:[],size:0},a={data:[],size:0},s={data:[],size:0},o=function(e,t){var i,n=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===n&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=(4&e[6])!=0,192&(i=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&i&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))},l=function(e,i,n){var r,a=new Uint8Array(e.size),s={type:i},l=0,u=0,d=!1;if(e.data.length&&!(e.size<9)){for(l=0,s.trackId=e.data[0].pid;l>5,u=(l=((3&t[d+6])+1)*1024)*ej/eH[(60&t[d+2])>>>2],t.byteLength-d>>6&3)+1,channelcount:(1&t[d+2])<<2|(192&t[d+3])>>>6,samplerate:eH[(60&t[d+2])>>>2],samplingfrequencyindex:(60&t[d+2])>>>2,samplesize:16,data:t.subarray(d+7+s,d+a)}),i++,d+=a}"number"==typeof r&&(this.skipWarn_(r,d),r=null),t=t.subarray(d)}},this.flush=function(){i=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}}).prototype=new f;var eq=function(e){var t=e.byteLength,i=0,n=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+n},this.loadWord=function(){var r=e.byteLength-t,a=new Uint8Array(4),s=Math.min(4,t);if(0===s)throw Error("no bytes available");a.set(e.subarray(r,r+s)),i=new DataView(a.buffer).getUint32(0),n=8*s,t-=s},this.skipBits=function(e){var r;n>e?(i<<=e,n-=e):(e-=n,r=Math.floor(e/8),e-=8*r,t-=r,this.loadWord(),i<<=e,n-=e)},this.readBits=function(e){var r=Math.min(n,e),a=i>>>32-r;return((n-=r)>0?i<<=r:t>0&&this.loadWord(),(r=e-r)>0)?a<>>e)!=0)return i<<=e,n-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(s=function(){var e,t,i=0;s.prototype.init.call(this),this.push=function(n){t?((r=new Uint8Array(t.byteLength+n.data.byteLength)).set(t),r.set(n.data,t.byteLength),t=r):t=n.data;for(var r,a=t.byteLength;i3&&this.trigger("data",t.subarray(i+3)),t=null,i=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new f,o={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(a=function(){var e,t,i,n,r,l,u,d=new s;a.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,i=e.pts,n=e.dts,d.push(e))},d.on("data",function(a){var s={trackId:t,pts:i,dts:n,data:a,nalUnitTypeCode:31&a[0]};switch(s.nalUnitTypeCode){case 5:s.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:s.nalUnitType="sei_rbsp",s.escapedRBSP=r(a.subarray(1));break;case 7:s.nalUnitType="seq_parameter_set_rbsp",s.escapedRBSP=r(a.subarray(1)),s.config=l(s.escapedRBSP);break;case 8:s.nalUnitType="pic_parameter_set_rbsp";break;case 9:s.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",s)}),d.on("done",function(){e.trigger("done")}),d.on("partialdone",function(){e.trigger("partialdone")}),d.on("reset",function(){e.trigger("reset")}),d.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){d.flush()},this.partialFlush=function(){d.partialFlush()},this.reset=function(){d.reset()},this.endTimeline=function(){d.endTimeline()},u=function(e,t){var i,n=8,r=8;for(i=0;i=0?i:0,(16&e[t+5])>>4)?i+20:i+10},ez=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},eG=function(e,t,i){var n,r="";for(n=t;n=t+2&&(255&e[t])==255&&(240&e[t+1])==240&&(22&e[t+1])==16},parseId3TagSize:eW,parseAdtsSize:function(e,t){var i=(224&e[t+5])>>5,n=e[t+4]<<3;return 6144&e[t+3]|n|i},parseType:function(e,t){return 73===e[t]&&68===e[t+1]&&51===e[t+2]?"timed-metadata":!0&e[t]&&(240&e[t+1])==240?"audio":null},parseSampleRate:function(e){for(var t=0;t+5>>2]}return null},parseAacTimestamp:function(e){var t,i,n;t=10,64&e[5]&&(t+=4+ez(e.subarray(10,14)));do{if((i=ez(e.subarray(t+4,t+8)))<1)break;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){n=e.subarray(t+10,t+i+10);for(var r=0;r>>2;return s*=4,s+=3&a[7]}break}}t+=10+i}while(t=3;){if(73===e[o]&&68===e[o+1]&&51===e[o+2]){if(e.length-o<10||(s=eK.parseId3TagSize(e,o),o+s>e.length))break;n={type:"timed-metadata",data:e.subarray(o,o+s)},this.trigger("data",n),o+=s;continue}if((255&e[o])==255&&(240&e[o+1])==240){if(e.length-o<7||(s=eK.parseAdtsSize(e,o),o+s>e.length))break;r={type:"audio",data:e.subarray(o,o+s),pts:t,dts:t},this.trigger("data",r),o+=s;continue}o++}e=e.length-o>0?e.subarray(o):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new f;var eZ=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],eQ=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],eX=eK.isLikelyAacData,eY=C.ONE_SECOND_IN_TS,e$=function(e,t){t.stream=e,this.trigger("log",t)},eJ=function(e,t){for(var i=Object.keys(t),n=0;n=-1e4&&i<=45e3&&(!n||o>i)&&(n=a,o=i);return n?n.gop:null},this.alignGopsAtStart_=function(e){var t,i,n,r,a,o,l,u;for(a=e.byteLength,o=e.nalCount,l=e.duration,t=i=0;tn.pts){t++;continue}i++,a-=r.byteLength,o-=r.nalCount,l-=r.duration}return 0===i?e:i===e.length?null:((u=e.slice(i)).byteLength=a,u.duration=l,u.nalCount=o,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){for(t=s.length-1,i=e.length-1,a=null,o=!1;t>=0&&i>=0;){if(n=s[t],r=e[i],n.pts===r.pts){o=!0;break}if(n.pts>r.pts){t--;continue}t===s.length-1&&(a=i),i--}if(!o&&null===a)return null;if(0===(l=o?i:a))return e;var t,i,n,r,a,o,l,u=e.slice(l),d=u.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return u.byteLength=d.byteLength,u.duration=d.duration,u.nalCount=d.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){s=e}}).prototype=new f,(h=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,h.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):void(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),"audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes)))}}).prototype=new f,h.prototype.flush=function(e){var t,i,n,r,a=0,s={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0);return}}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,eQ.forEach(function(e){s.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,eZ.forEach(function(e){s.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,n=_.initSegment(this.pendingTracks),s.initSegment=new Uint8Array(n.byteLength),s.initSegment.set(n),s.data=new Uint8Array(this.pendingBytes),r=0;r=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},h.prototype.setRemux=function(e){this.remuxTracks=e},(c=function(e){var t,i,n=this,s=!0;c.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var a={};this.transmuxPipeline_=a,a.type="aac",a.metadataStream=new eN.MetadataStream,a.aacStream=new l,a.audioTimestampRolloverStream=new eN.TimestampRolloverStream("audio"),a.timedMetadataTimestampRolloverStream=new eN.TimestampRolloverStream("timed-metadata"),a.adtsStream=new r,a.coalesceStream=new h(e,a.metadataStream),a.headOfPipeline=a.aacStream,a.aacStream.pipe(a.audioTimestampRolloverStream).pipe(a.adtsStream),a.aacStream.pipe(a.timedMetadataTimestampRolloverStream).pipe(a.metadataStream).pipe(a.coalesceStream),a.metadataStream.on("timestamp",function(e){a.aacStream.setTimestamp(e.timeStamp)}),a.aacStream.on("data",function(r){"timed-metadata"!==r.type&&"audio"!==r.type||a.audioSegmentStream||(i=i||{timelineStartInfo:{baseMediaDecodeTime:n.baseMediaDecodeTime},codec:"adts",type:"audio"},a.coalesceStream.numberOfTracks++,a.audioSegmentStream=new d(i,e),a.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),a.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),a.adtsStream.pipe(a.audioSegmentStream).pipe(a.coalesceStream),n.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t}))}),a.coalesceStream.on("data",this.trigger.bind(this,"data")),a.coalesceStream.on("done",this.trigger.bind(this,"done")),eJ(this,a)},this.setupTsPipeline=function(){var s={};this.transmuxPipeline_=s,s.type="ts",s.metadataStream=new eN.MetadataStream,s.packetStream=new eN.TransportPacketStream,s.parseStream=new eN.TransportParseStream,s.elementaryStream=new eN.ElementaryStream,s.timestampRolloverStream=new eN.TimestampRolloverStream,s.adtsStream=new r,s.h264Stream=new a,s.captionStream=new eN.CaptionStream(e),s.coalesceStream=new h(e,s.metadataStream),s.headOfPipeline=s.packetStream,s.packetStream.pipe(s.parseStream).pipe(s.elementaryStream).pipe(s.timestampRolloverStream),s.timestampRolloverStream.pipe(s.h264Stream),s.timestampRolloverStream.pipe(s.adtsStream),s.timestampRolloverStream.pipe(s.metadataStream).pipe(s.coalesceStream),s.h264Stream.pipe(s.captionStream).pipe(s.coalesceStream),s.elementaryStream.on("data",function(r){var a;if("metadata"===r.type){for(a=r.tracks.length;a--;)t||"video"!==r.tracks[a].type?i||"audio"!==r.tracks[a].type||((i=r.tracks[a]).timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime):(t=r.tracks[a]).timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime;t&&!s.videoSegmentStream&&(s.coalesceStream.numberOfTracks++,s.videoSegmentStream=new u(t,e),s.videoSegmentStream.on("log",n.getLogTrigger_("videoSegmentStream")),s.videoSegmentStream.on("timelineStartInfo",function(t){i&&!e.keepOriginalTimestamps&&(i.timelineStartInfo=t,s.audioSegmentStream.setEarliestDts(t.dts-n.baseMediaDecodeTime))}),s.videoSegmentStream.on("processedGopsInfo",n.trigger.bind(n,"gopInfo")),s.videoSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"videoSegmentTimingInfo")),s.videoSegmentStream.on("baseMediaDecodeTime",function(e){i&&s.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),s.videoSegmentStream.on("timingInfo",n.trigger.bind(n,"videoTimingInfo")),s.h264Stream.pipe(s.videoSegmentStream).pipe(s.coalesceStream)),i&&!s.audioSegmentStream&&(s.coalesceStream.numberOfTracks++,s.audioSegmentStream=new d(i,e),s.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),s.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),s.audioSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"audioSegmentTimingInfo")),s.adtsStream.pipe(s.audioSegmentStream).pipe(s.coalesceStream)),n.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t})}}),s.coalesceStream.on("data",this.trigger.bind(this,"data")),s.coalesceStream.on("id3Frame",function(e){e.dispatchType=s.metadataStream.dispatchType,n.trigger("id3Frame",e)}),s.coalesceStream.on("caption",this.trigger.bind(this,"caption")),s.coalesceStream.on("done",this.trigger.bind(this,"done")),eJ(this,s)},this.setBaseMediaDecodeTime=function(n){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=n),i&&(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,x.clearDtsInfo(i),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,x.clearDtsInfo(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){i&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var i=this.transmuxPipeline_;e.remux=t,i&&i.coalesceStream&&i.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(i){i.stream=e,t.trigger("log",i)}},this.push=function(e){if(s){var t=eX(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),s=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){s=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new f;var e2={Transmuxer:c,VideoSegmentStream:u,AudioSegmentStream:d,AUDIO_PROPERTIES:eZ,VIDEO_PROPERTIES:eQ,generateSegmentTimingInfo:e1},e8={toUnsigned:function(e){return e>>>0},toHexString:function(e){return("00"+e.toString(16)).slice(-2)}},e4=function(e){return""+(String.fromCharCode(e[0])+String.fromCharCode(e[1])+String.fromCharCode(e[2])+String.fromCharCode(e[3]))},e5=e8.toUnsigned,e3=function e(t,i){var n,r,a,s,o,l=[];if(!i.length)return null;for(n=0;n1?n+r:t.byteLength,a===i[0]&&(1===i.length?l.push(t.subarray(n+8,s)):(o=e(t.subarray(n+8,s),i.slice(1))).length&&(l=l.concat(o))),n=s;return l},e6=e8.toUnsigned,e7=m.getUint64,e9=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=e7(e.subarray(4)):t.baseMediaDecodeTime=e6(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},te=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},tt=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&i.flags[2],a=4&i.flags[2],s=1&i.flags[1],o=2&i.flags[1],l=4&i.flags[1],u=8&i.flags[1],d=n.getUint32(4),c=8;for(r&&(i.dataOffset=n.getInt32(c),c+=4),a&&d&&(t={flags:te(e.subarray(c,c+4))},c+=4,s&&(t.duration=n.getUint32(c),c+=4),o&&(t.size=n.getUint32(c),c+=4),u&&(1===i.version?t.compositionTimeOffset=n.getInt32(c):t.compositionTimeOffset=n.getUint32(c),c+=4),i.samples.push(t),d--);d--;)t={},s&&(t.duration=n.getUint32(c),c+=4),o&&(t.size=n.getUint32(c),c+=4),l&&(t.flags=te(e.subarray(c,c+4)),c+=4),u&&(1===i.version?t.compositionTimeOffset=n.getInt32(c):t.compositionTimeOffset=n.getUint32(c),c+=4),i.samples.push(t);return i},ti=function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:i.getUint32(4)},r=1&n.flags[2],a=2&n.flags[2],s=8&n.flags[2],o=16&n.flags[2],l=32&n.flags[2],u=65536&n.flags[0],d=131072&n.flags[0];return t=8,r&&(t+=4,n.baseDataOffset=i.getUint32(12),t+=4),a&&(n.sampleDescriptionIndex=i.getUint32(t),t+=4),s&&(n.defaultSampleDuration=i.getUint32(t),t+=4),o&&(n.defaultSampleSize=i.getUint32(t),t+=4),l&&(n.defaultSampleFlags=i.getUint32(t)),u&&(n.durationIsEmpty=!0),!r&&d&&(n.baseDataOffsetIsMoof=!0),n},tn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},tr="undefined"!=typeof window?window:void 0!==tn?tn:"undefined"!=typeof self?self:{},ta=P.discardEmulationPreventionBytes,ts=q.CaptionStream,to=function(e,t){for(var i=e,n=0;n0?e9(l[0]).baseMediaDecodeTime:0,d=e3(a,["trun"]);t===o&&d.length>0&&(i=tl(n,tu(d,u,s),o),r[o]||(r[o]={seiNals:[],logs:[]}),r[o].seiNals=r[o].seiNals.concat(i.seiNals),r[o].logs=r[o].logs.concat(i.logs))}),r},tc=function(e,t,i){if(null===t)return null;var n=td(e,t)[t]||{};return{seiNals:n.seiNals,logs:n.logs,timescale:i}},th=function(){var e,t,i,n,r,a,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new ts,s=!0,a=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/n,e.endTime=e.endPts/n,r.captions.push(e),r.captionStreams[e.stream]=!0}),e.on("log",function(e){r.logs.push(e)})},this.isNewInit=function(e,t){return(!e||0!==e.length)&&(!t||"object"!=typeof t||0!==Object.keys(t).length)&&(i!==e[0]||n!==t[i])},this.parse=function(e,a,s){var o;if(!this.isInitialized()||!a||!s)return null;if(this.isNewInit(a,s))n=s[i=a[0]];else if(null===i||!n)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,a,s)}return((o=tc(e,i,n))&&o.logs&&(r.logs=r.logs.concat(o.logs)),null!==o&&o.seiNals)?(this.pushNals(o.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach(function(t){e.push(t)})},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],i=null,n=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},tp=e8.toUnsigned,tf=e8.toHexString,tm=m.getUint64,tg={findBox:e3,parseType:e4,timescale:function(e){return e3(e,["moov","trak"]).reduce(function(e,t){var i,n,r,a;return(i=e3(t,["tkhd"])[0])&&(n=0===i[0]?12:20,r=tp(i[n]<<24|i[n+1]<<16|i[n+2]<<8|i[n+3]),a=e3(t,["mdia","mdhd"])[0])?(n=0===a[0]?12:20,e[r]=tp(a[n]<<24|a[n+1]<<16|a[n+2]<<8|a[n+3]),e):null},{})},startTime:function(e,t){var i=e3(t,["moof","traf"]).reduce(function(t,i){var n,r,a=e3(i,["tfhd"])[0],s=e[tp(a[4]<<24|a[5]<<16|a[6]<<8|a[7])]||9e4,o=e3(i,["tfdt"])[0],l=new DataView(o.buffer,o.byteOffset,o.byteLength);return"bigint"==typeof(n=1===o[0]?tm(o.subarray(4,12)):l.getUint32(4))?r=n/tr.BigInt(s):"number"!=typeof n||isNaN(n)||(r=n/s),r11?(t.codec+=".",t.codec+=tf(u[9]),t.codec+=tf(u[10]),t.codec+=tf(u[11])):t.codec="avc1.4d400d":/^mp4[a,v]$/i.test(t.codec)?"esds"===e4((u=c.subarray(28)).subarray(4,8))&&u.length>20&&0!==u[19]?(t.codec+="."+tf(u[19]),t.codec+="."+tf(u[20]>>>2&63).replace(/^0/,"")):t.codec="mp4a.40.2":t.codec=t.codec.toLowerCase())}var h=e3(e,["mdia","mdhd"])[0];h&&(t.timescale=p(h)),i.push(t)}),i},getTimescaleFromMediaHeader:p=function(e){var t=0===e[0]?12:20;return tp(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])}},t_=function(e){var t=31&e[1];return t<<=8,t|=e[2]},tv=function(e){return!!(64&e[1])},ty=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},tT=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},tb=eO.handleRollover,tS={};tS.ts={parseType:function(e,t){var i=t_(e);return 0===i?"pat":i===t?"pmt":t?"pes":null},parsePat:function(e){var t=tv(e),i=4+ty(e);return t&&(i+=e[i]+1),(31&e[i+10])<<8|e[i+11]},parsePmt:function(e){var t,i={},n=tv(e),r=4+ty(e);if(n&&(r+=e[r]+1),1&e[r+5]){t=3+((15&e[r+1])<<8|e[r+2])-4;for(var a=12+((15&e[r+10])<<8|e[r+11]);a=e.byteLength)return null;var n=null;return 192&(t=e[i+7])&&((n={}).pts=(14&e[i+9])<<27|(255&e[i+10])<<20|(254&e[i+11])<<12|(255&e[i+12])<<5|(254&e[i+13])>>>3,n.pts*=4,n.pts+=(6&e[i+13])>>>1,n.dts=n.pts,64&t&&(n.dts=(14&e[i+14])<<27|(255&e[i+15])<<20|(254&e[i+16])<<12|(255&e[i+17])<<5|(254&e[i+18])>>>3,n.dts*=4,n.dts+=(6&e[i+18])>>>1)),n},videoPacketContainsKeyFrame:function(e){for(var t=4+ty(e),i=e.subarray(t),n=0,r=0,a=!1;r3&&"slice_layer_without_partitioning_rbsp_idr"===tT(31&i[r+3])&&(a=!0),a}},tS.aac=eK;var tk=C.ONE_SECOND_IN_TS,tC=function(e,t){for(var i,n=0,r=188;r=0;){if(71===e[o]&&(71===e[l]||l===e.byteLength)){if(n=e.subarray(o,l),"pes"===tS.ts.parseType(n,t.pid)&&(r=tS.ts.parsePesType(n,t.table),a=tS.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&a&&(s=tS.ts.parsePesTime(n))&&(s.type="audio",i.audio.push(s),u=!0)),u)break;o-=188,l-=188;continue}o--,l--}},tw=function(e,t,i){for(var n,r,a,s,o,l,u,d=0,c=188,h=!1,p={data:[],size:0};c=0;){if(71===e[d]&&71===e[c]){if(n=e.subarray(d,c),"pes"===tS.ts.parseType(n,t.pid)&&(r=tS.ts.parsePesType(n,t.table),a=tS.ts.parsePayloadUnitStartIndicator(n),"video"===r&&a&&(s=tS.ts.parsePesTime(n))&&(s.type="video",i.video.push(s),h=!0)),h)break;d-=188,c-=188;continue}d--,c--}},tI=function(e,t){if(e.audio&&e.audio.length){var i=t;(void 0===i||isNaN(i))&&(i=e.audio[0].dts),e.audio.forEach(function(e){e.dts=tb(e.dts,i),e.pts=tb(e.pts,i),e.dtsTime=e.dts/tk,e.ptsTime=e.pts/tk})}if(e.video&&e.video.length){var n=t;if((void 0===n||isNaN(n))&&(n=e.video[0].dts),e.video.forEach(function(e){e.dts=tb(e.dts,n),e.pts=tb(e.pts,n),e.dtsTime=e.dts/tk,e.ptsTime=e.pts/tk}),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=tb(r.dts,n),r.pts=tb(r.pts,n),r.dtsTime=r.dts/tk,r.ptsTime=r.pts/tk}}},tx=function(e){for(var t,i=!1,n=0,r=null,a=null,s=0,o=0;e.length-o>=3;){switch(tS.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10||(s=tS.aac.parseId3TagSize(e,o))>e.length){i=!0;break}null===a&&(t=e.subarray(o,o+s),a=tS.aac.parseAacTimestamp(t)),o+=s;break;case"audio":if(e.length-o<7||(s=tS.aac.parseAdtsSize(e,o))>e.length){i=!0;break}null===r&&(t=e.subarray(o,o+s),r=tS.aac.parseSampleRate(t)),n++,o+=s;break;default:o++}if(i)return null}if(null===r||null===a)return null;var l=tk/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*n*l,pts:a+1024*n*l}]}},tP=function(e){var t={pid:null,table:null},i={};for(var n in tC(e,t),t.table)if(t.table.hasOwnProperty(n))switch(t.table[n]){case V.H264_STREAM_TYPE:i.video=[],tw(e,t,i),0===i.video.length&&delete i.video;break;case V.ADTS_STREAM_TYPE:i.audio=[],tE(e,t,i),0===i.audio.length&&delete i.audio}return i},tA={inspect:function(e,t){var i;return(i=tS.aac.isLikelyAacData(e)?tx(e):tP(e))&&(i.audio||i.video)?(tI(i,t),i):null},parseAudioPes_:tE},tL=function(e,t){t.on("data",function(t){var i=t.initSegment;t.initSegment={data:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength};var n=t.data;t.data=n.buffer,e.postMessage({action:"data",segment:t,byteOffset:n.byteOffset,byteLength:n.byteLength},[t.data])}),t.on("done",function(t){e.postMessage({action:"done"})}),t.on("gopInfo",function(t){e.postMessage({action:"gopInfo",gopInfo:t})}),t.on("videoSegmentTimingInfo",function(t){var i={start:{decode:C.videoTsToSeconds(t.start.dts),presentation:C.videoTsToSeconds(t.start.pts)},end:{decode:C.videoTsToSeconds(t.end.dts),presentation:C.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:C.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=C.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:i})}),t.on("audioSegmentTimingInfo",function(t){var i={start:{decode:C.videoTsToSeconds(t.start.dts),presentation:C.videoTsToSeconds(t.start.pts)},end:{decode:C.videoTsToSeconds(t.end.dts),presentation:C.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:C.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=C.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:i})}),t.on("id3Frame",function(t){e.postMessage({action:"id3Frame",id3Frame:t})}),t.on("caption",function(t){e.postMessage({action:"caption",caption:t})}),t.on("trackinfo",function(t){e.postMessage({action:"trackinfo",trackInfo:t})}),t.on("audioTimingInfo",function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:C.videoTsToSeconds(t.start),end:C.videoTsToSeconds(t.end)}})}),t.on("videoTimingInfo",function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:C.videoTsToSeconds(t.start),end:C.videoTsToSeconds(t.end)}})}),t.on("log",function(t){e.postMessage({action:"log",log:t})})},tO=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new e2.Transmuxer(this.options),tL(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new th,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),i=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:i&&i.captions||[],logs:i&&i.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales,i=e.data,n=tg.startTime(t,i);this.self.postMessage({action:"probeMp4StartTime",startTime:n,data:i},[i.buffer])},t.probeMp4Tracks=function(e){var t=e.data,i=tg.tracks(t);this.self.postMessage({action:"probeMp4Tracks",tracks:i,data:t},[t.buffer])},t.probeTs=function(e){var t=e.data,i=e.baseStartTime,n="number"!=typeof i||isNaN(i)?void 0:i*C.ONE_SECOND_IN_TS,r=tA.inspect(t,n),a=null;r&&((a={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(a.videoStart=r.video[0].ptsTime),a.hasAudio&&(a.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:a,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(C.secondsToVideoTs(t)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(C.secondsToVideoTs(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();self.onmessage=function(e){if("init"===e.data.action&&e.data.options){this.messageHandlers=new tO(self,e.data.options);return}this.messageHandlers||(this.messageHandlers=new tO(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data)}}))),aZ=function(e,t,i){var n=e.data.segment,r=n.type,a=n.initSegment,s=n.captions,o=n.captionStreams,l=n.metadata,u=n.videoFrameDtsTime,d=n.videoFramePtsTime;t.buffer.push({captions:s,captionStreams:o,metadata:l});var c=e.data.segment.boxes||{data:e.data.segment.data},h={type:r,data:new Uint8Array(c.data,c.data.byteOffset,c.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};void 0!==u&&(h.videoFrameDtsTime=u),void 0!==d&&(h.videoFramePtsTime=d),i(h)},aQ=function(e){var t=e.transmuxedData,i=e.callback;t.buffer=[],i(t)},aX=function(e,t){t.gopInfo=e.data.gopInfo},aY=function(e){var t=e.transmuxer,i=e.bytes,n=e.audioAppendStart,r=e.gopsToAlignWith,a=e.remux,s=e.onData,o=e.onTrackInfo,l=e.onAudioTimingInfo,u=e.onVideoTimingInfo,d=e.onVideoSegmentTimingInfo,c=e.onAudioSegmentTimingInfo,h=e.onId3,p=e.onCaptions,f=e.onDone,m=e.onEndedTimeline,g=e.onTransmuxerLog,_=e.isEndOfTimeline,v={buffer:[]},y=_;if(t.onmessage=function(i){t.currentTransmux===e&&("data"===i.data.action&&aZ(i,v,s),"trackinfo"===i.data.action&&o(i.data.trackInfo),"gopInfo"===i.data.action&&aX(i,v),"audioTimingInfo"===i.data.action&&l(i.data.audioTimingInfo),"videoTimingInfo"===i.data.action&&u(i.data.videoTimingInfo),"videoSegmentTimingInfo"===i.data.action&&d(i.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===i.data.action&&c(i.data.audioSegmentTimingInfo),"id3Frame"===i.data.action&&h([i.data.id3Frame],i.data.id3Frame.dispatchType),"caption"===i.data.action&&p(i.data.caption),"endedtimeline"===i.data.action&&(y=!1,m()),"log"===i.data.action&&g(i.data.log),"transmuxed"!==i.data.type||y||(t.onmessage=null,aQ({transmuxedData:v,callback:f}),a$(t)))},n&&t.postMessage({action:"setAudioAppendStart",appendStart:n}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==a&&t.postMessage({action:"setRemux",remux:a}),i.byteLength){var T=i instanceof ArrayBuffer?i:i.buffer,b=i instanceof ArrayBuffer?0:i.byteOffset;t.postMessage({action:"push",data:T,byteOffset:b,byteLength:i.byteLength},[T])}_&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},a$=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():aY(e.currentTransmux))},aJ=function(e,t){e.postMessage({action:t}),a$(e)},a0=function(e,t){if(!t.currentTransmux){t.currentTransmux=e,aJ(t,e);return}t.transmuxQueue.push(aJ.bind(null,t,e))},a1=function(e){if(!e.transmuxer.currentTransmux){e.transmuxer.currentTransmux=e,aY(e);return}e.transmuxer.transmuxQueue.push(e)},a2={reset:function(e){a0("reset",e)},endTimeline:function(e){a0("endTimeline",e)},transmux:a1,createTransmuxer:function(e){var t=new aK;t.currentTransmux=null,t.transmuxQueue=[];var i=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,i.call(t)},t.postMessage({action:"init",options:e}),t}},a8=function(e){var t=e.transmuxer,i=e.endAction||e.action,n=e.callback,r=(0,v.Z)({},e,{endAction:null,transmuxer:null,callback:null});if(t.addEventListener("message",function r(a){a.data.action===i&&(t.removeEventListener("message",r),a.data.data&&(a.data.data=new Uint8Array(a.data.data,e.byteOffset||0,e.byteLength||a.data.data.byteLength),e.data&&(e.data=a.data.data)),n(a.data))}),e.data){var a=e.data instanceof ArrayBuffer;r.byteOffset=a?0:e.data.byteOffset,r.byteLength=e.data.byteLength;var s=[a?e.data:e.data.buffer];t.postMessage(r,s)}else t.postMessage(r)},a4={FAILURE:2,TIMEOUT:-101,ABORTED:-102},a5=function(e){e.forEach(function(e){e.abort()})},a3=function(e){var t=e.target,i={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return i.bytesReceived=e.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8e3),i},a6=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:a4.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:a4.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:a4.FAILURE,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:a4.FAILURE,xhr:t}:null},a7=function(e,t,i){return function(n,r){var a=r.response,s=a6(n,r);if(s)return i(s,e);if(16!==a.byteLength)return i({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:a4.FAILURE,xhr:r},e);for(var o=new DataView(a),l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]),u=0;u1){sd("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),t[e]=null;return}t[e]=t[e][0]}),t},sm=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},sg=function(e,t){var i=t.attributes||{},n=sf(sc(t)||[]);if(sh(e,t)&&!n.audio&&!sp(e,t)){var r=sf((0,D.Jg)(e,i.AUDIO)||[]);r.audio&&(n.audio=r.audio)}return n},s_=rb("PlaylistSelector"),sv=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},sy=function(e,t){if(!e)return"";var i=m().getComputedStyle(e);return i?i[t]:""},sT=function(e,t){var i=e.slice();e.sort(function(e,n){var r=t(e,n);return 0===r?i.indexOf(e)-i.indexOf(n):r})},sb=function(e,t){var i,n;return e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||m().Number.MAX_VALUE,t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),i-(n=n||m().Number.MAX_VALUE)},sS=function(e,t,i,n,r,a){if(e){var s,o,l,u,d={bandwidth:t,width:i,height:n,limitRenditionByPlayerDimensions:r},c=e.playlists;r0.isAudioOnly(e)&&(c=a.getAudioTrackPlaylists_(),d.audioOnly=!0);var h=c.map(function(e){var t=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return{bandwidth:e.attributes&&e.attributes.BANDWIDTH||m().Number.MAX_VALUE,width:t,height:i,playlist:e}});sT(h,function(e,t){return e.bandwidth-t.bandwidth});var p=(h=h.filter(function(e){return!r0.isIncompatible(e.playlist)})).filter(function(e){return r0.isEnabled(e.playlist)});p.length||(p=h.filter(function(e){return!r0.isDisabled(e.playlist)}));var f=p.filter(function(e){return e.bandwidth*aj.BANDWIDTH_VARIANCEi||e.height>n})).filter(function(e){return e.width===s[0].width&&e.height===s[0].height}))[o.length-1],l=o.filter(function(e){return e.bandwidth===g.bandwidth})[0]),a.experimentalLeastPixelDiffSelector){var k=T.map(function(e){return e.pixelDiff=Math.abs(e.width-i)+Math.abs(e.height-n),e});sT(k,function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff}),u=k[0]}var C=u||l||S||_||p[0]||h[0];if(C&&C.playlist){var E="sortedPlaylistReps";return u?E="leastPixelDiffRep":l?E="resolutionPlusOneRep":S?E="resolutionBestRep":_?E="bandwidthBestRep":p[0]&&(E="enabledPlaylistReps"),s_("choosing "+sv(C)+" using "+E+" with options",d),C.playlist}return s_("could not choose a playlist with options",d),null}},sk=function(){var e=this.useDevicePixelRatio&&m().devicePixelRatio||1;return sS(this.playlists.master,this.systemBandwidth,parseInt(sy(this.tech_.el(),"width"),10)*e,parseInt(sy(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},sC=function(e){var t=e.master,i=e.currentTime,n=e.bandwidth,r=e.duration,a=e.segmentDuration,s=e.timeUntilRebuffer,o=e.currentTimeline,l=e.syncController,u=t.playlists.filter(function(e){return!r0.isIncompatible(e)}),d=u.filter(r0.isEnabled);d.length||(d=u.filter(function(e){return!r0.isDisabled(e)}));var c=d.filter(r0.hasAttribute.bind(null,"BANDWIDTH")).map(function(e){var t=l.getSyncPoint(e,r,o,i),u=r0.estimateSegmentRequestTime(a,n,e);return{playlist:e,rebufferingImpact:u*(t?1:2)-s}}),h=c.filter(function(e){return e.rebufferingImpact<=0});return(sT(h,function(e,t){return sb(t.playlist,e.playlist)}),h.length)?h[0]:(sT(c,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),c[0]||null)},sE=function(e){var t,i=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach(function(e){t.set(e,i),i+=e.byteLength})),t},sw=function(e,t,i){if(!e[i]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var n=i;/^cc708_/.test(i)&&(n="SERVICE"+i.split("_")[1]);var r=t.textTracks().getTrackById(n);if(r)e[i]=r;else{var a=t.options_.vhs&&t.options_.vhs.captionServices||{},s=i,o=i,l=!1,u=a[n];u&&(s=u.label,o=u.language,l=u.default),e[i]=t.addRemoteTextTrack({kind:"captions",id:n,default:l,label:s,language:o},!1).track}}},sI=function(e){var t=e.inbandTextTracks,i=e.captionArray,n=e.timestampOffset;if(i){var r=m().WebKitDataCue||m().VTTCue;i.forEach(function(e){t[e.stream].addCue(new r(e.startTime+n,e.endTime+n,e.text))})}},sx=function(e){Object.defineProperties(e.frame,{id:{get:function(){return rg.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return rg.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return rg.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},sP=function(e){var t=e.inbandTextTracks,i=e.metadataArray,n=e.timestampOffset,r=e.videoDuration;if(i){var a=m().WebKitDataCue||m().VTTCue,s=t.metadataTrack_;if(s&&(i.forEach(function(e){var t=e.cueTime+n;"number"!=typeof t||m().isNaN(t)||t<0||!(t<1/0)||e.frames.forEach(function(e){var i=new a(t,t,e.value||e.url||e.data||"");i.frame=e,i.value=e,sx(i),s.addCue(i)})}),s.cues&&s.cues.length)){for(var o=s.cues,l=[],u=0;u=e&&r.endTime<=t&&i.removeCue(r)},sO=function(e){var t=e.cues;if(t)for(var i=0;i1&&n.push(t[a]);n.length&&n.forEach(function(t){return e.removeCue(t)})}},sD=function(e,t,i){if(null==t||!e.length)return[];var n,r=Math.ceil((t-i+3)*H.ONE_SECOND_IN_TS);for(n=0;nr);n++);return e.slice(n)},sM=function(e,t,i){if(!t.length)return e;if(i)return t.slice();for(var n=t[0].pts,r=0;r=n);r++);return e.slice(0,r).concat(t)},sR=function(e,t,i,n){for(var r=Math.ceil((t-n)*H.ONE_SECOND_IN_TS),a=Math.ceil((i-n)*H.ONE_SECOND_IN_TS),s=e.slice(),o=e.length;o--&&!(e[o].pts<=a););if(-1===o)return s;for(var l=o+1;l--&&!(e[l].pts<=r););return l=Math.max(l,0),s.splice(l,o-l+1),s},sU=function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var i=Object.keys(e).sort(),n=Object.keys(t).sort();if(i.length!==n.length)return!1;for(var r=0;ri))return a}return 0===n.length?0:n[n.length-1]},sN=function(e){return"number"==typeof e&&isFinite(e)},sF=1/60,sj=function(e,t,i){var n=t-aj.BACK_BUFFER_LENGTH;return e.length&&(n=Math.max(n,e.start(0))),Math.min(t-i,n)},sH=function(e){var t=e.startOfSegment,i=e.duration,n=e.segment,r=e.part,a=e.playlist,s=a.mediaSequence,o=a.id,l=a.segments,u=e.mediaIndex,d=e.partIndex,c=e.timeline,h=(void 0===l?[]:l).length-1,p="mediaIndex/partIndex increment";e.getMediaInfoForTime?p="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(p="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(p+=" with independent "+e.independent);var f="number"==typeof d,m=e.segment.uri?"segment":"pre-segment",g=f?rN({preloadSegment:n})-1:0;return m+" ["+(s+u)+"/"+(s+h)+"]"+(f?" part ["+d+"/"+g+"]":"")+(" segment start/end ["+n.start)+" => "+n.end+"]"+(f?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+i+"] timeline ["+c+"] selected by ["+p+"] playlist ["+o+"]"},sq=function(e){return e+"TimingInfo"},sV=function(e){var t=e.segmentTimeline,i=e.currentTimeline,n=e.startOfSegment,r=e.buffered;return e.overrideCheck||t!==i?tt&&(t=n)}}),"bigint"==typeof t&&ti+rS},sK=function(e,t){if("hls"!==t)return null;var i=sz({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!i)return null;var n=e.playlist.targetDuration,r=sG({segmentDuration:i,maxDuration:2*n}),a=sG({segmentDuration:i,maxDuration:n}),s="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+i+" when the reported duration is "+e.duration+" and the target duration is "+n+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return r||a?{severity:r?"warn":"info",message:s}:null},sZ=function(e){function t(t,i){var n;if(n=e.call(this)||this,!t)throw TypeError("Initialization settings are required");if("function"!=typeof t.currentTime)throw TypeError("No currentTime getter specified");if(!t.mediaSource)throw TypeError("No MediaSource specified");return n.bandwidth=t.bandwidth,n.throughput={rate:0,count:0},n.roundTrip=NaN,n.resetStats_(),n.mediaIndex=null,n.partIndex=null,n.hasPlayed_=t.hasPlayed,n.currentTime_=t.currentTime,n.seekable_=t.seekable,n.seeking_=t.seeking,n.duration_=t.duration,n.mediaSource_=t.mediaSource,n.vhs_=t.vhs,n.loaderType_=t.loaderType,n.currentMediaInfo_=void 0,n.startingMediaInfo_=void 0,n.segmentMetadataTrack_=t.segmentMetadataTrack,n.goalBufferLength_=t.goalBufferLength,n.sourceType_=t.sourceType,n.sourceUpdater_=t.sourceUpdater,n.inbandTextTracks_=t.inbandTextTracks,n.state_="INIT",n.timelineChangeController_=t.timelineChangeController,n.shouldSaveSegmentTimingInfo_=!0,n.parse708captions_=t.parse708captions,n.useDtsForTimestampOffset_=t.useDtsForTimestampOffset,n.captionServices_=t.captionServices,n.experimentalExactManifestTimings=t.experimentalExactManifestTimings,n.checkBufferTimeout_=null,n.error_=void 0,n.currentTimeline_=-1,n.pendingSegment_=null,n.xhrOptions_=null,n.pendingSegments_=[],n.audioDisabled_=!1,n.isPendingTimestampOffset_=!1,n.gopBuffer_=[],n.timeMapping_=0,n.safeAppend_=rg.browser.IE_VERSION>=11,n.appendInitSegment_={audio:!0,video:!0},n.playlistOfLastInitSegment_={audio:null,video:null},n.callQueue_=[],n.loadQueue_=[],n.metadataQueue_={id3:[],caption:[]},n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=null,n.activeInitSegmentId_=null,n.initSegments_={},n.cacheEncryptionKeys_=t.cacheEncryptionKeys,n.keyCache_={},n.decrypter_=t.decrypter,n.syncController_=t.syncController,n.syncPoint_={segmentIndex:0,time:0},n.transmuxer_=n.createTransmuxer_(),n.triggerSyncInfoUpdate_=function(){return n.trigger("syncinfoupdate")},n.syncController_.on("syncinfoupdate",n.triggerSyncInfoUpdate_),n.mediaSource_.addEventListener("sourceopen",function(){n.isEndOfStream_()||(n.ended_=!1)}),n.fetchAtBuffer_=!1,n.logger_=rb("SegmentLoader["+n.loaderType_+"]"),Object.defineProperty((0,b.Z)(n),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),n.sourceUpdater_.on("ready",function(){n.hasEnoughInfoToAppend_()&&n.processCallQueue_()}),"main"===n.loaderType_&&n.timelineChangeController_.on("pendingtimelinechange",function(){n.hasEnoughInfoToAppend_()&&n.processCallQueue_()}),"audio"===n.loaderType_&&n.timelineChangeController_.on("timelinechange",function(){n.hasEnoughInfoToLoad_()&&n.processLoadQueue_(),n.hasEnoughInfoToAppend_()&&n.processCallQueue_()}),n}(0,S.Z)(t,e);var i=t.prototype;return i.createTransmuxer_=function(){return a2.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},i.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},i.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&m().clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},i.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},i.abort=function(){if("WAITING"!==this.state){this.pendingSegment_&&(this.pendingSegment_=null);return}this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()},i.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,m().clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},i.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},i.error=function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},i.endOfStream=function(){this.ended_=!0,this.transmuxer_&&a2.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},i.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return rg.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,i=e.hasVideo,n=e.isMuxed;if(i&&t&&!this.audioDisabled_&&!n)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},i.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var i=ay(e),n=this.initSegments_[i];return t&&!n&&e.bytes&&(this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),n||e},i.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var i=aT(e),n=this.keyCache_[i];this.cacheEncryptionKeys_&&t&&!n&&e.bytes&&(this.keyCache_[i]=n={resolvedUri:e.resolvedUri,bytes:e.bytes});var r={resolvedUri:(n||e).resolvedUri};return n&&(r.bytes=n.bytes),r},i.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},i.load=function(){if(this.monitorBuffer_(),this.playlist_){if("INIT"===this.state&&this.couldBeginLoading_())return this.init_();this.couldBeginLoading_()&&("READY"===this.state||"INIT"===this.state)&&(this.state="READY")}},i.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},i.playlist=function(e,t){if(void 0===t&&(t={}),e){var i=this.playlist_,n=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var r=null;if(i&&(i.id?r=i.id:i.uri&&(r=i.uri)),this.logger_("playlist update ["+r+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri){null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}var a=e.mediaSequence-i.mediaSequence;if(this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex){if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var s=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!s.parts||!s.parts.length||!s.parts[this.partIndex])){var o=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=o}}}n&&(n.mediaIndex-=a,n.mediaIndex<0?(n.mediaIndex=null,n.partIndex=null):(n.mediaIndex>=0&&(n.segment=e.segments[n.mediaIndex]),n.partIndex>=0&&n.segment.parts&&(n.part=n.segment.parts[n.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}},i.pause=function(){this.checkBufferTimeout_&&(m().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},i.paused=function(){return null===this.checkBufferTimeout_},i.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},i.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},i.resyncLoader=function(){this.transmuxer_&&a2.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},i.remove=function(e,t,i,n){if(void 0===i&&(i=function(){}),void 0===n&&(n=!1),t===1/0&&(t=this.duration_()),t<=e){this.logger_("skipping remove because end ${end} is <= start ${start}");return}if(!this.sourceUpdater_||!this.getMediaInfo_()){this.logger_("skipping remove because no source updater or starting media info");return}var r=1,a=function(){0==--r&&i()};for(var s in(n||!this.audioDisabled_)&&(r++,this.sourceUpdater_.removeAudio(e,t,a)),(n||"main"===this.loaderType_)&&(this.gopBuffer_=sR(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,a)),this.inbandTextTracks_)sL(e,t,this.inbandTextTracks_[s]);sL(e,t,this.segmentMetadataTrack_),a()},i.monitorBuffer_=function(){this.checkBufferTimeout_&&m().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=m().setTimeout(this.monitorBufferTick_.bind(this),1)},i.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&m().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=m().setTimeout(this.monitorBufferTick_.bind(this),500)},i.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();e&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}},i.isEndOfStream_=function(e,t,i){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===i&&(i=this.partIndex),!t||!this.mediaSource_)return!1;var n="number"==typeof e&&t.segments[e],r=e+1===t.segments.length,a=!n||!n.parts||i+1===n.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&a},i.chooseNextRequest_=function(){var e=this.buffered_(),t=rO(e)||0,i=rD(e,this.currentTime_()),n=!this.hasPlayed_()&&i>=1,r=i>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||n||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var s={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(s.isSyncRequest)s.mediaIndex=sB(this.currentTimeline_,a,t);else if(null!==this.mediaIndex){var o=a[this.mediaIndex],l="number"==typeof this.partIndex?this.partIndex:-1;s.startOfSegment=o.end?o.end:t,o.parts&&o.parts[l+1]?(s.mediaIndex=this.mediaIndex,s.partIndex=l+1):s.mediaIndex=this.mediaIndex+1}else{var u=r0.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),d=u.segmentIndex,c=u.startTime,h=u.partIndex;s.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),s.mediaIndex=d,s.startOfSegment=c,s.partIndex=h}var p=a[s.mediaIndex],f=p&&"number"==typeof s.partIndex&&p.parts&&p.parts[s.partIndex];if(!p||"number"==typeof s.partIndex&&!f)return null;if("number"!=typeof s.partIndex&&p.parts&&(s.partIndex=0,f=p.parts[0]),!i&&f&&!f.independent){if(0===s.partIndex){var m=a[s.mediaIndex-1],g=m.parts&&m.parts.length&&m.parts[m.parts.length-1];g&&g.independent&&(s.mediaIndex-=1,s.partIndex=m.parts.length-1,s.independent="previous segment")}else p.parts[s.partIndex-1].independent&&(s.partIndex-=1,s.independent="previous part")}var _=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return s.mediaIndex>=a.length-1&&_&&!this.seeking_()?null:this.generateSegmentInfo_(s)},i.generateSegmentInfo_=function(e){var t=e.independent,i=e.playlist,n=e.mediaIndex,r=e.startOfSegment,a=e.isSyncRequest,s=e.partIndex,o=e.forceTimestampOffset,l=e.getMediaInfoForTime,u=i.segments[n],d="number"==typeof s&&u.parts[s],c={requestId:"segment-loader-"+Math.random(),uri:d&&d.resolvedUri||u.resolvedUri,mediaIndex:n,partIndex:d?s:null,isSyncRequest:a,startOfSegment:r,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:d&&d.duration||u.duration,segment:u,part:d,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},h=void 0!==o?o:this.isPendingTimestampOffset_;c.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:h});var p=rO(this.sourceUpdater_.audioBuffered());return"number"==typeof p&&(c.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(c.gopsToAlignWith=sD(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),c},i.timestampOffsetForSegment_=function(e){return sV(e)},i.earlyAbortWhenNeeded_=function(e){if(!(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t,i,n=this.currentTime_(),r=e.bandwidth,a=this.pendingSegment_.duration,s=r0.estimateSegmentRequestTime(a,r,this.playlist_,e.bytesReceived),o=(t=this.buffered_(),void 0===(i=this.vhs_.tech_.playbackRate())&&(i=1),((t.length?t.end(t.length-1):0)-n)/i-1);if(!(s<=o)){var l=sC({master:this.vhs_.playlists.master,currentTime:n,bandwidth:r,duration:this.duration_(),segmentDuration:a,timeUntilRebuffer:o,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(l){var u=s-o-l.rebufferingImpact,d=.5;o<=rS&&(d=1),l.playlist&&l.playlist.uri!==this.playlist_.uri&&!(u "+s+" for "+e),sw(l,i.vhs_.tech_,e),sL(a,s,l[e]),sI({captionArray:o,inbandTextTracks:l,timestampOffset:n})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}},i.handleId3_=function(e,t,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,i));return}var n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();sA(this.inbandTextTracks_,i,this.vhs_.tech_),sP({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:n,videoDuration:this.duration_()})}},i.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach(function(e){return e()}),this.metadataQueue_.caption.forEach(function(e){return e()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},i.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach(function(e){return e()})},i.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach(function(e){return e()})},i.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!sW({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},i.getCurrentMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),e&&e.trackInfo||this.currentMediaInfo_},i.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},i.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var i=t.hasAudio,n=t.hasVideo,r=t.isMuxed;return!(n&&!e.videoTimingInfo||i&&!this.audioDisabled_&&!r&&!e.audioTimingInfo||sW({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},i.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){this.callQueue_.push(this.handleData_.bind(this,e,t));return}var i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||i.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4)this.trigger("fmp4"),i.timingInfo.start=i[sq(t.type)].start;else{var n,r=this.getCurrentMediaInfo_(),a="main"===this.loaderType_&&r&&r.hasVideo;a&&(n=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:a,firstVideoFrameTimeForData:n,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(i,t.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:"main"===this.loaderType_});var s=this.chooseNextRequest_();if(s.mediaIndex!==i.mediaIndex||s.partIndex!==i.partIndex){this.logger_("sync segment was incorrect, not appending");return}this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,t)}}},i.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},i.getInitSegmentAndUpdateState_=function(e){var t=e.type,i=e.initSegment,n=e.map,r=e.playlist;if(n){var a=ay(n);if(this.activeInitSegmentId_===a)return null;i=this.initSegmentForMap(n,!0).bytes,this.activeInitSegmentId_=a}return i&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,i):null},i.handleQuotaExceededError_=function(e,t){var i=this,n=e.segmentInfo,r=e.type,a=e.bytes,s=this.sourceUpdater_.audioBuffered(),o=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+rA(s).join(", ")),o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+rA(o).join(", "));var l=s.length?s.start(0):0,u=s.length?s.end(s.length-1):0,d=o.length?o.start(0):0,c=o.length?o.end(o.length-1):0;if(u-l<=1&&c-d<=1){this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+a.byteLength+", audio buffer: "+rA(s).join(", ")+", video buffer: "+rA(o).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),this.trigger("error");return}this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:n,type:r,bytes:a}));var h=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+h),this.remove(0,h,function(){i.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=m().setTimeout(function(){i.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),i.quotaExceededErrorRetryTimeout_=null,i.processCallQueue_()},1e3)},!0)},i.handleAppendError_=function(e,t){var i=e.segmentInfo,n=e.type,r=e.bytes;if(t){if(22===t.code){this.handleQuotaExceededError_({segmentInfo:i,type:n,bytes:r});return}this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(n+" append of "+r.length+"b failed for segment #"+i.mediaIndex+" in playlist "+i.playlist.id),this.trigger("appenderror")}},i.appendToSourceBuffer_=function(e){var t=e.segmentInfo,i=e.type,n=e.initSegment,r=e.data,a=e.bytes;if(!a){var s=[r],o=r.byteLength;n&&(s.unshift(n),o+=n.byteLength),a=sE({bytes:o,segments:s})}this.sourceUpdater_.appendBuffer({segmentInfo:t,type:i,bytes:a},this.handleAppendError_.bind(this,{segmentInfo:t,type:i,bytes:a}))},i.handleSegmentTimingInfo_=function(e,t,i){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var n=this.pendingSegment_.segment,r=e+"TimingInfo";n[r]||(n[r]={}),n[r].transmuxerPrependedSeconds=i.prependedContentDuration||0,n[r].transmuxedPresentationStart=i.start.presentation,n[r].transmuxedDecodeStart=i.start.decode,n[r].transmuxedPresentationEnd=i.end.presentation,n[r].transmuxedDecodeEnd=i.end.decode,n[r].baseMediaDecodeTime=i.baseMediaDecodeTime}},i.appendData_=function(e,t){var i=t.type,n=t.data;if(n&&n.byteLength&&("audio"!==i||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:i,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:r,data:n})}},i.loadSegment_=function(e){var t=this;if(this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_()){this.loadQueue_.push(function(){var i=(0,v.Z)({},e,{forceTimestampOffset:!0});(0,v.Z)(e,t.generateSegmentInfo_(i)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)});return}this.updateTransmuxerAndRequestSegment_(e)},i.updateTransmuxerAndRequestSegment_=function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var i=this.createSimplifiedSegmentObj_(e),n=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=null!==this.mediaIndex,a=e.timeline!==this.currentTimeline_&&e.timeline>0;this.logger_("Requesting "+sH(e)),i.map&&!i.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=su({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:i,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:n||r&&a,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(i){var n=i.message,r=i.level,a=i.stream;t.logger_(sH(e)+" logged from transmuxer stream "+a+" as a "+r+": "+n)}})},i.trimBackBuffer_=function(e){var t=sj(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)},i.createSimplifiedSegmentObj_=function(e){var t=e.segment,i=e.part,n={resolvedUri:i?i.resolvedUri:t.resolvedUri,byterange:i?i.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},r=e.playlist.segments[e.mediaIndex-1];if(r&&r.timeline===t.timeline&&(r.videoTimingInfo?n.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(n.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){var a=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);n.key=this.segmentKey(t.key),n.key.iv=a}return t.map&&(n.map=this.initSegmentForMap(t.map)),n},i.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},i.saveBandwidthRelatedStats_=function(e,t){if(this.pendingSegment_.byteLength=t.bytesReceived,e3*e.playlist.targetDuration,a=n&&n.end&&this.currentTime_()-n.end>3*e.playlist.partTargetDuration;if(r||a){this.logger_("bad "+(r?"segment":"part")+" "+sH(e)),this.resetEverything();return}null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()},i.recordThroughput_=function(e){if(e.duration=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},i.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},i.segmentRequestFinished_=function(e,t,i){var n=this;if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(t.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(e){e.code===a4.TIMEOUT&&this.handleTimeout_(),e.code===a4.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(e);return}var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");var a=r.segment;if(a.map&&(a.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!=typeof m().WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var s,o=function(){n.subtitlesTrack_.tech_.off("vttjsloaded",s),n.stopForError({message:"Error loading vtt.js"})};s=function(){n.subtitlesTrack_.tech_.off("vttjserror",o),n.segmentRequestFinished_(e,t,i)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",s),this.subtitlesTrack_.tech_.one("vttjserror",o);return}a.requested=!0;try{this.parseVTTCues_(r)}catch(l){this.stopForError({message:l.message});return}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=a.duration,r.cues.forEach(function(e){n.subtitlesTrack_.addCue(n.featuresNativeTextTracks_?new(m()).VTTCue(e.startTime,e.endTime,e.text):e)}),sO(this.subtitlesTrack_),this.handleAppendsDone_()},i.handleData_=function(){},i.updateTimingInfoEnd_=function(){},i.parseVTTCues_=function(e){var t,i=!1;"function"==typeof m().TextDecoder?t=new(m()).TextDecoder("utf8"):(t=m().WebVTT.StringDecoder(),i=!0);var n=new(m()).WebVTT.Parser(m(),m().vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},n.oncue=e.cues.push.bind(e.cues),n.ontimestampmap=function(t){e.timestampmap=t},n.onparsingerror=function(e){rg.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var r=e.segment.map.bytes;i&&(r=s6(r)),n.parse(r)}var a=e.bytes;i&&(a=s6(a)),n.parse(a),n.flush()},i.updateTimeMapping_=function(e,t,i){var n=e.segment;if(t){if(!e.cues.length){n.empty=!0;return}var r=e.timestampmap,a=r.MPEGTS/H.ONE_SECOND_IN_TS-r.LOCAL+t.mapping;if(e.cues.forEach(function(e){e.startTime+=a,e.endTime+=a}),!i.syncInfo){var s=e.cues[0].startTime,o=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(s,o-n.duration)}}}},t}(sZ),oe=function(e,t){for(var i=e.cues,n=0;n=r.adStartTime&&t<=r.adEndTime)return r}return null},ot=function(e,t,i){if(void 0===i&&(i=0),e.segments)for(var n,r=i,a=0;a=p)&&(s=p,a={time:h,segmentIndex:d.segmentIndex,partIndex:d.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,i,n,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var s=null,o=0;o=c)&&(s=c,a={time:d.time,segmentIndex:l,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,i,n,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],on=function(e){function t(t){var i;return(i=e.call(this)||this).timelines=[],i.discontinuities=[],i.timelineToDatetimeMappings={},i.logger_=rb("SyncController"),i}(0,S.Z)(t,e);var i=t.prototype;return i.getSyncPoint=function(e,t,i,n){var r=this.runStrategies_(e,t,i,n);return r.length?this.selectSyncPoint_(r,{key:"time",value:n}):null},i.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var i=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!i.length)return null;var n=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return n.segmentIndex>0&&(n.time*=-1),Math.abs(n.time+rW({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:n.segmentIndex,endIndex:0}))},i.runStrategies_=function(e,t,i,n){for(var r=[],a=0;a86400){rg.log.warn("Not saving expired segment info. Media sequence gap "+i+" is too large.");return}for(var n=i-1;n>=0;n--){var r=e.segments[n];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+n,time:r.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},i.setDateTimeMappingForStart=function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],i=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-i}},i.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,i=e.shouldSaveTimelineMapping,n=this.calculateSegmentTimeMapping_(t,t.timingInfo,i),r=t.segment;n&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));var a=r.dateTimeObject;r.discontinuity&&i&&a&&(this.timelineToDatetimeMappings[r.timeline]=-(a.getTime()/1e3))},i.timestampOffsetForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].time},i.mappingForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping},i.calculateSegmentTimeMapping_=function(e,t,i){var n,r,a=e.segment,s=e.part,o=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},i&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": "+("[time: "+o.time)+"] [mapping: "+o.mapping+"]")),n=e.startOfSegment,r=t.end+o.mapping;else{if(!o)return!1;n=t.start+o.mapping,r=t.end+o.mapping}return s&&(s.start=n,s.end=r),(!a.start||no){var l=void 0;l=s<0?i.start-rW({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):i.end+rW({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[a]={time:l,accuracy:o}}}},i.dispose=function(){this.trigger("dispose"),this.off()},t}(rg.EventTarget),or=function(e){function t(){var t;return(t=e.call(this)||this).pendingTimelineChanges_={},t.lastTimelineChanges_={},t}(0,S.Z)(t,e);var i=t.prototype;return i.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},i.pendingTimelineChange=function(e){var t=e.type,i=e.from,n=e.to;return"number"==typeof i&&"number"==typeof n&&(this.pendingTimelineChanges_[t]={type:t,from:i,to:n},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},i.lastTimelineChange=function(e){var t=e.type,i=e.from,n=e.to;return"number"==typeof i&&"number"==typeof n&&(this.lastTimelineChanges_[t]={type:t,from:i,to:n},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},i.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(rg.EventTarget),oa=aW(az(aG(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function t(e,t,i){return e(i={path:t,exports:{},require:function(e,t){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e,null==t?i.path:t)}},i.exports),i.exports}var n=t(function(e){function t(e,t){for(var i=0;i-1},t.trigger=function(e){var t=this.listeners[e];if(t){if(2==arguments.length)for(var i=t.length,n=0;n>7)*283)^e]=e;for(t=i=0;!c[t];t^=n||1,i=f[i]||1)for(e=0,a=(a=i^i<<1^i<<2^i<<3^i<<4)>>8^255&a^99,c[t]=a,h[a]=t,o=16843009*p[r=p[n=p[t]]]^65537*r^257*n^16843008*t,s=257*p[a]^16843008*a;e<4;e++)u[e][t]=s=s<<24^s>>>8,d[e][a]=o=o<<24^o>>>8;for(e=0;e<5;e++)u[e]=u[e].slice(0),d[e]=d[e].slice(0);return l},l=null,u=function(){function e(e){l||(l=o()),this._tables=[[l[0][0].slice(),l[0][1].slice(),l[0][2].slice(),l[0][3].slice(),l[0][4].slice()],[l[1][0].slice(),l[1][1].slice(),l[1][2].slice(),l[1][3].slice(),l[1][4].slice()]];var t,i,n,r=this._tables[0][4],a=this._tables[1],s=e.length,u=1;if(4!==s&&6!==s&&8!==s)throw Error("Invalid aes key size");var d=e.slice(0),c=[];for(this._key=[d,c],t=s;t<4*s+28;t++)n=d[t-1],(t%s==0||8===s&&t%s==4)&&(n=r[n>>>24]<<24^r[n>>16&255]<<16^r[n>>8&255]<<8^r[255&n],t%s==0&&(n=n<<8^n>>>24^u<<24,u=u<<1^(u>>7)*283)),d[t]=d[t-s]^n;for(i=0;t;i++,t--)n=d[3&i?t:t-4],t<=4||i<4?c[i]=n:c[i]=a[0][r[n>>>24]]^a[1][r[n>>16&255]]^a[2][r[n>>8&255]]^a[3][r[255&n]]}return e.prototype.decrypt=function(e,t,i,n,r,a){var s,o,l,u,d=this._key[1],c=e^d[0],h=n^d[1],p=i^d[2],f=t^d[3],m=d.length/4-2,g=4,_=this._tables[1],v=_[0],y=_[1],T=_[2],b=_[3],S=_[4];for(u=0;u>>24]^y[h>>16&255]^T[p>>8&255]^b[255&f]^d[g],o=v[h>>>24]^y[p>>16&255]^T[f>>8&255]^b[255&c]^d[g+1],l=v[p>>>24]^y[f>>16&255]^T[c>>8&255]^b[255&h]^d[g+2],f=v[f>>>24]^y[c>>16&255]^T[h>>8&255]^b[255&p]^d[g+3],g+=4,c=s,h=o,p=l;for(u=0;u<4;u++)r[(3&-u)+a]=S[c>>>24]<<24^S[h>>16&255]<<16^S[p>>8&255]<<8^S[255&f]^d[g++],s=c,c=h,h=p,p=f,f=s},e}(),d=function(e){function t(){var t;return(t=e.call(this,s)||this).jobs=[],t.delay=1,t.timeout_=null,t}a(t,e);var i=t.prototype;return i.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},i.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(s),c=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},h=function(e,t,i){var n,r,a,s,o,l,d,h,p,f=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),m=new u(Array.prototype.slice.call(t)),g=new Uint8Array(e.byteLength),_=new Int32Array(g.buffer);for(p=0,n=i[0],r=i[1],a=i[2],s=i[3];p=0&&(t="main-desc"),t},oo=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},ol=function(e,t){t.activePlaylistLoader=e,e.load()},ou={AUDIO:function(e,t){return function(){var i=t.segmentLoaders[e],n=t.mediaTypes[e],r=t.blacklistCurrentPlaylist;oo(i,n);var a=n.activeTrack(),s=n.activeGroup(),o=(s.filter(function(e){return e.default})[0]||s[0]).id,l=n.tracks[o];if(a===l){r({message:"Problem encountered loading the default audio track."});return}for(var u in rg.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),n.tracks)n.tracks[u].enabled=n.tracks[u]===l;n.onTrackChanged()}},SUBTITLES:function(e,t){return function(){var i=t.segmentLoaders[e],n=t.mediaTypes[e];rg.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),oo(i,n);var r=n.activeTrack();r&&(r.mode="disabled"),n.onTrackChanged()}}},od={AUDIO:function(e,t,i){if(t){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),(!n.paused()||e.endList&&"none"!==n.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),n.paused()||a.load()}),t.on("error",ou[e](e,i))}},SUBTITLES:function(e,t,i){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[e],s=i.mediaTypes[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),a.track(s.activeTrack()),(!n.paused()||e.endList&&"none"!==n.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),n.paused()||a.load()}),t.on("error",ou[e](e,i))}},oc={AUDIO:function(e,t){var i=t.vhs,n=t.sourceType,r=t.segmentLoaders[e],a=t.requestOptions,s=t.master.mediaGroups,o=t.mediaTypes[e],l=o.groups,u=o.tracks,d=o.logger_,c=t.masterPlaylistLoader,h=rJ(c.master);for(var p in(!s[e]||0===Object.keys(s[e]).length)&&(s[e]={main:{default:{default:!0}}},h&&(s[e].main.default.playlists=c.master.playlists)),s[e])for(var f in l[p]||(l[p]=[]),s[e][p]){var m=s[e][p][f],g=void 0;if(h?(d("AUDIO group '"+p+"' label '"+f+"' is a master playlist"),m.isMasterPlaylist=!0,g=null):g="vhs-json"===n&&m.playlists?new ad(m.playlists[0],i,a):m.resolvedUri?new ad(m.resolvedUri,i,a):m.playlists&&"dash"===n?new aF(m.playlists[0],i,a,c):null,m=rg.mergeOptions({id:f,playlistLoader:g},m),od[e](e,m.playlistLoader,t),l[p].push(m),void 0===u[f]){var _=new rg.AudioTrack({id:f,kind:os(m),enabled:!1,language:m.language,default:m.default,label:f});u[f]=_}}r.on("error",ou[e](e,t))},SUBTITLES:function(e,t){var i=t.tech,n=t.vhs,r=t.sourceType,a=t.segmentLoaders[e],s=t.requestOptions,o=t.master.mediaGroups,l=t.mediaTypes[e],u=l.groups,d=l.tracks,c=t.masterPlaylistLoader;for(var h in o[e])for(var p in u[h]||(u[h]=[]),o[e][h])if(!o[e][h][p].forced){var f=o[e][h][p],m=void 0;if("hls"===r)m=new ad(f.resolvedUri,n,s);else if("dash"===r){if(!f.playlists.filter(function(e){return e.excludeUntil!==1/0}).length)return;m=new aF(f.playlists[0],n,s,c)}else"vhs-json"===r&&(m=new ad(f.playlists?f.playlists[0]:f.resolvedUri,n,s));if(f=rg.mergeOptions({id:p,playlistLoader:m},f),od[e](e,f.playlistLoader,t),u[h].push(f),void 0===d[p]){var g=i.addRemoteTextTrack({id:p,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:p},!1).track;d[p]=g}}a.on("error",ou[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var i=t.tech,n=t.master.mediaGroups,r=t.mediaTypes[e],a=r.groups,s=r.tracks;for(var o in n[e])for(var l in a[o]||(a[o]=[]),n[e][o]){var u=n[e][o][l];if(/^(?:CC|SERVICE)/.test(u.instreamId)){var d=i.options_.vhs&&i.options_.vhs.captionServices||{},c={label:l,language:u.language,instreamId:u.instreamId,default:u.default&&u.autoselect};if(d[c.instreamId]&&(c=rg.mergeOptions(c,d[c.instreamId])),void 0===c.default&&delete c.default,a[o].push(rg.mergeOptions({id:l},u)),void 0===s[l]){var h=i.addRemoteTextTrack({id:c.instreamId,kind:"captions",default:c.default,language:c.language,label:c.label},!1).track;s[l]=h}}}}},oh=function e(t,i){for(var n=0;n1&&rJ(e.master))for(var l=0;l "+r.id;if(!t)return u(d+" as current playlist is not set"),!0;if(r.id===t.id)return!1;var c=Boolean(rE(i,n).length);if(!t.endList)return c||"number"!=typeof t.partTargetDuration?(u(d+" as current playlist is live"),!0):(u("not "+d+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var h=rD(i,n),p=l?aj.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:aj.MAX_BUFFER_LOW_WATER_LINE;if(om)&&h>=a){var _=d+" as forwardBuffer >= bufferLowWaterLine ("+h+" >= "+a+")";return l&&(_+=" and next bandwidth > current bandwidth ("+f+" > "+m+")"),u(_),!0}return u("not "+d+" as no switching criteria met"),!1},oT=function(e){function t(t){i=e.call(this)||this;var i,n=t.src,r=t.handleManifestRedirects,a=t.withCredentials,s=t.tech,o=t.bandwidth,l=t.externVhs,u=t.useCueTags,d=t.blacklistDuration,c=t.enableLowInitialPlaylist,h=t.sourceType,f=t.cacheEncryptionKeys,g=t.experimentalBufferBasedABR,_=t.experimentalLeastPixelDiffSelector,v=t.captionServices;if(!n)throw Error("A non-empty playlist URL or JSON manifest string is required");var y=t.maxPlaylistRetries;null==y&&(y=1/0),p=l,i.experimentalBufferBasedABR=Boolean(g),i.experimentalLeastPixelDiffSelector=Boolean(_),i.withCredentials=a,i.tech_=s,i.vhs_=s.vhs,i.sourceType_=h,i.useCueTags_=u,i.blacklistDuration=d,i.maxPlaylistRetries=y,i.enableLowInitialPlaylist=c,i.useCueTags_&&(i.cueTagsTrack_=i.tech_.addTextTrack("metadata","ad-cues"),i.cueTagsTrack_.inBandMetadataTrackDispatchType=""),i.requestOptions_={withCredentials:a,handleManifestRedirects:r,maxPlaylistRetries:y,timeout:null},i.on("error",i.pauseLoading),i.mediaTypes_=og(),i.mediaSource=new(m()).MediaSource,i.handleDurationChange_=i.handleDurationChange_.bind((0,b.Z)(i)),i.handleSourceOpen_=i.handleSourceOpen_.bind((0,b.Z)(i)),i.handleSourceEnded_=i.handleSourceEnded_.bind((0,b.Z)(i)),i.mediaSource.addEventListener("durationchange",i.handleDurationChange_),i.mediaSource.addEventListener("sourceopen",i.handleSourceOpen_),i.mediaSource.addEventListener("sourceended",i.handleSourceEnded_),i.seekable_=rg.createTimeRanges(),i.hasPlayed_=!1,i.syncController_=new on(t),i.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,i.decrypter_=new oa,i.sourceUpdater_=new s3(i.mediaSource),i.inbandTextTracks_={},i.timelineChangeController_=new or;var T={vhs:i.vhs_,parse708captions:t.parse708captions,useDtsForTimestampOffset:t.useDtsForTimestampOffset,captionServices:v,mediaSource:i.mediaSource,currentTime:i.tech_.currentTime.bind(i.tech_),seekable:function(){return i.seekable()},seeking:function(){return i.tech_.seeking()},duration:function(){return i.duration()},hasPlayed:function(){return i.hasPlayed_},goalBufferLength:function(){return i.goalBufferLength()},bandwidth:o,syncController:i.syncController_,decrypter:i.decrypter_,sourceType:i.sourceType_,inbandTextTracks:i.inbandTextTracks_,cacheEncryptionKeys:f,sourceUpdater:i.sourceUpdater_,timelineChangeController:i.timelineChangeController_,experimentalExactManifestTimings:t.experimentalExactManifestTimings};i.masterPlaylistLoader_="dash"===i.sourceType_?new aF(n,i.vhs_,i.requestOptions_):new ad(n,i.vhs_,i.requestOptions_),i.setupMasterPlaylistLoaderListeners_(),i.mainSegmentLoader_=new sZ(rg.mergeOptions(T,{segmentMetadataTrack:i.segmentMetadataTrack_,loaderType:"main"}),t),i.audioSegmentLoader_=new sZ(rg.mergeOptions(T,{loaderType:"audio"}),t),i.subtitleSegmentLoader_=new s9(rg.mergeOptions(T,{loaderType:"vtt",featuresNativeTextTracks:i.tech_.featuresNativeTextTracks}),t),i.setupSegmentLoaderListeners_(),i.experimentalBufferBasedABR&&(i.masterPlaylistLoader_.one("loadedplaylist",function(){return i.startABRTimer_()}),i.tech_.on("pause",function(){return i.stopABRTimer_()}),i.tech_.on("play",function(){return i.startABRTimer_()})),o_.forEach(function(e){i[e+"_"]=ov.bind((0,b.Z)(i),e)}),i.logger_=rb("MPC"),i.triggeredFmp4Usage=!1,"none"===i.tech_.preload()?(i.loadOnPlay_=function(){i.loadOnPlay_=null,i.masterPlaylistLoader_.load()},i.tech_.one("play",i.loadOnPlay_)):i.masterPlaylistLoader_.load(),i.timeToLoadedData__=-1,i.mainAppendsToLoadedData__=-1,i.audioAppendsToLoadedData__=-1;var S="none"===i.tech_.preload()?"play":"loadstart";return i.tech_.one(S,function(){var e=Date.now();i.tech_.one("loadeddata",function(){i.timeToLoadedData__=Date.now()-e,i.mainAppendsToLoadedData__=i.mainSegmentLoader_.mediaAppends,i.audioAppendsToLoadedData__=i.audioSegmentLoader_.mediaAppends})}),i}(0,S.Z)(t,e);var i=t.prototype;return i.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},i.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},i.appendsToLoadedData_=function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return -1===e||-1===t?-1:e+t},i.timeToLoadedData_=function(){return this.timeToLoadedData__},i.checkABR_=function(){var e=this.selectPlaylist();e&&this.shouldSwitchToMedia_(e)&&this.switchMedia_(e,"abr")},i.switchMedia_=function(e,t,i){var n=this.media(),r=n&&(n.id||n.uri),a=e.id||e.uri;r&&r!==a&&(this.logger_("switch media "+r+" -> "+a+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,i)},i.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=m().setInterval(function(){return e.checkABR_()},250)},i.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(m().clearInterval(this.abrTimer_),this.abrTimer_=null)},i.getAudioTrackPlaylists_=function(){var e,t=this.master(),i=t&&t.playlists||[];if(!t||!t.mediaGroups||!t.mediaGroups.AUDIO)return i;var n=t.mediaGroups.AUDIO,r=Object.keys(n);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)e=this.mediaTypes_.AUDIO.activeTrack();else{var a=n.main||r.length&&n[r[0]];for(var s in a)if(a[s].default){e={label:s};break}}if(!e)return i;var o=[];for(var l in n)if(n[l][e.label]){var u=n[l][e.label];if(u.playlists&&u.playlists.length)o.push.apply(o,u.playlists);else if(u.uri)o.push(u);else if(t.playlists.length)for(var d=0;d1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},i.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),n=this.bufferLowWaterLine(),r=this.bufferHighWaterLine();return oy({buffered:this.tech_.buffered(),currentTime:i,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:n,bufferHighWaterLine:r,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},i.setupSegmentLoaderListeners_=function(){var e=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",function(){var t=e.selectPlaylist();e.shouldSwitchToMedia_(t)&&e.switchMedia_(t,"bandwidthupdate"),e.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){e.trigger("progress")})),this.mainSegmentLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("appenderror",function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){e.logger_("main segment loader ended"),e.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(t){e.experimentalBufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))});var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()})},i.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},i.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},i.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},i.fastQualityChange_=function(e){var t=this;if(void 0===e&&(e=this.selectPlaylist()),e===this.masterPlaylistLoader_.media()){this.logger_("skipping fastQualityChange because new media is same as old");return}this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything(function(){rg.browser.IE_VERSION||rg.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())})},i.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();if(this.tech_.duration()===1/0&&this.tech_.currentTime()this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=i,e.reason&&(n.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var l=this.selectPlaylist();if(!l){this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error");return}var u=e.internal?this.logger_:rg.log.warn,d=e.message?" "+e.message:"";u((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+d+" Switching to playlist "+l.id+"."),l.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var c=l.targetDuration/2*1e3||5e3,h="number"==typeof l.lastRequest&&Date.now()-l.lastRequest<=c;return this.switchMedia_(l,"exclude",s||h)},i.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},i.delegateLoaders_=function(e,t){var i=this,n=[],r="all"===e;(r||"main"===e)&&n.push(this.masterPlaylistLoader_);var a=[];(r||"audio"===e)&&a.push("AUDIO"),(r||"subtitle"===e)&&(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach(function(e){var t=i.mediaTypes_[e]&&i.mediaTypes_[e].activePlaylistLoader;t&&n.push(t)}),["main","audio","subtitle"].forEach(function(t){var r=i[t+"SegmentLoader_"];r&&(e===t||"all"===e)&&n.push(r)}),n.forEach(function(e){return t.forEach(function(t){"function"==typeof e[t]&&e[t]()})})},i.setCurrentTime=function(e){var t=rE(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:void(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),this.load()):0},i.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:p.Playlist.duration(e):1/0:0},i.seekable=function(){return this.seekable_},i.onSyncInfoUpdate_=function(){if(!!this.masterPlaylistLoader_){var e,t,i,n=this.masterPlaylistLoader_.media();if(n){var r=this.syncController_.getExpiredTime(n,this.duration());if(null!==r){var a=this.masterPlaylistLoader_.master,s=p.Playlist.seekable(n,r,p.Playlist.liveEdgeDelay(a,n));0!==s.length&&(!this.mediaTypes_.AUDIO.activePlaylistLoader||(n=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null!==(r=this.syncController_.getExpiredTime(n,this.duration()))&&0!==(e=p.Playlist.seekable(n,r,p.Playlist.liveEdgeDelay(a,n))).length))&&(this.seekable_&&this.seekable_.length&&(t=this.seekable_.end(0),i=this.seekable_.start(0)),e?e.start(0)>s.end(0)||s.start(0)>e.end(0)?this.seekable_=s:this.seekable_=rg.createTimeRanges([[e.start(0)>s.start(0)?e.start(0):s.start(0),e.end(0)0&&(n=Math.max(n,i.end(i.length-1))),this.mediaSource.duration!==n&&this.sourceUpdater_.setDuration(n)},i.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(function(t){var i=e.mediaTypes_[t].groups;for(var n in i)i[n].forEach(function(e){e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},i.master=function(){return this.masterPlaylistLoader_.master},i.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},i.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!!t&&!!i},i.getCodecsOrExclude_=function(){var e,t=this,i={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};i.video=i.main;var n=sg(this.master(),this.media()),r={},a=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(i.main.hasVideo&&(r.video=n.video||i.main.videoCodec||D.xz),i.main.isMuxed&&(r.video+=","+(n.audio||i.main.audioCodec||D.lA)),(i.main.hasAudio&&!i.main.isMuxed||i.audio.hasAudio||a)&&(r.audio=n.audio||i.main.audioCodec||i.audio.audioCodec||D.lA,i.audio.isFmp4=i.main.hasAudio&&!i.main.isMuxed?i.main.isFmp4:i.audio.isFmp4),!r.audio&&!r.video){this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0});return}var s={};if(["video","audio"].forEach(function(t){var n,a;if(r.hasOwnProperty(t)&&(n=i[t].isFmp4,a=r[t],n?!(0,D.p7)(a):!(0,D.Hi)(a))){var o=i[t].isFmp4?"browser":"muxer";s[o]=s[o]||[],s[o].push(r[t]),"audio"===t&&(e=o)}}),a&&e&&this.media().attributes.AUDIO){var o=this.media().attributes.AUDIO;this.master().playlists.forEach(function(e){(e.attributes&&e.attributes.AUDIO)===o&&e!==t.media()&&(e.excludeUntil=1/0)}),this.logger_("excluding audio group "+o+" as "+e+' does not support codec(s): "'+r.audio+'"')}if(Object.keys(s).length){var l=Object.keys(s).reduce(function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+s[t].join(",")+'"'},"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:l,blacklistDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var u=[];if(["video","audio"].forEach(function(e){var i=((0,D.kS)(t.sourceUpdater_.codecs[e]||"")[0]||{}).type,n=((0,D.kS)(r[e]||"")[0]||{}).type;i&&n&&i.toLowerCase()!==n.toLowerCase()&&u.push('"'+t.sourceUpdater_.codecs[e]+'" -> "'+r[e]+'"')}),u.length){this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+u.join(", ")+".",blacklistDuration:1/0,internal:!0});return}}return r},i.tryToCreateSourceBuffers_=function(){if(!("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers())&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}},i.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,i=[];Object.keys(t).forEach(function(n){var r=t[n];if(-1===i.indexOf(r.id)){i.push(r.id);var a=sg(e.master,r),s=[];!a.audio||(0,D.Hi)(a.audio)||(0,D.p7)(a.audio)||s.push("audio codec "+a.audio),!a.video||(0,D.Hi)(a.video)||(0,D.p7)(a.video)||s.push("video codec "+a.video),a.text&&"stpp.ttml.im1t"===a.text&&s.push("text codec "+a.text),s.length&&(r.excludeUntil=1/0,e.logger_("excluding "+r.id+" for unsupported: "+s.join(", ")))}})},i.excludeIncompatibleVariants_=function(e){var t=this,i=[],n=this.master().playlists,r=sf((0,D.kS)(e)),a=sm(r),s=r.video&&(0,D.kS)(r.video)[0]||null,o=r.audio&&(0,D.kS)(r.audio)[0]||null;Object.keys(n).forEach(function(e){var r=n[e];if(-1===i.indexOf(r.id)&&r.excludeUntil!==1/0){i.push(r.id);var l=[],u=sg(t.masterPlaylistLoader_.master,r),d=sm(u);if(u.audio||u.video){if(d!==a&&l.push('codec count "'+d+'" !== "'+a+'"'),!t.sourceUpdater_.canChangeType()){var c=u.video&&(0,D.kS)(u.video)[0]||null,h=u.audio&&(0,D.kS)(u.audio)[0]||null;c&&s&&c.type.toLowerCase()!==s.type.toLowerCase()&&l.push('video codec "'+c.type+'" !== "'+s.type+'"'),h&&o&&h.type.toLowerCase()!==o.type.toLowerCase()&&l.push('audio codec "'+h.type+'" !== "'+o.type+'"')}l.length&&(r.excludeUntil=1/0,t.logger_("blacklisting "+r.id+": "+l.join(" && ")))}}})},i.updateAdCues_=function(e){var t=0,i=this.seekable();i.length&&(t=i.start(0)),ot(e,this.cueTagsTrack_,t)},i.goalBufferLength=function(){var e=this.tech_.currentTime(),t=aj.GOAL_BUFFER_LENGTH,i=aj.GOAL_BUFFER_LENGTH_RATE,n=Math.max(t,aj.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*i,n)},i.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=aj.BUFFER_LOW_WATER_LINE,i=aj.BUFFER_LOW_WATER_LINE_RATE,n=Math.max(t,aj.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,aj.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*i,this.experimentalBufferBasedABR?r:n)},i.bufferHighWaterLine=function(){return aj.BUFFER_HIGH_WATER_LINE},t}(rg.EventTarget),ob=function(e,t,i){var n,r,a=e.masterPlaylistController_,s=a[(e.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(a);if(t.attributes){var o=t.attributes.RESOLUTION;this.width=o&&o.width,this.height=o&&o.height,this.bandwidth=t.attributes.BANDWIDTH}this.codecs=sg(a.master(),t),this.playlist=t,this.id=i,this.enabled=(n=e.playlists,r=t.id,function(e){var t=n.master.playlists[r],i=rK(t),a=rZ(t);return void 0===e?a:(e?delete t.disabled:t.disabled=!0,e===a||i||(s(),e?n.trigger("renditionenabled"):n.trigger("renditiondisabled")),e)})},oS=function(e){e.representations=function(){var t=e.masterPlaylistController_.master(),i=rJ(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return i?i.filter(function(e){return!rK(e)}).map(function(t,i){return new ob(e,t,t.id)}):[]}},ok=["seeking","seeked","pause","playing","error"],oC=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=rb("PlaybackWatcher"),this.logger_("initialize");var i=function(){return t.monitorCurrentTime_()},n=function(){return t.monitorCurrentTime_()},r=function(){return t.techWaiting_()},a=function(){return t.cancelTimer_()},s=this.masterPlaylistController_,o=["main","subtitle","audio"],l={};o.forEach(function(e){l[e]={reset:function(){return t.resetSegmentDownloads_(e)},updateend:function(){return t.checkSegmentDownloads_(e)}},s[e+"SegmentLoader_"].on("appendsdone",l[e].updateend),s[e+"SegmentLoader_"].on("playlistupdate",l[e].reset),t.tech_.on(["seeked","seeking"],l[e].reset)});var u=function(e){["main","audio"].forEach(function(i){s[i+"SegmentLoader_"][e]("appended",t.seekingAppendCheck_)})};this.seekingAppendCheck_=function(){t.fixesBadSeeks_()&&(t.consecutiveUpdates=0,t.lastRecordedTime=t.tech_.currentTime(),u("off"))},this.clearSeekingAppendCheck_=function(){return u("off")},this.watchForBadSeeking_=function(){t.clearSeekingAppendCheck_(),u("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",r),this.tech_.on(ok,a),this.tech_.on("canplay",n),this.tech_.one("play",i),this.dispose=function(){t.clearSeekingAppendCheck_(),t.logger_("dispose"),t.tech_.off("waiting",r),t.tech_.off(ok,a),t.tech_.off("canplay",n),t.tech_.off("play",i),t.tech_.off("seeking",t.watchForBadSeeking_),t.tech_.off("seeked",t.clearSeekingAppendCheck_),o.forEach(function(e){s[e+"SegmentLoader_"].off("appendsdone",l[e].updateend),s[e+"SegmentLoader_"].off("playlistupdate",l[e].reset),t.tech_.off(["seeked","seeking"],l[e].reset)}),t.checkCurrentTimeTimeout_&&m().clearTimeout(t.checkCurrentTimeTimeout_),t.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&m().clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=m().setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(e){var t=this.masterPlaylistController_[e+"SegmentLoader_"];this[e+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,i=t[e+"SegmentLoader_"],n=i.buffered_(),r=rL(this[e+"Buffered_"],n);if(this[e+"Buffered_"]=n,r){this.resetSegmentDownloads_(e);return}this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:i.playlist_&&i.playlist_.id,buffered:rA(n)}),!(this[e+"StalledDownloads_"]<10)&&(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-"+e+"-download-exclusion"}),"subtitle"!==e&&t.blacklistCurrentPlaylist({message:"Excessive "+e+" segment downloading detected."},1/0))},t.checkCurrentTime_=function(){if(!(this.tech_.paused()||this.tech_.seeking())){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+rk>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),i=this.tech_.currentTime();if(this.afterSeekableWindow_(t,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1)),this.beforeSeekableWindow_(t,i)){var n=t.start(0);e=n+(n===t.end(0)?0:rk)}if(void 0!==e)return this.logger_("Trying to seek outside of seekable at time "+i+" with seekable range "+rP(t)+". Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0;for(var r=this.masterPlaylistController_.sourceUpdater_,a=this.tech_.buffered(),s=r.audioBuffer?r.audioBuffered():null,o=r.videoBuffer?r.videoBuffered():null,l=this.media(),u=l.partTargetDuration?l.partTargetDuration:(l.targetDuration-rS)*2,d=[s,o],c=0;c "+t.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"});return}}},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var i=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+i),this.cancelTimer_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var n=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:n.audioBuffered(),videoBuffered:n.videoBuffered(),currentTime:t}))return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var a=rw(r,t);if(a.length>0){var s=a.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+s+", seeking to "+a.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*s,t),!0}return!1},t.afterSeekableWindow_=function(e,t,i,n){if(void 0===n&&(n=!1),!e.length)return!1;var r=e.end(e.length-1)+rk;return!i.endList&&n&&(r=e.end(e.length-1)+3*i.targetDuration),t>r},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&e.start(0)>0&&t2)return{start:r,end:a}}return null},e}(),oE={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},ow=function e(t,i){var n=0,r=0,a=rg.mergeOptions(oE,i);t.ready(function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})});var s=function(){r&&t.currentTime(r)},o=function(e){null!=e&&(r=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",s),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},l=function(){if(Date.now()-n<1e3*a.errorInterval){t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),t.trigger({type:"usage",name:"hls-error-reload-canceled"});return}if(!a.getSource||"function"!=typeof a.getSource){rg.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}return n=Date.now(),a.getSource.call(t,o)},u=function e(){t.off("loadedmetadata",s),t.off("error",l),t.off("dispose",e)};t.on("error",l),t.on("dispose",u),t.reloadSourceOnError=function(i){u(),e(t,i)}},oI="2.14.3",ox={PlaylistLoader:ad,Playlist:r0,utils:aS,STANDARD_PLAYLIST_SELECTOR:sk,INITIAL_PLAYLIST_SELECTOR:function(){var e=this,t=this.playlists.master.playlists.filter(r0.isEnabled);return sT(t,function(e,t){return sb(e,t)}),t.filter(function(t){return!!sg(e.playlists.master,t).video})[0]||null},lastBandwidthSelector:sk,movingAverageBandwidthSelector:function(e){var t=-1,i=-1;if(e<0||e>1)throw Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var n=this.useDevicePixelRatio&&m().devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,i=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==i&&(t=e*this.systemBandwidth+(1-e)*t,i=this.systemBandwidth),sS(this.playlists.master,t,parseInt(sy(this.tech_.el(),"width"),10)*n,parseInt(sy(this.tech_.el(),"height"),10)*n,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:sb,comparePlaylistResolution:function(e,t){var i,n;return(e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||m().Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),i===(n=n||m().Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH)?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:i-n},xhr:af()};Object.keys(aj).forEach(function(e){Object.defineProperty(ox,e,{get:function(){return rg.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),aj[e]},set:function(t){if(rg.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0){rg.log.warn("value of Vhs."+e+" must be greater than or equal to 0");return}aj[e]=t}})});var oP="videojs-vhs",oA=function(e,t){for(var i=t.media(),n=-1,r=0;r=1e7&&e>=1e7?Math.max(e,i):i}return e},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){return Math.floor(1/(1/(this.bandwidth||1)+(this.throughput>0?1/this.throughput:0)))},set:function(){rg.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return rA(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return rA(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",function(){n.options_.useBandwidthFromLocalStorage&&oU({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})}),this.masterPlaylistController_.on("selectedinitialmedia",function(){oS(n)}),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",function(){n.setupEme_()}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=m().URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},i.createKeySessions_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),oD({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media keys for EME",code:3})})},i.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},i.setupEme_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,i=oM({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});if(this.player_.tech_.on("keystatuschange",function(t){if("output-restricted"===t.status){var i,n=e.masterPlaylistController_.master();if(n&&n.playlists){var r=[];n.playlists.forEach(function(e){e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height>=720&&(!e.excludeUntil||e.excludeUntil<1/0)&&(e.excludeUntil=1/0,r.push(e))}),r.length&&((i=rg.log).warn.apply(i,['DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.'].concat(r)),e.masterPlaylistController_.fastQualityChange_())}}}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11===rg.browser.IE_VERSION||!i){this.masterPlaylistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()},i.setupQualityLevels_=function(){var e=this,t=rg.players[this.tech_.options_.playerId];t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){oL(e.qualityLevels_,e)}),this.playlists.on("mediachange",function(){oA(e.qualityLevels_,e.playlists)}))},t.version=function(){return{"@videojs/http-streaming":oI,"mux.js":"6.0.1","mpd-parser":"0.21.1","m3u8-parser":"4.7.1","aes-decrypter":"3.1.3"}},i.version=function(){return this.constructor.version()},i.canChangeType=function(){return s3.canChangeType()},i.play=function(){this.masterPlaylistController_.play()},i.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},i.duration=function(){return this.masterPlaylistController_.duration()},i.seekable=function(){return this.masterPlaylistController_.seekable()},i.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&m().URL.revokeObjectURL&&(m().URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),e.prototype.dispose.call(this)},i.convertToProgramTime=function(e,t){return ax({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},i.seekToProgramTime=function(e,t,i,n){return void 0===i&&(i=!0),void 0===n&&(n=2),aP({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:n,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(rg.getComponent("Component")),oN={name:"videojs-http-streaming",VERSION:oI,canHandleSource:function(e,t){void 0===t&&(t={});var i=rg.mergeOptions(rg.options,t);return oN.canPlayType(e.type,i)},handleSource:function(e,t,i){void 0===i&&(i={});var n=rg.mergeOptions(rg.options,i);return t.vhs=new oB(e,t,n),rg.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return rg.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=af(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){void 0===t&&(t={});var i=rg.mergeOptions(rg.options,t),n=i.vhs,r=(n=void 0===n?{}:n).overrideNative,a=void 0===r?!rg.browser.IS_ANY_SAFARI:r,s=i.hls,o=(s=void 0===s?{}:s).overrideNative,l=(0,M.t)(e);return l&&(!ox.supportsTypeNatively(l)||void 0!==o&&o||a)?"maybe":""}};(0,D.p7)("avc1.4d400d,mp4a.40.2")&&rg.getTech("Html5").registerSourceHandler(oN,0),rg.VhsHandler=oB,Object.defineProperty(rg,"HlsHandler",{get:function(){return rg.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),oB},configurable:!0}),rg.VhsSourceHandler=oN,Object.defineProperty(rg,"HlsSourceHandler",{get:function(){return rg.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),oN},configurable:!0}),rg.Vhs=ox,Object.defineProperty(rg,"Hls",{get:function(){return rg.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),ox},configurable:!0}),rg.use||(rg.registerComponent("Hls",ox),rg.registerComponent("Vhs",ox)),rg.options.vhs=rg.options.vhs||{},rg.options.hls=rg.options.hls||{},rg.getPlugin&&rg.getPlugin("reloadSourceOnError")||(rg.registerPlugin||rg.plugin)("reloadSourceOnError",function(e){ow(this,e)}),t.Z=rg}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/ee8b1517-52db663269a829c7.js b/static/web/_next/static/chunks/ee8b1517-52db663269a829c7.js new file mode 100644 index 000000000..bc02c0966 --- /dev/null +++ b/static/web/_next/static/chunks/ee8b1517-52db663269a829c7.js @@ -0,0 +1,6 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2196],{23148:function(t,e,i){i.d(e,{kL:function(){return tN},zX:function(){return e2}});var s=i(9676),a=new /*! + * Chart.js v4.1.0 + * https://www.chartjs.org + * (c) 2022 Chart.js Contributors + * Released under the MIT License + */class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){let a=e.listeners[s],n=e.duration;a.forEach(s=>s({chart:t,initial:e.initial,numSteps:n,currentStep:Math.min(i-e.start,n)}))}_refresh(){this._request||(this._running=!0,this._request=s.r.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,s)=>{let a;if(!i.running||!i.items.length)return;let n=i.items,r=n.length-1,o=!1;for(;r>=0;--r)(a=n[r])._active?(a._total>i.duration&&(i.duration=a._total),a.tick(t),o=!0):(n[r]=n[n.length-1],n.pop());o&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){let e=this._charts,i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){let e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;let e=this._charts.get(t);return!!e&&!!e.running&&!!e.items.length}stop(t){let e=this._charts.get(t);if(!e||!e.items.length)return;let i=e.items,s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};let n="transparent",r={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){let a=(0,s.c)(t||n),r=a.valid&&(0,s.c)(e||n);return r&&r.valid?r.mix(a,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class o{constructor(t,e,i,a){let n=e[i];a=(0,s.a)([t.to,a,n,t.from]);let o=(0,s.a)([t.from,n,a]);this._active=!0,this._fn=t.fn||r[t.type||typeof o],this._easing=s.e[t.easing]||s.e.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=a,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);let a=this._target[this._prop],n=i-this._start,r=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=(0,s.a)([t.to,e,a,t.from]),this._from=(0,s.a)([t.from,a,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){let e;let i=t-this._start,s=this._duration,a=this._prop,n=this._from,r=this._loop,o=this._to;if(this._active=n!==o&&(r||i1?2-e:e,e=this._easing(Math.min(1,Math.max(0,e))),this._target[a]=this._fn(n,o,e)}wait(){let t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){let e=t?"res":"rej",i=this._promises||[];for(let s=0;s{let n=t[a];if(!(0,s.i)(n))return;let r={};for(let o of e)r[o]=n[o];((0,s.b)(n.properties)&&n.properties||[a]).forEach(t=>{t!==a&&i.has(t)||i.set(t,r)})})}_animateOptions(t,e){let i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(!i){t.options=e;return}return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i}(t,i);if(!s)return[];let a=this._createAnimations(s,i);return i.$shared&&(function(t,e){let i=[],s=Object.keys(e);for(let a=0;a{t.options=i},()=>{}),a}_createAnimations(t,e){let i;let s=this._properties,a=[],n=t.$animations||(t.$animations={}),r=Object.keys(e),l=Date.now();for(i=r.length-1;i>=0;--i){let h=r[i];if("$"===h.charAt(0))continue;if("options"===h){a.push(...this._animateOptions(t,e));continue}let d=e[h],c=n[h],u=s.get(h);if(c){if(u&&c.active()){c.update(u,d,l);continue}c.cancel()}if(!u||!u.duration){t[h]=d;continue}n[h]=c=new o(u,t,h,d),a.push(c)}return a}update(t,e){if(0===this._properties.size){Object.assign(t,e);return}let i=this._createAnimations(t,e);if(i.length)return a.add(this._chart,i),!0}}function h(t,e){let i=t&&t.options||{},s=i.reverse,a=void 0===i.min?e:0,n=void 0===i.max?e:0;return{start:s?n:a,end:s?a:n}}function d(t,e){let i,s;let a=[],n=t._getSortedDatasetMetas(e);for(i=0,s=n.length;i0||!i&&n<0)return a.index}return null}function p(t,e){let i;let{chart:s,_cachedMeta:a}=t,n=s._stacks||(s._stacks={}),{iScale:r,vScale:o,index:l}=a,h=r.axis,d=o.axis,c=`${r.id}.${o.id}.${a.stack||a.type}`,u=e.length;for(let p=0;pi[t].axis===e).shift()}function m(t,e){let i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s)for(let a of e=e||t._parsed){let n=a._stacks;if(!n||void 0===n[s]||void 0===n[s][i])return;delete n[s][i],void 0!==n[s]._visualValues&&void 0!==n[s]._visualValues[i]&&delete n[s]._visualValues[i]}}let b=t=>"reset"===t||"none"===t,x=(t,e)=>e?t:Object.assign({},t),_=(t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:d(i,!0),values:null};class v{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=u(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&m(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,e=this._cachedMeta,i=this.getDataset(),a=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,n=e.xAxisID=(0,s.v)(i.xAxisID,f(t,"x")),r=e.yAxisID=(0,s.v)(i.yAxisID,f(t,"y")),o=e.rAxisID=(0,s.v)(i.rAxisID,f(t,"r")),l=e.indexAxis,h=e.iAxisID=a(l,n,r,o),d=e.vAxisID=a(l,r,n,o);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(h),e.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&(0,s.u)(this._data,this),t._stacked&&m(t)}_dataCheck(){let t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if((0,s.i)(e))this._data=function(t){let e,i,s;let a=Object.keys(t),n=Array(a.length);for(e=0,i=a.length;e0&&r._parsed[t-1];if(!1===this._parsing)r._parsed=o,r._sorted=!0,n=o;else{n=(0,s.b)(o[t])?this.parseArrayData(r,o,t,e):(0,s.i)(o[t])?this.parseObjectData(r,o,t,e):this.parsePrimitiveData(r,o,t,e);let g=()=>null===a[d]||u&&a[d]e||g=0;--i)if(!p()){this.updateRangeFromParsed(c,t,a,d);break}}return c}getAllParsedValues(t){let e,i,a;let n=this._cachedMeta._parsed,r=[];for(e=0,i=n.length;e=0&&tthis.getContext(i,a,e),f=h.resolveNamedOptions(u,g,p,c);return f.$shared&&(f.$shared=l,n[r]=Object.freeze(x(f,l))),f}_resolveAnimations(t,e,i){let s;let a=this.chart,n=this._cachedDataOpts,r=`animation-${e}`,o=n[r];if(o)return o;if(!1!==a.options.animation){let h=this.chart.config,d=h.datasetAnimationScopeKeys(this._type,e),c=h.getOptionScopes(this.getDataset(),d);s=h.createResolver(c,this.getContext(t,i,e))}let u=new l(a,s&&s.animations);return s&&s._cacheable&&(n[r]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||b(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){let i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,a=this.getSharedOptions(i),n=this.includeOptions(e,a)||a!==s;return this.updateSharedOptions(a,e,i),{sharedOptions:a,includeOptions:n}}updateElement(t,e,i,s){b(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!b(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;let a=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(a)||a})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let e=this._data,i=this._cachedMeta.data;for(let[s,a,n]of this._syncList)this[s](a,n);this._syncList=[];let r=i.length,o=e.length,l=Math.min(o,r);l&&this.parse(0,l),o>r?this._insertElements(r,o-r,t):o{for(t.length+=e,s=t.length-1;s>=r;s--)t[s]=t[s-e]};for(o(n),s=t;sMath.abs(o)&&(l=o,h=r),e[i.axis]=h,e._custom={barStart:l,barEnd:h,start:a,end:n,min:r,max:o}}(t,e,i,a):e[i.axis]=i.parse(t,a),e}function M(t,e,i,s){let a,n,r,o;let l=t.iScale,h=t.vScale,d=l.getLabels(),c=l===h,u=[];for(a=i,n=i+s;a"spacing"!==t,_indexable:t=>"spacing"!==t};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let e=t.data;if(e.labels.length&&e.datasets.length){let{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map((e,a)=>{let n=t.getDatasetMeta(0),r=n.controller.getStyle(a);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,fontColor:s,lineWidth:r.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){let i=this.getDataset().data,a=this._cachedMeta;if(!1===this._parsing)a._parsed=i;else{let n,r,o=t=>+i[t];if((0,s.i)(i[t])){let{key:l="value"}=this._parsing;o=t=>+(0,s.f)(i[t],l)}for(n=t,r=t+e;n(0,s.p)(e,t,l,!0)?1:Math.max(a,a*i,n,n*i),p=(e,a,n)=>(0,s.p)(e,t,l,!0)?-1:Math.min(a,a*i,n,n*i),f=g(0,h,c),m=g(s.H,d,u),b=p(s.P,h,c),x=p(s.P+s.H,d,u);a=(f-b)/2,n=(m-x)/2,r=-(f+b)/2,o=-(m+x)/2}return{ratioX:a,ratioY:n,offsetX:r,offsetY:o}}(c,d,l),m=(i.width-r)/u,b=(i.height-r)/g,x=(0,s.n)(this.options.radius,Math.max(Math.min(m,b)/2,0)),_=(x-Math.max(x*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*x,this.offsetY=f*x,a.total=this.calculateTotal(),this.outerRadius=x-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*h,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){let i=this.options,a=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===a._parsed[t]||a.data[t].hidden?0:this.calculateCircumference(a._parsed[t]*n/s.T)}updateElements(t,e,i,s){let a;let n="reset"===s,r=this.chart,o=r.chartArea,l=r.options,h=l.animation,d=(o.left+o.right)/2,c=(o.top+o.bottom)/2,u=n&&h.animateScale,g=u?0:this.innerRadius,p=u?0:this.outerRadius,{sharedOptions:f,includeOptions:m}=this._getSharedOptions(e,s),b=this._getRotation();for(a=0;a0&&!isNaN(t)?s.T*(Math.abs(t)/e):0}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart,a=i.data.labels||[],n=(0,s.o)(e._parsed[t],i.options.locale);return{label:a[t]||"",value:n}}getMaxBorderWidth(t){let e,i,s,a,n,r=0,o=this.chart;if(!t){for(e=0,i=o.data.datasets.length;e{let n=t.getDatasetMeta(0),r=n.controller.getStyle(a);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,fontColor:s,lineWidth:r.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart,a=i.data.labels||[],n=(0,s.o)(e._parsed[t].r,i.options.locale);return{label:a[t]||"",value:n}}parseObjectData(t,e,i,a){return s.y.bind(this)(t,e,i,a)}update(t){let e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){let t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,i)=>{let s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(se.max&&(e.max=s))}),e}_updateRadius(){let t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),a=Math.max(s/2,0),n=Math.max(i.cutoutPercentage?a/100*i.cutoutPercentage:1,0),r=(a-n)/t.getVisibleDatasetCount();this.outerRadius=a-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(t,e,i,a){let n;let r="reset"===a,o=this.chart,l=o.options,h=l.animation,d=this._cachedMeta.rScale,c=d.xCenter,u=d.yCenter,g=d.getIndexAngle(0)-.5*s.P,p=g,f=360/this.countVisibleElements();for(n=0;n{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?(0,s.t)(this.resolveDataElementOptions(t,e).angle||i):0}}var C=Object.freeze({__proto__:null,BarController:class extends v{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,i,s){return M(t,e,i,s)}parseArrayData(t,e,i,s){return M(t,e,i,s)}parseObjectData(t,e,i,a){let n,r,o,l;let{iScale:h,vScale:d}=t,{xAxisKey:c="x",yAxisKey:u="y"}=this._parsing,g="x"===h.axis?c:u,p="x"===d.axis?c:u,f=[];for(n=i,r=i+a;nt.x,n="left",r="right"):(a=t.baset.controller.options.grouped),n=i.options.stacked,r=[],o=t=>{let i=t.controller.getParsed(e),a=i&&i[t.vScale.axis];if((0,s.k)(a)||isNaN(a))return!0};for(let l of a)if(!(void 0!==e&&o(l))&&((!1===n||-1===r.indexOf(l.stack)||void 0===n&&void 0===l.stack)&&r.push(l.stack),l.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){let s=this._getStacks(t,i),a=void 0!==e?s.indexOf(e):-1;return -1===a?s.length-1:a}_getRuler(){let t,e;let i=this.options,a=this._cachedMeta,n=a.iScale,r=[];for(t=0,e=a.data.length;tt-e))}return t._cache.$bar}(r,t.type),l=r._length,h=()=>{32767!==a&&-32768!==a&&((0,s.h)(n)&&(l=Math.min(l,Math.abs(a-n)||l)),n=a)};for(e=0,i=o.length;e=h?1:-1))*l,g===h&&(b-=i/2);let _=a.getPixelForDecimal(0),v=a.getPixelForDecimal(1);e=(b=Math.max(Math.min(b,Math.max(_,v)),Math.min(_,v)))+i,n&&!u&&(d._stacks[a.axis]._visualValues[r]=a.getValueForPixel(e)-a.getValueForPixel(b))}if(b===a.getPixelForValue(h)){let y=(0,s.s)(i)*a.getLineWidthForValue(h)/2;b+=y,i-=y}return{size:i,base:b,head:e,center:e+i/2}}_calculateBarIndexPixels(t,e){let i,a;let n=e.scale,r=this.options,o=r.skipNull,l=(0,s.v)(r.maxBarThickness,1/0);if(e.grouped){let h=o?this._getStackCount(t):e.stackCount,d="flex"===r.barThickness?function(t,e,i,s){let a=e.pixels,n=a[t],r=t>0?a[t-1]:null,o=t=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:a}=e,n=this.getParsed(t),r=s.getLabelForValue(n.x),o=a.getLabelForValue(n.y),l=n._custom;return{label:i[t]||"",value:"("+r+", "+o+(l?", "+l:"")+")"}}update(t){let e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){let a="reset"===s,{iScale:n,vScale:r}=this._cachedMeta,{sharedOptions:o,includeOptions:l}=this._getSharedOptions(e,s),h=n.axis,d=r.axis;for(let c=e;c0&&this.getParsed(e-1);for(let y=0;y<_;++y){let M=t[y],w=b?M:{};if(y=x){w.skip=!0;continue}let k=this.getParsed(y),S=(0,s.k)(k[g]),P=w[u]=r.getPixelForValue(k[u],y),D=w[g]=n||S?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,k,l):k[g],y);w.skip=isNaN(P)||isNaN(D)||S,w.stop=y>0&&Math.abs(k[u]-v[u])>m,f&&(w.parsed=k,w.raw=h.data[y]),c&&(w.options=d||this.resolveDataElementOptions(y,M.active?"active":a)),b||this.updateElement(M,y,w,a),v=k}}getMaxOverflow(){let t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;let a=s[0].size(this.resolveDataElementOptions(0)),n=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,a,n)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PolarAreaController:D,PieController:class extends P{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},RadarController:class extends v{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){let e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,a){return s.y.bind(this)(t,e,i,a)}update(t){let e=this._cachedMeta,i=e.dataset,s=e.data||[],a=e.iScale.getLabels();if(i.points=s,"resize"!==t){let n=this.resolveDatasetElementOptions(t);this.options.showLine||(n.borderWidth=0);let r={_loop:!0,_fullLoop:a.length===s.length,options:n};this.updateElement(i,void 0,r,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){let a=this._cachedMeta.rScale,n="reset"===s;for(let r=e;r0&&this.getParsed(e-1);for(let v=e;v0&&Math.abs(M[g]-_[g])>b,m&&(w.parsed=M,w.raw=h.data[v]),u&&(w.options=c||this.resolveDataElementOptions(v,y.active?"active":a)),x||this.updateElement(y,v,w,a),_=M}this.updateSharedOptions(c,a,d)}getMaxOverflow(){let t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let i=0;for(let s=e.length-1;s>=0;--s)i=Math.max(i,e[s].size(this.resolveDataElementOptions(s))/2);return i>0&&i}let a=t.dataset,n=a.options&&a.options.borderWidth||0;if(!e.length)return n;let r=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,r,o)/2}}});function L(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class E{static override(t){Object.assign(E.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return L()}parse(){return L()}format(){return L()}add(){return L()}diff(){return L()}startOf(){return L()}endOf(){return L()}}var O={_date:E};function A(t,e,i,a,n){let r=t.getSortedVisibleDatasetMetas(),o=i[e];for(let l=0,h=r.length;l{t[r](e[i],a)&&(n.push({element:t,datasetIndex:s,index:l}),o=o||t.inRange(e.x,e.y,a))}),s&&!o)?[]:n}var R={evaluateInteractionItems:A,modes:{index(t,e,i,a){let n=(0,s.z)(e,t),r=i.axis||"x",o=i.includeInvisible||!1,l=i.intersect?T(t,n,r,a,o):F(t,n,r,!1,a,o),h=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{let e=l[0].index,i=t.data[e];i&&!i.skip&&h.push({element:i,datasetIndex:t.index,index:e})}),h):[]},dataset(t,e,i,a){let n=(0,s.z)(e,t),r=i.axis||"xy",o=i.includeInvisible||!1,l=i.intersect?T(t,n,r,a,o):F(t,n,r,!1,a,o);if(l.length>0){let h=l[0].datasetIndex,d=t.getDatasetMeta(h).data;l=[];for(let c=0;ct.pos===e)}function B(t,e){return t.filter(t=>-1===I.indexOf(t.pos)&&t.box.axis===e)}function N(t,e){return t.sort((t,i)=>{let s=e?i:t,a=e?t:i;return s.weight===a.weight?s.index-a.index:s.weight-a.weight})}function H(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function j(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function W(t,e,i,a){let n,r,o,l,h,d;let c=[];for(n=0,r=t.length,h=0;n{s[t]=Math.max(e[t],i[t])}),s}(t?["left","right"]:["top","bottom"])}(o.horizontal,e));let{same:u,other:g}=function(t,e,i,a){let{pos:n,box:r}=i,o=t.maxPadding;if(!(0,s.i)(n)){i.size&&(t[n]-=i.size);let l=a[i.stack]||{size:0,count:1};l.size=Math.max(l.size,i.horizontal?r.height:r.width),i.size=l.size/l.count,t[n]+=i.size}r.getPadding&&j(o,r.getPadding());let h=Math.max(0,e.outerWidth-H(o,t,"left","right")),d=Math.max(0,e.outerHeight-H(o,t,"top","bottom")),c=h!==t.w,u=d!==t.h;return t.w=h,t.h=d,i.horizontal?{same:c,other:u}:{same:u,other:c}}(e,i,o,a);h|=u&&c.length,d=d||g,l.fullSize||c.push(o)}return h&&W(c,e,i,a)||d}function $(t,e,i,s,a){t.top=i,t.left=e,t.right=e+s,t.bottom=i+a,t.width=s,t.height=a}function U(t,e,i,a){let n=i.padding,{x:r,y:o}=e;for(let l of t){let h=l.box,d=a[l.stack]||{count:1,placed:0,weight:1},c=l.stackWeight/d.weight||1;if(l.horizontal){let u=e.w*c,g=d.size||h.height;(0,s.h)(d.start)&&(o=d.start),h.fullSize?$(h,n.left,o,i.outerWidth-n.right-n.left,g):$(h,e.left+d.placed,o,u,g),d.start=o,d.placed+=u,o=h.bottom}else{let p=e.h*c,f=d.size||h.width;(0,s.h)(d.start)&&(r=d.start),h.fullSize?$(h,r,n.top,f,i.outerHeight-n.bottom-n.top):$(h,r,e.top+d.placed,f,p),d.start=r,d.placed+=p,r=h.right}}e.x=r,e.y=o}var Y={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){let i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,a){if(!t)return;let n=(0,s.E)(t.options.layout.padding),r=Math.max(e-n.width,0),o=Math.max(i-n.height,0),l=function(t){let e=function(t){let e,i,s,a,n,r;let o=[];for(e=0,i=(t||[]).length;et.box.fullSize),!0),s=N(V(e,"left"),!0),a=N(V(e,"right")),n=N(V(e,"top"),!0),r=N(V(e,"bottom")),o=B(e,"x"),l=B(e,"y");return{fullSize:i,leftAndTop:s.concat(n),rightAndBottom:a.concat(l).concat(r).concat(o),chartArea:V(e,"chartArea"),vertical:s.concat(a).concat(l),horizontal:n.concat(r).concat(o)}}(t.boxes),h=l.vertical,d=l.horizontal;(0,s.F)(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});let c=h.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/c,hBoxMaxHeight:o/2}),g=Object.assign({},n);j(g,(0,s.E)(a));let p=Object.assign({maxPadding:g,w:r,h:o,x:n.left,y:n.top},n),f=function(t,e){let i,s,a;let n=function(t){let e={};for(let i of t){let{stack:s,pos:a,stackWeight:n}=i;if(!s||!I.includes(a))continue;let r=e[s]||(e[s]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=n}return e}(t),{vBoxMaxWidth:r,hBoxMaxHeight:o}=e;for(i=0,s=t.length;i{let i=e.box;Object.assign(i,t.chartArea),i.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Q{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class X extends Q{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}let q="$chartjs",G={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},K=t=>null===t||""===t,J=!!s.K&&{passive:!0};function Z(t,e,i){t.canvas.removeEventListener(e,i,J)}function tt(t,e){for(let i of t)if(i===e||i.contains(e))return!0}function te(t,e,i){let s=t.canvas,a=new MutationObserver(t=>{let e=!1;for(let a of t)e=(e=e||tt(a.addedNodes,s))&&!tt(a.removedNodes,s);e&&i()});return a.observe(document,{childList:!0,subtree:!0}),a}function ti(t,e,i){let s=t.canvas,a=new MutationObserver(t=>{let e=!1;for(let a of t)e=(e=e||tt(a.removedNodes,s))&&!tt(a.addedNodes,s);e&&i()});return a.observe(document,{childList:!0,subtree:!0}),a}let ts=new Map,ta=0;function tn(){let t=window.devicePixelRatio;t!==ta&&(ta=t,ts.forEach((e,i)=>{i.currentDevicePixelRatio!==t&&e()}))}function tr(t,e,i){let a=t.canvas,n=a&&(0,s.I)(a);if(!n)return;let r=(0,s.L)((t,e)=>{let s=n.clientWidth;i(t,e),s{let e=t[0],i=e.contentRect.width,s=e.contentRect.height;(0!==i||0!==s)&&r(i,s)});return o.observe(n),ts.size||window.addEventListener("resize",tn),ts.set(t,r),o}function to(t,e,i){i&&i.disconnect(),"resize"===e&&(ts.delete(t),ts.size||window.removeEventListener("resize",tn))}function tl(t,e,i){let a=t.canvas,n=(0,s.L)(e=>{null!==t.ctx&&i(function(t,e){let i=G[t.type]||t.type,{x:a,y:n}=(0,s.z)(t,e);return{type:i,chart:e,native:t,x:void 0!==a?a:null,y:void 0!==n?n:null}}(e,t))},t);return!function(t,e,i){t.addEventListener(e,i,J)}(a,e,n),n}class th extends Q{acquireContext(t,e){let i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(!function(t,e){let i=t.style,a=t.getAttribute("height"),n=t.getAttribute("width");if(t[q]={initial:{height:a,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",K(n)){let r=(0,s.J)(t,"width");void 0!==r&&(t.width=r)}if(K(a)){if(""===t.style.height)t.height=t.width/(e||2);else{let o=(0,s.J)(t,"height");void 0!==o&&(t.height=o)}}}(t,e),i):null}releaseContext(t){let e=t.canvas;if(!e[q])return!1;let i=e[q].initial;["height","width"].forEach(t=>{let a=i[t];(0,s.k)(a)?e.removeAttribute(t):e.setAttribute(t,a)});let a=i.style||{};return Object.keys(a).forEach(t=>{e.style[t]=a[t]}),e.width=e.width,delete e[q],!0}addEventListener(t,e,i){this.removeEventListener(t,e);let s=t.$proxies||(t.$proxies={});s[e]=(({attach:te,detach:ti,resize:tr})[e]||tl)(t,e,i)}removeEventListener(t,e){let i=t.$proxies||(t.$proxies={}),s=i[e];s&&((({attach:to,detach:to,resize:to})[e]||Z)(t,e,s),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,a){return(0,s.G)(t,e,i,a)}isAttached(t){let e=(0,s.I)(t);return!!(e&&e.isConnected)}}class td{static defaults={};static defaultRoutes=void 0;active=!1;tooltipPosition(t){let{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return(0,s.x)(this.x)&&(0,s.x)(this.y)}getProps(t,e){let i=this.$animations;if(!e||!i)return this;let s={};return t.forEach(t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]}),s}}function tc(t,e,i,a,n){let r,o,l;let h=(0,s.v)(a,0),d=Math.min((0,s.v)(n,t.length),t.length),c=0;for(i=Math.ceil(i),n&&(i=(r=n-a)/Math.floor(r/i)),l=h;l<0;)l=Math.round(h+ ++c*i);for(o=Math.max(h,0);o"left"===t?"right":"right"===t?"left":t,tg=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function tp(t,e){let i=[],s=t.length/e,a=t.length,n=0;for(;na?a:i,a=n&&i>a?i:a,{min:(0,s.O)(i,(0,s.O)(a,i)),max:(0,s.O)(a,(0,s.O)(i,a))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){let e=this._labelItems||(this._labelItems=this._computeLabelItems(t));return e}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,s.Q)(this.options.beforeUpdate,[this])}update(t,e,i){let{beginAtZero:a,grace:n,ticks:r}=this.options,o=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,s.R)(this,n,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=on)return function(t,e,i,s){let a,n=0,r=i[0];for(a=0,s=Math.ceil(s);an)return h}return Math.max(n,1)}(r,e,n);if(o>0){let u,g;let p=o>1?Math.round((h-l)/(o-1)):null;for(tc(e,d,c,(0,s.k)(p)?0:l-p,l),u=0,g=o-1;u=l||r<=1||!this.isHorizontal()){this.labelRotation=o;return}let d=this._getLabelSizes(),c=d.widest.width,u=d.highest.height,g=(0,s.S)(this.chart.width-c,0,this.maxWidth);c+6>(t=a.offset?this.maxWidth/r:g/(r-1))&&(t=g/(r-(a.offset?.5:1)),e=this.maxHeight-tf(a.grid)-n.padding-tm(a.title,this.chart.options.font),i=Math.sqrt(c*c+u*u),h=Math.max(o,Math.min(l,h=(0,s.U)(Math.min(Math.asin((0,s.S)((d.highest.height+6)/t,-1,1)),Math.asin((0,s.S)(e/i,-1,1))-Math.asin((0,s.S)(u/i,-1,1))))))),this.labelRotation=h}afterCalculateLabelRotation(){(0,s.Q)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){(0,s.Q)(this.options.beforeFit,[this])}fit(){let t={width:0,height:0},{chart:e,options:{ticks:i,title:a,grid:n}}=this,r=this._isVisible(),o=this.isHorizontal();if(r){let l=tm(a,e.options.font);if(o?(t.width=this.maxWidth,t.height=tf(n)+l):(t.height=this.maxHeight,t.width=tf(n)+l),i.display&&this.ticks.length){let{first:h,last:d,widest:c,highest:u}=this._getLabelSizes(),g=2*i.padding,p=(0,s.t)(this.labelRotation),f=Math.cos(p),m=Math.sin(p);if(o){let b=i.mirror?0:m*c.width+f*u.height;t.height=Math.min(this.maxHeight,t.height+b+g)}else{let x=i.mirror?0:f*c.width+m*u.height;t.width=Math.min(this.maxWidth,t.width+x+g)}this._calculatePadding(h,d,m,f)}}this._handleMargins(),o?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){let{ticks:{align:a,padding:n},position:r}=this.options,o=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){let h=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1),c=0,u=0;o?l?(c=s*t.width,u=i*e.height):(c=i*t.height,u=s*e.width):"start"===a?u=e.width:"end"===a?c=t.width:"inner"!==a&&(c=t.width/2,u=e.width/2),this.paddingLeft=Math.max((c-h+n)*this.width/(this.width-h),0),this.paddingRight=Math.max((u-d+n)*this.width/(this.width-d),0)}else{let g=e.height/2,p=t.height/2;"start"===a?(g=0,p=t.height):"end"===a&&(g=e.height,p=0),this.paddingTop=g+n,this.paddingBottom=p+n}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){(0,s.Q)(this.options.afterFit,[this])}isHorizontal(){let{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e{let i;let s=t.gc,a=s.length/2;if(a>e){for(i=0;i({width:m[t]||0,height:b[t]||0});return{first:M(0),last:M(e-1),widest:M(v),highest:M(y),widths:m,heights:b}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){let e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);let e=this._startPixel+t*this._length;return(0,s.W)(this._alignToPixels?(0,s.X)(this.chart,e,0):e)}getDecimalForPixel(t){let e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){var e,i;let a=this.ticks||[];if(t>=0&&to*a?o/i:l/a:l*a0}_computeGridLineItems(t){let e,i,a,n,r,o,l,h,d,c,u,g;let p=this.axis,f=this.chart,m=this.options,{grid:b,position:x,border:_}=m,v=b.offset,y=this.isHorizontal(),M=this.ticks,w=M.length+(v?1:0),k=tf(b),S=[],P=_.setContext(this.getContext()),D=P.display?P.width:0,C=D/2,L=function(t){return(0,s.X)(f,t,D)};if("top"===x)e=L(this.bottom),o=this.bottom-k,h=e-C,c=L(t.top)+C,g=t.bottom;else if("bottom"===x)e=L(this.top),c=t.top,g=L(t.bottom)-C,o=e+C,h=this.top+k;else if("left"===x)e=L(this.right),r=this.right-k,l=e-C,d=L(t.left)+C,u=t.right;else if("right"===x)e=L(this.left),d=t.left,u=L(t.right)-C,r=e+C,l=this.left+k;else if("x"===p){if("center"===x)e=L((t.top+t.bottom)/2+.5);else if((0,s.i)(x)){let E=Object.keys(x)[0],O=x[E];e=L(this.chart.scales[E].getPixelForValue(O))}c=t.top,g=t.bottom,h=(o=e+C)+k}else if("y"===p){if("center"===x)e=L((t.left+t.right)/2);else if((0,s.i)(x)){let A=Object.keys(x)[0],T=x[A];e=L(this.chart.scales[A].getPixelForValue(T))}l=(r=e-C)-k,d=t.left,u=t.right}let F=(0,s.v)(m.ticks.maxTicksLimit,w),z=Math.max(1,Math.ceil(w/F));for(i=0;io+1e-6)))return l}(this,i,v))&&(n=(0,s.X)(f,a,B),y?r=l=d=u=n:o=h=c=g=n,S.push({tx1:r,ty1:o,tx2:l,ty2:h,x1:d,y1:c,x2:u,y2:g,width:B,color:N,borderDash:H,borderDashOffset:j,tickWidth:W,tickColor:$,tickBorderDash:U,tickBorderDashOffset:Y}))}return this._ticksLength=w,this._borderValue=e,S}_computeLabelItems(t){let e,i,a,n,r,o,l,h,d,c,u;let g=this.axis,p=this.options,{position:f,ticks:m}=p,b=this.isHorizontal(),x=this.ticks,{align:_,crossAlign:v,padding:y,mirror:M}=m,w=tf(p.grid),k=w+y,S=M?-y:k,P=-(0,s.t)(this.labelRotation),D=[],C="middle";if("top"===f)r=this.bottom-S,o=this._getXAxisLabelAlignment();else if("bottom"===f)r=this.top+S,o=this._getXAxisLabelAlignment();else if("left"===f){let L=this._getYAxisLabelAlignment(w);o=L.textAlign,n=L.x}else if("right"===f){let E=this._getYAxisLabelAlignment(w);o=E.textAlign,n=E.x}else if("x"===g){if("center"===f)r=(t.top+t.bottom)/2+k;else if((0,s.i)(f)){let O=Object.keys(f)[0],A=f[O];r=this.chart.scales[O].getPixelForValue(A)+k}o=this._getXAxisLabelAlignment()}else if("y"===g){if("center"===f)n=(t.left+t.right)/2-k;else if((0,s.i)(f)){let T=Object.keys(f)[0],F=f[T];n=this.chart.scales[T].getPixelForValue(F)}o=this._getYAxisLabelAlignment(w).textAlign}"y"===g&&("start"===_?C="top":"end"===_&&(C="bottom"));let z=this._getLabelSizes();for(e=0,i=x.length;ee.value===t);if(s>=0){let a=e.setContext(this.getContext(s));return a.lineWidth}return 0}drawGrid(t){let e,i;let s=this.options.grid,a=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t)),r=(t,e,i)=>{i.width&&i.color&&(a.save(),a.lineWidth=i.width,a.strokeStyle=i.color,a.setLineDash(i.borderDash||[]),a.lineDashOffset=i.borderDashOffset,a.beginPath(),a.moveTo(t.x,t.y),a.lineTo(e.x,e.y),a.stroke(),a.restore())};if(s.display)for(e=0,i=n.length;e{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:a,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){let e,i;let s=this.chart.getSortedVisibleDatasetMetas(),a=this.axis+"AxisID",n=[];for(e=0,i=s.length;e{let a=i.split("."),n=a.pop(),r=[t].concat(a).join("."),o=e[i].split("."),l=o.pop(),h=o.join(".");s.d.route(r,n,h,l)})}(e,t.defaultRoutes),t.descriptors&&s.d.describe(e,t.descriptors)}(t,r,e),this.override&&s.d.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){let e=this.items,i=t.id,a=this.scope;i in e&&delete e[i],a&&i in s.d[a]&&(delete s.d[a][i],this.override&&delete s.a3[i])}}var t_=new class{constructor(){this.controllers=new tx(v,"datasets",!0),this.elements=new tx(td,"elements"),this.plugins=new tx(Object,"plugins"),this.scales=new tx(tb,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(e=>{let a=i||this._getRegistryForType(e);i||a.isForType(e)||a===this.plugins&&e.id?this._exec(t,a,e):(0,s.F)(e,e=>{let s=i||this._getRegistryForType(e);this._exec(t,s,e)})})}_exec(t,e,i){let a=(0,s.a5)(t);(0,s.Q)(i["before"+a],[],i),e[t](i),(0,s.Q)(i["after"+a],[],i)}_getRegistryForType(t){for(let e=0;et.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function ty(t,e){let i=s.d.datasets[t]||{},a=(e.datasets||{})[t]||{};return a.indexAxis||e.indexAxis||i.indexAxis||"x"}function tM(t,e){var i;if("x"===t||"y"===t||"r"===t||(t=e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.length>1&&tM(t[0].toLowerCase(),e)))return t;throw Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function tw(t){let e=t.options||(t.options={});e.plugins=(0,s.v)(e.plugins,{}),e.scales=function(t,e){let i=s.a3[t.type]||{scales:{}},a=e.scales||{},n=ty(t.type,e),r=Object.create(null);return Object.keys(a).forEach(t=>{let e=a[t];if(!(0,s.i)(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);let o=tM(t,e),l=i.scales||{};r[t]=(0,s.ab)(Object.create(null),[{axis:o},e,l[o],l[o===n?"_index_":"_value_"]])}),t.data.datasets.forEach(i=>{let n=i.type||t.type,o=i.indexAxis||ty(n,e),l=s.a3[n]||{},h=l.scales||{};Object.keys(h).forEach(t=>{let e;let n=(e=t,"_index_"===t?e=o:"_value_"===t&&(e="x"===o?"y":"x"),e),l=i[n+"AxisID"]||n;r[l]=r[l]||Object.create(null),(0,s.ab)(r[l],[{axis:n},a[l],h[t]])})}),Object.keys(r).forEach(t=>{let e=r[t];(0,s.ab)(e,[s.d.scales[e.type],s.d.scale])}),r}(t,e)}function tk(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}let tS=new Map,tP=new Set;function tD(t,e){let i=tS.get(t);return i||(i=e(),tS.set(t,i),tP.add(i)),i}let tC=(t,e,i)=>{let a=(0,s.f)(e,i);void 0!==a&&t.add(a)};class tL{constructor(t){var e;this._config=((e=(e=t)||{}).data=tk(e.data),tw(e),e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=tk(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){let t=this._config;this.clearCache(),tw(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return tD(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return tD(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return tD(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){let e=t.id,i=this.type;return tD(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){let i=this._scopeCache,s=i.get(t);return(!s||e)&&(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){let{options:a,type:n}=this,r=this._cachedScopes(t,i),o=r.get(e);if(o)return o;let l=new Set;e.forEach(e=>{t&&(l.add(t),e.forEach(e=>tC(l,t,e))),e.forEach(t=>tC(l,a,t)),e.forEach(t=>tC(l,s.a3[n]||{},t)),e.forEach(t=>tC(l,s.d,t)),e.forEach(t=>tC(l,s.a6,t))});let h=Array.from(l);return 0===h.length&&h.push(Object.create(null)),tP.has(e)&&r.set(e,h),h}chartOptionScopes(){let{options:t,type:e}=this;return[t,s.a3[e]||{},s.d.datasets[e]||{},{type:e},s.d,s.a6]}resolveNamedOptions(t,e,i,a=[""]){let n={$shared:!0},{resolver:r,subPrefixes:o}=tE(this._resolverCache,t,a),l=r;if(function(t,e){let{isScriptable:i,isIndexable:a}=(0,s.aa)(t);for(let n of e){let r=i(n),o=a(n),l=(o||r)&&t[n];if(r&&((0,s.a7)(l)||tO(l))||o&&(0,s.b)(l))return!0}return!1}(r,e)){n.$shared=!1,i=(0,s.a7)(i)?i():i;let h=this.createResolver(t,i,o);l=(0,s.a8)(r,i,h)}for(let d of e)n[d]=l[d];return n}createResolver(t,e,i=[""],a){let{resolver:n}=tE(this._resolverCache,t,i);return(0,s.i)(e)?(0,s.a8)(n,e,void 0,a):n}}function tE(t,e,i){let a=t.get(e);a||(a=new Map,t.set(e,a));let n=i.join(),r=a.get(n);if(!r){let o=(0,s.a9)(e,i);r={resolver:o,subPrefixes:i.filter(t=>!t.toLowerCase().includes("hover"))},a.set(n,r)}return r}let tO=t=>(0,s.i)(t)&&Object.getOwnPropertyNames(t).reduce((e,i)=>e||(0,s.a7)(t[i]),!1),tA=["top","bottom","left","right","chartArea"];function tT(t,e){return"top"===t||"bottom"===t||-1===tA.indexOf(t)&&"x"===e}function tF(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function tz(t){let e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),(0,s.Q)(i&&i.onComplete,[t],e)}function tR(t){let e=t.chart,i=e.options.animation;(0,s.Q)(i&&i.onProgress,[t],e)}function tI(t){return(0,s.M)()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}let tV={},tB=t=>{let e=tI(t);return Object.values(tV).filter(t=>t.canvas===e).pop()};class tN{static defaults=s.d;static instances=tV;static overrides=s.a3;static registry=t_;static version="4.1.0";static getChart=tB;static register(...t){t_.add(...t),tH()}static unregister(...t){t_.remove(...t),tH()}constructor(t,e){let i=this.config=new tL(e),n=tI(t),r=tB(n);if(r)throw Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");let o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||(!(0,s.M)()||"undefined"!=typeof OffscreenCanvas&&n instanceof OffscreenCanvas?X:th)),this.platform.updateConfig(i);let l=this.platform.acquireContext(n,o.aspectRatio),h=l&&l.canvas,d=h&&h.height,c=h&&h.width;if(this.id=(0,s.ac)(),this.ctx=l,this.canvas=h,this.width=c,this.height=d,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new tv,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,s.ad)(t=>this.update(t),o.resizeDelay||0),this._dataChanges=[],tV[this.id]=this,!l||!h){console.error("Failed to create chart: can't acquire context from the given item");return}a.listen(this,"complete",tz),a.listen(this,"progress",tR),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:a,_aspectRatio:n}=this;return(0,s.k)(t)?e&&n?n:a?i/a:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return t_}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,s.ae)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,s.af)(this.canvas,this.ctx),this}stop(){return a.stop(this),this}resize(t,e){a.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){let i=this.options,a=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(a,t,e,n),o=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,(0,s.ae)(this,o,!0)&&(this.notifyPlugins("resize",{size:r}),(0,s.Q)(i.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){let t=this.options,e=t.scales||{};(0,s.F)(e,(t,e)=>{t.id=e})}buildOrUpdateScales(){let t=this.options,e=t.scales,i=this.scales,a=Object.keys(i).reduce((t,e)=>(t[e]=!1,t),{}),n=[];e&&(n=n.concat(Object.keys(e).map(t=>{let i=e[t],s=tM(t,i),a="r"===s,n="x"===s;return{options:i,dposition:a?"chartArea":n?"bottom":"left",dtype:a?"radialLinear":n?"category":"linear"}}))),(0,s.F)(n,e=>{let n=e.options,r=n.id,o=tM(r,n),l=(0,s.v)(n.type,e.dtype);(void 0===n.position||tT(n.position,o)!==tT(e.dposition))&&(n.position=e.dposition),a[r]=!0;let h=null;if(r in i&&i[r].type===l)h=i[r];else{let d=t_.getScale(l);i[(h=new d({id:r,type:l,ctx:this.ctx,chart:this})).id]=h}h.init(n,t)}),(0,s.F)(a,(t,e)=>{t||delete i[e]}),(0,s.F)(i,t=>{Y.configure(this,t,t.options),Y.addBox(this,t)})}_updateMetasets(){let t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((t,e)=>t.index-e.index),i>e){for(let s=e;se.length&&delete this._stacks,t.forEach((t,i)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){let t,e;let i=[],a=this.data.datasets;for(this._removeUnreferencedMetasets(),t=0,e=a.length;t{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let e=this.config;e.update();let i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;let n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let o=0,l=this.data.datasets.length;o{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(tF("z","_idx"));let{_active:c,_lastEvent:u}=this;u?this._eventHandler(u,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}_updateScales(){(0,s.F)(this.scales,t=>{Y.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(0,s.ag)(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(let{method:i,start:s,count:a}of e){let n="_removeElements"===i?-a:a;!function(t,e,i){let s=Object.keys(t);for(let a of s){let n=+a;if(n>=e){let r=t[a];delete t[a],(i>0||n>e)&&(t[n+i]=r)}}}(t,s,n)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let e=this.data.datasets.length,i=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),a=i(0);for(let n=1;nt.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Y.update(this,this.width,this.height,t);let e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],(0,s.F)(this.boxes,t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let e=0,i=this.data.datasets.length;e=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let e=this.ctx,i=t._clip,a=!i.disabled,n=function(t){let{xScale:e,yScale:i}=t;if(e&&i)return{left:e.left,right:e.right,top:i.top,bottom:i.bottom}}(t)||this.chartArea,r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(a&&(0,s.Y)(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),a&&(0,s.$)(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return(0,s.C)(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){let a=R.modes[e];return"function"==typeof a?a(this,t,i,s):[]}getDatasetMeta(t){let e=this.data.datasets[t],i=this._metasets,s=i.filter(t=>t&&t._dataset===e).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=(0,s.j)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let e=this.data.datasets[t];if(!e)return!1;let i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){let i=this.getDatasetMeta(t);i.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){let a=i?"show":"hide",n=this.getDatasetMeta(t),r=n.controller._resolveAnimations(void 0,a);(0,s.h)(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(n,{visible:i}),this.update(e=>e.datasetIndex===t?a:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){let e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),a.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,i,s),t[i]=s},a=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};(0,s.F)(this.options.events,t=>i(t,a))}bindResponsiveEvents(){let t;this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,s=(t,s)=>{i.addEventListener(this,t,s),e[t]=s},a=(t,s)=>{e[t]&&(i.removeEventListener(this,t,s),delete e[t])},n=(t,e)=>{this.canvas&&this.resize(t,e)},r=()=>{a("attach",r),this.attached=!0,this.resize(),s("resize",n),s("detach",t)};t=()=>{this.attached=!1,a("resize",n),this._stop(),this._resize(0,0),s("attach",r)},i.isAttached(this.canvas)?r():t()}unbindEvents(){(0,s.F)(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},(0,s.F)(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){let s,a,n;let r=i?"set":"remove";for("dataset"===e&&this.getDatasetMeta(t[0].datasetIndex).controller["_"+r+"DatasetHoverStyle"](),a=0,n=t.length;a{let i=this.getDatasetMeta(t);if(!i)throw Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),a=!(0,s.ah)(i,e);a&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter(e=>e.plugin.id===t).length}_updateHoverStyles(t,e,i){let s=this.options.hover,a=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),n=a(e,t),r=i?t:a(t,e);n.length&&this.updateHoverStyle(n,s.mode,!1),r.length&&s.mode&&this.updateHoverStyle(r,s.mode,!0)}_eventHandler(t,e){let i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;let a=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(a||i.changed)&&this.render(),this}_handleEvent(t,e,i){var a;let{_active:n=[],options:r}=this,o=this._getActiveElements(t,n,i,e),l=(0,s.ai)(t),h=(a=this._lastEvent,i&&"mouseout"!==t.type?l?a:t:null);i&&(this._lastEvent=null,(0,s.Q)(r.onHover,[t,o,this],this),l&&(0,s.Q)(r.onClick,[t,o,this],this));let d=!(0,s.ah)(o,n);return(d||e)&&(this._active=o,this._updateHoverStyles(o,n,e)),this._lastEvent=h,d}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;let a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,s)}}function tH(){return(0,s.F)(tN.instances,t=>t._plugins.invalidate())}function tj(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function tW(t,e,i,a,n,r){let{x:o,y:l,startAngle:h,pixelMargin:d,innerRadius:c}=e,u=Math.max(e.outerRadius+a+i-d,0),g=c>0?c+a+i+d:0,p=0,f=n-h;if(a){let m=((c>0?c-a:0)+(u>0?u-a:0))/2;p=(f-(0!==m?f*m/(m+a):f))/2}let b=Math.max(.001,f*u-i/s.P)/u,x=(f-b)/2,_=h+x+p,v=n-x-p,{outerStart:y,outerEnd:M,innerStart:w,innerEnd:k}=function(t,e,i,a){var n;let r=(n=t.options.borderRadius,(0,s.ak)(n,["outerStart","outerEnd","innerStart","innerEnd"])),o=(i-e)/2,l=Math.min(o,a*e/2),h=t=>(0,s.S)(t,0,Math.min(o,(i-Math.min(o,t))*a/2));return{outerStart:h(r.outerStart),outerEnd:h(r.outerEnd),innerStart:(0,s.S)(r.innerStart,0,l),innerEnd:(0,s.S)(r.innerEnd,0,l)}}(e,g,u,v-_),S=u-y,P=u-M,D=_+y/S,C=v-M/P,L=g+w,E=g+k,O=_+w/L,A=v-k/E;if(t.beginPath(),r){let T=(D+C)/2;if(t.arc(o,l,u,D,T),t.arc(o,l,u,T,C),M>0){let F=tj(P,C,o,l);t.arc(F.x,F.y,M,C,v+s.H)}let z=tj(E,v,o,l);if(t.lineTo(z.x,z.y),k>0){let R=tj(E,A,o,l);t.arc(R.x,R.y,k,v+s.H,A+Math.PI)}let I=(v-k/g+(_+w/g))/2;if(t.arc(o,l,g,v-k/g,I,!0),t.arc(o,l,g,I,_+w/g,!0),w>0){let V=tj(L,O,o,l);t.arc(V.x,V.y,w,O+Math.PI,_-s.H)}let B=tj(S,_,o,l);if(t.lineTo(B.x,B.y),y>0){let N=tj(S,D,o,l);t.arc(N.x,N.y,y,_-s.H,D)}}else t.moveTo(o,l),t.lineTo(Math.cos(D)*u+o,Math.sin(D)*u+l),t.lineTo(Math.cos(C)*u+o,Math.sin(C)*u+l);t.closePath()}function t$(t,e,i=e){t.lineCap=(0,s.v)(i.borderCapStyle,e.borderCapStyle),t.setLineDash((0,s.v)(i.borderDash,e.borderDash)),t.lineDashOffset=(0,s.v)(i.borderDashOffset,e.borderDashOffset),t.lineJoin=(0,s.v)(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=(0,s.v)(i.borderWidth,e.borderWidth),t.strokeStyle=(0,s.v)(i.borderColor,e.borderColor)}function tU(t,e,i){t.lineTo(i.x,i.y)}function tY(t,e,i={}){let s=t.length,{start:a=0,end:n=s-1}=i,{start:r,end:o}=e,l=Math.max(a,r),h=Math.min(n,o);return{count:s,start:l,loop:e.loop,ilen:ho&&n>o)?s+h-l:h-l}}function tQ(t,e,i,a){let n,r,o;let{points:l,options:h}=e,{count:d,start:c,loop:u,ilen:g}=tY(l,i,a),p=h.stepped?s.ar:h.tension||"monotone"===h.cubicInterpolationMode?s.as:tU,{move:f=!0,reverse:m}=a||{};for(n=0;n<=g;++n)(r=l[(c+(m?g-n:n))%d]).skip||(f?(t.moveTo(r.x,r.y),f=!1):p(t,o,r,m,h.stepped),o=r);return u&&p(t,o,r=l[(c+(m?g:0))%d],m,h.stepped),!!u}function tX(t,e,i,s){let a,n,r,o,l,h;let d=e.points,{count:c,start:u,ilen:g}=tY(d,i,s),{move:p=!0,reverse:f}=s||{},m=0,b=0,x=t=>(u+(f?g-t:t))%c,_=()=>{o!==l&&(t.lineTo(m,l),t.lineTo(m,o),t.lineTo(m,h))};for(p&&(n=d[x(0)],t.moveTo(n.x,n.y)),a=0;a<=g;++a){if((n=d[x(a)]).skip)continue;let v=n.x,y=n.y,M=0|v;M===r?(yl&&(l=y),m=(b*m+v)/++b):(_(),t.lineTo(v,y),r=M,b=0,o=l=y),h=y}_()}function tq(t){let e=t.options,i=e.borderDash&&e.borderDash.length,s=!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!i;return s?tX:tQ}let tG="function"==typeof Path2D;class tK extends td{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){let i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){let a=i.spanGaps?this._loop:this._fullLoop;(0,s.al)(this._points,i,t,a,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,s.am)(this,this.options.segment))}first(){let t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){let t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){let i,a;let n=this.options,r=t[e],o=this.points,l=(0,s.an)(this,{property:e,start:r,end:r});if(!l.length)return;let h=[],d=n.stepped?s.ao:n.tension||"monotone"===n.cubicInterpolationMode?s.ap:s.aq;for(i=0,a=l.length;i=s.T||(0,s.p)(n,o,l),f=(0,s.aj)(r,h+u,d+u);return p&&f}getCenterPoint(t){let{x:e,y:i,startAngle:s,endAngle:a,innerRadius:n,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:o,spacing:l}=this.options,h=(s+a)/2,d=(n+r+l+o)/2;return{x:e+Math.cos(h)*d,y:i+Math.sin(h)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){let{options:e,circumference:i}=this,a=(e.offset||0)/4,n=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>s.T?Math.floor(i/s.T):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let o=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(o)*a,Math.sin(o)*a);let l=1-Math.sin(Math.min(s.P,i||0)),h=a*l;t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,i,a,n){let{fullCircles:r,startAngle:o,circumference:l}=e,h=e.endAngle;if(r){tW(t,e,i,a,h,n);for(let d=0;dn?(d=n/h,t.arc(r,o,h,i+d,a-d,!0)):t.arc(r,o,n,i+s.H,a-s.H),t.closePath(),t.clip()}(t,e,g),r||(tW(t,e,i,a,g,n),t.stroke())}(t,this,h,n,r),t.restore()}},LineElement:tK,PointElement:class extends td{static id="point";static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){let s=this.options,{x:a,y:n}=this.getProps(["x","y"],i);return Math.pow(t-a,2)+Math.pow(e-n,2)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function t7(t){return t6[t%t6.length]}function t8(t){return t4[t%t4.length]}function t9(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function et(t){if(t._decimated){let e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function ee(t){t.data.datasets.forEach(t=>{et(t)})}function ei(t,e,i,a){if(a)return;let n=e[t],r=i[t];return"angle"===t&&(n=(0,s.ay)(n),r=(0,s.ay)(r)),{property:t,start:n,end:r}}function es(t,e,i){for(;e>t;e--){let s=i[e];if(!isNaN(s.x)&&!isNaN(s.y))break}return e}function ea(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function en(t,e){let i=[],a=!1;return(0,s.b)(t)?(a=!0,i=t):i=function(t,e){let{x:i=null,y:s=null}=t||{},a=e.points,n=[];return e.segments.forEach(({start:t,end:e})=>{e=es(t,e,a);let r=a[t],o=a[e];null!==s?(n.push({x:r.x,y:s}),n.push({x:o.x,y:s})):null!==i&&(n.push({x:i,y:r.y}),n.push({x:i,y:o.y}))}),n}(t,e),i.length?new tK({points:i,options:{tension:0},_loop:a,_fullLoop:a}):null}function er(t){return t&&!1!==t.fill}class eo{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){let{x:a,y:n,radius:r}=this;return e=e||{start:0,end:s.T},t.arc(a,n,r,e.end,e.start,!0),!i.bounds}interpolate(t){let{x:e,y:i,radius:s}=this,a=t.angle;return{x:e+Math.cos(a)*s,y:i+Math.sin(a)*s,angle:a}}}function el(t,e,i){let a=function(t){let{chart:e,fill:i,line:a}=t;if((0,s.g)(i))return function(t,e){let i=t.getDatasetMeta(e),s=i&&t.isDatasetVisible(e);return s?i.dataset:null}(e,i);if("stack"===i)return function(t){let{scale:e,index:i,line:a}=t,n=[],r=a.segments,o=a.points,l=function(t,e){let i=[],s=t.getMatchingVisibleMetas("line");for(let a=0;a{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}},eg=(t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class ep extends td{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let t=this.options.labels||{},e=(0,s.Q)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,i)=>t.sort(e,i,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let t,e;let{options:i,ctx:a}=this;if(!i.display){this.width=this.height=0;return}let n=i.labels,r=(0,s.a0)(n.font),o=r.size,l=this._computeTitleHeight(),{boxWidth:h,itemHeight:d}=eu(n,o);a.font=r.string,this.isHorizontal()?(t=this.maxWidth,e=this._fitRows(l,o,h,d)+10):(e=this.maxHeight,t=this._fitCols(l,r,h,d)+10),this.width=Math.min(t,i.maxWidth||this.maxWidth),this.height=Math.min(e,i.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){let{ctx:a,maxWidth:n,options:{labels:{padding:r}}}=this,o=this.legendHitBoxes=[],l=this.lineWidths=[0],h=s+r,d=t;a.textAlign="left",a.textBaseline="middle";let c=-1,u=-h;return this.legendItems.forEach((t,g)=>{let p=i+e/2+a.measureText(t.text).width;(0===g||l[l.length-1]+p+2*r>n)&&(d+=h,l[l.length-(g>0?0:1)]=0,u+=h,c++),o[g]={left:0,top:u,row:c,width:p,height:s},l[l.length-1]+=p+r}),d}_fitCols(t,e,i,s){let{ctx:a,maxHeight:n,options:{labels:{padding:r}}}=this,o=this.legendHitBoxes=[],l=this.columnSizes=[],h=n-t,d=r,c=0,u=0,g=0,p=0;return this.legendItems.forEach((t,n)=>{let{itemWidth:f,itemHeight:m}=function(t,e,i,s,a){var n;let r,o;let l=((r=s.text)&&"string"!=typeof r&&(r=r.reduce((t,e)=>t.length>e.length?t:e)),t+e.size/2+i.measureText(r).width),h=(n=e.lineHeight,o=a,"string"!=typeof s.text&&(o=ef(s,n)),o);return{itemWidth:l,itemHeight:h}}(i,e,a,t,s);n>0&&u+m+2*r>h&&(d+=c+r,l.push({width:c,height:u}),g+=c+r,p++,c=u=0),o[n]={left:g,top:u,col:p,width:f,height:m},c=Math.max(c,f),u+=m+r}),d+=c,l.push({width:c,height:u}),d}adjustHitBoxes(){if(!this.options.display)return;let t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:a},rtl:n}}=this,r=(0,s.az)(n,this.left,this.width);if(this.isHorizontal()){let o=0,l=(0,s.a2)(i,this.left+a,this.right-this.lineWidths[o]);for(let h of e)o!==h.row&&(o=h.row,l=(0,s.a2)(i,this.left+a,this.right-this.lineWidths[o])),h.top+=this.top+t+a,h.left=r.leftForLtr(r.x(l),h.width),l+=h.width+a}else{let d=0,c=(0,s.a2)(i,this.top+t+a,this.bottom-this.columnSizes[d].height);for(let u of e)u.col!==d&&(d=u.col,c=(0,s.a2)(i,this.top+t+a,this.bottom-this.columnSizes[d].height)),u.top=c,u.left+=this.left+a,u.left=r.leftForLtr(r.x(u.left),u.width),c+=u.height+a}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){let t=this.ctx;(0,s.Y)(t,this),this._draw(),(0,s.$)(t)}}_draw(){let t;let{options:e,columnSizes:i,lineWidths:a,ctx:n}=this,{align:r,labels:o}=e,l=s.d.color,h=(0,s.az)(e.rtl,this.left,this.width),d=(0,s.a0)(o.font),{padding:c}=o,u=d.size,g=u/2;this.drawTitle(),n.textAlign=h.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=d.string;let{boxWidth:p,boxHeight:f,itemHeight:m}=eu(o,u),b=function(t,e,i){if(isNaN(p)||p<=0||isNaN(f)||f<0)return;n.save();let a=(0,s.v)(i.lineWidth,1);if(n.fillStyle=(0,s.v)(i.fillStyle,l),n.lineCap=(0,s.v)(i.lineCap,"butt"),n.lineDashOffset=(0,s.v)(i.lineDashOffset,0),n.lineJoin=(0,s.v)(i.lineJoin,"miter"),n.lineWidth=a,n.strokeStyle=(0,s.v)(i.strokeStyle,l),n.setLineDash((0,s.v)(i.lineDash,[])),o.usePointStyle){let r={radius:f*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:a},d=h.xPlus(t,p/2);(0,s.aD)(n,r,d,e+g,o.pointStyleWidth&&p)}else{let c=e+Math.max((u-f)/2,0),m=h.leftForLtr(t,p),b=(0,s.aw)(i.borderRadius);n.beginPath(),Object.values(b).some(t=>0!==t)?(0,s.au)(n,{x:m,y:c,w:p,h:f,radius:b}):n.rect(m,c,p,f),n.fill(),0!==a&&n.stroke()}n.restore()},x=function(t,e,i){(0,s.Z)(n,i.text,t,e+m/2,d,{strikethrough:i.hidden,textAlign:h.textAlign(i.textAlign)})},_=this.isHorizontal(),v=this._computeTitleHeight();t=_?{x:(0,s.a2)(r,this.left+c,this.right-a[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:(0,s.a2)(r,this.top+v+c,this.bottom-i[0].height),line:0},(0,s.aA)(this.ctx,e.textDirection);let y=m+c;this.legendItems.forEach((l,u)=>{n.strokeStyle=l.fontColor,n.fillStyle=l.fontColor;let f=n.measureText(l.text).width,m=h.textAlign(l.textAlign||(l.textAlign=o.textAlign)),M=p+g+f,w=t.x,k=t.y;h.setWidth(this.width),_?u>0&&w+M+c>this.right&&(k=t.y+=y,t.line++,w=t.x=(0,s.a2)(r,this.left+c,this.right-a[t.line])):u>0&&k+y>this.bottom&&(w=t.x=w+i[t.line].width+c,t.line++,k=t.y=(0,s.a2)(r,this.top+v+c,this.bottom-i[t.line].height));let S=h.x(w);if(b(S,k,l),w=(0,s.aB)(m,w+p+g,_?w+M:this.right,e.rtl),x(h.x(w),k,l),_)t.x+=M+c;else if("string"!=typeof l.text){let P=d.lineHeight;t.y+=ef(l,P)}else t.y+=y}),(0,s.aC)(this.ctx,e.textDirection)}drawTitle(){let t;let e=this.options,i=e.title,a=(0,s.a0)(i.font),n=(0,s.E)(i.padding);if(!i.display)return;let r=(0,s.az)(e.rtl,this.left,this.width),o=this.ctx,l=i.position,h=a.size/2,d=n.top+h,c=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),t=this.top+d,c=(0,s.a2)(e.align,c,this.right-u);else{let g=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);t=d+(0,s.a2)(e.align,this.top,this.bottom-g-e.labels.padding-this._computeTitleHeight())}let p=(0,s.a2)(l,c,c+u);o.textAlign=r.textAlign((0,s.a1)(l)),o.textBaseline="middle",o.strokeStyle=i.color,o.fillStyle=i.color,o.font=a.string,(0,s.Z)(o,i.text,p,t,a)}_computeTitleHeight(){let t=this.options.title,e=(0,s.a0)(t.font),i=(0,s.E)(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,a,n;if((0,s.aj)(t,this.left,this.right)&&(0,s.aj)(e,this.top,this.bottom)){for(i=0,n=this.legendHitBoxes;i-1?t.split("\n"):t}function ey(t,e){let i=t.chart.ctx,{body:a,footer:n,title:r}=t,{boxWidth:o,boxHeight:l}=e,h=(0,s.a0)(e.bodyFont),d=(0,s.a0)(e.titleFont),c=(0,s.a0)(e.footerFont),u=r.length,g=n.length,p=a.length,f=(0,s.E)(e.padding),m=f.height,b=0,x=a.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(x+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*d.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),x){let _=e.displayColors?Math.max(l,h.lineHeight):h.lineHeight;m+=p*_+(x-p)*h.lineHeight+(x-1)*e.bodySpacing}g&&(m+=e.footerMarginTop+g*c.lineHeight+(g-1)*e.footerSpacing);let v=0,y=function(t){b=Math.max(b,i.measureText(t).width+v)};return i.save(),i.font=d.string,(0,s.F)(t.title,y),i.font=h.string,(0,s.F)(t.beforeBody.concat(t.afterBody),y),v=e.displayColors?o+2+e.boxPadding:0,(0,s.F)(a,t=>{(0,s.F)(t.before,y),(0,s.F)(t.lines,y),(0,s.F)(t.after,y)}),v=0,i.font=c.string,(0,s.F)(t.footer,y),i.restore(),b+=f.width,{width:b,height:m}}function eM(t,e,i){let s=i.yAlign||e.yAlign||function(t,e){let{y:i,height:s}=e;return it.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||function(t,e,i,s){let{x:a,width:n}=i,{width:r,chartArea:{left:o,right:l}}=t,h="center";return"center"===s?h=a<=(o+l)/2?"left":"right":a<=n/2?h="left":a>=r-n/2&&(h="right"),function(t,e,i,s){let{x:a,width:n}=s,r=i.caretSize+i.caretPadding;if("left"===t&&a+n+r>e.width||"right"===t&&a-n-r<0)return!0}(h,t,e,i)&&(h="center"),h}(t,e,i,s),yAlign:s}}function ew(t,e,i,a){let{caretSize:n,caretPadding:r,cornerRadius:o}=t,{xAlign:l,yAlign:h}=i,d=n+r,{topLeft:c,topRight:u,bottomLeft:g,bottomRight:p}=(0,s.aw)(o),f=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,l),m=function(t,e,i){let{y:s,height:a}=t;return"top"===e?s+=i:"bottom"===e?s-=a+i:s-=a/2,s}(e,h,d);return"center"===h?"left"===l?f+=d:"right"===l&&(f-=d):"left"===l?f-=Math.max(c,g)+n:"right"===l&&(f+=Math.max(u,p)+n),{x:(0,s.S)(f,0,a.width-e.width),y:(0,s.S)(m,0,a.height-e.height)}}function ek(t,e,i){let a=(0,s.E)(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-a.right:t.x+a.left}function eS(t,e){let i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}let eP={beforeTitle:s.aF,title(t){if(t.length>0){let e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex{let e={before:[],lines:[],after:[]},s=eS(i,t);e_(e.before,ev(eD(s,"beforeLabel",this,t))),e_(e.lines,eD(s,"label",this,t)),e_(e.after,ev(eD(s,"afterLabel",this,t))),a.push(e)}),a}getAfterBody(t,e){return e_([],ev(eD(e.callbacks,"afterBody",this,t)))}getFooter(t,e){let{callbacks:i}=e,s=eD(i,"beforeFooter",this,t),a=eD(i,"footer",this,t),n=eD(i,"afterFooter",this,t),r=[];return r=e_(r,ev(s)),r=e_(r,ev(a)),r=e_(r,ev(n))}_createItems(t){let e,i;let a=this._active,n=this.chart.data,r=[],o=[],l=[],h=[];for(e=0,i=a.length;et.filter(e,i,s,n))),t.itemSort&&(h=h.sort((e,i)=>t.itemSort(e,i,n))),(0,s.F)(h,e=>{let i=eS(t.callbacks,e);r.push(eD(i,"labelColor",this,e)),o.push(eD(i,"labelPointStyle",this,e)),l.push(eD(i,"labelTextColor",this,e))}),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=l,this.dataPoints=h,h}update(t,e){let i;let s=this.options.setContext(this.getContext()),a=this._active,n=[];if(a.length){let r=ex[s.position].call(this,a,this._eventPosition);n=this._createItems(s),this.title=this.getTitle(n,s),this.beforeBody=this.getBeforeBody(n,s),this.body=this.getBody(n,s),this.afterBody=this.getAfterBody(n,s),this.footer=this.getFooter(n,s);let o=this._size=ey(this,s),l=Object.assign({},r,o),h=eM(this.chart,s,l),d=ew(s,l,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,i={opacity:1,x:d.x,y:d.y,width:o.width,height:o.height,caretX:r.x,caretY:r.y}}else 0!==this.opacity&&(i={opacity:0});this._tooltipItems=n,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){let a=this.getCaretPosition(t,i,s);e.lineTo(a.x1,a.y1),e.lineTo(a.x2,a.y2),e.lineTo(a.x3,a.y3)}getCaretPosition(t,e,i){let a,n,r,o,l,h;let{xAlign:d,yAlign:c}=this,{caretSize:u,cornerRadius:g}=i,{topLeft:p,topRight:f,bottomLeft:m,bottomRight:b}=(0,s.aw)(g),{x:x,y:_}=t,{width:v,height:y}=e;return"center"===c?(l=_+y/2,"left"===d?(n=(a=x)-u,o=l+u,h=l-u):(n=(a=x+v)+u,o=l-u,h=l+u),r=a):(n="left"===d?x+Math.max(p,m)+u:"right"===d?x+v-Math.max(f,b)-u:this.caretX,"top"===c?(l=(o=_)-u,a=n-u,r=n+u):(l=(o=_+y)+u,a=n+u,r=n-u),h=o),{x1:a,x2:n,x3:r,y1:o,y2:l,y3:h}}drawTitle(t,e,i){let a,n,r;let o=this.title,l=o.length;if(l){let h=(0,s.az)(i.rtl,this.x,this.width);for(r=0,t.x=ek(this,i.titleAlign,i),e.textAlign=h.textAlign(i.titleAlign),e.textBaseline="middle",a=(0,s.a0)(i.titleFont),n=i.titleSpacing,e.fillStyle=i.titleColor,e.font=a.string;r0!==t)?(t.beginPath(),t.fillStyle=n.multiKeyBackground,(0,s.au)(t,{x:_,y:f,w:h,h:l,radius:y}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),(0,s.au)(t,{x:v,y:f+1,w:h-2,h:l-2,radius:y}),t.fill()):(t.fillStyle=n.multiKeyBackground,t.fillRect(_,f,h,l),t.strokeRect(_,f,h,l),t.fillStyle=r.backgroundColor,t.fillRect(v,f+1,h-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){let a,n,r,o,l,h,d;let{body:c}=this,{bodySpacing:u,bodyAlign:g,displayColors:p,boxHeight:f,boxWidth:m,boxPadding:b}=i,x=(0,s.a0)(i.bodyFont),_=x.lineHeight,v=0,y=(0,s.az)(i.rtl,this.x,this.width),M=function(i){e.fillText(i,y.x(t.x+v),t.y+_/2),t.y+=_+u},w=y.textAlign(g);for(e.textAlign=g,e.textBaseline="middle",e.font=x.string,t.x=ek(this,w,i),e.fillStyle=i.bodyColor,(0,s.F)(this.beforeBody,M),v=p&&"right"!==w?"center"===g?m/2+b:m+2+b:0,o=0,h=c.length;o0&&e.stroke()}_updateAnimationTarget(t){let e=this.chart,i=this.$animations,s=i&&i.x,a=i&&i.y;if(s||a){let n=ex[t.position].call(this,this._active,this._eventPosition);if(!n)return;let r=this._size=ey(this,t),o=Object.assign({},n,this._size),l=eM(e,t,o),h=ew(t,o,l,e);(s._to!==h.x||a._to!==h.y)&&(this.xAlign=l.xAlign,this.yAlign=l.yAlign,this.width=r.width,this.height=r.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){let e=this.options.setContext(this.getContext()),i=this.opacity;if(!i)return;this._updateAnimationTarget(e);let a={width:this.width,height:this.height},n={x:this.x,y:this.y};i=.001>Math.abs(i)?0:i;let r=(0,s.E)(e.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&o&&(t.save(),t.globalAlpha=i,this.drawBackground(n,t,a,e),(0,s.aA)(t,e.textDirection),n.y+=r.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),(0,s.aC)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){let i=this._active,a=t.map(({datasetIndex:t,index:e})=>{let i=this.chart.getDatasetMeta(t);if(!i)throw Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),n=!(0,s.ah)(i,a),r=this._positionChanged(a,e);(n||r)&&(this._active=a,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let a=this.options,n=this._active||[],r=this._getActiveElements(t,n,e,i),o=this._positionChanged(r,t),l=e||!(0,s.ah)(r,n)||o;return l&&(this._active=r,(a.enabled||a.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,i,s){let a=this.options;if("mouseout"===t.type)return[];if(!s)return e;let n=this.chart.getElementsAtEventForMode(t,a.mode,a,i);return a.reverse&&n.reverse(),n}_positionChanged(t,e){let{caretX:i,caretY:s,options:a}=this,n=ex[a.position].call(this,t,e);return!1!==n&&(i!==n.x||s!==n.y)}}var eL=Object.freeze({__proto__:null,Colors:{id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,i){let s;if(!i.enabled)return;let{options:{elements:a},data:{datasets:n}}=t.config;if(!i.forceOverride&&(t9(n)||a&&t9(a)))return;let r=(s=0,(e,i)=>{var a,n,r,o,l,h;let d=t.getDatasetMeta(i).controller;d instanceof P?(a=e,n=s,a.backgroundColor=a.data.map(()=>t7(n++)),s=n):d instanceof D?(r=e,o=s,r.backgroundColor=r.data.map(()=>t8(o++)),s=o):d&&(l=e,h=s,l.borderColor=t7(h),l.backgroundColor=t8(h),s=++h)});n.forEach(r)}},Decimation:{id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled){ee(t);return}let a=t.width;t.data.datasets.forEach((e,n)=>{let r;let{_data:o,indexAxis:l}=e,h=t.getDatasetMeta(n),d=o||e.data;if("y"===(0,s.a)([l,t.options.indexAxis])||!h.controller.supportsDecimation)return;let c=t.scales[h.xAxisID];if("linear"!==c.type&&"time"!==c.type||t.options.parsing)return;let{start:u,count:g}=function(t,e){let i;let a=e.length,n=0,{iScale:r}=t,{min:o,max:l,minDefined:h,maxDefined:d}=r.getUserBounds();return h&&(n=(0,s.S)((0,s.B)(e,r.axis,o).lo,0,a-1)),i=d?(0,s.S)((0,s.B)(e,r.axis,l).hi+1,n,a)-n:a-n,{start:n,count:i}}(h,d),p=i.threshold||4*a;if(g<=p){et(e);return}switch((0,s.k)(o)&&(e._data=d,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":r=function(t,e,i,s,a){let n,r,o,l,h;let d=a.samples||s;if(d>=i)return t.slice(e,e+i);let c=[],u=(i-2)/(d-2),g=0,p=e;for(n=0,c[g++]=t[p];no&&(o=l,r=t[f],h=f);c[g++]=r,p=h}return c[g++]=t[e+i-1],c}(d,u,g,a,i);break;case"min-max":r=function(t,e,i,a){let n,r,o,l,h,d,c,u,g,p,f=0,m=0,b=[],x=t[e].x,_=t[e+i-1].x,v=_-x;for(n=e;np&&(p=l,c=n),f=(m*f+r.x)/++m;else{let M=n-1;if(!(0,s.k)(d)&&!(0,s.k)(c)){let w=Math.min(d,c),k=Math.max(d,c);w!==u&&w!==M&&b.push({...t[w],x:f}),k!==u&&k!==M&&b.push({...t[k],x:f})}n>0&&M!==u&&b.push(t[M]),b.push(r),h=y,m=0,g=p=l,d=c=u=n}}return b}(d,u,g,a);break;default:throw Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=r})},destroy(t){ee(t)}},Filler:{id:"filler",afterDatasetsUpdate(t,e,i){let a,n,r,o;let l=(t.data.datasets||[]).length,h=[];for(n=0;n=i)&&n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}(r,n,l),chart:t,axis:a.controller.options.indexAxis,scale:a.vScale,line:r}),a.$filler=o,h.push(o);for(n=0;n=0;--r){let o=a[r].$filler;o&&(o.line.updateControlPoints(n,o.axis),s&&o.fill&&el(t.ctx,o,n))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;let s=t.getSortedVisibleDatasetMetas();for(let a=s.length-1;a>=0;--a){let n=s[a].$filler;er(n)&&el(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,i){let s=e.meta.$filler;er(s)&&"beforeDatasetDraw"===i.drawTime&&el(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},Legend:{id:"legend",_element:ep,start(t,e,i){let s=t.legend=new ep({ctx:t.ctx,options:i,chart:t});Y.configure(t,s,i),Y.addBox(t,s)},stop(t){Y.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){let s=t.legend;Y.configure(t,s,i),s.options=i},afterUpdate(t){let e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){let s=e.datasetIndex,a=i.chart;a.isDatasetVisible(s)?(a.hide(s),e.hidden=!0):(a.show(s),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:a,textAlign:n,color:r,useBorderRadius:o,borderRadius:l}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{let h=t.controller.getStyle(i?0:void 0),d=(0,s.E)(h.borderWidth);return{text:e[t.index].label,fillStyle:h.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:h.borderColor,pointStyle:a||h.pointStyle,rotation:h.rotation,textAlign:n||h.textAlign,borderRadius:o&&(l||h.borderRadius),datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}},SubTitle:{id:"subtitle",start(t,e,i){let s=new em({ctx:t.ctx,options:i,chart:t});Y.configure(t,s,i),Y.addBox(t,s),eb.set(t,s)},stop(t){Y.removeBox(t,eb.get(t)),eb.delete(t)},beforeUpdate(t,e,i){let s=eb.get(t);Y.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Title:{id:"title",_element:em,start(t,e,i){!function(t,e){let i=new em({ctx:t.ctx,options:e,chart:t});Y.configure(t,i,e),Y.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){let e=t.titleBlock;Y.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){let s=t.titleBlock;Y.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Tooltip:{id:"tooltip",_element:eC,positioners:ex,afterInit(t,e,i){i&&(t.tooltip=new eC({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){let e=t.tooltip;if(e&&e._willRender()){let i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){let i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:eP},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});let eE=(t,e,i,s)=>("string"==typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i),eO=(t,e)=>null===t?null:(0,s.S)(Math.round(t),0,e);function eA(t){let e=this.getLabels();return t>=0&&ta=e?a:t,o=t=>n=i?n:t;if(t){let l=(0,s.s)(a),h=(0,s.s)(n);l<0&&h<0?o(0):l>0&&h>0&&r(0)}if(a===n){let d=0===n?1:Math.abs(.05*n);o(n+d),t||r(a-d)}this.min=a,this.max=n}getTickLimit(){let t;let e=this.options.ticks,{maxTicksLimit:i,stepSize:s}=e;return s?(t=Math.ceil(this.max/s)-Math.floor(this.min/s)+1)>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3):(t=this.computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let t=this.options,e=t.ticks,i=this.getTickLimit();i=Math.max(2,i);let a={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},n=this._range||this,r=function(t,e){let i,a,n,r;let o=[],{bounds:l,step:h,min:d,max:c,precision:u,count:g,maxTicks:p,maxDigits:f,includeBounds:m}=t,b=h||1,x=p-1,{min:_,max:v}=e,y=!(0,s.k)(d),M=!(0,s.k)(c),w=!(0,s.k)(g),k=(v-_)/(f+1),S=(0,s.aH)((v-_)/x/b)*b;if(S<1e-14&&!y&&!M)return[{value:_},{value:v}];(r=Math.ceil(v/S)-Math.floor(_/S))>x&&(S=(0,s.aH)(r*S/x/b)*b),(0,s.k)(u)||(S=Math.ceil(S*(i=Math.pow(10,u)))/i),"ticks"===l?(a=Math.floor(_/S)*S,n=Math.ceil(v/S)*S):(a=_,n=v),y&&M&&h&&(0,s.aI)((c-d)/h,S/1e3)?(r=Math.round(Math.min((c-d)/S,p)),S=(c-d)/r,a=d,n=c):w?(a=y?d:a,S=((n=M?c:n)-a)/(r=g-1)):(r=(n-a)/S,r=(0,s.aJ)(r,Math.round(r),S/1e3)?Math.round(r):Math.ceil(r));let P=Math.max((0,s.aK)(S),(0,s.aK)(a));i=Math.pow(10,(0,s.k)(u)?P:u),a=Math.round(a*i)/i,n=Math.round(n*i)/i;let D=0;for(y&&(m&&a!==d?(o.push({value:d}),aMath.floor((0,s.aM)(t)),eI=(t,e)=>Math.pow(10,eR(t)+e);function eV(t){let e=t/Math.pow(10,eR(t));return 1===e}function eB(t,e,i){let s=Math.pow(10,i);return Math.ceil(e/s)-Math.floor(t/s)}class eN extends tb{static id="logarithmic";static defaults={ticks:{callback:s.aL.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){let i=eF.prototype.parse.apply(this,[t,e]);if(0===i){this._zero=!0;return}return(0,s.g)(i)&&i>0?i:null}determineDataLimits(){let{min:t,max:e}=this.getMinMax(!0);this.min=(0,s.g)(t)?Math.max(0,t):null,this.max=(0,s.g)(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!(0,s.g)(this._userMin)&&(this.min=t===eI(this.min,0)?eI(this.min,-1):eI(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:t,maxDefined:e}=this.getUserBounds(),i=this.min,s=this.max,a=e=>i=t?i:e,n=t=>s=e?s:t;i===s&&(i<=0?(a(1),n(10)):(a(eI(i,-1)),n(eI(s,1)))),i<=0&&a(eI(s,-1)),s<=0&&n(eI(i,1)),this.min=i,this.max=s}buildTicks(){let t=this.options,e={min:this._userMin,max:this._userMax},i=function(t,{min:e,max:i}){e=(0,s.O)(t.min,e);let a=[],n=eR(e),r=function(t,e){let i=eR(e-t);for(;eB(t,e,i)>10;)i++;for(;10>eB(t,e,i);)i--;return Math.min(i,eR(t))}(e,i),o=r<0?Math.pow(10,Math.abs(r)):1,l=Math.pow(10,r),h=n>r?Math.pow(10,n):0,d=Math.round((e-h)*o)/o,c=Math.floor((e-h)/l/10)*l*10,u=Math.floor((d-c)/Math.pow(10,r)),g=(0,s.O)(t.min,Math.round((h+c+u*Math.pow(10,r))*o)/o);for(;g=10?u=u<15?15:20:u++,u>=20&&(u=2,o=++r>=0?1:o),g=Math.round((h+c+u*Math.pow(10,r))*o)/o;let p=(0,s.O)(t.max,g);return a.push({value:p,major:eV(p),significand:u}),a}(e,this);return"ticks"===t.bounds&&(0,s.aG)(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return void 0===t?"0":(0,s.o)(t,this.chart.options.locale,this.options.ticks.format)}configure(){let t=this.min;super.configure(),this._startValue=(0,s.aM)(t),this._valueRange=(0,s.aM)(this.max)-(0,s.aM)(t)}getPixelForValue(t){return((void 0===t||0===t)&&(t=this.min),null===t||isNaN(t))?NaN:this.getPixelForDecimal(t===this.min?0:((0,s.aM)(t)-this._startValue)/this._valueRange)}getValueForPixel(t){let e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function eH(t){let e=t.ticks;if(e.display&&t.display){let i=(0,s.E)(e.backdropPadding);return(0,s.v)(e.font&&e.font.size,s.d.font.size)+i.height}return 0}function ej(t,e,i,s,a){return t===s||t===a?{start:e-i/2,end:e+i/2}:ta?{start:e-i,end:e}:{start:e,end:e+i}}function eW(t,e,i,a){let{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,s.T);else{let r=t.getPointPosition(0,e);n.moveTo(r.x,r.y);for(let o=1;ot,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let t=this._padding=(0,s.E)(eH(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){let{min:t,max:e}=this.getMinMax(!1);this.min=(0,s.g)(t)&&!isNaN(t)?t:0,this.max=(0,s.g)(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/eH(this.options))}generateTickLabels(t){eF.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{let i=(0,s.Q)(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){let t=this.options;t.display&&t.pointLabels.display?function(t){let e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),a=[],n=[],r=t._pointLabels.length,o=t.options.pointLabels,l=o.centerPointLabels?s.P/r:0;for(let h=0;he.r&&(o=(s.end-e.r)/n,t.r=Math.max(t.r,e.r+o)),a.starte.b&&(l=(a.end-e.b)/r,t.b=Math.max(t.b,e.b+l))}(i,e,m,x,_)}t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){let a=[],n=t._pointLabels.length,r=t.options,o=eH(r)/2,l=t.drawingArea,h=r.pointLabels.centerPointLabels?s.P/n:0;for(let d=0;d270||m<90)&&(c-=u),c),_=0===m||180===m?"center":m<180?"left":"right",v=(g=f.x,p=b.w,"right"===_?g-=p:"center"===_&&(g-=p/2),g);a.push({x:f.x,y:x,textAlign:_,left:v,top:x,right:v+b.w,bottom:x+b.h})}return a}(t,a,n)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){let e=s.T/(this._pointLabels.length||1),i=this.options.startAngle||0;return(0,s.ay)(t*e+(0,s.t)(i))}getDistanceFromCenterForValue(t){if((0,s.k)(t))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if((0,s.k)(t))return NaN;let e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){let e=this._pointLabels||[];if(t>=0&&t=0;n--){let r=a.setContext(t.getPointLabelContext(n)),o=(0,s.a0)(r.font),{x:l,y:h,textAlign:d,left:c,top:u,right:g,bottom:p}=t._pointLabelItems[n],{backdropColor:f}=r;if(!(0,s.k)(f)){let m=(0,s.aw)(r.borderRadius),b=(0,s.E)(r.backdropPadding);i.fillStyle=f;let x=c-b.left,_=u-b.top,v=g-c+b.width,y=p-u+b.height;Object.values(m).some(t=>0!==t)?(i.beginPath(),(0,s.au)(i,{x:x,y:_,w:v,h:y,radius:m}),i.fill()):i.fillRect(x,_,v,y)}(0,s.Z)(i,t._pointLabels[n],l,h+o.lineHeight/2,o,{color:r.color,textAlign:d,textBaseline:"middle"})}}(this,h),o.display&&this.ticks.forEach((t,i)=>{if(0!==i){e=this.getDistanceFromCenterForValue(t.value);let s=this.getContext(i),a=o.setContext(s),n=l.setContext(s);!function(t,e,i,s,a){let n=t.ctx,r=e.circular,{color:o,lineWidth:l}=e;(r||s)&&o&&l&&!(i<0)&&(n.save(),n.strokeStyle=o,n.lineWidth=l,n.setLineDash(a.dash),n.lineDashOffset=a.dashOffset,n.beginPath(),eW(t,i,r,s),n.closePath(),n.stroke(),n.restore())}(this,a,e,h,n)}}),r.display){for(a.save(),t=h-1;t>=0;t--){let d=r.setContext(this.getPointLabelContext(t)),{color:c,lineWidth:u}=d;u&&c&&(a.lineWidth=u,a.strokeStyle=c,a.setLineDash(d.borderDash),a.lineDashOffset=d.borderDashOffset,e=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),i=this.getPointPosition(t,e),a.beginPath(),a.moveTo(this.xCenter,this.yCenter),a.lineTo(i.x,i.y),a.stroke())}a.restore()}}drawBorder(){}drawLabels(){let t,e;let i=this.ctx,a=this.options,n=a.ticks;if(!n.display)return;let r=this.getIndexAngle(0);i.save(),i.translate(this.xCenter,this.yCenter),i.rotate(r),i.textAlign="center",i.textBaseline="middle",this.ticks.forEach((r,o)=>{if(0===o&&!a.reverse)return;let l=n.setContext(this.getContext(o)),h=(0,s.a0)(l.font);if(t=this.getDistanceFromCenterForValue(this.ticks[o].value),l.showLabelBackdrop){i.font=h.string,e=i.measureText(r.label).width,i.fillStyle=l.backdropColor;let d=(0,s.E)(l.backdropPadding);i.fillRect(-e/2-d.left,-t-h.size/2-d.top,e+d.width,h.size+d.height)}(0,s.Z)(i,r.label,0,-t,h,{color:l.color})}),i.restore()}drawTitle(){}}let eU={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},eY=Object.keys(eU);function eQ(t,e){return t-e}function eX(t,e){if((0,s.k)(e))return null;let i=t._adapter,{parser:a,round:n,isoWeekday:r}=t._parseOpts,o=e;return("function"==typeof a&&(o=a(o)),(0,s.g)(o)||(o="string"==typeof a?i.parse(o,a):i.parse(o)),null===o)?null:(n&&(o="week"===n&&((0,s.x)(r)||!0===r)?i.startOf(o,"isoWeek",r):i.startOf(o,n)),+o)}function eq(t,e,i,s){let a=eY.length;for(let n=eY.indexOf(t);n=e?i[a]:i[n];t[r]=!0}}else t[e]=!0}function eK(t,e,i){let s,a;let n=[],r={},o=e.length;for(s=0;s=0&&(e[n].major=!0);return e}(t,n,r,i):n}class eJ extends tb{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){let i=t.time||(t.time={}),a=this._adapter=new O._date(t.adapters.date);a.init(e),(0,s.ab)(i.displayFormats,a.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:eX(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,e=this._adapter,i=t.time.unit||"day",{min:a,max:n,minDefined:r,maxDefined:o}=this.getUserBounds();function l(t){r||isNaN(t.min)||(a=Math.min(a,t.min)),o||isNaN(t.max)||(n=Math.max(n,t.max))}r&&o||(l(this._getLabelBounds()),("ticks"!==t.bounds||"labels"!==t.ticks.source)&&l(this.getMinMax(!1))),a=(0,s.g)(a)&&!isNaN(a)?a:+e.startOf(Date.now(),i),n=(0,s.g)(n)&&!isNaN(n)?n:+e.endOf(Date.now(),i)+1,this.min=Math.min(a,n-1),this.max=Math.max(a+1,n)}_getLabelBounds(){let t=this.getLabelTimestamps(),e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){let t=this.options,e=t.time,i=t.ticks,a="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);let n=this.min,r=this.max,o=(0,s.aO)(a,n,r);return this._unit=e.unit||(i.autoSkip?eq(e.minUnit,this.min,this.max,this._getLabelCapacity(n)):function(t,e,i,s,a){for(let n=eY.length-1;n>=eY.indexOf(i);n--){let r=eY[n];if(eU[r].common&&t._adapter.diff(a,s,r)>=e-1)return r}return eY[i?eY.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=eY.indexOf(t)+1,i=eY.length;e+t.value))}initOffsets(t=[]){let e,i,a=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),a=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),n=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);let r=t.length<3?.5:.25;a=(0,s.S)(a,0,r),n=(0,s.S)(n,0,r),this._offsets={start:a,end:n,factor:1/(a+1+n)}}_generate(){let t,e;let i=this._adapter,a=this.min,n=this.max,r=this.options,o=r.time,l=o.unit||eq(o.minUnit,a,n,this._getLabelCapacity(a)),h=(0,s.v)(r.ticks.stepSize,1),d="week"===l&&o.isoWeekday,c=(0,s.x)(d)||!0===d,u={},g=a;if(c&&(g=+i.startOf(g,"isoWeek",d)),g=+i.startOf(g,c?"day":l),i.diff(n,a,l)>1e5*h)throw Error(a+" and "+n+" are too far apart with stepSize of "+h+" "+l);let p="data"===r.ticks.source&&this.getDataTimestamps();for(t=g,e=0;tt-e).map(t=>+t)}getLabelForValue(t){let e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,a){let n=this.options,r=n.ticks.callback;if(r)return(0,s.Q)(r,[t,e,i],this);let o=n.time.displayFormats,l=this._unit,h=this._majorUnit,d=l&&o[l],c=h&&o[h],u=i[e],g=h&&c&&u&&u.major;return this._adapter.format(t,a||(g?c:d))}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e0?r:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;let s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t=t[l].pos&&e<=t[h].pos&&({lo:l,hi:h}=(0,s.B)(t,"pos",e)),{pos:a,time:r}=t[l],{pos:n,time:o}=t[h]):(e>=t[l].time&&e<=t[h].time&&({lo:l,hi:h}=(0,s.B)(t,"time",e)),{time:a,pos:r}=t[l],{time:n,pos:o}=t[h]);let d=n-a;return d?r+(o-r)*(e-a)/d:r}class e0 extends eJ{static id="timeseries";static defaults=eJ.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=eZ(e,this.min),this._tableRange=eZ(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){let e,i,s;let{min:a,max:n}=this,r=[],o=[];for(e=0,i=t.length;e=a&&s<=n&&r.push(s);if(r.length<2)return[{time:a,pos:0},{time:n,pos:1}];for(e=0,i=r.length;ee.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:ez,LogarithmicScale:eN,RadialLinearScale:e$,TimeScale:eJ,TimeSeriesScale:e0});let e2=[C,t3,eL,e1]}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/ee8b1517-c2bace5e006cd9c6.js b/static/web/_next/static/chunks/ee8b1517-c2bace5e006cd9c6.js deleted file mode 100644 index 6f61d3e08..000000000 --- a/static/web/_next/static/chunks/ee8b1517-c2bace5e006cd9c6.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2196],{23148:function(t,e,i){i.d(e,{kL:function(){return tN},zX:function(){return e2}});var s=i(9676),a=new /*! - * Chart.js v4.1.0 - * https://www.chartjs.org - * (c) 2022 Chart.js Contributors - * Released under the MIT License - */ class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){let a=e.listeners[s],n=e.duration;a.forEach(s=>s({chart:t,initial:e.initial,numSteps:n,currentStep:Math.min(i-e.start,n)}))}_refresh(){this._request||(this._running=!0,this._request=s.r.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,s)=>{let a;if(!i.running||!i.items.length)return;let n=i.items,r=n.length-1,o=!1;for(;r>=0;--r)(a=n[r])._active?(a._total>i.duration&&(i.duration=a._total),a.tick(t),o=!0):(n[r]=n[n.length-1],n.pop());o&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){let e=this._charts,i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){let e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;let e=this._charts.get(t);return!!e&&!!e.running&&!!e.items.length}stop(t){let e=this._charts.get(t);if(!e||!e.items.length)return;let i=e.items,s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};let n="transparent",r={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){let a=(0,s.c)(t||n),r=a.valid&&(0,s.c)(e||n);return r&&r.valid?r.mix(a,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class o{constructor(t,e,i,a){let n=e[i];a=(0,s.a)([t.to,a,n,t.from]);let o=(0,s.a)([t.from,n,a]);this._active=!0,this._fn=t.fn||r[t.type||typeof o],this._easing=s.e[t.easing]||s.e.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=a,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);let a=this._target[this._prop],n=i-this._start,r=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=(0,s.a)([t.to,e,a,t.from]),this._from=(0,s.a)([t.from,a,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){let e;let i=t-this._start,s=this._duration,a=this._prop,n=this._from,r=this._loop,o=this._to;if(this._active=n!==o&&(r||i1?2-e:e,e=this._easing(Math.min(1,Math.max(0,e))),this._target[a]=this._fn(n,o,e)}wait(){let t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){let e=t?"res":"rej",i=this._promises||[];for(let s=0;s{let n=t[a];if(!(0,s.i)(n))return;let r={};for(let o of e)r[o]=n[o];((0,s.b)(n.properties)&&n.properties||[a]).forEach(t=>{t!==a&&i.has(t)||i.set(t,r)})})}_animateOptions(t,e){let i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(!i){t.options=e;return}return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i}(t,i);if(!s)return[];let a=this._createAnimations(s,i);return i.$shared&&(function(t,e){let i=[],s=Object.keys(e);for(let a=0;a{t.options=i},()=>{}),a}_createAnimations(t,e){let i;let s=this._properties,a=[],n=t.$animations||(t.$animations={}),r=Object.keys(e),l=Date.now();for(i=r.length-1;i>=0;--i){let h=r[i];if("$"===h.charAt(0))continue;if("options"===h){a.push(...this._animateOptions(t,e));continue}let d=e[h],c=n[h],u=s.get(h);if(c){if(u&&c.active()){c.update(u,d,l);continue}c.cancel()}if(!u||!u.duration){t[h]=d;continue}n[h]=c=new o(u,t,h,d),a.push(c)}return a}update(t,e){if(0===this._properties.size){Object.assign(t,e);return}let i=this._createAnimations(t,e);if(i.length)return a.add(this._chart,i),!0}}function h(t,e){let i=t&&t.options||{},s=i.reverse,a=void 0===i.min?e:0,n=void 0===i.max?e:0;return{start:s?n:a,end:s?a:n}}function d(t,e){let i,s;let a=[],n=t._getSortedDatasetMetas(e);for(i=0,s=n.length;i0||!i&&n<0)return a.index}return null}function p(t,e){let i;let{chart:s,_cachedMeta:a}=t,n=s._stacks||(s._stacks={}),{iScale:r,vScale:o,index:l}=a,h=r.axis,d=o.axis,c=`${r.id}.${o.id}.${a.stack||a.type}`,u=e.length;for(let p=0;pi[t].axis===e).shift()}function m(t,e){let i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s)for(let a of e=e||t._parsed){let n=a._stacks;if(!n||void 0===n[s]||void 0===n[s][i])return;delete n[s][i],void 0!==n[s]._visualValues&&void 0!==n[s]._visualValues[i]&&delete n[s]._visualValues[i]}}let b=t=>"reset"===t||"none"===t,x=(t,e)=>e?t:Object.assign({},t),_=(t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:d(i,!0),values:null};class v{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=u(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&m(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,e=this._cachedMeta,i=this.getDataset(),a=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,n=e.xAxisID=(0,s.v)(i.xAxisID,f(t,"x")),r=e.yAxisID=(0,s.v)(i.yAxisID,f(t,"y")),o=e.rAxisID=(0,s.v)(i.rAxisID,f(t,"r")),l=e.indexAxis,h=e.iAxisID=a(l,n,r,o),d=e.vAxisID=a(l,r,n,o);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(h),e.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&(0,s.u)(this._data,this),t._stacked&&m(t)}_dataCheck(){let t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if((0,s.i)(e))this._data=function(t){let e,i,s;let a=Object.keys(t),n=Array(a.length);for(e=0,i=a.length;e0&&r._parsed[t-1];if(!1===this._parsing)r._parsed=o,r._sorted=!0,n=o;else{n=(0,s.b)(o[t])?this.parseArrayData(r,o,t,e):(0,s.i)(o[t])?this.parseObjectData(r,o,t,e):this.parsePrimitiveData(r,o,t,e);let g=()=>null===a[d]||u&&a[d]e||g=0;--i)if(!p()){this.updateRangeFromParsed(c,t,a,d);break}}return c}getAllParsedValues(t){let e,i,a;let n=this._cachedMeta._parsed,r=[];for(e=0,i=n.length;e=0&&tthis.getContext(i,a,e),f=h.resolveNamedOptions(u,g,p,c);return f.$shared&&(f.$shared=l,n[r]=Object.freeze(x(f,l))),f}_resolveAnimations(t,e,i){let s;let a=this.chart,n=this._cachedDataOpts,r=`animation-${e}`,o=n[r];if(o)return o;if(!1!==a.options.animation){let h=this.chart.config,d=h.datasetAnimationScopeKeys(this._type,e),c=h.getOptionScopes(this.getDataset(),d);s=h.createResolver(c,this.getContext(t,i,e))}let u=new l(a,s&&s.animations);return s&&s._cacheable&&(n[r]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||b(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){let i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,a=this.getSharedOptions(i),n=this.includeOptions(e,a)||a!==s;return this.updateSharedOptions(a,e,i),{sharedOptions:a,includeOptions:n}}updateElement(t,e,i,s){b(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!b(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;let a=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(a)||a})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let e=this._data,i=this._cachedMeta.data;for(let[s,a,n]of this._syncList)this[s](a,n);this._syncList=[];let r=i.length,o=e.length,l=Math.min(o,r);l&&this.parse(0,l),o>r?this._insertElements(r,o-r,t):o{for(t.length+=e,s=t.length-1;s>=r;s--)t[s]=t[s-e]};for(o(n),s=t;sMath.abs(o)&&(l=o,h=r),e[i.axis]=h,e._custom={barStart:l,barEnd:h,start:a,end:n,min:r,max:o}}(t,e,i,a):e[i.axis]=i.parse(t,a),e}function M(t,e,i,s){let a,n,r,o;let l=t.iScale,h=t.vScale,d=l.getLabels(),c=l===h,u=[];for(a=i,n=i+s;a"spacing"!==t,_indexable:t=>"spacing"!==t};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let e=t.data;if(e.labels.length&&e.datasets.length){let{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map((e,a)=>{let n=t.getDatasetMeta(0),r=n.controller.getStyle(a);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,fontColor:s,lineWidth:r.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){let i=this.getDataset().data,a=this._cachedMeta;if(!1===this._parsing)a._parsed=i;else{let n,r,o=t=>+i[t];if((0,s.i)(i[t])){let{key:l="value"}=this._parsing;o=t=>+(0,s.f)(i[t],l)}for(n=t,r=t+e;n(0,s.p)(e,t,l,!0)?1:Math.max(a,a*i,n,n*i),p=(e,a,n)=>(0,s.p)(e,t,l,!0)?-1:Math.min(a,a*i,n,n*i),f=g(0,h,c),m=g(s.H,d,u),b=p(s.P,h,c),x=p(s.P+s.H,d,u);a=(f-b)/2,n=(m-x)/2,r=-(f+b)/2,o=-(m+x)/2}return{ratioX:a,ratioY:n,offsetX:r,offsetY:o}}(c,d,l),m=(i.width-r)/u,b=(i.height-r)/g,x=(0,s.n)(this.options.radius,Math.max(Math.min(m,b)/2,0)),_=(x-Math.max(x*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*x,this.offsetY=f*x,a.total=this.calculateTotal(),this.outerRadius=x-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*h,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){let i=this.options,a=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===a._parsed[t]||a.data[t].hidden?0:this.calculateCircumference(a._parsed[t]*n/s.T)}updateElements(t,e,i,s){let a;let n="reset"===s,r=this.chart,o=r.chartArea,l=r.options,h=l.animation,d=(o.left+o.right)/2,c=(o.top+o.bottom)/2,u=n&&h.animateScale,g=u?0:this.innerRadius,p=u?0:this.outerRadius,{sharedOptions:f,includeOptions:m}=this._getSharedOptions(e,s),b=this._getRotation();for(a=0;a0&&!isNaN(t)?s.T*(Math.abs(t)/e):0}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart,a=i.data.labels||[],n=(0,s.o)(e._parsed[t],i.options.locale);return{label:a[t]||"",value:n}}getMaxBorderWidth(t){let e,i,s,a,n,r=0,o=this.chart;if(!t){for(e=0,i=o.data.datasets.length;e{let n=t.getDatasetMeta(0),r=n.controller.getStyle(a);return{text:e,fillStyle:r.backgroundColor,strokeStyle:r.borderColor,fontColor:s,lineWidth:r.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart,a=i.data.labels||[],n=(0,s.o)(e._parsed[t].r,i.options.locale);return{label:a[t]||"",value:n}}parseObjectData(t,e,i,a){return s.y.bind(this)(t,e,i,a)}update(t){let e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){let t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,i)=>{let s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(se.max&&(e.max=s))}),e}_updateRadius(){let t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),a=Math.max(s/2,0),n=Math.max(i.cutoutPercentage?a/100*i.cutoutPercentage:1,0),r=(a-n)/t.getVisibleDatasetCount();this.outerRadius=a-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(t,e,i,a){let n;let r="reset"===a,o=this.chart,l=o.options,h=l.animation,d=this._cachedMeta.rScale,c=d.xCenter,u=d.yCenter,g=d.getIndexAngle(0)-.5*s.P,p=g,f=360/this.countVisibleElements();for(n=0;n{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?(0,s.t)(this.resolveDataElementOptions(t,e).angle||i):0}}var C=Object.freeze({__proto__:null,BarController:class extends v{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,i,s){return M(t,e,i,s)}parseArrayData(t,e,i,s){return M(t,e,i,s)}parseObjectData(t,e,i,a){let n,r,o,l;let{iScale:h,vScale:d}=t,{xAxisKey:c="x",yAxisKey:u="y"}=this._parsing,g="x"===h.axis?c:u,p="x"===d.axis?c:u,f=[];for(n=i,r=i+a;nt.x,n="left",r="right"):(a=t.baset.controller.options.grouped),n=i.options.stacked,r=[],o=t=>{let i=t.controller.getParsed(e),a=i&&i[t.vScale.axis];if((0,s.k)(a)||isNaN(a))return!0};for(let l of a)if(!(void 0!==e&&o(l))&&((!1===n||-1===r.indexOf(l.stack)||void 0===n&&void 0===l.stack)&&r.push(l.stack),l.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){let s=this._getStacks(t,i),a=void 0!==e?s.indexOf(e):-1;return -1===a?s.length-1:a}_getRuler(){let t,e;let i=this.options,a=this._cachedMeta,n=a.iScale,r=[];for(t=0,e=a.data.length;tt-e))}return t._cache.$bar}(r,t.type),l=r._length,h=()=>{32767!==a&&-32768!==a&&((0,s.h)(n)&&(l=Math.min(l,Math.abs(a-n)||l)),n=a)};for(e=0,i=o.length;e=h?1:-1))*l,g===h&&(b-=i/2);let _=a.getPixelForDecimal(0),v=a.getPixelForDecimal(1);e=(b=Math.max(Math.min(b,Math.max(_,v)),Math.min(_,v)))+i,n&&!u&&(d._stacks[a.axis]._visualValues[r]=a.getValueForPixel(e)-a.getValueForPixel(b))}if(b===a.getPixelForValue(h)){let y=(0,s.s)(i)*a.getLineWidthForValue(h)/2;b+=y,i-=y}return{size:i,base:b,head:e,center:e+i/2}}_calculateBarIndexPixels(t,e){let i,a;let n=e.scale,r=this.options,o=r.skipNull,l=(0,s.v)(r.maxBarThickness,1/0);if(e.grouped){let h=o?this._getStackCount(t):e.stackCount,d="flex"===r.barThickness?function(t,e,i,s){let a=e.pixels,n=a[t],r=t>0?a[t-1]:null,o=t=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:a}=e,n=this.getParsed(t),r=s.getLabelForValue(n.x),o=a.getLabelForValue(n.y),l=n._custom;return{label:i[t]||"",value:"("+r+", "+o+(l?", "+l:"")+")"}}update(t){let e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){let a="reset"===s,{iScale:n,vScale:r}=this._cachedMeta,{sharedOptions:o,includeOptions:l}=this._getSharedOptions(e,s),h=n.axis,d=r.axis;for(let c=e;c0&&this.getParsed(e-1);for(let y=0;y<_;++y){let M=t[y],w=b?M:{};if(y=x){w.skip=!0;continue}let k=this.getParsed(y),S=(0,s.k)(k[g]),P=w[u]=r.getPixelForValue(k[u],y),D=w[g]=n||S?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,k,l):k[g],y);w.skip=isNaN(P)||isNaN(D)||S,w.stop=y>0&&Math.abs(k[u]-v[u])>m,f&&(w.parsed=k,w.raw=h.data[y]),c&&(w.options=d||this.resolveDataElementOptions(y,M.active?"active":a)),b||this.updateElement(M,y,w,a),v=k}}getMaxOverflow(){let t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;let a=s[0].size(this.resolveDataElementOptions(0)),n=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,a,n)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PolarAreaController:D,PieController:class extends P{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},RadarController:class extends v{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){let e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,a){return s.y.bind(this)(t,e,i,a)}update(t){let e=this._cachedMeta,i=e.dataset,s=e.data||[],a=e.iScale.getLabels();if(i.points=s,"resize"!==t){let n=this.resolveDatasetElementOptions(t);this.options.showLine||(n.borderWidth=0);let r={_loop:!0,_fullLoop:a.length===s.length,options:n};this.updateElement(i,void 0,r,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){let a=this._cachedMeta.rScale,n="reset"===s;for(let r=e;r0&&this.getParsed(e-1);for(let v=e;v0&&Math.abs(M[g]-_[g])>b,m&&(w.parsed=M,w.raw=h.data[v]),u&&(w.options=c||this.resolveDataElementOptions(v,y.active?"active":a)),x||this.updateElement(y,v,w,a),_=M}this.updateSharedOptions(c,a,d)}getMaxOverflow(){let t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let i=0;for(let s=e.length-1;s>=0;--s)i=Math.max(i,e[s].size(this.resolveDataElementOptions(s))/2);return i>0&&i}let a=t.dataset,n=a.options&&a.options.borderWidth||0;if(!e.length)return n;let r=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,r,o)/2}}});function L(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}class E{static override(t){Object.assign(E.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return L()}parse(){return L()}format(){return L()}add(){return L()}diff(){return L()}startOf(){return L()}endOf(){return L()}}var O={_date:E};function A(t,e,i,a,n){let r=t.getSortedVisibleDatasetMetas(),o=i[e];for(let l=0,h=r.length;l{t[r](e[i],a)&&(n.push({element:t,datasetIndex:s,index:l}),o=o||t.inRange(e.x,e.y,a))}),s&&!o)?[]:n}var R={evaluateInteractionItems:A,modes:{index(t,e,i,a){let n=(0,s.z)(e,t),r=i.axis||"x",o=i.includeInvisible||!1,l=i.intersect?T(t,n,r,a,o):F(t,n,r,!1,a,o),h=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{let e=l[0].index,i=t.data[e];i&&!i.skip&&h.push({element:i,datasetIndex:t.index,index:e})}),h):[]},dataset(t,e,i,a){let n=(0,s.z)(e,t),r=i.axis||"xy",o=i.includeInvisible||!1,l=i.intersect?T(t,n,r,a,o):F(t,n,r,!1,a,o);if(l.length>0){let h=l[0].datasetIndex,d=t.getDatasetMeta(h).data;l=[];for(let c=0;ct.pos===e)}function B(t,e){return t.filter(t=>-1===I.indexOf(t.pos)&&t.box.axis===e)}function N(t,e){return t.sort((t,i)=>{let s=e?i:t,a=e?t:i;return s.weight===a.weight?s.index-a.index:s.weight-a.weight})}function H(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function j(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function W(t,e,i,a){let n,r,o,l,h,d;let c=[];for(n=0,r=t.length,h=0;n{s[t]=Math.max(e[t],i[t])}),s}(t?["left","right"]:["top","bottom"])}(o.horizontal,e));let{same:u,other:g}=function(t,e,i,a){let{pos:n,box:r}=i,o=t.maxPadding;if(!(0,s.i)(n)){i.size&&(t[n]-=i.size);let l=a[i.stack]||{size:0,count:1};l.size=Math.max(l.size,i.horizontal?r.height:r.width),i.size=l.size/l.count,t[n]+=i.size}r.getPadding&&j(o,r.getPadding());let h=Math.max(0,e.outerWidth-H(o,t,"left","right")),d=Math.max(0,e.outerHeight-H(o,t,"top","bottom")),c=h!==t.w,u=d!==t.h;return t.w=h,t.h=d,i.horizontal?{same:c,other:u}:{same:u,other:c}}(e,i,o,a);h|=u&&c.length,d=d||g,l.fullSize||c.push(o)}return h&&W(c,e,i,a)||d}function $(t,e,i,s,a){t.top=i,t.left=e,t.right=e+s,t.bottom=i+a,t.width=s,t.height=a}function U(t,e,i,a){let n=i.padding,{x:r,y:o}=e;for(let l of t){let h=l.box,d=a[l.stack]||{count:1,placed:0,weight:1},c=l.stackWeight/d.weight||1;if(l.horizontal){let u=e.w*c,g=d.size||h.height;(0,s.h)(d.start)&&(o=d.start),h.fullSize?$(h,n.left,o,i.outerWidth-n.right-n.left,g):$(h,e.left+d.placed,o,u,g),d.start=o,d.placed+=u,o=h.bottom}else{let p=e.h*c,f=d.size||h.width;(0,s.h)(d.start)&&(r=d.start),h.fullSize?$(h,r,n.top,f,i.outerHeight-n.bottom-n.top):$(h,r,e.top+d.placed,f,p),d.start=r,d.placed+=p,r=h.right}}e.x=r,e.y=o}var Y={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){let i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,a){if(!t)return;let n=(0,s.E)(t.options.layout.padding),r=Math.max(e-n.width,0),o=Math.max(i-n.height,0),l=function(t){let e=function(t){let e,i,s,a,n,r;let o=[];for(e=0,i=(t||[]).length;et.box.fullSize),!0),s=N(V(e,"left"),!0),a=N(V(e,"right")),n=N(V(e,"top"),!0),r=N(V(e,"bottom")),o=B(e,"x"),l=B(e,"y");return{fullSize:i,leftAndTop:s.concat(n),rightAndBottom:a.concat(l).concat(r).concat(o),chartArea:V(e,"chartArea"),vertical:s.concat(a).concat(l),horizontal:n.concat(r).concat(o)}}(t.boxes),h=l.vertical,d=l.horizontal;(0,s.F)(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});let c=h.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/c,hBoxMaxHeight:o/2}),g=Object.assign({},n);j(g,(0,s.E)(a));let p=Object.assign({maxPadding:g,w:r,h:o,x:n.left,y:n.top},n),f=function(t,e){let i,s,a;let n=function(t){let e={};for(let i of t){let{stack:s,pos:a,stackWeight:n}=i;if(!s||!I.includes(a))continue;let r=e[s]||(e[s]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=n}return e}(t),{vBoxMaxWidth:r,hBoxMaxHeight:o}=e;for(i=0,s=t.length;i{let i=e.box;Object.assign(i,t.chartArea),i.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Q{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class X extends Q{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}let q="$chartjs",G={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},K=t=>null===t||""===t,J=!!s.K&&{passive:!0};function Z(t,e,i){t.canvas.removeEventListener(e,i,J)}function tt(t,e){for(let i of t)if(i===e||i.contains(e))return!0}function te(t,e,i){let s=t.canvas,a=new MutationObserver(t=>{let e=!1;for(let a of t)e=(e=e||tt(a.addedNodes,s))&&!tt(a.removedNodes,s);e&&i()});return a.observe(document,{childList:!0,subtree:!0}),a}function ti(t,e,i){let s=t.canvas,a=new MutationObserver(t=>{let e=!1;for(let a of t)e=(e=e||tt(a.removedNodes,s))&&!tt(a.addedNodes,s);e&&i()});return a.observe(document,{childList:!0,subtree:!0}),a}let ts=new Map,ta=0;function tn(){let t=window.devicePixelRatio;t!==ta&&(ta=t,ts.forEach((e,i)=>{i.currentDevicePixelRatio!==t&&e()}))}function tr(t,e,i){let a=t.canvas,n=a&&(0,s.I)(a);if(!n)return;let r=(0,s.L)((t,e)=>{let s=n.clientWidth;i(t,e),s{let e=t[0],i=e.contentRect.width,s=e.contentRect.height;(0!==i||0!==s)&&r(i,s)});return o.observe(n),ts.size||window.addEventListener("resize",tn),ts.set(t,r),o}function to(t,e,i){i&&i.disconnect(),"resize"===e&&(ts.delete(t),ts.size||window.removeEventListener("resize",tn))}function tl(t,e,i){let a=t.canvas,n=(0,s.L)(e=>{null!==t.ctx&&i(function(t,e){let i=G[t.type]||t.type,{x:a,y:n}=(0,s.z)(t,e);return{type:i,chart:e,native:t,x:void 0!==a?a:null,y:void 0!==n?n:null}}(e,t))},t);return!function(t,e,i){t.addEventListener(e,i,J)}(a,e,n),n}class th extends Q{acquireContext(t,e){let i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(!function(t,e){let i=t.style,a=t.getAttribute("height"),n=t.getAttribute("width");if(t[q]={initial:{height:a,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",K(n)){let r=(0,s.J)(t,"width");void 0!==r&&(t.width=r)}if(K(a)){if(""===t.style.height)t.height=t.width/(e||2);else{let o=(0,s.J)(t,"height");void 0!==o&&(t.height=o)}}}(t,e),i):null}releaseContext(t){let e=t.canvas;if(!e[q])return!1;let i=e[q].initial;["height","width"].forEach(t=>{let a=i[t];(0,s.k)(a)?e.removeAttribute(t):e.setAttribute(t,a)});let a=i.style||{};return Object.keys(a).forEach(t=>{e.style[t]=a[t]}),e.width=e.width,delete e[q],!0}addEventListener(t,e,i){this.removeEventListener(t,e);let s=t.$proxies||(t.$proxies={});s[e]=(({attach:te,detach:ti,resize:tr})[e]||tl)(t,e,i)}removeEventListener(t,e){let i=t.$proxies||(t.$proxies={}),s=i[e];s&&((({attach:to,detach:to,resize:to})[e]||Z)(t,e,s),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,a){return(0,s.G)(t,e,i,a)}isAttached(t){let e=(0,s.I)(t);return!!(e&&e.isConnected)}}class td{static defaults={};static defaultRoutes=void 0;active=!1;tooltipPosition(t){let{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return(0,s.x)(this.x)&&(0,s.x)(this.y)}getProps(t,e){let i=this.$animations;if(!e||!i)return this;let s={};return t.forEach(t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]}),s}}function tc(t,e,i,a,n){let r,o,l;let h=(0,s.v)(a,0),d=Math.min((0,s.v)(n,t.length),t.length),c=0;for(i=Math.ceil(i),n&&(i=(r=n-a)/Math.floor(r/i)),l=h;l<0;)l=Math.round(h+ ++c*i);for(o=Math.max(h,0);o"left"===t?"right":"right"===t?"left":t,tg=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function tp(t,e){let i=[],s=t.length/e,a=t.length,n=0;for(;na?a:i,a=n&&i>a?i:a,{min:(0,s.O)(i,(0,s.O)(a,i)),max:(0,s.O)(a,(0,s.O)(i,a))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){let e=this._labelItems||(this._labelItems=this._computeLabelItems(t));return e}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,s.Q)(this.options.beforeUpdate,[this])}update(t,e,i){let{beginAtZero:a,grace:n,ticks:r}=this.options,o=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,s.R)(this,n,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=on)return function(t,e,i,s){let a,n=0,r=i[0];for(a=0,s=Math.ceil(s);an)return h}return Math.max(n,1)}(r,e,n);if(o>0){let u,g;let p=o>1?Math.round((h-l)/(o-1)):null;for(tc(e,d,c,(0,s.k)(p)?0:l-p,l),u=0,g=o-1;u=l||r<=1||!this.isHorizontal()){this.labelRotation=o;return}let d=this._getLabelSizes(),c=d.widest.width,u=d.highest.height,g=(0,s.S)(this.chart.width-c,0,this.maxWidth);c+6>(t=a.offset?this.maxWidth/r:g/(r-1))&&(t=g/(r-(a.offset?.5:1)),e=this.maxHeight-tf(a.grid)-n.padding-tm(a.title,this.chart.options.font),i=Math.sqrt(c*c+u*u),h=Math.max(o,Math.min(l,h=(0,s.U)(Math.min(Math.asin((0,s.S)((d.highest.height+6)/t,-1,1)),Math.asin((0,s.S)(e/i,-1,1))-Math.asin((0,s.S)(u/i,-1,1))))))),this.labelRotation=h}afterCalculateLabelRotation(){(0,s.Q)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){(0,s.Q)(this.options.beforeFit,[this])}fit(){let t={width:0,height:0},{chart:e,options:{ticks:i,title:a,grid:n}}=this,r=this._isVisible(),o=this.isHorizontal();if(r){let l=tm(a,e.options.font);if(o?(t.width=this.maxWidth,t.height=tf(n)+l):(t.height=this.maxHeight,t.width=tf(n)+l),i.display&&this.ticks.length){let{first:h,last:d,widest:c,highest:u}=this._getLabelSizes(),g=2*i.padding,p=(0,s.t)(this.labelRotation),f=Math.cos(p),m=Math.sin(p);if(o){let b=i.mirror?0:m*c.width+f*u.height;t.height=Math.min(this.maxHeight,t.height+b+g)}else{let x=i.mirror?0:f*c.width+m*u.height;t.width=Math.min(this.maxWidth,t.width+x+g)}this._calculatePadding(h,d,m,f)}}this._handleMargins(),o?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){let{ticks:{align:a,padding:n},position:r}=this.options,o=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){let h=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1),c=0,u=0;o?l?(c=s*t.width,u=i*e.height):(c=i*t.height,u=s*e.width):"start"===a?u=e.width:"end"===a?c=t.width:"inner"!==a&&(c=t.width/2,u=e.width/2),this.paddingLeft=Math.max((c-h+n)*this.width/(this.width-h),0),this.paddingRight=Math.max((u-d+n)*this.width/(this.width-d),0)}else{let g=e.height/2,p=t.height/2;"start"===a?(g=0,p=t.height):"end"===a&&(g=e.height,p=0),this.paddingTop=g+n,this.paddingBottom=p+n}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){(0,s.Q)(this.options.afterFit,[this])}isHorizontal(){let{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e{let i;let s=t.gc,a=s.length/2;if(a>e){for(i=0;i({width:m[t]||0,height:b[t]||0});return{first:M(0),last:M(e-1),widest:M(v),highest:M(y),widths:m,heights:b}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){let e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);let e=this._startPixel+t*this._length;return(0,s.W)(this._alignToPixels?(0,s.X)(this.chart,e,0):e)}getDecimalForPixel(t){let e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){var e,i;let a=this.ticks||[];if(t>=0&&to*a?o/i:l/a:l*a0}_computeGridLineItems(t){let e,i,a,n,r,o,l,h,d,c,u,g;let p=this.axis,f=this.chart,m=this.options,{grid:b,position:x,border:_}=m,v=b.offset,y=this.isHorizontal(),M=this.ticks,w=M.length+(v?1:0),k=tf(b),S=[],P=_.setContext(this.getContext()),D=P.display?P.width:0,C=D/2,L=function(t){return(0,s.X)(f,t,D)};if("top"===x)e=L(this.bottom),o=this.bottom-k,h=e-C,c=L(t.top)+C,g=t.bottom;else if("bottom"===x)e=L(this.top),c=t.top,g=L(t.bottom)-C,o=e+C,h=this.top+k;else if("left"===x)e=L(this.right),r=this.right-k,l=e-C,d=L(t.left)+C,u=t.right;else if("right"===x)e=L(this.left),d=t.left,u=L(t.right)-C,r=e+C,l=this.left+k;else if("x"===p){if("center"===x)e=L((t.top+t.bottom)/2+.5);else if((0,s.i)(x)){let E=Object.keys(x)[0],O=x[E];e=L(this.chart.scales[E].getPixelForValue(O))}c=t.top,g=t.bottom,h=(o=e+C)+k}else if("y"===p){if("center"===x)e=L((t.left+t.right)/2);else if((0,s.i)(x)){let A=Object.keys(x)[0],T=x[A];e=L(this.chart.scales[A].getPixelForValue(T))}l=(r=e-C)-k,d=t.left,u=t.right}let F=(0,s.v)(m.ticks.maxTicksLimit,w),z=Math.max(1,Math.ceil(w/F));for(i=0;io+1e-6)))return l}(this,i,v))&&(n=(0,s.X)(f,a,B),y?r=l=d=u=n:o=h=c=g=n,S.push({tx1:r,ty1:o,tx2:l,ty2:h,x1:d,y1:c,x2:u,y2:g,width:B,color:N,borderDash:H,borderDashOffset:j,tickWidth:W,tickColor:$,tickBorderDash:U,tickBorderDashOffset:Y}))}return this._ticksLength=w,this._borderValue=e,S}_computeLabelItems(t){let e,i,a,n,r,o,l,h,d,c,u;let g=this.axis,p=this.options,{position:f,ticks:m}=p,b=this.isHorizontal(),x=this.ticks,{align:_,crossAlign:v,padding:y,mirror:M}=m,w=tf(p.grid),k=w+y,S=M?-y:k,P=-(0,s.t)(this.labelRotation),D=[],C="middle";if("top"===f)r=this.bottom-S,o=this._getXAxisLabelAlignment();else if("bottom"===f)r=this.top+S,o=this._getXAxisLabelAlignment();else if("left"===f){let L=this._getYAxisLabelAlignment(w);o=L.textAlign,n=L.x}else if("right"===f){let E=this._getYAxisLabelAlignment(w);o=E.textAlign,n=E.x}else if("x"===g){if("center"===f)r=(t.top+t.bottom)/2+k;else if((0,s.i)(f)){let O=Object.keys(f)[0],A=f[O];r=this.chart.scales[O].getPixelForValue(A)+k}o=this._getXAxisLabelAlignment()}else if("y"===g){if("center"===f)n=(t.left+t.right)/2-k;else if((0,s.i)(f)){let T=Object.keys(f)[0],F=f[T];n=this.chart.scales[T].getPixelForValue(F)}o=this._getYAxisLabelAlignment(w).textAlign}"y"===g&&("start"===_?C="top":"end"===_&&(C="bottom"));let z=this._getLabelSizes();for(e=0,i=x.length;ee.value===t);if(s>=0){let a=e.setContext(this.getContext(s));return a.lineWidth}return 0}drawGrid(t){let e,i;let s=this.options.grid,a=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t)),r=(t,e,i)=>{i.width&&i.color&&(a.save(),a.lineWidth=i.width,a.strokeStyle=i.color,a.setLineDash(i.borderDash||[]),a.lineDashOffset=i.borderDashOffset,a.beginPath(),a.moveTo(t.x,t.y),a.lineTo(e.x,e.y),a.stroke(),a.restore())};if(s.display)for(e=0,i=n.length;e{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:a,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){let e,i;let s=this.chart.getSortedVisibleDatasetMetas(),a=this.axis+"AxisID",n=[];for(e=0,i=s.length;e{let a=i.split("."),n=a.pop(),r=[t].concat(a).join("."),o=e[i].split("."),l=o.pop(),h=o.join(".");s.d.route(r,n,h,l)})}(e,t.defaultRoutes),t.descriptors&&s.d.describe(e,t.descriptors)}(t,r,e),this.override&&s.d.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){let e=this.items,i=t.id,a=this.scope;i in e&&delete e[i],a&&i in s.d[a]&&(delete s.d[a][i],this.override&&delete s.a3[i])}}var t_=new class{constructor(){this.controllers=new tx(v,"datasets",!0),this.elements=new tx(td,"elements"),this.plugins=new tx(Object,"plugins"),this.scales=new tx(tb,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(e=>{let a=i||this._getRegistryForType(e);i||a.isForType(e)||a===this.plugins&&e.id?this._exec(t,a,e):(0,s.F)(e,e=>{let s=i||this._getRegistryForType(e);this._exec(t,s,e)})})}_exec(t,e,i){let a=(0,s.a5)(t);(0,s.Q)(i["before"+a],[],i),e[t](i),(0,s.Q)(i["after"+a],[],i)}_getRegistryForType(t){for(let e=0;et.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function ty(t,e){let i=s.d.datasets[t]||{},a=(e.datasets||{})[t]||{};return a.indexAxis||e.indexAxis||i.indexAxis||"x"}function tM(t,e){var i;if("x"===t||"y"===t||"r"===t||(t=e.axis||("top"===(i=e.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.length>1&&tM(t[0].toLowerCase(),e)))return t;throw Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function tw(t){let e=t.options||(t.options={});e.plugins=(0,s.v)(e.plugins,{}),e.scales=function(t,e){let i=s.a3[t.type]||{scales:{}},a=e.scales||{},n=ty(t.type,e),r=Object.create(null);return Object.keys(a).forEach(t=>{let e=a[t];if(!(0,s.i)(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);let o=tM(t,e),l=i.scales||{};r[t]=(0,s.ab)(Object.create(null),[{axis:o},e,l[o],l[o===n?"_index_":"_value_"]])}),t.data.datasets.forEach(i=>{let n=i.type||t.type,o=i.indexAxis||ty(n,e),l=s.a3[n]||{},h=l.scales||{};Object.keys(h).forEach(t=>{let e;let n=(e=t,"_index_"===t?e=o:"_value_"===t&&(e="x"===o?"y":"x"),e),l=i[n+"AxisID"]||n;r[l]=r[l]||Object.create(null),(0,s.ab)(r[l],[{axis:n},a[l],h[t]])})}),Object.keys(r).forEach(t=>{let e=r[t];(0,s.ab)(e,[s.d.scales[e.type],s.d.scale])}),r}(t,e)}function tk(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}let tS=new Map,tP=new Set;function tD(t,e){let i=tS.get(t);return i||(i=e(),tS.set(t,i),tP.add(i)),i}let tC=(t,e,i)=>{let a=(0,s.f)(e,i);void 0!==a&&t.add(a)};class tL{constructor(t){var e;this._config=((e=(e=t)||{}).data=tk(e.data),tw(e),e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=tk(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){let t=this._config;this.clearCache(),tw(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return tD(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return tD(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return tD(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){let e=t.id,i=this.type;return tD(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){let i=this._scopeCache,s=i.get(t);return(!s||e)&&(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){let{options:a,type:n}=this,r=this._cachedScopes(t,i),o=r.get(e);if(o)return o;let l=new Set;e.forEach(e=>{t&&(l.add(t),e.forEach(e=>tC(l,t,e))),e.forEach(t=>tC(l,a,t)),e.forEach(t=>tC(l,s.a3[n]||{},t)),e.forEach(t=>tC(l,s.d,t)),e.forEach(t=>tC(l,s.a6,t))});let h=Array.from(l);return 0===h.length&&h.push(Object.create(null)),tP.has(e)&&r.set(e,h),h}chartOptionScopes(){let{options:t,type:e}=this;return[t,s.a3[e]||{},s.d.datasets[e]||{},{type:e},s.d,s.a6]}resolveNamedOptions(t,e,i,a=[""]){let n={$shared:!0},{resolver:r,subPrefixes:o}=tE(this._resolverCache,t,a),l=r;if(function(t,e){let{isScriptable:i,isIndexable:a}=(0,s.aa)(t);for(let n of e){let r=i(n),o=a(n),l=(o||r)&&t[n];if(r&&((0,s.a7)(l)||tO(l))||o&&(0,s.b)(l))return!0}return!1}(r,e)){n.$shared=!1,i=(0,s.a7)(i)?i():i;let h=this.createResolver(t,i,o);l=(0,s.a8)(r,i,h)}for(let d of e)n[d]=l[d];return n}createResolver(t,e,i=[""],a){let{resolver:n}=tE(this._resolverCache,t,i);return(0,s.i)(e)?(0,s.a8)(n,e,void 0,a):n}}function tE(t,e,i){let a=t.get(e);a||(a=new Map,t.set(e,a));let n=i.join(),r=a.get(n);if(!r){let o=(0,s.a9)(e,i);r={resolver:o,subPrefixes:i.filter(t=>!t.toLowerCase().includes("hover"))},a.set(n,r)}return r}let tO=t=>(0,s.i)(t)&&Object.getOwnPropertyNames(t).reduce((e,i)=>e||(0,s.a7)(t[i]),!1),tA=["top","bottom","left","right","chartArea"];function tT(t,e){return"top"===t||"bottom"===t||-1===tA.indexOf(t)&&"x"===e}function tF(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function tz(t){let e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),(0,s.Q)(i&&i.onComplete,[t],e)}function tR(t){let e=t.chart,i=e.options.animation;(0,s.Q)(i&&i.onProgress,[t],e)}function tI(t){return(0,s.M)()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}let tV={},tB=t=>{let e=tI(t);return Object.values(tV).filter(t=>t.canvas===e).pop()};class tN{static defaults=s.d;static instances=tV;static overrides=s.a3;static registry=t_;static version="4.1.0";static getChart=tB;static register(...t){t_.add(...t),tH()}static unregister(...t){t_.remove(...t),tH()}constructor(t,e){let i=this.config=new tL(e),n=tI(t),r=tB(n);if(r)throw Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");let o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||(!(0,s.M)()||"undefined"!=typeof OffscreenCanvas&&n instanceof OffscreenCanvas?X:th)),this.platform.updateConfig(i);let l=this.platform.acquireContext(n,o.aspectRatio),h=l&&l.canvas,d=h&&h.height,c=h&&h.width;if(this.id=(0,s.ac)(),this.ctx=l,this.canvas=h,this.width=c,this.height=d,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new tv,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,s.ad)(t=>this.update(t),o.resizeDelay||0),this._dataChanges=[],tV[this.id]=this,!l||!h){console.error("Failed to create chart: can't acquire context from the given item");return}a.listen(this,"complete",tz),a.listen(this,"progress",tR),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:a,_aspectRatio:n}=this;return(0,s.k)(t)?e&&n?n:a?i/a:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return t_}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,s.ae)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,s.af)(this.canvas,this.ctx),this}stop(){return a.stop(this),this}resize(t,e){a.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){let i=this.options,a=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(a,t,e,n),o=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,(0,s.ae)(this,o,!0)&&(this.notifyPlugins("resize",{size:r}),(0,s.Q)(i.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){let t=this.options,e=t.scales||{};(0,s.F)(e,(t,e)=>{t.id=e})}buildOrUpdateScales(){let t=this.options,e=t.scales,i=this.scales,a=Object.keys(i).reduce((t,e)=>(t[e]=!1,t),{}),n=[];e&&(n=n.concat(Object.keys(e).map(t=>{let i=e[t],s=tM(t,i),a="r"===s,n="x"===s;return{options:i,dposition:a?"chartArea":n?"bottom":"left",dtype:a?"radialLinear":n?"category":"linear"}}))),(0,s.F)(n,e=>{let n=e.options,r=n.id,o=tM(r,n),l=(0,s.v)(n.type,e.dtype);(void 0===n.position||tT(n.position,o)!==tT(e.dposition))&&(n.position=e.dposition),a[r]=!0;let h=null;if(r in i&&i[r].type===l)h=i[r];else{let d=t_.getScale(l);i[(h=new d({id:r,type:l,ctx:this.ctx,chart:this})).id]=h}h.init(n,t)}),(0,s.F)(a,(t,e)=>{t||delete i[e]}),(0,s.F)(i,t=>{Y.configure(this,t,t.options),Y.addBox(this,t)})}_updateMetasets(){let t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((t,e)=>t.index-e.index),i>e){for(let s=e;se.length&&delete this._stacks,t.forEach((t,i)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){let t,e;let i=[],a=this.data.datasets;for(this._removeUnreferencedMetasets(),t=0,e=a.length;t{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let e=this.config;e.update();let i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;let n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let o=0,l=this.data.datasets.length;o{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(tF("z","_idx"));let{_active:c,_lastEvent:u}=this;u?this._eventHandler(u,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}_updateScales(){(0,s.F)(this.scales,t=>{Y.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(0,s.ag)(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(let{method:i,start:s,count:a}of e){let n="_removeElements"===i?-a:a;!function(t,e,i){let s=Object.keys(t);for(let a of s){let n=+a;if(n>=e){let r=t[a];delete t[a],(i>0||n>e)&&(t[n+i]=r)}}}(t,s,n)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let e=this.data.datasets.length,i=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),a=i(0);for(let n=1;nt.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Y.update(this,this.width,this.height,t);let e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],(0,s.F)(this.boxes,t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let e=0,i=this.data.datasets.length;e=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let e=this.ctx,i=t._clip,a=!i.disabled,n=function(t){let{xScale:e,yScale:i}=t;if(e&&i)return{left:e.left,right:e.right,top:i.top,bottom:i.bottom}}(t)||this.chartArea,r={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",r)&&(a&&(0,s.Y)(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),a&&(0,s.$)(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return(0,s.C)(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){let a=R.modes[e];return"function"==typeof a?a(this,t,i,s):[]}getDatasetMeta(t){let e=this.data.datasets[t],i=this._metasets,s=i.filter(t=>t&&t._dataset===e).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=(0,s.j)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let e=this.data.datasets[t];if(!e)return!1;let i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){let i=this.getDatasetMeta(t);i.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){let a=i?"show":"hide",n=this.getDatasetMeta(t),r=n.controller._resolveAnimations(void 0,a);(0,s.h)(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(n,{visible:i}),this.update(e=>e.datasetIndex===t?a:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){let e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),a.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,i,s),t[i]=s},a=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};(0,s.F)(this.options.events,t=>i(t,a))}bindResponsiveEvents(){let t;this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,s=(t,s)=>{i.addEventListener(this,t,s),e[t]=s},a=(t,s)=>{e[t]&&(i.removeEventListener(this,t,s),delete e[t])},n=(t,e)=>{this.canvas&&this.resize(t,e)},r=()=>{a("attach",r),this.attached=!0,this.resize(),s("resize",n),s("detach",t)};t=()=>{this.attached=!1,a("resize",n),this._stop(),this._resize(0,0),s("attach",r)},i.isAttached(this.canvas)?r():t()}unbindEvents(){(0,s.F)(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},(0,s.F)(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){let s,a,n;let r=i?"set":"remove";for("dataset"===e&&this.getDatasetMeta(t[0].datasetIndex).controller["_"+r+"DatasetHoverStyle"](),a=0,n=t.length;a{let i=this.getDatasetMeta(t);if(!i)throw Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),a=!(0,s.ah)(i,e);a&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter(e=>e.plugin.id===t).length}_updateHoverStyles(t,e,i){let s=this.options.hover,a=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),n=a(e,t),r=i?t:a(t,e);n.length&&this.updateHoverStyle(n,s.mode,!1),r.length&&s.mode&&this.updateHoverStyle(r,s.mode,!0)}_eventHandler(t,e){let i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;let a=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(a||i.changed)&&this.render(),this}_handleEvent(t,e,i){var a;let{_active:n=[],options:r}=this,o=this._getActiveElements(t,n,i,e),l=(0,s.ai)(t),h=(a=this._lastEvent,i&&"mouseout"!==t.type?l?a:t:null);i&&(this._lastEvent=null,(0,s.Q)(r.onHover,[t,o,this],this),l&&(0,s.Q)(r.onClick,[t,o,this],this));let d=!(0,s.ah)(o,n);return(d||e)&&(this._active=o,this._updateHoverStyles(o,n,e)),this._lastEvent=h,d}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;let a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,s)}}function tH(){return(0,s.F)(tN.instances,t=>t._plugins.invalidate())}function tj(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function tW(t,e,i,a,n,r){let{x:o,y:l,startAngle:h,pixelMargin:d,innerRadius:c}=e,u=Math.max(e.outerRadius+a+i-d,0),g=c>0?c+a+i+d:0,p=0,f=n-h;if(a){let m=((c>0?c-a:0)+(u>0?u-a:0))/2;p=(f-(0!==m?f*m/(m+a):f))/2}let b=Math.max(.001,f*u-i/s.P)/u,x=(f-b)/2,_=h+x+p,v=n-x-p,{outerStart:y,outerEnd:M,innerStart:w,innerEnd:k}=function(t,e,i,a){var n;let r=(n=t.options.borderRadius,(0,s.ak)(n,["outerStart","outerEnd","innerStart","innerEnd"])),o=(i-e)/2,l=Math.min(o,a*e/2),h=t=>(0,s.S)(t,0,Math.min(o,(i-Math.min(o,t))*a/2));return{outerStart:h(r.outerStart),outerEnd:h(r.outerEnd),innerStart:(0,s.S)(r.innerStart,0,l),innerEnd:(0,s.S)(r.innerEnd,0,l)}}(e,g,u,v-_),S=u-y,P=u-M,D=_+y/S,C=v-M/P,L=g+w,E=g+k,O=_+w/L,A=v-k/E;if(t.beginPath(),r){let T=(D+C)/2;if(t.arc(o,l,u,D,T),t.arc(o,l,u,T,C),M>0){let F=tj(P,C,o,l);t.arc(F.x,F.y,M,C,v+s.H)}let z=tj(E,v,o,l);if(t.lineTo(z.x,z.y),k>0){let R=tj(E,A,o,l);t.arc(R.x,R.y,k,v+s.H,A+Math.PI)}let I=(v-k/g+(_+w/g))/2;if(t.arc(o,l,g,v-k/g,I,!0),t.arc(o,l,g,I,_+w/g,!0),w>0){let V=tj(L,O,o,l);t.arc(V.x,V.y,w,O+Math.PI,_-s.H)}let B=tj(S,_,o,l);if(t.lineTo(B.x,B.y),y>0){let N=tj(S,D,o,l);t.arc(N.x,N.y,y,_-s.H,D)}}else t.moveTo(o,l),t.lineTo(Math.cos(D)*u+o,Math.sin(D)*u+l),t.lineTo(Math.cos(C)*u+o,Math.sin(C)*u+l);t.closePath()}function t$(t,e,i=e){t.lineCap=(0,s.v)(i.borderCapStyle,e.borderCapStyle),t.setLineDash((0,s.v)(i.borderDash,e.borderDash)),t.lineDashOffset=(0,s.v)(i.borderDashOffset,e.borderDashOffset),t.lineJoin=(0,s.v)(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=(0,s.v)(i.borderWidth,e.borderWidth),t.strokeStyle=(0,s.v)(i.borderColor,e.borderColor)}function tU(t,e,i){t.lineTo(i.x,i.y)}function tY(t,e,i={}){let s=t.length,{start:a=0,end:n=s-1}=i,{start:r,end:o}=e,l=Math.max(a,r),h=Math.min(n,o);return{count:s,start:l,loop:e.loop,ilen:ho&&n>o)?s+h-l:h-l}}function tQ(t,e,i,a){let n,r,o;let{points:l,options:h}=e,{count:d,start:c,loop:u,ilen:g}=tY(l,i,a),p=h.stepped?s.ar:h.tension||"monotone"===h.cubicInterpolationMode?s.as:tU,{move:f=!0,reverse:m}=a||{};for(n=0;n<=g;++n)(r=l[(c+(m?g-n:n))%d]).skip||(f?(t.moveTo(r.x,r.y),f=!1):p(t,o,r,m,h.stepped),o=r);return u&&p(t,o,r=l[(c+(m?g:0))%d],m,h.stepped),!!u}function tX(t,e,i,s){let a,n,r,o,l,h;let d=e.points,{count:c,start:u,ilen:g}=tY(d,i,s),{move:p=!0,reverse:f}=s||{},m=0,b=0,x=t=>(u+(f?g-t:t))%c,_=()=>{o!==l&&(t.lineTo(m,l),t.lineTo(m,o),t.lineTo(m,h))};for(p&&(n=d[x(0)],t.moveTo(n.x,n.y)),a=0;a<=g;++a){if((n=d[x(a)]).skip)continue;let v=n.x,y=n.y,M=0|v;M===r?(yl&&(l=y),m=(b*m+v)/++b):(_(),t.lineTo(v,y),r=M,b=0,o=l=y),h=y}_()}function tq(t){let e=t.options,i=e.borderDash&&e.borderDash.length,s=!t._decimated&&!t._loop&&!e.tension&&"monotone"!==e.cubicInterpolationMode&&!e.stepped&&!i;return s?tX:tQ}let tG="function"==typeof Path2D;class tK extends td{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){let i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){let a=i.spanGaps?this._loop:this._fullLoop;(0,s.al)(this._points,i,t,a,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,s.am)(this,this.options.segment))}first(){let t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){let t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){let i,a;let n=this.options,r=t[e],o=this.points,l=(0,s.an)(this,{property:e,start:r,end:r});if(!l.length)return;let h=[],d=n.stepped?s.ao:n.tension||"monotone"===n.cubicInterpolationMode?s.ap:s.aq;for(i=0,a=l.length;i=s.T||(0,s.p)(n,o,l),f=(0,s.aj)(r,h+u,d+u);return p&&f}getCenterPoint(t){let{x:e,y:i,startAngle:s,endAngle:a,innerRadius:n,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:o,spacing:l}=this.options,h=(s+a)/2,d=(n+r+l+o)/2;return{x:e+Math.cos(h)*d,y:i+Math.sin(h)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){let{options:e,circumference:i}=this,a=(e.offset||0)/4,n=(e.spacing||0)/2,r=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>s.T?Math.floor(i/s.T):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let o=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(o)*a,Math.sin(o)*a);let l=1-Math.sin(Math.min(s.P,i||0)),h=a*l;t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,i,a,n){let{fullCircles:r,startAngle:o,circumference:l}=e,h=e.endAngle;if(r){tW(t,e,i,a,h,n);for(let d=0;dn?(d=n/h,t.arc(r,o,h,i+d,a-d,!0)):t.arc(r,o,n,i+s.H,a-s.H),t.closePath(),t.clip()}(t,e,g),r||(tW(t,e,i,a,g,n),t.stroke())}(t,this,h,n,r),t.restore()}},LineElement:tK,PointElement:class extends td{static id="point";static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){let s=this.options,{x:a,y:n}=this.getProps(["x","y"],i);return Math.pow(t-a,2)+Math.pow(e-n,2)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function t7(t){return t6[t%t6.length]}function t8(t){return t4[t%t4.length]}function t9(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function et(t){if(t._decimated){let e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function ee(t){t.data.datasets.forEach(t=>{et(t)})}function ei(t,e,i,a){if(a)return;let n=e[t],r=i[t];return"angle"===t&&(n=(0,s.ay)(n),r=(0,s.ay)(r)),{property:t,start:n,end:r}}function es(t,e,i){for(;e>t;e--){let s=i[e];if(!isNaN(s.x)&&!isNaN(s.y))break}return e}function ea(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function en(t,e){let i=[],a=!1;return(0,s.b)(t)?(a=!0,i=t):i=function(t,e){let{x:i=null,y:s=null}=t||{},a=e.points,n=[];return e.segments.forEach(({start:t,end:e})=>{e=es(t,e,a);let r=a[t],o=a[e];null!==s?(n.push({x:r.x,y:s}),n.push({x:o.x,y:s})):null!==i&&(n.push({x:i,y:r.y}),n.push({x:i,y:o.y}))}),n}(t,e),i.length?new tK({points:i,options:{tension:0},_loop:a,_fullLoop:a}):null}function er(t){return t&&!1!==t.fill}class eo{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){let{x:a,y:n,radius:r}=this;return e=e||{start:0,end:s.T},t.arc(a,n,r,e.end,e.start,!0),!i.bounds}interpolate(t){let{x:e,y:i,radius:s}=this,a=t.angle;return{x:e+Math.cos(a)*s,y:i+Math.sin(a)*s,angle:a}}}function el(t,e,i){let a=function(t){let{chart:e,fill:i,line:a}=t;if((0,s.g)(i))return function(t,e){let i=t.getDatasetMeta(e),s=i&&t.isDatasetVisible(e);return s?i.dataset:null}(e,i);if("stack"===i)return function(t){let{scale:e,index:i,line:a}=t,n=[],r=a.segments,o=a.points,l=function(t,e){let i=[],s=t.getMatchingVisibleMetas("line");for(let a=0;a{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}},eg=(t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class ep extends td{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let t=this.options.labels||{},e=(0,s.Q)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,i)=>t.sort(e,i,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let t,e;let{options:i,ctx:a}=this;if(!i.display){this.width=this.height=0;return}let n=i.labels,r=(0,s.a0)(n.font),o=r.size,l=this._computeTitleHeight(),{boxWidth:h,itemHeight:d}=eu(n,o);a.font=r.string,this.isHorizontal()?(t=this.maxWidth,e=this._fitRows(l,o,h,d)+10):(e=this.maxHeight,t=this._fitCols(l,r,h,d)+10),this.width=Math.min(t,i.maxWidth||this.maxWidth),this.height=Math.min(e,i.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){let{ctx:a,maxWidth:n,options:{labels:{padding:r}}}=this,o=this.legendHitBoxes=[],l=this.lineWidths=[0],h=s+r,d=t;a.textAlign="left",a.textBaseline="middle";let c=-1,u=-h;return this.legendItems.forEach((t,g)=>{let p=i+e/2+a.measureText(t.text).width;(0===g||l[l.length-1]+p+2*r>n)&&(d+=h,l[l.length-(g>0?0:1)]=0,u+=h,c++),o[g]={left:0,top:u,row:c,width:p,height:s},l[l.length-1]+=p+r}),d}_fitCols(t,e,i,s){let{ctx:a,maxHeight:n,options:{labels:{padding:r}}}=this,o=this.legendHitBoxes=[],l=this.columnSizes=[],h=n-t,d=r,c=0,u=0,g=0,p=0;return this.legendItems.forEach((t,n)=>{let{itemWidth:f,itemHeight:m}=function(t,e,i,s,a){var n;let r,o;let l=((r=s.text)&&"string"!=typeof r&&(r=r.reduce((t,e)=>t.length>e.length?t:e)),t+e.size/2+i.measureText(r).width),h=(n=e.lineHeight,o=a,"string"!=typeof s.text&&(o=ef(s,n)),o);return{itemWidth:l,itemHeight:h}}(i,e,a,t,s);n>0&&u+m+2*r>h&&(d+=c+r,l.push({width:c,height:u}),g+=c+r,p++,c=u=0),o[n]={left:g,top:u,col:p,width:f,height:m},c=Math.max(c,f),u+=m+r}),d+=c,l.push({width:c,height:u}),d}adjustHitBoxes(){if(!this.options.display)return;let t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:a},rtl:n}}=this,r=(0,s.az)(n,this.left,this.width);if(this.isHorizontal()){let o=0,l=(0,s.a2)(i,this.left+a,this.right-this.lineWidths[o]);for(let h of e)o!==h.row&&(o=h.row,l=(0,s.a2)(i,this.left+a,this.right-this.lineWidths[o])),h.top+=this.top+t+a,h.left=r.leftForLtr(r.x(l),h.width),l+=h.width+a}else{let d=0,c=(0,s.a2)(i,this.top+t+a,this.bottom-this.columnSizes[d].height);for(let u of e)u.col!==d&&(d=u.col,c=(0,s.a2)(i,this.top+t+a,this.bottom-this.columnSizes[d].height)),u.top=c,u.left+=this.left+a,u.left=r.leftForLtr(r.x(u.left),u.width),c+=u.height+a}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){let t=this.ctx;(0,s.Y)(t,this),this._draw(),(0,s.$)(t)}}_draw(){let t;let{options:e,columnSizes:i,lineWidths:a,ctx:n}=this,{align:r,labels:o}=e,l=s.d.color,h=(0,s.az)(e.rtl,this.left,this.width),d=(0,s.a0)(o.font),{padding:c}=o,u=d.size,g=u/2;this.drawTitle(),n.textAlign=h.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=d.string;let{boxWidth:p,boxHeight:f,itemHeight:m}=eu(o,u),b=function(t,e,i){if(isNaN(p)||p<=0||isNaN(f)||f<0)return;n.save();let a=(0,s.v)(i.lineWidth,1);if(n.fillStyle=(0,s.v)(i.fillStyle,l),n.lineCap=(0,s.v)(i.lineCap,"butt"),n.lineDashOffset=(0,s.v)(i.lineDashOffset,0),n.lineJoin=(0,s.v)(i.lineJoin,"miter"),n.lineWidth=a,n.strokeStyle=(0,s.v)(i.strokeStyle,l),n.setLineDash((0,s.v)(i.lineDash,[])),o.usePointStyle){let r={radius:f*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:a},d=h.xPlus(t,p/2);(0,s.aD)(n,r,d,e+g,o.pointStyleWidth&&p)}else{let c=e+Math.max((u-f)/2,0),m=h.leftForLtr(t,p),b=(0,s.aw)(i.borderRadius);n.beginPath(),Object.values(b).some(t=>0!==t)?(0,s.au)(n,{x:m,y:c,w:p,h:f,radius:b}):n.rect(m,c,p,f),n.fill(),0!==a&&n.stroke()}n.restore()},x=function(t,e,i){(0,s.Z)(n,i.text,t,e+m/2,d,{strikethrough:i.hidden,textAlign:h.textAlign(i.textAlign)})},_=this.isHorizontal(),v=this._computeTitleHeight();t=_?{x:(0,s.a2)(r,this.left+c,this.right-a[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:(0,s.a2)(r,this.top+v+c,this.bottom-i[0].height),line:0},(0,s.aA)(this.ctx,e.textDirection);let y=m+c;this.legendItems.forEach((l,u)=>{n.strokeStyle=l.fontColor,n.fillStyle=l.fontColor;let f=n.measureText(l.text).width,m=h.textAlign(l.textAlign||(l.textAlign=o.textAlign)),M=p+g+f,w=t.x,k=t.y;h.setWidth(this.width),_?u>0&&w+M+c>this.right&&(k=t.y+=y,t.line++,w=t.x=(0,s.a2)(r,this.left+c,this.right-a[t.line])):u>0&&k+y>this.bottom&&(w=t.x=w+i[t.line].width+c,t.line++,k=t.y=(0,s.a2)(r,this.top+v+c,this.bottom-i[t.line].height));let S=h.x(w);if(b(S,k,l),w=(0,s.aB)(m,w+p+g,_?w+M:this.right,e.rtl),x(h.x(w),k,l),_)t.x+=M+c;else if("string"!=typeof l.text){let P=d.lineHeight;t.y+=ef(l,P)}else t.y+=y}),(0,s.aC)(this.ctx,e.textDirection)}drawTitle(){let t;let e=this.options,i=e.title,a=(0,s.a0)(i.font),n=(0,s.E)(i.padding);if(!i.display)return;let r=(0,s.az)(e.rtl,this.left,this.width),o=this.ctx,l=i.position,h=a.size/2,d=n.top+h,c=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),t=this.top+d,c=(0,s.a2)(e.align,c,this.right-u);else{let g=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);t=d+(0,s.a2)(e.align,this.top,this.bottom-g-e.labels.padding-this._computeTitleHeight())}let p=(0,s.a2)(l,c,c+u);o.textAlign=r.textAlign((0,s.a1)(l)),o.textBaseline="middle",o.strokeStyle=i.color,o.fillStyle=i.color,o.font=a.string,(0,s.Z)(o,i.text,p,t,a)}_computeTitleHeight(){let t=this.options.title,e=(0,s.a0)(t.font),i=(0,s.E)(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,a,n;if((0,s.aj)(t,this.left,this.right)&&(0,s.aj)(e,this.top,this.bottom)){for(i=0,n=this.legendHitBoxes;i-1?t.split("\n"):t}function ey(t,e){let i=t.chart.ctx,{body:a,footer:n,title:r}=t,{boxWidth:o,boxHeight:l}=e,h=(0,s.a0)(e.bodyFont),d=(0,s.a0)(e.titleFont),c=(0,s.a0)(e.footerFont),u=r.length,g=n.length,p=a.length,f=(0,s.E)(e.padding),m=f.height,b=0,x=a.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);if(x+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*d.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),x){let _=e.displayColors?Math.max(l,h.lineHeight):h.lineHeight;m+=p*_+(x-p)*h.lineHeight+(x-1)*e.bodySpacing}g&&(m+=e.footerMarginTop+g*c.lineHeight+(g-1)*e.footerSpacing);let v=0,y=function(t){b=Math.max(b,i.measureText(t).width+v)};return i.save(),i.font=d.string,(0,s.F)(t.title,y),i.font=h.string,(0,s.F)(t.beforeBody.concat(t.afterBody),y),v=e.displayColors?o+2+e.boxPadding:0,(0,s.F)(a,t=>{(0,s.F)(t.before,y),(0,s.F)(t.lines,y),(0,s.F)(t.after,y)}),v=0,i.font=c.string,(0,s.F)(t.footer,y),i.restore(),b+=f.width,{width:b,height:m}}function eM(t,e,i){let s=i.yAlign||e.yAlign||function(t,e){let{y:i,height:s}=e;return it.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||function(t,e,i,s){let{x:a,width:n}=i,{width:r,chartArea:{left:o,right:l}}=t,h="center";return"center"===s?h=a<=(o+l)/2?"left":"right":a<=n/2?h="left":a>=r-n/2&&(h="right"),function(t,e,i,s){let{x:a,width:n}=s,r=i.caretSize+i.caretPadding;if("left"===t&&a+n+r>e.width||"right"===t&&a-n-r<0)return!0}(h,t,e,i)&&(h="center"),h}(t,e,i,s),yAlign:s}}function ew(t,e,i,a){let{caretSize:n,caretPadding:r,cornerRadius:o}=t,{xAlign:l,yAlign:h}=i,d=n+r,{topLeft:c,topRight:u,bottomLeft:g,bottomRight:p}=(0,s.aw)(o),f=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,l),m=function(t,e,i){let{y:s,height:a}=t;return"top"===e?s+=i:"bottom"===e?s-=a+i:s-=a/2,s}(e,h,d);return"center"===h?"left"===l?f+=d:"right"===l&&(f-=d):"left"===l?f-=Math.max(c,g)+n:"right"===l&&(f+=Math.max(u,p)+n),{x:(0,s.S)(f,0,a.width-e.width),y:(0,s.S)(m,0,a.height-e.height)}}function ek(t,e,i){let a=(0,s.E)(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-a.right:t.x+a.left}function eS(t,e){let i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}let eP={beforeTitle:s.aF,title(t){if(t.length>0){let e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex{let e={before:[],lines:[],after:[]},s=eS(i,t);e_(e.before,ev(eD(s,"beforeLabel",this,t))),e_(e.lines,eD(s,"label",this,t)),e_(e.after,ev(eD(s,"afterLabel",this,t))),a.push(e)}),a}getAfterBody(t,e){return e_([],ev(eD(e.callbacks,"afterBody",this,t)))}getFooter(t,e){let{callbacks:i}=e,s=eD(i,"beforeFooter",this,t),a=eD(i,"footer",this,t),n=eD(i,"afterFooter",this,t),r=[];return r=e_(r,ev(s)),r=e_(r,ev(a)),r=e_(r,ev(n))}_createItems(t){let e,i;let a=this._active,n=this.chart.data,r=[],o=[],l=[],h=[];for(e=0,i=a.length;et.filter(e,i,s,n))),t.itemSort&&(h=h.sort((e,i)=>t.itemSort(e,i,n))),(0,s.F)(h,e=>{let i=eS(t.callbacks,e);r.push(eD(i,"labelColor",this,e)),o.push(eD(i,"labelPointStyle",this,e)),l.push(eD(i,"labelTextColor",this,e))}),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=l,this.dataPoints=h,h}update(t,e){let i;let s=this.options.setContext(this.getContext()),a=this._active,n=[];if(a.length){let r=ex[s.position].call(this,a,this._eventPosition);n=this._createItems(s),this.title=this.getTitle(n,s),this.beforeBody=this.getBeforeBody(n,s),this.body=this.getBody(n,s),this.afterBody=this.getAfterBody(n,s),this.footer=this.getFooter(n,s);let o=this._size=ey(this,s),l=Object.assign({},r,o),h=eM(this.chart,s,l),d=ew(s,l,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,i={opacity:1,x:d.x,y:d.y,width:o.width,height:o.height,caretX:r.x,caretY:r.y}}else 0!==this.opacity&&(i={opacity:0});this._tooltipItems=n,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){let a=this.getCaretPosition(t,i,s);e.lineTo(a.x1,a.y1),e.lineTo(a.x2,a.y2),e.lineTo(a.x3,a.y3)}getCaretPosition(t,e,i){let a,n,r,o,l,h;let{xAlign:d,yAlign:c}=this,{caretSize:u,cornerRadius:g}=i,{topLeft:p,topRight:f,bottomLeft:m,bottomRight:b}=(0,s.aw)(g),{x:x,y:_}=t,{width:v,height:y}=e;return"center"===c?(l=_+y/2,"left"===d?(n=(a=x)-u,o=l+u,h=l-u):(n=(a=x+v)+u,o=l-u,h=l+u),r=a):(n="left"===d?x+Math.max(p,m)+u:"right"===d?x+v-Math.max(f,b)-u:this.caretX,"top"===c?(l=(o=_)-u,a=n-u,r=n+u):(l=(o=_+y)+u,a=n+u,r=n-u),h=o),{x1:a,x2:n,x3:r,y1:o,y2:l,y3:h}}drawTitle(t,e,i){let a,n,r;let o=this.title,l=o.length;if(l){let h=(0,s.az)(i.rtl,this.x,this.width);for(r=0,t.x=ek(this,i.titleAlign,i),e.textAlign=h.textAlign(i.titleAlign),e.textBaseline="middle",a=(0,s.a0)(i.titleFont),n=i.titleSpacing,e.fillStyle=i.titleColor,e.font=a.string;r0!==t)?(t.beginPath(),t.fillStyle=n.multiKeyBackground,(0,s.au)(t,{x:_,y:f,w:h,h:l,radius:y}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),(0,s.au)(t,{x:v,y:f+1,w:h-2,h:l-2,radius:y}),t.fill()):(t.fillStyle=n.multiKeyBackground,t.fillRect(_,f,h,l),t.strokeRect(_,f,h,l),t.fillStyle=r.backgroundColor,t.fillRect(v,f+1,h-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){let a,n,r,o,l,h,d;let{body:c}=this,{bodySpacing:u,bodyAlign:g,displayColors:p,boxHeight:f,boxWidth:m,boxPadding:b}=i,x=(0,s.a0)(i.bodyFont),_=x.lineHeight,v=0,y=(0,s.az)(i.rtl,this.x,this.width),M=function(i){e.fillText(i,y.x(t.x+v),t.y+_/2),t.y+=_+u},w=y.textAlign(g);for(e.textAlign=g,e.textBaseline="middle",e.font=x.string,t.x=ek(this,w,i),e.fillStyle=i.bodyColor,(0,s.F)(this.beforeBody,M),v=p&&"right"!==w?"center"===g?m/2+b:m+2+b:0,o=0,h=c.length;o0&&e.stroke()}_updateAnimationTarget(t){let e=this.chart,i=this.$animations,s=i&&i.x,a=i&&i.y;if(s||a){let n=ex[t.position].call(this,this._active,this._eventPosition);if(!n)return;let r=this._size=ey(this,t),o=Object.assign({},n,this._size),l=eM(e,t,o),h=ew(t,o,l,e);(s._to!==h.x||a._to!==h.y)&&(this.xAlign=l.xAlign,this.yAlign=l.yAlign,this.width=r.width,this.height=r.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){let e=this.options.setContext(this.getContext()),i=this.opacity;if(!i)return;this._updateAnimationTarget(e);let a={width:this.width,height:this.height},n={x:this.x,y:this.y};i=.001>Math.abs(i)?0:i;let r=(0,s.E)(e.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&o&&(t.save(),t.globalAlpha=i,this.drawBackground(n,t,a,e),(0,s.aA)(t,e.textDirection),n.y+=r.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),(0,s.aC)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){let i=this._active,a=t.map(({datasetIndex:t,index:e})=>{let i=this.chart.getDatasetMeta(t);if(!i)throw Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),n=!(0,s.ah)(i,a),r=this._positionChanged(a,e);(n||r)&&(this._active=a,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let a=this.options,n=this._active||[],r=this._getActiveElements(t,n,e,i),o=this._positionChanged(r,t),l=e||!(0,s.ah)(r,n)||o;return l&&(this._active=r,(a.enabled||a.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,i,s){let a=this.options;if("mouseout"===t.type)return[];if(!s)return e;let n=this.chart.getElementsAtEventForMode(t,a.mode,a,i);return a.reverse&&n.reverse(),n}_positionChanged(t,e){let{caretX:i,caretY:s,options:a}=this,n=ex[a.position].call(this,t,e);return!1!==n&&(i!==n.x||s!==n.y)}}var eL=Object.freeze({__proto__:null,Colors:{id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,i){let s;if(!i.enabled)return;let{options:{elements:a},data:{datasets:n}}=t.config;if(!i.forceOverride&&(t9(n)||a&&t9(a)))return;let r=(s=0,(e,i)=>{var a,n,r,o,l,h;let d=t.getDatasetMeta(i).controller;d instanceof P?(a=e,n=s,a.backgroundColor=a.data.map(()=>t7(n++)),s=n):d instanceof D?(r=e,o=s,r.backgroundColor=r.data.map(()=>t8(o++)),s=o):d&&(l=e,h=s,l.borderColor=t7(h),l.backgroundColor=t8(h),s=++h)});n.forEach(r)}},Decimation:{id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate(t,e,i){if(!i.enabled){ee(t);return}let a=t.width;t.data.datasets.forEach((e,n)=>{let r;let{_data:o,indexAxis:l}=e,h=t.getDatasetMeta(n),d=o||e.data;if("y"===(0,s.a)([l,t.options.indexAxis])||!h.controller.supportsDecimation)return;let c=t.scales[h.xAxisID];if("linear"!==c.type&&"time"!==c.type||t.options.parsing)return;let{start:u,count:g}=function(t,e){let i;let a=e.length,n=0,{iScale:r}=t,{min:o,max:l,minDefined:h,maxDefined:d}=r.getUserBounds();return h&&(n=(0,s.S)((0,s.B)(e,r.axis,o).lo,0,a-1)),i=d?(0,s.S)((0,s.B)(e,r.axis,l).hi+1,n,a)-n:a-n,{start:n,count:i}}(h,d),p=i.threshold||4*a;if(g<=p){et(e);return}switch((0,s.k)(o)&&(e._data=d,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":r=function(t,e,i,s,a){let n,r,o,l,h;let d=a.samples||s;if(d>=i)return t.slice(e,e+i);let c=[],u=(i-2)/(d-2),g=0,p=e;for(n=0,c[g++]=t[p];no&&(o=l,r=t[f],h=f);c[g++]=r,p=h}return c[g++]=t[e+i-1],c}(d,u,g,a,i);break;case"min-max":r=function(t,e,i,a){let n,r,o,l,h,d,c,u,g,p,f=0,m=0,b=[],x=t[e].x,_=t[e+i-1].x,v=_-x;for(n=e;np&&(p=l,c=n),f=(m*f+r.x)/++m;else{let M=n-1;if(!(0,s.k)(d)&&!(0,s.k)(c)){let w=Math.min(d,c),k=Math.max(d,c);w!==u&&w!==M&&b.push({...t[w],x:f}),k!==u&&k!==M&&b.push({...t[k],x:f})}n>0&&M!==u&&b.push(t[M]),b.push(r),h=y,m=0,g=p=l,d=c=u=n}}return b}(d,u,g,a);break;default:throw Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=r})},destroy(t){ee(t)}},Filler:{id:"filler",afterDatasetsUpdate(t,e,i){let a,n,r,o;let l=(t.data.datasets||[]).length,h=[];for(n=0;n=i)&&n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}(r,n,l),chart:t,axis:a.controller.options.indexAxis,scale:a.vScale,line:r}),a.$filler=o,h.push(o);for(n=0;n=0;--r){let o=a[r].$filler;o&&(o.line.updateControlPoints(n,o.axis),s&&o.fill&&el(t.ctx,o,n))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;let s=t.getSortedVisibleDatasetMetas();for(let a=s.length-1;a>=0;--a){let n=s[a].$filler;er(n)&&el(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,i){let s=e.meta.$filler;er(s)&&"beforeDatasetDraw"===i.drawTime&&el(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},Legend:{id:"legend",_element:ep,start(t,e,i){let s=t.legend=new ep({ctx:t.ctx,options:i,chart:t});Y.configure(t,s,i),Y.addBox(t,s)},stop(t){Y.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){let s=t.legend;Y.configure(t,s,i),s.options=i},afterUpdate(t){let e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){let s=e.datasetIndex,a=i.chart;a.isDatasetVisible(s)?(a.hide(s),e.hidden=!0):(a.show(s),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:a,textAlign:n,color:r,useBorderRadius:o,borderRadius:l}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{let h=t.controller.getStyle(i?0:void 0),d=(0,s.E)(h.borderWidth);return{text:e[t.index].label,fillStyle:h.backgroundColor,fontColor:r,hidden:!t.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:h.borderColor,pointStyle:a||h.pointStyle,rotation:h.rotation,textAlign:n||h.textAlign,borderRadius:o&&(l||h.borderRadius),datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}},SubTitle:{id:"subtitle",start(t,e,i){let s=new em({ctx:t.ctx,options:i,chart:t});Y.configure(t,s,i),Y.addBox(t,s),eb.set(t,s)},stop(t){Y.removeBox(t,eb.get(t)),eb.delete(t)},beforeUpdate(t,e,i){let s=eb.get(t);Y.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Title:{id:"title",_element:em,start(t,e,i){!function(t,e){let i=new em({ctx:t.ctx,options:e,chart:t});Y.configure(t,i,e),Y.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){let e=t.titleBlock;Y.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){let s=t.titleBlock;Y.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Tooltip:{id:"tooltip",_element:eC,positioners:ex,afterInit(t,e,i){i&&(t.tooltip=new eC({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){let e=t.tooltip;if(e&&e._willRender()){let i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){let i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:eP},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});let eE=(t,e,i,s)=>("string"==typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i),eO=(t,e)=>null===t?null:(0,s.S)(Math.round(t),0,e);function eA(t){let e=this.getLabels();return t>=0&&ta=e?a:t,o=t=>n=i?n:t;if(t){let l=(0,s.s)(a),h=(0,s.s)(n);l<0&&h<0?o(0):l>0&&h>0&&r(0)}if(a===n){let d=0===n?1:Math.abs(.05*n);o(n+d),t||r(a-d)}this.min=a,this.max=n}getTickLimit(){let t;let e=this.options.ticks,{maxTicksLimit:i,stepSize:s}=e;return s?(t=Math.ceil(this.max/s)-Math.floor(this.min/s)+1)>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3):(t=this.computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let t=this.options,e=t.ticks,i=this.getTickLimit();i=Math.max(2,i);let a={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},n=this._range||this,r=function(t,e){let i,a,n,r;let o=[],{bounds:l,step:h,min:d,max:c,precision:u,count:g,maxTicks:p,maxDigits:f,includeBounds:m}=t,b=h||1,x=p-1,{min:_,max:v}=e,y=!(0,s.k)(d),M=!(0,s.k)(c),w=!(0,s.k)(g),k=(v-_)/(f+1),S=(0,s.aH)((v-_)/x/b)*b;if(S<1e-14&&!y&&!M)return[{value:_},{value:v}];(r=Math.ceil(v/S)-Math.floor(_/S))>x&&(S=(0,s.aH)(r*S/x/b)*b),(0,s.k)(u)||(S=Math.ceil(S*(i=Math.pow(10,u)))/i),"ticks"===l?(a=Math.floor(_/S)*S,n=Math.ceil(v/S)*S):(a=_,n=v),y&&M&&h&&(0,s.aI)((c-d)/h,S/1e3)?(r=Math.round(Math.min((c-d)/S,p)),S=(c-d)/r,a=d,n=c):w?(a=y?d:a,S=((n=M?c:n)-a)/(r=g-1)):(r=(n-a)/S,r=(0,s.aJ)(r,Math.round(r),S/1e3)?Math.round(r):Math.ceil(r));let P=Math.max((0,s.aK)(S),(0,s.aK)(a));i=Math.pow(10,(0,s.k)(u)?P:u),a=Math.round(a*i)/i,n=Math.round(n*i)/i;let D=0;for(y&&(m&&a!==d?(o.push({value:d}),aMath.floor((0,s.aM)(t)),eI=(t,e)=>Math.pow(10,eR(t)+e);function eV(t){let e=t/Math.pow(10,eR(t));return 1===e}function eB(t,e,i){let s=Math.pow(10,i);return Math.ceil(e/s)-Math.floor(t/s)}class eN extends tb{static id="logarithmic";static defaults={ticks:{callback:s.aL.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){let i=eF.prototype.parse.apply(this,[t,e]);if(0===i){this._zero=!0;return}return(0,s.g)(i)&&i>0?i:null}determineDataLimits(){let{min:t,max:e}=this.getMinMax(!0);this.min=(0,s.g)(t)?Math.max(0,t):null,this.max=(0,s.g)(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!(0,s.g)(this._userMin)&&(this.min=t===eI(this.min,0)?eI(this.min,-1):eI(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:t,maxDefined:e}=this.getUserBounds(),i=this.min,s=this.max,a=e=>i=t?i:e,n=t=>s=e?s:t;i===s&&(i<=0?(a(1),n(10)):(a(eI(i,-1)),n(eI(s,1)))),i<=0&&a(eI(s,-1)),s<=0&&n(eI(i,1)),this.min=i,this.max=s}buildTicks(){let t=this.options,e={min:this._userMin,max:this._userMax},i=function(t,{min:e,max:i}){e=(0,s.O)(t.min,e);let a=[],n=eR(e),r=function(t,e){let i=eR(e-t);for(;eB(t,e,i)>10;)i++;for(;10>eB(t,e,i);)i--;return Math.min(i,eR(t))}(e,i),o=r<0?Math.pow(10,Math.abs(r)):1,l=Math.pow(10,r),h=n>r?Math.pow(10,n):0,d=Math.round((e-h)*o)/o,c=Math.floor((e-h)/l/10)*l*10,u=Math.floor((d-c)/Math.pow(10,r)),g=(0,s.O)(t.min,Math.round((h+c+u*Math.pow(10,r))*o)/o);for(;g=10?u=u<15?15:20:u++,u>=20&&(u=2,o=++r>=0?1:o),g=Math.round((h+c+u*Math.pow(10,r))*o)/o;let p=(0,s.O)(t.max,g);return a.push({value:p,major:eV(p),significand:u}),a}(e,this);return"ticks"===t.bounds&&(0,s.aG)(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return void 0===t?"0":(0,s.o)(t,this.chart.options.locale,this.options.ticks.format)}configure(){let t=this.min;super.configure(),this._startValue=(0,s.aM)(t),this._valueRange=(0,s.aM)(this.max)-(0,s.aM)(t)}getPixelForValue(t){return((void 0===t||0===t)&&(t=this.min),null===t||isNaN(t))?NaN:this.getPixelForDecimal(t===this.min?0:((0,s.aM)(t)-this._startValue)/this._valueRange)}getValueForPixel(t){let e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function eH(t){let e=t.ticks;if(e.display&&t.display){let i=(0,s.E)(e.backdropPadding);return(0,s.v)(e.font&&e.font.size,s.d.font.size)+i.height}return 0}function ej(t,e,i,s,a){return t===s||t===a?{start:e-i/2,end:e+i/2}:ta?{start:e-i,end:e}:{start:e,end:e+i}}function eW(t,e,i,a){let{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,s.T);else{let r=t.getPointPosition(0,e);n.moveTo(r.x,r.y);for(let o=1;ot,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let t=this._padding=(0,s.E)(eH(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){let{min:t,max:e}=this.getMinMax(!1);this.min=(0,s.g)(t)&&!isNaN(t)?t:0,this.max=(0,s.g)(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/eH(this.options))}generateTickLabels(t){eF.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{let i=(0,s.Q)(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){let t=this.options;t.display&&t.pointLabels.display?function(t){let e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),a=[],n=[],r=t._pointLabels.length,o=t.options.pointLabels,l=o.centerPointLabels?s.P/r:0;for(let h=0;he.r&&(o=(s.end-e.r)/n,t.r=Math.max(t.r,e.r+o)),a.starte.b&&(l=(a.end-e.b)/r,t.b=Math.max(t.b,e.b+l))}(i,e,m,x,_)}t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){let a=[],n=t._pointLabels.length,r=t.options,o=eH(r)/2,l=t.drawingArea,h=r.pointLabels.centerPointLabels?s.P/n:0;for(let d=0;d270||m<90)&&(c-=u),c),_=0===m||180===m?"center":m<180?"left":"right",v=(g=f.x,p=b.w,"right"===_?g-=p:"center"===_&&(g-=p/2),g);a.push({x:f.x,y:x,textAlign:_,left:v,top:x,right:v+b.w,bottom:x+b.h})}return a}(t,a,n)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){let e=s.T/(this._pointLabels.length||1),i=this.options.startAngle||0;return(0,s.ay)(t*e+(0,s.t)(i))}getDistanceFromCenterForValue(t){if((0,s.k)(t))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if((0,s.k)(t))return NaN;let e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){let e=this._pointLabels||[];if(t>=0&&t=0;n--){let r=a.setContext(t.getPointLabelContext(n)),o=(0,s.a0)(r.font),{x:l,y:h,textAlign:d,left:c,top:u,right:g,bottom:p}=t._pointLabelItems[n],{backdropColor:f}=r;if(!(0,s.k)(f)){let m=(0,s.aw)(r.borderRadius),b=(0,s.E)(r.backdropPadding);i.fillStyle=f;let x=c-b.left,_=u-b.top,v=g-c+b.width,y=p-u+b.height;Object.values(m).some(t=>0!==t)?(i.beginPath(),(0,s.au)(i,{x:x,y:_,w:v,h:y,radius:m}),i.fill()):i.fillRect(x,_,v,y)}(0,s.Z)(i,t._pointLabels[n],l,h+o.lineHeight/2,o,{color:r.color,textAlign:d,textBaseline:"middle"})}}(this,h),o.display&&this.ticks.forEach((t,i)=>{if(0!==i){e=this.getDistanceFromCenterForValue(t.value);let s=this.getContext(i),a=o.setContext(s),n=l.setContext(s);!function(t,e,i,s,a){let n=t.ctx,r=e.circular,{color:o,lineWidth:l}=e;(r||s)&&o&&l&&!(i<0)&&(n.save(),n.strokeStyle=o,n.lineWidth=l,n.setLineDash(a.dash),n.lineDashOffset=a.dashOffset,n.beginPath(),eW(t,i,r,s),n.closePath(),n.stroke(),n.restore())}(this,a,e,h,n)}}),r.display){for(a.save(),t=h-1;t>=0;t--){let d=r.setContext(this.getPointLabelContext(t)),{color:c,lineWidth:u}=d;u&&c&&(a.lineWidth=u,a.strokeStyle=c,a.setLineDash(d.borderDash),a.lineDashOffset=d.borderDashOffset,e=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),i=this.getPointPosition(t,e),a.beginPath(),a.moveTo(this.xCenter,this.yCenter),a.lineTo(i.x,i.y),a.stroke())}a.restore()}}drawBorder(){}drawLabels(){let t,e;let i=this.ctx,a=this.options,n=a.ticks;if(!n.display)return;let r=this.getIndexAngle(0);i.save(),i.translate(this.xCenter,this.yCenter),i.rotate(r),i.textAlign="center",i.textBaseline="middle",this.ticks.forEach((r,o)=>{if(0===o&&!a.reverse)return;let l=n.setContext(this.getContext(o)),h=(0,s.a0)(l.font);if(t=this.getDistanceFromCenterForValue(this.ticks[o].value),l.showLabelBackdrop){i.font=h.string,e=i.measureText(r.label).width,i.fillStyle=l.backdropColor;let d=(0,s.E)(l.backdropPadding);i.fillRect(-e/2-d.left,-t-h.size/2-d.top,e+d.width,h.size+d.height)}(0,s.Z)(i,r.label,0,-t,h,{color:l.color})}),i.restore()}drawTitle(){}}let eU={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},eY=Object.keys(eU);function eQ(t,e){return t-e}function eX(t,e){if((0,s.k)(e))return null;let i=t._adapter,{parser:a,round:n,isoWeekday:r}=t._parseOpts,o=e;return("function"==typeof a&&(o=a(o)),(0,s.g)(o)||(o="string"==typeof a?i.parse(o,a):i.parse(o)),null===o)?null:(n&&(o="week"===n&&((0,s.x)(r)||!0===r)?i.startOf(o,"isoWeek",r):i.startOf(o,n)),+o)}function eq(t,e,i,s){let a=eY.length;for(let n=eY.indexOf(t);n=e?i[a]:i[n];t[r]=!0}}else t[e]=!0}function eK(t,e,i){let s,a;let n=[],r={},o=e.length;for(s=0;s=0&&(e[n].major=!0);return e}(t,n,r,i):n}class eJ extends tb{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){let i=t.time||(t.time={}),a=this._adapter=new O._date(t.adapters.date);a.init(e),(0,s.ab)(i.displayFormats,a.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:eX(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,e=this._adapter,i=t.time.unit||"day",{min:a,max:n,minDefined:r,maxDefined:o}=this.getUserBounds();function l(t){r||isNaN(t.min)||(a=Math.min(a,t.min)),o||isNaN(t.max)||(n=Math.max(n,t.max))}r&&o||(l(this._getLabelBounds()),("ticks"!==t.bounds||"labels"!==t.ticks.source)&&l(this.getMinMax(!1))),a=(0,s.g)(a)&&!isNaN(a)?a:+e.startOf(Date.now(),i),n=(0,s.g)(n)&&!isNaN(n)?n:+e.endOf(Date.now(),i)+1,this.min=Math.min(a,n-1),this.max=Math.max(a+1,n)}_getLabelBounds(){let t=this.getLabelTimestamps(),e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){let t=this.options,e=t.time,i=t.ticks,a="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);let n=this.min,r=this.max,o=(0,s.aO)(a,n,r);return this._unit=e.unit||(i.autoSkip?eq(e.minUnit,this.min,this.max,this._getLabelCapacity(n)):function(t,e,i,s,a){for(let n=eY.length-1;n>=eY.indexOf(i);n--){let r=eY[n];if(eU[r].common&&t._adapter.diff(a,s,r)>=e-1)return r}return eY[i?eY.indexOf(i):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=eY.indexOf(t)+1,i=eY.length;e+t.value))}initOffsets(t=[]){let e,i,a=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),a=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),n=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);let r=t.length<3?.5:.25;a=(0,s.S)(a,0,r),n=(0,s.S)(n,0,r),this._offsets={start:a,end:n,factor:1/(a+1+n)}}_generate(){let t,e;let i=this._adapter,a=this.min,n=this.max,r=this.options,o=r.time,l=o.unit||eq(o.minUnit,a,n,this._getLabelCapacity(a)),h=(0,s.v)(r.ticks.stepSize,1),d="week"===l&&o.isoWeekday,c=(0,s.x)(d)||!0===d,u={},g=a;if(c&&(g=+i.startOf(g,"isoWeek",d)),g=+i.startOf(g,c?"day":l),i.diff(n,a,l)>1e5*h)throw Error(a+" and "+n+" are too far apart with stepSize of "+h+" "+l);let p="data"===r.ticks.source&&this.getDataTimestamps();for(t=g,e=0;tt-e).map(t=>+t)}getLabelForValue(t){let e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,a){let n=this.options,r=n.ticks.callback;if(r)return(0,s.Q)(r,[t,e,i],this);let o=n.time.displayFormats,l=this._unit,h=this._majorUnit,d=l&&o[l],c=h&&o[h],u=i[e],g=h&&c&&u&&u.major;return this._adapter.format(t,a||(g?c:d))}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e0?r:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;let s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t=t[l].pos&&e<=t[h].pos&&({lo:l,hi:h}=(0,s.B)(t,"pos",e)),{pos:a,time:r}=t[l],{pos:n,time:o}=t[h]):(e>=t[l].time&&e<=t[h].time&&({lo:l,hi:h}=(0,s.B)(t,"time",e)),{time:a,pos:r}=t[l],{time:n,pos:o}=t[h]);let d=n-a;return d?r+(o-r)*(e-a)/d:r}class e0 extends eJ{static id="timeseries";static defaults=eJ.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=eZ(e,this.min),this._tableRange=eZ(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){let e,i,s;let{min:a,max:n}=this,r=[],o=[];for(e=0,i=t.length;e=a&&s<=n&&r.push(s);if(r.length<2)return[{time:a,pos:0},{time:n,pos:1}];for(e=0,i=r.length;ee.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:ez,LogarithmicScale:eN,RadialLinearScale:e$,TimeScale:eJ,TimeSeriesScale:e0});let e2=[C,t3,eL,e1]}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/framework-1f1fb5c07f2be279.js b/static/web/_next/static/chunks/framework-1f1fb5c07f2be279.js new file mode 100644 index 000000000..9641d362e --- /dev/null +++ b/static/web/_next/static/chunks/framework-1f1fb5c07f2be279.js @@ -0,0 +1,33 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9774],{64448:function(e,n,t){/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r,l,a,u,o,i,s=t(67294),c=t(63840);function f(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t