html-reporter 11.0.1 → 11.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lib/adapters/config/testplane.d.ts +1 -1
- package/build/lib/adapters/event-handling/testplane/snapshots.js +26 -3
- package/build/lib/adapters/event-handling/testplane/snapshots.js.map +1 -1
- package/build/lib/adapters/test-result/index.d.ts +2 -2
- package/build/lib/adapters/test-result/sqlite.js.map +1 -1
- package/build/lib/adapters/test-result/testplane/index.d.ts +2 -2
- package/build/lib/adapters/test-result/testplane/index.js +1 -1
- package/build/lib/adapters/test-result/testplane/index.js.map +1 -1
- package/build/lib/adapters/tool/index.d.ts +2 -2
- package/build/lib/adapters/tool/testplane/index.d.ts +1 -1
- package/build/lib/adapters/tool/testplane/index.js +27 -4
- package/build/lib/adapters/tool/testplane/index.js.map +1 -1
- package/build/lib/adapters/tool/testplane/test-results-handler.js +32 -5
- package/build/lib/adapters/tool/testplane/test-results-handler.js.map +1 -1
- package/build/lib/cli/commands/gui.js +3 -4
- package/build/lib/cli/commands/gui.js.map +1 -1
- package/build/lib/cli/commands/index.d.ts +5 -0
- package/build/lib/cli/commands/index.js +9 -0
- package/build/lib/cli/commands/index.js.map +1 -0
- package/build/lib/cli/commands/merge-reports.js +3 -4
- package/build/lib/cli/commands/merge-reports.js.map +1 -1
- package/build/lib/cli/commands/remove-unused-screens/index.js +50 -45
- package/build/lib/cli/commands/remove-unused-screens/index.js.map +1 -1
- package/build/lib/cli/commands/remove-unused-screens/utils.d.ts +4 -4
- package/build/lib/cli/commands/remove-unused-screens/utils.js +5 -5
- package/build/lib/cli/commands/remove-unused-screens/utils.js.map +1 -1
- package/build/lib/cli/index.d.ts +0 -5
- package/build/lib/cli/index.js +3 -7
- package/build/lib/cli/index.js.map +1 -1
- package/build/lib/common-utils.d.ts +2 -2
- package/build/lib/common-utils.js +25 -2
- package/build/lib/common-utils.js.map +1 -1
- package/build/lib/constants/diff-modes.d.ts +1 -1
- package/build/lib/db-utils/common.d.ts +2 -2
- package/build/lib/db-utils/server.d.ts +1 -1
- package/build/lib/db-utils/server.js +4 -4
- package/build/lib/db-utils/server.js.map +1 -1
- package/build/lib/errors/index.d.ts +1 -1
- package/build/lib/gui/api/index.d.ts +1 -1
- package/build/lib/gui/app.d.ts +1 -1
- package/build/lib/gui/constants/client-events.d.ts +1 -1
- package/build/lib/gui/constants/gui-events.d.ts +1 -1
- package/build/lib/gui/event-source.d.ts +1 -1
- package/build/lib/gui/server.d.ts +3 -3
- package/build/lib/gui/server.js.map +1 -1
- package/build/lib/images-info-saver.js +3 -1
- package/build/lib/images-info-saver.js.map +1 -1
- package/build/lib/merge-reports/index.js +9 -9
- package/build/lib/merge-reports/index.js.map +1 -1
- package/build/lib/plugin-utils.d.ts +1 -1
- package/build/lib/reporter-helpers.js +4 -3
- package/build/lib/reporter-helpers.js.map +1 -1
- package/build/lib/server-utils.d.ts +3 -3
- package/build/lib/server-utils.js +30 -4
- package/build/lib/server-utils.js.map +1 -1
- package/build/lib/sqlite-client.d.ts +1 -1
- package/build/lib/static/134.min.js +1 -1
- package/build/lib/static/194.min.js +1 -1
- package/build/lib/static/354.min.js +1 -1
- package/build/lib/static/481.min.js +1 -1
- package/build/lib/static/53.min.js +1 -0
- package/build/lib/static/556.min.css +1 -1
- package/build/lib/static/556.min.js +1 -1
- package/build/lib/static/613.min.js +1 -0
- package/build/lib/static/{418.min.js → 871.min.js} +1 -1
- package/build/lib/static/gui.html +1 -1
- package/build/lib/static/gui.min.js +1 -1
- package/build/lib/static/index.html +1 -1
- package/build/lib/static/new-ui-gui.html +1 -1
- package/build/lib/static/new-ui-report.html +1 -1
- package/build/lib/static/newGui.min.js +1 -1
- package/build/lib/static/newReport.min.js +1 -1
- package/build/lib/static/report.min.js +1 -1
- package/build/lib/tests-tree-builder/base.d.ts +0 -6
- package/build/lib/tests-tree-builder/base.js +61 -32
- package/build/lib/tests-tree-builder/base.js.map +1 -1
- package/build/lib/tests-tree-builder/static.d.ts +2 -2
- package/build/lib/tests-tree-builder/static.js.map +1 -1
- package/build/package.json +1 -1
- package/build/testplane.d.ts +1 -1
- package/build/testplane.js +48 -17
- package/build/testplane.js.map +1 -1
- package/package.json +1 -1
- package/build/lib/static/348.min.js +0 -1
- /package/build/lib/static/{418.min.css → 871.min.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk=self.webpackChunk||[]).push([[53],{54368:(e,t,n)=>{"use strict";e.exports=n(14947)},86224:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.75 8a.75.75 0 0 1-.75.75H3.81l2.72 2.72a.75.75 0 1 1-1.06 1.06l-4-4a.75.75 0 0 1 0-1.06l4-4a.75.75 0 0 1 1.06 1.06L3.81 7.25H14a.75.75 0 0 1 .75.75",clipRule:"evenodd"}))},26542:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.22 8.53a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 1.06L6.56 7.25h7.69a.75.75 0 0 1 0 1.5H6.56l1.22 1.22a.75.75 0 1 1-1.06 1.06zM2.5 1.75a.75.75 0 1 0-1.5 0v12.5a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},84579:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.78 3.72a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L11.44 5H2.75a.75.75 0 1 1 0-1.5h8.69L9.72 1.78A.75.75 0 0 1 10.78.72zM2 11.75a.75.75 0 0 1 .22-.53l3-3a.75.75 0 1 1 1.06 1.06L4.56 11h8.69a.75.75 0 0 1 0 1.5H4.56l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1-.22-.53",clipRule:"evenodd"}))},46294:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.78 7.47a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 1 1-1.06-1.06l1.22-1.22H4.75a.75.75 0 0 1 0-1.5h7.69l-1.22-1.22a.75.75 0 0 1 1.06-1.06zM2.5 1.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},75262:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 1 0 6.445 7.348.75.75 0 1 0-1.487-.194A5.001 5.001 0 1 1 11.57 4.5h-1.32a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 .75-.75v-3a.75.75 0 0 0-1.5 0v1.06A6.48 6.48 0 0 0 8 1.5",clipRule:"evenodd"}))},2542:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.47 4.72a.75.75 0 0 0 0 1.06l3 3a.75.75 0 0 0 1.06-1.06L4.81 6H9a3.25 3.25 0 0 1 0 6.5H8A.75.75 0 0 0 8 14h1a4.75 4.75 0 1 0 0-9.5H4.81l1.72-1.72a.75.75 0 0 0-1.06-1.06z",clipRule:"evenodd"}))},41421:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.5a6.5 6.5 0 0 1 6.445 5.649.75.75 0 1 1-1.488.194A5.001 5.001 0 0 0 4.43 4.5h1.32a.75.75 0 0 1 0 1.5h-3A.75.75 0 0 1 2 5.25v-3a.75.75 0 1 1 1.5 0v1.06A6.48 6.48 0 0 1 8 1.5m5.25 13a.75.75 0 0 0 .75-.75v-3a.75.75 0 0 0-.75-.75h-3a.75.75 0 1 0 0 1.5h1.32a5.001 5.001 0 0 1-8.528-2.843.75.75 0 1 0-1.487.194 6.501 6.501 0 0 0 10.945 3.84v1.059c0 .414.336.75.75.75",clipRule:"evenodd"}))},52813:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.22 2.72a.75.75 0 0 1 1.06 0l2 2a.75.75 0 0 1-1.06 1.06l-.72-.72v7.69a.75.75 0 0 1-1.5 0V5.06l-.72.72A.75.75 0 0 1 .22 4.72zM7 12.75c0 .414.336.75.75.75h7.5a.75.75 0 0 0 0-1.5h-7.5a.75.75 0 0 0-.75.75m.75-4a.75.75 0 0 1 0-1.5h5.5a.75.75 0 0 1 0 1.5zm0-4.75a.75.75 0 0 1 0-1.5h2.5a.75.75 0 0 1 0 1.5z",clipRule:"evenodd"}))},94589:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.22 13.28a.75.75 0 0 0 1.06 0l2-2a.75.75 0 1 0-1.06-1.06l-.72.72V3.25a.75.75 0 0 0-1.5 0v7.69l-.72-.72a.75.75 0 1 0-1.06 1.06zM7 3.25a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5h-7.5A.75.75 0 0 1 7 3.25m.75 4a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5zm0 4.75a.75.75 0 0 0 0 1.5h2.5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},6740:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.273 5h1.05l.36-.987.248-.684A.5.5 0 0 1 6.401 3h3.198a.5.5 0 0 1 .47.33l.249.683.359.987H12a1.5 1.5 0 0 1 1.5 1.5V11a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 11V6.5A1.5 1.5 0 0 1 4 5zM6.4 1.5a2 2 0 0 0-1.88 1.317l-.248.683H4a3 3 0 0 0-3 3V11a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V6.5a3 3 0 0 0-3-3h-.273l-.248-.683A2 2 0 0 0 9.599 1.5zm3.099 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m1.5 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0",clipRule:"evenodd"}))},53602:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.42 2.141a.75.75 0 1 0-1.061-1.06L8 4.439 4.646 1.086a.75.75 0 1 0-1.06 1.06L7.47 6.03a.75.75 0 0 0 1.06 0zM3.58 13.86a.75.75 0 0 0 1.061 1.06L8 11.561l3.354 3.353a.75.75 0 0 0 1.06-1.06L8.53 9.97a.75.75 0 0 0-1.06 0z",clipRule:"evenodd"}))},93315:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("g",{clipPath:"url(#a)"},r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.58 4.109a.75.75 0 0 0 1.061 1.06L8 1.811l3.354 3.353a.75.75 0 0 0 1.06-1.06L8.53.22a.75.75 0 0 0-1.06 0zm8.84 7.782a.75.75 0 1 0-1.061-1.06l-3.36 3.358-3.353-3.353a.75.75 0 1 0-1.06 1.06L7.47 15.78a.75.75 0 0 0 1.06 0z",clipRule:"evenodd"})),r.createElement("defs",null,r.createElement("clipPath",{id:"a"},r.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},27766:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-9.5-.75a.75.75 0 1 0 0 1.5h5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},14963:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-7.75 3.031L11 8.866a1 1 0 0 0 0-1.732L7.25 4.969a1 1 0 0 0-1.5.866v4.33a1 1 0 0 0 1.5.866",clipRule:"evenodd"}))},78910:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M8.75 4.5a.75.75 0 0 0-1.5 0V8a.75.75 0 0 0 .3.6l2 1.5a.75.75 0 1 0 .9-1.2l-1.7-1.275z",clipRule:"evenodd"}))},37283:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("g",{clipPath:"url(#a)"},r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 5.25a3.25 3.25 0 0 1 6.398-.811.75.75 0 0 0 .702.563A3 3 0 0 1 11.5 11h-.75a.75.75 0 0 0 0 1.5h.75a4.5 4.5 0 0 0 .687-8.948 4.751 4.751 0 0 0-9.184 1.522A3.751 3.751 0 0 0 3.75 12.5h1.5a.75.75 0 0 0 0-1.5H3.751a2.25 2.25 0 0 1-.003-4.5h.03a.75.75 0 0 0 .747-.843A3 3 0 0 1 4.5 5.25m4.25 3.31.72.72a.75.75 0 1 0 1.06-1.06l-2-2a.75.75 0 0 0-1.06 0l-2 2a.75.75 0 0 0 1.06 1.06l.72-.72v6.69a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"})),r.createElement("defs",null,r.createElement("clipPath",{id:"a"},r.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},27163:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 6.25a3.25 3.25 0 0 1 6.398-.811.75.75 0 0 0 .702.563A3 3 0 0 1 11.5 12H3.75a2.25 2.25 0 0 1-.002-4.5h.03a.75.75 0 0 0 .747-.843A3 3 0 0 1 4.5 6.25M7.75 1.5a4.75 4.75 0 0 0-4.747 4.574A3.751 3.751 0 0 0 3.75 13.5h7.75a4.5 4.5 0 0 0 .687-8.948A4.75 4.75 0 0 0 7.75 1.5m2.85 5.75a.75.75 0 1 0-1.2-.9L7.369 9.058 6.28 7.97a.75.75 0 1 0-1.06 1.06l1.7 1.7a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}))},44742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.5 2.5h-3A1.5 1.5 0 0 0 5 4v1h1a3 3 0 0 1 3 3v.5h.5A1.5 1.5 0 0 0 11 7V4a1.5 1.5 0 0 0-1.5-1.5M9 10v1c0 .546-.146 1.059-.401 1.5H13a1.5 1.5 0 0 0 1.5-1.5V8A1.5 1.5 0 0 0 13 6.5h-.5V7a3 3 0 0 1-3 3zm3.5-5V4a3 3 0 0 0-3-3h-3a3 3 0 0 0-3 3v1H3a3 3 0 0 0-3 3v3a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3zM6 6.5H3A1.5 1.5 0 0 0 1.5 8v3A1.5 1.5 0 0 0 3 12.5h3A1.5 1.5 0 0 0 7.5 11V8A1.5 1.5 0 0 0 6 6.5",clipRule:"evenodd"}))},93938:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.615 4.888c.814-.375.885-.714.885-.888s-.071-.513-.885-.888S9.538 2.5 8 2.5s-2.799.237-3.615.612C3.57 3.487 3.5 3.826 3.5 4s.071.513.885.888S6.462 5.5 8 5.5s2.799-.237 3.615-.612m.885 1.235C11.4 6.708 9.792 7 8 7s-3.4-.292-4.5-.877V8c0 .174.071.513.885.888S6.462 9.5 8 9.5s2.799-.237 3.615-.612c.814-.375.885-.714.885-.888zm0 4C11.4 10.708 9.792 11 8 11s-3.4-.293-4.5-.877V12c0 .174.071.513.885.887.816.377 2.077.613 3.615.613s2.799-.236 3.615-.613c.814-.374.885-.713.885-.887zM14 4c0-2-2.686-3-6-3S2 2 2 4v8c0 2 2.686 3 6 3s6-1 6-3z",clipRule:"evenodd"}))},86686:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.5 12a1.5 1.5 0 0 1-1.5 1.5H5A1.5 1.5 0 0 1 3.5 12V4A1.5 1.5 0 0 1 5 2.5h2.757a1.5 1.5 0 0 1 1.061.44l3.243 3.242a1.5 1.5 0 0 1 .439 1.06zm.621-6.879A3 3 0 0 1 14 7.243V12a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h2.757a3 3 0 0 1 2.122.879zM5.47 8.72a.75.75 0 0 0 1.06 1.06l.72-.72v2.19a.75.75 0 0 0 1.5 0V9.06l.72.72a.75.75 0 0 0 1.06-1.06l-2-2a.75.75 0 0 0-1.06 0z",clipRule:"evenodd"}))},65471:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 13.5H5A1.5 1.5 0 0 1 3.5 12V4A1.5 1.5 0 0 1 5 2.5h2.757a1.5 1.5 0 0 1 1.061.44l3.243 3.242a1.5 1.5 0 0 1 .439 1.06V12a1.5 1.5 0 0 1-1.5 1.5m2.121-8.379A3 3 0 0 1 14 7.243V12a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h2.757a3 3 0 0 1 2.122.879zM10.85 7.65a.75.75 0 1 0-1.2-.9L7.469 9.658 6.28 8.47a.75.75 0 0 0-1.06 1.06l1.8 1.8a.75.75 0 0 0 1.13-.08z",clipRule:"evenodd"}))},47347:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.5 12a1.5 1.5 0 0 1-1.5 1.5H5A1.5 1.5 0 0 1 3.5 12V4A1.5 1.5 0 0 1 5 2.5h2.757a1.5 1.5 0 0 1 1.061.44l3.243 3.242a1.5 1.5 0 0 1 .439 1.06zm.621-6.879A3 3 0 0 1 14 7.243V12a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h2.757a3 3 0 0 1 2.122.879zM8 5a.75.75 0 0 1 .75.75V8.5a.75.75 0 0 1-1.5 0V5.75A.75.75 0 0 1 8 5m1 6.25a1 1 0 1 1-2 0 1 1 0 0 1 2 0",clipRule:"evenodd"}))},99652:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.5 12a1.5 1.5 0 0 1-1.5 1.5H5A1.5 1.5 0 0 1 3.5 12V4A1.5 1.5 0 0 1 5 2.5h2.757a1.5 1.5 0 0 1 1.061.44l3.243 3.242a1.5 1.5 0 0 1 .439 1.06zm.621-6.879A3 3 0 0 1 14 7.243V12a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h2.757a3 3 0 0 1 2.122.879zm-2.807 2.623a.75.75 0 1 0-1.128-.988L8 8.111 6.814 6.756a.75.75 0 1 0-1.128.988L7.003 9.25l-1.317 1.506a.75.75 0 0 0 1.128.988L8 10.389l1.186 1.355a.75.75 0 0 0 1.128-.988L8.997 9.25z",clipRule:"evenodd"}))},41020:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.5 12a1.5 1.5 0 0 1-1.5 1.5H5A1.5 1.5 0 0 1 3.5 12V4A1.5 1.5 0 0 1 5 2.5h2.757a1.5 1.5 0 0 1 1.061.44l3.243 3.242a1.5 1.5 0 0 1 .439 1.06zm.621-6.879A3 3 0 0 1 14 7.243V12a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h2.757a3 3 0 0 1 2.122.879zM8.75 6.75a.75.75 0 0 0-1.5 0v1.5h-1.5a.75.75 0 0 0 0 1.5h1.5v1.5a.75.75 0 0 0 1.5 0v-1.5h1.5a.75.75 0 0 0 0-1.5h-1.5z",clipRule:"evenodd"}))},79117:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("g",{clipPath:"url(#a)"},r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.75 2.25c-.618 0-1.169.39-1.373.974L.042 12.752a.75.75 0 0 0 1.416.496L2.595 10h4.31l1.137 3.248a.75.75 0 0 0 1.416-.496L6.123 3.224A1.455 1.455 0 0 0 4.75 2.25M6.38 8.5 4.75 3.842 3.12 8.5zm5.135 2.996c0-.223.28-.746 1.152-.746H14.4c-.294 1.024-1.178 1.5-1.9 1.5-.45 0-.677-.134-.792-.249a.7.7 0 0 1-.193-.505m2.985.754V13a.75.75 0 1 0 1.5 0v-3c0-1.117-.28-2.065-.873-2.744-.606-.692-1.453-1.006-2.377-1.006-.53 0-.946.07-1.306.195-.338.117-.6.274-.804.396l-.025.015a.75.75 0 1 0 .77 1.288c.22-.132.365-.217.55-.281.178-.062.423-.113.815-.113.576 0 .978.186 1.248.494.191.218.354.543.44 1.006h-1.771c-1.462 0-2.658.977-2.652 2.254.003.542.191 1.116.632 1.557.447.448 1.085.689 1.853.689 1 0 1.75-.75 1.75-1.5z",clipRule:"evenodd"})),r.createElement("defs",null,r.createElement("clipPath",{id:"a"},r.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},38461:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.199 2H8.8a.2.2 0 0 1 .2.2c0 1.808 1.958 2.939 3.524 2.034a.2.2 0 0 1 .271.073l.802 1.388a.2.2 0 0 1-.073.272c-1.566.904-1.566 3.164 0 4.069a.2.2 0 0 1 .073.271l-.802 1.388a.2.2 0 0 1-.271.073C10.958 10.863 9 11.993 9 13.8a.2.2 0 0 1-.199.2H7.2a.2.2 0 0 1-.2-.2c0-1.808-1.958-2.938-3.524-2.034a.2.2 0 0 1-.272-.073l-.8-1.388a.2.2 0 0 1 .072-.271c1.566-.905 1.566-3.165 0-4.07a.2.2 0 0 1-.073-.27l.801-1.389a.2.2 0 0 1 .272-.072C5.042 5.138 7 4.007 7 2.199c0-.11.089-.199.199-.199M5.5 2.2c0-.94.76-1.7 1.699-1.7H8.8c.94 0 1.7.76 1.7 1.7a.85.85 0 0 0 1.274.735 1.7 1.7 0 0 1 2.32.622l.802 1.388c.469.813.19 1.851-.622 2.32a.85.85 0 0 0 0 1.472 1.7 1.7 0 0 1 .622 2.32l-.802 1.388a1.7 1.7 0 0 1-2.32.622.85.85 0 0 0-1.274.735c0 .939-.76 1.7-1.699 1.7H7.2a1.7 1.7 0 0 1-1.699-1.7.85.85 0 0 0-1.274-.735 1.7 1.7 0 0 1-2.32-.622l-.802-1.388a1.7 1.7 0 0 1 .622-2.32.85.85 0 0 0 0-1.471 1.7 1.7 0 0 1-.622-2.32l.801-1.389a1.7 1.7 0 0 1 2.32-.622A.85.85 0 0 0 5.5 2.2m4 5.8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0",clipRule:"evenodd"}))},82281:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.25 2.5h-8.5a.75.75 0 0 0-.75.75v1.5c0 .414.336.75.75.75h8.5a.75.75 0 0 0 .75-.75v-1.5a.75.75 0 0 0-.75-.75m0 4.5H5v3.13c0 .69.56 1.25 1.25 1.25H7v-.13A2.25 2.25 0 0 1 9.25 9h3a2.25 2.25 0 0 1 2.25 2.25v1.5A2.25 2.25 0 0 1 12.25 15h-3a2.25 2.25 0 0 1-2.246-2.12H6.25a2.75 2.75 0 0 1-2.75-2.75V6.986a2.25 2.25 0 0 1-2-2.236v-1.5A2.25 2.25 0 0 1 3.75 1h8.5a2.25 2.25 0 0 1 2.25 2.25v1.5A2.25 2.25 0 0 1 12.25 7m-3 3.5h3a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1-.75-.75v-1.5a.75.75 0 0 1 .75-.75",clipRule:"evenodd"}))},91545:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.28 2.22a.75.75 0 0 1 0 1.06l-2 2a.75.75 0 0 1-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 1.47-1.47a.75.75 0 0 1 1.06 0M6.5 3.75c0 .414.336.75.75.75h7a.75.75 0 0 0 0-1.5h-7a.75.75 0 0 0-.75.75m.75 3.5a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5zm-1.97.03a.75.75 0 0 0-1.06-1.06L2.75 7.69l-.47-.47a.75.75 0 0 0-1.06 1.06l1 1a.75.75 0 0 0 1.06 0zm0 3.19a.75.75 0 0 1 0 1.06l-2 2a.75.75 0 0 1-1.06 0l-1-1a.75.75 0 1 1 1.06-1.06l.47.47 1.47-1.47a.75.75 0 0 1 1.06 0m1.97 1.03a.75.75 0 0 0 0 1.5h7a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},20630:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.5 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5m3.25-2a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zm0 8.5a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zM5 8a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 5 8M3.75 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M2.5 13.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5",clipRule:"evenodd"}))},77066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m11.1 5.894-.412.903.671.732 1.356 1.48-1.994-.227-.986-.113-.49.864-.987 1.747-.4-1.967-.198-.972-.973-.198-1.966-.4 1.746-.989.864-.489-.112-.986-.227-1.994L8.47 4.641l.732.67.903-.411 1.826-.832zM7.02 1.276l2.465 2.26 3.043-1.387c.842-.384 1.708.483 1.325 1.324l-1.387 3.043 2.259 2.465c.625.682.069 1.774-.85 1.67l-3.323-.38-1.646 2.911c-.456.805-1.666.613-1.85-.293l-.667-3.277-3.277-.666c-.906-.185-1.098-1.395-.293-1.85l2.91-1.647-.378-3.322c-.105-.92.987-1.476 1.669-.85M5.53 11.53a.75.75 0 1 0-1.06-1.06l-3.5 3.5a.75.75 0 1 0 1.06 1.06z",clipRule:"evenodd"}))},28974:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m9.77 10.73.01-.01 3.08-3.08a3.889 3.889 0 1 0-5.5-5.5L4.73 4.77l-.01.01-1.667 1.666a5.303 5.303 0 0 0 7.5 7.5l3.167-3.166a.75.75 0 1 0-1.061-1.06l-3.166 3.166a3.803 3.803 0 1 1-5.379-5.379L5.33 6.291l.011-.01L8.421 3.2a2.39 2.39 0 0 1 3.38 3.378l-1.13 1.13-.012.012-2.995 2.994a.975.975 0 1 1-1.378-1.378L9.28 6.34a.75.75 0 0 0-1.06-1.06L5.225 8.274a2.475 2.475 0 0 0 3.5 3.5z",clipRule:"evenodd"}))},63569:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.5 3.5a2 2 0 0 1 2-2H5a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H3.5a2 2 0 0 1-2-2zm7.5 0a2 2 0 0 1 2-2h1.5a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H11a2 2 0 0 1-2-2z",clipRule:"evenodd"}))},85715:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.5c1.63 0 3.094-.709 4.101-1.835A2.5 2.5 0 0 1 10.25 9.25V9a.75.75 0 0 0-.75-.75 2.25 2.25 0 0 1 0-4.5.75.75 0 0 0 .75-.75v-.02a5.5 5.5 0 0 0-7.471 3.287A2.25 2.25 0 0 1 4.75 8.5c0 .414.336.75.75.75a2.25 2.25 0 0 1 1.265 4.11q.597.139 1.235.14m-3.491-1.25H5.5a.75.75 0 0 0 0-1.5A2.25 2.25 0 0 1 3.25 8.5a.75.75 0 0 0-.744-.75 5.49 5.49 0 0 0 2.003 4.5m8.241-2h.27A5.5 5.5 0 0 0 13.5 8c0-1.665-.74-3.158-1.91-4.166A2.25 2.25 0 0 1 9.5 5.25a.75.75 0 1 0 0 1.5A2.25 2.25 0 0 1 11.75 9v.25a1 1 0 0 0 1 1M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14",clipRule:"evenodd"}))},26064:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("g",{clipPath:"url(#a)"},r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.006 7.134 5.5 2.217a1 1 0 0 0-1.5.866v9.834a1 1 0 0 0 1.5.866l8.506-4.917a1 1 0 0 0 0-1.732m.75 3.03c1.665-.962 1.665-3.366 0-4.329L6.251.918C4.585-.045 2.5 1.158 2.5 3.083v9.834c0 1.925 2.085 3.128 3.751 2.164z",clipRule:"evenodd"})),r.createElement("defs",null,r.createElement("clipPath",{id:"a"},r.createElement("path",{fill:"currentColor",d:"M0 0h16v16H0z"}))))},68005:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 3.5h8A1.5 1.5 0 0 1 13.5 5v2.25h-11V5A1.5 1.5 0 0 1 4 3.5M2.5 8.75V11A1.5 1.5 0 0 0 4 12.5h8a1.5 1.5 0 0 0 1.5-1.5V8.75zM1 5a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3zm2.75.5a.75.75 0 0 1 .75-.75H7a.75.75 0 0 1 0 1.5H4.5a.75.75 0 0 1-.75-.75m.75 4.25a.75.75 0 0 0 0 1.5H7a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},54493:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.5 3h-7A1.5 1.5 0 0 0 3 4.5v7A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5v-7A1.5 1.5 0 0 0 11.5 3m-7-1.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3z",clipRule:"evenodd"}))},15045:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3h7A1.5 1.5 0 0 1 13 4.5v7a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3m-3 1.5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-7a3 3 0 0 1-3-3zm10.092 1.46a.75.75 0 0 0-1.184-.92L7.43 8.869l-1.4-1.4A.75.75 0 0 0 4.97 8.53l2 2a.75.75 0 0 0 1.122-.07z",clipRule:"evenodd"}))},50048:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3A1.5 1.5 0 0 0 3 4.5v1.75a.75.75 0 0 1-1.5 0V4.5a3 3 0 0 1 3-3h1.75a.75.75 0 0 1 0 1.5zM9 2.25a.75.75 0 0 1 .75-.75h1.75a3 3 0 0 1 3 3v1.75a.75.75 0 0 1-1.5 0V4.5A1.5 1.5 0 0 0 11.5 3H9.75A.75.75 0 0 1 9 2.25M2.25 9a.75.75 0 0 1 .75.75v1.75A1.5 1.5 0 0 0 4.5 13h1.75a.75.75 0 0 1 0 1.5H4.5a3 3 0 0 1-3-3V9.75A.75.75 0 0 1 2.25 9m11.5 0a.75.75 0 0 1 .75.75v1.75a3 3 0 0 1-3 3H9.75a.75.75 0 0 1 0-1.5h1.75a1.5 1.5 0 0 0 1.5-1.5V9.75a.75.75 0 0 1 .75-.75",clipRule:"evenodd"}))},83832:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.5 3h-7A1.5 1.5 0 0 0 3 4.5v7A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5v-7A1.5 1.5 0 0 0 11.5 3m-7-1.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3zm4.5 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",clipRule:"evenodd"}))},94709:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3h7A1.5 1.5 0 0 1 13 4.5v7a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3m-3 1.5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-7a3 3 0 0 1-3-3zm4.5.25a.75.75 0 0 0 0 1.5h1.25v4.25a.75.75 0 0 0 1.5 0V6.25H10a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},14660:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3h7A1.5 1.5 0 0 1 13 4.5v7a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3m-3 1.5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-7a3 3 0 0 1-3-3zm4 2.75a.75.75 0 1 0 0 1.5h5a.75.75 0 0 0 0-1.5z",clipRule:"evenodd"}))},92275:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.5 3h7A1.5 1.5 0 0 1 13 4.5v7a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 3 11.5v-7A1.5 1.5 0 0 1 4.5 3m-3 1.5a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-7a3 3 0 0 1-3-3zm5.03.97a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z",clipRule:"evenodd"}))},14675:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(2784);const i=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.25 0a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5zM13 9A5 5 0 1 1 3 9a5 5 0 0 1 10 0m1.5 0a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0m-2.28-7.28a.75.75 0 0 1 1.06 0l1.5 1.5a.75.75 0 0 1-1.06 1.06l-1.5-1.5a.75.75 0 0 1 0-1.06M8.75 6a.75.75 0 0 0-1.5 0v3a.75.75 0 0 0 .3.6l1.333 1a.75.75 0 1 0 .9-1.2L8.75 8.625z",clipRule:"evenodd"}))},15463:(e,t,n)=>{"use strict";n.d(t,{A:()=>Kt,F:()=>Qt,b:()=>R,d:()=>Me,s:()=>M});var r=n(2784),i=n(54368),o=n(93150);const s=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.967 1.5 8 1.5s-1.703.169-2.138.394c-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3s1.703-.169 2.139-.394c.374-.194.364-.32.361-.351M8 4.5c.506 0 .99-.04 1.436-.118l.84 2.352.253.707.717.221c.648.2 1.055.44 1.277.65.192.18.227.31.227.438 0 .14-.055.488-.937.878-.869.384-2.2.622-3.813.622s-2.944-.238-3.813-.622c-.882-.39-.937-.738-.937-.878 0-.128.035-.259.227-.439.222-.209.629-.448 1.277-.649l.717-.221.253-.707.84-2.352c.445.079.93.118 1.436.118m4-2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25",clipRule:"evenodd"})),a=e=>r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 2.255v-.01c.003-.03.013-.157-.361-.35C9.703 1.668 8.967 1.5 8 1.5s-1.703.169-2.138.394c-.375.194-.365.32-.362.351v.01c-.003.03-.013.157.362.35C6.297 2.832 7.033 3 8 3s1.703-.169 2.139-.394c.374-.194.364-.32.361-.351M12 2.25c0 .738-.433 1.294-1.136 1.669l.825 2.31c1.553.48 2.561 1.32 2.561 2.52 0 1.854-2.402 2.848-5.5 2.985V15a.75.75 0 0 1-1.5 0v-3.266c-3.098-.136-5.5-1.131-5.5-2.984 0-1.2 1.008-2.04 2.561-2.52l.825-2.311C4.433 3.544 4 2.988 4 2.25 4 .75 5.79 0 8 0s4 .75 4 2.25",clipRule:"evenodd"}));var l=n(67003),c=n(38461),u=n(28786),d=n(20630),h=n(86224),p=n(97777),f=n(52322),m=n(28316),g=n(1417);function v(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;const y=r.memo((({renderContent:e,size:t})=>r.createElement(r.Fragment,null,e({size:t}))));y.displayName="RenderContent";const b=({size:e,className:t,cssSizeVariableName:n="--gn-aside-header-size",renderContent:i,children:o})=>r.createElement("div",{className:t,style:Object.assign({},{[n]:`${e}px`})},"function"==typeof i?r.createElement(y,{size:e,renderContent:i}):o),w=40,x=r.createContext(void 0);x.displayName="AsideHeaderInnerContext";const _=x.Provider,C=()=>{const e=r.useContext(x);if(void 0===e)throw new Error("AsideHeaderInnerContext is not initialized.\n Please check if you wrapped your component with AsideHeaderInnerContext.Provider");return e},E=r.createContext({compact:!1,size:0});E.displayName="AsideHeaderContext";const S=E.Provider,k=()=>{const e=r.useContext(E);if(void 0===e)throw new Error("AsideHeaderContext is not initialized.\n Please check if you wrapped your component with AsideHeader\n Context.Provider");return e},N="gn-";(0,i.withNaming)({e:"__",m:"_"});const R=(0,i.withNaming)({n:N,e:"__",m:"_"}),I=R("aside-header");function M(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}M('.g-root{--gn-aside-top-panel-height:0px}.gn-aside-header{--gn-aside-header-min-width:56px;--_--item-icon-background-size:38px;--_--background-color:var(--g-color-base-background);--_--decoration-collapsed-background-color:var(--g-color-base-warning-light);--_--decoration-expanded-background-color:var(--g-color-base-warning-light);--_--vertical-divider-line-color:var(--g-color-line-generic);--_--horizontal-divider-line-color:var(--g-color-line-generic);background-color:var(--g-color-base-background);height:100%;position:relative;width:100%}.gn-aside-header__aside{background-color:var(--gn-aside-header-expanded-background-color,var(--gn-aside-header-background-color,var(--_--background-color)));box-sizing:border-box;display:flex;flex-direction:column;height:100vh;left:0;margin-top:var(--gn-top-alert-height,0);max-height:calc(100vh - var(--gn-top-alert-height, 0));position:sticky;top:var(--gn-top-alert-height,0);width:inherit;z-index:var(--gn-aside-header-z-index,100)}.gn-aside-header__aside:after{background-color:var(--gn-aside-header-divider-vertical-color,var(--_--vertical-divider-line-color));content:"";height:100%;position:absolute;right:0;top:0;width:1px;z-index:2}.gn-aside-header__aside-popup-anchor{inset:0;position:absolute;z-index:1}.gn-aside-header__aside-content{--gradient-height:334px;display:flex;flex-direction:column;height:inherit;overflow-x:hidden;padding-top:var(--gn-aside-header-padding-top);position:relative;user-select:none;width:inherit;z-index:2}.gn-aside-header__aside-content>.gn-aside-header-logo{margin:8px 0}.gn-aside-header__aside-content_with-decoration{background:linear-gradient(180deg,var(--gn-aside-header-decoration-expanded-background-color,var(--_--decoration-expanded-background-color)) calc(var(--gradient-height)*.33),transparent calc(var(--gradient-height)*.88))}.gn-aside-header__aside-custom-background{bottom:0;display:flex;position:absolute;top:0;width:var(--gn-aside-header-size);z-index:-1}.gn-aside-header_compact .gn-aside-header__aside{background-color:var(--gn-aside-header-collapsed-background-color,var(--gn-aside-header-background-color,var(--_--background-color)))}.gn-aside-header_compact .gn-aside-header__aside-content{background:transparent}.gn-aside-header__header{--gn-aside-header-header-divider-height:29px;box-sizing:border-box;flex:none;padding-bottom:22px;padding-top:8px;position:relative;width:100%;z-index:1}.gn-aside-header__header .gn-aside-header__header-divider{bottom:0;color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));display:none;left:0;position:absolute;z-index:-2}.gn-aside-header__header_with-decoration:before{background-color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));content:"";display:none;height:calc(100% - var(--gn-aside-header-header-divider-height));left:0;position:absolute;top:0;width:100%;z-index:-2}.gn-aside-header__header:after{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));bottom:12px;content:"";height:1px;left:0;position:absolute;width:100%;z-index:-2}.gn-aside-header_compact .gn-aside-header__header:before,.gn-aside-header_compact .gn-aside-header__header_with-decoration .gn-aside-header__header-divider{display:block}.gn-aside-header_compact .gn-aside-header__header_with-decoration:after{display:none}.gn-aside-header__logo-button .gn-aside-header__logo-icon-place{height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));width:var(--gn-aside-header-min-width)}.gn-aside-header__menu-items{flex-grow:1}.gn-aside-header__footer{display:flex;flex-direction:column;flex-shrink:0;margin:8px 0;width:100%}.gn-aside-header__panels{inset:var(--gn-top-alert-height,0) 0 0;max-height:calc(100vh - var(--gn-top-alert-height, 0));overflow:auto;position:fixed;z-index:var(--gn-aside-header-panel-z-index,98)}.gn-aside-header__panel{height:100%}.gn-aside-header__pane-container{display:flex;flex-direction:row;outline:none;overflow:visible;user-select:text}.gn-aside-header__top-alert{background:var(--g-color-base-background);position:fixed;top:0;width:100%;z-index:var(--gn-aside-header-pane-top-z-index,98)}.gn-aside-header__content{margin-top:var(--gn-top-alert-height,0);width:calc(100% - var(--gn-aside-header-size));z-index:var(--gn-aside-header-content-z-index,95)}');const A=r.lazy((()=>n.e(641).then(n.bind(n,2641)).then((e=>({default:e.TopAlert}))))),O=Object.assign((({compact:e,className:t,children:n,topAlert:i})=>{const o=e?56:236,s=(0,r.useMemo)((()=>({size:o,compact:e})),[e,o]);return r.createElement(S,{value:s},r.createElement("div",{className:I({compact:e},t),style:Object.assign({},{"--gn-aside-header-size":`${o}px`})},i&&r.createElement(r.Suspense,{fallback:null},r.createElement(A,{className:I("top-alert"),alert:i})),r.createElement("div",{className:I("pane-container")},n)))}),{Content:({children:e,renderContent:t})=>{const{size:n}=k();return r.createElement(b,{size:n,className:I("content"),renderContent:t},e)}});M(".gn-all-pages-list-item{align-items:center;background:none;border:none;color:inherit;column-gap:var(--g-spacing-4);display:flex;font:inherit;height:40px;outline:inherit;padding:0 var(--g-spacing-6);text-decoration:inherit;width:100%}.gn-all-pages-list-item:focus-visible{outline:solid var(--g-color-line-misc);outline-offset:-2px}.gn-all-pages-list-item__text{flex:1;text-align:initial}.gn-all-pages-list-item__icon{color:var(--g-color-text-misc)}.gn-all-pages-list-item_edit-mode{padding:0 0 0 var(--g-spacing-4)}");const T=R("all-pages-list-item"),z=e=>{const{item:t,editMode:n,onToggle:i}=e,l=(0,r.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),i()}),[i]),[c,u]=t.link?["a",{href:t.link}]:["button",{}];return r.createElement(c,Object.assign({},u,{className:T(),onClick:e=>{n&&(e.stopPropagation(),e.preventDefault())}}),t.icon?r.createElement(o.JO$,{className:T("icon"),data:t.icon,size:t.iconSize}):null,r.createElement("span",{className:T("text")},t.title),n&&!t.preventUserRemoving&&r.createElement(o.zxk,{onClick:l,view:t.hidden?"flat-secondary":"flat-action"},r.createElement(o.zxk.Icon,null,t.hidden?r.createElement(s,null):r.createElement(a,null))))};var D=(0,p.e)({en:{"menu-item.all-pages.title":"All pages","all-panel.menu.category.allOther":"All other","all-panel.resetToDefault":"Reset to default","all-panel.title.editing":"Configuring the menu bar","all-panel.title.main":"All pages"},ru:{"menu-item.all-pages.title":"Все страницы","all-panel.menu.category.allOther":"Остальное","all-panel.resetToDefault":"Сбросить по умолчанию","all-panel.title.editing":"Настройка панели меню","all-panel.title.main":"Все страницы"}},`${N}AllPagesPanel`);const j="all-pages";M(".gn-all-pages-panel{box-sizing:border-box;height:100%;min-width:300px;padding:var(--g-spacing-4) var(--g-spacing-6)}.gn-all-pages-panel__content{flex:1;margin:0 calc(var(--g-spacing-6)*-1);overflow:auto}.gn-all-pages-panel__category{padding:0 var(--g-spacing-6)}.gn-all-pages-panel__discoverable-feature-wrapper{display:flex}.gn-all-pages-panel__item_editMode{padding:0 var(--g-spacing-6)}.gn-all-pages-panel__drag-placeholder{text-wrap:nowrap;padding-left:88px;padding-right:68px;visibility:hidden}");const P=R("all-pages-panel"),L=e=>{const{startEditIcon:t,onEditModeChanged:n,className:i}=e,{menuItems:s,defaultMenuItems:a,onMenuItemsChanged:l,editMenuProps:u}=C(),d=(0,r.useRef)(s);d.current=s;const[h,p]=(0,r.useState)(!1),[f,m]=(0,r.useState)(null),g=(0,r.useCallback)((()=>{p((e=>!e))}),[]),v=(e=>{const t=(0,r.useMemo)((()=>{const t=e.filter((e=>"divider"!==e.type&&e.id!==j));return t.sort(((e,t)=>"action"===e.type?1:"action"===t.type?-1:0)),t.reduce(((e,t)=>{const n=t.category||D("all-panel.menu.category.allOther");return e[n]||(e[n]=[]),e[n].push(t),e}),{})}),[e]);return t})(s);(0,r.useEffect)((()=>{var e;null==n||n(h),h&&(null===(e=null==u?void 0:u.onOpenEditMode)||void 0===e||e.call(u))}),[h,n,u]);const y=(0,r.useCallback)((e=>{var t;null===(t=e.onItemClick)||void 0===t||t.call(e,e,!1)}),[]),b=(0,r.useCallback)((e=>{var t;if(!l)return;const n=Object.assign(Object.assign({},e),{hidden:!e.hidden}),r=d.current.filter((e=>e.id!==j));null===(t=null==u?void 0:u.onToggleMenuItem)||void 0===t||t.call(u,n),l(r.map((e=>e.id!==n.id?e:n)))}),[l,u]),w=(0,r.useCallback)((()=>{m(null)}),[m]),x=(0,r.useCallback)(((e,t,n)=>r.createElement(z,{item:e,onDragStart:()=>{m(e.title)},onDragEnd:w,editMode:h,onToggle:()=>b(e),enableSorting:null==u?void 0:u.enableSorting})),[h,b,w,m,u]),_=(0,r.useCallback)((()=>{var e;if(!l)return;null===(e=null==u?void 0:u.onResetSettingsToDefault)||void 0===e||e.call(u);const t=null==a?void 0:a.filter((e=>e.id!==j));t&&l(t)}),[l,u,a]),E=(0,r.useCallback)((({oldIndex:e,newIndex:t})=>{var n;const r=d.current.filter((e=>e.id!==j)),i=r.splice(e,1)[0];r.splice(t,0,i),null==l||l(r.filter((e=>"divider"!==e.type))),m(null),null===(n=null==u?void 0:u.onChangeItemsOrder)||void 0===n||n.call(u,i,e,t)}),[l,u]),S=(0,r.useMemo)((()=>d.current.filter((e=>e.id!==j&&!e.afterMoreButton&&"divider"!==e.type))),[s]);return r.createElement(o.kCb,{className:P(null,i),gap:"5",direction:"column"},r.createElement(o.kCb,{gap:"4",alignItems:"center",justifyContent:"space-between"},r.createElement(o.xvT,{variant:"subheader-2"},D(h?"all-panel.title.editing":"all-panel.title.main")),r.createElement(o.ua7,{content:D("all-panel.title.editing")},r.createElement(o.zxk,{selected:h,view:"normal",onClick:g},t||r.createElement(o.JO$,{data:c.Z})))),r.createElement(o.kCb,{className:P("content"),gap:"5",direction:"column"},h&&(null==u?void 0:u.enableSorting)?r.createElement("div",null,r.createElement(o.aVo,{itemClassName:P("item",{editMode:!0}),itemHeight:40,onSortEnd:E,sortable:!0,virtualized:!1,filterable:!1,items:S,onItemClick:y,renderItem:x}),f&&r.createElement("div",{className:P("drag-placeholder")},f)):Object.keys(v).map((e=>r.createElement(o.kCb,{key:e,direction:"column",gap:"3"},r.createElement(o.xvT,{className:P("category"),variant:"body-1",color:"secondary"},e),r.createElement(o.aVo,{virtualized:!1,filterable:!1,items:v[e],onItemClick:y,renderItem:x}))))),h&&r.createElement(o.zxk,{onClick:_},D("all-panel.resetToDefault")))};let F;F="undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g;let B=null,U=null;const W=F.clearTimeout,V=F.setTimeout,H=F.cancelAnimationFrame||F.mozCancelAnimationFrame||F.webkitCancelAnimationFrame,Z=F.requestAnimationFrame||F.mozRequestAnimationFrame||F.webkitRequestAnimationFrame;function Y(e){let t,n,r,i,o,s,a;const l="undefined"!=typeof document&&document.attachEvent;if(!l){s=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},a=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;s(this),this.__resizeRAF__&&B(this.__resizeRAF__),this.__resizeRAF__=U((function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(o,c){if(l)o.attachEvent("onresize",c);else{if(!o.__resizeTriggers__){const l=o.ownerDocument,c=F.getComputedStyle(o);c&&"static"===c.position&&(o.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],s=n.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=r:s.appendChild(n.createTextNode(r)),o.appendChild(s)}}(l),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",o.__resizeTriggers__.appendChild(u),o.__resizeTriggers__.appendChild(d),o.appendChild(o.__resizeTriggers__),s(o),o.addEventListener("scroll",a,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&s(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==H||null==Z?(B=W,U=function(e){return V(e,20)}):(B=function([e,t]){H(e),W(t)},U=function(e){const t=Z((function(){W(n),e()})),n=V((function(){H(t),e()}),20);return[t,n]});class G extends r.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),o=parseFloat(r.paddingRight||"0"),s=parseFloat(r.paddingTop||"0"),a=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-s-a,u=l.width-i-o,d=this._parentNode.offsetHeight-s-a,h=this._parentNode.offsetWidth-i-o;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===h&&this.state.scaledWidth===u)||(this.setState({height:d,width:h,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:h}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=Y(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:s=!1,nonce:a,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:h,scaledHeight:p,scaledWidth:f,width:m}=this.state,g={overflow:"visible"},v={};let y=!1;return i||(0===h&&(y=!0),g.height=0,v.height=h,v.scaledHeight=p),o||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=f),s&&(y=!1),(0,r.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!y&&e(v))}}var q,$,X,K,J,Q,ee,te,ne,re,ie,oe,se,ae,le,ce,ue,de,he,pe,fe,me,ge,ve,ye,be,we,xe,_e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function Ce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ee(){if($)return q;return $=1,q=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function Se(){if(Q)return J;Q=1;var e=function(){if(K)return X;K=1;var e="object"==typeof _e&&_e&&_e.Object===Object&&_e;return X=e}(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return J=n}function ke(){if(oe)return ie;oe=1;var e=function(){if(re)return ne;re=1;var e=/\s/;return ne=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n},ne}(),t=/^\s+/;return ie=function(n){return n?n.slice(0,e(n)+1).replace(t,""):n}}function Ne(){if(ae)return se;ae=1;var e=Se().Symbol;return se=e}function Re(){if(pe)return he;pe=1;var e=Ne(),t=function(){if(ce)return le;ce=1;var e=Ne(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return le=function(e){var t=n.call(e,i),o=e[i];try{e[i]=void 0;var s=!0}catch(e){}var a=r.call(e);return s&&(t?e[i]=o:delete e[i]),a}}(),n=function(){if(de)return ue;de=1;var e=Object.prototype.toString;return ue=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return he=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function Ie(){if(ve)return ge;ve=1;var e=Re(),t=me?fe:(me=1,fe=function(e){return null!=e&&"object"==typeof e});return ge=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}var Me=Ce(function(){if(xe)return we;xe=1;var e=Ee(),t=function(){if(te)return ee;te=1;var e=Se();return ee=function(){return e.Date.now()}}(),n=function(){if(be)return ye;be=1;var e=ke(),t=Ee(),n=Ie(),r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;return ye=function(a){if("number"==typeof a)return a;if(n(a))return NaN;if(t(a)){var l="function"==typeof a.valueOf?a.valueOf():a;a=t(l)?l+"":l}if("string"!=typeof a)return 0===a?a:+a;a=e(a);var c=i.test(a);return c||o.test(a)?s(a.slice(2),c?2:8):r.test(a)?NaN:+a}}(),r=Math.max,i=Math.min;return we=function(o,s,a){var l,c,u,d,h,p,f=0,m=!1,g=!1,v=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function y(e){var t=l,n=c;return l=c=void 0,f=e,d=o.apply(n,t)}function b(e){var t=e-p;return void 0===p||t>=s||t<0||g&&e-f>=u}function w(){var e=t();if(b(e))return x(e);h=setTimeout(w,function(e){var t=s-(e-p);return g?i(t,u-(e-f)):t}(e))}function x(e){return h=void 0,v&&l?y(e):(l=c=void 0,d)}function _(){var e=t(),n=b(e);if(l=arguments,c=this,p=e,n){if(void 0===h)return function(e){return f=e,h=setTimeout(w,s),m?y(e):d}(p);if(g)return clearTimeout(h),h=setTimeout(w,s),y(p)}return void 0===h&&(h=setTimeout(w,s)),d}return s=n(s)||0,e(a)&&(m=!!a.leading,u=(g="maxWait"in a)?r(n(a.maxWait)||0,s):u,v="trailing"in a?!!a.trailing:v),_.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=c=h=void 0},_.flush=function(){return void 0===h?d:x(t())},_}}());M('.gn-composite-bar-highlighted-item{--_--background-color:var(--g-color-base-background);--_--item-icon-background-size:38px;--_--item-background-color-hover:var(--g-color-base-selection-hover);--_--item-selected-background-color-active:var(--g-color-base-selection);display:flex;justify-content:center;position:absolute;z-index:10000}.gn-composite-bar-highlighted-item__icon{align-items:center;background-color:var(--gn-aside-header-background-color,var(--_--background-color));border-radius:7px;box-shadow:0 8px 20px 0 var(--g-color-sfx-shadow);cursor:pointer;display:flex;height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));justify-content:center;overflow:hidden;position:relative;transform:translateY(1px);width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-composite-bar-highlighted-item__icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));content:"";height:100%;position:absolute;width:100%;z-index:-1}.gn-composite-bar-highlighted-item__icon:hover:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover))}');const Ae=R("composite-bar-highlighted-item"),Oe=({iconRef:e,iconNode:t,onClick:n,onClickCapture:i})=>{const{openModalSubscriber:s}=C(),[{top:a,left:l,width:c,height:u},d]=(0,r.useState)({top:0,left:0,width:0,height:0}),[h,p]=(0,r.useState)(!1),f=(0,r.useMemo)((()=>Me((()=>{var t;const{top:n=0,left:r=0,width:i=0,height:o=0}=(null===(t=null==e?void 0:e.current)||void 0===t?void 0:t.getBoundingClientRect())||{};d({top:n+window.scrollY,left:r+window.scrollX,width:i,height:o})}),200,{leading:!0})),[e]),m=(0,r.useCallback)((()=>f()),[f]);return(0,r.useEffect)((()=>{if(h)return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)}),[m,h]),null==s||s((e=>{p(e)})),t&&h?r.createElement(o.h_i,null,r.createElement("div",{className:Ae(),style:{left:l,top:a,width:c,height:u},onClick:n,onClickCapture:i,"data-toast":!0},r.createElement("div",{className:Ae("icon")},t))):null};Oe.displayName="HighlightedItem";const Te="collapse-item-id",ze=["right-start","right-end","right"];function De(e){if(!Le(e))return w;switch(e.type){case"action":return 50;case"divider":return 15;default:return w}}function je(e){return e.reduce(((e,t)=>e+De(t)),0)}function Pe(e){const t=e.findIndex((({current:e})=>Boolean(e)));return-1===t?void 0:t}function Le(e){return void 0!==(null==e?void 0:e.id)}M('.gn-composite-bar-item{--gn-composite-bar-item-action-size:36px;--_--horizontal-divider-line-color:var(--g-color-line-generic);--_--item-background-color-hover:var(--g-color-base-simple-hover);--_--item-general-icon-color:var(--g-color-text-primary);--_--item-icon-color:var(--g-color-text-complementary);--_--item-text-color:var(--g-color-text-primary);--_--item-collapsed-radius:7px;--_--item-selected-text-color:var(--g-color-text-primary);--_--item-selected-background-color:var(--g-color-base-selection);align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;font:inherit;height:100%;min-width:0;outline:inherit;padding:0;text-decoration:inherit;width:100%}.gn-composite-bar-item:focus-visible{outline:solid var(--g-color-line-misc);outline-offset:-2px}.gn-composite-bar-item__icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color))}.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-item-icon-color,var(--_--item-icon-color)))}.gn-composite-bar-highlighted-item .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item__icon,.gn-footer-item .gn-composite-bar-item__icon{color:var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color))}.gn-composite-bar-highlighted-item.gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-footer-item.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color)))}.gn-composite-bar-item__icon-tooltip .g-action-tooltip__description{color:var(--g-color-text-light-primary);margin-block-start:0}.gn-composite-bar-item__icon-place{align-items:center;display:flex;flex-shrink:0;height:100%;justify-content:center;width:var(--gn-aside-header-min-width)}.gn-composite-bar-item__title{align-items:center;display:flex;margin-right:16px;overflow:hidden}.gn-composite-bar-item__title-text{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:var(--gn-aside-header-item-text-color,var(--_--item-text-color));display:-webkit-box;overflow:hidden;text-align:start}.gn-composite-bar-item_current .gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-current-text-color,var(--_--item-selected-text-color))}.gn-composite-bar-item__title-adornment{margin:0 10px}.gn-composite-bar-item__collapse-item{--_--item-icon-color:var(--g-color-text-misc);align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;font:inherit;height:100%;outline:inherit;padding:0 16px;text-decoration:inherit;width:100%}.gn-composite-bar-item__collapse-item:focus-visible{outline:solid var(--g-color-line-misc);outline-offset:-2px}.gn-composite-bar-item__collapse-item-icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color));margin-right:10px}.gn-composite-bar-item__collapse-item .gn-composite-bar-item__title-adornment{margin-right:0}.gn-composite-bar-item__menu-divider{border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));cursor:default;margin:0 8px;width:100%}.gn-composite-bar-item__collapse-items-popup-content{padding:4px 0}.gn-composite-bar-item__link{align-items:center;display:flex;height:100%;width:100%}.gn-composite-bar-item__link,.gn-composite-bar-item__link:active,.gn-composite-bar-item__link:focus,.gn-composite-bar-item__link:hover,.gn-composite-bar-item__link:visited{color:inherit;outline:none;text-decoration:none}.gn-composite-bar-item__btn-icon{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.gn-composite-bar-item_type_action{background:var(--g-color-base-float);border-radius:var(--gn-composite-bar-item-action-size);box-shadow:0 0 0 1px rgba(0,0,0,.03),0 5px 6px rgba(0,0,0,.12);height:var(--gn-composite-bar-item-action-size);justify-content:center;margin:0 10px 8px;transition:transform .1s ease-out,background-color .15s linear}.gn-composite-bar-item_type_action:focus-visible{box-shadow:0 0 0 2px var(--g-color-line-misc)}.gn-composite-bar-item_type_action:hover{background-color:var(--g-color-base-float-hover)}.gn-composite-bar-item_type_action:active{box-shadow:0 1px 2px var(--g-color-sfx-shadow);transform:scale(.96);transition:none}.gn-composite-bar-item_type_action .gn-composite-bar-item__icon-place{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item__icon-tooltip_item-type_action{margin-left:10px}.gn-composite-bar-item:not(.gn-composite-bar-item_compact).gn-composite-bar-item_current.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color)));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin:0}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color)));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}');const Fe=R("composite-bar-item");function Be(e){let t=r.createElement("div",{className:Fe("title-text")},e.title);return e.rightAdornment&&(t=r.createElement(r.Fragment,null,t,r.createElement("div",{className:Fe("title-adornment")},e.rightAdornment))),t}const Ue=["right-end"],We={mainAxis:8,crossAxis:-20},Ve=e=>{const{item:t,className:n,collapseItems:i,onMouseLeave:s,onMouseEnter:a,enableTooltip:l=!0,popupVisible:c=!1,popupAnchor:u,popupAnchorElement:d,popupPlacement:h=Ue,popupOffset:p=We,popupKeepMounted:f,renderPopupContent:m,onClosePopup:g,onOpenChangePopup:v,onItemClick:y,onItemClickCapture:b,onCollapseItemClick:w,bringForward:x}=e,{compact:_}=k(),[C,E]=r.useState(!1),S=r.useRef(null),N=d?{current:d}:u||S,R=r.useRef(null),I=t.type||"regular",M=t.current||!1,A=t.tooltipText||t.title,O=t.icon,T=t.iconSize||18,z=t.iconQa,D=t.id===Te,j=r.useCallback((e=>{var t;e instanceof MouseEvent&&e.target&&(null===(t=S.current)||void 0===t?void 0:t.contains(e.target))||null==g||g()}),[g]),P=r.useCallback(((e,t,n)=>{var r;t instanceof MouseEvent&&t.target&&(null===(r=S.current)||void 0===r?void 0:r.contains(t.target))||null==v||v(e,t,n)}),[g]);if("divider"===t.type)return r.createElement("div",{className:Fe("menu-divider")});const L=e=>_?r.createElement(o.M8Z,{title:"",description:A,disabled:!l||D&&C||c,placement:"right",className:Fe("icon-tooltip",{"item-type":I})},r.createElement("div",{onMouseEnter:()=>null==a?void 0:a(),onMouseLeave:()=>null==s?void 0:s(),className:Fe("btn-icon")},e)):e,F=({icon:e,title:i})=>{const[l,u]=t.link?["a",{href:t.link}]:["button",{}];return r.createElement(r.Fragment,null,r.createElement(l,Object.assign({},u,{className:Fe({type:I,current:M,compact:_},n),ref:S,"data-qa":t.qa,onClick:e=>{D?(E(!C),null==w||w()):null==y||y(t,!1,e)},onClickCapture:b,onMouseEnter:()=>{_||null==a||a()},onMouseLeave:()=>{_||null==s||s()}}),r.createElement("div",{className:Fe("icon-place"),ref:R},L(e)),r.createElement("div",{className:Fe("title"),title:"string"==typeof t.title?t.title:void 0},i)),m&&Boolean(null==N?void 0:N.current)&&r.createElement(o.GIS,{strategy:"fixed",open:c,keepMounted:f,placement:h,offset:p,anchorRef:N,onClose:j,onOpenChange:P},m()))},B=O?r.createElement(o.JO$,{qa:z,data:O,size:T,className:Fe("icon")}):null,U={icon:B,title:Be(t)};let W,V=null;const H={compact:Boolean(_),collapsed:!1,item:t,ref:S};return"function"==typeof t.itemWrapper?(W=t.itemWrapper(U,F,H),V=x&&t.itemWrapper(U,(({icon:e})=>L(e)),H)):(W=F(U),V=x&&L(B)),r.createElement(r.Fragment,null,x&&r.createElement(Oe,{iconNode:V,iconRef:R,onClick:e=>null==y?void 0:y(t,!1,e),onClickCapture:b}),W,C&&D&&(null==i?void 0:i.length)&&Boolean(null==N?void 0:N.current)&&r.createElement(He,Object.assign({},e,{anchorRef:S,onClose:()=>E(!1)})))};function He({onItemClick:e,collapseItems:t,anchorRef:n,onClose:i}){const{compact:s}=k();return(null==t?void 0:t.length)?r.createElement(o.GIS,{strategy:"fixed",placement:ze,open:!0,anchorRef:n,onClose:i},r.createElement("div",{className:Fe("collapse-items-popup-content")},r.createElement(o.aVo,{itemClassName:Fe("root-collapse-item"),items:t,selectedItemIndex:Pe(t),itemHeight:28,itemsHeight:28*t.length,virtualized:!1,filterable:!1,sortable:!1,onItemClick:i,renderItem:t=>{const i=({title:n,icon:i})=>{const[o,s]=t.link?["a",{href:t.link}]:["button",{}];return r.createElement(o,Object.assign({},s,{className:Fe("collapse-item"),onClick:n=>{null==e||e(t,!0,n)}}),i,n)},a={title:Be(t),icon:t.icon&&r.createElement(o.JO$,{data:t.icon,size:14,className:Fe("collapse-item-icon")})},l={compact:Boolean(s),collapsed:!0,item:t,ref:n};return"function"==typeof t.itemWrapper?t.itemWrapper(a,i,l):i(a)}}))):null}Ve.displayName="Item";const Ze={active:!1,activeIndex:void 0,hideCollapseItemTooltip:!1,lastClickedItemIndex:void 0,setValue:()=>{}},Ye=r.createContext(Ze);class Ge extends r.PureComponent{constructor(){super(...arguments),this.state=Object.assign({},Ze),this.setValue=e=>{this.setState(Object.assign({},e))}}render(){const{children:e}=this.props;return r.createElement(Ye.Provider,{value:Object.assign(Object.assign({},this.state),{setValue:this.setValue})},e)}}M('.g-root_theme_dark .gn-multiple-tooltip,.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-100-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(16px)}.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-150-solid)\n )}.g-root_theme_light .gn-multiple-tooltip,.g-root_theme_light-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-black-550-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(12px)}.gn-multiple-tooltip:before{background:var(--multiple-tooltip-backdrop-background);box-shadow:none;content:"";filter:var(--multiple-tooltip-backdrop-filter);height:100%;opacity:.7;position:absolute;width:100%;z-index:-1}.gn-multiple-tooltip__popup{--g-popup-background-color:transparent;--g-popup-border-color:transparent;--g-popup-border-width:0;background-color:transparent;box-shadow:none}.gn-multiple-tooltip__items-container{align-items:flex-start;display:flex;flex-direction:column;padding:32px 40px 32px 12px}.gn-multiple-tooltip__item{align-items:center;background-color:var(--multiple-tooltip-item-bg-color);border-radius:5px;box-sizing:border-box;color:var(--g-color-text-light-primary);display:flex;height:30px;margin-bottom:5px;padding:8px 12px;position:relative;transition:transform .1s ease-in-out}.gn-multiple-tooltip__item:first-child,.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider)+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:5px}.gn-multiple-tooltip__item_divider+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:4px}.gn-multiple-tooltip__item_active{background-color:var(--multiple-tooltip-item-active-bg-color);transform:translateX(-12px)}.gn-multiple-tooltip__item_divider{height:15px;margin:0;visibility:hidden}');const qe=R("multiple-tooltip"),$e={mainAxis:4,crossAxis:-32},Xe=({items:e,open:t,anchorRef:n,placement:i})=>{const{activeIndex:s,hideCollapseItemTooltip:a}=r.useContext(Ye),l=void 0===s?null:e[s];return r.createElement(o.GIS,{open:t,className:qe("popup"),anchorRef:n,strategy:"fixed",placement:i,offset:$e},r.createElement("div",{className:qe()},r.createElement("div",{className:qe("items-container")},e.filter((({type:e="regular",id:t})=>!a||t!==Te&&"action"!==e)).map(((e,t)=>"divider"===e.type?r.createElement("div",{className:qe("item",{divider:!0}),key:t},e.title):r.createElement("div",{className:qe("item",{active:e===l}),key:t},e.title))))))};M(".gn-composite-bar{flex:1 0 auto;min-height:40px;width:100%}.gn-composite-bar .gn-composite-bar__root-menu-item[class]{background-color:transparent}");const Ke=R("composite-bar"),Je=({type:e,items:t,onItemClick:n,onMoreClick:i,collapseItems:s,multipleTooltip:a=!1})=>{const l=(0,r.useRef)(null),c=(0,r.useRef)(null),{setValue:u,active:d,activeIndex:h,lastClickedItemIndex:p}=(0,r.useContext)(Ye),{compact:f}=k();r.useEffect((()=>{function e(){a&&d&&u({active:!1})}return window.addEventListener("blur",e),()=>{window.removeEventListener("blur",e)}}),[a,d,u]);const m=(0,r.useCallback)((e=>{a&&f&&!d&&document.hasFocus()&&h!==p&&e.clientX<=56&&(null==u||u({active:!0}))}),[a,f,d,h,p,u]),g=(0,r.useCallback)((()=>{a&&d&&document.hasFocus()&&(null==u||u({active:!1,lastClickedItemIndex:void 0}))}),[a,d,u]),v=(0,r.useCallback)((e=>()=>{if(a&&document.hasFocus()){let t=d;if(d||e===p||(t=!0),h===e&&d===t)return;u({activeIndex:e,active:t})}}),[a,d,p,h,u]),y=(0,r.useCallback)((()=>{var e;f&&document.hasFocus()&&(null===(e=l.current)||void 0===e||e.activateItem(void 0),!a||void 0===h&&void 0===p||u({activeIndex:void 0,lastClickedItemIndex:void 0}))}),[h,f,p,a,u]),b=(0,r.useCallback)((e=>(t,r,i)=>{f&&a&&e!==p&&t.id!==Te&&u({lastClickedItemIndex:e,active:!1}),null==n||n(t,r,i)}),[f,p,a,n,u]);return r.createElement(r.Fragment,null,r.createElement("div",{ref:c,onMouseEnter:m,onMouseLeave:g},r.createElement(o.aVo,{ref:l,items:t,selectedItemIndex:"menu"===e?Pe(t):void 0,itemHeight:De,itemsHeight:je,itemClassName:Ke("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:(e,t,n)=>{const o=Le(e)?{item:e}:e,l=Le(e)?!a:e.enableTooltip;return r.createElement(Ve,Object.assign({},o,{enableTooltip:l,onMouseEnter:v(n),onMouseLeave:y,onItemClick:b(n),onCollapseItemClick:i,collapseItems:s}))}})),"menu"===e&&a&&r.createElement(Xe,{open:f&&d,anchorRef:c,placement:["right-start"],items:t}))},Qe=({type:e,items:t,menuMoreTitle:n,onItemClick:i,onMoreClick:o,multipleTooltip:s=!1})=>{if(0===t.length)return null;let a;if("menu"===e){const e=function(e){const t=function(e){const t=[];for(const n of e)(n.pinned||"divider"===n.type&&t.length>0&&"divider"!==t[t.length-1].type)&&t.push(n);return t}(e),n=e.filter((e=>e.afterMoreButton));return je(t)+je(n)+(t.length===e.length?0:w)}(t),c=function(e){return{id:Te,title:e,icon:l.Z,iconSize:18}}(n);a=r.createElement("div",{className:Ke({autosizer:!0}),style:{minHeight:e}},0!==t.length&&r.createElement(G,null,(e=>{const n=Number.isNaN(e.width)?0:e.width,a=Number.isNaN(e.height)?0:e.height,{listItems:l,collapseItems:u}=function(e,t,n){var r,i,o;const s=e.filter((e=>e.afterMoreButton)),a=e.filter((e=>!e.afterMoreButton)),l=[...a,...s],c=je(l);if(c<=t)return{listItems:l,collapseItems:[]};const u=De(n);l.splice(a.length,0,n);const d=[];let h=c+u,p=l.length;for(;h>t&&0!==p;){p--;const e=l[p];e.pinned||e.id===Te||e.afterMoreButton||("divider"!==e.type?(h-=De(e),d.unshift(...l.splice(p,1))):p+1<l.length&&"divider"===(null===(r=l[p+1])||void 0===r?void 0:r.type)&&(h-=De(e),l.splice(p,1)))}return"divider"!==(null===(i=l[p])||void 0===i?void 0:i.type)||0!==p&&"divider"!==(null===(o=l[p-1])||void 0===o?void 0:o.type)||l.splice(p,1),{listItems:l,collapseItems:d}}(t,a,c);return r.createElement("div",{style:{width:n,height:a}},r.createElement(Je,{type:"menu",items:l,onItemClick:i,onMoreClick:o,collapseItems:u,multipleTooltip:s}))})))}else a=r.createElement("div",{className:Ke({subheader:!0})},r.createElement(Je,{type:"subheader",items:t,onItemClick:i}));return r.createElement(Ge,null,a)};var et={button_collapse:"Collapse",button_expand:"Expand",label_more:"More"},tt={button_collapse:"Свернуть",button_expand:"Развернуть",label_more:"Ещё"};var nt,rt=(0,p.e)({en:et,ru:tt},`${N}AsideHeader`);function it(){return it=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},it.apply(null,arguments)}var ot=function(e){return r.createElement("svg",it({xmlns:"http://www.w3.org/2000/svg",width:8,height:8,fill:"currentColor",viewBox:"0 0 8 8"},e),nt||(nt=r.createElement("path",{d:"m.72 7.64 6.39-3.2a.5.5 0 0 0 0-.89L.72.36A.5.5 0 0 0 0 .81v6.38c0 .37.4.61.72.45"})))};M('.gn-collapse-button{--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;align-items:center;background:none;border:none;border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));box-sizing:content-box;color:inherit;cursor:pointer;display:flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;min-height:20px;outline:none;padding:0;position:relative;width:100%}.gn-collapse-button:before{content:"";inset:0 2px 2px;position:absolute;z-index:-1}.gn-collapse-button:focus-visible:before{outline:var(--_--focus-outline-color) solid 2px;outline-offset:var(--_--focus-outline-offset)}.gn-collapse-button:not(.gn-collapse-button_compact) .gn-collapse-button__icon{transform:rotate(180deg)}.gn-collapse-button:hover .gn-collapse-button__icon{color:var(--g-color-text-primary)}.gn-collapse-button__icon{color:var(--g-color-text-secondary)}');const st=R("collapse-button"),at=({className:e})=>{const{onChangeCompact:t,compact:n,expandTitle:i,collapseTitle:s}=C(),a=(0,r.useCallback)((()=>{null==t||t(!n)}),[n,t]),l=n?i||rt("button_expand"):s||rt("button_collapse");return r.createElement("button",{className:st({compact:n},e),onClick:a,title:l},r.createElement(o.JO$,{data:ot,className:st("icon"),width:"16",height:"10"}))};M(".gn-logo{height:40px}.gn-logo,.gn-logo__btn-logo{align-items:center;display:flex}.gn-logo__btn-logo{cursor:pointer;flex-shrink:0;justify-content:center}.gn-logo__btn-logo,.gn-logo__btn-logo:active,.gn-logo__btn-logo:focus,.gn-logo__btn-logo:hover,.gn-logo__btn-logo:visited{color:inherit;outline:none;text-decoration:none}.gn-logo__btn-logo:focus-visible{outline:solid var(--g-color-line-misc);outline-offset:-2px}.gn-logo__logo-icon-place{align-items:center;display:flex;justify-content:center;width:36px}");const lt=R("logo"),ct=({text:e,icon:t,iconSrc:n,iconClassName:i,iconPlaceClassName:s,iconSize:a=24,textSize:l=15,href:c,target:u="_self",wrapper:d,onClick:h,compact:p,className:f,buttonClassName:m,"aria-label":g,"aria-labelledby":y})=>{const b="function"==typeof d;let w,x;n?w=r.createElement("span",{className:i},r.createElement("img",{alt:"logo icon",src:n,width:a,height:a})):t&&(w=r.createElement(o.JO$,{data:t,size:a,className:i})),x="function"==typeof e?e():r.createElement("div",{className:lt("logo"),style:{fontSize:l}},e);const _=c?{tag:"a",target:u,rel:"_self"===u?void 0:"noreferrer",href:c,"aria-label":g,"aria-labelledby":y}:{tag:"span"},{tag:C}=_,E=v(_,["tag"]),S=r.createElement(C,Object.assign({},E,{className:lt("btn-logo",m),onClick:h}),r.createElement("span",{className:lt("logo-icon-place",s)},w),!p&&x);return r.createElement("div",{className:lt(null,f)},b?d(S,Boolean(p)):S)};var ut;function dt(){return dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dt.apply(null,arguments)}var ht=function(e){return r.createElement("svg",dt({xmlns:"http://www.w3.org/2000/svg",width:56,height:29,fill:"currentColor",viewBox:"0 0 56 29"},e),ut||(ut=r.createElement("path",{d:"M56 0v29c-.8-1-7-6.1-17.7-8.4L13 15.7A16 16 0 0 1 0 0Z"})))};const pt=[],ft=()=>{const{logo:e,onItemClick:t,onClosePanel:n,headerDecoration:i,subheaderItems:s}=C(),{compact:a}=k(),l=(0,r.useCallback)((t=>{var r;null==n||n(),null===(r=null==e?void 0:e.onClick)||void 0===r||r.call(e,t)}),[n,e]);return r.createElement("div",{className:I("header",{"with-decoration":i})},e&&r.createElement(ct,Object.assign({},e,{onClick:l,compact:a,buttonClassName:I("logo-button"),iconPlaceClassName:I("logo-icon-place")})),r.createElement(Qe,{type:"subheader",items:s||pt,onItemClick:t}),i&&r.createElement(o.JO$,{data:ht,className:I("header-divider"),width:56,height:29}))};var mt="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;let gt=0;function vt(){const e=/iP(hone|ad|od)|iOS/.test(function(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,i=t.left?parseFloat(t.left):window.scrollX,o=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var s,a;const e=(null==(s=window.visualViewport)?void 0:s.offsetLeft)||0,n=(null==(a=window.visualViewport)?void 0:a.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(o-Math.floor(n))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(i,o))}}let yt=()=>{};const bt=r.forwardRef((function(e,t){const{lockScroll:n=!1,...r}=e;return mt((()=>{if(n)return gt++,1===gt&&(yt=vt()),()=>{gt--,0===gt&&yt()}}),[n]),(0,f.jsx)("div",{ref:t,...r,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}})}));function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wt.apply(null,arguments)}function xt(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function _t(e,t){return _t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_t(e,t)}function Ct(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_t(e,t)}function Et(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var St=!1,kt=r.createContext(null),Nt=function(e){return e.scrollTop},Rt="unmounted",It="exited",Mt="entering",At="entered",Ot="exiting",Tt=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=It,r.appearStatus=Mt):i=At:i=t.unmountOnExit||t.mountOnEnter?Rt:It,r.state={status:i},r.nextCallback=null,r}Ct(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Rt?{status:It}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Mt&&n!==At&&(t=Mt):n!==Mt&&n!==At||(t=Ot)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Mt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:m.findDOMNode(this);n&&Nt(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===It&&this.setState({status:Rt})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[m.findDOMNode(this),r],o=i[0],s=i[1],a=this.getTimeouts(),l=r?a.appear:a.enter;!e&&!n||St?this.safeSetState({status:At},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,s),this.safeSetState({status:Mt},(function(){t.props.onEntering(o,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:At},(function(){t.props.onEntered(o,s)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:m.findDOMNode(this);t&&!St?(this.props.onExit(r),this.safeSetState({status:Ot},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:It},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:It},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:m.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Rt)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var i=xt(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(kt.Provider,{value:null},"function"==typeof n?n(e,i):r.cloneElement(r.Children.only(n),i))},t}(r.Component);function zt(){}Tt.contextType=kt,Tt.propTypes={},Tt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zt,onEntering:zt,onEntered:zt,onExit:zt,onExiting:zt,onExited:zt},Tt.UNMOUNTED=Rt,Tt.EXITED=It,Tt.ENTERING=Mt,Tt.ENTERED=At,Tt.EXITING=Ot;var Dt=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},jt=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Et(n.className,r):n.setAttribute("class",Et(n.className&&n.className.baseVal||"",r)));var n,r}))},Pt=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}Ct(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&Nt(e),r&&(this.appliedClasses[t][n]=r,Dt(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&jt(e,r),i&&jt(e,i),o&&jt(e,o)},n.render=function(){var e=this.props;e.classNames;var t=xt(e,["classNames"]);return r.createElement(Tt,wt({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(r.Component);Pt.defaultProps={classNames:""},Pt.propTypes={};const Lt=200,Ft=800;function Bt(e,t){var n,r,i,o;return"touches"in e?"horizontal"===t?null!==(r=null===(n=e.touches[0])||void 0===n?void 0:n.clientX)&&void 0!==r?r:0:null!==(o=null===(i=e.touches[0])||void 0===i?void 0:i.clientY)&&void 0!==o?o:0:"horizontal"===t?e.clientX:e.clientY}function Ut(e){const{direction:t="left",width:n,minResizeWidth:i=Lt,maxResizeWidth:o=Ft,onResizeStart:s,onResize:a,onResizeContinue:l}=e,[c,u]=r.useState(!1),[d,h]=r.useState(0),[p,f]=r.useState(null!=n?n:400),m=r.useCallback((e=>Math.min(Math.max(e,i),o)),[i,o]),g=r.useCallback((e=>{const r=["right","bottom"].includes(t)?e:-e;return m((null!=n?n:p)+r)}),[n,p,t,m]),v=r.useCallback((()=>{u(!0),h(0),null==s||s()}),[s]),y=r.useCallback((e=>{h(e),null==l||l(g(e))}),[g,l]),b=r.useCallback((e=>{const t=g(e);u(!1),f(t),null==a||a(t)}),[g,a]),w=c?g(d):m(null!=n?n:p),x=function({onStart:e,onMove:t,onEnd:n,direction:i="horizontal"}){const o=r.useRef(0),s=r.useRef(0),a=r.useCallback((e=>{const n=Bt(e,i);if(s.current===n)return;s.current=n;const r=o.current-n;t(r)}),[t,i]),l=r.useCallback((e=>{e.preventDefault()}),[]),c=r.useCallback((e=>{window.removeEventListener("mousemove",a),window.removeEventListener("touchmove",a),window.removeEventListener("selectstart",l),document.body.style.removeProperty("cursor");const t=Bt(e,i),r=o.current-t;n(r)}),[a,l,i,n]),u=r.useCallback((t=>{const n=Bt(t,i);o.current=n,s.current=n,window.addEventListener("mouseup",c,{once:!0}),window.addEventListener("touchend",c,{once:!0}),window.addEventListener("touchcancel",c,{once:!0}),window.addEventListener("mousemove",a),window.addEventListener("touchmove",a),window.addEventListener("selectstart",l,{passive:!1}),document.body.style.setProperty("cursor","horizontal"===i?"col-resize":"row-resize"),e()}),[c,a,e,i]);return{onMouseDown:u,onTouchStart:u}}({onStart:v,onMove:y,onEnd:b,direction:["left","right"].includes(t)?"horizontal":"vertical"});return{resizedWidth:w,resizerHandlers:x,isResizing:c}}M(".gn-drawer{--_--item-shadow-default:0 1px 5px 0 var(--g-color-sfx-shadow);--_--item-position:fixed;--_--resizer-width:8px;--_--resizer-color:var(--g-color-base-generic);--_--resizer-handle-color:var(--g-color-line-generic);--_--resizer-handle-color-hover:var(--g-color-line-generic-hover);--_--resizer-z-index:100;--_--veil-background-color:var(--g-color-sfx-veil);pointer-events:none}.gn-drawer_hideVeil{--_--item-shadow:var(--gn-drawer-item-shadow,var(--_--item-shadow-default))}.gn-drawer__item{background-color:var(--g-color-base-background);bottom:0;box-shadow:var(--_--item-shadow,none);height:100%;left:var(--gn-aside-header-size,0);pointer-events:auto;position:var(--gn-drawer-item-position,var(--_--item-position));top:var(--gn-top-alert-height,0);will-change:transform;z-index:var(--gn-drawer-item-z-index)}.gn-drawer__item_direction_right{left:auto;right:0}.gn-drawer__item_direction_top{bottom:auto;right:0}.gn-drawer__item_direction_bottom{right:0;top:auto}.gn-drawer__item-transition-enter{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-enter{transform:translate(100%)}.gn-drawer__item-transition_direction_top-enter{transform:translateY(-100%)}.gn-drawer__item-transition_direction_bottom-enter{transform:translateY(100%)}.gn-drawer__item-transition-enter-active,.gn-drawer__item-transition_direction_bottom-enter-active,.gn-drawer__item-transition_direction_right-enter-active,.gn-drawer__item-transition_direction_top-enter-active{transform:translate(0);transition:transform .3s}.gn-drawer__item-transition-enter-done,.gn-drawer__item-transition_direction_bottom-enter-done,.gn-drawer__item-transition_direction_right-enter-done,.gn-drawer__item-transition_direction_top-enter-done{filter:blur(0);transform:translateZ(0)}.gn-drawer__item-transition-exit,.gn-drawer__item-transition_direction_bottom-exit,.gn-drawer__item-transition_direction_right-exit,.gn-drawer__item-transition_direction_top-exit{transform:translate(0)}.gn-drawer__item-transition-exit-active,.gn-drawer__item-transition_direction_bottom-exit-active,.gn-drawer__item-transition_direction_right-exit-active,.gn-drawer__item-transition_direction_top-exit-active{transition:transform .3s}.gn-drawer__item-transition-exit-active{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-exit-active{transform:translate(100%)}.gn-drawer__item-transition_direction_top-exit-active{transform:translateY(-100%)}.gn-drawer__item-transition_direction_bottom-exit-active{transform:translateY(100%)}.gn-drawer__item-transition-exit-done,.gn-drawer__item-transition_direction_bottom-exit-done,.gn-drawer__item-transition_direction_right-exit-done,.gn-drawer__item-transition_direction_top-exit-done,.gn-drawer__item_hidden{visibility:hidden}.gn-drawer__veil{background-color:var(--gn-drawer-veil-background-color,var(--_--veil-background-color));inset:0;pointer-events:auto;position:absolute;z-index:var(--gn-drawer-veil-z-index)}.gn-drawer__veil_hidden{display:none}.gn-drawer__veil-transition-enter{opacity:0}.gn-drawer__veil-transition-enter-active{opacity:1;transition:opacity .3s}.gn-drawer__veil-transition-exit{opacity:1}.gn-drawer__veil-transition-exit-active{opacity:0;transition:opacity .3s}.gn-drawer__veil-transition-exit-done{visibility:hidden}.gn-drawer__resizer-handle{background:var(--gn-drawer-item-resizer-handle-color,var(--_--resizer-handle-color));border-radius:2px;height:28px;width:2px}.gn-drawer__resizer-handle_direction_bottom,.gn-drawer__resizer-handle_direction_top{height:2px;width:28px}.gn-drawer__resizer{align-items:center;background:var(--gn-drawer-item-resizer-color,var(--_--resizer-color));cursor:col-resize;display:flex;flex-direction:column;height:100%;justify-content:center;position:absolute;top:0;width:var(--gn-drawer-item-resizer-width,var(--_--resizer-width));z-index:var(--gn-drawer-item-resizer-z-index,var(--_--resizer-z-index))}.gn-drawer__resizer_direction_right{left:0;top:var(--gn-top-alert-height,0)}.gn-drawer__resizer_direction_left{right:0;top:var(--gn-top-alert-height,0)}.gn-drawer__resizer_direction_top{bottom:0;left:0;top:unset}.gn-drawer__resizer_direction_bottom{left:0;top:0}.gn-drawer__resizer_direction_bottom,.gn-drawer__resizer_direction_top{cursor:row-resize;height:var(--gn-drawer-item-resizer-width,var(--_--resizer-width));width:100%}.gn-drawer__resizer:hover .gn-drawer__resizer-handle{background:var(--gn-drawer-item-resizer-handle-color-hover,var(--_--resizer-handle-color-hover))}");const Wt=R("drawer"),Vt=r.forwardRef((function(e,t){const{visible:n,content:i,children:s,direction:a="left",className:l,resizable:c,width:u,minResizeWidth:d,maxResizeWidth:h,onResizeStart:p,onResizeContinue:f,onResize:m,keepMounted:g=!1}=e,[v,y]=r.useState(!0),b=r.useRef(null),w=(0,o.cR6)(t,b),x="left"===a?void 0:a,{resizedWidth:_,resizerHandlers:C,isResizing:E}=Ut({direction:a,width:u,minResizeWidth:d,maxResizeWidth:h,onResizeStart:p,onResize:m,onResizeContinue:f}),S={};c&&(["left","right"].includes(a)?S.width=`${_}px`:S.height=`${_}px`),r.useEffect((()=>{y(!0)}),[a]);const k=c?r.createElement("div",Object.assign({className:Wt("resizer",{direction:a})},C),r.createElement("div",{className:Wt("resizer-handle",{direction:a})})):null;return r.createElement(Pt,{in:n,timeout:300,mountOnEnter:!g,unmountOnExit:!g,classNames:Wt("item-transition",{direction:x}),nodeRef:b,onEnter:()=>y(!1),onExit:()=>y(!1)},r.createElement("div",{ref:w,className:Wt("item",{direction:x,hidden:v&&!n,resize:E},[l]),style:S},k,null!=s?s:i))})),Ht=({className:e,veilClassName:t,children:n,style:i,onVeilClick:s,onEscape:a,hideVeil:l,disablePortal:c=!0,keepMounted:u=!1})=>{let d=!1;r.Children.forEach(n,(e=>{if(r.isValidElement(e)&&e.type===Vt){Boolean(e.props.visible)&&(d=!0)}})),r.useEffect((()=>{function e(e){"Escape"===e.key&&(null==a||a(e))}return d&&window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[a,d]);const h=r.useRef(null),p=r.useRef(null),f=r.createElement(Tt,{in:d,timeout:{enter:0,exit:300},mountOnEnter:!u,unmountOnExit:!u,nodeRef:h},(o=>{const a=d&&"entered"===o;return r.createElement("div",{ref:h,className:Wt({hideVeil:l},e),style:i},r.createElement(Pt,{in:a,timeout:300,unmountOnExit:!0,classNames:Wt("veil-transition"),nodeRef:p},r.createElement("div",{ref:p,className:Wt("veil",{hidden:l},t),onClick:s})),r.Children.map(n,(e=>{if(r.isValidElement(e)&&e.type===Vt){const t=Boolean(e.props.visible);return r.cloneElement(e,Object.assign(Object.assign({keepMounted:u},e.props),{visible:t&&a}))}return e})))}));return c?f:r.createElement(o.h_i,null,d?r.createElement(bt,{lockScroll:!0},f):f)},Zt=()=>{const{panelItems:e,onClosePanel:t,size:n}=C();return e?r.createElement(Ht,{className:I("panels"),onVeilClick:t,onEscape:t,style:{left:n}},e.map((e=>r.createElement(Vt,Object.assign({key:e.id},e))))):null},Yt=r.forwardRef(((e,t)=>{const{size:n,onItemClick:i,headerDecoration:s,multipleTooltip:a,menuMoreTitle:l,onMenuMoreClick:c,renderFooter:u,compact:d,customBackground:h,customBackgroundClassName:p,className:f,hideCollapseButton:m,qa:g}=C(),v=(()=>{const{menuItems:e,allPagesIsAvailable:t}=C();return(0,r.useMemo)((()=>{if(!t)return e;let n=0;return e.filter(((e,t,r)=>!(e.hidden||t>0&&"divider"===e.type&&("divider"===r[n].type||r[n].hidden)||(n=t,0))))}),[t,e])})(),y=(0,r.useRef)(null);return r.useEffect((()=>{(0,o.k$v)(t,y.current)}),[t]),r.createElement(r.Fragment,null,r.createElement("div",{className:I("aside",f),style:{width:n},"data-qa":g},r.createElement("div",{className:I("aside-popup-anchor"),ref:y}),h&&r.createElement("div",{className:I("aside-custom-background",p)},h),r.createElement("div",{className:I("aside-content",{"with-decoration":s})},r.createElement(ft,null),(null==v?void 0:v.length)?r.createElement(Qe,{type:"menu",items:v,menuMoreTitle:null!=l?l:rt("label_more"),onItemClick:i,onMoreClick:c,multipleTooltip:a}):r.createElement("div",{className:I("menu-items")}),r.createElement("div",{className:I("footer")},null==u?void 0:u({size:n,compact:Boolean(d),asideRef:y})),!m&&r.createElement(at,null))),r.createElement(Zt,null))}));var Gt;Yt.displayName="FirstPanel",function(e){e.AllPages="all-pages"}(Gt||(Gt={}));const qt=[],$t=e=>{const{size:t,onClosePanel:n,menuItems:i,panelItems:o,onMenuItemsChanged:s,onAllPagesClick:a}=e,[c,u]=(0,r.useState)(),d=r.useMemo((()=>({id:j,title:D("menu-item.all-pages.title"),tooltipText:D("menu-item.all-pages.title"),icon:l.Z})),[]),h=Boolean(s)&&(!i||(null==i?void 0:i.length)>0);(0,r.useEffect)((()=>{(null==o?void 0:o.some((e=>e.visible)))&&u(void 0)}),[o]);const p=(0,r.useCallback)((()=>{u(void 0),null==n||n()}),[n]),f=(0,r.useCallback)(((e,t,r)=>{var i;e.id===d.id?(null==n||n(),u((e=>e===Gt.AllPages?void 0:Gt.AllPages))):p(),null===(i=e.onItemClick)||void 0===i||i.call(e,e,t,r)}),[p,d,n]),m=(0,r.useMemo)((()=>h?[...i||qt,Object.assign(Object.assign({},d),{current:c===Gt.AllPages,onItemClick:a})]:i||qt),[h,i,c,d,a]),g=(0,r.useMemo)((()=>h?[...o||[],{id:Gt.AllPages,content:r.createElement(L,null),visible:c===Gt.AllPages}]:o),[h,o,c]);return Object.assign(Object.assign({},e),{onClosePanel:p,allPagesIsAvailable:h,menuItems:m,panelItems:g,size:t,onItemClick:f})},Xt=r.forwardRef(((e,t)=>{const{size:n,compact:i}=k(),o=$t(Object.assign({size:n,compact:i},e));return r.createElement(_,{value:o},r.createElement(Yt,{ref:t}))}));Xt.displayName="PageLayoutAside";const Kt=r.forwardRef(((e,t)=>{var{compact:n,className:i,topAlert:o}=e,s=v(e,["compact","className","topAlert"]);return r.createElement(O,{compact:n,className:i,topAlert:o},r.createElement(Xt,Object.assign({ref:t},s)),r.createElement(O.Content,{renderContent:s.renderContent}))}));Kt.displayName="AsideHeader";M(".gn-footer-item{height:40px;width:100%}");const Jt=R("footer-item"),Qt=e=>{var{item:t}=e,n=v(e,["item"]);return r.createElement(Ve,Object.assign({},n,{item:Object.assign({iconSize:18},t),className:Jt({compact:n.compact}),onItemClick:t.onItemClick,onItemClickCapture:t.onItemClickCapture}))};M(".gn-action-bar-group{align-items:center;display:flex;flex-flow:row nowrap;justify-content:flex-start;margin:0;padding:0}.gn-action-bar-group_pull_left{justify-content:flex-start;margin-left:0;margin-right:auto}.gn-action-bar-group_pull_left-grow{flex-grow:1}.gn-action-bar-group_pull_right{justify-content:flex-end;margin-left:auto;margin-right:0}.gn-action-bar-group_pull_right-grow{flex-grow:1}.gn-action-bar-group_pull_center{justify-content:center;margin-left:auto;margin-right:auto}.gn-action-bar-group_pull_center-grow,.gn-action-bar-group_stretch-container{flex-grow:1}");const en=R("action-bar-group"),tn=({children:e,className:t,pull:n,stretchContainer:i})=>r.createElement("ul",{className:en({pull:n,"stretch-container":i},t),role:"group"},e);tn.displayName="ActionBar.Group";M(".gn-action-bar-item{list-style:none;margin:0;padding:0}.gn-action-bar-item_pull_left{justify-content:flex-start;margin-left:0;margin-right:auto}.gn-action-bar-item_pull_left-grow{flex-grow:1}.gn-action-bar-item_pull_right{justify-content:flex-end;margin-left:auto;margin-right:0}.gn-action-bar-item_pull_right-grow{flex-grow:1}.gn-action-bar-item_pull_center{justify-content:center;margin-left:auto;margin-right:auto}.gn-action-bar-item_pull_center-grow{flex-grow:1}.gn-action-bar-item+.gn-action-bar-item_spacing{margin-left:8px}");const nn=R("action-bar-item"),rn=({children:e,className:t,pull:n,spacing:i=!0})=>r.createElement("li",{className:nn({pull:n,spacing:i},t),role:"menuitem"},e);rn.displayName="ActionBar.Item";M(".gn-action-bar-section{align-items:stretch;display:flex;flex-flow:row nowrap;justify-content:flex-start}.gn-action-bar-section+.gn-action-bar-section{border-left:1px solid var(--g-color-line-generic)}.gn-action-bar-section_type_primary{flex:1 1 auto;padding-left:20px;padding-right:20px}.gn-action-bar-section_type_secondary{padding-left:6px;padding-right:6px}");const on=R("action-bar-section"),sn=({children:e,type:t="primary"})=>r.createElement("div",{className:on({type:t}),role:"menu"},e);sn.displayName="ActionBar.Section";M(".gn-action-bar-separator{border-right:1px solid var(--g-color-line-generic);height:40px;list-style:none;margin:0 6px;padding:0}");const an=R("action-bar-separator"),ln=()=>r.createElement("li",{role:"separator",className:an(),"aria-hidden":!0});ln.displayName="ActionBar.Separator";M(".gn-action-bar{align-items:stretch;border-bottom:1px solid var(--g-color-line-generic);box-sizing:border-box;display:flex;flex-flow:row nowrap;height:40px;justify-content:flex-start}");const cn=R("action-bar"),un=({children:e,className:t,"aria-label":n})=>r.createElement("section",{className:cn(null,t),"aria-label":n},e);un.displayName="ActionBar";Object.assign(un,{Section:sn,Group:tn,Item:rn,Separator:ln});var dn={button_close:"Close"},hn={button_close:"Закрыть"};var pn=(0,p.e)({en:dn,ru:hn},`${N}Title`);M(".gn-title{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;min-height:64px;padding:14px 10px 14px 20px}.gn-title_separator{border-bottom:1px solid var(--g-color-line-generic)}.gn-title__text{margin:0 20px 0 0}");const fn=R("title"),mn=({children:e,closeIconSize:t=23,hasSeparator:n,closeTitle:i=pn("button_close"),onClose:s})=>r.createElement("div",{className:fn({separator:n})},r.createElement(o.xvT,{className:fn("text"),as:"h3",variant:"subheader-3"},e),s&&r.createElement(o.zxk,{onClick:s,view:"flat",size:"l","aria-label":i},r.createElement(o.JO$,{data:u.Z,size:t})));mn.displayName="Title";M(".gn-hotkeys-panel{--hotkeys-panel-width:400px;--hotkeys-panel-vertical-padding:18px;--hotkeys-panel-horizontal-padding:24px;inset:0;position:fixed}.gn-hotkeys-panel__drawer-item{box-sizing:border-box;display:flex;flex-direction:column;padding:var(--hotkeys-panel-vertical-padding) 0;width:var(--hotkeys-panel-width)}.gn-hotkeys-panel__title{margin:0 var(--hotkeys-panel-horizontal-padding) 16px var(--hotkeys-panel-horizontal-padding)}.gn-hotkeys-panel__search{box-sizing:border-box;margin-bottom:14px;padding:0 var(--hotkeys-panel-horizontal-padding)}.gn-hotkeys-panel__list{flex:1;overflow-y:auto}.gn-hotkeys-panel__item{height:auto;padding:8px var(--hotkeys-panel-horizontal-padding)}.gn-hotkeys-panel__item.g-list__item_active{background:inherit}.gn-hotkeys-panel__item-content{align-items:baseline;color:var(--g-color-text-primary);display:flex;font-size:var(--g-text-body-1-font-size);justify-content:space-between;line-height:var(--g-text-body-1-line-height);width:100%}.gn-hotkeys-panel__item-content_group{font-size:var(--g-text-body-2-font-size);font-weight:500;line-height:var(--g-text-body-2-line-height)}.gn-hotkeys-panel__hotkey{color:var(--g-color-text-complementary)}");R("hotkeys-panel");var gn,vn;var yn=Ce(vn?gn:(vn=1,gn=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0})),bn={label_title:"Settings","label_filter-placeholder":"Search settings","label_empty-placeholder":"No results found",label_search:"Search","label_all-results":"All results"},wn={label_title:"Настройки","label_filter-placeholder":"Найти настройки","label_empty-placeholder":"Ничего не найдено",label_search:"Поиск","label_all-results":"Все результаты"};var xn=(0,p.e)({en:bn,ru:wn},`${N}Settings`);const _n="allSearchResults",Cn=xn("label_all-results");function En(e){const{menu:t,pages:n}=e,r=function(e){return e.filter((e=>!("id"in e)||e.id!==_n))}(t),i=Object.values(n);return Object.assign(Object.assign({},e),{menu:[{id:_n,title:Cn,icon:{data:d.Z}},...r],pages:Object.assign(Object.assign({},n),{[_n]:Sn(i,r)})})}function Sn(e,t){const n={};for(const e of t)if("items"in e)for(const t of e.items)n[t.id]=[e.groupTitle,t.title];else n[e.id]=[e.title];return{id:_n,sections:Object.values(e).map((e=>e.sections.map((t=>{var r;const i=null!==(r=n[e.id])&&void 0!==r?r:[],o=yn(i),s=i.join(" / ");return Object.assign(Object.assign({},t),{title:t.title===o?s:`${s} / ${t.title}`})})))).flat()}}function kn(e){const t=r.useRef();return r.useEffect((()=>(t.current=e,()=>{t.current=void 0})),[e]),r.useCallback(((...e)=>{if("function"==typeof t.current)return t.current(...e)}),[])}function Nn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Rn(e,t=""){const n=Nn(t).replace(/\s+/g,".*?"),r=In(e,"",new RegExp(n,"i"));return Boolean(n)&&r.menu.length>0?En(r):r}function In(e,t="",n){const i=[],o={};let s=!1,a=!1;return r.Children.forEach(e,(e=>{var l,c;if(r.isValidElement(e))if(e.type===r.Fragment){const{menu:r,pages:s}=In(e.props.children,t,n);i.push(...r),Object.assign(o,s)}else if(e.props.groupTitle){0;const r=`${t}/${null!==(l=e.props.id)&&void 0!==l?l:e.props.groupTitle}`;s=!0;const{menu:a,pages:c}=In(e.props.children,r,n);0,a.length>0&&i.push({groupTitle:e.props.groupTitle,items:a}),Object.assign(o,c)}else{a=!0;const r=`${t}/${null!==(c=e.props.id)&&void 0!==c?c:e.props.title}`;0,o[r]=Mn(e.props.children,n),o[r].id=r,o[r].hidden||i.push({id:r,title:e.props.title,icon:e.props.icon,withBadge:o[r].withBadge,disabled:o[r].hidden})}})),{menu:i,pages:o}}function Mn(e,t){const n={id:"",sections:[],hidden:!0};return r.Children.forEach(e,(e=>{if(r.isValidElement(e))if(e.type===r.Fragment){const{sections:r,withBadge:i,hidden:o}=Mn(e.props.children,t);n.sections.push(...r),n.withBadge=i||n.withBadge,n.hidden=o&&n.hidden}else{const{withBadge:r}=e.props,{items:i,hidden:o}=An(e.props.children,t);n.withBadge=r||n.withBadge,n.hidden=o&&n.hidden,n.sections.push(Object.assign(Object.assign({},e.props),{withBadge:r,items:i,hidden:o}))}})),n}function An(e,t){let n=!0;const i=[];return r.Children.forEach(e,(e=>{if(r.isValidElement(e))if(e.type===r.Fragment){const r=An(e.props.children,t);i.push(...r.items),n=n&&r.hidden}else{const r=Object.assign(Object.assign({},e.props),{element:e,hidden:!t.test(e.props.title)});i.push(r),n=n&&r.hidden}})),{items:i,hidden:n}}const On=r.createContext({});function Tn(e,t){const n=r.useRef(null);return r.useMemo((()=>t?Object.assign({selectedRef:n},function(e,t){if(!t.settingId&&!t.section&&!t.page)return{};for(const n of Object.values(e)){if(!t.settingId&&!t.section){if(t.page!==n.id)continue;return{page:n}}for(const e of n.sections)if(t.settingId){for(const r of e.items)if(r.id===t.settingId)return{page:n,section:e,setting:r}}else if(t.section&&("id"in t.section?t.section.id===e.id:t.section.title===e.title))return{page:n,section:e}}return{}}(e,t)):{selectedRef:n}),[e,t])}On.displayName="SettingsSelectionContext";const zn=On.Provider;var Dn,jn;var Pn=Ce(jn?Dn:(jn=1,Dn=function(e){return e}));M('.gn-settings-menu__group-heading{display:inline-block;font-weight:var(--g-text-accent-font-weight);line-height:18px;margin-bottom:12px;padding:0 20px}.gn-settings-menu__group+.gn-settings-menu__group{margin-top:24px}.gn-settings-menu__item+.gn-settings-menu__group{margin-top:8px}.gn-settings-menu__item{align-items:center;color:var(--g-color-text-primary);cursor:pointer;display:flex;height:40px;padding:0 20px}.gn-settings-menu__item-icon{color:var(--g-color-text-misc);margin-right:5px}.gn-settings-menu__item:hover,.gn-settings-menu__item_focused{background:var(--g-color-base-simple-hover)}.gn-settings-menu__item_selected{background:var(--g-color-base-selection)}.gn-settings-menu__item_selected.gn-settings-menu__item_focused,.gn-settings-menu__item_selected:hover{background:var(--g-color-base-selection-hover)}.gn-settings-menu__item_disabled{color:var(--g-color-text-secondary);cursor:auto}.gn-settings-menu__item_disabled:hover{background:none}.gn-settings-menu__item_disabled .gn-settings-menu__item-icon{color:var(--g-color-base-misc-heavy)}.gn-settings-menu__item_badge{position:relative}.gn-settings-menu__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:9px;top:calc(50% - 3px);width:6px}');const Ln=R("settings-menu"),Fn=r.forwardRef((function({items:e,onChange:t,activeItemId:n},i){const[o,s]=r.useState(),a=r.useRef(null),l=kn(t),c=function(e){const t=r.useRef(e);return t.current=e,r.useCallback((()=>t.current),[])}(o);return r.useImperativeHandle(i,(()=>({handleKeyDown(e){if(!a.current)return!1;const t=c();return t&&"Enter"===e.key?(l(t),!0):"ArrowDown"===e.key?(s(Un(a.current,t,1)),!0):"ArrowUp"===e.key&&(s(Un(a.current,t,-1)),!0)},clearFocus(){s(void 0)}})),[c,l]),r.createElement("div",{ref:a,className:Ln()},e.map((e=>"groupTitle"in e?r.createElement("div",{key:e.groupTitle,className:Ln("group")},r.createElement("span",{className:Ln("group-heading")},e.groupTitle),e.items.map((e=>Bn(e,t,n,o)))):Bn(e,t,n,o))))}));function Bn(e,t,n,i){return r.createElement("span",{key:e.title,className:Ln("item",{selected:n===e.id,disabled:e.disabled,focused:i===e.id,badge:e.withBadge}),onClick:()=>{e.disabled||t(e.id)},"data-id":e.id},e.icon?r.createElement(o.JO$,Object.assign({size:16},e.icon,{className:Ln("item-icon")})):void 0,r.createElement("span",null,e.title))}function Un(e,t,n){var r;const i=e.querySelectorAll(`.${Ln("item")}:not(.${Ln("item")}_disabled)`);if(0===i.length)return;let o=n>0?-1:0;return t&&(o=Array.prototype.findIndex.call(i,(e=>e.getAttribute("data-id")===t))),o=(i.length+o+n)%i.length,null!==(r=i[o].getAttribute("data-id"))&&void 0!==r?r:void 0}M('.gn-settings-menu-mobile.g-tabs_direction_horizontal{-ms-overflow-style:none;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:none;scrollbar-width:none}.gn-settings-menu-mobile.g-tabs_direction_horizontal::-webkit-scrollbar{display:none}.gn-settings-menu-mobile__item_badge{position:relative}.gn-settings-menu-mobile__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:11px;width:6px}');const Wn=R("settings-menu-mobile"),Vn=({items:e,onChange:t,activeItemId:n,className:i})=>{const o=r.useRef(null),s=r.useMemo((()=>{const t=[];return e.forEach((e=>{if("groupTitle"in e)t.push(...e.items.map((({id:e,title:t,disabled:n,withBadge:r})=>({id:e,title:t,disabled:n,className:Wn("item",{badge:r})}))));else{const{id:n,title:r,disabled:i,withBadge:o}=e;t.push({id:n,title:r,disabled:i,className:Wn("item",{badge:o})})}})),t}),[e]);return r.createElement("div",{ref:o,onTouchMove:e=>{e.stopPropagation()}},r.createElement(g.mQ,{items:s,className:Wn(null,i),size:"l",activeTab:n,onSelectTab:t}))},Hn=R("settings-search");function Zn({className:e,initialValue:t,onChange:n,debounce:i=200,inputRef:s,inputSize:a,placeholder:l,autoFocus:c=!0,selection:u}){const[d,h]=r.useState(null!=t?t:""),p=Me(n,i),f=kn((e=>{h(e),p(e)}));return(0,r.useEffect)((()=>{d&&u&&(p.cancel(),h(""),n(""))}),[u]),r.createElement("div",{className:Hn(null,e)},r.createElement(o.oil,{value:d,controlRef:s,hasClear:!0,autoFocus:c,size:a,placeholder:l,onUpdate:f,controlProps:{"aria-label":xn("label_search")}}))}M('.gn-settings{display:grid;grid-template-columns:216px 1fr;height:100%;width:834px}.gn-settings_view_mobile{display:block;height:calc(80vh - 56px);overflow-x:hidden;width:auto}@supports (height:90dvh){.gn-settings_view_mobile{height:calc(90dvh - 56px)}}.gn-settings_view_mobile.gn-settings_loading{text-align:center}.gn-settings_view_mobile .gn-settings__loader{margin-top:20px}.gn-settings_view_mobile .gn-settings__search{margin:4px 0 16px;padding:0 20px}.gn-settings_view_mobile .gn-settings__page{overflow-y:visible}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:first-child{margin-left:20px}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:last-child{margin-right:20px}.gn-settings_view_mobile .gn-settings__section-heading{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.gn-settings_view_mobile .gn-settings__section-subheader{color:var(--g-color-text-secondary)}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings-subheader{margin-top:8px}.gn-settings_view_mobile .gn-settings__section-item{margin-top:0}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings__section-item,.gn-settings_view_mobile .gn-settings__section-subheader+.gn-settings__section-item{margin-top:30px}.gn-settings_view_mobile .gn-settings__section-item+.gn-settings__section-item{margin-top:22px}.gn-settings_view_mobile .gn-settings__item:not(.gn-settings_view_mobile .gn-settings__item_mode_row){gap:8px;grid-template-columns:1fr}.gn-settings_view_mobile .gn-settings__item-heading{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.gn-settings_view_mobile .gn-settings__item-description{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.gn-settings_view_mobile .gn-settings__item_mode_row{grid-template-columns:1fr auto}.gn-settings_view_mobile .gn-settings__item_mode_row .gn-settings__item-heading{padding-right:20px}.gn-settings_view_mobile .gn-settings__item-content{width:100%}.gn-settings_view_mobile .gn-settings__not-found{color:var(--g-color-text-hint);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);justify-items:start;line-height:var(--g-text-body-2-line-height);margin:20px 0 0 20px}.gn-settings_loading{grid-template-columns:auto}.gn-settings__loader{place-self:center}.gn-settings__not-found{display:grid;height:100%;place-items:center}.gn-settings__menu{border-right:1px solid var(--g-color-line-generic)}.gn-settings__heading{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:20px 20px 0}.gn-settings__search{margin:0 20px 16px}.gn-settings__page{overflow-y:auto}.gn-settings__content{padding:20px}.gn-settings__section-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__section-heading:hover .gn-settings__section-right-adornment_hidden{opacity:1}.gn-settings__section-heading{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:0}.gn-settings__section-item{margin-top:24px}.gn-settings__section+.gn-settings__section{margin-top:32px}.gn-settings__section:only-child .gn-settings__section-item:first-of-type{margin-top:0}.gn-settings__section:only-child .gn-settings__section-heading{display:none}.gn-settings__item{display:grid;grid-template-columns:216px 1fr;justify-items:start}.gn-settings__item_align_top{align-items:start}.gn-settings__item_align_center{align-items:center}.gn-settings__item-title_badge{position:relative}.gn-settings__item-title_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:1px;width:6px}.gn-settings__item-description{color:var(--g-color-text-secondary);display:block;font-family:var(--g-text-caption-font-family);font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height);margin-top:2px;padding-right:20px}.gn-settings__item-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__item:hover .gn-settings__item-right-adornment_hidden{opacity:1}.gn-settings__item_selected,.gn-settings__section_selected{background:var(--g-color-base-selection);border-radius:8px;margin-left:-8px;padding:8px}.gn-settings__found{background:var(--g-color-base-selection);font-weight:var(--g-text-accent-font-weight)}');const Yn=R("settings"),Gn=r.createContext({}),qn=()=>r.useContext(Gn);function $n(e){var{loading:t,renderLoading:n,children:i,view:s="normal",renderRightAdornment:a,renderSectionRightAdornment:l,showRightAdornmentOnHover:c=!0}=e,u=v(e,["loading","renderLoading","children","view","renderRightAdornment","renderSectionRightAdornment","showRightAdornmentOnHover"]);return t?r.createElement("div",{className:Yn({loading:!0,view:s})},"function"==typeof n?n():r.createElement(o.aNw,{className:Yn("loader"),size:"m"})):r.createElement(Gn.Provider,{value:{renderRightAdornment:a,renderSectionRightAdornment:l,showRightAdornmentOnHover:c}},r.createElement(Kn,Object.assign({view:s},u),i))}const Xn=(e,t)=>{for(const n of e)if("groupTitle"in n){for(const e of n.items)if(e.id===t)return e.title}else if(n.id===t)return n.title;return""};function Kn({initialPage:e,initialSearch:t,selection:n,children:i,renderNotFound:s,title:a=xn("label_title"),filterPlaceholder:l=xn("label_filter-placeholder"),emptyPlaceholder:c=xn("label_empty-placeholder"),view:u,onPageChange:d,onClose:h}){var p;const{renderSectionRightAdornment:f,showRightAdornmentOnHover:m}=qn(),[g,v]=r.useState(null!=t?t:""),{menu:y,pages:b}=Rn(i,g),w=Tn(b,n),x=Object.keys(b),_=w.page&&x.includes(w.page.id)?w.page.id:void 0,[C,E]=r.useState(_||(e&&x.includes(e)?e:void 0)),S=r.useRef(null),k=r.useRef(null),N="mobile"===u;r.useEffect((()=>{var e;null===(e=k.current)||void 0===e||e.clearFocus()}),[g]),r.useEffect((()=>{const e=()=>{var e;null===(e=k.current)||void 0===e||e.clearFocus()};return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[]);let R=C;R&&b[R]&&!b[R].hidden||(R=null===(p=Object.values(b).find((({hidden:e})=>!e)))||void 0===p?void 0:p.id);const I=e=>{E((t=>(t===e||M(e)||null==d||d(e),e)))},{isAllSearchPage:M}=function({pages:e,handlePageChange:t}){const n=e[_n],i=Boolean(n);return r.useEffect((()=>{i&&t(_n)}),[i]),{isAllSearchPage:e=>e===_n}}({pages:b,handlePageChange:I});r.useEffect((()=>{R!==C&&I(R)})),r.useEffect((()=>{_&&E(_)}),[_]),r.useEffect((()=>{var e;(null===(e=w.selectedRef)||void 0===e?void 0:e.current)&&w.selectedRef.current.scrollIntoView()}),[w.selectedRef]);const A=(e,t)=>{const n=function(e,t,n){var r;return!(!e.section||e.setting||(!e.section.id||e.section.id!==n.id)&&((null===(r=e.page)||void 0===r?void 0:r.id)!==t||!e.section.title||e.section.title!==n.title))}(w,e,t);return r.createElement("div",{key:t.title,className:Yn("section",{selected:n}),ref:n?w.selectedRef:void 0},t.title&&!t.hideTitle&&r.createElement("h3",{className:Yn("section-heading")},f?r.createElement(o.kCb,{gap:2,alignItems:"center"},t.title,r.createElement("div",{className:Yn("section-right-adornment",{hidden:m})},f(t))):t.title),t.header&&(N?r.createElement("div",{className:Yn("section-subheader")},t.header):t.header),t.items.map((e=>e.hidden?null:(({title:e,element:t})=>r.createElement("div",{key:e,className:Yn("section-item")},r.cloneElement(t,Object.assign(Object.assign({},t.props),{highlightedTitle:g&&e?Jn(e,g):e}))))(e))))};return r.createElement(zn,{value:w},r.createElement("div",{className:Yn({view:u})},N?r.createElement(r.Fragment,null,r.createElement(Zn,{inputRef:S,className:Yn("search"),initialValue:t,selection:n,onChange:v,autoFocus:!1,inputSize:"xl"}),r.createElement(Vn,{items:y,onChange:I,activeItemId:R,className:Yn("tabs")})):r.createElement("div",{className:Yn("menu"),onClick:()=>{S.current&&S.current.focus()},onKeyDown:e=>{k.current&&k.current.handleKeyDown(e)&&e.preventDefault()}},r.createElement(mn,null,a),r.createElement(Zn,{inputRef:S,className:Yn("search"),initialValue:t,selection:n,onChange:v,placeholder:l,autoFocus:!0}),r.createElement(Fn,{ref:k,items:y,onChange:I,activeItemId:R})),r.createElement("div",{className:Yn("page")},(e=>{if(!e)return"function"==typeof s?s():r.createElement("div",{className:Yn("not-found")},c);const t=b[e].sections.filter((e=>!e.hidden));return r.createElement(r.Fragment,null,!N&&r.createElement(mn,{hasSeparator:!0,onClose:h},Xn(y,e)),r.createElement("div",{className:Yn("content")},t.map((t=>A(e,t)))))})(R))))}function Jn(e,t){let n=e.slice(0);const i=[],o=Nn(t).split(" ").filter(Boolean);let s=0;for(const e of o){const t=new RegExp(e,"ig").exec(n);if(t){const e=t[0],o=t.index;o>0&&i.push(n.slice(0,o)),i.push(r.createElement("strong",{key:s++,className:Yn("found")},e)),n=n.slice(o+e.length)}}return n&&i.push(n),i}$n.Group=function({children:e}){return r.createElement(r.Fragment,null,e)},$n.Page=function({children:e}){return r.createElement(r.Fragment,null,e)},$n.Section=function({children:e}){return r.createElement(r.Fragment,null,e)},$n.Item=function(e){const{id:t,labelId:n,highlightedTitle:i,children:s,align:a="center",withBadge:l,renderTitleComponent:c=Pn,mode:u,description:d}=e,h=r.useContext(On),p=h.setting&&h.setting.id===t,{renderRightAdornment:f,showRightAdornmentOnHover:m}=qn(),g=r.createElement("span",{className:Yn("item-title",{badge:l})},c(i));return r.createElement("div",{className:Yn("item",{align:a,mode:u,selected:p}),ref:p?h.selectedRef:void 0},r.createElement("label",{className:Yn("item-heading"),id:n},f?r.createElement(o.kCb,{className:Yn("item-title-wrapper"),gap:3},g,r.createElement("div",{className:Yn("item-right-adornment",{hidden:m})},f(e))):g,d?r.createElement("span",{className:Yn("item-description")},d):null),r.createElement("div",{className:Yn("item-content")},s))};M(".gn-mobile-logo{align-items:center;display:flex;gap:var(--g-spacing-2);overflow:hidden}.gn-mobile-logo:is(a),.gn-mobile-logo:is(a):active,.gn-mobile-logo:is(a):focus,.gn-mobile-logo:is(a):hover,.gn-mobile-logo:is(a):visited{color:var(--g-color-text-primary);outline:none;text-decoration:none}.gn-mobile-logo__icon{flex-shrink:0}.gn-mobile-logo__title{font-family:var(--g-text-header-font-family);font-size:var(--g-text-header-1-font-size);font-weight:var(--g-text-header-font-weight);line-height:var(--g-text-header-1-line-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}");const Qn=R("mobile-logo"),er=({text:e,compact:t,icon:n,iconSrc:i,iconClassName:s,iconSize:a=32,textSize:l=20,href:c="/",target:u="_self",wrapper:d,onClick:h,className:p})=>{const f="function"==typeof d;let m,g;i?m=r.createElement("img",{alt:"logo icon",src:i,width:a,height:a,className:s}):n&&(m=r.createElement(o.JO$,{data:n,size:a,className:Qn("icon",s)})),g="function"==typeof e?e():r.createElement("span",{className:Qn("title"),style:{fontSize:l}},e);const v=r.createElement(r.Fragment,null,m,g);return f?r.createElement("div",{className:Qn(null,p),onClick:h},d(v,t)):r.createElement("a",{href:c,target:u,ref:"_self"===u?void 0:"noreferrer",className:Qn(null,p),onClick:h},v)};M('.gn-mobile-header-burger{background:none;border:none;color:inherit;cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon .gn-mobile-header-burger__icon-dash,.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon:after,.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon:before{left:3px}.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon:before{transform:rotate(45deg)}.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon:after{transform:rotate(-45deg)}.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon .gn-mobile-header-burger__icon-dash{opacity:0}.gn-mobile-header-burger__icon{display:flex;height:var(--mobile-header-icon-size);place-content:center;position:relative;width:var(--mobile-header-icon-size)}.gn-mobile-header-burger__icon:after,.gn-mobile-header-burger__icon:before{content:"";transform-origin:left center;transition:transform .2s,left .2s}.gn-mobile-header-burger__icon:before{top:2px}.gn-mobile-header-burger__icon:after{bottom:2px}.gn-mobile-header-burger__icon .gn-mobile-header-burger__icon-dash,.gn-mobile-header-burger__icon:after,.gn-mobile-header-burger__icon:before{background-color:var(--g-color-text-primary);border-radius:1px;height:2px;left:0;position:absolute;width:100%}.gn-mobile-header-burger__icon .gn-mobile-header-burger__icon-dash{margin-top:-1px;top:50%;transition:opacity .2s}');const tr=R("mobile-header-burger"),nr=r.memo((({closeTitle:e,openTitle:t,opened:n,className:i,onClick:o})=>r.createElement("button",{className:tr({opened:n},i),onClick:o,"aria-label":n?e:t},r.createElement("span",{className:tr("icon")},r.createElement("span",{className:tr("icon-dash")})))));nr.displayName="Burger";const rr=20,ir="MOBILE_PANEL_CLOSE",or="MOBILE_PANEL_OPEN",sr="burger",ar="overlap",lr=e=>"divider"===e.type?1:48,cr=e=>{const t=e.findIndex((({current:e})=>Boolean(e)));return-1===t?void 0:t};M(".gn-burger-composite-bar{overflow-y:auto}.gn-burger-composite-bar__item{align-items:center;box-sizing:border-box;display:flex;flex-grow:1;height:100%;overflow:hidden;padding:4px 22px 4px 12px}.gn-burger-composite-bar__item-icon-place{align-items:center;display:flex;flex-shrink:0;justify-content:center;margin-right:8px;width:40px}.gn-burger-composite-bar .gn-burger-composite-bar__item-icon{color:var(--g-color-text-misc)}.gn-burger-composite-bar__item-title{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gn-burger-composite-bar__link{align-items:center;display:flex;flex-grow:1;height:100%}.gn-burger-composite-bar__link,.gn-burger-composite-bar__link:active,.gn-burger-composite-bar__link:focus,.gn-burger-composite-bar__link:hover,.gn-burger-composite-bar__link:visited{color:inherit;outline:none;text-decoration:none}.gn-burger-composite-bar__menu-divider{border-top:1px solid var(--g-color-line-generic);flex-grow:1;margin:0}.gn-burger-composite-bar__root-menu-item.g-list__item_selected{background-color:var(--g-color-base-selection)}.gn-burger-composite-bar__root-menu-item:not(.g-list__item_selected).g-list__item_active{background:none}");const ur=R("burger-composite-bar"),dr=({item:e,onItemClick:t})=>{const{icon:n,type:i="regular",iconSize:s=rr}=e;if("divider"===i)return r.createElement("div",{className:ur("menu-divider")});const a=r.createElement("div",{className:ur("item",{type:i}),onClick:()=>{"function"==typeof e.onItemClick&&e.onItemClick(e),"regular"===i&&(null==t||t(e))}},r.createElement("div",{className:ur("item-icon-place")},n&&r.createElement(o.JO$,{data:n,size:s,className:ur("item-icon")})),r.createElement("div",{className:ur("item-title")},e.title));return"function"==typeof e.itemWrapper?e.itemWrapper(a,e):e.link?r.createElement("a",{href:e.link,className:ur("link")},a):a};dr.displayName="Item";const hr=r.memo((({items:e,onItemClick:t})=>r.createElement("nav",{className:ur()},r.createElement(o.aVo,{items:e,selectedItemIndex:cr(e),itemHeight:lr,itemClassName:ur("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:e=>r.createElement(dr,{item:e,onItemClick:t})}))));hr.displayName="BurgerCompositeBar";M(".gn-mobile-header-burger-menu{display:flex;flex-direction:column;height:100%}.gn-mobile-header-burger-menu__footer{border-top:1px solid var(--g-color-base-generic);display:flex;margin-top:auto}");const pr=R("mobile-header-burger-menu"),fr=r.memo((({items:e=[],renderFooter:t,modalItem:n,className:i,onItemClick:s})=>{var a;return r.createElement("div",{className:pr(null,i)},n&&r.createElement(o.yoO,{visible:n.visible,id:n.id,title:n.title,onClose:n.onClose,contentClassName:n.contentClassName,className:n.className},null===(a=n.renderContent)||void 0===a?void 0:a.call(n)),r.createElement(hr,{items:e,onItemClick:s}),t&&r.createElement("div",{className:pr("footer")},null==t?void 0:t()))}));fr.displayName="BurgerMenu";var mr={burger_button_close:"Close menu",burger_button_open:"Open menu",overlap_button_close:"Close"},gr={burger_button_close:"Закрыть меню",burger_button_open:"Открыть меню",overlap_button_close:"Закрыть"};var vr=(0,p.e)({en:mr,ru:gr},`${N}MobileHeader`);M(".gn-mobile-overlap-panel{inset:0;position:fixed}.gn-mobile-overlap-panel__drawer-item{box-sizing:border-box;display:flex;flex-direction:column;height:100%;max-height:100%;max-width:100%;width:100%}.gn-mobile-overlap-panel_action .gn-mobile-overlap-panel__title{padding-right:0}.gn-mobile-overlap-panel__close{margin-right:var(--g-spacing-1)}.gn-mobile-overlap-panel__action{margin-left:var(--g-spacing-1)}.gn-mobile-overlap-panel__action.g-button:hover:before,.gn-mobile-overlap-panel__close.g-button:hover:before{background-color:transparent}.gn-mobile-overlap-panel__title{display:inline-block;flex:1;justify-content:center;margin:0;padding-right:40px;text-align:center}.gn-mobile-overlap-panel__content{box-sizing:border-box;display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:0 var(--g-spacing-5)}.gn-mobile-overlap-panel__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--g-spacing-3);padding:var(--g-spacing-1) var(--g-spacing-3)}");const yr=R("mobile-overlap-panel"),br=({title:e,renderContent:t,className:n,onClose:i,action:s,closeTitle:a=vr("overlap_button_close"),visible:l,topOffset:c})=>r.createElement(Ht,{className:yr("",{action:Boolean(s)},n),onVeilClick:i,onEscape:i,style:{top:c}},r.createElement(Vt,{id:"overlap",visible:l,className:yr("drawer-item")},r.createElement("div",{className:yr("header")},r.createElement(o.zxk,{size:"l",view:"flat",className:yr("close"),onClick:i,"aria-label":a},r.createElement(o.JO$,{className:yr("icon"),data:h.Z,size:rr})),r.createElement(o.xvT,{whiteSpace:"nowrap",ellipsis:!0,variant:"subheader-2",className:yr("title"),as:e?"h2":void 0},e),s&&r.createElement(o.zxk,{size:"l",type:"button",view:"flat",onClick:s.onClick,className:yr("action"),"aria-label":s.title},r.createElement(o.JO$,{data:s.icon,size:rr}))),r.createElement("div",{className:yr("content")},t())));M(".gn-mobile-header{--mobile-header-min-heigth:50px;--mobile-header-icon-size:20px;background-color:var(--g-color-base-background)}.gn-mobile-header__header-container{background-color:var(--g-color-base-background);position:sticky;top:0;z-index:var(--gn-mobile-header-z-index,100)}.gn-mobile-header__header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);box-sizing:border-box;display:flex;justify-content:space-between;padding:0 10px}.gn-mobile-header__burger{padding:12px}.gn-mobile-header__panel-item{--gn-drawer-item-position:var(--gn-mobile-header-panel-position,absolute)}.gn-mobile-header__burger-menu,.gn-mobile-header__panel-item{background-color:var(--g-color-base-background);max-height:100%;max-width:90vw;width:320px}.gn-mobile-header__user-menu{overflow-y:auto}.gn-mobile-header__overlap-panel,.gn-mobile-header__panels{z-index:var(--gn-mobile-header-panel-z-index,98)}.gn-mobile-header__panels{inset:var(--mobile-header-min-heigth) 0 0;overflow:hidden;position:fixed}.gn-mobile-header__panel-item{top:unset}.gn-mobile-header__content{overflow:auto}");const wr=r.lazy((()=>n.e(641).then(n.bind(n,2641)).then((e=>({default:e.TopAlert}))))),xr=R("mobile-header");r.forwardRef((({logo:e,burgerMenu:t,burgerCloseTitle:n=vr("burger_button_close"),burgerOpenTitle:i=vr("burger_button_open"),panelItems:o=[],renderContent:s,sideItemRenderContent:a,onClosePanel:l,onEvent:c,className:u,contentClassName:d,overlapPanel:h,topAlert:p},f)=>{const m=((e,t=null)=>{const n=r.useRef(t);return r.useEffect((()=>{e&&("function"==typeof e?e(n.current):e.current=n.current)}),[e]),n})(f),[g]=(0,r.useState)(!0),[v,y]=(0,r.useState)(null),[w,x]=(0,r.useState)(!1),_=g?50:120,C=(0,r.useCallback)((e=>{e&&(y((t=>{const n=t===e;return null==c||c(e,n?ir:or),n?null:e})),x(!1))}),[c]),E=(0,r.useCallback)((({detail:e})=>{"string"==typeof(null==e?void 0:e.panelName)&&C(null==e?void 0:e.panelName)}),[C]),S=(0,r.useCallback)((({detail:e})=>{"string"==typeof(null==e?void 0:e.panelName)&&(null==c||c(null==e?void 0:e.panelName,or),y(null==e?void 0:e.panelName),x(!1))}),[c]),k=(0,r.useCallback)((({detail:e})=>{"string"==typeof(null==e?void 0:e.panelName)&&(null==c||c(null==e?void 0:e.panelName,ir),y(null),x(!1))}),[c]),N=(0,r.useCallback)((()=>{null==c||c(sr,or),y(sr)}),[c]),R=(0,r.useCallback)((()=>{null==c||c(sr,ir),y(null)}),[c]),I=(0,r.useCallback)((()=>{null==c||c(ar,or),x(!0)}),[c]),M=(0,r.useCallback)((()=>{null==c||c(ar,ir),x(!1)}),[c]),A=(0,r.useCallback)((()=>{v&&(null==c||c(v,ir)),y(null)}),[v,c]),O=(0,r.useCallback)((e=>{var t;(null===(t=e.closeMenuOnClick)||void 0===t||t)&&R()}),[R]),T=(0,r.useCallback)((()=>{var e;return null===(e=t.renderFooter)||void 0===e?void 0:e.call(t,{size:_,isCompact:g})}),[t,_,g]),z=(0,r.useCallback)((t=>{var n;null==l||l(),null===(n=e.onClick)||void 0===n||n.call(e,t)}),[e,l]),D=(0,r.useMemo)((()=>({id:sr,content:r.createElement(fr,{items:t.items,modalItem:t.modalItem,renderFooter:T,onItemClick:O,className:xr("burger-menu")})})),[t.items,t.modalItem,O,T]);return(0,r.useEffect)((()=>{const e=null==m?void 0:m.current;return e&&(e.addEventListener("MOBILE_BURGER_OPEN",N),e.addEventListener("MOBILE_BURGER_CLOSE",R),e.addEventListener("MOBILE_OVERLAP_PANEL_OPEN",I),e.addEventListener("MOBILE_OVERLAP_PANEL_CLOSE",M),e.addEventListener("MOBILE_PANEL_TOGGLE",E),e.addEventListener("MOBILE_PANEL_OPEN",S),e.addEventListener("MOBILE_PANEL_CLOSE",k)),()=>{e&&(e.removeEventListener("MOBILE_BURGER_OPEN",N),e.removeEventListener("MOBILE_BURGER_CLOSE",R),e.removeEventListener("MOBILE_OVERLAP_PANEL_OPEN",I),e.removeEventListener("MOBILE_OVERLAP_PANEL_CLOSE",M),e.removeEventListener("MOBILE_PANEL_TOGGLE",E),e.removeEventListener("MOBILE_PANEL_OPEN",S),e.removeEventListener("MOBILE_PANEL_CLOSE",k))}}),[m,R,N,E,S,k,I,M]),r.createElement("div",{className:xr({compact:g},u),ref:m},r.createElement("div",{className:xr("header-container")},p&&r.createElement(r.Suspense,{fallback:null},r.createElement(wr,{alert:p,mobileView:!0})),r.createElement("header",{className:xr("header"),style:{height:_}},r.createElement(nr,{opened:v===D.id,onClick:()=>C(sr),className:xr("burger"),closeTitle:n,openTitle:i}),r.createElement(er,Object.assign({},e,{compact:g,onClick:z})),r.createElement("div",{className:xr("side-item")},null==a?void 0:a({size:_})))),r.createElement(Ht,{className:xr("panels"),onVeilClick:A,onEscape:A,style:{top:`calc(${_}px + var(--gn-top-alert-height, 0px))`}},[D,...o].map((e=>r.createElement(Vt,Object.assign({},e,{key:e.id,visible:v===e.id,className:xr("panel-item",e.className)}))))),h&&r.createElement(br,{topOffset:_,className:xr("overlap-panel"),title:h.title,onClose:M,action:h.action,visible:w,renderContent:h.renderContent}),r.createElement(b,{size:_,renderContent:s,className:xr("content",d),cssSizeVariableName:"--mobile-header-size"}))})).displayName="MobileHeader";M('.gn-mobile-header-footer-item{flex-grow:1;position:relative}.gn-mobile-header-footer-item__button{align-items:center;background:none;border:none;box-sizing:border-box;color:inherit;cursor:pointer;display:flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;outline:none;padding:13px 10px;width:100%}.gn-mobile-header-footer-item .gn-mobile-header-footer-item__icon{color:var(--g-color-text-misc)}.gn-mobile-header-footer-item+.gn-mobile-header-footer-item:before{border-left:1px solid var(--g-color-base-generic);bottom:8px;content:"";left:0;position:absolute;top:8px}.gn-mobile-header-footer-item:empty{display:none}');R("mobile-header-footer-item");M(".gn-footer-menu-item{align-items:center;align-self:stretch;display:flex;height:100%;justify-content:center}.gn-footer-menu-item .g-menu__item-content{color:var(--g-color-text-secondary);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gn-footer-menu-item[class]:hover{background-color:inherit}.gn-footer-menu-item[class]:hover[href] .g-menu__item-content{color:var(--g-color-text-link-hover)}");R("footer-menu-item");M(".gn-footer_desktop{align-items:center;background:var(--g-color-base-background);display:flex;gap:var(--g-spacing-6);height:40px;justify-content:flex-end;padding:0 var(--g-spacing-6) 0 var(--g-spacing-3)}.gn-footer_desktop .gn-footer__menu{align-items:center;align-self:stretch;display:flex;flex:1;min-width:0;visibility:hidden}.gn-footer_desktop .gn-footer__menu_measured{visibility:visible}.gn-footer_desktop .gn-footer__list[class]{background-color:inherit;display:flex;height:100%;padding:0}.gn-footer_desktop .gn-footer__more-button svg{color:var(--g-color-text-secondary)}.gn-footer_desktop .gn-footer__right{align-items:center;display:flex;gap:var(--g-spacing-5)}.gn-footer_desktop .gn-footer__copyright{color:var(--g-color-text-secondary);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);white-space:nowrap}.gn-footer_desktop .gn-footer__copyright_small{font-family:var(--g-text-caption-font-family);font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height)}.gn-footer_with-divider{border-top:1px solid var(--g-color-line-generic)}.gn-footer_view_clear{background:transparent;z-index:-1}");R("footer");M(".gn-footer_mobile{background:var(--g-color-base-background);display:flex;flex-direction:column;padding:var(--g-spacing-1) var(--g-spacing-6) var(--g-spacing-3) var(--g-spacing-3)}.gn-footer_mobile .gn-footer_with-divider{border-top:1px solid var(--g-color-line-generic)}.gn-footer_mobile .gn-footer__menu{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--g-spacing-1);visibility:hidden}.gn-footer_mobile .gn-footer__menu_measured{visibility:visible}.gn-footer_mobile .gn-footer__list[class]{background-color:inherit;display:flex;padding:0}.gn-footer_mobile .gn-footer__menu-item{box-sizing:border-box;padding:var(--g-spacing-2) var(--g-spacing-3)}.gn-footer_mobile .gn-footer__bottom-row{align-items:center;display:flex;justify-content:space-between}.gn-footer_mobile .gn-footer__copyright{color:var(--g-color-text-secondary);font-family:var(--g-text-caption-font-family);font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height);padding:0 var(--g-spacing-3);white-space:nowrap}.gn-footer__modal .gn-footer__menu-item{color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:48px;line-height:var(--g-text-body-2-line-height)}.gn-footer_view_clear{background:transparent;z-index:-1}.gn-footer_view_clear .gn-footer__bottom-row{justify-content:flex-end}");R("footer")},16060:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var i;n.d(t,{J0:()=>a,LX:()=>R,RQ:()=>D,WK:()=>B,X3:()=>F,Zn:()=>M,aU:()=>i,cP:()=>h,cm:()=>T,fp:()=>m,pC:()=>z,q_:()=>s}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));const o="popstate";function s(e){return void 0===e&&(e={}),p((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=h(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),u("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:d(t))}),(function(e,t){l("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function a(e,t){if(!1===e||null==e)throw new Error(t)}function l(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,n,i){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?h(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function p(e,t,n,s){void 0===s&&(s={});let{window:l=document.defaultView,v5Compat:h=!1}=s,p=l.history,f=i.Pop,m=null,g=v();function v(){return(p.state||{idx:null}).idx}function y(){f=i.Pop;let e=v(),t=null==e?null:e-g;g=e,m&&m({action:f,location:w.location,delta:t})}function b(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,n="string"==typeof e?e:d(e);return n=n.replace(/ $/,"%20"),a(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,p.replaceState(r({},p.state,{idx:g}),""));let w={get action(){return f},get location(){return e(l,p)},listen(e){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(o,y),m=e,()=>{l.removeEventListener(o,y),m=null}},createHref:e=>t(l,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){f=i.Push;let r=u(w.location,e,t);n&&n(r,e),g=v()+1;let o=c(r,g),s=w.createHref(r);try{p.pushState(o,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(s)}h&&m&&m({action:f,location:w.location,delta:1})},replace:function(e,t){f=i.Replace;let r=u(w.location,e,t);n&&n(r,e),g=v();let o=c(r,g),s=w.createHref(r);p.replaceState(o,"",s),h&&m&&m({action:f,location:w.location,delta:0})},go:e=>p.go(e)};return w}var f;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(f||(f={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,n){return void 0===n&&(n="/"),g(e,t,n,!1)}function g(e,t,n,r){let i=M(("string"==typeof t?h(t):t).pathname||"/",n);if(null==i)return null;let o=v(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let s=null;for(let e=0;null==s&&e<o.length;++e){let t=I(i);s=N(o[e],t,r)}return s}function v(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,o)=>{let s={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(a(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let l=D([r,s.relativePath]),c=n.concat(s);e.children&&e.children.length>0&&(a(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),v(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:k(l,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of y(e.path))i(e,t,n);else i(e,t)})),t}function y(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let s=y(r.join("/")),a=[];return a.push(...s.map((e=>""===e?o:[o,e].join("/")))),i&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}const b=/^:[\w-]+$/,w=3,x=2,_=1,C=10,E=-2,S=e=>"*"===e;function k(e,t){let n=e.split("/"),r=n.length;return n.some(S)&&(r+=E),t&&(r+=x),n.filter((e=>!S(e))).reduce(((e,t)=>e+(b.test(t)?w:""===t?_:C)),r)}function N(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,i={},o="/",s=[];for(let e=0;e<r.length;++e){let a=r[e],l=e===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u=R({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},c),d=a.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=R({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},c)),!u)return null;Object.assign(i,u.params),s.push({params:i,pathname:D([o,u.pathname]),pathnameBase:j(D([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=D([o,u.pathnameBase]))}return s}function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);l("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=a[n]||"";s=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=a[n];return e[r]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:s,pattern:e}}function I(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return l(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function M(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function A(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function O(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function T(e,t){let n=O(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function z(e,t,n,i){let o;void 0===i&&(i=!1),"string"==typeof e?o=h(e):(o=r({},e),a(!o.pathname||!o.pathname.includes("?"),A("?","pathname","search",o)),a(!o.pathname||!o.pathname.includes("#"),A("#","pathname","hash",o)),a(!o.search||!o.search.includes("#"),A("#","search","hash",o)));let s,l=""===e||""===o.pathname,c=l?"/":o.pathname;if(null==c)s=n;else{let e=t.length-1;if(!i&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}s=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"==typeof e?h(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:P(r),hash:L(i)}}(o,s),d=c&&"/"!==c&&c.endsWith("/"),p=(l||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!p||(u.pathname+="/"),u}const D=e=>e.join("/").replace(/\/\/+/g,"/"),j=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),P=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",L=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class F extends Error{}function B(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const U=["post","put","patch","delete"],W=(new Set(U),["get",...U]);new Set(W),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred")},13824:(e,t,n)=>{"use strict";n.d(t,{Ri:()=>Q});var r={},i=Uint8Array,o=Uint16Array,s=Int32Array,a=new i([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),l=new i([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),c=new i([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=function(e,t){for(var n=new o(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new s(n[30]);for(r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},d=u(a,2),h=d.b,p=d.r;h[28]=258,p[258]=28;for(var f=u(l,0),m=f.b,g=(f.r,new o(32768)),v=0;v<32768;++v){var y=(43690&v)>>1|(21845&v)<<1;y=(61680&(y=(52428&y)>>2|(13107&y)<<2))>>4|(3855&y)<<4,g[v]=((65280&y)>>8|(255&y)<<8)>>1}var b=function(e,t,n){for(var r=e.length,i=0,s=new o(t);i<r;++i)e[i]&&++s[e[i]-1];var a,l=new o(t);for(i=1;i<t;++i)l[i]=l[i-1]+s[i-1]<<1;if(n){a=new o(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var u=i<<4|e[i],d=t-e[i],h=l[e[i]-1]++<<d,p=h|(1<<d)-1;h<=p;++h)a[g[h]>>c]=u}else for(a=new o(r),i=0;i<r;++i)e[i]&&(a[i]=g[l[e[i]-1]++]>>15-e[i]);return a},w=new i(288);for(v=0;v<144;++v)w[v]=8;for(v=144;v<256;++v)w[v]=9;for(v=256;v<280;++v)w[v]=7;for(v=280;v<288;++v)w[v]=8;var x=new i(32);for(v=0;v<32;++v)x[v]=5;var _=b(w,9,1),C=b(x,5,1),E=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},S=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},k=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},N=function(e){return(e+7)/8|0},R=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new i(e.subarray(t,n))},I=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],M=function(e,t,n){var r=new Error(t||I[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,M),!n)throw r;return r},A=function(e,t,n,r){var o=e.length,s=r?r.length:0;if(!o||t.f&&!t.l)return n||new i(0);var u=!n,d=u||2!=t.i,p=t.i;u&&(n=new i(3*o));var f=function(e){var t=n.length;if(e>t){var r=new i(Math.max(2*t,e));r.set(n),n=r}},g=t.f||0,v=t.p||0,y=t.b||0,w=t.l,x=t.d,I=t.m,A=t.n,O=8*o;do{if(!w){g=S(e,v,1);var T=S(e,v+1,3);if(v+=3,!T){var z=e[(Z=N(v)+4)-4]|e[Z-3]<<8,D=Z+z;if(D>o){p&&M(0);break}d&&f(y+z),n.set(e.subarray(Z,D),y),t.b=y+=z,t.p=v=8*D,t.f=g;continue}if(1==T)w=_,x=C,I=9,A=5;else if(2==T){var j=S(e,v,31)+257,P=S(e,v+10,15)+4,L=j+S(e,v+5,31)+1;v+=14;for(var F=new i(L),B=new i(19),U=0;U<P;++U)B[c[U]]=S(e,v+3*U,7);v+=3*P;var W=E(B),V=(1<<W)-1,H=b(B,W,1);for(U=0;U<L;){var Z,Y=H[S(e,v,V)];if(v+=15&Y,(Z=Y>>4)<16)F[U++]=Z;else{var G=0,q=0;for(16==Z?(q=3+S(e,v,3),v+=2,G=F[U-1]):17==Z?(q=3+S(e,v,7),v+=3):18==Z&&(q=11+S(e,v,127),v+=7);q--;)F[U++]=G}}var $=F.subarray(0,j),X=F.subarray(j);I=E($),A=E(X),w=b($,I,1),x=b(X,A,1)}else M(1);if(v>O){p&&M(0);break}}d&&f(y+131072);for(var K=(1<<I)-1,J=(1<<A)-1,Q=v;;Q=v){var ee=(G=w[k(e,v)&K])>>4;if((v+=15&G)>O){p&&M(0);break}if(G||M(2),ee<256)n[y++]=ee;else{if(256==ee){Q=v,w=null;break}var te=ee-254;if(ee>264){var ne=a[U=ee-257];te=S(e,v,(1<<ne)-1)+h[U],v+=ne}var re=x[k(e,v)&J],ie=re>>4;re||M(3),v+=15&re;X=m[ie];if(ie>3){ne=l[ie];X+=k(e,v)&(1<<ne)-1,v+=ne}if(v>O){p&&M(0);break}d&&f(y+131072);var oe=y+te;if(y<X){var se=s-X,ae=Math.min(X,oe);for(se+y<0&&M(3);y<ae;++y)n[y]=r[se+y]}for(;y<oe;++y)n[y]=n[y-X]}}t.l=w,t.p=Q,t.b=y,t.f=g,w&&(g=1,t.m=I,t.d=x,t.n=A)}while(!g);return y!=n.length&&u?R(n,0,y):n.subarray(0,y)},O=new i(0),T=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},z=function(e,t,n){for(var r=e(),i=e.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<r.length;++s){var a=r[s],l=o[s];if("function"==typeof a){t+=";"+l+"=";var c=a.toString();if(a.prototype)if(-1!=c.indexOf("[native code]")){var u=c.indexOf(" ",8)+1;t+=c.slice(u,c.indexOf("(",u))}else for(var d in t+=c,a.prototype)t+=";"+l+".prototype."+d+"="+a.prototype[d].toString();else t+=c}else n[l]=a}return t},D=[],j=function(e,t,n,i){if(!D[n]){for(var o="",s={},a=e.length-1,l=0;l<a;++l)o=z(e[l],o,s);D[n]={c:z(e[a],o,s),e:s}}var c=T({},D[n].e);return function(e,t,n,i,o){var s=new Worker(r[t]||(r[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return s.onmessage=function(e){var t=e.data,n=t.$e$;if(n){var r=new Error(n[0]);r.code=n[1],r.stack=n[2],o(r,null)}else o(null,t)},s.postMessage(n,i),s}(D[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,c,function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t}(c),i)},P=function(){return[i,o,s,a,l,c,h,m,_,C,g,I,b,E,S,k,N,R,M,A,Z,L,F]},L=function(e){return postMessage(e,[e.buffer])},F=function(e){return e&&{out:e.size&&new i(e.size),dictionary:e.dictionary}},B=function(e,t,n,r,i,o){var s=j(n,r,i,(function(e,t){s.terminate(),o(e,t)}));return s.postMessage([e,t],t.consume?[e.buffer]:[]),function(){s.terminate()}},U=function(e,t){return e[t]|e[t+1]<<8},W=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},V=function(e,t){return W(e,t)+4294967296*W(e,t+4)};function H(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&M(7),B(e,t,[P],(function(e){return L(Z(e.data[0],F(e.data[1])))}),1,n)}function Z(e,t){return A(e,{i:2},t&&t.out,t&&t.dictionary)}var Y="undefined"!=typeof TextDecoder&&new TextDecoder;try{Y.decode(O,{stream:!0}),1}catch(e){}var G=function(e){for(var t="",n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:R(e,n-1)};i?3==i?(r=((15&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=1&i?String.fromCharCode((31&r)<<6|63&e[n++]):String.fromCharCode((15&r)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(r)}};function q(e,t){if(t){for(var n="",r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}if(Y)return Y.decode(e);var i=G(e),o=i.s;return(n=i.r).length&&M(8),o}var $=function(e,t){return t+30+U(e,t+26)+U(e,t+28)},X=function(e,t,n){var r=U(e,t+28),i=q(e.subarray(t+46,t+46+r),!(2048&U(e,t+8))),o=t+46+r,s=W(e,t+20),a=n&&4294967295==s?K(e,o):[s,W(e,t+24),W(e,t+42)],l=a[0],c=a[1],u=a[2];return[U(e,t+10),l,c,i,o+U(e,t+30)+U(e,t+32),u]},K=function(e,t){for(;1!=U(e,t);t+=4+U(e,t+2));return[V(e,t+12),V(e,t+4),V(e,t+20)]};var J="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};function Q(e,t,n){n||(n=t,t={}),"function"!=typeof n&&M(7);var r=[],o=function(){for(var e=0;e<r.length;++e)r[e]()},s={},a=function(e,t){J((function(){n(e,t)}))};J((function(){a=n}));for(var l=e.length-22;101010256!=W(e,l);--l)if(!l||e.length-l>65558)return a(M(13,0,1),null),o;var c=U(e,l+8);if(c){var u=c,d=W(e,l+16),h=4294967295==d||65535==u;if(h){var p=W(e,l-12);(h=101075792==W(e,p))&&(u=c=W(e,p+32),d=W(e,p+48))}for(var f=t&&t.filter,m=function(t){var n=X(e,d,h),l=n[0],u=n[1],p=n[2],m=n[3],g=n[4],v=n[5],y=$(e,v);d=g;var b=function(e,t){e?(o(),a(e,null)):(t&&(s[m]=t),--c||a(null,s))};if(!f||f({name:m,size:u,originalSize:p,compression:l}))if(l)if(8==l){var w=e.subarray(y,y+u);if(p<524288||u>.8*p)try{b(null,Z(w,{out:new i(p)}))}catch(e){b(e,null)}else r.push(H(w,{size:p},b))}else b(M(14,"unknown compression type "+l,1),null);else b(null,R(e,y,y+u));else b(null,null)},g=0;g<u;++g)m()}else a(null,{});return o}},73463:(e,t,n)=>{"use strict";var r=n(48570),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var i=p(n);i&&i!==f&&e(t,i,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var a=l(t),m=l(n),g=0;g<s.length;++g){var v=s[g];if(!(o[v]||r&&r[v]||m&&m[v]||a&&a[v])){var y=h(n,v);try{c(t,v,y)}catch(e){}}}}return t}},5809:e=>{var t=Math.floor,n=Math.random;e.exports=function(e,r){return e+t(n()*(r-e+1))}},76635:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,c=32,u=64,d=128,h=256,p=1/0,f=9007199254740991,m=NaN,g=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",h]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",_="[object Error]",C="[object Function]",E="[object GeneratorFunction]",S="[object Map]",k="[object Number]",N="[object Object]",R="[object Promise]",I="[object RegExp]",M="[object Set]",A="[object String]",O="[object Symbol]",T="[object WeakMap]",z="[object ArrayBuffer]",D="[object DataView]",j="[object Float32Array]",P="[object Float64Array]",L="[object Int8Array]",F="[object Int16Array]",B="[object Int32Array]",U="[object Uint8Array]",W="[object Uint8ClampedArray]",V="[object Uint16Array]",H="[object Uint32Array]",Z=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,X=RegExp(q.source),K=RegExp($.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ie.source),se=/^\s+/,ae=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,Ce=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ne="a-z\\xdf-\\xf6\\xf8-\\xff",Re="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\ufe0e\\ufe0f",Me="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="['’]",Oe="["+Ee+"]",Te="["+Me+"]",ze="["+Se+"]",De="\\d+",je="["+ke+"]",Pe="["+Ne+"]",Le="[^"+Ee+Me+De+ke+Ne+Re+"]",Fe="\\ud83c[\\udffb-\\udfff]",Be="[^"+Ee+"]",Ue="(?:\\ud83c[\\udde6-\\uddff]){2}",We="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Re+"]",He="\\u200d",Ze="(?:"+Pe+"|"+Le+")",Ye="(?:"+Ve+"|"+Le+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+ze+"|"+Fe+")"+"?",Xe="["+Ie+"]?",Ke=Xe+$e+("(?:"+He+"(?:"+[Be,Ue,We].join("|")+")"+Xe+$e+")*"),Je="(?:"+[je,Ue,We].join("|")+")"+Ke,Qe="(?:"+[Be+ze+"?",ze,Ue,We,Oe].join("|")+")",et=RegExp(Ae,"g"),tt=RegExp(ze,"g"),nt=RegExp(Fe+"(?="+Fe+")|"+Qe+Ke,"g"),rt=RegExp([Ve+"?"+Pe+"+"+Ge+"(?="+[Te,Ve,"$"].join("|")+")",Ye+"+"+qe+"(?="+[Te,Ve+Ze,"$"].join("|")+")",Ve+"?"+Ze+"+"+Ge,Ve+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Je].join("|"),"g"),it=RegExp("["+He+Ee+Se+Ie+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,lt={};lt[j]=lt[P]=lt[L]=lt[F]=lt[B]=lt[U]=lt[W]=lt[V]=lt[H]=!0,lt[y]=lt[b]=lt[z]=lt[w]=lt[D]=lt[x]=lt[_]=lt[C]=lt[S]=lt[k]=lt[N]=lt[I]=lt[M]=lt[A]=lt[T]=!1;var ct={};ct[y]=ct[b]=ct[z]=ct[D]=ct[w]=ct[x]=ct[j]=ct[P]=ct[L]=ct[F]=ct[B]=ct[S]=ct[k]=ct[N]=ct[I]=ct[M]=ct[A]=ct[O]=ct[U]=ct[W]=ct[V]=ct[H]=!0,ct[_]=ct[C]=ct[T]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ht=parseInt,pt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,mt=pt||ft||Function("return this")(),gt=t&&!t.nodeType&&t,vt=gt&&e&&!e.nodeType&&e,yt=vt&&vt.exports===gt,bt=yt&&pt.process,wt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(e){}}(),xt=wt&&wt.isArrayBuffer,_t=wt&&wt.isDate,Ct=wt&&wt.isMap,Et=wt&&wt.isRegExp,St=wt&&wt.isSet,kt=wt&&wt.isTypedArray;function Nt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Rt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function It(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Mt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function Tt(e,t){return!!(null==e?0:e.length)&&Vt(e,t,0)>-1}function zt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function jt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Pt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Lt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Ft(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=Gt("length");function Ut(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Wt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Vt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Wt(e,Zt,n)}function Ht(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Zt(e){return e!=e}function Yt(e,t){var n=null==e?0:e.length;return n?Xt(e,t)/n:m}function Gt(e){return function(t){return null==t?i:t[e]}}function qt(e){return function(t){return null==e?i:e[t]}}function $t(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Xt(e,t){for(var n,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==i&&(n=n===i?s:n+s)}return n}function Kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Jt(e){return e?e.slice(0,gn(e)+1).replace(se,""):e}function Qt(e){return function(t){return e(t)}}function en(e,t){return Dt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Vt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}var on=qt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),sn=qt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+ut[e]}function ln(e){return it.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function fn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Bt(e)}function mn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var vn=qt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var yn=function e(t){var n,r=(t=null==t?mt:yn.defaults(mt.Object(),t,yn.pick(mt,st))).Array,ae=t.Date,Ee=t.Error,Se=t.Function,ke=t.Math,Ne=t.Object,Re=t.RegExp,Ie=t.String,Me=t.TypeError,Ae=r.prototype,Oe=Se.prototype,Te=Ne.prototype,ze=t["__core-js_shared__"],De=Oe.toString,je=Te.hasOwnProperty,Pe=0,Le=(n=/[^.]+$/.exec(ze&&ze.keys&&ze.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Fe=Te.toString,Be=De.call(Ne),Ue=mt._,We=Re("^"+De.call(je).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=yt?t.Buffer:i,He=t.Symbol,Ze=t.Uint8Array,Ye=Ve?Ve.allocUnsafe:i,Ge=un(Ne.getPrototypeOf,Ne),qe=Ne.create,$e=Te.propertyIsEnumerable,Xe=Ae.splice,Ke=He?He.isConcatSpreadable:i,Je=He?He.iterator:i,Qe=He?He.toStringTag:i,nt=function(){try{var e=po(Ne,"defineProperty");return e({},"",{}),e}catch(e){}}(),it=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,ut=ae&&ae.now!==mt.Date.now&&ae.now,pt=t.setTimeout!==mt.setTimeout&&t.setTimeout,ft=ke.ceil,gt=ke.floor,vt=Ne.getOwnPropertySymbols,bt=Ve?Ve.isBuffer:i,wt=t.isFinite,Bt=Ae.join,qt=un(Ne.keys,Ne),bn=ke.max,wn=ke.min,xn=ae.now,_n=t.parseInt,Cn=ke.random,En=Ae.reverse,Sn=po(t,"DataView"),kn=po(t,"Map"),Nn=po(t,"Promise"),Rn=po(t,"Set"),In=po(t,"WeakMap"),Mn=po(Ne,"create"),An=In&&new In,On={},Tn=Fo(Sn),zn=Fo(kn),Dn=Fo(Nn),jn=Fo(Rn),Pn=Fo(In),Ln=He?He.prototype:i,Fn=Ln?Ln.valueOf:i,Bn=Ln?Ln.toString:i;function Un(e){if(na(e)&&!Zs(e)&&!(e instanceof Zn)){if(e instanceof Hn)return e;if(je.call(e,"__wrapped__"))return Bo(e)}return new Hn(e)}var Wn=function(){function e(){}return function(t){if(!ta(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Vn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Zn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Kn(e,t){var n=Zs(e),r=!n&&Hs(e),i=!n&&!r&&$s(e),o=!n&&!r&&!i&&ua(e),s=n||r||i||o,a=s?Kt(e.length,Ie):[],l=a.length;for(var c in e)!t&&!je.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||wo(c,l))||a.push(c);return a}function Jn(e){var t=e.length;return t?e[$r(0,t-1)]:i}function Qn(e,t){return jo(Mi(e),lr(t,0,e.length))}function er(e){return jo(Mi(e))}function tr(e,t,n){(n!==i&&!Us(e[t],n)||n===i&&!(t in e))&&sr(e,t,n)}function nr(e,t,n){var r=e[t];je.call(e,t)&&Us(r,n)&&(n!==i||t in e)||sr(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Us(e[n][0],t))return n;return-1}function ir(e,t,n,r){return pr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function or(e,t){return e&&Ai(t,Oa(t),e)}function sr(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){for(var n=-1,o=t.length,s=r(o),a=null==e;++n<o;)s[n]=a?i:Na(e,t[n]);return s}function lr(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function cr(e,t,n,r,o,s){var a,l=1&t,c=2&t,u=4&t;if(n&&(a=o?n(e,r,o,s):n(e)),a!==i)return a;if(!ta(e))return e;var d=Zs(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&je.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Mi(e,a)}else{var h=go(e),p=h==C||h==E;if($s(e))return Ei(e,l);if(h==N||h==y||p&&!o){if(a=c||p?{}:yo(e),!l)return c?function(e,t){return Ai(e,mo(e),t)}(e,function(e,t){return e&&Ai(t,Ta(t),e)}(a,e)):function(e,t){return Ai(e,fo(e),t)}(e,or(a,e))}else{if(!ct[h])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case z:return Si(e);case w:case x:return new r(+e);case D:return function(e,t){var n=t?Si(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case j:case P:case L:case F:case B:case U:case W:case V:case H:return ki(e,n);case S:return new r;case k:case A:return new r(e);case I:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case M:return new r;case O:return i=e,Fn?Ne(Fn.call(i)):{}}var i}(e,h,l)}}s||(s=new Xn);var f=s.get(e);if(f)return f;s.set(e,a),aa(e)?e.forEach((function(r){a.add(cr(r,t,n,r,e,s))})):ra(e)&&e.forEach((function(r,i){a.set(i,cr(r,t,n,i,e,s))}));var m=d?i:(u?c?oo:io:c?Ta:Oa)(e);return It(m||e,(function(r,i){m&&(r=e[i=r]),nr(a,i,cr(r,t,n,i,e,s))})),a}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ne(e);r--;){var o=n[r],s=t[o],a=e[o];if(a===i&&!(o in e)||!s(a))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new Me(o);return Oo((function(){e.apply(i,n)}),t)}function hr(e,t,n,r){var i=-1,o=Tt,s=!0,a=e.length,l=[],c=t.length;if(!a)return l;n&&(t=Dt(t,Qt(n))),r?(o=zt,s=!1):t.length>=200&&(o=tn,s=!1,t=new $n(t));e:for(;++i<a;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,s&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}Un.templateSettings={escape:J,evaluate:Q,interpolate:ee,variable:"",imports:{_:Un}},Un.prototype=Vn.prototype,Un.prototype.constructor=Un,Hn.prototype=Wn(Vn.prototype),Hn.prototype.constructor=Hn,Zn.prototype=Wn(Vn.prototype),Zn.prototype.constructor=Zn,Yn.prototype.clear=function(){this.__data__=Mn?Mn(null):{},this.size=0},Yn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Yn.prototype.get=function(e){var t=this.__data__;if(Mn){var n=t[e];return n===s?i:n}return je.call(t,e)?t[e]:i},Yn.prototype.has=function(e){var t=this.__data__;return Mn?t[e]!==i:je.call(t,e)},Yn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Mn&&t===i?s:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Xe.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?i:t[n][1]},Gn.prototype.has=function(e){return rr(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Yn,map:new(kn||Gn),string:new Yn}},qn.prototype.delete=function(e){var t=uo(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return uo(this,e).get(e)},qn.prototype.has=function(e){return uo(this,e).has(e)},qn.prototype.set=function(e,t){var n=uo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},$n.prototype.add=$n.prototype.push=function(e){return this.__data__.set(e,s),this},$n.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var pr=zi(xr),fr=zi(_r,!0);function mr(e,t){var n=!0;return pr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,n){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(l===i?a==a&&!ca(a):n(a,l)))var l=a,c=s}return c}function vr(e,t){var n=[];return pr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function yr(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=bo),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?yr(a,t-1,n,r,i):jt(i,a):r||(i[i.length]=a)}return i}var br=Di(),wr=Di(!0);function xr(e,t){return e&&br(e,t,Oa)}function _r(e,t){return e&&wr(e,t,Oa)}function Cr(e,t){return Ot(t,(function(t){return Js(e[t])}))}function Er(e,t){for(var n=0,r=(t=wi(t,e)).length;null!=e&&n<r;)e=e[Lo(t[n++])];return n&&n==r?e:i}function Sr(e,t,n){var r=t(e);return Zs(e)?r:jt(r,n(e))}function kr(e){return null==e?e===i?"[object Undefined]":"[object Null]":Qe&&Qe in Ne(e)?function(e){var t=je.call(e,Qe),n=e[Qe];try{e[Qe]=i;var r=!0}catch(e){}var o=Fe.call(e);r&&(t?e[Qe]=n:delete e[Qe]);return o}(e):function(e){return Fe.call(e)}(e)}function Nr(e,t){return e>t}function Rr(e,t){return null!=e&&je.call(e,t)}function Ir(e,t){return null!=e&&t in Ne(e)}function Mr(e,t,n){for(var o=n?zt:Tt,s=e[0].length,a=e.length,l=a,c=r(a),u=1/0,d=[];l--;){var h=e[l];l&&t&&(h=Dt(h,Qt(t))),u=wn(h.length,u),c[l]=!n&&(t||s>=120&&h.length>=120)?new $n(l&&h):i}h=e[0];var p=-1,f=c[0];e:for(;++p<s&&d.length<u;){var m=h[p],g=t?t(m):m;if(m=n||0!==m?m:0,!(f?tn(f,g):o(d,g,n))){for(l=a;--l;){var v=c[l];if(!(v?tn(v,g):o(e[l],g,n)))continue e}f&&f.push(g),d.push(m)}}return d}function Ar(e,t,n){var r=null==(e=Io(e,t=wi(t,e)))?e:e[Lo(Ko(t))];return null==r?i:Nt(r,e,n)}function Or(e){return na(e)&&kr(e)==y}function Tr(e,t,n,r,o){return e===t||(null==e||null==t||!na(e)&&!na(t)?e!=e&&t!=t:function(e,t,n,r,o,s){var a=Zs(e),l=Zs(t),c=a?b:go(e),u=l?b:go(t),d=(c=c==y?N:c)==N,h=(u=u==y?N:u)==N,p=c==u;if(p&&$s(e)){if(!$s(t))return!1;a=!0,d=!1}if(p&&!d)return s||(s=new Xn),a||ua(e)?no(e,t,n,r,o,s):function(e,t,n,r,i,o,s){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case z:return!(e.byteLength!=t.byteLength||!o(new Ze(e),new Ze(t)));case w:case x:case k:return Us(+e,+t);case _:return e.name==t.name&&e.message==t.message;case I:case A:return e==t+"";case S:var a=cn;case M:var l=1&r;if(a||(a=hn),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=2,s.set(e,t);var u=no(a(e),a(t),r,i,o,s);return s.delete(e),u;case O:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,c,n,r,o,s);if(!(1&n)){var f=d&&je.call(e,"__wrapped__"),m=h&&je.call(t,"__wrapped__");if(f||m){var g=f?e.value():e,v=m?t.value():t;return s||(s=new Xn),o(g,v,n,r,s)}}if(!p)return!1;return s||(s=new Xn),function(e,t,n,r,o,s){var a=1&n,l=io(e),c=l.length,u=io(t),d=u.length;if(c!=d&&!a)return!1;var h=c;for(;h--;){var p=l[h];if(!(a?p in t:je.call(t,p)))return!1}var f=s.get(e),m=s.get(t);if(f&&m)return f==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var v=a;for(;++h<c;){var y=e[p=l[h]],b=t[p];if(r)var w=a?r(b,y,p,t,e,s):r(y,b,p,e,t,s);if(!(w===i?y===b||o(y,b,n,r,s):w)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var x=e.constructor,_=t.constructor;x==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(g=!1)}return s.delete(e),s.delete(t),g}(e,t,n,r,o,s)}(e,t,n,r,Tr,o))}function zr(e,t,n,r){var o=n.length,s=o,a=!r;if(null==e)return!s;for(e=Ne(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=n[o])[0],u=e[c],d=l[1];if(a&&l[2]){if(u===i&&!(c in e))return!1}else{var h=new Xn;if(r)var p=r(u,d,c,e,t,h);if(!(p===i?Tr(d,u,3,r,h):p))return!1}}return!0}function Dr(e){return!(!ta(e)||(t=e,Le&&Le in t))&&(Js(e)?We:ye).test(Fo(e));var t}function jr(e){return"function"==typeof e?e:null==e?il:"object"==typeof e?Zs(e)?Wr(e[0],e[1]):Ur(e):pl(e)}function Pr(e){if(!So(e))return qt(e);var t=[];for(var n in Ne(e))je.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!ta(e))return function(e){var t=[];if(null!=e)for(var n in Ne(e))t.push(n);return t}(e);var t=So(e),n=[];for(var r in e)("constructor"!=r||!t&&je.call(e,r))&&n.push(r);return n}function Fr(e,t){return e<t}function Br(e,t){var n=-1,i=Gs(e)?r(e.length):[];return pr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Ur(e){var t=ho(e);return 1==t.length&&t[0][2]?No(t[0][0],t[0][1]):function(n){return n===e||zr(n,e,t)}}function Wr(e,t){return _o(e)&&ko(t)?No(Lo(e),t):function(n){var r=Na(n,e);return r===i&&r===t?Ra(n,e):Tr(t,r,3)}}function Vr(e,t,n,r,o){e!==t&&br(t,(function(s,a){if(o||(o=new Xn),ta(s))!function(e,t,n,r,o,s,a){var l=Mo(e,n),c=Mo(t,n),u=a.get(c);if(u)return void tr(e,n,u);var d=s?s(l,c,n+"",e,t,a):i,h=d===i;if(h){var p=Zs(c),f=!p&&$s(c),m=!p&&!f&&ua(c);d=c,p||f||m?Zs(l)?d=l:qs(l)?d=Mi(l):f?(h=!1,d=Ei(c,!0)):m?(h=!1,d=ki(c,!0)):d=[]:oa(c)||Hs(c)?(d=l,Hs(l)?d=ya(l):ta(l)&&!Js(l)||(d=yo(c))):h=!1}h&&(a.set(c,d),o(d,c,r,s,a),a.delete(c));tr(e,n,d)}(e,t,a,n,Vr,r,o);else{var l=r?r(Mo(e,a),s,a+"",e,t,o):i;l===i&&(l=s),tr(e,a,l)}}),Ta)}function Hr(e,t){var n=e.length;if(n)return wo(t+=t<0?n:0,n)?e[t]:i}function Zr(e,t,n){t=t.length?Dt(t,(function(e){return Zs(e)?function(t){return Er(t,1===e.length?e[0]:e)}:e})):[il];var r=-1;t=Dt(t,Qt(co()));var i=Br(e,(function(e,n,i){var o=Dt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;for(;++r<s;){var l=Ni(i[r],o[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Yr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=Er(e,s);n(a,s)&&ei(o,wi(s,e),a)}return o}function Gr(e,t,n,r){var i=r?Ht:Vt,o=-1,s=t.length,a=e;for(e===t&&(t=Mi(t)),n&&(a=Dt(e,Qt(n)));++o<s;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(a,u,l,r))>-1;)a!==e&&Xe.call(a,l,1),Xe.call(e,l,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;wo(i)?Xe.call(e,i,1):hi(e,i)}}return e}function $r(e,t){return e+gt(Cn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return To(Ro(e,t,il),e+"")}function Jr(e){return Jn(Ua(e))}function Qr(e,t){var n=Ua(e);return jo(n,lr(t,0,n.length))}function ei(e,t,n,r){if(!ta(e))return e;for(var o=-1,s=(t=wi(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var c=Lo(t[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var d=l[c];(u=r?r(d,c,l):i)===i&&(u=ta(d)?d:wo(t[o+1])?[]:{})}nr(l,c,u),l=l[c]}return e}var ti=An?function(e,t){return An.set(e,t),e}:il,ni=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:il;function ri(e){return jo(Ua(e))}function ii(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var s=r(o);++i<o;)s[i]=e[i+t];return s}function oi(e,t){var n;return pr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function si(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=e[o];null!==s&&!ca(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return ai(e,t,il,n)}function ai(e,t,n,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!=t,l=null===t,c=ca(t),u=t===i;o<s;){var d=gt((o+s)/2),h=n(e[d]),p=h!==i,f=null===h,m=h==h,g=ca(h);if(a)var v=r||m;else v=u?m&&(r||p):l?m&&p&&(r||!f):c?m&&p&&!f&&(r||!g):!f&&!g&&(r?h<=t:h<t);v?o=d+1:s=d}return wn(s,4294967294)}function li(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!Us(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function ci(e){return"number"==typeof e?e:ca(e)?m:+e}function ui(e){if("string"==typeof e)return e;if(Zs(e))return Dt(e,ui)+"";if(ca(e))return Bn?Bn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function di(e,t,n){var r=-1,i=Tt,o=e.length,s=!0,a=[],l=a;if(n)s=!1,i=zt;else if(o>=200){var c=t?null:Xi(e);if(c)return hn(c);s=!1,i=tn,l=new $n}else l=t?[]:a;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,s&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),a.push(u)}else i(l,d,n)||(l!==a&&l.push(d),a.push(u))}return a}function hi(e,t){return null==(e=Io(e,t=wi(t,e)))||delete e[Lo(Ko(t))]}function pi(e,t,n,r){return ei(e,t,n(Er(e,t)),r)}function fi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ii(e,r?0:o,r?o+1:i):ii(e,r?o+1:0,r?i:o)}function mi(e,t){var n=e;return n instanceof Zn&&(n=n.value()),Pt(t,(function(e,t){return t.func.apply(t.thisArg,jt([e],t.args))}),n)}function gi(e,t,n){var i=e.length;if(i<2)return i?di(e[0]):[];for(var o=-1,s=r(i);++o<i;)for(var a=e[o],l=-1;++l<i;)l!=o&&(s[o]=hr(s[o]||a,e[l],t,n));return di(yr(s,1),t,n)}function vi(e,t,n){for(var r=-1,o=e.length,s=t.length,a={};++r<o;){var l=r<s?t[r]:i;n(a,e[r],l)}return a}function yi(e){return qs(e)?e:[]}function bi(e){return"function"==typeof e?e:il}function wi(e,t){return Zs(e)?e:_o(e,t)?[e]:Po(ba(e))}var xi=Kr;function _i(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ii(e,t,n)}var Ci=it||function(e){return mt.clearTimeout(e)};function Ei(e,t){if(t)return e.slice();var n=e.length,r=Ye?Ye(n):new e.constructor(n);return e.copy(r),r}function Si(e){var t=new e.constructor(e.byteLength);return new Ze(t).set(new Ze(e)),t}function ki(e,t){var n=t?Si(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ni(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,s=ca(e),a=t!==i,l=null===t,c=t==t,u=ca(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||r&&a&&c||!n&&c||!o)return 1;if(!r&&!s&&!u&&e<t||u&&n&&o&&!r&&!s||l&&n&&o||!a&&o||!c)return-1}return 0}function Ri(e,t,n,i){for(var o=-1,s=e.length,a=n.length,l=-1,c=t.length,u=bn(s-a,0),d=r(c+u),h=!i;++l<c;)d[l]=t[l];for(;++o<a;)(h||o<s)&&(d[n[o]]=e[o]);for(;u--;)d[l++]=e[o++];return d}function Ii(e,t,n,i){for(var o=-1,s=e.length,a=-1,l=n.length,c=-1,u=t.length,d=bn(s-l,0),h=r(d+u),p=!i;++o<d;)h[o]=e[o];for(var f=o;++c<u;)h[f+c]=t[c];for(;++a<l;)(p||o<s)&&(h[f+n[a]]=e[o++]);return h}function Mi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Ai(e,t,n,r){var o=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=r?r(n[l],e[l],l,n,e):i;c===i&&(c=e[l]),o?sr(n,l,c):nr(n,l,c)}return n}function Oi(e,t){return function(n,r){var i=Zs(n)?Rt:ir,o=t?t():{};return i(n,e,co(r,2),o)}}function Ti(e){return Kr((function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:i,a=o>2?n[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&xo(n[0],n[1],a)&&(s=o<3?i:s,o=1),t=Ne(t);++r<o;){var l=n[r];l&&e(t,l,r,s)}return t}))}function zi(e,t){return function(n,r){if(null==n)return n;if(!Gs(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Ne(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function Di(e){return function(t,n,r){for(var i=-1,o=Ne(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(o[l],l,o))break}return t}}function ji(e){return function(t){var n=ln(t=ba(t))?mn(t):i,r=n?n[0]:t.charAt(0),o=n?_i(n,1).join(""):t.slice(1);return r[e]()+o}}function Pi(e){return function(t){return Pt(Ja(Ha(t).replace(et,"")),e,"")}}function Li(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Wn(e.prototype),r=e.apply(n,t);return ta(r)?r:n}}function Fi(e){return function(t,n,r){var o=Ne(t);if(!Gs(t)){var s=co(n,3);t=Oa(t),n=function(e){return s(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[s?t[a]:a]:i}}function Bi(e){return ro((function(t){var n=t.length,r=n,s=Hn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Me(o);if(s&&!l&&"wrapper"==ao(a))var l=new Hn([],!0)}for(r=l?r:n;++r<n;){var c=ao(a=t[r]),u="wrapper"==c?so(a):i;l=u&&Co(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ao(u[0])].apply(l,u[3]):1==a.length&&Co(a)?l[c]():l.thru(a)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Zs(r))return l.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Ui(e,t,n,o,s,a,l,c,u,h){var p=t&d,f=1&t,m=2&t,g=24&t,v=512&t,y=m?i:Li(e);return function d(){for(var b=arguments.length,w=r(b),x=b;x--;)w[x]=arguments[x];if(g)var _=lo(d),C=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,_);if(o&&(w=Ri(w,o,s,g)),a&&(w=Ii(w,a,l,g)),b-=C,g&&b<h){var E=dn(w,_);return qi(e,t,Ui,d.placeholder,n,w,E,c,u,h-b)}var S=f?n:this,k=m?S[e]:e;return b=w.length,c?w=function(e,t){var n=e.length,r=wn(t.length,n),o=Mi(e);for(;r--;){var s=t[r];e[r]=wo(s,n)?o[s]:i}return e}(w,c):v&&b>1&&w.reverse(),p&&u<b&&(w.length=u),this&&this!==mt&&this instanceof d&&(k=y||Li(k)),k.apply(S,w)}}function Wi(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Vi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ui(n),r=ui(r)):(n=ci(n),r=ci(r)),o=e(n,r)}return o}}function Hi(e){return ro((function(t){return t=Dt(t,Qt(co())),Kr((function(n){var r=this;return e(t,(function(e){return Nt(e,r,n)}))}))}))}function Zi(e,t){var n=(t=t===i?" ":ui(t)).length;if(n<2)return n?Xr(t,e):t;var r=Xr(t,ft(e/fn(t)));return ln(t)?_i(mn(r),0,e).join(""):r.slice(0,e)}function Yi(e){return function(t,n,o){return o&&"number"!=typeof o&&xo(t,n,o)&&(n=o=i),t=fa(t),n===i?(n=t,t=0):n=fa(n),function(e,t,n,i){for(var o=-1,s=bn(ft((t-e)/(n||1)),0),a=r(s);s--;)a[i?s:++o]=e,e+=n;return a}(t,n,o=o===i?t<n?1:-1:fa(o),e)}}function Gi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=va(t),n=va(n)),e(t,n)}}function qi(e,t,n,r,o,s,a,l,d,h){var p=8&t;t|=p?c:u,4&(t&=~(p?u:c))||(t&=-4);var f=[e,t,o,p?s:i,p?a:i,p?i:s,p?i:a,l,d,h],m=n.apply(i,f);return Co(e)&&Ao(m,f),m.placeholder=r,zo(m,e,t)}function $i(e){var t=ke[e];return function(e,n){if(e=va(e),(n=null==n?0:wn(ma(n),292))&&wt(e)){var r=(ba(e)+"e").split("e");return+((r=(ba(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xi=Rn&&1/hn(new Rn([,-0]))[1]==p?function(e){return new Rn(e)}:cl;function Ki(e){return function(t){var n=go(t);return n==S?cn(t):n==M?pn(t):function(e,t){return Dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ji(e,t,n,s,p,f,m,g){var v=2&t;if(!v&&"function"!=typeof e)throw new Me(o);var y=s?s.length:0;if(y||(t&=-97,s=p=i),m=m===i?m:bn(ma(m),0),g=g===i?g:ma(g),y-=p?p.length:0,t&u){var b=s,w=p;s=p=i}var x=v?i:so(e),_=[e,t,n,s,p,b,w,f,m,g];if(x&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=r==d&&8==n||r==d&&n==h&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Ri(c,l,t[4]):l,e[4]=c?dn(e[3],a):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Ii(c,l,t[6]):l,e[6]=c?dn(e[5],a):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(_,x),e=_[0],t=_[1],n=_[2],s=_[3],p=_[4],!(g=_[9]=_[9]===i?v?0:e.length:bn(_[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)C=8==t||t==l?function(e,t,n){var o=Li(e);return function s(){for(var a=arguments.length,l=r(a),c=a,u=lo(s);c--;)l[c]=arguments[c];var d=a<3&&l[0]!==u&&l[a-1]!==u?[]:dn(l,u);return(a-=d.length)<n?qi(e,t,Ui,s.placeholder,i,l,d,i,i,n-a):Nt(this&&this!==mt&&this instanceof s?o:e,this,l)}}(e,t,g):t!=c&&33!=t||p.length?Ui.apply(i,_):function(e,t,n,i){var o=1&t,s=Li(e);return function t(){for(var a=-1,l=arguments.length,c=-1,u=i.length,d=r(u+l),h=this&&this!==mt&&this instanceof t?s:e;++c<u;)d[c]=i[c];for(;l--;)d[c++]=arguments[++a];return Nt(h,o?n:this,d)}}(e,t,n,s);else var C=function(e,t,n){var r=1&t,i=Li(e);return function t(){return(this&&this!==mt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return zo((x?ti:Ao)(C,_),e,t)}function Qi(e,t,n,r){return e===i||Us(e,Te[n])&&!je.call(r,n)?t:e}function eo(e,t,n,r,o,s){return ta(e)&&ta(t)&&(s.set(t,e),Vr(e,t,i,eo,s),s.delete(t)),e}function to(e){return oa(e)?i:e}function no(e,t,n,r,o,s){var a=1&n,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var h=-1,p=!0,f=2&n?new $n:i;for(s.set(e,t),s.set(t,e);++h<l;){var m=e[h],g=t[h];if(r)var v=a?r(g,m,h,t,e,s):r(m,g,h,e,t,s);if(v!==i){if(v)continue;p=!1;break}if(f){if(!Ft(t,(function(e,t){if(!tn(f,t)&&(m===e||o(m,e,n,r,s)))return f.push(t)}))){p=!1;break}}else if(m!==g&&!o(m,g,n,r,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function ro(e){return To(Ro(e,i,Yo),e+"")}function io(e){return Sr(e,Oa,fo)}function oo(e){return Sr(e,Ta,mo)}var so=An?function(e){return An.get(e)}:cl;function ao(e){for(var t=e.name+"",n=On[t],r=je.call(On,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function lo(e){return(je.call(Un,"placeholder")?Un:e).placeholder}function co(){var e=Un.iteratee||ol;return e=e===ol?jr:e,arguments.length?e(arguments[0],arguments[1]):e}function uo(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function ho(e){for(var t=Oa(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ko(i)]}return t}function po(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Dr(n)?n:i}var fo=vt?function(e){return null==e?[]:(e=Ne(e),Ot(vt(e),(function(t){return $e.call(e,t)})))}:gl,mo=vt?function(e){for(var t=[];e;)jt(t,fo(e)),e=Ge(e);return t}:gl,go=kr;function vo(e,t,n){for(var r=-1,i=(t=wi(t,e)).length,o=!1;++r<i;){var s=Lo(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&ea(i)&&wo(s,i)&&(Zs(e)||Hs(e))}function yo(e){return"function"!=typeof e.constructor||So(e)?{}:Wn(Ge(e))}function bo(e){return Zs(e)||Hs(e)||!!(Ke&&e&&e[Ke])}function wo(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function xo(e,t,n){if(!ta(n))return!1;var r=typeof t;return!!("number"==r?Gs(n)&&wo(t,n.length):"string"==r&&t in n)&&Us(n[t],e)}function _o(e,t){if(Zs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ca(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ne(t))}function Co(e){var t=ao(e),n=Un[t];if("function"!=typeof n||!(t in Zn.prototype))return!1;if(e===n)return!0;var r=so(n);return!!r&&e===r[0]}(Sn&&go(new Sn(new ArrayBuffer(1)))!=D||kn&&go(new kn)!=S||Nn&&go(Nn.resolve())!=R||Rn&&go(new Rn)!=M||In&&go(new In)!=T)&&(go=function(e){var t=kr(e),n=t==N?e.constructor:i,r=n?Fo(n):"";if(r)switch(r){case Tn:return D;case zn:return S;case Dn:return R;case jn:return M;case Pn:return T}return t});var Eo=ze?Js:vl;function So(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Te)}function ko(e){return e==e&&!ta(e)}function No(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Ne(n)))}}function Ro(e,t,n){return t=bn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=bn(i.length-t,0),a=r(s);++o<s;)a[o]=i[t+o];o=-1;for(var l=r(t+1);++o<t;)l[o]=i[o];return l[t]=n(a),Nt(e,this,l)}}function Io(e,t){return t.length<2?e:Er(e,ii(t,0,-1))}function Mo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ao=Do(ti),Oo=pt||function(e,t){return mt.setTimeout(e,t)},To=Do(ni);function zo(e,t,n){var r=t+"";return To(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return It(v,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(r),n)))}function Do(e){var t=0,n=0;return function(){var r=xn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function jo(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var s=$r(n,o),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Po=function(e){var t=Ds(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,i){t.push(r?i.replace(pe,"$1"):n||e)})),t}));function Lo(e){if("string"==typeof e||ca(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fo(e){if(null!=e){try{return De.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bo(e){if(e instanceof Zn)return e.clone();var t=new Hn(e.__wrapped__,e.__chain__);return t.__actions__=Mi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Uo=Kr((function(e,t){return qs(e)?hr(e,yr(t,1,qs,!0)):[]})),Wo=Kr((function(e,t){var n=Ko(t);return qs(n)&&(n=i),qs(e)?hr(e,yr(t,1,qs,!0),co(n,2)):[]})),Vo=Kr((function(e,t){var n=Ko(t);return qs(n)&&(n=i),qs(e)?hr(e,yr(t,1,qs,!0),i,n):[]}));function Ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ma(n);return i<0&&(i=bn(r+i,0)),Wt(e,co(t,3),i)}function Zo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=ma(n),o=n<0?bn(r+o,0):wn(o,r-1)),Wt(e,co(t,3),o,!0)}function Yo(e){return(null==e?0:e.length)?yr(e,1):[]}function Go(e){return e&&e.length?e[0]:i}var qo=Kr((function(e){var t=Dt(e,yi);return t.length&&t[0]===e[0]?Mr(t):[]})),$o=Kr((function(e){var t=Ko(e),n=Dt(e,yi);return t===Ko(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Mr(n,co(t,2)):[]})),Xo=Kr((function(e){var t=Ko(e),n=Dt(e,yi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Mr(n,i,t):[]}));function Ko(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Jo=Kr(Qo);function Qo(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var es=ro((function(e,t){var n=null==e?0:e.length,r=ar(e,t);return qr(e,Dt(t,(function(e){return wo(e,n)?+e:e})).sort(Ni)),r}));function ts(e){return null==e?e:En.call(e)}var ns=Kr((function(e){return di(yr(e,1,qs,!0))})),rs=Kr((function(e){var t=Ko(e);return qs(t)&&(t=i),di(yr(e,1,qs,!0),co(t,2))})),is=Kr((function(e){var t=Ko(e);return t="function"==typeof t?t:i,di(yr(e,1,qs,!0),i,t)}));function os(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,(function(e){if(qs(e))return t=bn(e.length,t),!0})),Kt(t,(function(t){return Dt(e,Gt(t))}))}function ss(e,t){if(!e||!e.length)return[];var n=os(e);return null==t?n:Dt(n,(function(e){return Nt(t,i,e)}))}var as=Kr((function(e,t){return qs(e)?hr(e,t):[]})),ls=Kr((function(e){return gi(Ot(e,qs))})),cs=Kr((function(e){var t=Ko(e);return qs(t)&&(t=i),gi(Ot(e,qs),co(t,2))})),us=Kr((function(e){var t=Ko(e);return t="function"==typeof t?t:i,gi(Ot(e,qs),i,t)})),ds=Kr(os);var hs=Kr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ss(e,n)}));function ps(e){var t=Un(e);return t.__chain__=!0,t}function fs(e,t){return t(e)}var ms=ro((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Zn&&wo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fs,args:[o],thisArg:i}),new Hn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));var gs=Oi((function(e,t,n){je.call(e,n)?++e[n]:sr(e,n,1)}));var vs=Fi(Ho),ys=Fi(Zo);function bs(e,t){return(Zs(e)?It:pr)(e,co(t,3))}function ws(e,t){return(Zs(e)?Mt:fr)(e,co(t,3))}var xs=Oi((function(e,t,n){je.call(e,n)?e[n].push(t):sr(e,n,[t])}));var _s=Kr((function(e,t,n){var i=-1,o="function"==typeof t,s=Gs(e)?r(e.length):[];return pr(e,(function(e){s[++i]=o?Nt(t,e,n):Ar(e,t,n)})),s})),Cs=Oi((function(e,t,n){sr(e,n,t)}));function Es(e,t){return(Zs(e)?Dt:Br)(e,co(t,3))}var Ss=Oi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ks=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xo(e,t[0],t[1])?t=[]:n>2&&xo(t[0],t[1],t[2])&&(t=[t[0]]),Zr(e,yr(t,1),[])})),Ns=ut||function(){return mt.Date.now()};function Rs(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ji(e,d,i,i,i,i,t)}function Is(e,t){var n;if("function"!=typeof t)throw new Me(o);return e=ma(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ms=Kr((function(e,t,n){var r=1;if(n.length){var i=dn(n,lo(Ms));r|=c}return Ji(e,r,t,n,i)})),As=Kr((function(e,t,n){var r=3;if(n.length){var i=dn(n,lo(As));r|=c}return Ji(t,r,e,n,i)}));function Os(e,t,n){var r,s,a,l,c,u,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new Me(o);function m(t){var n=r,o=s;return r=s=i,d=t,l=e.apply(o,n)}function g(e){var n=e-u;return u===i||n>=t||n<0||p&&e-d>=a}function v(){var e=Ns();if(g(e))return y(e);c=Oo(v,function(e){var n=t-(e-u);return p?wn(n,a-(e-d)):n}(e))}function y(e){return c=i,f&&r?m(e):(r=s=i,l)}function b(){var e=Ns(),n=g(e);if(r=arguments,s=this,u=e,n){if(c===i)return function(e){return d=e,c=Oo(v,t),h?m(e):l}(u);if(p)return Ci(c),c=Oo(v,t),m(u)}return c===i&&(c=Oo(v,t)),l}return t=va(t)||0,ta(n)&&(h=!!n.leading,a=(p="maxWait"in n)?bn(va(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),b.cancel=function(){c!==i&&Ci(c),d=0,r=u=s=c=i},b.flush=function(){return c===i?l:y(Ns())},b}var Ts=Kr((function(e,t){return dr(e,1,t)})),zs=Kr((function(e,t,n){return dr(e,va(t)||0,n)}));function Ds(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ds.Cache||qn),n}function js(e){if("function"!=typeof e)throw new Me(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ds.Cache=qn;var Ps=xi((function(e,t){var n=(t=1==t.length&&Zs(t[0])?Dt(t[0],Qt(co())):Dt(yr(t,1),Qt(co()))).length;return Kr((function(r){for(var i=-1,o=wn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Nt(e,this,r)}))})),Ls=Kr((function(e,t){var n=dn(t,lo(Ls));return Ji(e,c,i,t,n)})),Fs=Kr((function(e,t){var n=dn(t,lo(Fs));return Ji(e,u,i,t,n)})),Bs=ro((function(e,t){return Ji(e,h,i,i,i,t)}));function Us(e,t){return e===t||e!=e&&t!=t}var Ws=Gi(Nr),Vs=Gi((function(e,t){return e>=t})),Hs=Or(function(){return arguments}())?Or:function(e){return na(e)&&je.call(e,"callee")&&!$e.call(e,"callee")},Zs=r.isArray,Ys=xt?Qt(xt):function(e){return na(e)&&kr(e)==z};function Gs(e){return null!=e&&ea(e.length)&&!Js(e)}function qs(e){return na(e)&&Gs(e)}var $s=bt||vl,Xs=_t?Qt(_t):function(e){return na(e)&&kr(e)==x};function Ks(e){if(!na(e))return!1;var t=kr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!oa(e)}function Js(e){if(!ta(e))return!1;var t=kr(e);return t==C||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qs(e){return"number"==typeof e&&e==ma(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function na(e){return null!=e&&"object"==typeof e}var ra=Ct?Qt(Ct):function(e){return na(e)&&go(e)==S};function ia(e){return"number"==typeof e||na(e)&&kr(e)==k}function oa(e){if(!na(e)||kr(e)!=N)return!1;var t=Ge(e);if(null===t)return!0;var n=je.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Be}var sa=Et?Qt(Et):function(e){return na(e)&&kr(e)==I};var aa=St?Qt(St):function(e){return na(e)&&go(e)==M};function la(e){return"string"==typeof e||!Zs(e)&&na(e)&&kr(e)==A}function ca(e){return"symbol"==typeof e||na(e)&&kr(e)==O}var ua=kt?Qt(kt):function(e){return na(e)&&ea(e.length)&&!!lt[kr(e)]};var da=Gi(Fr),ha=Gi((function(e,t){return e<=t}));function pa(e){if(!e)return[];if(Gs(e))return la(e)?mn(e):Mi(e);if(Je&&e[Je])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Je]());var t=go(e);return(t==S?cn:t==M?hn:Ua)(e)}function fa(e){return e?(e=va(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ma(e){var t=fa(e),n=t%1;return t==t?n?t-n:t:0}function ga(e){return e?lr(ma(e),0,g):0}function va(e){if("number"==typeof e)return e;if(ca(e))return m;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ve.test(e);return n||be.test(e)?ht(e.slice(2),n?2:8):ge.test(e)?m:+e}function ya(e){return Ai(e,Ta(e))}function ba(e){return null==e?"":ui(e)}var wa=Ti((function(e,t){if(So(t)||Gs(t))Ai(t,Oa(t),e);else for(var n in t)je.call(t,n)&&nr(e,n,t[n])})),xa=Ti((function(e,t){Ai(t,Ta(t),e)})),_a=Ti((function(e,t,n,r){Ai(t,Ta(t),e,r)})),Ca=Ti((function(e,t,n,r){Ai(t,Oa(t),e,r)})),Ea=ro(ar);var Sa=Kr((function(e,t){e=Ne(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&xo(t[0],t[1],o)&&(r=1);++n<r;)for(var s=t[n],a=Ta(s),l=-1,c=a.length;++l<c;){var u=a[l],d=e[u];(d===i||Us(d,Te[u])&&!je.call(e,u))&&(e[u]=s[u])}return e})),ka=Kr((function(e){return e.push(i,eo),Nt(Da,i,e)}));function Na(e,t,n){var r=null==e?i:Er(e,t);return r===i?n:r}function Ra(e,t){return null!=e&&vo(e,t,Ir)}var Ia=Wi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),tl(il)),Ma=Wi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),je.call(e,t)?e[t].push(n):e[t]=[n]}),co),Aa=Kr(Ar);function Oa(e){return Gs(e)?Kn(e):Pr(e)}function Ta(e){return Gs(e)?Kn(e,!0):Lr(e)}var za=Ti((function(e,t,n){Vr(e,t,n)})),Da=Ti((function(e,t,n,r){Vr(e,t,n,r)})),ja=ro((function(e,t){var n={};if(null==e)return n;var r=!1;t=Dt(t,(function(t){return t=wi(t,e),r||(r=t.length>1),t})),Ai(e,oo(e),n),r&&(n=cr(n,7,to));for(var i=t.length;i--;)hi(n,t[i]);return n}));var Pa=ro((function(e,t){return null==e?{}:function(e,t){return Yr(e,t,(function(t,n){return Ra(e,n)}))}(e,t)}));function La(e,t){if(null==e)return{};var n=Dt(oo(e),(function(e){return[e]}));return t=co(t),Yr(e,n,(function(e,n){return t(e,n[0])}))}var Fa=Ki(Oa),Ba=Ki(Ta);function Ua(e){return null==e?[]:en(e,Oa(e))}var Wa=Pi((function(e,t,n){return t=t.toLowerCase(),e+(n?Va(t):t)}));function Va(e){return Ka(ba(e).toLowerCase())}function Ha(e){return(e=ba(e))&&e.replace(xe,on).replace(tt,"")}var Za=Pi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ya=Pi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ga=ji("toLowerCase");var qa=Pi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var $a=Pi((function(e,t,n){return e+(n?" ":"")+Ka(t)}));var Xa=Pi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ka=ji("toUpperCase");function Ja(e,t,n){return e=ba(e),(t=n?i:t)===i?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Qa=Kr((function(e,t){try{return Nt(e,i,t)}catch(e){return Ks(e)?e:new Ee(e)}})),el=ro((function(e,t){return It(t,(function(t){t=Lo(t),sr(e,t,Ms(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Bi(),rl=Bi(!0);function il(e){return e}function ol(e){return jr("function"==typeof e?e:cr(e,1))}var sl=Kr((function(e,t){return function(n){return Ar(n,e,t)}})),al=Kr((function(e,t){return function(n){return Ar(e,n,t)}}));function ll(e,t,n){var r=Oa(t),i=Cr(t,r);null!=n||ta(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Cr(t,Oa(t)));var o=!(ta(n)&&"chain"in n&&!n.chain),s=Js(e);return It(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Mi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,jt([this.value()],arguments))})})),e}function cl(){}var ul=Hi(Dt),dl=Hi(At),hl=Hi(Ft);function pl(e){return _o(e)?Gt(Lo(e)):function(e){return function(t){return Er(t,e)}}(e)}var fl=Yi(),ml=Yi(!0);function gl(){return[]}function vl(){return!1}var yl=Vi((function(e,t){return e+t}),0),bl=$i("ceil"),wl=Vi((function(e,t){return e/t}),1),xl=$i("floor");var _l,Cl=Vi((function(e,t){return e*t}),1),El=$i("round"),Sl=Vi((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Me(o);return e=ma(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Rs,Un.assign=wa,Un.assignIn=xa,Un.assignInWith=_a,Un.assignWith=Ca,Un.at=Ea,Un.before=Is,Un.bind=Ms,Un.bindAll=el,Un.bindKey=As,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Zs(e)?e:[e]},Un.chain=ps,Un.chunk=function(e,t,n){t=(n?xo(e,t,n):t===i)?1:bn(ma(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,l=r(ft(o/t));s<o;)l[a++]=ii(e,s,s+=t);return l},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return jt(Zs(n)?Mi(n):[n],yr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=co();return e=t?Dt(e,(function(e){if("function"!=typeof e[1])throw new Me(o);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Nt(i[0],this,n))return Nt(i[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=Oa(e);return function(n){return ur(n,e,t)}}(cr(e,1))},Un.constant=tl,Un.countBy=gs,Un.create=function(e,t){var n=Wn(e);return null==t?n:or(n,t)},Un.curry=function e(t,n,r){var o=Ji(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Un.curryRight=function e(t,n,r){var o=Ji(t,l,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Un.debounce=Os,Un.defaults=Sa,Un.defaultsDeep=ka,Un.defer=Ts,Un.delay=zs,Un.difference=Uo,Un.differenceBy=Wo,Un.differenceWith=Vo,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=n||t===i?1:ma(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,0,(t=r-(t=n||t===i?1:ma(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?fi(e,co(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?fi(e,co(t,3),!0):[]},Un.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&xo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=ma(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:ma(r))<0&&(r+=o),r=n>r?0:ga(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return(Zs(e)?Ot:vr)(e,co(t,3))},Un.flatMap=function(e,t){return yr(Es(e,t),1)},Un.flatMapDeep=function(e,t){return yr(Es(e,t),p)},Un.flatMapDepth=function(e,t,n){return n=n===i?1:ma(n),yr(Es(e,t),n)},Un.flatten=Yo,Un.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,p):[]},Un.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===i?1:ma(t)):[]},Un.flip=function(e){return Ji(e,512)},Un.flow=nl,Un.flowRight=rl,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Un.functions=function(e){return null==e?[]:Cr(e,Oa(e))},Un.functionsIn=function(e){return null==e?[]:Cr(e,Ta(e))},Un.groupBy=xs,Un.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},Un.intersection=qo,Un.intersectionBy=$o,Un.intersectionWith=Xo,Un.invert=Ia,Un.invertBy=Ma,Un.invokeMap=_s,Un.iteratee=ol,Un.keyBy=Cs,Un.keys=Oa,Un.keysIn=Ta,Un.map=Es,Un.mapKeys=function(e,t){var n={};return t=co(t,3),xr(e,(function(e,r,i){sr(n,t(e,r,i),e)})),n},Un.mapValues=function(e,t){var n={};return t=co(t,3),xr(e,(function(e,r,i){sr(n,r,t(e,r,i))})),n},Un.matches=function(e){return Ur(cr(e,1))},Un.matchesProperty=function(e,t){return Wr(e,cr(t,1))},Un.memoize=Ds,Un.merge=za,Un.mergeWith=Da,Un.method=sl,Un.methodOf=al,Un.mixin=ll,Un.negate=js,Un.nthArg=function(e){return e=ma(e),Kr((function(t){return Hr(t,e)}))},Un.omit=ja,Un.omitBy=function(e,t){return La(e,js(co(t)))},Un.once=function(e){return Is(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:(Zs(t)||(t=null==t?[]:[t]),Zs(n=r?i:n)||(n=null==n?[]:[n]),Zr(e,t,n))},Un.over=ul,Un.overArgs=Ps,Un.overEvery=dl,Un.overSome=hl,Un.partial=Ls,Un.partialRight=Fs,Un.partition=Ss,Un.pick=Pa,Un.pickBy=La,Un.property=pl,Un.propertyOf=function(e){return function(t){return null==e?i:Er(e,t)}},Un.pull=Jo,Un.pullAll=Qo,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,co(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,i,n):e},Un.pullAt=es,Un.range=fl,Un.rangeRight=ml,Un.rearg=Bs,Un.reject=function(e,t){return(Zs(e)?Ot:vr)(e,js(co(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=co(t,3);++r<o;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return qr(e,i),n},Un.rest=function(e,t){if("function"!=typeof e)throw new Me(o);return Kr(e,t=t===i?t:ma(t))},Un.reverse=ts,Un.sampleSize=function(e,t,n){return t=(n?xo(e,t,n):t===i)?1:ma(t),(Zs(e)?Qn:Qr)(e,t)},Un.set=function(e,t,n){return null==e?e:ei(e,t,n)},Un.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ei(e,t,n,r)},Un.shuffle=function(e){return(Zs(e)?er:ri)(e)},Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&xo(e,t,n)?(t=0,n=r):(t=null==t?0:ma(t),n=n===i?r:ma(n)),ii(e,t,n)):[]},Un.sortBy=ks,Un.sortedUniq=function(e){return e&&e.length?li(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?li(e,co(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&xo(e,t,n)&&(t=n=i),(n=n===i?g:n>>>0)?(e=ba(e))&&("string"==typeof t||null!=t&&!sa(t))&&!(t=ui(t))&&ln(e)?_i(mn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Me(o);return t=null==t?0:bn(ma(t),0),Kr((function(n){var r=n[t],i=_i(n,0,t);return r&&jt(i,r),Nt(e,this,i)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ii(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ii(e,0,(t=n||t===i?1:ma(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=r-(t=n||t===i?1:ma(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?fi(e,co(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?fi(e,co(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Me(o);return ta(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Os(e,t,{leading:r,maxWait:t,trailing:i})},Un.thru=fs,Un.toArray=pa,Un.toPairs=Fa,Un.toPairsIn=Ba,Un.toPath=function(e){return Zs(e)?Dt(e,Lo):ca(e)?[e]:Mi(Po(ba(e)))},Un.toPlainObject=ya,Un.transform=function(e,t,n){var r=Zs(e),i=r||$s(e)||ua(e);if(t=co(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ta(e)&&Js(o)?Wn(Ge(e)):{}}return(i?It:xr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Un.unary=function(e){return Rs(e,1)},Un.union=ns,Un.unionBy=rs,Un.unionWith=is,Un.uniq=function(e){return e&&e.length?di(e):[]},Un.uniqBy=function(e,t){return e&&e.length?di(e,co(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?di(e,i,t):[]},Un.unset=function(e,t){return null==e||hi(e,t)},Un.unzip=os,Un.unzipWith=ss,Un.update=function(e,t,n){return null==e?e:pi(e,t,bi(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:pi(e,t,bi(n),r)},Un.values=Ua,Un.valuesIn=function(e){return null==e?[]:en(e,Ta(e))},Un.without=as,Un.words=Ja,Un.wrap=function(e,t){return Ls(bi(t),e)},Un.xor=ls,Un.xorBy=cs,Un.xorWith=us,Un.zip=ds,Un.zipObject=function(e,t){return vi(e||[],t||[],nr)},Un.zipObjectDeep=function(e,t){return vi(e||[],t||[],ei)},Un.zipWith=hs,Un.entries=Fa,Un.entriesIn=Ba,Un.extend=xa,Un.extendWith=_a,ll(Un,Un),Un.add=yl,Un.attempt=Qa,Un.camelCase=Wa,Un.capitalize=Va,Un.ceil=bl,Un.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=va(n))==n?n:0),t!==i&&(t=(t=va(t))==t?t:0),lr(va(e),t,n)},Un.clone=function(e){return cr(e,4)},Un.cloneDeep=function(e){return cr(e,5)},Un.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:i)},Un.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:i)},Un.conformsTo=function(e,t){return null==t||ur(e,t,Oa(t))},Un.deburr=Ha,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=wl,Un.endsWith=function(e,t,n){e=ba(e),t=ui(t);var r=e.length,o=n=n===i?r:lr(ma(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Un.eq=Us,Un.escape=function(e){return(e=ba(e))&&K.test(e)?e.replace($,sn):e},Un.escapeRegExp=function(e){return(e=ba(e))&&oe.test(e)?e.replace(ie,"\\$&"):e},Un.every=function(e,t,n){var r=Zs(e)?At:mr;return n&&xo(e,t,n)&&(t=i),r(e,co(t,3))},Un.find=vs,Un.findIndex=Ho,Un.findKey=function(e,t){return Ut(e,co(t,3),xr)},Un.findLast=ys,Un.findLastIndex=Zo,Un.findLastKey=function(e,t){return Ut(e,co(t,3),_r)},Un.floor=xl,Un.forEach=bs,Un.forEachRight=ws,Un.forIn=function(e,t){return null==e?e:br(e,co(t,3),Ta)},Un.forInRight=function(e,t){return null==e?e:wr(e,co(t,3),Ta)},Un.forOwn=function(e,t){return e&&xr(e,co(t,3))},Un.forOwnRight=function(e,t){return e&&_r(e,co(t,3))},Un.get=Na,Un.gt=Ws,Un.gte=Vs,Un.has=function(e,t){return null!=e&&vo(e,t,Rr)},Un.hasIn=Ra,Un.head=Go,Un.identity=il,Un.includes=function(e,t,n,r){e=Gs(e)?e:Ua(e),n=n&&!r?ma(n):0;var i=e.length;return n<0&&(n=bn(i+n,0)),la(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Vt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ma(n);return i<0&&(i=bn(r+i,0)),Vt(e,t,i)},Un.inRange=function(e,t,n){return t=fa(t),n===i?(n=t,t=0):n=fa(n),function(e,t,n){return e>=wn(t,n)&&e<bn(t,n)}(e=va(e),t,n)},Un.invoke=Aa,Un.isArguments=Hs,Un.isArray=Zs,Un.isArrayBuffer=Ys,Un.isArrayLike=Gs,Un.isArrayLikeObject=qs,Un.isBoolean=function(e){return!0===e||!1===e||na(e)&&kr(e)==w},Un.isBuffer=$s,Un.isDate=Xs,Un.isElement=function(e){return na(e)&&1===e.nodeType&&!oa(e)},Un.isEmpty=function(e){if(null==e)return!0;if(Gs(e)&&(Zs(e)||"string"==typeof e||"function"==typeof e.splice||$s(e)||ua(e)||Hs(e)))return!e.length;var t=go(e);if(t==S||t==M)return!e.size;if(So(e))return!Pr(e).length;for(var n in e)if(je.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Tr(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Tr(e,t,i,n):!!r},Un.isError=Ks,Un.isFinite=function(e){return"number"==typeof e&&wt(e)},Un.isFunction=Js,Un.isInteger=Qs,Un.isLength=ea,Un.isMap=ra,Un.isMatch=function(e,t){return e===t||zr(e,t,ho(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,zr(e,t,ho(t),n)},Un.isNaN=function(e){return ia(e)&&e!=+e},Un.isNative=function(e){if(Eo(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=ia,Un.isObject=ta,Un.isObjectLike=na,Un.isPlainObject=oa,Un.isRegExp=sa,Un.isSafeInteger=function(e){return Qs(e)&&e>=-9007199254740991&&e<=f},Un.isSet=aa,Un.isString=la,Un.isSymbol=ca,Un.isTypedArray=ua,Un.isUndefined=function(e){return e===i},Un.isWeakMap=function(e){return na(e)&&go(e)==T},Un.isWeakSet=function(e){return na(e)&&"[object WeakSet]"==kr(e)},Un.join=function(e,t){return null==e?"":Bt.call(e,t)},Un.kebabCase=Za,Un.last=Ko,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=ma(n))<0?bn(r+o,0):wn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Wt(e,Zt,o,!0)},Un.lowerCase=Ya,Un.lowerFirst=Ga,Un.lt=da,Un.lte=ha,Un.max=function(e){return e&&e.length?gr(e,il,Nr):i},Un.maxBy=function(e,t){return e&&e.length?gr(e,co(t,2),Nr):i},Un.mean=function(e){return Yt(e,il)},Un.meanBy=function(e,t){return Yt(e,co(t,2))},Un.min=function(e){return e&&e.length?gr(e,il,Fr):i},Un.minBy=function(e,t){return e&&e.length?gr(e,co(t,2),Fr):i},Un.stubArray=gl,Un.stubFalse=vl,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=Cl,Un.nth=function(e,t){return e&&e.length?Hr(e,ma(t)):i},Un.noConflict=function(){return mt._===this&&(mt._=Ue),this},Un.noop=cl,Un.now=Ns,Un.pad=function(e,t,n){e=ba(e);var r=(t=ma(t))?fn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Zi(gt(i),n)+e+Zi(ft(i),n)},Un.padEnd=function(e,t,n){e=ba(e);var r=(t=ma(t))?fn(e):0;return t&&r<t?e+Zi(t-r,n):e},Un.padStart=function(e,t,n){e=ba(e);var r=(t=ma(t))?fn(e):0;return t&&r<t?Zi(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),_n(ba(e).replace(se,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&xo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=fa(e),t===i?(t=e,e=0):t=fa(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Cn();return wn(e+o*(t-e+dt("1e-"+((o+"").length-1))),t)}return $r(e,t)},Un.reduce=function(e,t,n){var r=Zs(e)?Pt:$t,i=arguments.length<3;return r(e,co(t,4),n,i,pr)},Un.reduceRight=function(e,t,n){var r=Zs(e)?Lt:$t,i=arguments.length<3;return r(e,co(t,4),n,i,fr)},Un.repeat=function(e,t,n){return t=(n?xo(e,t,n):t===i)?1:ma(t),Xr(ba(e),t)},Un.replace=function(){var e=arguments,t=ba(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,o=(t=wi(t,e)).length;for(o||(o=1,e=i);++r<o;){var s=null==e?i:e[Lo(t[r])];s===i&&(r=o,s=n),e=Js(s)?s.call(e):s}return e},Un.round=El,Un.runInContext=e,Un.sample=function(e){return(Zs(e)?Jn:Jr)(e)},Un.size=function(e){if(null==e)return 0;if(Gs(e))return la(e)?fn(e):e.length;var t=go(e);return t==S||t==M?e.size:Pr(e).length},Un.snakeCase=qa,Un.some=function(e,t,n){var r=Zs(e)?Ft:oi;return n&&xo(e,t,n)&&(t=i),r(e,co(t,3))},Un.sortedIndex=function(e,t){return si(e,t)},Un.sortedIndexBy=function(e,t,n){return ai(e,t,co(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=si(e,t);if(r<n&&Us(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return si(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return ai(e,t,co(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=si(e,t,!0)-1;if(Us(e[n],t))return n}return-1},Un.startCase=$a,Un.startsWith=function(e,t,n){return e=ba(e),n=null==n?0:lr(ma(n),0,e.length),t=ui(t),e.slice(n,n+t.length)==t},Un.subtract=Sl,Un.sum=function(e){return e&&e.length?Xt(e,il):0},Un.sumBy=function(e,t){return e&&e.length?Xt(e,co(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&xo(e,t,n)&&(t=i),e=ba(e),t=_a({},t,r,Qi);var o,s,a=_a({},t.imports,r.imports,Qi),l=Oa(a),c=en(a,l),u=0,d=t.interpolate||_e,h="__p += '",p=Re((t.escape||_e).source+"|"+d.source+"|"+(d===ee?fe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),f="//# sourceURL="+(je.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(p,(function(t,n,r,i,a,l){return r||(r=i),h+=e.slice(u,l).replace(Ce,an),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),h+="';\n";var m=je.call(t,"variable")&&t.variable;if(m){if(he.test(m))throw new Ee("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(Z,""):h).replace(Y,"$1").replace(G,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Qa((function(){return Se(l,f+"return "+h).apply(i,c)}));if(g.source=h,Ks(g))throw g;return g},Un.times=function(e,t){if((e=ma(e))<1||e>f)return[];var n=g,r=wn(e,g);t=co(t),e-=g;for(var i=Kt(r,t);++n<e;)t(n);return i},Un.toFinite=fa,Un.toInteger=ma,Un.toLength=ga,Un.toLower=function(e){return ba(e).toLowerCase()},Un.toNumber=va,Un.toSafeInteger=function(e){return e?lr(ma(e),-9007199254740991,f):0===e?e:0},Un.toString=ba,Un.toUpper=function(e){return ba(e).toUpperCase()},Un.trim=function(e,t,n){if((e=ba(e))&&(n||t===i))return Jt(e);if(!e||!(t=ui(t)))return e;var r=mn(e),o=mn(t);return _i(r,nn(r,o),rn(r,o)+1).join("")},Un.trimEnd=function(e,t,n){if((e=ba(e))&&(n||t===i))return e.slice(0,gn(e)+1);if(!e||!(t=ui(t)))return e;var r=mn(e);return _i(r,0,rn(r,mn(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=ba(e))&&(n||t===i))return e.replace(se,"");if(!e||!(t=ui(t)))return e;var r=mn(e);return _i(r,nn(r,mn(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(ta(t)){var o="separator"in t?t.separator:o;n="length"in t?ma(t.length):n,r="omission"in t?ui(t.omission):r}var s=(e=ba(e)).length;if(ln(e)){var a=mn(e);s=a.length}if(n>=s)return e;var l=n-fn(r);if(l<1)return r;var c=a?_i(a,0,l).join(""):e.slice(0,l);if(o===i)return c+r;if(a&&(l+=c.length-l),sa(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Re(o.source,ba(me.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var h=u.index;c=c.slice(0,h===i?l:h)}}else if(e.indexOf(ui(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+r},Un.unescape=function(e){return(e=ba(e))&&X.test(e)?e.replace(q,vn):e},Un.uniqueId=function(e){var t=++Pe;return ba(e)+t},Un.upperCase=Xa,Un.upperFirst=Ka,Un.each=bs,Un.eachRight=ws,Un.first=Go,ll(Un,(_l={},xr(Un,(function(e,t){je.call(Un.prototype,t)||(_l[t]=e)})),_l),{chain:!1}),Un.VERSION="4.17.21",It(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),It(["drop","take"],(function(e,t){Zn.prototype[e]=function(n){n=n===i?1:bn(ma(n),0);var r=this.__filtered__&&!t?new Zn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},Zn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),It(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Zn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:co(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),It(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Zn.prototype[e]=function(){return this[n](1).value()[0]}})),It(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Zn.prototype[e]=function(){return this.__filtered__?new Zn(this):this[n](1)}})),Zn.prototype.compact=function(){return this.filter(il)},Zn.prototype.find=function(e){return this.filter(e).head()},Zn.prototype.findLast=function(e){return this.reverse().find(e)},Zn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Zn(this):this.map((function(n){return Ar(n,e,t)}))})),Zn.prototype.reject=function(e){return this.filter(js(co(e)))},Zn.prototype.slice=function(e,t){e=ma(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Zn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ma(t))<0?n.dropRight(-t):n.take(t-e)),n)},Zn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Zn.prototype.toArray=function(){return this.take(g)},xr(Zn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Un[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(Un.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,l=t instanceof Zn,c=a[0],u=l||Zs(t),d=function(e){var t=o.apply(Un,jt([e],a));return r&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=!!this.__actions__.length,f=s&&!h,m=l&&!p;if(!s&&u){t=m?t:new Zn(this);var g=e.apply(t,a);return g.__actions__.push({func:fs,args:[d],thisArg:i}),new Hn(g,h)}return f&&m?e.apply(this,a):(g=this.thru(d),f?r?g.value()[0]:g.value():g)})})),It(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Zs(i)?i:[],e)}return this[n]((function(n){return t.apply(Zs(n)?n:[],e)}))}})),xr(Zn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";je.call(On,r)||(On[r]=[]),On[r].push({name:t,func:n})}})),On[Ui(i,2).name]=[{name:"wrapper",func:i}],Zn.prototype.clone=function(){var e=new Zn(this.__wrapped__);return e.__actions__=Mi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Mi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Mi(this.__views__),e},Zn.prototype.reverse=function(){if(this.__filtered__){var e=new Zn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Zn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Zs(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=wn(t,e+s);break;case"takeRight":e=bn(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,c=r?a:s-1,u=this.__iteratees__,d=u.length,h=0,p=wn(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return mi(e,this.__actions__);var f=[];e:for(;l--&&h<p;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],y=v.iteratee,b=v.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}f[h++]=g}return f},Un.prototype.at=ms,Un.prototype.chain=function(){return ps(this)},Un.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===i&&(this.__values__=pa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Vn;){var r=Bo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Zn){var t=e;return this.__actions__.length&&(t=new Zn(this)),(t=t.reverse()).__actions__.push({func:fs,args:[ts],thisArg:i}),new Hn(t,this.__chain__)}return this.thru(ts)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return mi(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,Je&&(Un.prototype[Je]=function(){return this}),Un}();mt._=yn,(r=function(){return yn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},62349:(e,t,n)=>{var r=n(5809),i=n(82406),o=n(5707),s=parseFloat,a=Math.min,l=Math.random;e.exports=function(e,t,n){if(n&&"boolean"!=typeof n&&i(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=o(e),void 0===t?(t=e,e=0):t=o(t)),e>t){var c=e;e=t,t=c}if(n||e%1||t%1){var u=l();return a(e+u*(t-e+s("1e-"+((u+"").length-1))),t)}return r(e,t)}},19456:(e,t,n)=>{"use strict";const r=n(10161);class i{constructor(){this._queue=[]}enqueue(e,t){const n={priority:(t={priority:0,...t}).priority,run:e};if(this.size&&this._queue[this.size-1].priority>=t.priority)return void this._queue.push(n);const r=function(e,t,n){let r=0,i=e.length;for(;i>0;){const o=i/2|0;let s=r+o;n(e[s],t)<=0?(r=++s,i-=o+1):i=o}return r}(this._queue,n,((e,t)=>t.priority-e.priority));this._queue.splice(r,0,n)}dequeue(){return this._queue.shift().run}get size(){return this._queue.length}}e.exports=class extends r{constructor(e){if(super(),!("number"==typeof(e={carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:i,...e}).concurrency&&e.concurrency>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e.concurrency}\` (${typeof e.concurrency})`);if(!("number"==typeof e.intervalCap&&e.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${e.intervalCap}\` (${typeof e.intervalCap})`);if(!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${e.interval}\` (${typeof e.interval})`);this._carryoverConcurrencyCount=e.carryoverConcurrencyCount,this._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,this._intervalCount=0,this._intervalCap=e.intervalCap,this._interval=e.interval,this._intervalId=null,this._intervalEnd=0,this._timeoutId=null,this.queue=new e.queueClass,this._queueClass=e.queueClass,this._pendingCount=0,this._concurrency=e.concurrency,this._isPaused=!1===e.autoStart,this._resolveEmpty=()=>{},this._resolveIdle=()=>{}}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother()}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=()=>{},0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=()=>{})}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=null}_intervalPaused(){const e=Date.now();if(null===this._intervalId){const t=this._intervalEnd-e;if(!(t<0))return null===this._timeoutId&&(this._timeoutId=setTimeout((()=>{this._onResumeInterval()}),t)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}_tryToStartAnother(){if(0===this.queue.size)return clearInterval(this._intervalId),this._intervalId=null,this._resolvePromises(),!1;if(!this._isPaused){const e=!this._intervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother)return this.emit("active"),this.queue.dequeue()(),e&&this._initializeIntervalIfNeeded(),!0}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||null!==this._intervalId||(this._intervalId=setInterval((()=>this._onInterval()),this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){for(0===this._intervalCount&&0===this._pendingCount&&(clearInterval(this._intervalId),this._intervalId=null),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;this._tryToStartAnother(););}async add(e,t){return new Promise(((n,r)=>{this.queue.enqueue((async()=>{this._pendingCount++,this._intervalCount++;try{n(await e())}catch(e){r(e)}this._next()}),t),this._tryToStartAnother()}))}async addAll(e,t){return Promise.all(e.map((e=>this.add(e,t))))}start(){if(this._isPaused)for(this._isPaused=!1;this._tryToStartAnother(););}pause(){this._isPaused=!0}clear(){this.queue=new this._queueClass}async onEmpty(){if(0!==this.queue.size)return new Promise((e=>{const t=this._resolveEmpty;this._resolveEmpty=()=>{t(),e()}}))}async onIdle(){if(0!==this._pendingCount||0!==this.queue.size)return new Promise((e=>{const t=this._resolveIdle;this._resolveIdle=()=>{t(),e()}}))}get size(){return this.queue.size}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}}},19126:(e,t,n)=>{"use strict";var r=n(66845),i=n(29166),o=n(85527);e.exports={formats:o,parse:i,stringify:r}},28316:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(52967)},81346:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var r=n(2784).createContext(null)},49484:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(7896),i=n(31461),o=n(73463),s=n.n(o),a=n(2784),l=n(63920),c=n(82062),u=n(44282),d=n(81346),h=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],p=["reactReduxForwardedRef"],f=[],m=[null,null];function g(e,t){var n=e[1];return[t.payload,n+1]}function v(e,t,n){(0,u.L)((function(){return e.apply(void 0,t)}),n)}function y(e,t,n,r,i,o,s){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,s())}function b(e,t,n,r,i,o,s,a,l,c){if(e){var u=!1,d=null,h=function(){if(!u){var e,n,h=t.getState();try{e=r(h,i.current)}catch(e){n=e,d=e}n||(d=null),e===o.current?s.current||l():(o.current=e,a.current=e,s.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=h,n.trySubscribe(),h();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var w=function(){return[null,0]};function x(e,t){void 0===t&&(t={});var n=t,o=n.getDisplayName,u=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,x=n.methodName,_=void 0===x?"connectAdvanced":x,C=n.renderCountProp,E=void 0===C?void 0:C,S=n.shouldHandleStateChanges,k=void 0===S||S,N=n.storeKey,R=void 0===N?"store":N,I=(n.withRef,n.forwardRef),M=void 0!==I&&I,A=n.context,O=void 0===A?d.E:A,T=(0,i.Z)(n,h),z=O;return function(t){var n=t.displayName||t.name||"Component",o=u(n),d=(0,r.Z)({},T,{getDisplayName:u,methodName:_,renderCountProp:E,shouldHandleStateChanges:k,storeKey:R,displayName:o,wrappedComponentName:n,WrappedComponent:t}),h=T.pure;var x=h?a.useMemo:function(e){return e()};function C(n){var o=(0,a.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,i.Z)(n,p);return[n.context,e,t]}),[n]),s=o[0],u=o[1],h=o[2],_=(0,a.useMemo)((function(){return s&&s.Consumer&&(0,l.isContextConsumer)(a.createElement(s.Consumer,null))?s:z}),[s,z]),C=(0,a.useContext)(_),E=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(C)&&Boolean(C.store);var S=E?n.store:C.store,N=(0,a.useMemo)((function(){return function(t){return e(t.dispatch,d)}(S)}),[S]),R=(0,a.useMemo)((function(){if(!k)return m;var e=(0,c.X)(S,E?null:C.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[S,E,C]),I=R[0],M=R[1],A=(0,a.useMemo)((function(){return E?C:(0,r.Z)({},C,{subscription:I})}),[E,C,I]),O=(0,a.useReducer)(g,f,w),T=O[0][0],D=O[1];if(T&&T.error)throw T.error;var j=(0,a.useRef)(),P=(0,a.useRef)(h),L=(0,a.useRef)(),F=(0,a.useRef)(!1),B=x((function(){return L.current&&h===P.current?L.current:N(S.getState(),h)}),[S,T,h]);v(y,[P,j,F,h,B,L,M]),v(b,[k,S,I,N,P,j,F,L,M,D],[S,I,N]);var U=(0,a.useMemo)((function(){return a.createElement(t,(0,r.Z)({},B,{ref:u}))}),[u,t,B]);return(0,a.useMemo)((function(){return k?a.createElement(_.Provider,{value:A},U):U}),[_,U,A])}var S=h?a.memo(C):C;if(S.WrappedComponent=t,S.displayName=C.displayName=o,M){var N=a.forwardRef((function(e,t){return a.createElement(S,(0,r.Z)({},e,{reactReduxForwardedRef:t}))}));return N.displayName=o,N.WrappedComponent=t,s()(N,t)}return s()(S,t)}}},33817:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(7896),i=n(31461),o=n(49484),s=n(74570),a=n(56750),l=n(8528);const c=[function(e){return"function"==typeof e?(0,l.xv)(e,"mapDispatchToProps"):void 0},function(e){return e?void 0:(0,l.dX)((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?(0,l.dX)((function(t){return(0,a.Z)(e,t)})):void 0}];const u=[function(e){return"function"==typeof e?(0,l.xv)(e,"mapStateToProps"):void 0},function(e){return e?void 0:(0,l.dX)((function(){return{}}))}];function d(e,t,n){return(0,r.Z)({},n,e,t)}const h=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,s=!1;return function(t,n,a){var l=e(t,n,a);return s?i&&o(l,r)||(r=l):(s=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return d}}];var p=n(77405),f=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function m(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function g(e,t){return e===t}function v(e){var t=void 0===e?{}:e,n=t.connectHOC,a=void 0===n?o.Z:n,l=t.mapStateToPropsFactories,d=void 0===l?u:l,v=t.mapDispatchToPropsFactories,y=void 0===v?c:v,b=t.mergePropsFactories,w=void 0===b?h:b,x=t.selectorFactory,_=void 0===x?p.ZP:x;return function(e,t,n,o){void 0===o&&(o={});var l=o,c=l.pure,u=void 0===c||c,h=l.areStatesEqual,p=void 0===h?g:h,v=l.areOwnPropsEqual,b=void 0===v?s.Z:v,x=l.areStatePropsEqual,C=void 0===x?s.Z:x,E=l.areMergedPropsEqual,S=void 0===E?s.Z:E,k=(0,i.Z)(l,f),N=m(e,d,"mapStateToProps"),R=m(t,y,"mapDispatchToProps"),I=m(n,w,"mergeProps");return a(_,(0,r.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:N,initMapDispatchToProps:R,initMergeProps:I,pure:u,areStatesEqual:p,areOwnPropsEqual:b,areStatePropsEqual:C,areMergedPropsEqual:S},k))}}const y=v()},23102:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,I:()=>s});var r=n(81346),i=n(87166);function o(e){void 0===e&&(e=r.E);var t=e===r.E?i.o:(0,i.f)(e);return function(){return t().dispatch}}var s=o()},24274:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(2784),i=n(81346);function o(){return(0,r.useContext)(i.E)}},85247:(e,t,n)=>{"use strict";n.d(t,{g:()=>c,v:()=>u});var r=n(2784),i=n(24274),o=n(82062),s=n(44282),a=n(81346),l=function(e,t){return e===t};function c(e){void 0===e&&(e=a.E);var t=e===a.E?i.x:function(){return(0,r.useContext)(e)};return function(e,n){void 0===n&&(n=l);var i=t(),a=function(e,t,n,i){var a,l=(0,r.useReducer)((function(e){return e+1}),0)[1],c=(0,r.useMemo)((function(){return(0,o.X)(n,i)}),[n,i]),u=(0,r.useRef)(),d=(0,r.useRef)(),h=(0,r.useRef)(),p=(0,r.useRef)(),f=n.getState();try{if(e!==d.current||f!==h.current||u.current){var m=e(f);a=void 0!==p.current&&t(m,p.current)?p.current:m}else a=p.current}catch(e){throw u.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),e}return(0,s.L)((function(){d.current=e,h.current=f,p.current=a,u.current=void 0})),(0,s.L)((function(){function e(){try{var e=n.getState();if(e===h.current)return;var r=d.current(e);if(t(r,p.current))return;p.current=r,h.current=e}catch(e){u.current=e}l()}return c.onStateChange=e,c.trySubscribe(),e(),function(){return c.tryUnsubscribe()}}),[n,c]),a}(e,n,i.store,i.subscription);return(0,r.useDebugValue)(a),a}}var u=c()},87166:(e,t,n)=>{"use strict";n.d(t,{f:()=>s,o:()=>a});var r=n(2784),i=n(81346),o=n(24274);function s(e){void 0===e&&(e=i.E);var t=e===i.E?o.x:function(){return(0,r.useContext)(e)};return function(){return t().store}}var a=s()},4792:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Provider:()=>r.zt,ReactReduxContext:()=>r.ET,batch:()=>i.m,connect:()=>r.$j,connectAdvanced:()=>r.e$,createDispatchHook:()=>r.AS,createSelectorHook:()=>r.gR,createStoreHook:()=>r.fw,shallowEqual:()=>r.wU,useDispatch:()=>r.I0,useSelector:()=>r.v9,useStore:()=>r.oR});var r=n(70293),i=n(41369);(0,n(14210).F)(i.m)},82062:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r=n(14210);var i={notify:function(){},get:function(){return[]}};function o(e,t){var n,o=i;function s(){l.onStateChange&&l.onStateChange()}function a(){var i,a,l;n||(n=t?t.addNestedSub(s):e.subscribe(s),i=(0,r.k)(),a=null,l=null,o={clear:function(){a=null,l=null},notify:function(){i((function(){for(var e=a;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=a;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,n=l={callback:e,next:null,prev:l};return n.prev?n.prev.next=n:a=n,function(){t&&null!==a&&(t=!1,n.next?n.next.prev=n.prev:l=n.prev,n.prev?n.prev.next=n.next:a=n.next)}}})}var l={addNestedSub:function(e){return a(),o.subscribe(e)},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:s,isSubscribed:function(){return Boolean(n)},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,o.clear(),o=i)},getListeners:function(){return o}};return l}},44282:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(2784),i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},98559:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,o=60108,s=60114,a=60109,l=60110,c=60112,u=60113,d=60120,h=60115,p=60116,f=60121,m=60122,g=60117,v=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),o=b("react.strict_mode"),s=b("react.profiler"),a=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),u=b("react.suspense"),d=b("react.suspense_list"),h=b("react.memo"),p=b("react.lazy"),f=b("react.block"),m=b("react.server.block"),g=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case s:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case h:case a:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===l}},63920:(e,t,n)=>{"use strict";e.exports=n(98559)},39857:(e,t,n)=>{"use strict";var r,i;n.d(t,{UT:()=>u});var o=n(2784),s=n(28316),a=n(73557),l=n(16060);new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}new Map;const c=(r||(r=n.t(o,2))).startTransition;(i||(i=n.t(s,2))).flushSync,(r||(r=n.t(o,2))).useId;function u(e){let{basename:t,children:n,future:r,window:i}=e,s=o.useRef();null==s.current&&(s.current=(0,l.q_)({window:i,v5Compat:!0}));let u=s.current,[d,h]=o.useState({action:u.action,location:u.location}),{v7_startTransition:p}=r||{},f=o.useCallback((e=>{p&&c?c((()=>h(e))):h(e)}),[h,p]);return o.useLayoutEffect((()=>u.listen(f)),[u,f]),o.createElement(a.F0,{basename:t,children:n,location:d.location,navigationType:d.action,navigator:u,future:r})}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;var d,h;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(d||(d={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(h||(h={}))},73557:(e,t,n)=>{"use strict";var r;n.d(t,{AW:()=>A,F0:()=>O,Fg:()=>M,TH:()=>f,UO:()=>v,Z5:()=>T,s0:()=>g});var i=n(2784),o=n(16060);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}const a=i.createContext(null);const l=i.createContext(null);const c=i.createContext(null);const u=i.createContext(null);const d=i.createContext({outlet:null,matches:[],isDataRoute:!1});const h=i.createContext(null);function p(){return null!=i.useContext(u)}function f(){return p()||(0,o.J0)(!1),i.useContext(u).location}function m(e){i.useContext(c).static||i.useLayoutEffect(e)}function g(){let{isDataRoute:e}=i.useContext(d);return e?function(){let{router:e}=k(E.UseNavigateStable),t=R(S.UseNavigateStable),n=i.useRef(!1);return m((()=>{n.current=!0})),i.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,s({fromRouteId:t},i)))}),[e,t])}():function(){p()||(0,o.J0)(!1);let e=i.useContext(a),{basename:t,future:n,navigator:r}=i.useContext(c),{matches:s}=i.useContext(d),{pathname:l}=f(),u=JSON.stringify((0,o.cm)(s,n.v7_relativeSplatPath)),h=i.useRef(!1);return m((()=>{h.current=!0})),i.useCallback((function(n,i){if(void 0===i&&(i={}),!h.current)return;if("number"==typeof n)return void r.go(n);let s=(0,o.pC)(n,JSON.parse(u),l,"path"===i.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:(0,o.RQ)([t,s.pathname])),(i.replace?r.replace:r.push)(s,i.state,i)}),[t,r,u,l,e])}()}function v(){let{matches:e}=i.useContext(d),t=e[e.length-1];return t?t.params:{}}function y(e,t,n,r){p()||(0,o.J0)(!1);let{navigator:a}=i.useContext(c),{matches:l}=i.useContext(d),h=l[l.length-1],m=h?h.params:{},g=(h&&h.pathname,h?h.pathnameBase:"/");h&&h.route;let v,y=f();if(t){var b;let e="string"==typeof t?(0,o.cP)(t):t;"/"===g||(null==(b=e.pathname)?void 0:b.startsWith(g))||(0,o.J0)(!1),v=e}else v=y;let w=v.pathname||"/",x=w;if("/"!==g){let e=g.replace(/^\//,"").split("/");x="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let _=(0,o.fp)(e,{pathname:x});let E=C(_&&_.map((e=>Object.assign({},e,{params:Object.assign({},m,e.params),pathname:(0,o.RQ)([g,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:(0,o.RQ)([g,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,n,r);return t&&E?i.createElement(u.Provider,{value:{location:s({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:o.aU.Pop}},E):E}function b(){let e=function(){var e;let t=i.useContext(h),n=N(S.UseRouteError),r=R(S.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=(0,o.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:s},n):null,null)}const w=i.createElement(b,null);class x extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(d.Provider,{value:this.props.routeContext},i.createElement(h.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _(e){let{routeContext:t,match:n,children:r}=e,o=i.useContext(a);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(d.Provider,{value:t},r)}function C(e,t,n,r){var s;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var a;if(null==(a=n)||!a.errors)return null;e=n.matches}let l=e,c=null==(s=n)?void 0:s.errors;if(null!=c){let e=l.findIndex((e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id])));e>=0||(0,o.J0)(!1),l=l.slice(0,Math.min(l.length,e+1))}let u=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:r}=n,i=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||i){u=!0,l=d>=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight(((e,r,o)=>{let s,a=!1,h=null,p=null;var f;n&&(s=c&&r.route.id?c[r.route.id]:void 0,h=r.route.errorElement||w,u&&(d<0&&0===o?(f="route-fallback",!1||I[f]||(I[f]=!0),a=!0,p=null):d===o&&(a=!0,p=r.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,o+1)),g=()=>{let t;return t=s?h:a?p:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(_,{match:r,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?i.createElement(x,{location:n.location,revalidation:n.revalidation,component:h,error:s,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}var E=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(E||{}),S=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(S||{});function k(e){let t=i.useContext(a);return t||(0,o.J0)(!1),t}function N(e){let t=i.useContext(l);return t||(0,o.J0)(!1),t}function R(e){let t=function(e){let t=i.useContext(d);return t||(0,o.J0)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,o.J0)(!1),n.route.id}const I={};(r||(r=n.t(i,2))).startTransition;function M(e){let{to:t,replace:n,state:r,relative:s}=e;p()||(0,o.J0)(!1);let{future:a,static:l}=i.useContext(c),{matches:u}=i.useContext(d),{pathname:h}=f(),m=g(),v=(0,o.pC)(t,(0,o.cm)(u,a.v7_relativeSplatPath),h,"path"===s),y=JSON.stringify(v);return i.useEffect((()=>m(JSON.parse(y),{replace:n,state:r,relative:s})),[m,y,s,n,r]),null}function A(e){(0,o.J0)(!1)}function O(e){let{basename:t="/",children:n=null,location:r,navigationType:a=o.aU.Pop,navigator:l,static:d=!1,future:h}=e;p()&&(0,o.J0)(!1);let f=t.replace(/^\/*/,"/"),m=i.useMemo((()=>({basename:f,navigator:l,static:d,future:s({v7_relativeSplatPath:!1},h)})),[f,h,l,d]);"string"==typeof r&&(r=(0,o.cP)(r));let{pathname:g="/",search:v="",hash:y="",state:b=null,key:w="default"}=r,x=i.useMemo((()=>{let e=(0,o.Zn)(g,f);return null==e?null:{location:{pathname:e,search:v,hash:y,state:b,key:w},navigationType:a}}),[f,g,v,y,b,w,a]);return null==x?null:i.createElement(c.Provider,{value:m},i.createElement(u.Provider,{children:n,value:x}))}function T(e){let{children:t,location:n}=e;return y(z(t),n)}new Promise((()=>{}));i.Component;function z(e,t){void 0===t&&(t=[]);let n=[];return i.Children.forEach(e,((e,r)=>{if(!i.isValidElement(e))return;let s=[...t,r];if(e.type===i.Fragment)return void n.push.apply(n,z(e.props.children,s));e.type!==A&&(0,o.J0)(!1),e.props.index&&e.props.children&&(0,o.J0)(!1);let a={id:e.props.id||s.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=z(e.props.children,s)),n.push(a)})),n}},51344:(e,t,n)=>{"use strict";n.d(t,{Z:()=>R});var r=n(2784),i=n(13980),o=n.n(i),s="undefined"!=typeof window?window:null,a=null===s,l=a?void 0:s.document,c="addEventListener",u="removeEventListener",d="getBoundingClientRect",h="_a",p="_b",f="_c",m="horizontal",g=function(){return!1},v=a?"calc":["","-webkit-","-moz-","-o-"].filter((function(e){var t=l.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",y=function(e){return"string"==typeof e||e instanceof String},b=function(e){if(y(e)){var t=l.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},w=function(e,t,n){var r=e[t];return void 0!==r?r:n},x=function(e,t,n,r){if(t){if("end"===r)return 0;if("center"===r)return e/2}else if(n){if("start"===r)return 0;if("center"===r)return e/2}return e},_=function(e,t){var n=l.createElement("div");return n.className="gutter gutter-"+t,n},C=function(e,t,n){var r={};return y(t)?r[e]=t:r[e]=v+"("+t+"% - "+n+"px)",r},E=function(e,t){var n;return(n={})[e]=t+"px",n};const S=function(e,t){if(void 0===t&&(t={}),a)return{};var n,r,i,o,v,y,S=e;Array.from&&(S=Array.from(S));var k=b(S[0]).parentNode,N=getComputedStyle?getComputedStyle(k):null,R=N?N.flexDirection:null,I=w(t,"sizes")||S.map((function(){return 100/S.length})),M=w(t,"minSize",100),A=Array.isArray(M)?M:S.map((function(){return M})),O=w(t,"maxSize",1/0),T=Array.isArray(O)?O:S.map((function(){return O})),z=w(t,"expandToMin",!1),D=w(t,"gutterSize",10),j=w(t,"gutterAlign","center"),P=w(t,"snapOffset",30),L=Array.isArray(P)?P:S.map((function(){return P})),F=w(t,"dragInterval",1),B=w(t,"direction",m),U=w(t,"cursor",B===m?"col-resize":"row-resize"),W=w(t,"gutter",_),V=w(t,"elementStyle",C),H=w(t,"gutterStyle",E);function Z(e,t,r,i){var o=V(n,t,r,i);Object.keys(o).forEach((function(t){e.style[t]=o[t]}))}function Y(){return y.map((function(e){return e.size}))}function G(e){return"touches"in e?e.touches[0][r]:e[r]}function q(e){var t=y[this.a],n=y[this.b],r=t.size+n.size;t.size=e/this.size*r,n.size=r-e/this.size*r,Z(t.element,t.size,this[p],t.i),Z(n.element,n.size,this[f],n.i)}function $(e){var n,r=y[this.a],i=y[this.b];this.dragging&&(n=G(e)-this.start+(this[p]-this.dragOffset),F>1&&(n=Math.round(n/F)*F),n<=r.minSize+r.snapOffset+this[p]?n=r.minSize+this[p]:n>=this.size-(i.minSize+i.snapOffset+this[f])&&(n=this.size-(i.minSize+this[f])),n>=r.maxSize-r.snapOffset+this[p]?n=r.maxSize+this[p]:n<=this.size-(i.maxSize-i.snapOffset+this[f])&&(n=this.size-(i.maxSize+this[f])),q.call(this,n),w(t,"onDrag",g)(Y()))}function X(){var e=y[this.a].element,t=y[this.b].element,r=e[d](),s=t[d]();this.size=r[n]+s[n]+this[p]+this[f],this.start=r[i],this.end=r[o]}function K(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var n=e[v];return 0===n?null:n-=B===m?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(k);if(null===t)return e;if(A.reduce((function(e,t){return e+t}),0)>t)return e;var n=0,r=[],i=e.map((function(i,o){var s=t*i/100,a=x(D,0===o,o===e.length-1,j),l=A[o]+a;return s<l?(n+=l-s,r.push(0),l):(r.push(s-l),s)}));return 0===n?e:i.map((function(e,i){var o=e;if(n>0&&r[i]-n>0){var s=Math.min(n,r[i]-n);n-=s,o=e-s}return o/t*100}))}function J(){var e=this,n=y[e.a].element,r=y[e.b].element;e.dragging&&w(t,"onDragEnd",g)(Y()),e.dragging=!1,s[u]("mouseup",e.stop),s[u]("touchend",e.stop),s[u]("touchcancel",e.stop),s[u]("mousemove",e.move),s[u]("touchmove",e.move),e.stop=null,e.move=null,n[u]("selectstart",g),n[u]("dragstart",g),r[u]("selectstart",g),r[u]("dragstart",g),n.style.userSelect="",n.style.webkitUserSelect="",n.style.MozUserSelect="",n.style.pointerEvents="",r.style.userSelect="",r.style.webkitUserSelect="",r.style.MozUserSelect="",r.style.pointerEvents="",e.gutter.style.cursor="",e.parent.style.cursor="",l.body.style.cursor=""}function Q(e){if(!("button"in e)||0===e.button){var n=this,r=y[n.a].element,i=y[n.b].element;n.dragging||w(t,"onDragStart",g)(Y()),e.preventDefault(),n.dragging=!0,n.move=$.bind(n),n.stop=J.bind(n),s[c]("mouseup",n.stop),s[c]("touchend",n.stop),s[c]("touchcancel",n.stop),s[c]("mousemove",n.move),s[c]("touchmove",n.move),r[c]("selectstart",g),r[c]("dragstart",g),i[c]("selectstart",g),i[c]("dragstart",g),r.style.userSelect="none",r.style.webkitUserSelect="none",r.style.MozUserSelect="none",r.style.pointerEvents="none",i.style.userSelect="none",i.style.webkitUserSelect="none",i.style.MozUserSelect="none",i.style.pointerEvents="none",n.gutter.style.cursor=U,n.parent.style.cursor=U,l.body.style.cursor=U,X.call(n),n.dragOffset=G(e)-n.end}}B===m?(n="width",r="clientX",i="left",o="right",v="clientWidth"):"vertical"===B&&(n="height",r="clientY",i="top",o="bottom",v="clientHeight"),I=K(I);var ee=[];function te(e){var t=e.i===ee.length,n=t?ee[e.i-1]:ee[e.i];X.call(n);var r=t?n.size-e.minSize-n[f]:e.minSize+n[p];q.call(n,r)}return(y=S.map((function(e,t){var r,i={element:b(e),size:I[t],minSize:A[t],maxSize:T[t],snapOffset:L[t],i:t};if(t>0&&((r={a:t-1,b:t,dragging:!1,direction:B,parent:k})[p]=x(D,t-1==0,!1,j),r[f]=x(D,!1,t===S.length-1,j),"row-reverse"===R||"column-reverse"===R)){var o=r.a;r.a=r.b,r.b=o}if(t>0){var s=W(t,B,i.element);!function(e,t,r){var i=H(n,t,r);Object.keys(i).forEach((function(t){e.style[t]=i[t]}))}(s,D,t),r[h]=Q.bind(r),s[c]("mousedown",r[h]),s[c]("touchstart",r[h]),k.insertBefore(s,i.element),r.gutter=s}return Z(i.element,i.size,x(D,0===t,t===S.length-1,j),t),t>0&&ee.push(r),i}))).forEach((function(e){var t=e.element[d]()[n];t<e.minSize&&(z?te(e):e.minSize=t)})),{setSizes:function(e){var t=K(e);t.forEach((function(e,n){if(n>0){var r=ee[n-1],i=y[r.a],o=y[r.b];i.size=t[n-1],o.size=e,Z(i.element,i.size,r[p],i.i),Z(o.element,o.size,r[f],o.i)}}))},getSizes:Y,collapse:function(e){te(y[e])},destroy:function(e,t){ee.forEach((function(r){if(!0!==t?r.parent.removeChild(r.gutter):(r.gutter[u]("mousedown",r[h]),r.gutter[u]("touchstart",r[h])),!0!==e){var i=V(n,r.a.size,r[p]);Object.keys(i).forEach((function(e){y[r.a].element.style[e]="",y[r.b].element.style[e]=""}))}}))},parent:k,pairs:ee}};function k(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var N=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,n=k(e,["children","gutter"]);n.gutter=function(e,n){var r;return t?r=t(e,n):(r=document.createElement("div")).className="gutter gutter-"+n,r.__isSplitGutter=!0,r},this.split=S(this.parent.children,n)},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props;n.children;var r=n.minSize,i=n.sizes,o=n.collapsed,s=k(n,["children","minSize","sizes","collapsed"]),a=e.minSize,l=e.sizes,c=e.collapsed,u=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map((function(n){return t.props[n]!==e[n]})).reduce((function(e,t){return e||t}),!1);if(Array.isArray(r)&&Array.isArray(a)){var d=!1;r.forEach((function(e,t){d=d||e!==a[t]})),u=u||d}else u=!(!Array.isArray(r)&&!Array.isArray(a))||(u||r!==a);if(u)s.minSize=r,s.sizes=i||this.split.getSizes(),this.split.destroy(!0,!0),s.gutter=function(e,t,n){return n.previousSibling},this.split=S(Array.from(this.parent.children).filter((function(e){return!e.__isSplitGutter})),s);else if(i){var h=!1;i.forEach((function(e,t){h=h||e!==l[t]})),h&&this.split.setSizes(this.props.sizes)}Number.isInteger(o)&&(o!==c||u)&&this.split.collapse(o)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var n=t.children,i=k(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return r.createElement("div",Object.assign({},{ref:function(t){e.parent=t}},i),n)},t}(r.Component);N.propTypes={sizes:o().arrayOf(o().number),minSize:o().oneOfType([o().number,o().arrayOf(o().number)]),maxSize:o().oneOfType([o().number,o().arrayOf(o().number)]),expandToMin:o().bool,gutterSize:o().number,gutterAlign:o().string,snapOffset:o().oneOfType([o().number,o().arrayOf(o().number)]),dragInterval:o().number,direction:o().string,cursor:o().string,gutter:o().func,elementStyle:o().func,gutterStyle:o().func,onDrag:o().func,onDragStart:o().func,onDragEnd:o().func,collapsed:o().number,children:o().arrayOf(o().element)},N.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const R=N},78505:(e,t,n)=>{"use strict";n.d(t,{I6:()=>u,N5:()=>g,h4:()=>v,kd:()=>o});n(2784);var r={defaultProps:{},customizeNotification:null,generateId:null},i=Object.freeze({none:"none",info:"info",success:"success",loading:"loading",warning:"warning",error:"error"}),o=Object.freeze({topCenter:"top-center",topLeft:"top-left",topRight:"top-right",bottomCenter:"bottom-center",bottomLeft:"bottom-left",bottomRight:"bottom-right"});function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}var a,l=function e(t){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return t.map((function(t){return e(t)}));var n={};for(var r in t)n[r]=e(t[r]);return n};!function(e){e.UpsertNotification="reapop/upsertNotification",e.DismissNotification="reapop/dismissNotification",e.DismissNotifications="reapop/dismissNotifications"}(a||(a={}));var c=[],u=function(){return function(e,t){switch(void 0===e&&(e=c),t.type){case a.UpsertNotification:var n=l(t.payload);return~e.findIndex((function(e){return e.id===n.id}))?e.map((function(e){return e.id===n.id?n:e})):[].concat(e,[n]);case a.DismissNotification:var r=t.payload;return e.filter((function(e){return e.id!==r}));case a.DismissNotifications:return[];default:return e}}},d=function(e){var t=l(e),n=s({},r.defaultProps,{status:i.none,buttons:[]});return void 0===t.id&&(t.id=r.generateId?r.generateId(e):Math.random().toString(36).slice(2,7)),Object.entries(n).map((function(e){var n=e[0],r=e[1];void 0===t[n]&&(t[n]=r)})),"function"==typeof r.customizeNotification&&r.customizeNotification(t),t};var h,p,f,m,g=function(e){return{type:a.DismissNotification,payload:e}},v=function(){var e,t,n=(e=arguments.length-1)<0||arguments.length<=e?void 0:arguments[e],r={};return"string"==typeof(arguments.length<=0?void 0:arguments[0])&&(r.message=arguments.length<=0?void 0:arguments[0]),"string"==typeof(arguments.length<=1?void 0:arguments[1])&&(r.status=arguments.length<=1?void 0:arguments[1]),(t=n)&&t.constructor===Object&&(r=s({},r,n)),{type:a.UpsertNotification,payload:d(r)}};(h={})[o.topCenter]={top:"20px",left:"50%",transform:"translateX(-50%)"},h[o.topRight]={top:"20px",right:"20px"},h[o.topLeft]={top:"20px",left:"20px"},h[o.bottomCenter]={bottom:"20px",left:"50%",transform:"translateX(-50%)"},h[o.bottomRight]={bottom:"20px",right:"20px"},h[o.bottomLeft]={bottom:"20px",left:"20px"},(p={})[i.none]="#ffffff",p[i.info]="#4192ff",p[i.loading]="#4192ff",p[i.success]="#32d38b",p[i.warning]="#f5aa0a",p[i.error]="#E94C58",(f={})[i.none]="#ffffff",f[i.info]="#349ef3",f[i.loading]="#349ef3",f[i.success]="#4dc657",f[i.warning]="#f5aa0a",f[i.error]="#f5311d",(m={})[i.none]="#ffffff",m[i.info]="#007bff",m[i.loading]="#007bff",m[i.success]="#28a745",m[i.warning]="#ffc107",m[i.error]="#dc3545"},80212:e=>{!function(){var t={de_DE:{identifier:"de-DE",days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d.%m.%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},en_CA:{identifier:"en-CA",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ordinalSuffixes:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}},en_US:{identifier:"en-US",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ordinalSuffixes:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%m/%d/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}},es_MX:{identifier:"es-MX",days:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],shortDays:["dom","lun","mar","mié","jue","vie","sáb"],months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],shortMonths:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},fr_FR:{identifier:"fr-FR",days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDays:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],shortMonths:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},it_IT:{identifier:"it-IT",days:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],shortDays:["dom","lun","mar","mer","gio","ven","sab"],months:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],shortMonths:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},nl_NL:{identifier:"nl-NL",days:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],shortDays:["zo","ma","di","wo","do","vr","za"],months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],shortMonths:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},pt_BR:{identifier:"pt-BR",days:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],months:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},ru_RU:{identifier:"ru-RU",days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],shortDays:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],shortMonths:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X",D:"%d.%m.%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},tr_TR:{identifier:"tr-TR",days:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],shortDays:["Paz","Pzt","Sal","Çrş","Prş","Cum","Cts"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],shortMonths:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],AM:"ÖÖ",PM:"ÖS",am:"ÖÖ",pm:"ÖS",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},zh_CN:{identifier:"zh-CN",days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],shortDays:["日","一","二","三","四","五","六"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],shortMonths:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],AM:"上午",PM:"下午",am:"上午",pm:"下午",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}}},n=t.en_US,r=new function e(r,h,p){var f,m=r||n,g=h||0,v=p||!1,y=0;function b(e,t,n,r){for(var c="",h=null,p=!1,f=e.length,m=!1,y=0;y<f;y++){var w=e.charCodeAt(y);if(!0!==p)37!==w?c+=e[y]:p=!0;else{if(45===w){h="";continue}if(95===w){h=" ";continue}if(48===w){h="0";continue}if(58===w){m&&d("[WARNING] detected use of unsupported %:: or %::: modifiers to strftime"),m=!0;continue}switch(w){case 37:c+="%";break;case 65:c+=n.days[t.getDay()];break;case 66:c+=n.months[t.getMonth()];break;case 67:c+=i(Math.floor(t.getFullYear()/100),h);break;case 68:c+=b(n.formats.D,t,n,r);break;case 70:c+=b(n.formats.F,t,n,r);break;case 72:c+=i(t.getHours(),h);break;case 73:c+=i(s(t.getHours()),h);break;case 76:c+=o(Math.floor(r%1e3));break;case 77:c+=i(t.getMinutes(),h);break;case 80:c+=t.getHours()<12?n.am:n.pm;break;case 82:c+=b(n.formats.R,t,n,r);break;case 83:c+=i(t.getSeconds(),h);break;case 84:c+=b(n.formats.T,t,n,r);break;case 85:c+=i(a(t,"sunday"),h);break;case 87:c+=i(a(t,"monday"),h);break;case 88:c+=b(n.formats.X,t,n,r);break;case 89:c+=t.getFullYear();break;case 90:if(v&&0===g)c+="GMT";else c+=u(t)||"";break;case 97:c+=n.shortDays[t.getDay()];break;case 98:case 104:c+=n.shortMonths[t.getMonth()];break;case 99:c+=b(n.formats.c,t,n,r);break;case 100:c+=i(t.getDate(),h);break;case 101:c+=i(t.getDate(),null==h?" ":h);break;case 106:var x=new Date(t.getFullYear(),0,1);c+=o(_=Math.ceil((t.getTime()-x.getTime())/864e5));break;case 107:c+=i(t.getHours(),null==h?" ":h);break;case 108:c+=i(s(t.getHours()),null==h?" ":h);break;case 109:c+=i(t.getMonth()+1,h);break;case 110:c+="\n";break;case 111:var _=t.getDate();n.ordinalSuffixes?c+=String(_)+(n.ordinalSuffixes[_-1]||l(_)):c+=String(_)+l(_);break;case 112:c+=t.getHours()<12?n.AM:n.PM;break;case 114:c+=b(n.formats.r,t,n,r);break;case 115:c+=Math.floor(r/1e3);break;case 116:c+="\t";break;case 117:c+=0===(_=t.getDay())?7:_;break;case 118:c+=b(n.formats.v,t,n,r);break;case 119:c+=t.getDay();break;case 120:c+=b(n.formats.x,t,n,r);break;case 121:c+=i(t.getFullYear()%100,h);break;case 122:if(v&&0===g)c+=m?"+00:00":"+0000";else{var C,E=(C=0!==g?g/6e4:-t.getTimezoneOffset())<0?"-":"+",S=m?":":"",k=Math.floor(Math.abs(C/60)),N=Math.abs(C%60);c+=E+i(k)+S+i(N)}break;default:p&&(c+="%"),c+=e[y]}h=null,p=!1}}return c}var w=function(e,t){var n;if(t){if(n=t.getTime(),v){var r=c(t);if(c(t=new Date(n+r+g))!==r){var i=c(t);t=new Date(n+i+g)}}}else{var o=Date.now();o>y?(y=o,f=new Date(y),n=y,v&&(f=new Date(y+c(f)+g))):n=y,t=f}return b(e,t,m,n)};return w.localize=function(t){return new e(t||m,g,v)},w.localizeByIdentifier=function(e){var n=t[e];return n?w.localize(n):(d('[WARNING] No locale found with identifier "'+e+'".'),w)},w.timezone=function(t){var n=g,r=v,i=typeof t;"number"!==i&&"string"!==i||(r=!0,"string"===i?n=("-"===t[0]?-1:1)*(60*parseInt(t.slice(1,3),10)+parseInt(t.slice(3,5),10))*60*1e3:"number"===i&&(n=60*t*1e3));return new e(m,n,r)},w.utc=function(){return new e(m,g,!0)},w}(n,0,!1);function i(e,t){return""===t||e>9?""+e:(null==t&&(t="0"),t+e)}function o(e){return e>99?e:e>9?"0"+e:"00"+e}function s(e){return 0===e?12:e>12?e-12:e}function a(e,t){t=t||"sunday";var n=e.getDay();"monday"===t&&(0===n?n=6:n--);var r=Date.UTC(e.getFullYear(),0,1),i=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),o=(Math.floor((i-r)/864e5)+7-n)/7;return Math.floor(o)}function l(e){var t=e%10,n=e%100;if(n>=11&&n<=13||0===t||t>=4)return"th";switch(t){case 1:return"st";case 2:return"nd";case 3:return"rd"}}function c(e){return 6e4*(e.getTimezoneOffset()||0)}function u(e,t){return function(e,t){if(null==t)return null;var n=e.toLocaleString(t,{timeZoneName:"short"}).match(/\s([\w]+)$/);return n&&n[1]}(e,t)||function(e){var t=e.toString().match(/\(([\w\s]+)\)/);return t&&t[1]}(e)}function d(e){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e)}e.exports=r,"function"!=typeof Date.now&&(Date.now=function(){return+new Date})}()},82841:(e,t,n)=>{var r=n(27609)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},87578:(e,t,n)=>{"use strict";var r;n.d(t,{$Y:()=>Re,A8:()=>R,JA:()=>f,KK:()=>Ae,NI:()=>Te,RB:()=>U,XI:()=>G,YF:()=>Ie,Zm:()=>P,ay:()=>L,bQ:()=>Ne,bU:()=>N,c0:()=>Be,eS:()=>Ce,hU:()=>Ve,jV:()=>F,ll:()=>ce,mN:()=>B,qs:()=>We,vs:()=>p,wD:()=>ve,xp:()=>Ze,y0:()=>we});var i=n(2784),o=n(83127),s=n(52322),a=n(10712),l=n(65712),c=n(28316),u=n(92416);function d(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const h=i.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function p(e){const{children:t,elementsRef:n,labelsRef:r}=e,[o,a]=i.useState((()=>new Set)),l=i.useCallback((e=>{a((t=>new Set(t).add(e)))}),[]),c=i.useCallback((e=>{a((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),u=i.useMemo((()=>{const e=new Map;return Array.from(o.keys()).sort(d).forEach(((t,n)=>{e.set(t,n)})),e}),[o]);return(0,s.jsx)(h.Provider,{value:i.useMemo((()=>({register:l,unregister:c,map:u,elementsRef:n,labelsRef:r})),[l,c,u,n,r]),children:t})}function f(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:r,map:s,elementsRef:a,labelsRef:l}=i.useContext(h),[c,u]=i.useState(null),d=i.useRef(null),p=i.useCallback((e=>{if(d.current=e,null!==c&&(a.current[c]=e,l)){var n;const r=void 0!==t;l.current[c]=r?t:null!=(n=null==e?void 0:e.textContent)?n:null}}),[c,a,l,t]);return(0,o.Xj)((()=>{const e=d.current;if(e)return n(e),()=>{r(e)}}),[n,r]),(0,o.Xj)((()=>{const e=d.current?s.get(d.current):null;null!=e&&u(e)}),[s]),i.useMemo((()=>({ref:p,index:null==c?-1:c})),[c,p])}const m="data-floating-ui-focusable",g="active",v="selected",y="ArrowLeft",b="ArrowRight",w="ArrowUp",x="ArrowDown";function _(e,t){return"function"==typeof e?e(t):e?i.cloneElement(e,t):(0,s.jsx)("div",{...t})}const C=i.createContext({activeIndex:0,onNavigate:()=>{}}),E=[y,b],S=[w,x],k=[...E,...S],N=i.forwardRef((function(e,t){const{render:n,orientation:r="both",loop:a=!0,rtl:l=!1,cols:c=1,disabledIndices:u,activeIndex:d,onNavigate:h,itemSizes:f,dense:m=!1,...g}=e,[v,N]=i.useState(0),R=null!=d?d:v,I=(0,o.iW)(null!=h?h:N),M=i.useRef([]),A=n&&"function"!=typeof n?n.props:{},O=i.useMemo((()=>({activeIndex:R,onNavigate:I})),[R,I]),T=c>1;const z={...g,...A,ref:t,"aria-orientation":"both"===r?void 0:r,onKeyDown(e){null==g.onKeyDown||g.onKeyDown(e),null==A.onKeyDown||A.onKeyDown(e),function(e){if(!k.includes(e.key))return;let t=R;const n=(0,o.h$)(M,u),i=(0,o.zc)(M,u),s=l?y:b,d=l?b:y;if(T){const d=f||Array.from({length:M.current.length},(()=>({width:1,height:1}))),h=(0,o.fe)(d,c,m),p=h.findIndex((e=>null!=e&&!(0,o.Nm)(M,e,u))),g=h.reduce(((e,t,n)=>null==t||(0,o.Nm)(M,t,u)?e:n),-1),v=h[(0,o.xR)({current:h.map((e=>e?M.current[e]:null))},{event:e,orientation:r,loop:a,rtl:l,cols:c,disabledIndices:(0,o.w_)([...u||M.current.map(((e,t)=>(0,o.Nm)(M,t)?t:void 0)),void 0],h),minIndex:p,maxIndex:g,prevIndex:(0,o.XH)(R>i?n:R,d,h,c,e.key===x?"bl":e.key===s?"tr":"tl")})];null!=v&&(t=v)}const h={horizontal:[s],vertical:[x],both:[s,x]}[r],p={horizontal:[d],vertical:[w],both:[d,w]}[r],g=T?k:{horizontal:E,vertical:S,both:k}[r];var v;t===R&&[...h,...p].includes(e.key)&&(t=a&&t===i&&h.includes(e.key)?n:a&&t===n&&p.includes(e.key)?i:(0,o.aF)(M,{startingIndex:t,decrement:p.includes(e.key),disabledIndices:u})),t===R||(0,o.VP)(M,t)||(e.stopPropagation(),g.includes(e.key)&&e.preventDefault(),I(t),null==(v=M.current[t])||v.focus())}(e)}};return(0,s.jsx)(C.Provider,{value:O,children:(0,s.jsx)(p,{elementsRef:M,children:_(n,z)})})})),R=i.forwardRef((function(e,t){const{render:n,...r}=e,o=n&&"function"!=typeof n?n.props:{},{activeIndex:s,onNavigate:a}=i.useContext(C),{ref:l,index:c}=f(),u=function(e){const t=i.useRef(void 0),n=i.useCallback((t=>{const n=e.map((e=>{if(null!=e){if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}}));return()=>{n.forEach((e=>null==e?void 0:e()))}}),e);return i.useMemo((()=>e.every((e=>null==e))?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))}),e)}([l,t,o.ref]),d=s===c;return _(n,{...r,...o,ref:u,tabIndex:d?0:-1,"data-active":d?"":void 0,onFocus(e){null==r.onFocus||r.onFocus(e),null==o.onFocus||o.onFocus(e),a(c)}})})),I={...r||(r=n.t(i,2))};let M=!1,A=0;const O=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+A++;const T=I.useId||function(){const[e,t]=i.useState((()=>M?O():void 0));return(0,o.Xj)((()=>{null==e&&t(O())}),[]),i.useEffect((()=>{M=!0}),[]),e};function z(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}const D=i.createContext(null),j=i.createContext(null),P=()=>{var e;return(null==(e=i.useContext(D))?void 0:e.id)||null},L=()=>i.useContext(j);function F(e){const t=T(),n=L(),r=P(),i=e||r;return(0,o.Xj)((()=>{if(!t)return;const e={id:t,parentId:i};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,i]),t}function B(e){const{children:t,id:n}=e,r=P();return(0,s.jsx)(D.Provider,{value:i.useMemo((()=>({id:n,parentId:r})),[n,r]),children:t})}function U(e){const{children:t}=e,n=i.useRef([]),r=i.useCallback((e=>{n.current=[...n.current,e]}),[]),o=i.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),[a]=i.useState((()=>z()));return(0,s.jsx)(j.Provider,{value:i.useMemo((()=>({nodesRef:n,addNode:r,removeNode:o,events:a})),[r,o,a]),children:t})}function W(e){return"data-floating-ui-"+e}function V(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const H=W("safe-polygon");function Z(e,t,n){if(n&&!(0,o.r)(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){const n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function Y(e){return"function"==typeof e?e():e}function G(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:s,events:l,elements:c}=e,{enabled:u=!0,delay:d=0,handleClose:h=null,mouseOnly:p=!1,restMs:f=0,move:m=!0}=t,g=L(),v=P(),y=(0,o.II)(h),b=(0,o.II)(d),w=(0,o.II)(n),x=(0,o.II)(f),_=i.useRef(),C=i.useRef(-1),E=i.useRef(),S=i.useRef(-1),k=i.useRef(!0),N=i.useRef(!1),R=i.useRef((()=>{})),I=i.useRef(!1),M=i.useCallback((()=>{var e;const t=null==(e=s.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[s]);i.useEffect((()=>{if(u)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(V(C),V(S),k.current=!0,I.current=!1)}}),[u,l]),i.useEffect((()=>{if(!u)return;if(!y.current)return;if(!n)return;function e(e){M()&&r(!1,e,"hover")}const t=(0,o.Me)(c.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[c.floating,n,r,u,y,M]);const A=i.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const i=Z(b.current,"close",_.current);i&&!E.current?(V(C),C.current=window.setTimeout((()=>r(!1,e,n)),i)):t&&(V(C),r(!1,e,n))}),[b,r]),O=(0,o.iW)((()=>{R.current(),E.current=void 0})),T=(0,o.iW)((()=>{if(N.current){const e=(0,o.Me)(c.floating).body;e.style.pointerEvents="",e.removeAttribute(H),N.current=!1}})),z=(0,o.iW)((()=>!!s.current.openEvent&&["click","mousedown"].includes(s.current.openEvent.type)));i.useEffect((()=>{if(u&&(0,a.kK)(c.domReference)){const r=c.domReference,o=c.floating;return n&&r.addEventListener("mouseleave",i),m&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),o&&(o.addEventListener("mouseleave",i),o.addEventListener("mouseenter",l),o.addEventListener("mouseleave",d)),()=>{n&&r.removeEventListener("mouseleave",i),m&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),o&&(o.removeEventListener("mouseleave",i),o.removeEventListener("mouseenter",l),o.removeEventListener("mouseleave",d))}}function e(e){if(V(C),k.current=!1,p&&!(0,o.r)(_.current)||Y(x.current)>0&&!Z(b.current,"open"))return;const t=Z(b.current,"open",_.current);t?C.current=window.setTimeout((()=>{w.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function t(e){if(z())return void T();R.current();const t=(0,o.Me)(c.floating);if(V(S),I.current=!1,y.current&&s.current.floatingContext){n||V(C),E.current=y.current({...s.current.floatingContext,tree:g,x:e.clientX,y:e.clientY,onClose(){T(),O(),z()||A(e,!0,"safe-polygon")}});const r=E.current;return t.addEventListener("mousemove",r),void(R.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==_.current||!(0,o.r3)(c.floating,e.relatedTarget))&&A(e)}function i(e){z()||s.current.floatingContext&&(null==y.current||y.current({...s.current.floatingContext,tree:g,x:e.clientX,y:e.clientY,onClose(){T(),O(),z()||A(e)}})(e))}function l(){V(C)}function d(e){z()||A(e,!1)}}),[c,u,e,p,m,A,O,T,r,n,w,g,b,y,s,z,x]),(0,o.Xj)((()=>{var e;if(u&&n&&null!=(e=y.current)&&e.__options.blockPointerEvents&&M()){N.current=!0;const e=c.floating;if((0,a.kK)(c.domReference)&&e){var t;const n=(0,o.Me)(c.floating).body;n.setAttribute(H,"");const r=c.domReference,i=null==g||null==(t=g.nodesRef.current.find((e=>e.id===v)))||null==(t=t.context)?void 0:t.elements.floating;return i&&(i.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[u,n,v,c,g,y,M]),(0,o.Xj)((()=>{n||(_.current=void 0,I.current=!1,O(),T())}),[n,O,T]),i.useEffect((()=>()=>{O(),V(C),V(S),T()}),[u,c.domReference,O,T]);const D=i.useMemo((()=>{function e(e){_.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function i(){k.current||w.current||r(!0,t,"hover")}p&&!(0,o.r)(_.current)||n||0===Y(x.current)||I.current&&e.movementX**2+e.movementY**2<2||(V(S),"touch"===_.current?i():(I.current=!0,S.current=window.setTimeout(i,Y(x.current))))}}}),[p,r,n,w,x]);return i.useMemo((()=>u?{reference:D}:{}),[u,D])}let q=0;function $(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(q);const o=()=>null==e?void 0:e.focus({preventScroll:n});i?o():q=requestAnimationFrame(o)}function X(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,a.Zq)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}let K=new WeakMap,J=new WeakSet,Q={},ee=0;const te=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,ne=e=>e&&(e.host||ne(e.parentNode)),re=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=ne(t);return e.contains(n)?n:null})).filter((e=>null!=e));function ie(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=(i=e[0],(null==i?void 0:i.ownerDocument)||document).body;var i;return function(e,t,n,r){const i="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,s=re(t,e),l=new Set,c=new Set(s),u=[];Q[i]||(Q[i]=new WeakMap);const d=Q[i];return s.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!c.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==(0,a.wk)(t))if(l.has(t))e(t);else{const e=o?t.getAttribute(o):null,n=null!==e&&"false"!==e,r=K.get(t)||0,s=o?r+1:r,a=(d.get(t)||0)+1;K.set(t,s),d.set(t,a),u.push(t),1===s&&n&&J.add(t),1===a&&t.setAttribute(i,""),!n&&o&&t.setAttribute(o,"inert"===o?"":"true")}}))}(t),l.clear(),ee++,()=>{u.forEach((e=>{const t=K.get(e)||0,n=o?t-1:t,r=(d.get(e)||0)-1;K.set(e,n),d.set(e,r),n||(!J.has(e)&&o&&e.removeAttribute(o),J.delete(e)),r||e.removeAttribute(i)})),ee--,ee||(K=new WeakMap,K=new WeakMap,J=new WeakSet,Q={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const oe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},se=i.forwardRef((function(e,t){const[n,r]=i.useState();(0,o.Xj)((()=>{(0,o.G6)()&&r("button")}),[]);const a={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[W("focus-guard")]:"",style:oe};return(0,s.jsx)("span",{...e,...a})})),ae=i.createContext(null),le=W("portal");function ce(e){const{children:t,id:n,root:r,preserveTabOrder:l=!0}=e,u=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=T(),s=ue(),[l,c]=i.useState(null),u=i.useRef(null);return(0,o.Xj)((()=>()=>{null==l||l.remove(),queueMicrotask((()=>{u.current=null}))}),[l]),(0,o.Xj)((()=>{if(!r)return;if(u.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(le,""),e.appendChild(n),u.current=n,c(n)}),[t,r]),(0,o.Xj)((()=>{if(null===n)return;if(!r)return;if(u.current)return;let e=n||(null==s?void 0:s.portalNode);e&&!(0,a.kK)(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const o=document.createElement("div");o.id=r,o.setAttribute(le,""),e=i||e,e.appendChild(o),u.current=o,c(o)}),[t,n,r,s]),l}({id:n,root:r}),[d,h]=i.useState(null),p=i.useRef(null),f=i.useRef(null),m=i.useRef(null),g=i.useRef(null),v=null==d?void 0:d.modal,y=null==d?void 0:d.open,b=!!d&&!d.modal&&d.open&&l&&!(!r&&!u);return i.useEffect((()=>{if(u&&l&&!v)return u.addEventListener("focusin",e,!0),u.addEventListener("focusout",e,!0),()=>{u.removeEventListener("focusin",e,!0),u.removeEventListener("focusout",e,!0)};function e(e){if(u&&(0,o.dE)(e)){("focusin"===e.type?o.NX:o.N6)(u)}}}),[u,l,v]),i.useEffect((()=>{u&&(y||(0,o.NX)(u))}),[y,u]),(0,s.jsxs)(ae.Provider,{value:i.useMemo((()=>({preserveTabOrder:l,beforeOutsideRef:p,afterOutsideRef:f,beforeInsideRef:m,afterInsideRef:g,portalNode:u,setFocusManagerState:h})),[l,u]),children:[b&&u&&(0,s.jsx)(se,{"data-type":"outside",ref:p,onFocus:e=>{if((0,o.dE)(e,u)){var t;null==(t=m.current)||t.focus()}else{const e=d?d.domReference:null,t=(0,o.e8)(e);null==t||t.focus()}}}),b&&u&&(0,s.jsx)("span",{"aria-owns":u.id,style:oe}),u&&c.createPortal(t,u),b&&u&&(0,s.jsx)(se,{"data-type":"outside",ref:f,onFocus:e=>{if((0,o.dE)(e,u)){var t;null==(t=g.current)||t.focus()}else{const t=d?d.domReference:null,n=(0,o.k0)(t);null==n||n.focus(),(null==d?void 0:d.closeOnFocusOut)&&(null==d||d.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const ue=()=>i.useContext(ae);function de(e){return i.useMemo((()=>t=>{e.forEach((e=>{e&&(e.current=t)}))}),e)}const he=20;let pe=[];function fe(){return pe.slice().reverse().find((e=>e.isConnected))}function me(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=(0,o.Tv)(),i=(0,l.KW)(e,r).filter((e=>{const t=e.getAttribute("data-tabindex")||"";return(0,l.Wq)(e,r)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")})),s=e.getAttribute("tabindex");t.current.includes("floating")||0===i.length?"0"!==s&&e.setAttribute("tabindex","0"):("-1"!==s||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const ge=i.forwardRef((function(e,t){return(0,s.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:oe})}));function ve(e){const{context:t,children:n,disabled:r=!1,order:c=["content"],guards:u=!0,initialFocus:d=0,returnFocus:h=!0,restoreFocus:p=!1,modal:f=!0,visuallyHiddenDismiss:m=!1,closeOnFocusOut:g=!0,outsideElementsInert:v=!1,getInsideElements:y=(()=>[])}=e,{open:b,onOpenChange:w,events:x,dataRef:_,elements:{domReference:C,floating:E}}=t,S=(0,o.iW)((()=>{var e;return null==(e=_.current.floatingContext)?void 0:e.nodeId})),k=(0,o.iW)(y),N="number"==typeof d&&d<0,R=(0,o.Ie)(C)&&N,I=te(),M=!I||u,A=!M||I&&v,O=(0,o.II)(c),T=(0,o.II)(d),z=(0,o.II)(h),D=L(),j=ue(),P=i.useRef(null),F=i.useRef(null),B=i.useRef(!1),U=i.useRef(!1),V=i.useRef(-1),H=null!=j,Z=(0,o.zd)(E),Y=(0,o.iW)((function(e){return void 0===e&&(e=Z),e?(0,l.ht)(e,(0,o.Tv)()):[]})),G=(0,o.iW)((e=>{const t=Y(e);return O.current.map((e=>C&&"reference"===e?C:Z&&"floating"===e?Z:t)).filter(Boolean).flat()}));i.useEffect((()=>{if(r)return;if(!f)return;function e(e){if("Tab"===e.key){(0,o.r3)(Z,(0,o.AW)((0,o.Me)(Z)))&&0===Y().length&&!R&&(0,o.p7)(e);const t=G(),n=(0,o.U9)(e);"reference"===O.current[0]&&n===C&&((0,o.p7)(e),e.shiftKey?$(t[t.length-1]):$(t[1])),"floating"===O.current[1]&&n===Z&&e.shiftKey&&((0,o.p7)(e),$(t[0]))}}const t=(0,o.Me)(Z);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,C,Z,f,O,R,Y,G]),i.useEffect((()=>{if(!r&&E)return E.addEventListener("focusin",e),()=>{E.removeEventListener("focusin",e)};function e(e){const t=(0,o.U9)(e),n=Y().indexOf(t);-1!==n&&(V.current=n)}}),[r,E,Y]),i.useEffect((()=>{if(!r&&g)return E&&(0,a.Re)(C)?(C.addEventListener("focusout",t),C.addEventListener("pointerdown",e),E.addEventListener("focusout",t),()=>{C.removeEventListener("focusout",t),C.removeEventListener("pointerdown",e),E.removeEventListener("focusout",t)}):void 0;function e(){U.current=!0,setTimeout((()=>{U.current=!1}))}function t(e){const t=e.relatedTarget,n=e.currentTarget;queueMicrotask((()=>{const r=S(),i=!((0,o.r3)(C,t)||(0,o.r3)(E,t)||(0,o.r3)(t,E)||(0,o.r3)(null==j?void 0:j.portalNode,t)||null!=t&&t.hasAttribute(W("focus-guard"))||D&&((0,o.El)(D.nodesRef.current,r).find((e=>{var n,r;return(0,o.r3)(null==(n=e.context)?void 0:n.elements.floating,t)||(0,o.r3)(null==(r=e.context)?void 0:r.elements.domReference,t)}))||(0,o.C1)(D.nodesRef.current,r).find((e=>{var n,r,i;return[null==(n=e.context)?void 0:n.elements.floating,(0,o.zd)(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(i=e.context)?void 0:i.elements.domReference)===t}))));if(n===C&&Z&&me(Z,O),p&&i&&(0,o.AW)((0,o.Me)(Z))===(0,o.Me)(Z).body){(0,a.Re)(Z)&&Z.focus();const e=V.current,t=Y(),n=t[e]||t[t.length-1]||Z;(0,a.Re)(n)&&n.focus()}!R&&f||!t||!i||U.current||t===fe()||(B.current=!0,w(!1,e,"focus-out"))}))}}),[r,C,E,Z,f,D,j,w,g,p,Y,R,S,O]);const q=i.useRef(null),X=i.useRef(null),K=de([q,null==j?void 0:j.beforeInsideRef]),J=de([X,null==j?void 0:j.afterInsideRef]);function Q(e){return!r&&m&&f?(0,s.jsx)(ge,{ref:"start"===e?P:F,onClick:e=>w(!1,e.nativeEvent),children:"string"==typeof m?m:"Dismiss"}):null}i.useEffect((()=>{var e,t;if(r)return;if(!E)return;const n=Array.from((null==j||null==(e=j.portalNode)?void 0:e.querySelectorAll("["+W("portal")+"]"))||[]),i=D?(0,o.C1)(D.nodesRef.current,S()):[],s=D&&!f?i.map((e=>{var t;return null==(t=e.context)?void 0:t.elements.floating})):[],a=null==(t=i.find((e=>{var t;return(0,o.Ie)((null==(t=e.context)?void 0:t.elements.domReference)||null)})))||null==(t=t.context)?void 0:t.elements.domReference,l=[E,a,...n,...s,...k(),P.current,F.current,q.current,X.current,null==j?void 0:j.beforeOutsideRef.current,null==j?void 0:j.afterOutsideRef.current,O.current.includes("reference")||R?C:null].filter((e=>null!=e)),c=f||R?ie(l,!A,A):ie(l);return()=>{c()}}),[r,C,E,f,O,j,R,M,A,D,S,k]),(0,o.Xj)((()=>{if(r||!(0,a.Re)(Z))return;const e=(0,o.Me)(Z),t=(0,o.AW)(e);queueMicrotask((()=>{const e=G(Z),n=T.current,r=("number"==typeof n?e[n]:n.current)||Z,i=(0,o.r3)(Z,t);N||i||!b||$(r,{preventScroll:r===Z})}))}),[r,b,Z,N,G,T]),(0,o.Xj)((()=>{if(r||!Z)return;let e=!1;const t=(0,o.Me)(Z),n=(0,o.AW)(t);var i;function s(t){let{reason:n,event:r,nested:i}=t;if(["hover","safe-polygon"].includes(n)&&"mouseleave"===r.type&&(B.current=!0),"outside-press"===n)if(i)B.current=!1,e=!0;else if((0,o.Zj)(r)||(0,o.cr)(r))B.current=!1;else{let t=!1;document.createElement("div").focus({get preventScroll(){return t=!0,!1}}),t?(B.current=!1,e=!0):B.current=!0}}i=n,pe=pe.filter((e=>e.isConnected)),i&&"body"!==(0,a.wk)(i)&&(pe.push(i),pe.length>he&&(pe=pe.slice(-20))),x.on("openchange",s);const c=t.createElement("span");return c.setAttribute("tabindex","-1"),c.setAttribute("aria-hidden","true"),Object.assign(c.style,oe),H&&C&&C.insertAdjacentElement("afterend",c),()=>{x.off("openchange",s);const n=(0,o.AW)(t),r=(0,o.r3)(E,n)||D&&(0,o.El)(D.nodesRef.current,S()).some((e=>{var t;return(0,o.r3)(null==(t=e.context)?void 0:t.elements.floating,n)})),i=function(){if("boolean"==typeof z.current){const e=C||fe();return e&&e.isConnected?e:c}return z.current.current||c}();queueMicrotask((()=>{const s=function(e){const t=(0,o.Tv)();return(0,l.Wq)(e,t)?e:(0,l.ht)(e,t)[0]||e}(i);z.current&&!B.current&&(0,a.Re)(s)&&(s===n||n===t.body||r)&&s.focus({preventScroll:e}),c.remove()}))}}),[r,E,Z,z,_,x,D,H,C,S]),i.useEffect((()=>{queueMicrotask((()=>{B.current=!1}))}),[r]),(0,o.Xj)((()=>{if(!r&&j)return j.setFocusManagerState({modal:f,closeOnFocusOut:g,open:b,onOpenChange:w,domReference:C}),()=>{j.setFocusManagerState(null)}}),[r,j,f,b,w,g,C]),(0,o.Xj)((()=>{r||Z&&me(Z,O)}),[r,Z,O]);const ee=!r&&M&&(!f||!R)&&(H||f);return(0,s.jsxs)(s.Fragment,{children:[ee&&(0,s.jsx)(se,{"data-type":"inside",ref:K,onFocus:e=>{if(f){const e=G();$("reference"===c[0]?e[0]:e[e.length-1])}else if(null!=j&&j.preserveTabOrder&&j.portalNode)if(B.current=!1,(0,o.dE)(e,j.portalNode)){const e=(0,o.k0)(C);null==e||e.focus()}else{var t;null==(t=j.beforeOutsideRef.current)||t.focus()}}}),!R&&Q("start"),n,Q("end"),ee&&(0,s.jsx)(se,{"data-type":"inside",ref:J,onFocus:e=>{if(f)$(G()[0]);else if(null!=j&&j.preserveTabOrder&&j.portalNode)if(g&&(B.current=!0),(0,o.dE)(e,j.portalNode)){const e=(0,o.e8)(C);null==e||e.focus()}else{var t;null==(t=j.afterOutsideRef.current)||t.focus()}}})]})}let ye=0;let be=()=>{};const we=i.forwardRef((function(e,t){const{lockScroll:n=!1,...r}=e;return(0,o.Xj)((()=>{if(n)return ye++,1===ye&&(be=function(){const e=/iP(hone|ad|od)|iOS/.test((0,o.Xf)()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,i=t.left?parseFloat(t.left):window.scrollX,s=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var a,l;const e=(null==(a=window.visualViewport)?void 0:a.offsetLeft)||0,n=(null==(l=window.visualViewport)?void 0:l.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(s-Math.floor(n))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(i,s))}}()),()=>{ye--,0===ye&&be()}}),[n]),(0,s.jsx)("div",{ref:t,...r,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}})}));function xe(e){return(0,a.Re)(e.target)&&"BUTTON"===e.target.tagName}function _e(e){return(0,o.j7)(e)}function Ce(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:s,elements:{domReference:l}}=e,{enabled:c=!0,event:u="click",toggle:d=!0,ignoreMouse:h=!1,keyboardHandlers:p=!0,stickIfOpen:f=!0}=t,m=i.useRef(),g=i.useRef(!1),v=i.useMemo((()=>({onPointerDown(e){m.current=e.pointerType},onMouseDown(e){const t=m.current;0===e.button&&"click"!==u&&((0,o.r)(t,!0)&&h||(!n||!d||s.current.openEvent&&f&&"mousedown"!==s.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=m.current;"mousedown"===u&&m.current?m.current=void 0:(0,o.r)(t,!0)&&h||(!n||!d||s.current.openEvent&&f&&"click"!==s.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){m.current=void 0,e.defaultPrevented||!p||xe(e)||(" "!==e.key||_e(l)||(e.preventDefault(),g.current=!0),function(e){return(0,a.Re)(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!d,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!p||xe(e)||_e(l)||" "===e.key&&g.current&&(g.current=!1,r(!n||!d,e.nativeEvent,"click"))}})),[s,l,u,h,p,r,n,f,d]);return i.useMemo((()=>c?{reference:v}:{}),[c,v])}const Ee={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Se={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ke=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Ne(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:s,dataRef:l}=e,{enabled:c=!0,escapeKey:u=!0,outsidePress:d=!0,outsidePressEvent:h="pointerdown",referencePress:p=!1,referencePressEvent:f="pointerdown",ancestorScroll:m=!1,bubbles:g,capture:v}=t,y=L(),b=(0,o.iW)("function"==typeof d?d:()=>!1),w="function"==typeof d?b:d,x=i.useRef(!1),_=i.useRef(!1),{escapeKey:C,outsidePress:E}=ke(g),{escapeKey:S,outsidePress:k}=ke(v),N=i.useRef(!1),R=(0,o.iW)((e=>{var t;if(!n||!c||!u||"Escape"!==e.key)return;if(N.current)return;const i=null==(t=l.current.floatingContext)?void 0:t.nodeId,s=y?(0,o.El)(y.nodesRef.current,i):[];if(!C&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,(0,o.MM)(e)?e.nativeEvent:e,"escape-key")})),I=(0,o.iW)((e=>{var t;const n=()=>{var t;R(e),null==(t=(0,o.U9)(e))||t.removeEventListener("keydown",n)};null==(t=(0,o.U9)(e))||t.addEventListener("keydown",n)})),M=(0,o.iW)((e=>{var t;const n=x.current;x.current=!1;const i=_.current;if(_.current=!1,"click"===h&&i)return;if(n)return;if("function"==typeof w&&!w(e))return;const c=(0,o.U9)(e),u="["+W("inert")+"]",d=(0,o.Me)(s.floating).querySelectorAll(u);let p=(0,a.kK)(c)?c:null;for(;p&&!(0,a.Py)(p);){const e=(0,a.Ow)(p);if((0,a.Py)(e)||!(0,a.kK)(e))break;p=e}if(d.length&&(0,a.kK)(c)&&!(0,o.ex)(c)&&!(0,o.r3)(c,s.floating)&&Array.from(d).every((e=>!(0,o.r3)(p,e))))return;if((0,a.Re)(c)&&T){const t=(0,a.Py)(c),n=(0,a.Dx)(c),r=/auto|scroll/,i=t||r.test(n.overflowX),o=t||r.test(n.overflowY),s=i&&c.clientWidth>0&&c.scrollWidth>c.clientWidth,l=o&&c.clientHeight>0&&c.scrollHeight>c.clientHeight,u="rtl"===n.direction,d=l&&(u?e.offsetX<=c.offsetWidth-c.clientWidth:e.offsetX>c.clientWidth),h=s&&e.offsetY>c.clientHeight;if(d||h)return}const f=null==(t=l.current.floatingContext)?void 0:t.nodeId,m=y&&(0,o.El)(y.nodesRef.current,f).some((t=>{var n;return(0,o.Pe)(e,null==(n=t.context)?void 0:n.elements.floating)}));if((0,o.Pe)(e,s.floating)||(0,o.Pe)(e,s.domReference)||m)return;const g=y?(0,o.El)(y.nodesRef.current,f):[];if(g.length>0){let e=!0;if(g.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),A=(0,o.iW)((e=>{var t;const n=()=>{var t;M(e),null==(t=(0,o.U9)(e))||t.removeEventListener(h,n)};null==(t=(0,o.U9)(e))||t.addEventListener(h,n)}));i.useEffect((()=>{if(!n||!c)return;l.current.__escapeKeyBubbles=C,l.current.__outsidePressBubbles=E;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function i(){window.clearTimeout(e),N.current=!0}function d(){e=window.setTimeout((()=>{N.current=!1}),(0,a.Pf)()?5:0)}const p=(0,o.Me)(s.floating);u&&(p.addEventListener("keydown",S?I:R,S),p.addEventListener("compositionstart",i),p.addEventListener("compositionend",d)),w&&p.addEventListener(h,k?A:M,k);let f=[];return m&&((0,a.kK)(s.domReference)&&(f=(0,a.Kx)(s.domReference)),(0,a.kK)(s.floating)&&(f=f.concat((0,a.Kx)(s.floating))),!(0,a.kK)(s.reference)&&s.reference&&s.reference.contextElement&&(f=f.concat((0,a.Kx)(s.reference.contextElement)))),f=f.filter((e=>{var t;return e!==(null==(t=p.defaultView)?void 0:t.visualViewport)})),f.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{u&&(p.removeEventListener("keydown",S?I:R,S),p.removeEventListener("compositionstart",i),p.removeEventListener("compositionend",d)),w&&p.removeEventListener(h,k?A:M,k),f.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[l,s,u,w,h,n,r,m,c,C,E,R,S,I,M,k,A]),i.useEffect((()=>{x.current=!1}),[w,h]);const O=i.useMemo((()=>({onKeyDown:R,...p&&{[Ee[f]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==f&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}})),[R,r,p,f]),T=i.useMemo((()=>({onKeyDown:R,onMouseDown(){_.current=!0},onMouseUp(){_.current=!0},[Se[h]]:()=>{x.current=!0}})),[R,h]);return i.useMemo((()=>c?{reference:O,floating:T}:{}),[c,O,T])}function Re(e){const{open:t=!1,onOpenChange:n,elements:r}=e,s=T(),a=i.useRef({}),[l]=i.useState((()=>z())),c=null!=P();const[u,d]=i.useState(r.reference),h=(0,o.iW)(((e,t,r)=>{a.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)})),p=i.useMemo((()=>({setPositionReference:d})),[]),f=i.useMemo((()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference})),[u,r.reference,r.floating]);return i.useMemo((()=>({dataRef:a,open:t,onOpenChange:h,elements:f,events:l,floatingId:s,refs:p})),[t,h,f,l,s,p])}function Ie(e){void 0===e&&(e={});const{nodeId:t}=e,n=Re({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,s=r.elements,[l,c]=i.useState(null),[d,h]=i.useState(null),p=(null==s?void 0:s.domReference)||l,f=i.useRef(null),m=L();(0,o.Xj)((()=>{p&&(f.current=p)}),[p]);const g=(0,u.YF)({...e,elements:{...s,...d&&{reference:d}}}),v=i.useCallback((e=>{const t=(0,a.kK)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;h(t),g.refs.setReference(t)}),[g.refs]),y=i.useCallback((e=>{((0,a.kK)(e)||null===e)&&(f.current=e,c(e)),((0,a.kK)(g.refs.reference.current)||null===g.refs.reference.current||null!==e&&!(0,a.kK)(e))&&g.refs.setReference(e)}),[g.refs]),b=i.useMemo((()=>({...g.refs,setReference:y,setPositionReference:v,domReference:f})),[g.refs,y,v]),w=i.useMemo((()=>({...g.elements,domReference:p})),[g.elements,p]),x=i.useMemo((()=>({...g,...r,refs:b,elements:w,nodeId:t})),[g,b,w,t,r]);return(0,o.Xj)((()=>{r.dataRef.current.floatingContext=x;const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===t));e&&(e.context=x)})),i.useMemo((()=>({...g,context:x,refs:b,elements:w})),[g,b,w,x])}function Me(){return(0,o.V5)()&&(0,o.G6)()}function Ae(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:s,dataRef:l,elements:c}=e,{enabled:u=!0,visibleOnly:d=!0}=t,h=i.useRef(!1),p=i.useRef(-1),f=i.useRef(!0);i.useEffect((()=>{if(!u)return;const e=(0,a.Jj)(c.domReference);function t(){!n&&(0,a.Re)(c.domReference)&&c.domReference===(0,o.AW)((0,o.Me)(c.domReference))&&(h.current=!0)}function r(){f.current=!0}function i(){f.current=!1}return e.addEventListener("blur",t),Me()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",i,!0)),()=>{e.removeEventListener("blur",t),Me()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",i,!0))}}),[c.domReference,n,u]),i.useEffect((()=>{if(u)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(h.current=!0)}}),[s,u]),i.useEffect((()=>()=>{V(p)}),[]);const m=i.useMemo((()=>({onMouseLeave(){h.current=!1},onFocus(e){if(h.current)return;const t=(0,o.U9)(e.nativeEvent);if(d&&(0,a.kK)(t))if(Me()&&!e.relatedTarget){if(!f.current&&!(0,o.j7)(t))return}else if(!(0,o.WL)(t))return;r(!0,e.nativeEvent,"focus")},onBlur(e){h.current=!1;const t=e.relatedTarget,n=e.nativeEvent,i=(0,a.kK)(t)&&t.hasAttribute(W("focus-guard"))&&"outside"===t.getAttribute("data-type");p.current=window.setTimeout((()=>{var e;const s=(0,o.AW)(c.domReference?c.domReference.ownerDocument:document);(t||s!==c.domReference)&&((0,o.r3)(null==(e=l.current.floatingContext)?void 0:e.refs.floating.current,s)||(0,o.r3)(c.domReference,s)||i||r(!1,n,"focus"))}))}})),[l,c.domReference,r,d]);return i.useMemo((()=>u?{reference:m}:{}),[u,m])}function Oe(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[g]:t,[v]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[m]:""},...o,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,o]=t;var s;i&&[g,v].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof o&&(null==(s=r.get(n))||s.push(o),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map((e=>e(...i))).find((e=>void 0!==e))})):e[n]=o)})),e):e),{})}}function Te(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=i.useCallback((t=>Oe(t,e,"reference")),t),s=i.useCallback((t=>Oe(t,e,"floating")),n),a=i.useCallback((t=>Oe(t,e,"item")),r);return i.useMemo((()=>({getReferenceProps:o,getFloatingProps:s,getItemProps:a})),[o,s,a])}const ze="Escape";function De(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function je(e,t){return De(t,e===w||e===x,e===y||e===b)}function Pe(e,t,n){return De(t,e===x,n?e===y:e===b)||"Enter"===e||" "===e||""===e}function Le(e,t,n){return De(t,n?e===y:e===b,e===x)}function Fe(e,t,n,r){return"both"===t||"horizontal"===t&&r&&r>1?e===ze:De(t,n?e===b:e===y,e===w)}function Be(e,t){const{open:n,onOpenChange:r,elements:s,floatingId:l}=e,{listRef:c,activeIndex:u,onNavigate:d=(()=>{}),enabled:h=!0,selectedIndex:p=null,allowEscape:f=!1,loop:m=!1,nested:g=!1,rtl:v=!1,virtual:w=!1,focusItemOnOpen:_="auto",focusItemOnHover:C=!0,openOnArrowKeyDown:E=!0,disabledIndices:S,orientation:k="vertical",parentOrientation:N,cols:R=1,scrollItemIntoView:I=!0,virtualItemRef:M,itemSizes:A,dense:O=!1}=t;const T=(0,o.zd)(s.floating),z=(0,o.II)(T),D=P(),j=L();(0,o.Xj)((()=>{e.dataRef.current.orientation=k}),[e,k]);const F=(0,o.iW)((()=>{d(-1===W.current?null:W.current)})),B=(0,o.Ie)(s.domReference),U=i.useRef(_),W=i.useRef(null!=p?p:-1),V=i.useRef(null),H=i.useRef(!0),Z=i.useRef(F),Y=i.useRef(!!s.floating),G=i.useRef(n),q=i.useRef(!1),X=i.useRef(!1),K=(0,o.II)(S),J=(0,o.II)(n),Q=(0,o.II)(I),ee=(0,o.II)(p),[te,ne]=i.useState(),[re,ie]=i.useState(),oe=(0,o.iW)((()=>{function e(e){var t;w?(null!=(t=e.id)&&t.endsWith("-fui-option")&&(e.id=l+"-"+Math.random().toString(16).slice(2,10)),ne(e.id),null==j||j.events.emit("virtualfocus",e),M&&(M.current=e)):$(e,{sync:q.current,preventScroll:!0})}const t=c.current[W.current],n=X.current;t&&e(t);(q.current?e=>e():requestAnimationFrame)((()=>{const r=c.current[W.current]||t;if(!r)return;t||e(r);const i=Q.current;i&&ae&&(n||!H.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof i?{block:"nearest",inline:"nearest"}:i))}))}));(0,o.Xj)((()=>{h&&(n&&s.floating?U.current&&null!=p&&(X.current=!0,W.current=p,F()):Y.current&&(W.current=-1,Z.current()))}),[h,n,s.floating,p,F]),(0,o.Xj)((()=>{if(h&&n&&s.floating)if(null==u){if(q.current=!1,null!=ee.current)return;if(Y.current&&(W.current=-1,oe()),(!G.current||!Y.current)&&U.current&&(null!=V.current||!0===U.current&&null==V.current)){let e=0;const t=()=>{if(null==c.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else W.current=null==V.current||Pe(V.current,k,v)||g?(0,o.h$)(c,K.current):(0,o.zc)(c,K.current),V.current=null,F()};t()}}else(0,o.VP)(c,u)||(W.current=u,oe(),X.current=!1)}),[h,n,s.floating,u,ee,g,c,k,v,F,oe,K]),(0,o.Xj)((()=>{var e;if(!h||s.floating||!j||w||!Y.current)return;const t=j.nodesRef.current,n=null==(e=t.find((e=>e.id===D)))||null==(e=e.context)?void 0:e.elements.floating,r=(0,o.AW)((0,o.Me)(s.floating)),i=t.some((e=>e.context&&(0,o.r3)(e.context.elements.floating,r)));n&&!i&&H.current&&n.focus({preventScroll:!0})}),[h,s.floating,j,D,w]),(0,o.Xj)((()=>{if(h&&j&&w&&!D)return j.events.on("virtualfocus",e),()=>{j.events.off("virtualfocus",e)};function e(e){ie(e.id),M&&(M.current=e)}}),[h,j,w,D,M]),(0,o.Xj)((()=>{Z.current=F,G.current=n,Y.current=!!s.floating})),(0,o.Xj)((()=>{n||(V.current=null)}),[n]);const se=null!=u,ae=i.useMemo((()=>{function e(e){if(!n)return;const t=c.current.indexOf(e);-1!==t&&W.current!==t&&(W.current=t,F())}return{onFocus(t){let{currentTarget:n}=t;q.current=!0,e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...C&&{onMouseMove(t){let{currentTarget:n}=t;q.current=!0,X.current=!1,e(n)},onPointerLeave(e){let{pointerType:t}=e;var n;H.current&&"touch"!==t&&(q.current=!0,W.current=-1,F(),w||null==(n=z.current)||n.focus({preventScroll:!0}))}}}}),[n,z,C,c,F,w]),le=i.useCallback((()=>{var e;return null!=N?N:null==j||null==(e=j.nodesRef.current.find((e=>e.id===D)))||null==(e=e.context)||null==(e=e.dataRef)?void 0:e.current.orientation}),[D,j,N]),ce=(0,o.iW)((e=>{if(H.current=!1,q.current=!0,229===e.which)return;if(!J.current&&e.currentTarget===z.current)return;if(g&&Fe(e.key,k,v,R))return je(e.key,le())||(0,o.p7)(e),r(!1,e.nativeEvent,"list-navigation"),void((0,a.Re)(s.domReference)&&(w?null==j||j.events.emit("virtualfocus",s.domReference):s.domReference.focus()));const t=W.current,i=(0,o.h$)(c,S),l=(0,o.zc)(c,S);if(B||("Home"===e.key&&((0,o.p7)(e),W.current=i,F()),"End"===e.key&&((0,o.p7)(e),W.current=l,F())),R>1){const t=A||Array.from({length:c.current.length},(()=>({width:1,height:1}))),n=(0,o.fe)(t,R,O),r=n.findIndex((e=>null!=e&&!(0,o.Nm)(c,e,S))),s=n.reduce(((e,t,n)=>null==t||(0,o.Nm)(c,t,S)?e:n),-1),a=n[(0,o.xR)({current:n.map((e=>null!=e?c.current[e]:null))},{event:e,orientation:k,loop:m,rtl:v,cols:R,disabledIndices:(0,o.w_)([...S||c.current.map(((e,t)=>(0,o.Nm)(c,t)?t:void 0)),void 0],n),minIndex:r,maxIndex:s,prevIndex:(0,o.XH)(W.current>l?i:W.current,t,n,R,e.key===x?"bl":e.key===(v?y:b)?"tr":"tl"),stopEvent:!0})];if(null!=a&&(W.current=a,F()),"both"===k)return}if(je(e.key,k)){if((0,o.p7)(e),n&&!w&&(0,o.AW)(e.currentTarget.ownerDocument)===e.currentTarget)return W.current=Pe(e.key,k,v)?i:l,void F();Pe(e.key,k,v)?W.current=m?t>=l?f&&t!==c.current.length?-1:i:(0,o.aF)(c,{startingIndex:t,disabledIndices:S}):Math.min(l,(0,o.aF)(c,{startingIndex:t,disabledIndices:S})):W.current=m?t<=i?f&&-1!==t?c.current.length:l:(0,o.aF)(c,{startingIndex:t,decrement:!0,disabledIndices:S}):Math.max(i,(0,o.aF)(c,{startingIndex:t,decrement:!0,disabledIndices:S})),(0,o.VP)(c,W.current)&&(W.current=-1),F()}})),ue=i.useMemo((()=>w&&n&&se&&{"aria-activedescendant":re||te}),[w,n,se,re,te]),de=i.useMemo((()=>({"aria-orientation":"both"===k?void 0:k,...B?{}:ue,onKeyDown:ce,onPointerMove(){H.current=!0}})),[ue,ce,k,B]),he=i.useMemo((()=>{function e(e){"auto"===_&&(0,o.Zj)(e.nativeEvent)&&(U.current=!0)}function t(e){U.current=_,"auto"===_&&(0,o.cr)(e.nativeEvent)&&(U.current=!0)}return{...ue,onKeyDown(e){H.current=!1;const t=e.key.startsWith("Arrow"),i=["Home","End"].includes(e.key),s=t||i,a=Le(e.key,k,v),l=Fe(e.key,k,v,R),u=Le(e.key,le(),v),d=je(e.key,k),h=(g?u:d)||"Enter"===e.key||""===e.key.trim();if(w&&n){const t=null==j?void 0:j.nodesRef.current.find((e=>null==e.parentId)),n=j&&t?(0,o.m_)(j.nodesRef.current,t.id):null;if(s&&n&&M){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(a||l){var f,m;const r=(null==(f=n.context)?void 0:f.elements.domReference)===e.currentTarget,i=l&&!r?null==(m=n.context)?void 0:m.elements.domReference:a?c.current.find((e=>(null==e?void 0:e.id)===te)):null;i&&((0,o.p7)(e),i.dispatchEvent(t),ie(void 0))}var y;if((d||i)&&n.context)if(n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return(0,o.p7)(e),void(null==(y=n.context.elements.domReference)||y.dispatchEvent(t))}return ce(e)}if(n||E||!t){if(h){const t=je(e.key,le());V.current=g&&t?null:e.key}g?u&&((0,o.p7)(e),n?(W.current=(0,o.h$)(c,K.current),F()):r(!0,e.nativeEvent,"list-navigation")):d&&(null!=p&&(W.current=p),(0,o.p7)(e),!n&&E?r(!0,e.nativeEvent,"list-navigation"):ce(e),n&&F())}},onFocus(){n&&!w&&(W.current=-1,F())},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}}),[te,ue,R,ce,K,_,c,g,F,r,n,E,k,le,v,p,j,w,M]);return i.useMemo((()=>h?{reference:he,floating:de,item:ae}:{}),[h,he,de,ae])}const Ue=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function We(e,t){var n,r;void 0===t&&(t={});const{open:s,elements:a,floatingId:l}=e,{enabled:c=!0,role:u="dialog"}=t,d=T(),h=(null==(n=a.domReference)?void 0:n.id)||d,p=i.useMemo((()=>{var e;return(null==(e=(0,o.zd)(a.floating))?void 0:e.id)||l}),[a.floating,l]),f=null!=(r=Ue.get(u))?r:u,m=null!=P(),g=i.useMemo((()=>"tooltip"===f||"label"===u?{["aria-"+("label"===u?"labelledby":"describedby")]:s?p:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":"alertdialog"===f?"dialog":f,"aria-controls":s?p:void 0,..."listbox"===f&&{role:"combobox"},..."menu"===f&&{id:h},..."menu"===f&&m&&{role:"menuitem"},..."select"===u&&{"aria-autocomplete":"none"},..."combobox"===u&&{"aria-autocomplete":"list"}}),[f,p,m,s,h,u]),v=i.useMemo((()=>{const e={id:p,...f&&{role:f}};return"tooltip"===f||"label"===u?e:{...e,..."menu"===f&&{"aria-labelledby":h}}}),[f,p,h,u]),y=i.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:p+"-fui-option"}};switch(u){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,"aria-selected":n}}return{}}),[p,u]);return i.useMemo((()=>c?{reference:g,floating:v,item:y}:{}),[c,g,v,y])}function Ve(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:s=250}=t,a=("number"==typeof s?s:s.close)||0,[l,u]=i.useState("unmounted"),d=function(e,t){const[n,r]=i.useState(e);return e&&!n&&r(!0),i.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>r(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,a);return d||"close"!==l||u("unmounted"),(0,o.Xj)((()=>{if(r){if(n){u("initial");const e=requestAnimationFrame((()=>{c.flushSync((()=>{u("open")}))}));return()=>{cancelAnimationFrame(e)}}u("close")}}),[n,r]),{isMounted:d,status:l}}function He(e,t){const[n,r]=e;let i=!1;const o=t.length;for(let e=0,s=o-1;e<o;s=e++){const[o,a]=t[e]||[0,0],[l,c]=t[s]||[0,0];a>=r!=c>=r&&n<=(l-o)*(r-a)/(c-a)+o&&(i=!i)}return i}function Ze(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let i,o=!1,s=null,l=null,c=performance.now();const u=e=>{let{x:n,y:u,placement:d,elements:h,onClose:p,nodeId:f,tree:m}=e;return function(e){function g(){clearTimeout(i),p()}if(clearTimeout(i),!h.domReference||!h.floating||null==d||null==n||null==u)return;const{clientX:v,clientY:y}=e,b=[v,y],w=function(e){return"composedPath"in e?e.composedPath()[0]:e.target}(e),x="mouseleave"===e.type,_=X(h.floating,w),C=X(h.domReference,w),E=h.domReference.getBoundingClientRect(),S=h.floating.getBoundingClientRect(),k=d.split("-")[0],N=n>S.right-S.width/2,R=u>S.bottom-S.height/2,I=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(b,E),M=S.width>E.width,A=S.height>E.height,O=(M?E:S).left,T=(M?E:S).right,z=(A?E:S).top,D=(A?E:S).bottom;if(_&&(o=!0,!x))return;if(C&&(o=!1),C&&!x)return void(o=!0);if(x&&(0,a.kK)(e.relatedTarget)&&X(h.floating,e.relatedTarget))return;if(m&&function(e,t,n){void 0===n&&(n=!0);let r=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),i=r;for(;i.length;)i=n?e.filter((e=>{var t;return null==(t=i)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})):e,r=r.concat(i);return r}(m.nodesRef.current,f).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===k&&u>=E.bottom-1||"bottom"===k&&u<=E.top+1||"left"===k&&n>=E.right-1||"right"===k&&n<=E.left+1)return g();let j=[];switch(k){case"top":j=[[O,E.top+1],[O,S.bottom-1],[T,S.bottom-1],[T,E.top+1]];break;case"bottom":j=[[O,S.top+1],[O,E.bottom-1],[T,E.bottom-1],[T,S.top+1]];break;case"left":j=[[S.right-1,D],[S.right-1,z],[E.left+1,z],[E.left+1,D]];break;case"right":j=[[E.right-1,D],[E.right-1,z],[S.left+1,z],[S.left+1,D]]}if(!He([v,y],j)){if(o&&!I)return g();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-c;if(null===s||null===l||0===r)return s=e,l=t,c=n,null;const i=e-s,o=t-l,a=Math.sqrt(i*i+o*o);return s=e,l=t,c=n,a/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}He([v,y],function(e){let[n,r]=e;switch(k){case"top":return[[M?n+t/2:N?n+4*t:n-4*t,r+t+1],[M?n-t/2:N?n+4*t:n-4*t,r+t+1],...[[S.left,N||M?S.bottom-t:S.top],[S.right,N?M?S.bottom-t:S.top:S.bottom-t]]];case"bottom":return[[M?n+t/2:N?n+4*t:n-4*t,r-t],[M?n-t/2:N?n+4*t:n-4*t,r-t],...[[S.left,N||M?S.top+t:S.bottom],[S.right,N?M?S.top+t:S.bottom:S.top+t]]];case"left":{const e=[n+t+1,A?r+t/2:R?r+4*t:r-4*t],i=[n+t+1,A?r-t/2:R?r+4*t:r-4*t];return[...[[R||A?S.right-t:S.left,S.top],[R?A?S.right-t:S.left:S.right-t,S.bottom]],e,i]}case"right":return[[n-t,A?r+t/2:R?r+4*t:r-4*t],[n-t,A?r-t/2:R?r+4*t:r-4*t],...[[R||A?S.left+t:S.right,S.top],[R?A?S.left+t:S.right:S.left+t,S.bottom]]]}}([n,u]))?!o&&r&&(i=window.setTimeout(g,40)):g()}}};return u.__options={blockPointerEvents:n},u}},90617:(e,t,n)=>{"use strict";n.d(t,{M:()=>u});var r=n(52322),i=n(2784),o=n(88390),s=n(78567);const a=(0,n(89393).Ge)("action-tooltip"),l=500,c=0;function u({title:e,description:t,hotkey:n,openDelay:u=l,closeDelay:d=c,className:h,...p}){const f=i.useMemo((()=>(0,r.jsxs)(i.Fragment,{children:[(0,r.jsxs)("div",{className:a("heading"),children:[(0,r.jsx)("div",{className:a("title"),children:e}),n&&(0,r.jsx)(o.q,{view:"dark",value:n,className:a("hotkey")})]}),t&&(0,r.jsx)("div",{className:a("description"),children:t})]})),[e,t,n]);return(0,r.jsx)(s.u,{...p,role:"label",content:f,openDelay:u,closeDelay:d,className:a(null,h)})}},31385:(e,t,n)=>{"use strict";n.d(t,{b:()=>v});var r=n(52322),i=n(28786),o=n(16409),s=n(120),a=n(97120),l=n(67027),c=n(22463),u=n(47952),d=n(53570),h=n(82984),p=n(97194),f=n(93989),m=n(44684),g=n(55296);const v=e=>{const{theme:t="normal",view:n="filled",layout:u="vertical",message:d,className:p,corners:f,style:y,onClose:b,align:w,qa:x}=e;return(0,r.jsx)(h.z,{layout:u,view:n,children:(0,r.jsx)(s.Z,{style:y,className:(0,m.r)({corners:f},(0,c.W0)({py:4,px:5},p)),theme:t,view:n,qa:x,children:(0,r.jsxs)(c.kC,{gap:"3",alignItems:w,children:[void 0===e.icon?(0,r.jsx)(v.Icon,{theme:t,view:n}):e.icon,(0,r.jsxs)(c.kC,{direction:"vertical"===u?"column":"row",gap:"5",grow:!0,children:[(0,r.jsx)(c.kC,{gap:"2",grow:!0,className:(0,m.r)("text-content"),children:(0,r.jsxs)(c.kC,{direction:"column",gap:"1",grow:!0,justifyContent:w,children:["string"==typeof e.title?(0,r.jsx)(v.Title,{text:e.title}):e.title,d]})}),Array.isArray(e.actions)?(0,r.jsx)(v.Actions,{items:e.actions}):e.actions]}),b&&(0,r.jsx)(o.z,{view:"flat",className:(0,m.r)("close-btn"),onClick:b,"aria-label":(0,g.Z)("label_close"),children:(0,r.jsx)(a.J,{data:i.Z,size:m.C,className:(0,l.V$)({color:"secondary"})})})]})})})};v.Icon=p.z,v.Title=f.C,v.Actions=d.G,v.Action=u.q},42696:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});var r=n(52322),i=n(82714),o=n(97120);const s=(0,n(89393).Ge)("arrow-toggle");function a({size:e=16,direction:t="bottom",className:n,qa:a}){return(0,r.jsx)("span",{style:{width:e,height:e},className:s({direction:t},n),"data-qa":a,children:(0,r.jsx)(o.J,{data:i.Z,size:e})})}},38896:(e,t,n)=>{"use strict";n.d(t,{z:()=>h});var r=n(52322),i=n(2784),o=n(89393),s=n(50535),a=n(35644),l=n(77823),c=n(57268);const u=(0,o.Ge)("button"),d=i.forwardRef((function(e,t){const{view:n="normal",size:o="m",pin:s="round-round",selected:l,disabled:c=!1,loading:d=!1,width:h,children:p,extraProps:f,qa:m,onClickCapture:v,...y}=e,b={onClickCapture:i.useCallback((e=>{a.Po.publish({componentId:"Button",eventId:"click",domEvent:e,meta:{content:e.currentTarget.textContent,view:n}}),v&&v(e)}),[n,v]),className:u({view:n,size:o,pin:s,selected:l,disabled:c||d,loading:d,width:h},y.className),"data-qa":m};return void 0!==e.component?i.createElement(e.component,{...y,...f,...b,ref:t,"aria-disabled":c??void 0},g(p)):void 0!==e.href?(0,r.jsx)("a",{...y,...f,...b,ref:t,rel:"_blank"!==e.target||y.rel?y.rel:"noopener noreferrer","aria-disabled":c??void 0,children:g(p)}):(0,r.jsx)("button",{...y,...f,...b,ref:t,type:e.type||"button",disabled:c||d,"aria-pressed":l,children:g(p)})})),h=Object.assign(d,{Icon:c.E}),p=(0,l.s)(c.E),f=(0,l.s)("span"),m=RegExp(`^${u("icon")}($|\\s+\\w)`);function g(e){const t=i.Children.toArray(e);if(1===t.length){const e=t[0];return p(e)||f(e)&&m.test(e.props.className||"")?e:(0,s.yb)(e)||(0,s.Dc)(e)?(0,r.jsx)(h.Icon,{children:e},"icon"):(0,r.jsx)("span",{className:u("text"),children:e},"text")}{let e,n,o;const a=[];for(const o of t){const t=(0,s.yb)(o)||(0,s.Dc)(o),l=p(o),d=f(o)&&m.test(o.props.className||"");if(t||l||d)if(e||0!==a.length){if(!n&&0!==a.length){const e="icon-end",s="end";n=t?(0,r.jsx)(h.Icon,{side:s,children:o},e):l?i.cloneElement(o,{side:s}):i.cloneElement(o,{className:u("icon",{side:(0,c.C)(s)},o.props.className)})}}else{const n="icon-start",s="start";e=t?(0,r.jsx)(h.Icon,{side:s,children:o},n):l?i.cloneElement(o,{side:s}):i.cloneElement(o,{className:u("icon",{side:(0,c.C)(s)},o.props.className)})}else a.push(o)}return a.length>0&&(o=(0,r.jsx)("span",{className:u("text"),children:a},"text")),[e,n,o]}}},120:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(52322),i=n(2784),o=n(26256),s=n(22463);const a=(0,n(89393).Ge)("card"),l=i.forwardRef((function(e,t){const{type:n="container",theme:i,view:l,size:c="m",children:u,className:d,onClick:h,disabled:p,selected:f,...m}=e,g="selection"===n,v="container"===n,y=("action"===n||g)&&Boolean(h)&&!p,b=v?"normal":void 0,w=v||g?"outlined":void 0,x=y?h:void 0,{onKeyDown:_}=(0,o.bV)(h);return(0,r.jsx)(s.xu,{ref:t,role:y?"button":void 0,className:a({theme:i||b,view:l||w,type:n,selected:f,size:c,disabled:p,clickable:y},d),onClick:x,onKeyDown:y?_:void 0,tabIndex:y?0:void 0,...m,children:u})}))},55468:(e,t,n)=>{"use strict";n.d(t,{X:()=>d});var r=n(52322),i=n(2784),o=n(18399),s=n(76115),a=n(89393),l=n(25077),c=n(25539);const u=(0,a.Ge)("checkbox"),d=i.forwardRef((function(e,t){const{size:n="m",indeterminate:i,disabled:a=!1,content:d,children:h,title:p,style:f,className:m,qa:g}=e,{checked:v,inputProps:y}=(0,o.O)(e),b=d||h,w=(0,r.jsxs)("span",{className:u("indicator"),children:[(0,r.jsx)("span",{className:u("icon"),"aria-hidden":!0,children:i?(0,r.jsx)(l.b,{className:u("icon-svg",{type:"dash"})}):(0,r.jsx)(c.I,{className:u("icon-svg",{type:"tick"})})}),(0,r.jsx)("input",{...y,className:u("control")}),(0,r.jsx)("span",{className:u("outline")})]});return(0,r.jsx)(s.J,{ref:t,title:p,style:f,size:n,disabled:a,className:u({size:n,disabled:a,indeterminate:i,checked:v},m),qa:g,control:w,children:b})}))},91526:(e,t,n)=>{"use strict";n.d(t,{w:()=>d});var r=n(52322),i=n(2784),o=n(31984),s=n(77823),a=n(38132),l=n(456),c=n(94665),u=n(64841);function d({responsive:e,direction:t="horizontal",nameMaxWidth:n,contentMaxWidth:s,className:c,children:d,qa:p,...f}){const m=function(e){const t=i.Children.toArray(e),n=[];for(const e of t){h(e)?n.push(e):(0,a.O)("[DefinitionList] Only <DefinitionList.Item> components is allowed as children")}return n}(d);return(0,r.jsx)(l.pF,{direction:t,nameMaxWidth:n,contentMaxWidth:s,children:(0,r.jsx)("dl",{...(0,o.z)(f,{labelable:!0}),className:(0,u.b)({responsive:e,vertical:"vertical"===t},c),"data-qa":p,children:m})})}const h=(0,s.s)(c.i);d.Item=c.i,d.displayName="DefinitionList"},91402:(e,t,n)=>{"use strict";n.d(t,{Y:()=>d});var r=n(52322),i=n(2784),o=n(77823),s=n(94087),a=n(6544),l=n(98669),c=n(34431);const u=(0,o.s)(l.j),d=i.forwardRef((function(e,t){const{size:n="m",disabled:o=!1,defaultExpanded:d=!1,arrowPosition:h="start",summary:p="",className:f,keepMounted:m=!0,children:g,onUpdate:v=(()=>{}),expanded:y,qa:b}=e,[w,x]=function(e,{disclosureQa:t}){const n=i.Children.toArray(e);let o,s;const c=[];for(const e of n){if(u(e)){if(o)throw new Error("Only one <Disclosure.Summary> component is allowed");o=e}else c.push(e)}c.length>0&&(s=(0,r.jsx)(a.P,{qa:t&&`${t}-details`,children:c}));o||(o=(0,r.jsx)(l.j,{qa:t&&`${t}-summary`,children:e=>(0,r.jsx)(l.B,{...e})}));return[o,s]}(g,{disclosureQa:b});return(0,r.jsx)(s.Th,{disabled:o,defaultExpanded:d,expanded:y,keepMounted:m,size:n,summary:p,arrowPosition:h,onUpdate:v,children:(0,r.jsxs)("section",{ref:t,className:(0,c.b)({size:n},f),"data-qa":b,children:[w,x]})})}));d.Summary=l.j,d.displayName="Disclosure"},91219:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var r=n(52322),i=n(2784),o=n(89393),s=n(31984);const a=(0,o.Ge)("divider"),l=i.forwardRef((function(e,t){const{orientation:n="horizontal",className:i,style:o,qa:l,children:c,align:u="start",...d}=e;return(0,r.jsx)("div",{...(0,s.z)(d,{labelable:!0}),className:a({orientation:n,align:u},i),ref:t,style:o,"data-qa":l,role:"separator","aria-orientation":"vertical"===n?"vertical":void 0,children:c})}))},40286:(e,t,n)=>{"use strict";n.d(t,{h:()=>y});var r=n(52322),i=n(2784),o=n(67003),s=n(89494),a=n(16409),l=n(97120),c=n(54104),u=n(44546),d=n(75622),h=n(91347),p=n(46781),f=n(3938),m=n(50317),g=n(28405),v=n(35583);const y=Object.assign((({items:e=[],size:t="m",icon:n=(0,r.jsx)(l.J,{data:o.Z}),open:d,onOpenToggle:y,hideOnScroll:b=!0,data:w,disabled:x,switcher:_,renderSwitcher:C,switcherWrapperClassName:E,defaultSwitcherProps:S,defaultSwitcherClassName:k,onSwitcherClick:N,menuProps:R,popupProps:I,children:M})=>{const A=i.useRef(null),{isPopupShown:O,togglePopup:T,closePopup:z}=(0,m.u)(d,y,x);(0,g.D)(z,A,!O||!b);const D=i.useMemo((()=>({toggle:T,data:w})),[w,T]),j=i.useMemo((()=>(0,v.u)(e,f.i)),[e]),P=i.useCallback((e=>{x||(N?.(e),T())}),[x,N,T]),{onKeyDown:L}=(0,s.b)(P),F=i.useMemo((()=>({onClick:P,onKeyDown:L})),[P,L]);return(0,r.jsxs)(u.n.Provider,{value:D,children:[(0,r.jsx)("div",{ref:A,className:(0,c.o)("switcher-wrapper",E),...C?{}:F,children:C?.(F)||_||(0,r.jsx)(a.z,{view:"flat",size:t,...S,className:(0,c.o)("switcher-button",k),disabled:x,children:n})}),(0,r.jsx)(h.U,{anchorRef:A,disabled:!O,children:(0,r.jsx)(p.P,{items:j,open:O,size:t,menuProps:R,anchorRef:A,onClose:z,popupProps:I,children:M})})]})}),{Item:d.X})},11313:(e,t,n)=>{"use strict";n.d(t,{I:()=>d});var r=n(52322),i=n(2784),o=n(38859),s=n(97120),a=n(57671),l=n(89393),c=n(3670);const u=(0,l.Ge)("help-mark"),d=i.forwardRef((function({children:e,qa:t,className:n,iconSize:i="m",popoverProps:l,...d},h){return(0,r.jsx)(a.J,{content:(0,r.jsx)("div",{className:u("popover"),children:e}),hasArrow:!0,...l,children:(0,r.jsx)("button",{...d,ref:h,type:"button",className:u(null,n),"data-qa":t,children:(0,r.jsx)(s.J,{data:o.Z,size:c.S[i],className:u("icon")})})})}))},98576:(e,t,n)=>{"use strict";n.d(t,{J:()=>c});var r=n(52322),i=n(2784),o=n(89393),s=n(9776),a=n(81585);const l=(0,o.Ge)("icon"),c=i.forwardRef((({data:e,width:t,height:n,size:i,className:o,fill:u="currentColor",stroke:d="none",qa:h},p)=>{let f,m,g;if(i&&(f=i,m=i),t&&(f=t),n&&(m=n),(0,a.wk)(e))({viewBox:g}=e);else if((0,a.SV)(e))g=(0,a.Ae)(e);else if((0,a.pG)(e))({viewBox:g}=e.defaultProps);else if((0,a.$x)(e)){const t=e({});t&&({viewBox:g}=t.props)}if(g&&(!f||!m)){const e=g.split(/\s+|\s*,\s*/);f||(f=e[2]),m||(m=e[3])}const v={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:f,height:m,className:l(null,o),fill:u,stroke:d,"data-qa":h,...s.i};if((0,a.SV)(e)){const t=(0,a.z)(e);return(0,r.jsx)("svg",{...v,ref:p,dangerouslySetInnerHTML:{__html:t}})}if((0,a.wk)(e)){const t=c.prefix+(e.url||`#${e.id}`);return(0,r.jsx)("svg",{...v,viewBox:g,ref:p,children:(0,r.jsx)("use",{href:t,xlinkHref:t})})}const y=e;return y.defaultProps&&(y.defaultProps.width=y.defaultProps.height=void 0),(0,r.jsx)("svg",{...v,ref:p,children:(0,r.jsx)(y,{width:void 0,height:void 0})})}));c.displayName="Icon",c.prefix=""},64499:(e,t,n)=>{"use strict";n.d(t,{_:()=>f});var r=n(52322),i=n(2784),o=n(34863),s=n(28786),a=n(99993),l=n(32789),c=n(97120),u=n(89393),d=n(76211);const h=(0,u.Ge)("label"),p={xs:12,s:14,m:16},f=i.forwardRef((function(e,t){const{type:n="default",theme:u="normal",size:f="xs",title:m,icon:g,children:v,onCloseClick:y,className:b,disabled:w,copyText:x,closeButtonLabel:_,copyButtonLabel:C,interactive:E=!1,value:S,onCopy:k,onClick:N,qa:R}=e,I=Boolean(""!==v&&i.Children.count(v)>0),M="close"===n&&I,A="copy"===n&&I,O="info"===n,T="function"==typeof N,z=Boolean(A&&x),D=(T||z||O||E)&&!w,j=p[f],P=g&&(0,r.jsx)("div",{className:h("addon",{side:I?"start":void 0,type:"icon"}),children:g}),L=I&&(0,r.jsxs)("div",{className:h("text"),children:[(0,r.jsx)("div",{className:h("content"),children:v}),Boolean(S)&&(0,r.jsxs)("div",{className:h("value"),children:[(0,r.jsx)("div",{className:h("separator"),children:":"}),(0,r.jsx)("div",{className:h("key"),children:S})]})]}),F=e=>{let n;return A?n=(0,r.jsx)("button",{type:"button","aria-label":C||void 0,onClick:T?N:void 0,disabled:w,className:h("addon",{side:"end",type:"button",action:T?"click":"copy"}),"data-qa":d.C.copyButton,children:(0,r.jsx)(a.K,{status:e||"pending",size:j})}):O?n=(0,r.jsx)("div",{className:h("addon",{side:"end",type:"icon"}),children:(0,r.jsx)(c.J,{size:j,data:o.Z})}):M&&(n=(0,r.jsx)("button",{type:"button",onClick:y,"aria-label":_||void 0,disabled:w,className:h("addon",{side:"end",type:"button",action:"close"}),"data-qa":d.C.closeButton,children:(0,r.jsx)(c.J,{size:j,data:s.Z})})),(0,r.jsxs)("div",{ref:t,className:h({theme:u,size:f,interactive:D,disabled:w},b),title:m,"data-qa":R,children:[P,T?(0,r.jsx)("button",{disabled:w,type:"button",onClick:N,className:h("main-button"),"data-qa":d.C.mainButton,children:L}):L,n]})};return z&&x&&!T?(0,r.jsx)(l.h,{text:x,onCopy:k,timeout:1e3,children:e=>F(e)}):F()}))},80586:(e,t,n)=>{"use strict";n.d(t,{r:()=>l});var r=n(52322),i=n(2784),o=n(89393),s=n(35644);const a=(0,o.Ge)("link"),l=i.forwardRef((function({view:e="normal",visitable:t=!1,underline:n=!1,href:o,children:l,extraProps:c,qa:u,onClickCapture:d,...h},p){const f=i.useCallback((e=>{s.Po.publish({componentId:"Link",eventId:"click",domEvent:e}),d&&d(e)}),[d]);return(0,r.jsx)("a",{...h,...c,ref:p,href:o,rel:"_blank"!==h.target||h.rel?h.rel:"noopener noreferrer",onClickCapture:f,className:a({view:e,visitable:t,underline:n},h.className),"data-qa":u,children:l})}))},95487:(e,t,n)=>{"use strict";n.d(t,{aV:()=>x});var r=n(52322),i=n(2784),o=n(18149),s=n(29259),a=n(15863),l=n(6738),c=n(50166),u=n(19094),d=n(72719),h=n(45597),p=n(89393),f=n(50535),m=n(33955),g=n(24558),v=n(14600);const y=(0,p.Ge)("list"),b={items:[],itemClassName:"",filterable:!0,sortable:!1,virtualized:!0,deactivateOnLeave:!0},w=i.forwardRef(((e,t)=>(0,r.jsx)(c.S_,{ref:t,...e,direction:(0,h.gm)()})));w.displayName="ListContainer";class x extends i.Component{static defaultProps=b;static moveListElement(e,t,n){if(t!==n){const[r]=e.splice(t,1);e.splice(n,0,r)}return e}static findNextIndex(e,t,n){const r=e.length;let i=(t+r)%r;for(let t=0;t<r;t+=1){if(e[i]&&!e[i].disabled)return i;i=(i+r+n)%r}}state={items:this.props.items,activeItem:this.props.activeItemIndex,filter:""};refFilter=i.createRef();refContainer=i.createRef();blurTimer=null;loadingItem={value:"__LIST_ITEM_LOADING__",disabled:!1};uniqId=(0,f.xA)();componentDidMount(){this.activateItem(this.props.activeItemIndex,!0)}componentDidUpdate(e,t){if(!o(this.props.items,e.items)){const e=this.getFilter();e&&!this.props.onFilterUpdate?this.onUpdateFilterInternal(e):this.setState({items:this.props.items})}this.props.activeItemIndex!==e.activeItemIndex&&this.activateItem(this.props.activeItemIndex),this.props.onChangeActive&&this.state.activeItem!==t.activeItem&&this.props.onChangeActive(this.state.activeItem)}componentWillUnmount(){this.blurTimer=null}render(){const{id:e,emptyPlaceholder:t,virtualized:n,className:i,itemsClassName:o,qa:s,role:a="list"}=this.props,{items:l}=this.state;return(0,r.jsx)(d.zw.Consumer,{children:({mobile:c})=>(0,r.jsxs)("div",{className:y({mobile:c},i),"data-qa":s,tabIndex:-1,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.onKeyDown,children:[this.renderFilter(),(0,r.jsxs)("div",{id:e,className:y("items",{virtualized:n},o),style:this.getItemsStyle(),onMouseLeave:this.onMouseLeave,role:a,children:[this.renderItems(),0===l.length&&Boolean(t)&&(0,r.jsx)("div",{className:y("empty-placeholder"),children:t})]})]})})}getItems(){return this.state.items}getItemsWithLoading(){return this.props.sortable?this.getItems():this.props.loading?[...this.state.items,this.loadingItem]:this.getItems()}getActiveItem(){return"number"==typeof this.state.activeItem?this.state.activeItem:null}activateItem(e,t=!0){this.setState({activeItem:e},(()=>{"number"==typeof e&&t&&this.scrollToIndex(e)}))}onKeyDown=e=>{const{activeItem:t,pageSize:n}=this.state;if(v.S.includes(e.key))return;const r=e.target instanceof HTMLInputElement;switch(e.key){case"ArrowDown":this.handleKeyMove(e,1,-1);break;case"ArrowUp":this.handleKeyMove(e,-1);break;case"PageDown":this.handleKeyMove(e,n??10);break;case"PageUp":this.handleKeyMove(e,-(n??10));break;case"Home":if(r)return;this.handleKeyMove(e,this.state.items.length-(t||0));break;case"End":if(r)return;this.handleKeyMove(e,-(t||0)-1);break;case"Enter":"number"==typeof t&&this.props.onItemClick&&this.props.onItemClick(this.state.items[t],t,!0,e);break;default:this.refFilter.current&&this.refFilter.current.focus()}};renderItemContent=(e,t,n)=>{const{onLoadMore:i}=this.props;return s(e)&&"value"in e&&e.value===this.loadingItem.value?(0,r.jsx)(m.I,{onIntersect:0===n?void 0:i}):this.props.renderItem?this.props.renderItem(e,t,n):(0,g._C)(e)};renderItem=({index:e,style:t,height:n,provided:i,isDragging:o})=>{const{sortHandleAlign:s,role:a}=this.props,{items:l,activeItem:c}=this.state,u=this.getItemsWithLoading()[e],d=this.props.sortable&&l.length>1&&!this.getFilter(),h=e===c||e===this.props.activeItemIndex,p=Array.isArray(this.props.selectedItemIndex)?this.props.selectedItemIndex.includes(e):e===this.props.selectedItemIndex;return(0,r.jsx)(g.HC,{style:t,height:n,itemIndex:e,item:u,sortable:d,sortHandleAlign:s,renderItem:this.renderItemContent,itemClassName:this.props.itemClassName,active:h,selected:p,onActivate:this.onItemActivate,onClick:this.props.onItemClick,role:"listbox"===a?"option":"listitem",listId:this.props.id??this.uniqId,provided:i,isDragging:o},e)};renderVirtualizedItem=({index:e,style:t})=>(0,r.jsx)(a._l,{draggableId:String(e),index:e,children:n=>this.renderItem({index:e,style:t,provided:n})},`item-key-${e}`);renderFilter(){const{size:e,filterable:t,filter:n=this.state.filter,filterPlaceholder:i,filterClassName:o="",autoFocus:s}=this.props;return t?(0,r.jsx)("div",{className:y("filter",o),children:(0,r.jsx)(u.oi,{controlRef:this.refFilter,size:e,placeholder:i,value:n,hasClear:!0,onUpdate:this.onFilterUpdate,autoFocus:s})}):null}renderSimpleContainer(){const{sortable:e}=this.props,t=this.getItemsWithLoading();return e?(0,r.jsx)(a.Z5,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd,children:(0,r.jsx)(a.bK,{droppableId:"droppable",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging}),children:e=>(0,r.jsx)(g._j,{ref:this.refContainer,itemCount:t.length,provided:e,onScrollToItem:this.props.onScrollToItem,children:t.map(((e,t)=>(0,r.jsx)(a._l,{draggableId:String(t),index:t,children:(e,n)=>this.renderItem({index:t,isDragging:n.isDragging,provided:e,height:this.getItemHeight(t)})},`item-key-${t}`)))})})}):(0,r.jsx)(g._j,{itemCount:t.length,ref:this.refContainer,onScrollToItem:this.props.onScrollToItem,children:t.map(((e,t)=>this.renderItem({index:t,height:this.getItemHeight(t)})))})}renderVirtualizedContainer(){const e=[...this.getItemsWithLoading()];return this.props.sortable?(0,r.jsx)(a.Z5,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd,children:(0,r.jsx)(a.bK,{droppableId:"droppable",mode:"virtual",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging}),children:t=>(0,r.jsx)(l.ZP,{children:({width:n,height:i})=>(0,r.jsx)(w,{ref:this.refContainer,outerRef:t.innerRef,width:n,height:i,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem,children:this.renderVirtualizedItem})})})}):(0,r.jsx)(l.ZP,{children:({width:t,height:n})=>(0,r.jsx)(w,{ref:this.refContainer,width:t,height:n,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem,children:this.renderItem})})}renderItems(){return this.props.virtualized?this.renderVirtualizedContainer():this.renderSimpleContainer()}filterItem=e=>t=>String(t).includes(e);getFilter(){const{filter:e=this.state.filter}=this.props;return e}getItemsStyle(){let{itemsHeight:e}=this.props;return"function"==typeof e&&(e=e(this.state.items)),e?{height:e}:void 0}scrollToIndex=e=>{const t=this.refContainer.current;t&&t.scrollToItem(e)};deactivate=()=>{this.blurTimer&&(this.blurTimer=null,this.props.deactivateOnLeave&&this.setState({activeItem:void 0}))};handleKeyMove(e,t,n=0){const{activeItem:r=n}=this.state;e.preventDefault();const i=this.getItemsWithLoading();this.activateItem(x.findNextIndex(i,r+t,Math.sign(t)))}handleFocus=()=>{this.blurTimer&&(clearTimeout(this.blurTimer),this.blurTimer=null)};handleBlur=()=>{this.blurTimer||(this.blurTimer=setTimeout(this.deactivate,50))};onUpdateFilterInternal=e=>{const{items:t,filterItem:n=this.filterItem,onFilterEnd:r}=this.props;this.setState({filter:e,items:e?t.filter(n(e)):t},(()=>{r&&r({items:this.state.items})}))};onFilterUpdate=e=>{this.props.onFilterUpdate?this.props.onFilterUpdate(e):this.onUpdateFilterInternal(e)};onItemsRendered=({visibleStartIndex:e,visibleStopIndex:t})=>{this.setState({pageSize:t-e})};onItemActivate=e=>{this.state.sorting||this.activateItem(e,!1)};onMouseLeave=()=>{this.handleBlur()};onSortStart=()=>{this.setState({sorting:!0})};onSortEnd=e=>{if(!e.destination)return void this.setState({sorting:!1});if(e.source.index===e.destination.index)return void this.setState({sorting:!1});const t=e.source.index,n=e.destination.index;this.props.onSortEnd&&this.props.onSortEnd({oldIndex:t,newIndex:n});const r=((e,t,n)=>{const r=Array.from(e),[i]=r.splice(t,1);return r.splice(n,0,i),r})(this.getItems(),t,n);this.setState({activeItem:n,items:r,sorting:!1})};getItemHeight=e=>{const{itemHeight:t}=this.props;if("function"==typeof t){const{items:n}=this.state;return t(n[e],e)}return t};getVirtualizedItemHeight=e=>this.getItemHeight(e)||28}n(19254)},174:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(52322);const i=(0,n(89393).Ge)("loader");function o({size:e="s",className:t,qa:n}){return(0,r.jsxs)("div",{className:i({size:e},t),"data-qa":n,children:[(0,r.jsx)("div",{className:i("left")}),(0,r.jsx)("div",{className:i("center")}),(0,r.jsx)("div",{className:i("right")})]})}},59184:(e,t,n)=>{"use strict";n.d(t,{a:()=>r.a});var r=n(174)},55642:(e,t,n)=>{"use strict";n.d(t,{u:()=>x});var r=n(52322),i=n(2784),o=n(87578),s=n(65712),a=n(60805),l=n(26256),c=n(18399),u=n(94338),d=n(89393),h=n(31984),p=n(82060),f=n(97777),m=n(60586),g=n(76353);const v=(0,f.e)({en:m,ru:g},"Modal"),y=(0,d.Ge)("modal"),b=150;function w({open:e=!1,onOpenChange:t,keepMounted:n=!1,disableBodyScrollLock:d=!1,disableEscapeKeyDown:f,disableOutsideClick:m,initialFocus:g,returnFocus:w,disableVisuallyHiddenDismiss:x,onEscapeKeyDown:_,onOutsideClick:C,onClose:E,onEnterKeyDown:S,onTransitionIn:k,onTransitionInComplete:N,onTransitionOut:R,onTransitionOutComplete:I,children:M,style:A,contentOverflow:O="visible",className:T,contentClassName:z,container:D,qa:j,floatingRef:P,disableHeightTransition:L=!1,...F}){(0,p.sJ)({open:e,type:"modal"});const B=i.useCallback(((e,n,r)=>{if(t?.(e,n,r),e||!n)return;let i;i="escape-key"===r?"escapeKeyDown":"outside-press"===r?"outsideClick":r,"escapeKeyDown"===i&&_&&_(n),"outsideClick"===i&&C&&C(n),E?.(n,i)}),[t,_,C,E]),U=(0,o.jV)(),{refs:W,elements:V,context:H}=(0,o.YF)({nodeId:U,open:e,onOpenChange:B}),Z=(0,l.cR)(W.setFloating,P),Y=(0,o.bQ)(H,{enabled:!m||!f,outsidePress:!m,escapeKey:!f}),G=(0,o.qs)(H,{role:"dialog"}),{getFloatingProps:q}=(0,o.NI)([Y,G]),{isMounted:$,status:X}=(0,o.hU)(H,{duration:b}),K=(0,c.D9)(X);(0,c.kx)({ref:W.floating,enabled:"open"===X&&!L}),i.useEffect((()=>{"initial"===X&&"unmounted"===K&&k?.(),"close"===X&&"open"===K&&R?.(),"unmounted"===X&&"close"===K&&I?.()}),[K,X,k,R,I]);const J=i.useCallback((e=>{"open"===X&&"transform"===e.propertyName&&e.target===V.floating&&N?.()}),[X,N,V.floating]),Q=i.useCallback((e=>{if(!S||e.key!==a.V.ENTER||e.defaultPrevented)return;const t=V.floating;if(!t)return;const n=e.nativeEvent.composedPath(),r=n.indexOf(t),i=r<0?n:n.slice(0,r),o=i.findIndex((e=>e?.hasAttribute("data-floating-ui-focusable")));if(o<0)return void S(e.nativeEvent);i.slice(0,o).some((e=>(0,s.Wq)(e)))||S(e.nativeEvent)}),[V.floating,S]);return(0,r.jsx)(o.mN,{id:U,children:$||n?(0,r.jsx)(u.h,{container:D,children:(0,r.jsx)(o.y0,{style:A,className:y({open:e},T),"data-qa":j,"data-floating-ui-status":X,lockScroll:!d,children:(0,r.jsx)("div",{className:y("content-aligner"),children:(0,r.jsx)("div",{className:y("content-wrapper"),children:(0,r.jsx)(o.wD,{context:H,disabled:!$,modal:$,initialFocus:g??W.floating,returnFocus:w,visuallyHiddenDismiss:!x&&v("close"),restoreFocus:!0,children:(0,r.jsx)("div",{...(0,h.z)(F,{labelable:!0}),className:y("content",{"has-scroll":"auto"===O},z),ref:Z,...q({onTransitionEnd:J,onKeyDown:Q}),children:M})})})})})}):null})}function x(e){return null===(0,o.Zm)()?(0,r.jsx)(o.RB,{children:(0,r.jsx)(w,{...e})}):(0,r.jsx)(w,{...e})}},40387:(e,t,n)=>{"use strict";n.d(t,{G:()=>E});var r=n(52322),i=n(2784),o=n(87578),s=n(92416),a=n(42943),l=n(26256),c=n(18399),u=n(94338),d=n(89393),h=n(31984),p=n(82060);const f=(0,d.Ge)("popup"),m=i.forwardRef((function({styles:e},t){return(0,r.jsx)("div",{ref:t,className:f("arrow"),style:e,children:(0,r.jsxs)("div",{className:f("arrow-content"),children:[(0,r.jsx)("div",{className:f("arrow-circle-wrapper"),children:(0,r.jsx)("div",{className:f("arrow-circle",{left:!0})})}),(0,r.jsx)("div",{className:f("arrow-circle-wrapper"),children:(0,r.jsx)("div",{className:f("arrow-circle",{right:!0})})})]})})}));var g=n(2999),v=n(97777),y=n(75315),b=n(6038);const w=(0,v.e)({en:y,ru:b},"Popup");var x=n(38195);const _=(0,d.Ge)("popup");function C({keepMounted:e=!1,hasArrow:t=!1,open:n=!1,onOpenChange:d,strategy:f,placement:v,offset:y=4,anchorElement:b,anchorRef:C,floatingMiddlewares:E,floatingContext:S,floatingInteractions:k,floatingRef:N,floatingStyles:R,floatingClassName:I,modal:M=!1,initialFocus:A,returnFocus:O=!0,focusOrder:T,disableVisuallyHiddenDismiss:z=!M,onClose:D,onEscapeKeyDown:j,onOutsideClick:P,disableEscapeKeyDown:L=!1,disableOutsideClick:F=!1,disableFocusOut:B=!1,style:U,className:W,children:V,disablePortal:H=!1,disableLayer:Z=!1,disableTransition:Y=!1,qa:G,role:q,zIndex:$=1e3,onTransitionIn:X,onTransitionOut:K,onTransitionInComplete:J,onTransitionOutComplete:Q,...ee}){(0,p.sJ)({open:n,type:"popup",enabled:!Z});const te=i.useRef(null),[ne,re]=i.useState(null),{offset:ie}=(0,x._6)(y,t),{placement:oe,middleware:se}=(0,x.H5)(v,H),ae=i.useCallback(((e,t,n)=>{if(d?.(e,t,n),e||!t)return;let r;r="escape-key"===n?"escapeKeyDown":"outside-press"===n?"outsideClick":n,"escapeKeyDown"===r&&j&&j(t),"outsideClick"===r&&P&&P(t),D?.(t,r)}),[d,D,j,P]),le=(0,o.jV)(),{refs:ce,elements:ue,floatingStyles:de,placement:he,middlewareData:pe,context:fe,update:me}=(0,o.YF)({rootContext:S,nodeId:le,strategy:f,placement:oe,open:n,onOpenChange:ae,middleware:E??[(0,s.cv)(ie),(0,s.uY)({padding:g.yY,limiter:(0,s.dr)({offset:4+(t?18:0)}),altBoundary:H}),se,t&&(0,s.x7)({element:ne,padding:4}),t&&(0,x._V)()]});i.useEffect((()=>{const e=void 0===b?C?.current:b;void 0!==e&&e!==ce.reference.current&&ce.setReference(e)}),[b,C,ce]);const ge=(0,o.qs)(fe,{enabled:Boolean(q||M),role:q??(M?"dialog":void 0)}),ve=(0,o.bQ)(fe,{enabled:!F||!L,outsidePress:!F,escapeKey:!L}),{getFloatingProps:ye}=(0,o.NI)(k??[ge,ve]),{isMounted:be,status:we}=(0,o.hU)(fe,{duration:Y?0:g.CT}),xe=(0,c.D9)(we);i.useEffect((()=>{if(be&&ue.reference&&ue.floating)return(0,a.Me)(ue.reference,ue.floating,me)}),[be,ue,me]);const _e=(0,l.cR)(ce.setFloating,N),Ce=i.useCallback((e=>{"open"===we&&"transform"===e.propertyName&&J?.()}),[we,J]);i.useEffect((()=>{"initial"===we&&"unmounted"===xe&&X?.(),"close"===we&&"open"===xe&&K?.(),"unmounted"===we&&"close"===xe&&Q?.()}),[we,xe,X,K,Q]);let Ee=A;return void 0===Ee&&(Ee=M?ce.floating:-1),(0,r.jsx)(o.mN,{id:le,children:be||e?(0,r.jsx)(u.h,{disablePortal:H,children:(0,r.jsx)(o.wD,{context:fe,disabled:!be,modal:M,initialFocus:Ee,returnFocus:O,closeOnFocusOut:!B,visuallyHiddenDismiss:!z&&w("close"),guards:M||!H,order:T,children:(0,r.jsx)("div",{ref:_e,className:I,style:{position:"absolute",top:0,left:0,zIndex:$,width:"max-content",pointerEvents:be?"auto":"none",outline:"none",...de,...R},"data-floating-ui-placement":he,"data-floating-ui-status":we,"aria-modal":!(!M||!be)||void 0,...ye({onTransitionEnd:Ce}),children:(0,r.jsxs)("div",{ref:te,className:_({open:be,"disable-transition":Y},W),style:U,"data-qa":G,...(0,h.z)(ee),children:[t&&(0,r.jsx)(m,{ref:re,styles:pe.arrowStyles}),V]})})})}):null})}function E(e){return null===(0,o.Zm)()?(0,r.jsx)(o.RB,{children:(0,r.jsx)(C,{...e})}):(0,r.jsx)(C,{...e})}},23940:(e,t,n)=>{"use strict";n.d(t,{h:()=>u});var r=n(52322),i=n(2784),o=n(87578),s=n(26256),a=n(45597),l=n(55337);const c=(0,n(89393).Ge)("portal");function u({container:e,children:t,disablePortal:n}){const u=(0,s.Xw)(),{scoped:d}=(0,l.T)(),h=e??u;return n?(0,r.jsx)(i.Fragment,{children:t}):h?(0,r.jsx)(o.ll,{root:h,children:d?(0,r.jsx)(a.f6,{rootClassName:c("theme-wrapper"),scoped:!0,children:t}):t}):null}},94338:(e,t,n)=>{"use strict";n.d(t,{h:()=>r.h});var r=n(23940)},81874:(e,t,n)=>{"use strict";n.d(t,{e:()=>c});var r=n(52322),i=n(2784),o=n(18399),s=n(89393),a=n(23565);const l=(0,s.Ge)("segmented-radio-group"),c=i.forwardRef((function(e,t){const{size:n="m",width:s,style:c,className:u,qa:d,children:h}=e;let p=e.options;p||(p=i.Children.toArray(h).map((({props:e})=>({value:e.value,content:e.content||e.children,disabled:e.disabled,title:e.title}))));const{containerProps:f,optionsProps:m}=(0,o.ar)({...e,options:p});return(0,r.jsx)("div",{...f,ref:t,style:c,className:l({size:n,width:s},u),"data-qa":d,children:m.map((e=>(0,i.createElement)(a.b,{...e,key:e.value})))})}));c.Option=a.b},41543:(e,t,n)=>{"use strict";n.d(t,{Ph:()=>y});var r=n(52322),i=n(2784),o=n(60805),s=n(26256),a=n(21852),l=n(24309),c=n(72719),u=n(31984),d=n(1899),h=n(8478),p=n(42513),f=n(75165),m=n(17263),g=n(41451);const v=({renderFilter:e,renderList:t})=>(0,r.jsxs)(i.Fragment,{children:[e(),t()]}),y=i.forwardRef((function(e,t){const{onUpdate:n,onOpenChange:m,onFilterChange:y,renderControl:b,renderFilter:w,renderOption:x,renderOptionGroup:_,renderSelectedOption:C,renderEmptyOptions:E,renderPopup:S=v,getOptionHeight:k,getOptionGroupHeight:N,filterOption:R,name:I,form:M,className:A,controlClassName:O,popupClassName:T,qa:z,value:D,defaultValue:j,defaultOpen:P,open:L,label:F,placeholder:B,filterPlaceholder:U,width:W,popupWidth:V,popupPlacement:H,error:Z,virtualizationThreshold:Y=h._7,view:G="normal",size:q="m",pin:$="round-round",multiple:X=!1,disabled:K=!1,filterable:J=!1,filter:Q,disablePortal:ee,hasClear:te=!1,onClose:ne,id:re,hasCounter:ie,renderCounter:oe,title:se}=e,ae=(0,c.XA)(),[le,ce]=(0,s.zk)(Q,"",y),ue=i.useRef(null),de=i.useRef(null),he=i.useRef(null),pe=i.useRef(null),fe=(0,s.cR)(t,de),{value:me,open:ge,toggleOpen:ve,setValue:ye,handleSelection:be,handleClearValue:we}=(0,s.L7)({onUpdate:n,value:D,defaultValue:j,defaultOpen:P,multiple:X,open:L,onClose:ne,onOpenChange:m,disabled:K});i.useEffect((()=>{!ge&&J&&ae&&setTimeout((()=>{ce("")}),300)}),[ge,J,ce,ae]);const xe=e.options||(0,g.DA)(e.children),_e=(0,f.n)({options:xe,filter:le,filterable:J,filterOption:R}),Ce=(0,f.V)(_e),Ee=(0,g.Df)(_e,me,C),Se=Ce.length>=Y,{errorMessage:ke,errorPlacement:Ne,validationState:Re}=(0,l.II)({error:Z,errorMessage:e.errorMessage,errorPlacement:e.errorPlacement||"outside",validationState:e.validationState}),Ie=(0,s.uR)(),Me="invalid"===Re,Ae=Me&&Boolean(ke)&&"outside"===Ne,Oe=Me&&Boolean(ke)&&"inside"===Ne,Te=i.useCallback((e=>{if(e&&!e?.disabled&&!("label"in e)){if(X){const e=pe?.current?.getActiveItem();ae||he.current?.focus(),"number"==typeof e&&setTimeout((()=>{pe?.current?.activateItem(e,!0)}),50)}be(e)}}),[be,ae,X]),ze=i.useCallback((e=>{[o.V.ENTER,o.V.SPACEBAR].includes(e.key)&&ge&&(e.preventDefault(),e.key===o.V.SPACEBAR&&Te((0,g.CL)(pe))),[o.V.ARROW_DOWN,o.V.ARROW_UP].includes(e.key)&&!ge&&(e.preventDefault(),ve()),e.key===o.V.ESCAPE&&ge&&ve(!1),pe?.current?.onKeyDown(e)}),[Te,ge,ve]),De=i.useCallback((e=>{pe?.current?.onKeyDown(e)}),[]),je=i.useCallback((e=>{if(e){const t=(0,g.PB)(e,(0,g.qZ)(pe));"number"==typeof t&&-1!==t&&pe?.current?.activateItem(t,!0)}}),[]);(0,p.e)({onChange:je,open:ge,disabled:J});const Pe={..."max"===W&&{width:W}},Le={};"number"==typeof W&&(Le.width=W);const Fe=i.useCallback((()=>ve(!1)),[ve]),{onFocus:Be,onBlur:Ue}=e,{focusWithinProps:We}=(0,s.L_)({onFocusWithin:Be,onBlurWithin:i.useCallback((e=>{Ue?.(e),ae||Fe()}),[Fe,ae,Ue])}),Ve=(0,s.uR)(),He=re??Ve,Ze=`select-popup-${He}`,[Ye,Ge]=(0,p.i)({options:Ce,open:ge,value:me});return(0,r.jsxs)("div",{ref:ue,className:(0,h.sj)(Pe,A),...We,style:Le,tabIndex:-1,children:[(0,r.jsx)(d.Yw,{...(0,u.z)(e,{labelable:!0}),toggleOpen:ve,hasClear:te,clearValue:we,ref:fe,className:O,qa:z,view:G,size:q,pin:$,label:F,placeholder:B,selectedOptionsContent:Ee,isErrorVisible:Me,errorMessage:Oe?ke:void 0,open:ge,disabled:K,onKeyDown:ze,renderControl:b,value:me,popupId:Ze,selectId:He,activeIndex:Ye,hasCounter:X&&ie,renderCounter:oe,title:se}),(0,r.jsx)(d.hs,{ref:ue,className:T,controlRef:de,width:V,open:ge,handleClose:Fe,disablePortal:ee,virtualized:Se,mobile:ae,placement:H,onAfterOpen:J?()=>{he.current?.focus()}:void 0,onAfterClose:J?()=>{ce("")}:void 0,children:S({renderFilter:()=>J?(0,r.jsx)(d.zZ,{ref:he,size:q,value:le,placeholder:U,onChange:ce,onKeyDown:De,renderFilter:w,popupId:Ze,activeIndex:Ye}):null,renderList:()=>Ce.length||e.loading?(0,r.jsx)(d.EI,{ref:pe,size:q,value:me,mobile:ae,flattenOptions:Ce,multiple:X,virtualized:Se,onOptionClick:Te,renderOption:x,renderOptionGroup:_,getOptionHeight:k,getOptionGroupHeight:N,loading:e.loading,onLoadMore:e.onLoadMore,id:Ze,activeIndex:Ye,onChangeActive:Ge}):(0,r.jsx)(d.TT,{filter:le,renderEmptyOptions:E})})}),(0,r.jsx)(a.Z,{errorMessage:Ae?ke:null,errorMessageId:Ie}),(0,r.jsx)(d.MG,{name:I,value:me,disabled:K,form:M,onReset:ye})]})}));y.Option=m.W,y.OptionGroup=m.Y},47376:(e,t,n)=>{"use strict";n.d(t,{y:()=>m});var r=n(52322),i=n(2784),o=n(87578),s=n(23940),a=n(72719),l=n(38132);const c=(0,n(89393).Ge)("sheet"),u="sheet-veil";var d=n(85842);let h=[];class p extends i.Component{static defaultProps={id:"sheet",allowHideOnContentScroll:!0};veilRef=i.createRef();sheetRef=i.createRef();sheetTopRef=i.createRef();sheetMarginBoxRef=i.createRef();sheetScrollContainerRef=i.createRef();velocityTracker=new d.H;observer=null;resizeWindowTimer=null;state={startScrollTop:0,startY:0,deltaY:0,prevSheetHeight:0,swipeAreaTouched:!1,contentTouched:!1,veilTouched:!1,isAnimating:!1,inWindowResizeScope:!1,delayedResize:!1};componentDidMount(){this.addListeners(),this.show();const e=this.getAvailableContentHeight(this.sheetContentHeight);this.setInitialStyles(e),this.setState({prevSheetHeight:e})}componentDidUpdate(e){const{visible:t,location:n}=this.props;!e.visible&&t&&this.show(),(e.visible&&!t||this.shouldClose(e))&&this.hide(),e.location.pathname!==n.pathname&&(h=[])}componentWillUnmount(){this.removeListeners()}render(){const{content:e,contentClassName:t,swipeAreaClassName:n,hideTopBar:o,title:s}=this.props,{deltaY:a,swipeAreaTouched:l,contentTouched:d,veilTouched:h}=this.state,p={"with-transition":!a||h},f={"with-transition":p["with-transition"]},m={"without-scroll":a>0&&d||l},g={"always-full-height":this.props.alwaysFullHeight};return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("div",{ref:this.veilRef,className:c("veil",p),onClick:this.onVeilClick,onTransitionEnd:this.onVeilTransitionEnd,role:"presentation","data-qa":u}),(0,r.jsxs)("div",{ref:this.sheetRef,className:c("sheet",f),role:"dialog","aria-modal":"true","aria-label":s,children:[!o&&(0,r.jsx)("div",{ref:this.sheetTopRef,className:c("sheet-top"),children:(0,r.jsx)("div",{className:c("sheet-top-resizer")})}),(0,r.jsx)("div",{className:c("sheet-swipe-area",n),onTouchStart:this.onSwipeAreaTouchStart,onTouchMove:this.onSwipeAriaTouchMove,onTouchEnd:this.onSwipeAriaTouchEnd}),(0,r.jsx)("div",{ref:this.sheetScrollContainerRef,className:c("sheet-scroll-container",m),onTouchStart:this.onContentTouchStart,onTouchMove:this.onContentTouchMove,onTouchEnd:this.onContentTouchEnd,onTransitionEnd:this.onContentTransitionEnd,children:(0,r.jsx)("div",{ref:this.sheetMarginBoxRef,className:c("sheet-margin-box",g),children:(0,r.jsx)("div",{className:c("sheet-margin-box-border-compensation"),children:(0,r.jsxs)("div",{className:c("sheet-content",t),children:[s&&(0,r.jsx)("div",{className:c("sheet-content-title"),children:s}),e]})})})})]})]})}get veilOpacity(){return this.veilRef.current?.style.opacity||0}get sheetTopHeight(){return this.sheetTopRef.current?.getBoundingClientRect().height||0}get sheetHeight(){return this.sheetRef.current?.getBoundingClientRect().height||0}get sheetScrollTop(){return this.sheetScrollContainerRef.current?.scrollTop||0}get sheetContentHeight(){return this.sheetMarginBoxRef.current?.getBoundingClientRect().height||0}setInitialStyles(e){this.sheetScrollContainerRef.current&&this.sheetMarginBoxRef.current&&(this.sheetScrollContainerRef.current.style.height=`${e}px`)}setStyles=({status:e,deltaHeight:t=0})=>{if(!this.sheetRef.current||!this.veilRef.current)return;const n=this.sheetHeight-t,r="showing"===e?`translate3d(0, -${n}px, 0)`:"translate3d(0, 0, 0)";let i=0;"showing"===e&&(i=0===t?1:n/this.sheetHeight),this.veilRef.current.style.opacity=String(i),this.sheetRef.current.style.transform=r};getAvailableContentHeight=e=>{let t=.9;"number"==typeof this.props.maxContentHeightCoefficient&&this.props.maxContentHeightCoefficient>=0&&this.props.maxContentHeightCoefficient<=1?t=this.props.maxContentHeightCoefficient:"number"==typeof this.props.maxContentHeightCoefficient&&(0,l.O)('[Sheet] The value of the "maxContentHeightCoefficient" property must be between 0 and 1');const n=window.innerHeight*t-this.sheetTopHeight;if(this.props.alwaysFullHeight)return n;return e>=n?n:e};show=()=>{this.setState({isAnimating:!0},(()=>{this.setStyles({status:"showing"}),this.setHash()}))};hide=()=>{this.setState({isAnimating:!0},(()=>{this.setStyles({status:"hiding"}),this.removeHash()}))};onSwipeAreaTouchStart=e=>{this.velocityTracker.clear(),this.setState({startY:e.nativeEvent.touches[0].clientY,swipeAreaTouched:!0})};onContentTouchStart=e=>{this.props.allowHideOnContentScroll&&!this.state.swipeAreaTouched&&(this.velocityTracker.clear(),this.setState({startY:e.nativeEvent.touches[0].clientY,startScrollTop:this.sheetScrollTop,contentTouched:!0}))};onSwipeAriaTouchMove=e=>{const t=e.nativeEvent.touches[0].clientY-this.state.startY;this.velocityTracker.addMovement({x:e.nativeEvent.touches[0].clientX,y:e.nativeEvent.touches[0].clientY}),this.setState({deltaY:t}),t<=0||this.setStyles({status:"showing",deltaHeight:t})};onContentTouchMove=e=>{if(!this.props.allowHideOnContentScroll)return;if(!this.state.startY)return void this.onContentTouchStart(e);const{startScrollTop:t,swipeAreaTouched:n}=this.state;if(n||this.sheetScrollTop>0||t>0&&t!==this.sheetScrollTop)return;const r=e.nativeEvent.touches[0].clientY-this.state.startY;this.velocityTracker.addMovement({x:e.nativeEvent.touches[0].clientX,y:e.nativeEvent.touches[0].clientY}),r<=0?this.setState({deltaY:0}):(this.setState({deltaY:r}),this.setStyles({status:"showing",deltaHeight:r}))};onTouchEndAction=e=>{const t=this.velocityTracker.getYAcceleration();this.sheetHeight<=e?this.props.hideSheet():e>50&&t<=.08&&t>=-.02||t>.08?this.hide():0!==e&&this.show()};onSwipeAriaTouchEnd=()=>{const{deltaY:e}=this.state;this.onTouchEndAction(e),this.setState({startY:0,deltaY:0,swipeAreaTouched:!1})};onContentTouchEnd=()=>{const{deltaY:e,swipeAreaTouched:t}=this.state;this.props.allowHideOnContentScroll&&!t&&(this.onTouchEndAction(e),this.setState({startY:0,deltaY:0,contentTouched:!1}))};onVeilClick=()=>{this.state.isAnimating||(this.setState({veilTouched:!0}),this.hide())};onVeilTransitionEnd=()=>{this.setState({isAnimating:!1}),"0"!==this.veilOpacity?this.state.delayedResize&&(this.onResizeWindow(),this.setState({delayedResize:!1})):this.props.hideSheet()};onContentTransitionEnd=e=>{"height"===e.propertyName&&this.sheetScrollContainerRef.current&&(this.sheetScrollContainerRef.current.style.transition="none")};onResizeWindow=()=>{this.state.isAnimating?this.setState({delayedResize:!0}):(this.setState({inWindowResizeScope:!0}),this.resizeWindowTimer&&window.clearTimeout(this.resizeWindowTimer),this.resizeWindowTimer=window.setTimeout((()=>{this.onResize()}),50))};onResize=()=>{if(!this.sheetRef.current||!this.sheetScrollContainerRef.current)return;const e=this.sheetContentHeight;if(e===this.state.prevSheetHeight&&!this.state.inWindowResizeScope)return;const t=this.getAvailableContentHeight(e);this.sheetScrollContainerRef.current.style.transition=this.state.prevSheetHeight>e?"height 0s ease 0.3s":"none",this.sheetScrollContainerRef.current.style.height=`${t}px`,this.sheetRef.current.style.transform=`translate3d(0, -${t+this.sheetTopHeight}px, 0)`,this.setState({prevSheetHeight:e,inWindowResizeScope:!1})};addListeners(){window.addEventListener("resize",this.onResizeWindow),this.sheetMarginBoxRef.current&&(this.observer=new ResizeObserver((()=>{this.state.inWindowResizeScope||this.onResize()})),this.observer.observe(this.sheetMarginBoxRef.current))}removeListeners(){window.removeEventListener("resize",this.onResizeWindow),this.observer&&this.observer.disconnect()}setHash(){const{id:e,platform:t,location:n,history:r}=this.props;if(t===a.t4.BROWSER)return;const i={...n,hash:e};switch(t){case a.t4.IOS:n.hash&&h.push(n.hash),r.replace(i);break;case a.t4.ANDROID:r.push(i)}}removeHash(){const{id:e,platform:t,location:n,history:r}=this.props;if(t!==a.t4.BROWSER&&n.hash===`#${e}`)switch(t){case a.t4.IOS:r.replace({...n,hash:h.pop()??""});break;case a.t4.ANDROID:r.goBack()}}shouldClose(e){const{id:t,platform:n,location:r,history:i}=this.props;return n!==a.t4.BROWSER&&"POP"===i.action&&e.location.hash!==r.hash&&r.hash!==`#${t}`}}const f=(0,a.ze)(function(e){const t=t=>{const{useHistory:n,useLocation:i,...o}=t;return(0,r.jsx)(e,{...o,history:n(),location:i()})},n=e.displayName||e.name||"Component";return t.displayName=`withRouterWrapper(${n})`,t}(p)),m=({children:e,onClose:t,visible:n,id:a,title:l,className:u,contentClassName:d,swipeAreaClassName:h,allowHideOnContentScroll:p,hideTopBar:m,maxContentHeightCoefficient:g,alwaysFullHeight:v,qa:y})=>{const[b,w]=i.useState(n),[x,_]=i.useState(n);!x&&n&&w(!0),n!==x&&_(n);return b?(0,r.jsx)(s.h,{children:(0,r.jsx)(o.y0,{"data-qa":y,className:c(null,u),lockScroll:b,style:{overflow:void 0},children:(0,r.jsx)(f,{id:a,content:e,contentClassName:d,swipeAreaClassName:h,title:l,visible:n,allowHideOnContentScroll:p,hideTopBar:m,hideSheet:()=>{t&&t(),w(!1)},maxContentHeightCoefficient:g,alwaysFullHeight:v})})}):null}},18738:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});var r=n(52322);const i=(0,n(89393).Ge)("skeleton");function o({className:e,style:t,qa:n,animation:o="gradient"}){return(0,r.jsx)("div",{className:i({animation:o},e),style:t,"data-qa":n})}},1790:(e,t,n)=>{"use strict";n.d(t,{i:()=>f});var r=n(52322),i=n(2784),o=n(26256),s=n(18399),a=n(45597),l=n(89393),c=n(31984),u=n(66292),d=n(64215),h=n(68372);const p=(0,l.Ge)("slider"),f=i.forwardRef((function({value:e,defaultValue:t,size:n="m",min:l=0,max:f=100,step:m=1,markFormat:g,marks:v=2,tooltipDisplay:y,tooltipFormat:b=g,errorMessage:w,validationState:x,disabled:_=!1,startPoint:C,onBlur:E,onUpdate:S,onUpdateComplete:k,onFocus:N,autoFocus:R=!1,tabIndex:I,className:M,style:A,qa:O,apiRef:T,"aria-label":z,"aria-labelledby":D,name:j,form:P,...L},F){const B=(0,a.gm)(),U=(0,h.M)({defaultValue:t,max:f,min:l,step:m,value:e,markFormat:g,marks:v,tooltipDisplay:y,tooltipFormat:b,startPoint:C}),[W,V]=(0,o.zk)(U.value,U.defaultValue,S),H=i.useCallback((e=>{V(e),k?.(e)}),[k,V]),Z=(0,s.qt)({initialValue:W,onReset:H}),Y={size:n,error:"invalid"===x&&!_,disabled:_,"tooltip-display":U.tooltipDisplay,rtl:"rtl"===B,"no-marks":Array.isArray(v)?0===v.length:0===v};return(0,r.jsxs)("div",{...(0,c.z)(L),className:p(null,M),style:A,ref:F,children:[(0,r.jsx)("div",{className:p("top",{size:n,"tooltip-display":y})}),(0,r.jsx)(u.y,{ref:T,value:W,min:U.min,max:U.max,step:U.step,range:U.range,disabled:_,marks:U.marks,startPoint:U.startPoint,onBlur:E,onFocus:N,onChange:V,onChangeComplete:k,stateModifiers:Y,autoFocus:R,tabIndex:I,"data-qa":O,handleRender:(e,t)=>{const n="off"===U.tooltipDisplay?e:(0,r.jsx)(d.N,{originHandle:e,originHandleProps:t,stateModifiers:Y,className:p("tooltip"),tooltipFormat:U.tooltipFormat});return(0,r.jsxs)(i.Fragment,{children:[n,(0,r.jsx)("input",{ref:Z,type:"hidden",name:j,form:P,value:t.value,disabled:_})]})},reverse:Y.rtl,ariaLabelForHandle:z,ariaLabelledByForHandle:D}),Y.error&&w&&(0,r.jsx)("div",{className:p("error",{size:n}),children:w})]})}))},26902:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var r=n(52322),i=n(2784);const o=(0,n(89393).Ge)("spin"),s=i.forwardRef((function(e,t){const{size:n="m",style:i,className:s,qa:a}=e;return(0,r.jsx)("div",{ref:t,style:i,className:o({size:n},s),"data-qa":a,children:(0,r.jsx)("div",{className:o("inner")})})}))},44943:(e,t,n)=>{"use strict";n.d(t,{r:()=>l});var r=n(52322),i=n(2784),o=n(18399),s=n(76115);const a=(0,n(89393).Ge)("switch"),l=i.forwardRef((function(e,t){const{size:n="m",disabled:i=!1,content:l,children:c,title:u,style:d,className:h,qa:p}=e,{checked:f,inputProps:m}=(0,o.O)({...e,controlProps:{...e.controlProps,role:"switch"}}),g=l||c,v=(0,r.jsxs)("span",{className:a("indicator"),children:[(0,r.jsx)("input",{...m,className:a("control")}),(0,r.jsx)("span",{className:a("outline")}),(0,r.jsx)("span",{className:a("slider")})]});return(0,r.jsx)(s.J,{ref:t,title:u,style:d,size:n,disabled:i,className:a({size:n,disabled:i,checked:f},h),labelClassName:a("text"),qa:p,control:v,children:g})}))},11814:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});var r=n(52322),i=n(2784),o=n(21850),s=n(7579);const a=i.forwardRef((function({as:e,children:t,variant:n,className:i,ellipsis:a,color:l,whiteSpace:c,wordBreak:u,ellipsisLines:d,style:h,qa:p,...f},m){const g=e||"span",v={...h};return"number"==typeof d&&(v.WebkitLineClamp=d),(0,r.jsx)(g,{ref:m,className:(0,s.f)({variant:n,ellipsis:a,whiteSpace:c,wordBreak:u,ellipsisLines:"number"==typeof d},l?(0,o.V)({color:l},i):i),style:v,"data-qa":p,...f,children:t})}));a.displayName="Text"},21850:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});const r=(0,n(89393).Ge)("color-text"),i=({color:e},t)=>r({color:e},t)},89318:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});const r=n(2784).createContext(null);r.displayName="ToasterContext"},83220:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});class r{listeners;constructor(){this.listeners=[]}destroy(){this.listeners=[]}subscribe(e){return"function"==typeof e&&this.listeners.push(e),()=>{this.listeners=this.listeners.filter((t=>e!==t))}}notify(e){if(0===this.listeners.length)return!1;for(const t of this.listeners)t(e);return!0}}function i(e,t){return e.findIndex((e=>e.name===t))}function o(e,t){return-1!==i(e,t)}function s(e,t){return o(e,t)?e.filter((e=>e.name!==t)):e}class a{hasUndelivered=!1;toasts=[];eventEmitter=new r;destroy(){this.removeAll(),this.eventEmitter.destroy()}add(e){let t=this.toasts;o(t,e.name)&&(t=s(t,e.name)),this.toasts=[...t,{...e,addedAt:Date.now(),ref:{current:null}}],this.notify()}remove(e){this.toasts=s(this.toasts,e),this.notify()}removeAll(){this.toasts=[],this.notify()}update(e,t){if(!o(this.toasts,e))return;const n=i(this.toasts,e);this.toasts=[...this.toasts.slice(0,n),{...this.toasts[n],...t},...this.toasts.slice(n+1)],this.notify()}has(e){return o(this.toasts,e)}subscribe(e){const t=this.eventEmitter.subscribe(e);return this.hasUndelivered&&this.notify(),t}notify(){const e=this.eventEmitter.notify(this.toasts);this.hasUndelivered=!e}}},54977:(e,t,n)=>{"use strict";n.d(t,{x7:()=>r.x,B1:()=>p,Nj:()=>m,Ps:()=>i.P});var r=n(83220),i=(n(92313),n(86846)),o=(n(3912),n(52322)),s=n(2784),a=n(94338),l=n(72719),c=n(89393),u=n(46070),d=n(82356);const h=(0,c.Ge)("toaster");function p({className:e,mobile:t,hasPortal:n=!0}){const r=(0,l.XA)(),{remove:c}=(0,i.P)(),p=s.useContext(u.i),f=(0,o.jsx)(d.w,{toasts:p,removeCallback:c,mobile:t??r});return n?(0,o.jsx)(a.h,{children:(0,o.jsx)("div",{className:h({mobile:t??r},e),"aria-live":"assertive",children:f})}):f}p.displayName="ToasterComponent";var f=n(89318);const m=({toaster:e,children:t})=>{const[n,r]=s.useState([]);return s.useEffect((()=>{const t=e.subscribe(r);return()=>{t()}}),[e]),(0,o.jsx)(f.R.Provider,{value:e,children:(0,o.jsx)(u.i.Provider,{value:n,children:t})})};m.displayName="ToasterProvider"},78567:(e,t,n)=>{"use strict";n.d(t,{u:()=>w});var r=n(52322),i=n(2784),o=n(87578),s=n(92416),a=n(42943),l=n(26256),c=n(2999),u=n(38195),d=n(94338),h=n(89393),p=n(31984),f=n(55635);const m=(0,h.Ge)("tooltip"),g=1e3,v=0,y="bottom",b=4;function w({children:e,open:t,onOpenChange:n,strategy:h,placement:w=y,offset:x=b,disabled:_,content:C,trigger:E,role:S="tooltip",openDelay:k=g,closeDelay:N=v,className:R,style:I,qa:M,...A}){const[O,T]=i.useState(null),{placement:z,middleware:D}=(0,u.H5)(w,!1),[j,P]=(0,l.zk)(t,!1,n),{refs:L,floatingStyles:F,context:B}=(0,o.YF)({open:j,onOpenChange:P,strategy:h,placement:z,middleware:[(0,s.cv)(x),(0,s.uY)({padding:c.yY,limiter:(0,s.dr)()}),D],whileElementsMounted:a.Me,elements:{reference:O}}),U=(0,o.XI)(B,{enabled:"focus"!==E,delay:{open:k,close:N},move:!1}),W=(0,o.KK)(B),V=(0,o.qs)(B,{role:S}),H=(0,o.bQ)(B,{outsidePress:!1}),{getReferenceProps:Z,getFloatingProps:Y}=(0,o.NI)([U,W,V,H]),G=(0,l.cR)(T,i.isValidElement(e)?(0,f.e)(e):void 0),q=i.isValidElement(e)?Z(e.props):Z(),$=i.isValidElement(e)?i.cloneElement(e,{...q,ref:G}):e(q,G);return(0,r.jsxs)(i.Fragment,{children:[$,j&&!_?(0,r.jsx)(d.h,{children:(0,r.jsx)("div",{ref:L.setFloating,style:{position:"absolute",top:0,left:0,zIndex:1e4,width:"max-content",...F},...Y(),children:(0,r.jsx)("div",{className:m(null,R),style:I,"data-qa":M,...(0,p.z)(A,{labelable:!0}),children:C})})}):null]})}},81975:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var r=n(52322),i=n(2784),o=n(26256),s=n(17680);const a=(0,n(89393).Ge)("tree-list"),l=({qa:e,id:t,size:n="m",className:l,list:c,multiple:u,containerRef:d,renderItem:h,renderContainer:p=s.Vm,onItemClick:f,mapItemDataToContentProps:m})=>{const g=(0,o.uR)(),v=t??g,y=i.useRef(null),b=d??y,w=i.useMemo((()=>{if(null===f)return;return(e,t)=>{const n={id:e.id,list:c};if(f)f?.(n,t);else{(0,s.VM)({list:c,multiple:u})(n,t)}}}),[f,c,u]);(0,s.Ct)({containerRef:b,onItemClick:w,list:c});return p({qa:e,id:`list-${v}`,size:n,containerRef:b,className:a(null,l),list:c,renderItem:(t,i,o)=>{const a=(0,s.Fn)({qa:e,id:t,size:n,multiple:u,mapItemDataToContentProps:m,onItemClick:w,list:c});return h?h({id:t,data:a.data,props:a.props,context:a.context,index:i,renderContainerProps:o,list:c}):(0,r.jsx)(s.Gp,{...a.props,...o})}})}},8273:(e,t,n)=>{"use strict";n.d(t,{K:()=>p});var r=n(52322),i=n(2784),o=n(26256),s=n(18399),a=n(89393),l=n(68808),c=n(21852),u=n(24309),d=n(77528);const h=(0,a.Ge)("text-area"),p=i.forwardRef((function(e,t){const{view:n="normal",size:a="m",pin:p="round-round",name:f,value:m,defaultValue:g,disabled:v,readOnly:y,hasClear:b=!1,error:w,errorMessage:x,validationState:_,autoComplete:C,id:E,tabIndex:S,style:k,className:N,qa:R,controlProps:I,note:M,onUpdate:A,onChange:O}=e,{errorMessage:T,validationState:z}=(0,u.II)({error:w,errorMessage:x,validationState:_}),[D,j]=(0,o.zk)(m,g??"",A),P=i.useRef(null),L=(0,s.qt)({initialValue:D,onReset:j}),F=(0,o.cR)(e.controlRef,P,L),[B,U]=i.useState(!1),W=(0,u.O_)(z),V=(0,o.uR)(),H="invalid"===z&&Boolean(T),Z=Boolean(b&&!v&&!y&&D),Y=E||V,G=(0,o.uR)(),q=(0,o.uR)(),$=[I?.["aria-describedby"],M?q:void 0,H?G:void 0].filter(Boolean).join(" "),X={id:Y,tabIndex:S,name:f,onChange(e){j(e.target.value),O&&O(e)},autoComplete:(0,u.xp)(C),controlProps:{...I,"aria-describedby":$||void 0,"aria-invalid":"invalid"===z||void 0}};return i.useEffect((()=>{const e=P.current;if(e){const t=e.scrollHeight>e.clientHeight;B!==t&&U(t)}}),[D,B]),(0,r.jsxs)("span",{ref:t,style:k,className:h({view:n,size:a,disabled:v,state:W,pin:"clear"===n?void 0:p,"has-clear":Z,"has-scrollbar":B},N),"data-qa":R,children:[(0,r.jsxs)("span",{className:h("content"),children:[(0,r.jsx)(d.N,{...e,...X,controlRef:F}),Z&&(0,r.jsx)(l.C,{className:h("clear",{size:a}),size:(0,l.X)(a),onClick:e=>{const t=P.current;if(t){t.focus();const n=Object.create(e);n.target=t,n.currentTarget=t,t.value="",O&&O(n)}j("")}})]}),(0,r.jsx)(c.Z,{errorMessage:H?T:null,errorMessageId:G,note:M,noteId:q})]})}))},22463:(e,t,n)=>{"use strict";n.d(t,{W0:()=>o.W,kC:()=>r.k,xu:()=>i.x});n(85457),n(91507);var r=n(48005),i=n(99629),o=(n(31359),n(87424));n(94737)},11662:(e,t,n)=>{"use strict";n.d(t,{J2:()=>b,mQ:()=>R});var r=n(52322),i=n(2784),o=n(28786),s=n(76272),a=n(16409),l=n(97120),c=n(31206),u=n(45597),d=n(38132),h=n(29557),p=n(18937),f=n(3907),m=n(63723),g=n(18081),v=n(53674),y=n(52191);const b=i.forwardRef((function({initialOpen:e=!1,disabled:t=!1,autoclosable:n=!0,openOnHover:b=!0,delayOpening:w,delayClosing:x,behavior:_=v.x.Delayed,placement:C,offset:E={},tooltipOffset:S,tooltipClassName:k,theme:N="info",size:R="s",hasArrow:I=!0,hasClose:M=!1,className:A,children:O,title:T,content:z,htmlContent:D,contentClassName:j,links:P,forceLinksAppearance:L=!1,tooltipActionButton:F,tooltipCancelButton:B,onOpenChange:U,onCloseClick:W,onClick:V,anchorRef:H,anchorElement:Z,strategy:Y,qa:G,disablePortal:q=!1,tooltipId:$,focusTrap:X,autoFocus:K,restoreFocusRef:J},Q){const ee=(0,u.gm)(),te=i.useRef(null),ne=i.useRef(!1),re=i.useRef(e),{isOpen:ie,closingTimeout:oe,openTooltip:se,openTooltipDelayed:ae,unsetOpeningTimeout:le,closeTooltip:ce,closeTooltipDelayed:ue,unsetClosingTimeout:de}=(0,y.y)({initialOpen:e,disabled:t,autoclosable:n,onOpenChange:U,delayOpening:w,delayClosing:x,behavior:_,shouldBeOpen:re}),he=i.useMemo((()=>C||("rtl"===ee?["left","bottom"]:["right","bottom"])),[ee,C]);i.useImperativeHandle(Q,(()=>({openTooltip:se,closeTooltip:ce})),[se,ce]);const pe=Boolean(T),fe=Boolean(H||Z),me=`popover-${$??""}-title-${(0,s.u)()}`,ge=(0,r.jsx)(c.G,{id:$,role:b?"tooltip":"dialog",strategy:Y,anchorElement:Z,anchorRef:H||te,className:(0,h.C)("tooltip",{theme:N,size:R,"with-close":M,"force-links-appearance":L},k),open:ie,placement:he,hasArrow:I,offset:S,onClose:fe?void 0:ce,qa:G?`${G}-tooltip`:"",disablePortal:q,initialFocus:K?0:void 0,modal:X,returnFocus:J,"aria-labelledby":T?me:void 0,children:(0,r.jsxs)(i.Fragment,{children:[T&&(0,r.jsx)("h3",{id:me,className:(0,h.C)("tooltip-title"),children:T}),(0,r.jsx)(f.V,{secondary:!!pe&&"announcement"!==N,content:z,htmlContent:D,className:j}),P&&(0,r.jsx)(m.y,{links:P}),(0,r.jsx)(p.E,{theme:N,tooltipActionButton:F,tooltipCancelButton:B}),M&&(0,r.jsx)("div",{className:(0,h.C)("tooltip-close"),children:(0,r.jsx)(a.z,{size:"s",view:"flat-secondary",onClick:async e=>{ce(),W?.(e)},"aria-label":"Close",children:(0,r.jsx)(l.J,{data:o.Z,size:16})})})]})});if(fe)return ge;const ve=()=>{de(),ie||t||ne.current?re.current=!0:ae()},ye=()=>{!n||ne.current||oe.current?re.current=!1:(le(),ue()),ne.current=!1};return!E||"number"!=typeof E.top&&"number"!=typeof E.left||(0,d.O)('[Popover] Physical names (top, left) of "offset" property are deprecated. Use logical names (block, inline) instead.'),(0,r.jsxs)("div",{ref:te,className:(0,h.C)({disabled:t},A),onMouseEnter:b?ve:void 0,onMouseLeave:b?ye:void 0,onFocus:b?ve:void 0,onBlur:b?ye:void 0,style:{top:E.top,left:E.left,insetBlockStart:E.block,insetInlineStart:E.inline},"data-qa":G,children:[(0,r.jsx)(g.x,{closeTooltip:ce,openTooltip:se,open:ie,openOnHover:b,className:(0,h.C)("handler"),disabled:t,onClick:V,closedManually:ne,children:O}),ge]})}));b.displayName="Popover";var w=n(89393),x=n(31984),_=n(43347),C=n(76856);const E=(0,w.Ge)("tabs-legacy");var S;!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(S||(S={}));const k=[],N=i.forwardRef((({direction:e=S.Horizontal,size:t="m",activeTab:n,allowNotSelected:o=!1,items:s=k,children:a,className:l,onSelectTab:c,wrapTo:u,qa:d,...h},p)=>{const f=((e,t,n)=>e||(t||0===n?.length?void 0:n?.[0]?.id))(n,o,s),m=i.useMemo((()=>({activeTabId:f})),[f]),g=i.useMemo((()=>{const e=e=>{c&&c(e)};return s.map(((t,n)=>{const i=(0,r.jsx)(C.L,{...t,onClick:e},t.id);return u?u(t,i,n):i}))}),[s,c,u]);return(0,r.jsx)("div",{...(0,x.z)(h,{labelable:!0}),role:"tablist",className:E({direction:e,size:t},l),"data-qa":d,ref:p,children:(0,r.jsx)(_.R.Provider,{value:m,children:a||g})})}));N.displayName="Tabs";const R=Object.assign(N,{Item:C.L});n(96143)},8507:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});const r=n(2784).createContext(void 0);r.displayName="TabContext"},85859:(e,t,n)=>{"use strict";n.d(t,{OK:()=>p,td:()=>c,sM:()=>a});var r=n(52322),i=n(2784),o=n(26256),s=n(8507);const a=({value:e,onUpdate:t,children:n})=>{const a=(0,o.uR)(),l=i.useMemo((()=>({value:e,onUpdate:t,id:a,isProvider:!0})),[e,t,a]);return(0,r.jsx)(s.q.Provider,{value:l,children:n})};var l=n(82348);const c=i.forwardRef(((e,t)=>{const n=i.useContext(s.q),a=(0,o.uR)(),c=(0,l.h)(e),[u,d]=i.useState(!1),{focusWithinProps:h}=(0,o.L_)({onFocusWithinChange:d}),p=i.useMemo((()=>({value:n?.value??e.value,onUpdate:n?.onUpdate??e.onUpdate,id:n?.id??a,isProvider:n?.isProvider??!1,isFocused:u})),[n,e.value,e.onUpdate,a,u]);return(0,r.jsx)(s.q.Provider,{value:p,children:(0,r.jsx)("div",{ref:t,...c,...h,children:e.children})})}));c.displayName="TabList";var u=n(64499),d=n(63687),h=n(23253);const p=i.forwardRef((function(e,t){const n=(0,h.x)(e),o=(0,r.jsxs)("div",{className:(0,d.lv)("content"),children:[e.icon&&(0,r.jsx)("div",{className:(0,d.lv)("icon"),children:e.icon}),(0,r.jsx)("div",{className:(0,d.lv)("title"),children:e.children||e.value}),void 0!==e.counter&&(0,r.jsx)("div",{className:(0,d.lv)("counter"),children:e.counter}),e.label&&(0,r.jsx)(u._,{className:(0,d.lv)("label"),theme:e.label.theme,children:e.label.content})]});return void 0!==e.component?i.createElement(e.component,{...n,ref:t}):function(e){return void 0!==e.href}(e)?(0,r.jsx)("a",{...n,ref:t,href:e.href,rel:"_blank"!==e.target||e.rel?e.rel:"noopener noreferrer",children:o}):(0,r.jsx)("button",{...n,ref:t,type:e.type||"button",children:o})}));p.displayName="Tab";n(17536)},6301:(e,t,n)=>{"use strict";n.d(t,{r:()=>a});var r=n(52322),i=n(2784),o=n(22463);const s=(0,n(89393).Ge)("list-container-view"),a=i.forwardRef((function({as:e="div",role:t="listbox",children:n,id:i,className:a,fixedHeight:l,extraProps:c,qa:u,style:d},h){return(0,r.jsx)(o.kC,{qa:u,as:e,direction:"column",ref:h,grow:!0,tabIndex:-1,id:i,role:t,style:d,className:s({"fixed-height":l},a),...c,children:n})}))},17680:(e,t,n)=>{"use strict";n.d(t,{Ct:()=>i.C,Fn:()=>c.F,Gp:()=>o.G,VM:()=>l.V,Vm:()=>a.V,rF:()=>s.r,sm:()=>r.s});n(85041);var r=n(68007),i=n(57163),o=n(24924),s=(n(83883),n(85754),n(80657)),a=n(46271),l=n(56915),c=(n(70970),n(57736));n(69988),n(94020),n(9124)},31984:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});const r=new Set(["id"]),i=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),o=/^(data-.*)$/;function s(e,t={}){const{labelable:n,propNames:s}=t,a={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r.has(t)||n&&i.has(t)||s?.has(t)||o.test(t))&&(a[t]=e[t]);return a}},26256:(e,t,n)=>{"use strict";n.d(t,{lq:()=>a.l,k$:()=>l.k,bV:()=>r.b,zk:()=>i.z,L_:()=>o.L,cR:()=>s.c,sx:()=>c.s,c0:()=>u.c,Xw:()=>d.a,yU:()=>h.y,L7:()=>p.L,KS:()=>f.K,uR:()=>m.u});var r=n(89494),i=(n(38227),n(92321)),o=(n(58919),n(89831)),s=n(15011),a=n(63421),l=n(99158),c=n(3500),u=n(79269),d=(n(14667),n(34242)),h=n(31270),p=n(32834),f=n(18289),m=(n(81430),n(20866),n(76272))},65981:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});var r=n(2784);function i(e){const t=r.useRef();return r.useEffect((()=>{t.current=e})),t.current}},12620:(e,t,n)=>{"use strict";n.d(t,{r:()=>i});var r=n(2784);const i=(e,t)=>{const n=r.useRef(!0);r.useEffect((()=>{n.current?n.current=!1:e()}),t)}},89494:(e,t,n)=>{"use strict";n.d(t,{b:()=>r.b});var r=n(87504)},15011:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(2784),i=n(63421);function o(...e){return r.useMemo((()=>e.every((e=>null==e))?null:(0,i.l)(...e)),e)}},31130:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});var r=n(2784),i=n(89393),o=n(50535);const s="function"==typeof r.useId?function(){return`${i.A7}${r.useId()}`}:function(){const e=r.useRef();return void 0===e.current&&(e.current=(0,o.xA)()),e.current}},97777:(e,t,n)=>{"use strict";n.d(t,{e:()=>r.e});var r=n(24562);n(67433)},93150:(e,t,n)=>{"use strict";n.d(t,{M8Z:()=>i.M,bZj:()=>o.b,zxk:()=>s.z,Zbd:()=>a.Z,XZJ:()=>l.X,wq_:()=>c.w,pJF:()=>u.Y,izJ:()=>d.i,kCb:()=>T.kC,Ind:()=>h.I,JO$:()=>p.J,__J:()=>f._,rUS:()=>m.r,aVo:()=>g.aV,aNw:()=>v.a,u_l:()=>y.u,GIS:()=>b.G,h_i:()=>w.h,eWC:()=>x.e,PhF:()=>_.Ph,yoO:()=>C.y,OdW:()=>E.O,iRW:()=>S.i,yCA:()=>k.y,rsf:()=>N.r,OK9:()=>R.OK,tdY:()=>R.td,sMk:()=>R.sM,xvT:()=>I.xv,Kx8:()=>O.Kx,oil:()=>O.oi,f6W:()=>r.f6,x7r:()=>M.x7,B1r:()=>M.B1,Nj1:()=>M.Nj,ua7:()=>A.u,k$v:()=>z.k$,cR6:()=>z.cR,Psm:()=>M.Ps});n(53660),n(72719);var r=n(45597),i=n(41934),o=(n(87759),n(31385)),s=(n(42533),n(9548),n(82286),n(22456),n(16409)),a=n(120),l=n(89763),c=(n(97492),n(99993),n(32789),n(91526)),u=(n(30256),n(91402)),d=n(91219),h=(n(53385),n(75539),n(11313)),p=(n(88390),n(97120)),f=n(64499),m=n(80586),g=n(95487),v=n(59184),y=(n(78699),n(55642)),b=(n(13199),n(38290),n(42955),n(7601),n(57299),n(15531),n(57671),n(31206)),w=n(94338),x=(n(21120),n(99546),n(10778),n(81874)),_=n(41543),C=n(47376),E=n(18738),S=n(1790),k=(n(71805),n(26902)),N=n(44943),R=(n(5055),n(42739),n(85859)),I=n(67027),M=n(54977),A=(n(21928),n(78567)),O=(n(97084),n(21868),n(19094)),T=n(22463),z=(n(35644),n(40650),n(82060),n(52893),n(50535),n(26256))},1417:(e,t,n)=>{"use strict";n.d(t,{mQ:()=>r.mQ});var r=n(11662)},9123:(e,t,n)=>{"use strict";n.d(t,{lW:()=>r.rF,CM:()=>r.Gp,vy:()=>r.Fn,Lm:()=>r.sm});var r=n(17680),i=(n(79966),n(81975),n(52322)),o=n(2784),s=n(87578),a=n(92416),l=n(26256),c=n(31206),u=n(45597),d=n(89393),h=n(55635);const p=o.createContext(null);p.displayName="MenuContext";var f=n(91219);const m=(0,d.Ge)("lab-menu-divider");function g(){return(0,i.jsx)(f.i,{className:m()})}g.displayName="Menu.Divider";var v=n(22578),y=n(93714);const b={xs:12,s:14,m:16,l:16,xl:20};var w=n(97120);function x(...e){const t=new Map;return e.reduce(((e,n)=>(Object.entries(n).forEach((([n,r])=>{n.startsWith("on")&&n.charCodeAt(2)>=65&&n.charCodeAt(2)<=90?(t.has(n)||t.set(n,[]),"function"==typeof r&&(t.get(n)?.push(r),e[n]=(...e)=>t.get(n)?.map((t=>t(...e))).find((e=>void 0!==e)))):e[n]=r})),e)),{})}var _=n(73888);const C=o.createContext(null);function E(e,t){return!!o.isValidElement(e)&&("string"!=typeof e.type&&e.type.displayName===t)}C.displayName="MenuItemContext";const S=(0,d.Ge)("lab-menu-item"),k=o.forwardRef(((e,t)=>{const{theme:n,selected:r,disabled:a,icon:c,arrow:d,children:h,className:f,qa:m,...g}=e,[k,N]=o.useState(!1),[R,I]=o.useState(!1),M="rtl"===(0,u.gm)(),A=o.useContext(p),O=o.useContext(C);if(!A)throw new Error("<MenuItem> must be used within <Menu>");const T=(0,s.JA)(),z=(0,s.ay)(),D=T.index===A.activeIndex,j=A.inline&&0===T.index||D?0:-1;let P=null;const L=[];c&&L.push((0,i.jsx)("div",{className:S("icon"),"aria-hidden":!0,children:c},"icon"));for(const e of o.Children.toArray(h))!A.inline&&E(e,"Menu")?P=e:L.push(e);(d||P)&&L.push((0,i.jsx)("div",{className:S("arrow"),"aria-hidden":!0,children:d||(0,i.jsx)(w.J,{data:M?v.Z:y.Z,size:b[A.size]})},"arrow"));const F=(0,l.cR)(t,T.ref);let B,U;const W={role:"menuitem",tabIndex:j,className:S({theme:n,size:A.size},f),"data-qa":m,...A.getItemProps({...g,onClick:t=>{e.onClick?.(t),P||z?.events.emit("click")},onFocus:t=>{e.onFocus?.(t),I(!1),O?.setHasFocusInside(!0)}})};void 0!==e.component?(B=e.component,U={...W,"aria-disabled":a??void 0}):!function(e){return void 0!==e.href}(e)?(B="button",U={...W,type:"button",disabled:a,"aria-disabled":a??void 0,"aria-pressed":r??void 0}):(B="a",U={...W,rel:"_blank"!==e.target||e.rel?e.rel:"noopener noreferrer","aria-disabled":a??void 0});const V=(0,i.jsx)(_.G,{isContainer:!0,component:B,componentProps:U,ref:F,size:A.size,disabled:a,active:D&&!R,hovered:R||!D&&k,selected:r,selectionStyle:"highlight",children:L}),H=o.useMemo((()=>({setHasFocusInside:I})),[]);return P?(0,i.jsx)(C.Provider,{value:H,children:o.cloneElement(P,{trigger:(e,t)=>o.cloneElement(V,{ref:(0,l.lq)(t,F),componentProps:x(e,U)}),onOpenChange:(e,t,n)=>{P.props.onOpenChange?.(e,t,n),N(e),e||I(!1)}})}):V}));k.displayName="Menu.Item";var N=n(82075),R=n(67003),I=n(16409);const M=o.forwardRef((({size:e="m",children:t,icon:n="horizontal",...r},o)=>(0,i.jsx)(I.z,{ref:o,size:e,...r,children:t||(0,i.jsx)(w.J,{data:"vertical"===n?N.Z:R.Z,size:b[e]})})));M.displayName="Menu.Trigger";const A=(0,d.Ge)("lab-menu");function O({open:e,onRequestClose:t,parentId:n,children:r,className:a,style:l,qa:c}){const u=(0,s.ay)(),d=(0,s.Zm)();return o.useEffect((()=>{if(u)return u.events.on("click",e),u.events.on("menuopen",r),()=>{u.events.off("click",e),u.events.off("menuopen",r)};function e(){n||t()}function r(e){e.nodeId!==d&&e.parentId===n&&t()}}),[t,u,d,n]),o.useEffect((()=>{e&&u&&u.events.emit("menuopen",{parentId:n,nodeId:d})}),[e,u,d,n]),(0,i.jsx)("div",{className:A(null,a),style:l,"data-qa":c,children:r})}function T({trigger:e,inline:t=!1,defaultOpen:n,open:r,onOpenChange:d,placement:f="bottom-start",disabled:m,children:g,size:v="m",className:y,style:b,qa:w}){const[x,_]=o.useState(null),[C,S]=o.useState(null),[k,N]=(0,l.zk)(r,n??!1,d),[R,I]=o.useState(null),M="rtl"===(0,u.gm)(),T=o.useRef([]),z=o.useContext(p),D=(0,s.Zm)(),j=Boolean(D),P=(0,s.$Y)({open:k&&!m,onOpenChange:N,elements:{reference:x,floating:C}}),L=(0,s.XI)(P,{enabled:j,delay:{open:100},handleClose:(0,s.xp)({blockPointerEvents:!0})}),F=(0,s.eS)(P,{toggle:!j,ignoreMouse:j}),B=(0,s.bQ)(P,{enabled:!j}),U=(0,s.qs)(P,{role:"menu"}),W=(0,s.c0)(P,{listRef:T,activeIndex:R,nested:j,onNavigate:I,rtl:M}),V=[(0,a.cv)({mainAxis:4,alignmentAxis:j?-4:0}),(0,a.RR)(),(0,a.uY)()],H=[L,F,B,U,W],{getReferenceProps:Z,getItemProps:Y}=(0,s.NI)(H),G=(0,l.cR)(_,o.isValidElement(e)?(0,h.e)(e):void 0),q=o.isValidElement(e)?Z(e.props):Z(),$=o.isValidElement(e)?o.cloneElement(e,{...q,ref:G}):"function"==typeof e?e(q,G):null,X=o.useCallback((()=>{N(!1)}),[N]),K=o.useCallback((e=>({"data-active":void 0,...e,onPointerEnter:t=>{e?.onPointerEnter?.(t);const n=t.currentTarget,r=[...n.closest('[role="menu"]')?.querySelectorAll('[role="menuitem"]')??[]].indexOf(n);!n.disabled&&!n.ariaDisabled&&r>=0?(n.focus(),I(r)):I(null)},onPointerLeave:t=>{e?.onPointerLeave?.(t),I(null)}})),[]),J=o.useMemo((()=>({inline:z?.inline??t,size:z?.size??v,activeIndex:R,getItemProps:t?K:Y})),[z,t,v,R,K,Y]);if(o.useEffect((()=>{$||(e?(P.refs.setPositionReference(e),N(!0)):N(!1))}),[e]),t){const e=o.Children.toArray(g).map(((e,t)=>o.isValidElement(e)&&E(e,"Menu.Item")?(0,i.jsx)(s.A8,{render:t=>o.cloneElement(e,{...e.props,...t})},t):e));return(0,i.jsx)(p.Provider,{value:J,children:(0,i.jsx)(s.bU,{render:(0,i.jsx)("div",{role:"menu",className:A(null,y),style:b,"data-qa":w}),orientation:"vertical",loop:!1,rtl:M,activeIndex:R,onNavigate:I,children:e})})}return(0,i.jsxs)(o.Fragment,{children:[$,(0,i.jsx)(c.G,{open:P.open,placement:j?(M?"left":"right")+"-start":f,disablePortal:j,disableEscapeKeyDown:j,disableOutsideClick:j,floatingContext:P,floatingRef:S,floatingMiddlewares:V,floatingInteractions:H,children:(0,i.jsx)(p.Provider,{value:J,children:(0,i.jsx)(s.vs,{elementsRef:T,children:(0,i.jsx)(O,{open:k,onRequestClose:X,parentId:D,className:y,style:b,qa:w,children:g})})})})]})}T.displayName="Menu",T.Trigger=M,T.Item=k,T.Divider=g},81110:(e,t,n)=>{"use strict";n.d(t,{x:()=>ec});var r,i=Object.defineProperty,o=(e,t,n)=>((e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),s=Object.defineProperty,a=(e,t,n)=>((e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),l=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(l||{});function c(e){return e.nodeType===e.ELEMENT_NODE}class u{constructor(){a(this,"idNodeMap",new Map),a(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function d(){return new u}const h=new RegExp(/(max|min)-device-(width|height)/.source,"g"),p={postcssPlugin:"postcss-custom-selectors",prepare:()=>({postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(h)&&(e.params=e.params.replace(h,"$1-$2"))}})},f={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(t){-1===e.indexOf(t)&&(e.push(t),t.selectors.forEach((function(e){e.includes(":hover")&&(t.selector+=",\n"+e.replace(/:hover/g,".\\:hover"))})))}}}};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var v={exports:{}},y=String,b=function(){return{isColorSupported:!1,reset:y,bold:y,dim:y,italic:y,underline:y,inverse:y,hidden:y,strikethrough:y,black:y,red:y,green:y,yellow:y,blue:y,magenta:y,cyan:y,white:y,gray:y,bgBlack:y,bgRed:y,bgGreen:y,bgYellow:y,bgBlue:y,bgMagenta:y,bgCyan:y,bgWhite:y}};v.exports=b(),v.exports.createColors=b;var w=v.exports;const x=g(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let _=w,C=x,E=class e extends Error{constructor(t,n,r,i,o,s){super(t),this.name="CssSyntaxError",this.reason=t,o&&(this.file=o),i&&(this.source=i),s&&(this.plugin=s),void 0!==n&&void 0!==r&&("number"==typeof n?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=_.isColorSupported),C&&e&&(t=C(t));let n,r,i=t.split(/\r?\n/),o=Math.max(this.line-3,0),s=Math.min(this.line+2,i.length),a=String(s).length;if(e){let{bold:e,gray:t,red:i}=_.createColors(!0);n=t=>e(i(t)),r=e=>t(e)}else n=r=e=>e;return i.slice(o,s).map(((e,t)=>{let i=o+1+t,s=" "+(" "+i).slice(-a)+" | ";if(i===this.line){let t=r(s.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(s)+e+"\n "+t+n("^")}return" "+r(s)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};var S=E;E.default=E;var k={};k.isClean=Symbol("isClean"),k.my=Symbol("my");const N={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let R=class{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,t,n){let r;if(n||(n=t),t&&(r=e.raws[t],void 0!==r))return r;let i=e.parent;if("before"===n){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return N[n];let o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[n])return o.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let i="raw"+((s=n)[0].toUpperCase()+s.slice(1));this[i]?r=this[i](o,e):o.walk((e=>{if(r=e.raws[t],void 0!==r)return!1}))}var s;return void 0===r&&(r=N[n]),o.rawCache[n]=r,r}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var I=R;R.default=R;let M=I;function A(e,t){new M(t).stringify(e)}var O=A;A.default=A;let{isClean:T,my:z}=k,D=S,j=I,P=O;function L(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],o=typeof i;"parent"===r&&"object"===o?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map((e=>L(e,n))):("object"===o&&null!==i&&(i=L(i)),n[r]=i)}return n}let F=class{constructor(e={}){this.raws={},this[T]=!1,this[z]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=L(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new D(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[T]){this[T]=!1;let e=this;for(;e=e.parent;)e[T]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(r=1,i+=1):r+=1;return{column:r,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),i=r.indexOf(e.word);-1!==i&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new j).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:o,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=P){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}};var B=F;F.default=F;let U=B,W=class extends U{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};var V=W;W.default=W;var H={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}};let{SourceMapConsumer:Z,SourceMapGenerator:Y}=x,{existsSync:G,readFileSync:q}=x,{dirname:$,join:X}=x;let K=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=$(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new Z(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=$(e),G(e))return this.mapFile=e,q(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Z)return Y.fromSourceMap(t).toString();if(t instanceof Y)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=X($(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var J=K;K.default=K;let{SourceMapConsumer:Q,SourceMapGenerator:ee}=x,{fileURLToPath:te,pathToFileURL:ne}=x,{isAbsolute:re,resolve:ie}=x,{nanoid:oe}=H,se=x,ae=S,le=J,ce=Symbol("fromOffsetCache"),ue=Boolean(Q&&ee),de=Boolean(ie&&re),he=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!de||/^\w+:\/\//.test(t.from)||re(t.from)?this.file=t.from:this.file=ie(t.from)),de&&ue){let e=new le(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+oe(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,o,s;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);o=e.line,s=e.col}else o=r.line,s=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let a=this.origin(t,n,o,s);return i=a?new ae(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,r.plugin):new ae(e,void 0===o?t:{column:n,line:t},void 0===o?n:{column:s,line:o},this.css,this.file,r.plugin),i.input={column:n,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(ne&&(i.input.url=ne(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,n;if(this[ce])n=this[ce];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[ce]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ie(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof n&&(i=s.originalPositionFor({column:r,line:n})),o=re(a.source)?ne(a.source):new URL(a.source,this.map.consumer().sourceRoot||ne(this.map.mapFile));let l={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!te)throw new Error("file: protocol is not available in this PostCSS build");l.file=te(o)}let c=s.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var pe=he;he.default=he,se&&se.registerInput&&se.registerInput(he);let{SourceMapConsumer:fe,SourceMapGenerator:me}=x,{dirname:ge,relative:ve,resolve:ye,sep:be}=x,{pathToFileURL:we}=x,xe=pe,_e=Boolean(fe&&me),Ce=Boolean(ge&&ye&&ve&&be);var Ee=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),r=e.root||ge(e.file);!1===this.mapOpts.sourcesContent?(t=new fe(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Ce&&_e&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=me.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new me({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new me({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,r=1,i="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((s,a,l)=>{if(this.css+=s,a&&"end"!==l&&(o.generated.line=n,o.generated.column=r-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),e=s.match(/\n/g),e?(n+=e.length,t=s.lastIndexOf("\n"),r=s.length-t):r+=s.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=n,o.generated.column=r-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=r-1,this.map.addMapping(o)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?ge(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=ge(ye(n,this.mapOpts.annotation)));let r=ve(n,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new xe(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(we){let t=we(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===be&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};let Se=B,ke=class extends Se{constructor(e){super(e),this.type="comment"}};var Ne=ke;ke.default=ke;let Re,Ie,Me,Ae,{isClean:Oe,my:Te}=k,ze=V,De=Ne,je=B;function Pe(e){return e.map((e=>(e.nodes&&(e.nodes=Pe(e.nodes)),delete e.source,e)))}function Le(e){if(e[Oe]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Le(t)}let Fe=class e extends je{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r<n&&(this.indexes[e]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let n,r=this.index(e),i=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+o.length);return this.markDirty(),this}normalize(t,n){if("string"==typeof t)t=Pe(Re(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new ze(t)]}else if(t.selector)t=[new Ie(t)];else if(t.name)t=[new Me(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new De(t)]}return t.map((t=>(t[Te]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Oe]&&Le(t),void 0===t.raws.before&&n&&void 0!==n.raws.before&&(t.raws.before=n.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk(((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk(((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk(((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Fe.registerParse=e=>{Re=e},Fe.registerRule=e=>{Ie=e},Fe.registerAtRule=e=>{Me=e},Fe.registerRoot=e=>{Ae=e};var Be=Fe;Fe.default=Fe,Fe.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,Me.prototype):"rule"===e.type?Object.setPrototypeOf(e,Ie.prototype):"decl"===e.type?Object.setPrototypeOf(e,ze.prototype):"comment"===e.type?Object.setPrototypeOf(e,De.prototype):"root"===e.type&&Object.setPrototypeOf(e,Ae.prototype),e[Te]=!0,e.nodes&&e.nodes.forEach((e=>{Fe.rebuild(e)}))};let Ue,We,Ve=Be,He=class extends Ve{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Ue(new We,this,e).stringify()}};He.registerLazyResult=e=>{Ue=e},He.registerProcessor=e=>{We=e};var Ze=He;He.default=He;let Ye=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Ge=Ye;Ye.default=Ye;let qe=Ge,$e=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new qe(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}};var Xe=$e;$e.default=$e;const Ke="'".charCodeAt(0),Je='"'.charCodeAt(0),Qe="\\".charCodeAt(0),et="/".charCodeAt(0),tt="\n".charCodeAt(0),nt=" ".charCodeAt(0),rt="\f".charCodeAt(0),it="\t".charCodeAt(0),ot="\r".charCodeAt(0),st="[".charCodeAt(0),at="]".charCodeAt(0),lt="(".charCodeAt(0),ct=")".charCodeAt(0),ut="{".charCodeAt(0),dt="}".charCodeAt(0),ht=";".charCodeAt(0),pt="*".charCodeAt(0),ft=":".charCodeAt(0),mt="@".charCodeAt(0),gt=/[\t\n\f\r "#'()/;[\\\]{}]/g,vt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,yt=/.[\r\n"'(/\\]/,bt=/[\da-f]/i;let wt=Be,xt=class extends wt{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var _t=xt;xt.default=xt,wt.registerAtRule(xt);let Ct,Et,St=Be,kt=class extends St{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Ct(new Et,this,e).stringify()}};kt.registerLazyResult=e=>{Ct=e},kt.registerProcessor=e=>{Et=e};var Nt=kt;kt.default=kt,St.registerRoot(kt);let Rt={comma:e=>Rt.split(e,[","],!0),space:e=>Rt.split(e,[" ","\n","\t"]),split(e,t,n){let r=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:a?n===l&&(a=!1):'"'===n||"'"===n?(a=!0,l=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&t.includes(n)&&(o=!0),o?(""!==i&&r.push(i.trim()),i="",o=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r}};var It=Rt;Rt.default=Rt;let Mt=Be,At=It,Ot=class extends Mt{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return At.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};var Tt=Ot;Ot.default=Ot,Mt.registerRule(Ot);let zt=V,Dt=function(e,t={}){let n,r,i,o,s,a,l,c,u,d,h=e.css.valueOf(),p=t.ignoreErrors,f=h.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=f},nextToken:function(e){if(v.length)return v.pop();if(m>=f)return;let t=!!e&&e.ignoreUnclosed;switch(n=h.charCodeAt(m),n){case tt:case nt:case it:case ot:case rt:r=m;do{r+=1,n=h.charCodeAt(r)}while(n===nt||n===tt||n===it||n===ot||n===rt);d=["space",h.slice(m,r)],m=r-1;break;case st:case at:case ut:case dt:case ft:case ht:case ct:{let e=String.fromCharCode(n);d=[e,e,m];break}case lt:if(c=g.length?g.pop()[1]:"",u=h.charCodeAt(m+1),"url"===c&&u!==Ke&&u!==Je&&u!==nt&&u!==tt&&u!==it&&u!==rt&&u!==ot){r=m;do{if(a=!1,r=h.indexOf(")",r+1),-1===r){if(p||t){r=m;break}y("bracket")}for(l=r;h.charCodeAt(l-1)===Qe;)l-=1,a=!a}while(a);d=["brackets",h.slice(m,r+1),m,r],m=r}else r=h.indexOf(")",m+1),o=h.slice(m,r+1),-1===r||yt.test(o)?d=["(","(",m]:(d=["brackets",o,m,r],m=r);break;case Ke:case Je:i=n===Ke?"'":'"',r=m;do{if(a=!1,r=h.indexOf(i,r+1),-1===r){if(p||t){r=m+1;break}y("string")}for(l=r;h.charCodeAt(l-1)===Qe;)l-=1,a=!a}while(a);d=["string",h.slice(m,r+1),m,r],m=r;break;case mt:gt.lastIndex=m+1,gt.test(h),r=0===gt.lastIndex?h.length-1:gt.lastIndex-2,d=["at-word",h.slice(m,r+1),m,r],m=r;break;case Qe:for(r=m,s=!0;h.charCodeAt(r+1)===Qe;)r+=1,s=!s;if(n=h.charCodeAt(r+1),s&&n!==et&&n!==nt&&n!==tt&&n!==it&&n!==ot&&n!==rt&&(r+=1,bt.test(h.charAt(r)))){for(;bt.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===nt&&(r+=1)}d=["word",h.slice(m,r+1),m,r],m=r;break;default:n===et&&h.charCodeAt(m+1)===pt?(r=h.indexOf("*/",m+2)+1,0===r&&(p||t?r=h.length:y("comment")),d=["comment",h.slice(m,r+1),m,r],m=r):(vt.lastIndex=m+1,vt.test(h),r=0===vt.lastIndex?h.length-1:vt.lastIndex-2,d=["word",h.slice(m,r+1),m,r],g.push(d),m=r)}return m++,d},position:function(){return m}}},jt=Ne,Pt=_t,Lt=Nt,Ft=Tt;const Bt={empty:!0,space:!0};let Ut=Be,Wt=class{constructor(e){this.input=e,this.root=new Lt,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,r,i=new Pt;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let o=!1,s=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a.length-1,n=a[r];n&&"space"===n[0];)n=a[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,r,i=0;for(let[o,s]of e.entries()){if(t=s,n=t[0],"("===n&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return o}this.doubleColon(t)}r=t}return!1}comment(e){let t=new jt;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=Dt(this.input)}decl(e,t){let n=new zt;this.init(n,e[0][2]);let r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o,s=[];for(;e.length&&(o=e[0][0],"space"===o||"comment"===o);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=s.map((e=>e[1])).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Ft;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)i||(i=l),o.push("("===n?")":"]");else if(s&&r&&"{"===n)i||(i=l),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,o,s,a,l=n.length,c="",u=!0;for(let e=0;e<l;e+=1)i=n[e],o=i[0],"space"!==o||e!==l-1||r?"comment"===o?(a=n[e-1]?n[e-1][0]:"empty",s=n[e+1]?n[e+1][0]:"empty",Bt[a]||Bt[s]||","===c.slice(-1)?u=!1:c+=i[1]):c+=i[1]:u=!1;if(!u){let r=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:r,value:c}}e[t]=c}rule(e){e.pop();let t=new Ft;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},Vt=pe;function Ht(e,t){let n=new Vt(e,t),r=new Wt(n);try{r.parse()}catch(e){throw e}return r.root}var Zt=Ht;Ht.default=Ht,Ut.registerParse(Ht);let{isClean:Yt,my:Gt}=k,qt=Ee,$t=O,Xt=Be,Kt=Ze,Jt=Xe,Qt=Zt,en=Nt;const tn={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},nn={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},rn={Once:!0,postcssPlugin:!0,prepare:!0},on=0;function sn(e){return"object"==typeof e&&"function"==typeof e.then}function an(e){let t=!1,n=tn[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,on,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,on,n+"Exit"]:[n,n+"Exit"]}function ln(e){let t;return t="document"===e.type?["Document",on,"DocumentExit"]:"root"===e.type?["Root",on,"RootExit"]:an(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function cn(e){return e[Yt]=!1,e.nodes&&e.nodes.forEach((e=>cn(e))),e}let un={},dn=class e{constructor(t,n,r){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof n||null===n||"root"!==n.type&&"document"!==n.type)if(n instanceof e||n instanceof Jt)i=cn(n.root),n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let e=Qt;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{i=e(n,r)}catch(e){this.processed=!0,this.error=e}i&&!i[Gt]&&Xt.rebuild(i)}else i=cn(n);this.result=new Jt(t,i,r),this.helpers={...un,postcss:un,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!nn[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!rn[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(sn(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Yt];){e[Yt]=!0;let t=[ln(e)];for(;t.length>0;){let e=this.visitTick(t);if(sn(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return sn(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=$t;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new qt(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(sn(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Yt];)e[Yt]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(sn(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let r,i=t.iterator;for(;r=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!r[Yt])return r[Yt]=!0,void e.push(ln(r));t.iterator=0,delete n.indexes[i]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===on)return void(n.nodes&&n.nodes.length&&(n[Yt]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[Yt]=!0;let t=an(e);for(let n of t)if(n===on)e.nodes&&e.each((e=>{e[Yt]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};dn.registerPostcss=e=>{un=e};var hn=dn;dn.default=dn,en.registerLazyResult(dn),Kt.registerLazyResult(dn);let pn=Ee,fn=O,mn=Zt;const gn=Xe;let vn=class{constructor(e,t,n){let r;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i=fn;this.result=new gn(this._processor,r,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get:()=>o.root});let s=new pn(i,r,this._opts,t);if(s.isMap()){let[e,t]=s.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=mn;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var yn=vn;vn.default=vn;let bn=yn,wn=hn,xn=Ze,_n=Nt,Cn=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new wn(this,e,t):new bn(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var En=Cn;Cn.default=Cn,_n.registerProcessor(Cn),xn.registerProcessor(Cn);let Sn=V,kn=J,Nn=Ne,Rn=_t,In=pe,Mn=Nt,An=Tt;function On(e,t){if(Array.isArray(e))return e.map((e=>On(e)));let{inputs:n,...r}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:In.prototype};n.map&&(n.map={...n.map,__proto__:kn.prototype}),t.push(n)}}if(r.nodes&&(r.nodes=e.nodes.map((e=>On(e,t)))),r.source){let{inputId:e,...n}=r.source;r.source=n,null!=e&&(r.source.input=t[e])}if("root"===r.type)return new Mn(r);if("decl"===r.type)return new Sn(r);if("rule"===r.type)return new An(r);if("comment"===r.type)return new Nn(r);if("atrule"===r.type)return new Rn(r);throw new Error("Unknown node type: "+e.type)}var Tn=On;On.default=On;let zn=S,Dn=V,jn=hn,Pn=Be,Ln=En,Fn=O,Bn=Tn,Un=Ze,Wn=Ge,Vn=Ne,Hn=_t,Zn=Xe,Yn=pe,Gn=Zt,qn=It,$n=Tt,Xn=Nt,Kn=B;function Jn(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new Ln(e)}Jn.plugin=function(e,t){let n,r=!1;function i(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...n);return i.postcssPlugin=e,i.postcssVersion=(new Ln).version,i}return Object.defineProperty(i,"postcss",{get:()=>(n||(n=i()),n)}),i.process=function(e,t,n){return Jn([i(n)]).process(e,t)},i},Jn.stringify=Fn,Jn.parse=Gn,Jn.fromJSON=Bn,Jn.list=qn,Jn.comment=e=>new Vn(e),Jn.atRule=e=>new Hn(e),Jn.decl=e=>new Dn(e),Jn.rule=e=>new $n(e),Jn.root=e=>new Xn(e),Jn.document=e=>new Un(e),Jn.CssSyntaxError=zn,Jn.Declaration=Dn,Jn.Container=Pn,Jn.Processor=Ln,Jn.Document=Un,Jn.Comment=Vn,Jn.Warning=Wn,Jn.AtRule=Hn,Jn.Result=Zn,Jn.Input=Yn,Jn.Rule=$n,Jn.Root=Xn,Jn.Node=Kn,jn.registerPostcss(Jn);var Qn=Jn;Jn.default=Jn;const er=m(Qn);er.stringify,er.fromJSON,er.plugin,er.parse,er.list,er.document,er.comment,er.atRule,er.rule,er.decl,er.root,er.CssSyntaxError,er.Declaration,er.Container,er.Processor,er.Document,er.Comment,er.Warning,er.AtRule,er.Result,er.Input,er.Rule,er.Root,er.Node;const tr={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function nr(e,t){const n=null==t?void 0:t.stylesWithHoverClass.get(e);if(n)return n;const r=er([p,f]).process(e).css;return null==t||t.stylesWithHoverClass.set(e,r),r}function rr(){return{stylesWithHoverClass:new Map}}function ir(e,t,n,r){const{doc:i,hackCss:o,cache:s}=r;e.childNodes.length?function(e,t,n,r){const i=[];for(const t of e.childNodes)t.type===l.Text&&i.push(t);const o=t.split("/* rr_split */");for(;o.length>1&&o.length>i.length;)o.splice(-2,2,o.slice(-2).join(""));for(let e=0;e<i.length;e++){const t=i[e],s=o[e];t&&s&&(t.textContent=n?nr(s,r):s)}}(e,n,o,s):(o&&(n=nr(n,s)),t.appendChild(i.createTextNode(n)))}function or(e,t){var n;const{doc:r,hackCss:i,cache:o}=t;switch(e.type){case l.Document:return r.implementation.createDocument(null,"",null);case l.DocumentType:return r.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case l.Element:{const i=function(e){let t=tr[e.tagName]?tr[e.tagName]:e.tagName;return"link"===t&&e.attributes._cssText&&(t="style"),t}(e);let o;e.isSVG?o=r.createElementNS("http://www.w3.org/2000/svg",i):(e.isCustom&&(null==(n=r.defaultView)?void 0:n.customElements)&&!r.defaultView.customElements.get(e.tagName)&&r.defaultView.customElements.define(e.tagName,class extends r.defaultView.HTMLElement{}),o=r.createElement(i));const s={};for(const n in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,n))continue;let a=e.attributes[n];if(("option"!==i||"selected"!==n||!1!==a)&&null!==a)if(!0===a&&(a=""),n.startsWith("rr_"))s[n]=a;else{if("string"!=typeof a);else{if("style"===i&&"_cssText"===n){ir(e,o,a,t);continue}if("textarea"===i&&"value"===n){o.appendChild(r.createTextNode(a)),e.childNodes=[];continue}}try{if(e.isSVG&&"xlink:href"===n)o.setAttributeNS("http://www.w3.org/1999/xlink",n,a.toString());else if("onload"===n||"onclick"===n||"onmouse"===n.substring(0,7))o.setAttribute("_"+n,a.toString());else{if("meta"===i&&"Content-Security-Policy"===e.attributes["http-equiv"]&&"content"===n){o.setAttribute("csp-content",a.toString());continue}("link"!==i||"preload"!==e.attributes.rel&&"modulepreload"!==e.attributes.rel||"script"!==e.attributes.as)&&("link"===i&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")||("img"===i&&e.attributes.srcset&&e.attributes.rr_dataURL?o.setAttribute("rrweb-original-srcset",e.attributes.srcset):o.setAttribute(n,a.toString())))}}catch(e){}}}for(const t in s){const n=s[t];if("canvas"===i&&"rr_dataURL"===t){const e=r.createElement("img");e.onload=()=>{const t=o.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=n.toString(),o.RRNodeType&&(o.rr_dataURL=n.toString())}else if("img"===i&&"rr_dataURL"===t){const t=o;t.currentSrc.startsWith("data:")||(t.setAttribute("rrweb-original-src",e.attributes.src),t.src=n.toString())}if("rr_width"===t)o.style.setProperty("width",n.toString());else if("rr_height"===t)o.style.setProperty("height",n.toString());else if("rr_mediaCurrentTime"===t&&"number"==typeof n)o.currentTime=n;else if("rr_mediaState"===t)switch(n){case"played":o.play().catch((e=>console.warn("media playback error",e)));break;case"paused":o.pause()}else"rr_mediaPlaybackRate"===t&&"number"==typeof n?o.playbackRate=n:"rr_mediaMuted"===t&&"boolean"==typeof n?o.muted=n:"rr_mediaLoop"===t&&"boolean"==typeof n?o.loop=n:"rr_mediaVolume"===t&&"number"==typeof n?o.volume=n:"rr_open_mode"===t&&o.setAttribute("rr_open_mode",n)}if(e.isShadowHost)if(o.shadowRoot)for(;o.shadowRoot.firstChild;)o.shadowRoot.removeChild(o.shadowRoot.firstChild);else o.attachShadow({mode:"open"});return o}case l.Text:return e.isStyle&&i?r.createTextNode(nr(e.textContent,o)):r.createTextNode(e.textContent);case l.CDATA:return r.createCDATASection(e.textContent);case l.Comment:return r.createComment(e.textContent);default:return null}}function sr(e,t){const{doc:n,mirror:r,skipChild:i=!1,hackCss:o=!0,afterAppend:s,cache:a}=t;if(r.has(e.id)){const t=r.getNode(e.id),n=r.getMeta(t);if(d=e,(u=n)&&d&&u.type===d.type&&(u.type===l.Document?u.compatMode===d.compatMode:u.type===l.DocumentType?u.name===d.name&&u.publicId===d.publicId&&u.systemId===d.systemId:u.type===l.Comment||u.type===l.Text||u.type===l.CDATA?u.textContent===d.textContent:u.type===l.Element&&u.tagName===d.tagName&&JSON.stringify(u.attributes)===JSON.stringify(d.attributes)&&u.isSVG===d.isSVG&&u.needBlock===d.needBlock))return r.getNode(e.id)}var u,d;let h=or(e,{doc:n,hackCss:o,cache:a});if(!h)return null;if(e.rootId&&r.getNode(e.rootId)!==n&&r.replace(e.rootId,n),e.type===l.Document&&(n.close(),n.open(),"BackCompat"===e.compatMode&&e.childNodes&&e.childNodes[0].type!==l.DocumentType&&(e.childNodes[0].type===l.Element&&"xmlns"in e.childNodes[0].attributes&&"http://www.w3.org/1999/xhtml"===e.childNodes[0].attributes.xmlns?n.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):n.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),h=n),r.add(h,e),(e.type===l.Document||e.type===l.Element)&&!i)for(const t of e.childNodes){const i=sr(t,{doc:n,mirror:r,skipChild:!1,hackCss:o,afterAppend:s,cache:a});if(i){if(t.isShadow&&c(h)&&h.shadowRoot)h.shadowRoot.appendChild(i);else if(e.type===l.Document&&t.type==l.Element){const e=i;let t=null;e.childNodes.forEach((e=>{"BODY"===e.nodeName&&(t=e)})),t?(e.removeChild(t),h.appendChild(i),e.appendChild(t)):h.appendChild(i)}else h.appendChild(i);s&&s(i,t.id)}else console.warn("Failed to rebuild",t)}return h}function ar(e,t){const{doc:n,onVisit:r,hackCss:i=!0,afterAppend:o,cache:s,mirror:a=new u}=t,c=sr(e,{doc:n,mirror:a,skipChild:!1,hackCss:i,afterAppend:o,cache:s});return function(e,t){for(const r of e.getIds())e.has(r)&&(n=e.getNode(r),t(n));var n}(a,(e=>{r&&r(e),function(e,t){const n=t.getMeta(e);if((null==n?void 0:n.type)!==l.Element)return;const r=e;for(const e in n.attributes){if(!Object.prototype.hasOwnProperty.call(n.attributes,e)||!e.startsWith("rr_"))continue;const t=n.attributes[e];"rr_scrollLeft"===e&&(r.scrollLeft=t),"rr_scrollTop"===e&&(r.scrollTop=t)}}(e,a)})),c}var lr=Object.defineProperty,cr=(e,t,n)=>((e,t,n)=>t in e?lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),ur=Object.defineProperty,dr=(e,t,n)=>((e,t,n)=>t in e?ur(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);let hr=class{constructor(){dr(this,"idNodeMap",new Map),dr(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var mr={exports:{}},gr=String,vr=function(){return{isColorSupported:!1,reset:gr,bold:gr,dim:gr,italic:gr,underline:gr,inverse:gr,hidden:gr,strikethrough:gr,black:gr,red:gr,green:gr,yellow:gr,blue:gr,magenta:gr,cyan:gr,white:gr,gray:gr,bgBlack:gr,bgRed:gr,bgGreen:gr,bgYellow:gr,bgBlue:gr,bgMagenta:gr,bgCyan:gr,bgWhite:gr}};mr.exports=vr(),mr.exports.createColors=vr;var yr=mr.exports;const br=fr(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let wr=yr,xr=br,_r=class e extends Error{constructor(t,n,r,i,o,s){super(t),this.name="CssSyntaxError",this.reason=t,o&&(this.file=o),i&&(this.source=i),s&&(this.plugin=s),void 0!==n&&void 0!==r&&("number"==typeof n?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=wr.isColorSupported),xr&&e&&(t=xr(t));let n,r,i=t.split(/\r?\n/),o=Math.max(this.line-3,0),s=Math.min(this.line+2,i.length),a=String(s).length;if(e){let{bold:e,gray:t,red:i}=wr.createColors(!0);n=t=>e(i(t)),r=e=>t(e)}else n=r=e=>e;return i.slice(o,s).map(((e,t)=>{let i=o+1+t,s=" "+(" "+i).slice(-a)+" | ";if(i===this.line){let t=r(s.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(s)+e+"\n "+t+n("^")}return" "+r(s)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};var Cr=_r;_r.default=_r;var Er={};Er.isClean=Symbol("isClean"),Er.my=Symbol("my");const Sr={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let kr=class{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,t,n){let r;if(n||(n=t),t&&(r=e.raws[t],void 0!==r))return r;let i=e.parent;if("before"===n){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Sr[n];let o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[n])return o.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let i="raw"+((s=n)[0].toUpperCase()+s.slice(1));this[i]?r=this[i](o,e):o.walk((e=>{if(r=e.raws[t],void 0!==r)return!1}))}var s;return void 0===r&&(r=Sr[n]),o.rawCache[n]=r,r}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Nr=kr;kr.default=kr;let Rr=Nr;function Ir(e,t){new Rr(t).stringify(e)}var Mr=Ir;Ir.default=Ir;let{isClean:Ar,my:Or}=Er,Tr=Cr,zr=Nr,Dr=Mr;function jr(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],o=typeof i;"parent"===r&&"object"===o?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map((e=>jr(e,n))):("object"===o&&null!==i&&(i=jr(i)),n[r]=i)}return n}let Pr=class{constructor(e={}){this.raws={},this[Ar]=!1,this[Or]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=jr(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new Tr(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[Ar]){this[Ar]=!1;let e=this;for(;e=e.parent;)e[Ar]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(r=1,i+=1):r+=1;return{column:r,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),i=r.indexOf(e.word);-1!==i&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new zr).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:o,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Dr){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}};var Lr=Pr;Pr.default=Pr;let Fr=Lr,Br=class extends Fr{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};var Ur=Br;Br.default=Br;var Wr={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}};let{SourceMapConsumer:Vr,SourceMapGenerator:Hr}=br,{existsSync:Zr,readFileSync:Yr}=br,{dirname:Gr,join:qr}=br;let $r=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Gr(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new Vr(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=Gr(e),Zr(e))return this.mapFile=e,Yr(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Vr)return Hr.fromSourceMap(t).toString();if(t instanceof Hr)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=qr(Gr(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Xr=$r;$r.default=$r;let{SourceMapConsumer:Kr,SourceMapGenerator:Jr}=br,{fileURLToPath:Qr,pathToFileURL:ei}=br,{isAbsolute:ti,resolve:ni}=br,{nanoid:ri}=Wr,ii=br,oi=Cr,si=Xr,ai=Symbol("fromOffsetCache"),li=Boolean(Kr&&Jr),ci=Boolean(ni&&ti),ui=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ci||/^\w+:\/\//.test(t.from)||ti(t.from)?this.file=t.from:this.file=ni(t.from)),ci&&li){let e=new si(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+ri(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,o,s;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);o=e.line,s=e.col}else o=r.line,s=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let a=this.origin(t,n,o,s);return i=a?new oi(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,r.plugin):new oi(e,void 0===o?t:{column:n,line:t},void 0===o?n:{column:s,line:o},this.css,this.file,r.plugin),i.input={column:n,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(ei&&(i.input.url=ei(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,n;if(this[ai])n=this[ai];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[ai]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ni(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof n&&(i=s.originalPositionFor({column:r,line:n})),o=ti(a.source)?ei(a.source):new URL(a.source,this.map.consumer().sourceRoot||ei(this.map.mapFile));let l={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Qr)throw new Error("file: protocol is not available in this PostCSS build");l.file=Qr(o)}let c=s.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var di=ui;ui.default=ui,ii&&ii.registerInput&&ii.registerInput(ui);let{SourceMapConsumer:hi,SourceMapGenerator:pi}=br,{dirname:fi,relative:mi,resolve:gi,sep:vi}=br,{pathToFileURL:yi}=br,bi=di,wi=Boolean(hi&&pi),xi=Boolean(fi&&gi&&mi&&vi);var _i=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),r=e.root||fi(e.file);!1===this.mapOpts.sourcesContent?(t=new hi(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),xi&&wi&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=pi.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new pi({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new pi({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,r=1,i="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((s,a,l)=>{if(this.css+=s,a&&"end"!==l&&(o.generated.line=n,o.generated.column=r-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),e=s.match(/\n/g),e?(n+=e.length,t=s.lastIndexOf("\n"),r=s.length-t):r+=s.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=n,o.generated.column=r-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=r-1,this.map.addMapping(o)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?fi(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=fi(gi(n,this.mapOpts.annotation)));let r=mi(n,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new bi(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(yi){let t=yi(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===vi&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};let Ci=Lr,Ei=class extends Ci{constructor(e){super(e),this.type="comment"}};var Si=Ei;Ei.default=Ei;let ki,Ni,Ri,Ii,{isClean:Mi,my:Ai}=Er,Oi=Ur,Ti=Si,zi=Lr;function Di(e){return e.map((e=>(e.nodes&&(e.nodes=Di(e.nodes)),delete e.source,e)))}function ji(e){if(e[Mi]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)ji(t)}let Pi=class e extends zi{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r<n&&(this.indexes[e]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let n,r=this.index(e),i=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+o.length);return this.markDirty(),this}normalize(t,n){if("string"==typeof t)t=Di(ki(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Oi(t)]}else if(t.selector)t=[new Ni(t)];else if(t.name)t=[new Ri(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Ti(t)]}return t.map((t=>(t[Ai]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Mi]&&ji(t),void 0===t.raws.before&&n&&void 0!==n.raws.before&&(t.raws.before=n.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk(((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk(((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk(((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Pi.registerParse=e=>{ki=e},Pi.registerRule=e=>{Ni=e},Pi.registerAtRule=e=>{Ri=e},Pi.registerRoot=e=>{Ii=e};var Li=Pi;Pi.default=Pi,Pi.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,Ri.prototype):"rule"===e.type?Object.setPrototypeOf(e,Ni.prototype):"decl"===e.type?Object.setPrototypeOf(e,Oi.prototype):"comment"===e.type?Object.setPrototypeOf(e,Ti.prototype):"root"===e.type&&Object.setPrototypeOf(e,Ii.prototype),e[Ai]=!0,e.nodes&&e.nodes.forEach((e=>{Pi.rebuild(e)}))};let Fi,Bi,Ui=Li,Wi=class extends Ui{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Fi(new Bi,this,e).stringify()}};Wi.registerLazyResult=e=>{Fi=e},Wi.registerProcessor=e=>{Bi=e};var Vi=Wi;Wi.default=Wi;let Hi=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Zi=Hi;Hi.default=Hi;let Yi=Zi,Gi=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new Yi(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}};var qi=Gi;Gi.default=Gi;const $i="'".charCodeAt(0),Xi='"'.charCodeAt(0),Ki="\\".charCodeAt(0),Ji="/".charCodeAt(0),Qi="\n".charCodeAt(0),eo=" ".charCodeAt(0),to="\f".charCodeAt(0),no="\t".charCodeAt(0),ro="\r".charCodeAt(0),io="[".charCodeAt(0),oo="]".charCodeAt(0),so="(".charCodeAt(0),ao=")".charCodeAt(0),lo="{".charCodeAt(0),co="}".charCodeAt(0),uo=";".charCodeAt(0),ho="*".charCodeAt(0),po=":".charCodeAt(0),fo="@".charCodeAt(0),mo=/[\t\n\f\r "#'()/;[\\\]{}]/g,go=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,vo=/.[\r\n"'(/\\]/,yo=/[\da-f]/i;let bo=Li,wo=class extends bo{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var xo=wo;wo.default=wo,bo.registerAtRule(wo);let _o,Co,Eo=Li,So=class extends Eo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new _o(new Co,this,e).stringify()}};So.registerLazyResult=e=>{_o=e},So.registerProcessor=e=>{Co=e};var ko=So;So.default=So,Eo.registerRoot(So);let No={comma:e=>No.split(e,[","],!0),space:e=>No.split(e,[" ","\n","\t"]),split(e,t,n){let r=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:a?n===l&&(a=!1):'"'===n||"'"===n?(a=!0,l=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&t.includes(n)&&(o=!0),o?(""!==i&&r.push(i.trim()),i="",o=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r}};var Ro=No;No.default=No;let Io=Li,Mo=Ro,Ao=class extends Io{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Mo.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};var Oo=Ao;Ao.default=Ao,Io.registerRule(Ao);let To=Ur,zo=function(e,t={}){let n,r,i,o,s,a,l,c,u,d,h=e.css.valueOf(),p=t.ignoreErrors,f=h.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=f},nextToken:function(e){if(v.length)return v.pop();if(m>=f)return;let t=!!e&&e.ignoreUnclosed;switch(n=h.charCodeAt(m),n){case Qi:case eo:case no:case ro:case to:r=m;do{r+=1,n=h.charCodeAt(r)}while(n===eo||n===Qi||n===no||n===ro||n===to);d=["space",h.slice(m,r)],m=r-1;break;case io:case oo:case lo:case co:case po:case uo:case ao:{let e=String.fromCharCode(n);d=[e,e,m];break}case so:if(c=g.length?g.pop()[1]:"",u=h.charCodeAt(m+1),"url"===c&&u!==$i&&u!==Xi&&u!==eo&&u!==Qi&&u!==no&&u!==to&&u!==ro){r=m;do{if(a=!1,r=h.indexOf(")",r+1),-1===r){if(p||t){r=m;break}y("bracket")}for(l=r;h.charCodeAt(l-1)===Ki;)l-=1,a=!a}while(a);d=["brackets",h.slice(m,r+1),m,r],m=r}else r=h.indexOf(")",m+1),o=h.slice(m,r+1),-1===r||vo.test(o)?d=["(","(",m]:(d=["brackets",o,m,r],m=r);break;case $i:case Xi:i=n===$i?"'":'"',r=m;do{if(a=!1,r=h.indexOf(i,r+1),-1===r){if(p||t){r=m+1;break}y("string")}for(l=r;h.charCodeAt(l-1)===Ki;)l-=1,a=!a}while(a);d=["string",h.slice(m,r+1),m,r],m=r;break;case fo:mo.lastIndex=m+1,mo.test(h),r=0===mo.lastIndex?h.length-1:mo.lastIndex-2,d=["at-word",h.slice(m,r+1),m,r],m=r;break;case Ki:for(r=m,s=!0;h.charCodeAt(r+1)===Ki;)r+=1,s=!s;if(n=h.charCodeAt(r+1),s&&n!==Ji&&n!==eo&&n!==Qi&&n!==no&&n!==ro&&n!==to&&(r+=1,yo.test(h.charAt(r)))){for(;yo.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===eo&&(r+=1)}d=["word",h.slice(m,r+1),m,r],m=r;break;default:n===Ji&&h.charCodeAt(m+1)===ho?(r=h.indexOf("*/",m+2)+1,0===r&&(p||t?r=h.length:y("comment")),d=["comment",h.slice(m,r+1),m,r],m=r):(go.lastIndex=m+1,go.test(h),r=0===go.lastIndex?h.length-1:go.lastIndex-2,d=["word",h.slice(m,r+1),m,r],g.push(d),m=r)}return m++,d},position:function(){return m}}},Do=Si,jo=xo,Po=ko,Lo=Oo;const Fo={empty:!0,space:!0};let Bo=Li,Uo=class{constructor(e){this.input=e,this.root=new Po,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,r,i=new jo;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let o=!1,s=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a.length-1,n=a[r];n&&"space"===n[0];)n=a[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,r,i=0;for(let[o,s]of e.entries()){if(t=s,n=t[0],"("===n&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return o}this.doubleColon(t)}r=t}return!1}comment(e){let t=new Do;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=zo(this.input)}decl(e,t){let n=new To;this.init(n,e[0][2]);let r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o,s=[];for(;e.length&&(o=e[0][0],"space"===o||"comment"===o);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=s.map((e=>e[1])).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Lo;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)i||(i=l),o.push("("===n?")":"]");else if(s&&r&&"{"===n)i||(i=l),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,o,s,a,l=n.length,c="",u=!0;for(let e=0;e<l;e+=1)i=n[e],o=i[0],"space"!==o||e!==l-1||r?"comment"===o?(a=n[e-1]?n[e-1][0]:"empty",s=n[e+1]?n[e+1][0]:"empty",Fo[a]||Fo[s]||","===c.slice(-1)?u=!1:c+=i[1]):c+=i[1]:u=!1;if(!u){let r=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:r,value:c}}e[t]=c}rule(e){e.pop();let t=new Lo;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},Wo=di;function Vo(e,t){let n=new Wo(e,t),r=new Uo(n);try{r.parse()}catch(e){throw e}return r.root}var Ho=Vo;Vo.default=Vo,Bo.registerParse(Vo);let{isClean:Zo,my:Yo}=Er,Go=_i,qo=Mr,$o=Li,Xo=Vi,Ko=qi,Jo=Ho,Qo=ko;const es={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ts={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},ns={Once:!0,postcssPlugin:!0,prepare:!0},rs=0;function is(e){return"object"==typeof e&&"function"==typeof e.then}function os(e){let t=!1,n=es[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,rs,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,rs,n+"Exit"]:[n,n+"Exit"]}function ss(e){let t;return t="document"===e.type?["Document",rs,"DocumentExit"]:"root"===e.type?["Root",rs,"RootExit"]:os(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function as(e){return e[Zo]=!1,e.nodes&&e.nodes.forEach((e=>as(e))),e}let ls={},cs=class e{constructor(t,n,r){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof n||null===n||"root"!==n.type&&"document"!==n.type)if(n instanceof e||n instanceof Ko)i=as(n.root),n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let e=Jo;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{i=e(n,r)}catch(e){this.processed=!0,this.error=e}i&&!i[Yo]&&$o.rebuild(i)}else i=as(n);this.result=new Ko(t,i,r),this.helpers={...ls,postcss:ls,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!ts[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ns[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(is(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Zo];){e[Zo]=!0;let t=[ss(e)];for(;t.length>0;){let e=this.visitTick(t);if(is(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return is(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=qo;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new Go(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(is(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Zo];)e[Zo]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(is(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let r,i=t.iterator;for(;r=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!r[Zo])return r[Zo]=!0,void e.push(ss(r));t.iterator=0,delete n.indexes[i]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===rs)return void(n.nodes&&n.nodes.length&&(n[Zo]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[Zo]=!0;let t=os(e);for(let n of t)if(n===rs)e.nodes&&e.each((e=>{e[Zo]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};cs.registerPostcss=e=>{ls=e};var us=cs;cs.default=cs,Qo.registerLazyResult(cs),Xo.registerLazyResult(cs);let ds=_i,hs=Mr,ps=Ho;const fs=qi;let ms=class{constructor(e,t,n){let r;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i=hs;this.result=new fs(this._processor,r,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get:()=>o.root});let s=new ds(i,r,this._opts,t);if(s.isMap()){let[e,t]=s.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=ps;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var gs=ms;ms.default=ms;let vs=gs,ys=us,bs=Vi,ws=ko,xs=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new ys(this,e,t):new vs(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var _s=xs;xs.default=xs,ws.registerProcessor(xs),bs.registerProcessor(xs);let Cs=Ur,Es=Xr,Ss=Si,ks=xo,Ns=di,Rs=ko,Is=Oo;function Ms(e,t){if(Array.isArray(e))return e.map((e=>Ms(e)));let{inputs:n,...r}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:Ns.prototype};n.map&&(n.map={...n.map,__proto__:Es.prototype}),t.push(n)}}if(r.nodes&&(r.nodes=e.nodes.map((e=>Ms(e,t)))),r.source){let{inputId:e,...n}=r.source;r.source=n,null!=e&&(r.source.input=t[e])}if("root"===r.type)return new Rs(r);if("decl"===r.type)return new Cs(r);if("rule"===r.type)return new Is(r);if("comment"===r.type)return new Ss(r);if("atrule"===r.type)return new ks(r);throw new Error("Unknown node type: "+e.type)}var As=Ms;Ms.default=Ms;let Os=Cr,Ts=Ur,zs=us,Ds=Li,js=_s,Ps=Mr,Ls=As,Fs=Vi,Bs=Zi,Us=Si,Ws=xo,Vs=qi,Hs=di,Zs=Ho,Ys=Ro,Gs=Oo,qs=ko,$s=Lr;function Xs(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new js(e)}Xs.plugin=function(e,t){let n,r=!1;function i(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...n);return i.postcssPlugin=e,i.postcssVersion=(new js).version,i}return Object.defineProperty(i,"postcss",{get:()=>(n||(n=i()),n)}),i.process=function(e,t,n){return Xs([i(n)]).process(e,t)},i},Xs.stringify=Ps,Xs.parse=Zs,Xs.fromJSON=Ls,Xs.list=Ys,Xs.comment=e=>new Us(e),Xs.atRule=e=>new Ws(e),Xs.decl=e=>new Ts(e),Xs.rule=e=>new Gs(e),Xs.root=e=>new qs(e),Xs.document=e=>new Fs(e),Xs.CssSyntaxError=Os,Xs.Declaration=Ts,Xs.Container=Ds,Xs.Processor=js,Xs.Document=Fs,Xs.Comment=Us,Xs.Warning=Bs,Xs.AtRule=Ws,Xs.Result=Vs,Xs.Input=Hs,Xs.Rule=Gs,Xs.Root=qs,Xs.Node=$s,zs.registerPostcss(Xs);var Ks=Xs;Xs.default=Xs;const Js=pr(Ks);Js.stringify,Js.fromJSON,Js.plugin,Js.parse,Js.list,Js.document,Js.comment,Js.atRule,Js.rule,Js.decl,Js.root,Js.CssSyntaxError,Js.Declaration,Js.Container,Js.Processor,Js.Document,Js.Comment,Js.Warning,Js.AtRule,Js.Result,Js.Input,Js.Rule,Js.Root,Js.Node;var Qs=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Qs||{});function ea(e){const t=[];for(const n in e){const r=e[n];if("string"!=typeof r)continue;const i=oa(n);t.push(`${i}: ${r};`)}return t.join(" ")}const ta=/-([a-z])/g,na=/^--[a-zA-Z0-9-]+$/,ra=e=>na.test(e)?e:e.replace(ta,((e,t)=>t?t.toUpperCase():"")),ia=/\B([A-Z])/g,oa=e=>e.replace(ia,"-$1").toLowerCase();class sa{constructor(...e){cr(this,"parentElement",null),cr(this,"parentNode",null),cr(this,"ownerDocument"),cr(this,"firstChild",null),cr(this,"lastChild",null),cr(this,"previousSibling",null),cr(this,"nextSibling",null),cr(this,"ELEMENT_NODE",1),cr(this,"TEXT_NODE",3),cr(this,"nodeType"),cr(this,"nodeName"),cr(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof sa))return!1;if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class aa extends sa{constructor(...e){super(e),cr(this,"nodeType",9),cr(this,"nodeName","#document"),cr(this,"compatMode","CSS1Compat"),cr(this,"RRNodeType",Qs.Document),cr(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find((e=>e.RRNodeType===Qs.Element&&"HTML"===e.tagName))||null}get body(){var e;return(null==(e=this.documentElement)?void 0:e.childNodes.find((e=>e.RRNodeType===Qs.Element&&"BODY"===e.tagName)))||null}get head(){var e;return(null==(e=this.documentElement)?void 0:e.childNodes.find((e=>e.RRNodeType===Qs.Element&&"HEAD"===e.tagName)))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===Qs.Element||t===Qs.DocumentType)&&this.childNodes.some((e=>e.RRNodeType===t)))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===Qs.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const n=ga(this,e);return n.parentElement=null,n}insertBefore(e,t){const n=e.RRNodeType;if((n===Qs.Element||n===Qs.DocumentType)&&this.childNodes.some((e=>e.RRNodeType===n)))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${n===Qs.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const r=va(this,e,t);return r.parentElement=null,r}removeChild(e){return ya(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let t;if('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'===e?t="-//W3C//DTD XHTML 1.0 Transitional//EN":'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'===e&&(t="-//W3C//DTD HTML 4.0 Transitional//EN"),t){const e=this.createDocumentType("html",t,"");this.open(),this.appendChild(e)}}createDocument(e,t,n){return new aa}createDocumentType(e,t,n){const r=new la(e,t,n);return r.ownerDocument=this,r}createElement(e){const t=new ca(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){const t=new ha(e);return t.ownerDocument=this,t}createComment(e){const t=new pa(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new fa(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class la extends sa{constructor(e,t,n){super(),cr(this,"nodeType",10),cr(this,"RRNodeType",Qs.DocumentType),cr(this,"name"),cr(this,"publicId"),cr(this,"systemId"),cr(this,"textContent",null),this.name=e,this.publicId=t,this.systemId=n,this.nodeName=e}toString(){return"RRDocumentType"}}class ca extends sa{constructor(e){super(),cr(this,"nodeType",1),cr(this,"RRNodeType",Qs.Element),cr(this,"tagName"),cr(this,"attributes",{}),cr(this,"shadowRoot",null),cr(this,"scrollLeft"),cr(this,"scrollTop"),this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach((t=>e+=t.textContent)),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new ma(this.attributes.class,(e=>{this.attributes.class=e}))}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const e=this.attributes.style?function(e){const t={},n=/:(.+)/;return e.replace(/\/\*.*?\*\//g,"").split(/;(?![^(]*\))/g).forEach((function(e){if(e){const r=e.split(n);r.length>1&&(t[ra(r[0].trim())]=r[1].trim())}})),t}(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(n,r,i)=>{if(t.test(n))return;const o=ra(n);r?e[o]=r:delete e[o],"important"===i&&(e[o]+=" !important"),this.attributes.style=ea(e)},e.removeProperty=n=>{if(t.test(n))return"";const r=ra(n),i=e[r]||"";return delete e[r],this.attributes.style=ea(e),i},e}getAttribute(e){return void 0===this.attributes[e]?null:this.attributes[e]}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,n){this.setAttribute(t,n)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return ga(this,e)}insertBefore(e,t){return va(this,e,t)}removeChild(e){return ya(this,e)}attachShadow(e){const t=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=t,t}dispatchEvent(e){return!0}toString(){let e="";for(const t in this.attributes)e+=`${t}="${this.attributes[t]}" `;return`${this.tagName} ${e}`}}class ua extends ca{constructor(){super(...arguments),cr(this,"currentTime"),cr(this,"volume"),cr(this,"paused"),cr(this,"muted"),cr(this,"playbackRate"),cr(this,"loop")}attachShadow(e){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class da extends ca{constructor(){super(...arguments),cr(this,"tagName","DIALOG"),cr(this,"nodeName","DIALOG")}get isModal(){return"modal"===this.getAttribute("rr_open_mode")}get open(){return null!==this.getAttribute("open")}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class ha extends sa{constructor(e){super(),cr(this,"nodeType",3),cr(this,"nodeName","#text"),cr(this,"RRNodeType",Qs.Text),cr(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class pa extends sa{constructor(e){super(),cr(this,"nodeType",8),cr(this,"nodeName","#comment"),cr(this,"RRNodeType",Qs.Comment),cr(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class fa extends sa{constructor(e){super(),cr(this,"nodeName","#cdata-section"),cr(this,"nodeType",4),cr(this,"RRNodeType",Qs.CDATA),cr(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class ma{constructor(e,t){if(cr(this,"onChange"),cr(this,"classes",[]),cr(this,"add",((...e)=>{for(const t of e){const e=String(t);this.classes.indexOf(e)>=0||this.classes.push(e)}this.onChange&&this.onChange(this.classes.join(" "))})),cr(this,"remove",((...e)=>{this.classes=this.classes.filter((t=>-1===e.indexOf(t))),this.onChange&&this.onChange(this.classes.join(" "))})),e){const t=e.trim().split(/\s+/);this.classes.push(...t)}this.onChange=t}}function ga(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function va(e,t,n){if(!n)return ga(e,t);if(n.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===n||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=n.previousSibling,n.previousSibling=t,t.nextSibling=n,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function ya(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var ba=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))(ba||{});const wa={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},xa={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};let _a=null;function Ca(e,t,n,r=t.mirror||t.ownerDocument.mirror){e=function(e,t,n,r){var i;n.afterAppend&&!_a&&(_a=new WeakSet,setTimeout((()=>{_a=null}),0));if(!ka(e,t)){const o=Sa(t,n.mirror,r);null==(i=e.parentNode)||i.replaceChild(o,e),e=o}switch(t.RRNodeType){case Qs.Document:if(!Na(e,t,n.mirror,r)){const i=r.getMeta(t);i&&(n.mirror.removeNodeFromMap(e),e.close(),e.open(),n.mirror.add(e,i),null==_a||_a.add(e))}break;case Qs.Element:{const i=e,o=t;switch(o.tagName){case"IFRAME":{const i=e.contentDocument;if(!i)break;Ca(i,t.contentDocument,n,r);break}}o.shadowRoot&&(i.shadowRoot||i.attachShadow({mode:"open"}),Ea(i.shadowRoot,o.shadowRoot,n,r)),function(e,t,n){const r=e.attributes,i=t.attributes;for(const r in i){const o=i[r],s=n.getMeta(t);if((null==s?void 0:s.isSVG)&&wa[r])e.setAttributeNS(wa[r],r,o);else if("CANVAS"===t.tagName&&"rr_dataURL"===r){const t=document.createElement("img");t.src=o,t.onload=()=>{const n=e.getContext("2d");n&&n.drawImage(t,0,0,t.width,t.height)}}else{if("IFRAME"===t.tagName&&"srcdoc"===r)continue;try{e.setAttribute(r,o)}catch(e){console.warn(e)}}}for(const{name:t}of Array.from(r))t in i||e.removeAttribute(t);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}(i,o,r);break}}return e}(e,t,n,r),Ea(e,t,n,r),function(e,t,n){var r;switch(t.RRNodeType){case Qs.Document:{const e=t.scrollData;e&&n.applyScroll(e,!0);break}case Qs.Element:{const r=e,i=t;switch(i.scrollData&&n.applyScroll(i.scrollData,!0),i.inputData&&n.applyInput(i.inputData),i.tagName){case"AUDIO":case"VIDEO":{const t=e,n=i;void 0!==n.paused&&(n.paused?t.pause():t.play()),void 0!==n.muted&&(t.muted=n.muted),void 0!==n.volume&&(t.volume=n.volume),void 0!==n.currentTime&&(t.currentTime=n.currentTime),void 0!==n.playbackRate&&(t.playbackRate=n.playbackRate),void 0!==n.loop&&(t.loop=n.loop);break}case"CANVAS":{const i=t;if(null!==i.rr_dataURL){const e=document.createElement("img");e.onload=()=>{const t=r.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=i.rr_dataURL}i.canvasMutations.forEach((t=>n.applyCanvas(t.event,t.mutation,e)));break}case"STYLE":{const e=r.sheet;e&&t.rules.forEach((t=>n.applyStyleSheetMutation(t,e)));break}case"DIALOG":{const e=r,t=i,n=e.open,o=e.matches("dialog:modal"),s=t.open,a=t.isModal,l=o!==a,c=n!==s;if((l||n&&c)&&e.close(),s&&(c||l))try{a?e.showModal():e.show()}catch(e){console.warn(e)}break}}break}case Qs.Text:case Qs.Comment:case Qs.CDATA:e.textContent!==t.data&&(e.textContent=t.data)}(null==_a?void 0:_a.has(e))&&(_a.delete(e),null==(r=n.afterAppend)||r.call(n,e,n.mirror.getId(e)))}(e,t,n)}function Ea(e,t,n,r){const i=Array.from(e.childNodes),o=t.childNodes;if(0===i.length&&0===o.length)return;let s,a,l=0,c=i.length-1,u=0,d=o.length-1,h=i[l],p=i[c],f=o[u],m=o[d];for(;l<=c&&u<=d;)if(void 0===h)h=i[++l];else if(void 0===p)p=i[--c];else if(Na(h,f,n.mirror,r))h=i[++l],f=o[++u];else if(Na(p,m,n.mirror,r))p=i[--c],m=o[--d];else if(Na(h,m,n.mirror,r)){try{e.insertBefore(h,p.nextSibling)}catch(e){console.warn(e)}h=i[++l],m=o[--d]}else if(Na(p,f,n.mirror,r)){try{e.insertBefore(p,h)}catch(e){console.warn(e)}p=i[--c],f=o[++u]}else{if(!s){s={};for(let e=l;e<=c;e++){const t=i[e];t&&n.mirror.hasNode(t)&&(s[n.mirror.getId(t)]=e)}}a=s[r.getId(f)];const t=i[a];if(void 0!==a&&t&&Na(t,f,n.mirror,r)){try{e.insertBefore(t,h)}catch(e){console.warn(e)}i[a]=void 0}else{const t=Sa(f,n.mirror,r);"#document"===e.nodeName&&h&&(t.nodeType===t.DOCUMENT_TYPE_NODE&&h.nodeType===h.DOCUMENT_TYPE_NODE||t.nodeType===t.ELEMENT_NODE&&h.nodeType===h.ELEMENT_NODE)&&(e.removeChild(h),n.mirror.removeNodeFromMap(h),h=i[++l]);try{e.insertBefore(t,h||null)}catch(e){console.warn(e)}}f=o[++u]}if(l>c){const t=o[d+1];let i=null;for(t&&(i=n.mirror.getNode(r.getId(t)));u<=d;++u){const t=Sa(o[u],n.mirror,r);try{e.insertBefore(t,i)}catch(e){console.warn(e)}}}else if(u>d)for(;l<=c;l++){const t=i[l];if(t&&t.parentNode===e)try{e.removeChild(t),n.mirror.removeNodeFromMap(t)}catch(e){console.warn(e)}}let g=e.firstChild,v=t.firstChild;for(;null!==g&&null!==v;)Ca(g,v,n,r),g=g.nextSibling,v=v.nextSibling}function Sa(e,t,n){const r=n.getId(e),i=n.getMeta(e);let o=null;if(r>-1&&(o=t.getNode(r)),null!==o&&ka(o,e))return o;switch(e.RRNodeType){case Qs.Document:o=new Document;break;case Qs.DocumentType:o=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case Qs.Element:{let t=e.tagName.toLowerCase();t=xa[t]||t,o=i&&"isSVG"in i&&(null==i?void 0:i.isSVG)?document.createElementNS(wa.svg,t):document.createElement(e.tagName);break}case Qs.Text:o=document.createTextNode(e.data);break;case Qs.Comment:o=document.createComment(e.data);break;case Qs.CDATA:o=document.createCDATASection(e.data)}i&&t.add(o,{...i});try{null==_a||_a.add(o)}catch(e){}return o}function ka(e,t){return e.nodeType===t.nodeType&&(e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName)}function Na(e,t,n,r){const i=n.getId(e),o=r.getId(t);return-1!==i&&i===o&&ka(e,t)}class Ra extends aa{constructor(e){super(),cr(this,"UNSERIALIZED_STARTING_ID",-2),cr(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),cr(this,"mirror",new Ua),cr(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,n){return new Ra}createDocumentType(e,t,n){const r=new Ia(e,t,n);return r.ownerDocument=this,r}createElement(e){const t=e.toUpperCase();let n;switch(t){case"AUDIO":case"VIDEO":n=new Aa(t);break;case"IFRAME":n=new Da(t,this.mirror);break;case"CANVAS":n=new Ta(t);break;case"STYLE":n=new za(t);break;case"DIALOG":n=new Oa(t);break;default:n=new Ma(t)}return n.ownerDocument=this,n}createComment(e){const t=new Pa(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new La(e);return t.ownerDocument=this,t}createTextNode(e){const t=new ja(e);return t.ownerDocument=this,t}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const Ia=la;class Ma extends ca{constructor(){super(...arguments),cr(this,"inputData",null),cr(this,"scrollData",null)}}class Aa extends ua{}class Oa extends da{}class Ta extends Ma{constructor(){super(...arguments),cr(this,"rr_dataURL",null),cr(this,"canvasMutations",[])}getContext(){return null}}class za extends Ma{constructor(){super(...arguments),cr(this,"rules",[])}}class Da extends Ma{constructor(e,t){super(e),cr(this,"contentDocument",new Ra),this.contentDocument.mirror=t}}const ja=ha,Pa=pa,La=fa;function Fa(e,t,n,r){let i;switch(e.nodeType){case ba.DOCUMENT_NODE:r&&"IFRAME"===r.nodeName?i=r.contentDocument:(i=t,i.compatMode=e.compatMode);break;case ba.DOCUMENT_TYPE_NODE:{const n=e;i=t.createDocumentType(n.name,n.publicId,n.systemId);break}case ba.ELEMENT_NODE:{const n=e,r=(o=n)instanceof HTMLFormElement?"FORM":o.tagName.toUpperCase();i=t.createElement(r);const s=i;for(const{name:e,value:t}of Array.from(n.attributes))s.attributes[e]=t;n.scrollLeft&&(s.scrollLeft=n.scrollLeft),n.scrollTop&&(s.scrollTop=n.scrollTop);break}case ba.TEXT_NODE:i=t.createTextNode(e.textContent||"");break;case ba.CDATA_SECTION_NODE:i=t.createCDATASection(e.data);break;case ba.COMMENT_NODE:i=t.createComment(e.textContent||"");break;case ba.DOCUMENT_FRAGMENT_NODE:i=r.attachShadow({mode:"open"});break;default:return null}var o;let s=n.getMeta(e);return t instanceof Ra&&(s||(s=Wa(i,t.unserializedId),n.add(e,s)),t.mirror.add(i,{...s})),i}function Ba(e,t=function(){return new hr}(),n=new Ra){return function e(r,i){const o=Fa(r,n,t,i);if(null!==o)if("IFRAME"!==(null==i?void 0:i.nodeName)&&r.nodeType!==ba.DOCUMENT_FRAGMENT_NODE&&(null==i||i.appendChild(o),o.parentNode=i,o.parentElement=i),"IFRAME"===r.nodeName){const t=r.contentDocument;t&&e(t,o)}else r.nodeType!==ba.DOCUMENT_NODE&&r.nodeType!==ba.ELEMENT_NODE&&r.nodeType!==ba.DOCUMENT_FRAGMENT_NODE||(r.nodeType===ba.ELEMENT_NODE&&r.shadowRoot&&e(r.shadowRoot,o),r.childNodes.forEach((t=>e(t,o))))}(e,null),n}class Ua{constructor(){cr(this,"idNodeMap",new Map),cr(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Wa(e,t){switch(e.RRNodeType){case Qs.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case Qs.DocumentType:{const n=e;return{id:t,type:e.RRNodeType,name:n.name,publicId:n.publicId,systemId:n.systemId}}case Qs.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case Qs.Text:case Qs.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case Qs.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}const Va={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ha={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Za={},Ya=()=>!!globalThis.Zone;function Ga(e){if(Za[e])return Za[e];const t=globalThis[e],n=t.prototype,r=e in Va?Va[e]:void 0,i=Boolean(r&&r.every((e=>{var t,r;return Boolean(null==(r=null==(t=Object.getOwnPropertyDescriptor(n,e))?void 0:t.get)?void 0:r.toString().includes("[native code]"))}))),o=e in Ha?Ha[e]:void 0,s=Boolean(o&&o.every((e=>{var t;return"function"==typeof n[e]&&(null==(t=n[e])?void 0:t.toString().includes("[native code]"))})));if(i&&s&&!Ya())return Za[e]=t.prototype,t.prototype;try{const r=document.createElement("iframe");document.body.appendChild(r);const i=r.contentWindow;if(!i)return t.prototype;const o=i[e].prototype;return document.body.removeChild(r),o?Za[e]=o:n}catch{return n}}const qa={};function $a(e,t,n){var r;const i=`${e}.${String(n)}`;if(qa[i])return qa[i].call(t);const o=Ga(e),s=null==(r=Object.getOwnPropertyDescriptor(o,n))?void 0:r.get;return s?(qa[i]=s,s.call(t)):t[n]}const Xa={};function Ka(e,t,n){const r=`${e}.${String(n)}`;if(Xa[r])return Xa[r].bind(t);const i=Ga(e)[n];return"function"!=typeof i?t[n]:(Xa[r]=i,i.bind(t))}const Ja={childNodes:function(e){return $a("Node",e,"childNodes")},parentNode:function(e){return $a("Node",e,"parentNode")},parentElement:function(e){return $a("Node",e,"parentElement")},textContent:function(e){return $a("Node",e,"textContent")},contains:function(e,t){return Ka("Node",e,"contains")(t)},getRootNode:function(e){return Ka("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?$a("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?$a("Element",e,"shadowRoot"):null},querySelector:function(e,t){return $a("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return $a("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return Ga("MutationObserver").constructor}},Qa="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let el={map:{},getId:()=>(console.error(Qa),-1),getNode:()=>(console.error(Qa),null),removeNodeFromMap(){console.error(Qa)},has:()=>(console.error(Qa),!1),reset(){console.error(Qa)}};function tl(e){const t={},n=(e,n)=>{const r={value:e,parent:n,children:[]};return t[e.node.id]=r,r},r=[];for(const i of e){const{nextId:e,parentId:o}=i;if(e&&e in t){const o=t[e];if(o.parent){const e=o.parent.children.indexOf(o);o.parent.children.splice(e,0,n(i,o.parent))}else{const e=r.indexOf(o);r.splice(e,0,n(i,null))}}else if(o in t){const e=t[o];e.children.push(n(i,e))}else r.push(n(i,null))}return r}function nl(e,t){t(e.value);for(let n=e.children.length-1;n>=0;n--)nl(e.children[n],t)}function rl(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function il(e,t){var n,r;const i=null==(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?void 0:r.frameElement;if(!i||i===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const o=i.getBoundingClientRect(),s=il(i,t),a=o.height/i.clientHeight;return{x:o.x*s.relativeScale+s.x,y:o.y*s.relativeScale+s.y,relativeScale:a,absoluteScale:s.absoluteScale*a}}function ol(e){return!!e&&(e instanceof sa&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Ja.shadowRoot(e)))}function sl(e,t){const n=e[t[0]];return 1===t.length?n:sl(n.cssRules[t[1]].cssRules,t.slice(2))}function al(e){const t=[...e],n=t.pop();return{positions:t,index:n}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(el=new Proxy(el,{get:(e,t,n)=>("map"===t&&console.error(Qa),Reflect.get(e,t,n))})),Date.now().toString();class ll{constructor(){o(this,"id",1),o(this,"styleIDMap",new WeakMap),o(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}for(var cl=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(cl||{}),ul=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ul||{}),dl=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(dl||{}),hl=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(hl||{}),pl=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(pl||{}),fl=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(fl||{}),ml=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ml||{}),gl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vl="undefined"==typeof Uint8Array?[]:new Uint8Array(256),yl=0;yl<64;yl++)vl[gl.charCodeAt(yl)]=yl;var bl=function(e){var t,n,r,i,o,s=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var c=new ArrayBuffer(s),u=new Uint8Array(c);for(t=0;t<a;t+=4)n=vl[e.charCodeAt(t)],r=vl[e.charCodeAt(t+1)],i=vl[e.charCodeAt(t+2)],o=vl[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&o;return c};var wl;"undefined"!=typeof window&&window.Blob&&new Blob([(wl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Uint8Array.from(atob(wl),(e=>e.charCodeAt(0))))],{type:"text/javascript;charset=utf-8"});try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(r=e.contentWindow)?void 0:r.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}function xl(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map((function(e){e(n)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,n)}))}}}d();const _l=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"}));function Cl(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&!0!==e.__forceSmoothScrollPolyfill__)return;const n=e.HTMLElement||e.Element,r=468,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||l,scrollIntoView:n.prototype.scrollIntoView},o=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;const s=(a=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(a)?1:0);var a;function l(e,t){this.scrollLeft=e,this.scrollTop=t}function c(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(e,t){return"Y"===t?e.clientHeight+s<e.scrollHeight:"X"===t?e.clientWidth+s<e.scrollWidth:void 0}function d(t,n){const r=e.getComputedStyle(t,null)["overflow"+n];return"auto"===r||"scroll"===r}function h(e){const t=u(e,"Y")&&d(e,"Y"),n=u(e,"X")&&d(e,"X");return t||n}function p(t){let n,i,s,a=(o()-t.startTime)/r;var l;a=a>1?1:a,l=a,n=.5*(1-Math.cos(Math.PI*l)),i=t.startX+(t.x-t.startX)*n,s=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,i,s),i===t.x&&s===t.y||e.requestAnimationFrame(p.bind(e,t))}function f(n,r,s){let a,c,u,d;const h=o();n===t.body?(a=e,c=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,d=i.scroll):(a=n,c=n.scrollLeft,u=n.scrollTop,d=l),p({scrollable:a,method:d,startTime:h,startX:c,startY:u,x:r,y:s})}e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?f.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):i.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?i.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):f.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0===arguments[0])return;if(!0===c(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");return void i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}const e=arguments[0].left,t=arguments[0].top;f.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)},n.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},n.prototype.scrollIntoView=function(){if(!0===c(arguments[0]))return void i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);const n=function(e){for(;e!==t.body&&!1===h(e);)e=e.parentNode||e.host;return e}(this),r=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==t.body?(f.call(this,n,n.scrollLeft+o.left-r.left,n.scrollTop+o.top-r.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}}class El{constructor(e=[],t){o(this,"timeOffset",0),o(this,"speed"),o(this,"actions"),o(this,"raf",null),o(this,"lastTimestamp"),this.actions=e,this.speed=t.speed}addAction(e){const t=!0===this.raf;if(!this.actions.length||this.actions[this.actions.length-1].delay<=e.delay)this.actions.push(e);else{const t=this.findActionIndex(e);this.actions.splice(t,0,e)}t&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){const e=performance.now();for(this.timeOffset+=(e-this.lastTimestamp)*this.speed,this.lastTimestamp=e;this.actions.length;){const e=this.actions[0];if(!(this.timeOffset>=e.delay))break;this.actions.shift(),e.doAction()}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(!0!==this.raf&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(e){this.speed=e}isActive(){return null!==this.raf}findActionIndex(e){let t=0,n=this.actions.length-1;for(;t<=n;){const r=Math.floor((t+n)/2);if(this.actions[r].delay<e.delay)t=r+1;else{if(!(this.actions[r].delay>e.delay))return r+1;n=r-1}}return t}}function Sl(e,t){if(e.type===cl.IncrementalSnapshot&&e.data.source===ul.MouseMove&&e.data.positions&&e.data.positions.length){const n=e.data.positions[0].timeOffset,r=e.timestamp+n;return e.delay=r-t,r-t}return e.delay=e.timestamp-t,e.delay}function kl(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}var Nl,Rl;(Rl=Nl||(Nl={}))[Rl.NotStarted=0]="NotStarted",Rl[Rl.Running=1]="Running",Rl[Rl.Stopped=2]="Stopped";var Il={type:"xstate.init"};function Ml(e){return void 0===e?[]:[].concat(e)}function Al(e){return{type:"xstate.assign",assignment:e}}function Ol(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function Tl(e){return function(t){return e===t}}function zl(e){return"string"==typeof e?{type:e}:e}function Dl(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Tl(e)}}function jl(e,t,n){var r=t,i=!1;return[e.filter((function(e){if("xstate.assign"===e.type){i=!0;var t=Object.assign({},r);return"function"==typeof e.assignment?t=e.assignment(r,n):Object.keys(e.assignment).forEach((function(i){t[i]="function"==typeof e.assignment[i]?e.assignment[i](r,n):e.assignment[i]})),r=t,!1}return!0})),r,i]}function Pl(e,t){void 0===t&&(t={});var n=kl(jl(Ml(e.states[e.initial].entry).map((function(e){return Ol(e,t.actions)})),e.context,Il),2),r=n[0],i=n[1],o={config:e,_options:t,initialState:{value:e.initial,actions:r,context:i,matches:Tl(e.initial)},transition:function(t,n){var r,i,s="string"==typeof t?{value:t,context:e.context}:t,a=s.value,l=s.context,c=zl(n),u=e.states[a];if(u.on){var d=Ml(u.on[c.type]);try{for(var h=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(d),p=h.next();!p.done;p=h.next()){var f=p.value;if(void 0===f)return Dl(a,l);var m="string"==typeof f?{target:f}:f,g=m.target,v=m.actions,y=void 0===v?[]:v,b=m.cond,w=void 0===b?function(){return!0}:b,x=void 0===g,_=null!=g?g:a,C=e.states[_];if(w(l,c)){var E=kl(jl((x?Ml(y):[].concat(u.exit,y,C.entry).filter((function(e){return e}))).map((function(e){return Ol(e,o._options.actions)})),l,c),3),S=E[0],k=E[1],N=E[2],R=null!=g?g:a;return{value:R,context:k,actions:S,changed:g!==a||S.length>0||N,matches:Tl(R)}}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}return Dl(a,l)}};return o}var Ll=function(e,t){return e.actions.forEach((function(n){var r=n.exec;return r&&r(e.context,t)}))};function Fl(e){var t=e.initialState,n=Nl.NotStarted,r=new Set,i={_machine:e,send:function(i){n===Nl.Running&&(t=e.transition(t,i),Ll(t,zl(i)),r.forEach((function(e){return e(t)})))},subscribe:function(e){return r.add(e),e(t),{unsubscribe:function(){return r.delete(e)}}},start:function(r){if(r){var o="object"==typeof r?r:{context:e.config.context,value:r};t={value:o.value,actions:[],context:o.context,matches:Tl(o.value)}}return n=Nl.Running,Ll(t,Il),i},stop:function(){return n=Nl.Stopped,r.clear(),i},get state(){return t},get status(){return n}};return i}function Bl(e,{getCastFn:t,applyEventsSynchronously:n,emitter:r}){return Fl(Pl({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:Al({lastPlayedEvent:(e,t)=>"CAST_EVENT"===t.type?t.payload.event:e.lastPlayedEvent}),recordTimeOffset:Al(((e,t)=>{let n=e.timeOffset;return"payload"in t&&"timeOffset"in t.payload&&(n=t.payload.timeOffset),{...e,timeOffset:n,baselineTime:e.events[0].timestamp+n}})),play(e){var i;const{timer:o,events:s,baselineTime:a,lastPlayedEvent:l}=e;o.clear();for(const e of s)Sl(e,a);const c=function(e,t){for(let n=e.length-1;n>=0;n--){const r=e[n];if(r.type===cl.Meta&&r.timestamp<=t)return e.slice(n)}return e}(s,a);let u=null==l?void 0:l.timestamp;(null==l?void 0:l.type)===cl.IncrementalSnapshot&&l.data.source===ul.MouseMove&&(u=l.timestamp+(null==(i=l.data.positions[0])?void 0:i.timeOffset)),a<(u||0)&&r.emit(fl.PlayBack);const d=new Array;for(const e of c)if(!(u&&u<a&&(e.timestamp<=u||e===l)))if(e.timestamp<a)d.push(e);else{const n=t(e,!1);o.addAction({doAction:()=>{n()},delay:e.delay})}n(d),r.emit(fl.Flush),o.start()},pause(e){e.timer.clear()},resetLastPlayedEvent:Al((e=>({...e,lastPlayedEvent:null}))),startLive:Al({baselineTime:(e,t)=>(e.timer.start(),"TO_LIVE"===t.type&&t.payload.baselineTime?t.payload.baselineTime:Date.now())}),addEvent:Al(((e,n)=>{const{baselineTime:r,timer:i,events:o}=e;if("ADD_EVENT"===n.type){const{event:e}=n.payload;Sl(e,r);let s=o.length-1;if(!o[s]||o[s].timestamp<=e.timestamp)o.push(e);else{let t=-1,n=0;for(;n<=s;){const t=Math.floor((n+s)/2);o[t].timestamp<=e.timestamp?n=t+1:s=t-1}-1===t&&(t=n),o.splice(t,0,e)}const a=e.timestamp<r,l=t(e,a);a?l():i.isActive()&&i.addAction({doAction:()=>{l()},delay:e.delay})}return{...e,events:o}}))}}))}const Ul=new Map;function Wl(e,t){let n=Ul.get(e);return n||(n=new Map,Ul.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}function Vl(e,t,n){return async r=>{if(r&&"object"==typeof r&&"rr_type"in r){if(n&&(n.isUnchanged=!1),"ImageBitmap"===r.rr_type&&"args"in r){const i=await Vl(e,t,n)(r.args);return await createImageBitmap.apply(null,i)}if("index"in r){if(n||null===t)return r;const{rr_type:e,index:i}=r;return Wl(t,e)[i]}if("args"in r){const{rr_type:i,args:o}=r;return new(0,window[i])(...await Promise.all(o.map(Vl(e,t,n))))}if("base64"in r)return bl(r.base64);if("src"in r){const t=e.get(r.src);if(t)return t;{const t=new Image;return t.src=r.src,e.set(r.src,t),t}}if("data"in r&&"Blob"===r.rr_type){const i=await Promise.all(r.data.map(Vl(e,t,n)));return new Blob(i,{type:r.type})}}else if(Array.isArray(r)){return await Promise.all(r.map(Vl(e,t,n)))}return r}}const Hl=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];async function Zl({mutation:e,target:t,type:n,imageMap:r,errorHandler:i}){try{const i=function(e,t){try{return t===hl.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(e){return null}}(t,n);if(!i)return;if(e.setter)return void(i[e.property]=e.args[0]);const o=i[e.property],s=await Promise.all(e.args.map(Vl(r,i)));!function(e,t){if(!(null==t?void 0:t.constructor))return;const{name:n}=t.constructor;if(!Hl.includes(n))return;const r=Wl(e,n);r.includes(t)||r.push(t)}(i,o.apply(i,s))}catch(t){i(e,t)}}async function Yl({event:e,mutation:t,target:n,imageMap:r,canvasEventMap:i,errorHandler:o}){try{const s=i.get(e)||t,a="commands"in s?s.commands:[s];if([hl.WebGL,hl.WebGL2].includes(t.type)){for(let e=0;e<a.length;e++){const i=a[e];await Zl({mutation:i,type:t.type,target:n,imageMap:r,errorHandler:o})}return}await async function({event:e,mutations:t,target:n,imageMap:r,errorHandler:i}){const o=n.getContext("2d");if(!o)return void i(t[0],new Error("Canvas context is null"));const s=t.map((async e=>Promise.all(e.args.map(Vl(r,o)))));(await Promise.all(s)).forEach(((n,s)=>{const a=t[s];try{if(a.setter)return void(o[a.property]=a.args[0]);const t=o[a.property];"drawImage"===a.property&&"string"==typeof a.args[0]?(r.get(e),t.apply(o,a.args)):t.apply(o,n)}catch(e){i(a,e)}}))}({event:e,mutations:a,target:n,imageMap:r,errorHandler:o})}catch(e){o(t,e)}}class Gl{constructor(e){o(this,"mediaMap",new Map),o(this,"warn"),o(this,"service"),o(this,"speedService"),o(this,"emitter"),o(this,"getCurrentTime"),o(this,"metadataCallbackMap",new Map),this.warn=e.warn,this.service=e.service,this.speedService=e.speedService,this.emitter=e.emitter,this.getCurrentTime=e.getCurrentTime,this.emitter.on(fl.Start,this.start.bind(this)),this.emitter.on(fl.SkipStart,this.start.bind(this)),this.emitter.on(fl.Pause,this.pause.bind(this)),this.emitter.on(fl.Finish,this.pause.bind(this)),this.speedService.subscribe((()=>{this.syncAllMediaElements()}))}syncAllMediaElements(e={pause:!1}){this.mediaMap.forEach(((t,n)=>{this.syncTargetWithState(n),e.pause&&n.pause()}))}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:e,target:t,mediaState:n}){if(n.isPlaying){const r=(e-n.lastInteractionTimeOffset)/1e3*n.playbackRate,i="duration"in t&&t.duration;if(Number.isNaN(i))return void this.waitForMetadata(t);let o=n.currentTimeAtLastInteraction+r;t.loop&&!1!==i&&(o%=i),t.currentTime=o}else t.pause(),t.currentTime=n.currentTimeAtLastInteraction}waitForMetadata(e){if(this.metadataCallbackMap.has(e))return;if(!("addEventListener"in e))return;const t=()=>{this.metadataCallbackMap.delete(e);const t=this.mediaMap.get(e);t&&this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t})};this.metadataCallbackMap.set(e,t),e.addEventListener("loadedmetadata",t,{once:!0})}getMediaStateFromMutation({target:e,timeOffset:t,mutation:n}){const r=this.mediaMap.get(e),{type:i,playbackRate:o,currentTime:s,muted:a,volume:l,loop:c}=n;return{isPlaying:i===pl.Play||i!==pl.Pause&&((null==r?void 0:r.isPlaying)||null!==e.getAttribute("autoplay")),currentTimeAtLastInteraction:s??(null==r?void 0:r.currentTimeAtLastInteraction)??0,lastInteractionTimeOffset:t,playbackRate:o??(null==r?void 0:r.playbackRate)??1,volume:l??(null==r?void 0:r.volume)??1,muted:a??(null==r?void 0:r.muted)??null===e.getAttribute("muted"),loop:c??(null==r?void 0:r.loop)??null===e.getAttribute("loop")}}syncTargetWithState(e){const t=this.mediaMap.get(e);if(!t)return;const{muted:n,loop:r,volume:i,isPlaying:o}=t,s=this.service.state.matches("paused"),a=t.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t}),e.volume!==i&&(e.volume=i),e.muted=n,e.loop=r,e.playbackRate!==a&&(e.playbackRate=a),o&&!s?e.play():e.pause()}catch(e){this.warn(`Failed to replay media interactions: ${e.message||e}`)}}addMediaElements(e,t,n){if(!["AUDIO","VIDEO"].includes(e.nodeName))return;const r=e,i=n.getMeta(r);if(!i||!("attributes"in i))return;const o=this.service.state.matches("paused"),s=i.attributes;let a=!1;a=s.rr_mediaState?"played"===s.rr_mediaState:null!==r.getAttribute("autoplay"),a&&o&&r.pause();let l=1;"number"==typeof s.rr_mediaPlaybackRate&&(l=s.rr_mediaPlaybackRate);let c=!1;c="boolean"==typeof s.rr_mediaMuted?s.rr_mediaMuted:null!==r.getAttribute("muted");let u=!1;u="boolean"==typeof s.rr_mediaLoop?s.rr_mediaLoop:null!==r.getAttribute("loop");let d=1;"number"==typeof s.rr_mediaVolume&&(d=s.rr_mediaVolume);let h=0;"number"==typeof s.rr_mediaCurrentTime&&(h=s.rr_mediaCurrentTime),this.mediaMap.set(r,{isPlaying:a,currentTimeAtLastInteraction:h,lastInteractionTimeOffset:t,playbackRate:l,volume:d,muted:c,loop:u}),this.syncTargetWithState(r)}mediaMutation({target:e,timeOffset:t,mutation:n}){this.mediaMap.set(e,this.getMediaStateFromMutation({target:e,timeOffset:t,mutation:n})),this.syncTargetWithState(e)}isSupportedMediaElement(e){return["AUDIO","VIDEO"].includes(e.nodeName)}reset(){this.mediaMap.clear()}}function ql(e,t){if("DIALOG"!==e.nodeName||e instanceof sa)return;const n=e,r=n.open,i=r&&n.matches("dialog:modal"),o=n.getAttribute("rr_open_mode"),s="string"==typeof(null==t?void 0:t.attributes.open)||"string"==typeof n.getAttribute("open"),a="modal"===o;r&&!(i&&"non-modal"===o||!i&&a)||(n.isConnected?(r&&n.close(),s&&(a?n.showModal():n.show())):console.warn("dialog is not attached to the dom",n))}function $l(e,t){if("DIALOG"!==e.nodeName||e instanceof sa)return;const n=e;n.isConnected?null===t.attributes.open&&(n.removeAttribute("open"),n.removeAttribute("rr_open_mode")):console.warn("dialog is not attached to the dom",n)}const Xl=xl||_l,Kl="[replayer]",Jl={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Ql(e){return e.type==cl.IncrementalSnapshot&&(e.data.source==ul.TouchMove||e.data.source==ul.MouseInteraction&&e.data.type==dl.TouchStart)}class ec{constructor(e,t){if(o(this,"wrapper"),o(this,"iframe"),o(this,"service"),o(this,"speedService"),o(this,"config"),o(this,"usingVirtualDom",!1),o(this,"virtualDom",new Ra),o(this,"mouse"),o(this,"mouseTail",null),o(this,"tailPositions",[]),o(this,"emitter",Xl()),o(this,"nextUserInteractionEvent"),o(this,"legacy_missingNodeRetryMap",{}),o(this,"cache",rr()),o(this,"imageMap",new Map),o(this,"canvasEventMap",new Map),o(this,"mirror",d()),o(this,"styleMirror",new ll),o(this,"mediaManager"),o(this,"firstFullSnapshot",null),o(this,"newDocumentQueue",[]),o(this,"mousePos",null),o(this,"touchActive",null),o(this,"lastMouseDownEvent",null),o(this,"lastHoveredRootNode"),o(this,"lastSelectionData",null),o(this,"constructedStyleMutations",[]),o(this,"adoptedStyleSheets",[]),o(this,"handleResize",(e=>{this.iframe.style.display="inherit";for(const t of[this.mouseTail,this.iframe])t&&(t.setAttribute("width",String(e.width)),t.setAttribute("height",String(e.height)))})),o(this,"applyEventsSynchronously",(e=>{for(const t of e){switch(t.type){case cl.DomContentLoaded:case cl.Load:case cl.Custom:continue;case cl.FullSnapshot:case cl.Meta:case cl.Plugin:case cl.IncrementalSnapshot:}this.getCastFn(t,!0)()}})),o(this,"getCastFn",((e,t=!1)=>{let n;switch(e.type){case cl.DomContentLoaded:case cl.Load:break;case cl.Custom:n=()=>{this.emitter.emit(fl.CustomEvent,e)};break;case cl.Meta:n=()=>this.emitter.emit(fl.Resize,{width:e.data.width,height:e.data.height});break;case cl.FullSnapshot:n=()=>{var n;if(this.firstFullSnapshot){if(this.firstFullSnapshot===e)return void(this.firstFullSnapshot=!0)}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(e,t),null==(n=this.iframe.contentWindow)||n.scrollTo(e.data.initialOffset)};break;case cl.IncrementalSnapshot:n=()=>{if(this.applyIncremental(e,t),!t&&(e===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(const t of this.service.state.context.events)if(!(t.timestamp<=e.timestamp)&&this.isUserInteraction(t)){t.delay-e.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=t);break}if(this.nextUserInteractionEvent){const t=this.nextUserInteractionEvent.delay-e.delay,n={speed:Math.min(Math.round(t/5e3),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:n}),this.emitter.emit(fl.SkipStart,n)}}}}return()=>{n&&n();for(const n of this.config.plugins||[])n.handler&&n.handler(e,t,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:e}});const r=this.service.state.context.events.length-1;if(!this.config.liveMode&&e===this.service.state.context.events[r]){const t=()=>{r<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(fl.Finish))};let n=50;e.type===cl.IncrementalSnapshot&&e.data.source===ul.MouseMove&&e.data.positions.length&&(n+=Math.max(0,-e.data.positions[0].timeOffset)),setTimeout(t,n)}this.emitter.emit(fl.EventCast,e)}})),!(null==t?void 0:t.liveMode)&&e.length<2)throw new Error("Replayer need at least 2 events.");const n={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:1e4,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:Jl,useVirtualDom:!0,logger:console};this.config=Object.assign({},n,t),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(fl.Resize,this.handleResize),this.setupDom();for(const e of this.config.plugins||[])e.getMirror&&e.getMirror({nodeMirror:this.mirror});this.emitter.on(fl.Flush,(()=>{if(this.usingVirtualDom){const e={mirror:this.mirror,applyCanvas:(e,t,n)=>{Yl({event:e,mutation:t,target:n,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(e,t)=>{e.source===ul.StyleSheetRule?this.applyStyleSheetRule(e,t):e.source===ul.StyleDeclaration&&this.applyStyleDeclaration(e,t)},afterAppend:(e,t)=>{for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})}};if(this.iframe.contentDocument)try{Ca(this.iframe.contentDocument,this.virtualDom,e,this.virtualDom.mirror)}catch(e){console.warn(e)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const t in this.legacy_missingNodeRetryMap)try{const n=this.legacy_missingNodeRetryMap[t],r=Sa(n.node,this.mirror,this.virtualDom.mirror);Ca(r,n.node,e,this.virtualDom.mirror),n.node=r}catch(e){this.warn(e)}this.constructedStyleMutations.forEach((e=>{this.applyStyleSheetMutation(e)})),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach((e=>{this.applyAdoptedStyleSheet(e)})),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),!0===this.touchActive?this.mouse.classList.add("touch-active"):!1===this.touchActive&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[e,t]=this.lastMouseDownEvent;e.dispatchEvent(t)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)})),this.emitter.on(fl.PlayBack,(()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()}));const r=new El([],{speed:this.config.speed});this.service=Bl({events:e.map((e=>t&&t.unpackFn?t.unpackFn(e):e)).sort(((e,t)=>e.timestamp-t.timestamp)),timer:r,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe((e=>{this.emitter.emit(fl.StateChange,{player:e})})),this.speedService=Fl(Pl({id:"speed",context:{normalSpeed:-1,timer:r},initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(e,t)=>{"payload"in t&&e.timer.setSpeed(t.payload.speed)},recordSpeed:Al({normalSpeed:e=>e.timer.speed}),restoreSpeed:e=>{e.timer.setSpeed(e.normalSpeed)}}})),this.speedService.start(),this.speedService.subscribe((e=>{this.emitter.emit(fl.StateChange,{speed:e})})),this.mediaManager=new Gl({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const i=this.service.state.context.events.find((e=>e.type===cl.Meta)),s=this.service.state.context.events.find((e=>e.type===cl.FullSnapshot));if(i){const{width:e,height:t}=i.data;setTimeout((()=>{this.emitter.emit(fl.Resize,{width:e,height:t})}),0)}s&&setTimeout((()=>{var e;this.firstFullSnapshot||(this.firstFullSnapshot=s,this.rebuildFullSnapshot(s),null==(e=this.iframe.contentWindow)||e.scrollTo(s.data.initialOffset))}),1),this.service.state.context.events.find(Ql)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(e,t){return this.emitter.on(e,t),this}off(e,t){return this.emitter.off(e,t),this}setConfig(e){Object.keys(e).forEach((t=>{e[t],this.config[t]=e[t]})),this.config.skipInactive||this.backToNormal(),void 0!==e.speed&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),void 0!==e.mouseTail&&(!1===e.mouseTail?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){const e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){const{baselineTime:e,events:t}=this.service.state.context;return e-t[0].timestamp}getMirror(){return this.mirror}play(e=0){var t,n;this.service.state.matches("paused")||this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}}),null==(n=null==(t=this.iframe.contentDocument)?void 0:t.getElementsByTagName("html")[0])||n.classList.remove("rrweb-paused"),this.emitter.emit(fl.Start)}pause(e){var t,n;void 0===e&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),"number"==typeof e&&(this.play(e),this.service.send({type:"PAUSE"})),null==(n=null==(t=this.iframe.contentDocument)?void 0:t.getElementsByTagName("html")[0])||n.classList.add("rrweb-paused"),this.emitter.emit(fl.Pause)}resume(e=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(e),this.emitter.emit(fl.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(fl.Destroy)}startLive(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})}addEvent(e){const t=this.config.unpackFn?this.config.unpackFn(e):e;Ql(t)&&this.mouse.classList.add("touch-device"),Promise.resolve().then((()=>this.service.send({type:"ADD_EVENT",payload:{event:t}})))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=rr()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),!1!==this.config.mouseTail&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");const e=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&e.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",e.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(Cl(this.iframe.contentWindow,this.iframe.contentDocument),function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}(this.iframe.contentWindow))}rebuildFullSnapshot(e,t=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};const n=[],r=new Set,i=(t,i)=>{if("DIALOG"===t.nodeName&&r.add(t),this.collectIframeAndAttachDocument(n,t),this.mediaManager.isSupportedMediaElement(t)){const{events:n}=this.service.state.context;this.mediaManager.addMediaElements(t,e.timestamp-n[0].timestamp,this.mirror)}for(const e of this.config.plugins||[])e.onBuild&&e.onBuild(t,{id:i,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),ar(e.data.node,{doc:this.iframe.contentDocument,afterAppend:i,cache:this.cache,mirror:this.mirror}),i(this.iframe.contentDocument,e.data.node.id);for(const{mutationInQueue:e,builtNode:t}of n)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter((t=>t!==e));const{documentElement:o,head:s}=this.iframe.contentDocument;this.insertStyleRules(o,s),r.forEach((e=>ql(e))),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(fl.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var n;const r=(i=this.config.blockClass,[`.${i} { background: currentColor }`,"noscript { display: none !important; }"]).concat(this.config.insertStyleRules);var i;if(this.config.pauseAnimation&&r.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),r.length)if(this.usingVirtualDom){const n=this.virtualDom.createElement("style");this.virtualDom.mirror.add(n,Wa(n,this.virtualDom.unserializedId)),e.insertBefore(n,t),n.rules.push({source:ul.StyleSheetRule,adds:r.map(((e,t)=>({rule:e,index:t})))})}else{const i=document.createElement("style");e.insertBefore(i,t);for(let e=0;e<r.length;e++)null==(n=i.sheet)||n.insertRule(r[e],e)}}attachDocumentToIframe(e,t){const n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,r=[],i=new Set,o=(e,o)=>{"DIALOG"===e.nodeName&&i.add(e),this.collectIframeAndAttachDocument(r,e);const s=n.getMeta(e);if((null==s?void 0:s.type)===ml.Element&&"HTML"===(null==s?void 0:s.tagName.toUpperCase())){const{documentElement:e,head:n}=t.contentDocument;this.insertStyleRules(e,n)}if(!this.usingVirtualDom)for(const t of this.config.plugins||[])t.onBuild&&t.onBuild(e,{id:o,replayer:this})};sr(e.node,{doc:t.contentDocument,mirror:n,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(t.contentDocument,e.node.id);for(const{mutationInQueue:e,builtNode:t}of r)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter((t=>t!==e));i.forEach((e=>ql(e)))}collectIframeAndAttachDocument(e,t){if(rl(t,this.mirror)){const n=this.newDocumentQueue.find((e=>e.parentId===this.mirror.getId(t)));n&&e.push({mutationInQueue:n,builtNode:t})}}waitForStylesheetLoad(){var e;const t=null==(e=this.iframe.contentDocument)?void 0:e.head;if(t){const e=new Set;let n,r=this.service.state;const i=()=>{r=this.service.state};this.emitter.on(fl.Start,i),this.emitter.on(fl.Pause,i);const o=()=>{this.emitter.off(fl.Start,i),this.emitter.off(fl.Pause,i)};t.querySelectorAll('link[rel="stylesheet"]').forEach((t=>{t.sheet||(e.add(t),t.addEventListener("load",(()=>{e.delete(t),0===e.size&&-1!==n&&(r.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(fl.LoadStylesheetEnd),n&&clearTimeout(n),o())})))})),e.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(fl.LoadStylesheetStart),n=setTimeout((()=>{r.matches("playing")&&this.play(this.getCurrentTime()),n=-1,o()}),this.config.loadTimeout))}}async preloadAllImages(){const e=[];for(const t of this.service.state.context.events)if(t.type===cl.IncrementalSnapshot&&t.data.source===ul.CanvasMutation){e.push(this.deserializeAndPreloadCanvasEvents(t.data,t));("commands"in t.data?t.data.commands:[t.data]).forEach((e=>{this.preloadImages(e,t)}))}return Promise.all(e)}preloadImages(e,t){if("drawImage"===e.property&&"string"==typeof e.args[0]&&!this.imageMap.has(t)){const e=document.createElement("canvas"),t=e.getContext("2d"),n=null==t?void 0:t.createImageData(e.width,e.height);null==t||t.putImageData(n,0,0)}}async deserializeAndPreloadCanvasEvents(e,t){if(!this.canvasEventMap.has(t)){const n={isUnchanged:!0};if("commands"in e){const r=await Promise.all(e.commands.map((async e=>{const t=await Promise.all(e.args.map(Vl(this.imageMap,null,n)));return{...e,args:t}})));!1===n.isUnchanged&&this.canvasEventMap.set(t,{...e,commands:r})}else{const r=await Promise.all(e.args.map(Vl(this.imageMap,null,n)));!1===n.isUnchanged&&this.canvasEventMap.set(t,{...e,args:r})}}}applyIncremental(e,t){var n,r,i;const{data:o}=e;switch(o.source){case ul.Mutation:try{this.applyMutation(o,t)}catch(e){this.warn(`Exception in mutation ${e.message||e}`,o)}break;case ul.Drag:case ul.TouchMove:case ul.MouseMove:if(t){const e=o.positions[o.positions.length-1];this.mousePos={x:e.x,y:e.y,id:e.id,debugData:o}}else o.positions.forEach((n=>{const r={doAction:()=>{this.moveAndHover(n.x,n.y,n.id,t,o)},delay:n.timeOffset+e.timestamp-this.service.state.context.baselineTime};this.timer.addAction(r)})),this.timer.addAction({doAction(){},delay:e.delay-(null==(n=o.positions[0])?void 0:n.timeOffset)});break;case ul.MouseInteraction:{if(-1===o.id)break;const e=new Event(dl[o.type].toLowerCase()),n=this.mirror.getNode(o.id);if(!n)return this.debugNodeNotFound(o,o.id);this.emitter.emit(fl.MouseInteraction,{type:o.type,target:n});const{triggerFocus:r}=this.config;switch(o.type){case dl.Blur:"blur"in n&&n.blur();break;case dl.Focus:r&&n.focus&&n.focus({preventScroll:!0});break;case dl.Click:case dl.TouchStart:case dl.TouchEnd:case dl.MouseDown:case dl.MouseUp:t?(o.type===dl.TouchStart?this.touchActive=!0:o.type===dl.TouchEnd&&(this.touchActive=!1),o.type===dl.MouseDown?this.lastMouseDownEvent=[n,e]:o.type===dl.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===dl.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,t,o),o.type===dl.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===dl.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===dl.TouchEnd?this.mouse.classList.remove("touch-active"):n.dispatchEvent(e));break;case dl.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:n.dispatchEvent(e)}break}case ul.Scroll:if(-1===o.id)break;if(this.usingVirtualDom){const e=this.virtualDom.mirror.getNode(o.id);if(!e)return this.debugNodeNotFound(o,o.id);e.scrollData=o;break}this.applyScroll(o,t);break;case ul.ViewportResize:this.emitter.emit(fl.Resize,{width:o.width,height:o.height});break;case ul.Input:if(-1===o.id)break;if(this.usingVirtualDom){const e=this.virtualDom.mirror.getNode(o.id);if(!e)return this.debugNodeNotFound(o,o.id);e.inputData=o;break}this.applyInput(o);break;case ul.MediaInteraction:{const t=this.usingVirtualDom?this.virtualDom.mirror.getNode(o.id):this.mirror.getNode(o.id);if(!t)return this.debugNodeNotFound(o,o.id);const n=t,{events:r}=this.service.state.context;this.mediaManager.mediaMutation({target:n,timeOffset:e.timestamp-r[0].timestamp,mutation:o});break}case ul.StyleSheetRule:case ul.StyleDeclaration:this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&(null==(r=this.virtualDom.mirror.getNode(o.id))||r.rules.push(o)):this.applyStyleSheetMutation(o);break;case ul.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const t=this.virtualDom.mirror.getNode(o.id);if(!t)return this.debugNodeNotFound(o,o.id);t.canvasMutations.push({event:e,mutation:o})}else{const t=this.mirror.getNode(o.id);if(!t)return this.debugNodeNotFound(o,o.id);Yl({event:e,mutation:o,target:t,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break;case ul.Font:try{const e=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);null==(i=this.iframe.contentDocument)||i.fonts.add(e)}catch(e){this.warn(e)}break;case ul.Selection:if(t){this.lastSelectionData=o;break}this.applySelection(o);break;case ul.AdoptedStyleSheet:this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o)}}applyMutation(e,t){if(this.config.useVirtualDom&&!this.usingVirtualDom&&t&&(this.usingVirtualDom=!0,Ba(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(const e in this.legacy_missingNodeRetryMap)try{const t=this.legacy_missingNodeRetryMap[e],n=Fa(t.node,this.virtualDom,this.mirror);n&&(t.node=n)}catch(e){this.warn(e)}const n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;e.removes=e.removes.filter((t=>!!n.getNode(t.id)||(this.warnNodeNotFound(e,t.id),!1))),e.removes.forEach((t=>{var r;const i=n.getNode(t.id);if(!i)return;let o=n.getNode(t.parentId);if(!o)return this.warnNodeNotFound(e,t.parentId);if(t.isShadow&&ol(o)&&(o=o.shadowRoot),n.removeNodeFromMap(i),o)try{o.removeChild(i),this.usingVirtualDom&&"#text"===i.nodeName&&"STYLE"===o.nodeName&&(null==(r=o.rules)?void 0:r.length)>0&&(o.rules=[])}catch(t){if(!(t instanceof DOMException))throw t;this.warn("parent could not remove child in mutation",o,i,e)}}));const r={...this.legacy_missingNodeRetryMap},i=[],o=e=>{var t,o;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let s=n.getNode(e.parentId);if(!s)return e.node.type===ml.Document?this.newDocumentQueue.push(e):i.push(e);e.node.isShadow&&(ol(s)||s.attachShadow({mode:"open"}),s=s.shadowRoot);let a=null,l=null;if(e.previousId&&(a=n.getNode(e.previousId)),e.nextId&&(l=n.getNode(e.nextId)),(e=>{let t=null;return e.nextId&&(t=n.getNode(e.nextId)),null!==e.nextId&&void 0!==e.nextId&&-1!==e.nextId&&!t})(e))return i.push(e);if(e.node.rootId&&!n.getNode(e.node.rootId))return;const c=e.node.rootId?n.getNode(e.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(rl(s,n))return void this.attachDocumentToIframe(e,s);const u=(e,t)=>{if(!this.usingVirtualDom){ql(e);for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})}},d=sr(e.node,{doc:c,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:u});if(-1===e.previousId||-1===e.nextId)return void(r[e.node.id]={node:d,mutation:e});const h=n.getMeta(s);if(h&&h.type===ml.Element&&e.node.type===ml.Text){const e=Array.isArray(s.childNodes)?s.childNodes:Array.from(s.childNodes);if("textarea"===h.tagName)for(const t of e)t.nodeType===s.TEXT_NODE&&s.removeChild(t);else if("style"===h.tagName&&1===e.length)for(const t of e)t.nodeType!==s.TEXT_NODE||n.hasNode(t)||(d.textContent=t.textContent,s.removeChild(t))}else if((null==h?void 0:h.type)===ml.Document){const n=s;e.node.type===ml.DocumentType&&(null==(t=n.childNodes[0])?void 0:t.nodeType)===Node.DOCUMENT_TYPE_NODE&&n.removeChild(n.childNodes[0]),"HTML"===d.nodeName&&n.documentElement&&n.removeChild(n.documentElement)}if(a&&a.nextSibling&&a.nextSibling.parentNode?s.insertBefore(d,a.nextSibling):l&&l.parentNode?s.contains(l)?s.insertBefore(d,l):s.insertBefore(d,null):s.appendChild(d),u(d,e.node.id),this.usingVirtualDom&&"#text"===d.nodeName&&"STYLE"===s.nodeName&&(null==(o=s.rules)?void 0:o.length)>0&&(s.rules=[]),rl(d,this.mirror)){const e=this.mirror.getId(d),t=this.newDocumentQueue.find((t=>t.parentId===e));t&&(this.attachDocumentToIframe(t,d),this.newDocumentQueue=this.newDocumentQueue.filter((e=>e!==t)))}(e.previousId||e.nextId)&&this.legacy_resolveMissingNode(r,s,d,e)};e.adds.forEach((e=>{o(e)}));const s=Date.now();for(;i.length;){const e=tl(i);if(i.length=0,Date.now()-s>500){this.warn("Timeout in the loop, please check the resolve tree data:",e);break}for(const t of e){n.getNode(t.value.parentId)?nl(t,(e=>{o(e)})):this.debug("Drop resolve tree since there is no parent for the root node.",t)}}Object.keys(r).length&&Object.assign(this.legacy_missingNodeRetryMap,r),function(e){const t=new Set,n=[];for(let r=e.length;r--;){const i=e[r];t.has(i.id)||(n.push(i),t.add(i.id))}return n}(e.texts).forEach((t=>{var r;const i=n.getNode(t.id);if(!i){if(e.removes.find((e=>e.id===t.id)))return;return this.warnNodeNotFound(e,t.id)}const o=i.parentElement;if(t.value&&o&&"STYLE"===o.tagName?i.textContent=nr(t.value,this.cache):i.textContent=t.value,this.usingVirtualDom){const e=i.parentNode;(null==(r=null==e?void 0:e.rules)?void 0:r.length)>0&&(e.rules=[])}})),e.attributes.forEach((t=>{var r;const i=n.getNode(t.id);if(!i){if(e.removes.find((e=>e.id===t.id)))return;return this.warnNodeNotFound(e,t.id)}for(const e in t.attributes)if("string"==typeof e){const o=t.attributes[e];if(null===o)i.removeAttribute(e),"open"===e&&$l(i,t);else if("string"==typeof o)try{if("_cssText"===e&&("LINK"===i.nodeName||"STYLE"===i.nodeName))try{const e=n.getMeta(i);Object.assign(e.attributes,t.attributes);const r=sr(e,{doc:i.ownerDocument,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache}),o=i.nextSibling,s=i.parentNode;if(r&&s){s.removeChild(i),s.insertBefore(r,o),n.replace(t.id,r);break}}catch(e){}if("value"===e&&"TEXTAREA"===i.nodeName){const e=i;e.childNodes.forEach((t=>e.removeChild(t)));const t=null==(r=i.ownerDocument)?void 0:r.createTextNode(o);t&&e.appendChild(t)}else i.setAttribute(e,o);"rr_open_mode"===e&&"DIALOG"===i.nodeName&&ql(i,t)}catch(e){this.warn("An error occurred may due to the checkout feature.",e)}else if("style"===e){const e=o,t=i;for(const n in e)if(!1===e[n])t.style.removeProperty(n);else if(e[n]instanceof Array){const r=e[n];t.style.setProperty(n,r[0],r[1])}else{const r=e[n];t.style.setProperty(n,r)}}}}))}applyScroll(e,t){var n,r;const i=this.mirror.getNode(e.id);if(!i)return this.debugNodeNotFound(e,e.id);const o=this.mirror.getMeta(i);if(i===this.iframe.contentDocument)null==(n=this.iframe.contentWindow)||n.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else if((null==o?void 0:o.type)===ml.Document)null==(r=i.defaultView)||r.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else try{i.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"})}catch(e){}}applyInput(e){const t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch(e){}}applySelection(e){try{const t=new Set,n=e.ranges.map((({start:e,startOffset:n,end:r,endOffset:i})=>{const o=this.mirror.getNode(e),s=this.mirror.getNode(r);if(!o||!s)return;const a=new Range;a.setStart(o,n),a.setEnd(s,i);const l=o.ownerDocument,c=null==l?void 0:l.getSelection();return c&&t.add(c),{range:a,selection:c}}));t.forEach((e=>e.removeAllRanges())),n.forEach((e=>{var t;return e&&(null==(t=e.selection)?void 0:t.addRange(e.range))}))}catch(e){}}applyStyleSheetMutation(e){var t;let n=null;e.styleId?n=this.styleMirror.getStyle(e.styleId):e.id&&(n=(null==(t=this.mirror.getNode(e.id))?void 0:t.sheet)||null),n&&(e.source===ul.StyleSheetRule?this.applyStyleSheetRule(e,n):e.source===ul.StyleDeclaration&&this.applyStyleDeclaration(e,n))}applyStyleSheetRule(e,t){var n,r,i,o;if(null==(n=e.adds)||n.forEach((({rule:e,index:n})=>{try{if(Array.isArray(n)){const{positions:r,index:i}=al(n);sl(t.cssRules,r).insertRule(e,i)}else{const r=void 0===n?void 0:Math.min(n,t.cssRules.length);null==t||t.insertRule(e,r)}}catch(e){}})),null==(r=e.removes)||r.forEach((({index:e})=>{try{if(Array.isArray(e)){const{positions:n,index:r}=al(e);sl(t.cssRules,n).deleteRule(r||0)}else null==t||t.deleteRule(e)}catch(e){}})),e.replace)try{null==(i=t.replace)||i.call(t,e.replace)}catch(e){}if(e.replaceSync)try{null==(o=t.replaceSync)||o.call(t,e.replaceSync)}catch(e){}}applyStyleDeclaration(e,t){if(e.set){sl(t.rules,e.index).style.setProperty(e.set.property,e.set.value,e.set.priority)}if(e.remove){sl(t.rules,e.index).style.removeProperty(e.remove.property)}}applyAdoptedStyleSheet(e){var t;const n=this.mirror.getNode(e.id);if(!n)return;null==(t=e.styles)||t.forEach((e=>{var t;let r=null,i=null;if(ol(n)?i=(null==(t=n.ownerDocument)?void 0:t.defaultView)||null:"#document"===n.nodeName&&(i=n.defaultView),i)try{r=new i.CSSStyleSheet,this.styleMirror.add(r,e.styleId),this.applyStyleSheetRule({source:ul.StyleSheetRule,adds:e.rules},r)}catch(e){}}));let r=0;const i=(e,t)=>{const n=t.map((e=>this.styleMirror.getStyle(e))).filter((e=>null!==e));ol(e)?e.shadowRoot.adoptedStyleSheets=n:"#document"===e.nodeName&&(e.adoptedStyleSheets=n),n.length!==t.length&&r<10&&(setTimeout((()=>i(e,t)),0+100*r),r++)};i(n,e.styleIds)}legacy_resolveMissingNode(e,t,n,r){const{previousId:i,nextId:o}=r,s=i&&e[i],a=o&&e[o];if(s){const{node:r,mutation:i}=s;t.insertBefore(r,n),delete e[i.node.id],delete this.legacy_missingNodeRetryMap[i.node.id],(i.previousId||i.nextId)&&this.legacy_resolveMissingNode(e,t,r,i)}if(a){const{node:r,mutation:i}=a;t.insertBefore(r,n.nextSibling),delete e[i.node.id],delete this.legacy_missingNodeRetryMap[i.node.id],(i.previousId||i.nextId)&&this.legacy_resolveMissingNode(e,t,r,i)}}moveAndHover(e,t,n,r,i){const o=this.mirror.getNode(n);if(!o)return this.debugNodeNotFound(i,n);const s=il(o,this.iframe),a=e*s.absoluteScale+s.x,l=t*s.absoluteScale+s.y;this.mouse.style.left=`${a}px`,this.mouse.style.top=`${l}px`,r||this.drawMouseTail({x:a,y:l}),this.hoverElements(o)}drawMouseTail(e){if(!this.mouseTail)return;const{lineCap:t,lineWidth:n,strokeStyle:r,duration:i}=!0===this.config.mouseTail?Jl:Object.assign({},Jl,this.config.mouseTail),o=()=>{if(!this.mouseTail)return;const e=this.mouseTail.getContext("2d");e&&this.tailPositions.length&&(e.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),e.beginPath(),e.lineWidth=n,e.lineCap=t,e.strokeStyle=r,e.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach((t=>e.lineTo(t.x,t.y))),e.stroke())};this.tailPositions.push(e),o(),setTimeout((()=>{this.tailPositions=this.tailPositions.filter((t=>t!==e)),o()}),i/this.speedService.state.context.timer.speed)}hoverElements(e){var t;null==(t=this.lastHoveredRootNode||this.iframe.contentDocument)||t.querySelectorAll(".\\:hover").forEach((e=>{e.classList.remove(":hover")})),this.lastHoveredRootNode=e.getRootNode();let n=e;for(;n;)n.classList&&n.classList.add(":hover"),n=n.parentElement}isUserInteraction(e){return e.type===cl.IncrementalSnapshot&&(e.data.source>ul.Mutation&&e.data.source<=ul.Input)}backToNormal(){this.nextUserInteractionEvent=null,this.speedService.state.matches("normal")||(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(fl.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(e,t){this.warn(`Node with id '${t}' not found. `,e)}warnCanvasMutationFailed(e,t){this.warn("Has error on canvas update",t,"canvas mutation:",e)}debugNodeNotFound(e,t){this.debug(`Node with id '${t}' not found. `,e)}warn(...e){this.config.showWarning&&this.config.logger.warn(Kl,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(Kl,...e)}}},94927:(e,t,n)=>{"use strict";n.d(t,{MG:()=>x});var r=n(2784),i=n(28316);function o(e,t,n){let r,i=n.initialDeps??[];function o(){var o,s,a,l;let c;n.key&&(null==(o=n.debug)?void 0:o.call(n))&&(c=Date.now());const u=e();if(!(u.length!==i.length||u.some(((e,t)=>i[t]!==e))))return r;let d;if(i=u,n.key&&(null==(s=n.debug)?void 0:s.call(n))&&(d=Date.now()),r=t(...u),n.key&&(null==(a=n.debug)?void 0:a.call(n))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-d))/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(l=null==n?void 0:n.onChange)||l.call(n,r),r}return o.updateDeps=e=>{i=e},o}function s(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const a=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout((()=>t.apply(this,i)),n)}},l=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},c=e=>e,u=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},d=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(l(n)),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver((t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void i({width:t.inlineSize,height:t.blockSize})}i(l(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()}));return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},h={passive:!0},p="undefined"==typeof window||"onscrollend"in window,f=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&p?()=>{}:a(r,(()=>{t(i,!1)}),e.options.isScrollingResetDelay),s=r=>()=>{const{horizontal:s,isRtl:a}=e.options;i=s?n.scrollLeft*(a?-1:1):n.scrollTop,o(),t(i,r)},l=s(!0),c=s(!1);c(),n.addEventListener("scroll",l,h);const u=e.options.useScrollendEvent&&p;return u&&n.addEventListener("scrollend",c,h),()=>{n.removeEventListener("scroll",l),u&&n.removeEventListener("scrollend",c)}},m=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},g=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;const s=e+t;null==(o=null==(i=r.scrollElement)?void 0:i.scrollTo)||o.call(i,{[r.options.horizontal?"left":"top"]:s,behavior:n})};class v{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver((e=>{e.forEach((e=>{const t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()}))})):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach((([t,n])=>{void 0===n&&delete e[t]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:c,rangeExtractor:u,onChange:()=>{},measureElement:m,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=o((()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null])),(e=>{this.notify(e)}),{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((e=>e())),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach((e=>{this.observer.observe(e)})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,(e=>{this.scrollRect=e,this.maybeNotify()}))),this.unsubs.push(this.options.observeElementOffset(this,((e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let i=t-1;i>=0;i--){const t=e[i];if(n.has(t.lane))continue;const o=r.get(t.lane);if(null==o||t.end>o.end?r.set(t.lane,t):t.end<o.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort(((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end))[0]:void 0},this.getMeasurementOptions=o((()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled]),((e,t,n,r,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i})),{key:!1}),this.getMeasurements=o((()=>[this.getMeasurementOptions(),this.itemSizeCache]),(({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i},o)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((e=>{this.itemSizeCache.set(e.key,e.size)})));const s=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const a=this.measurementsCache.slice(0,s);for(let i=s;i<e;i++){const e=r(i),s=1===this.options.lanes?a[i-1]:this.getFurthestMeasurement(a,i),l=s?s.end+this.options.gap:t+n,c=o.get(e),u="number"==typeof c?c:this.options.estimateSize(i),d=l+u,h=s?s.lane:i%this.options.lanes;a[i]={index:i,start:l,size:u,end:d,key:e,lane:h}}return this.measurementsCache=a,a}),{key:!1,debug:()=>this.options.debug}),this.calculateRange=o((()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes]),((e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,o=t=>e[t].start;if(e.length<=r)return{startIndex:0,endIndex:i};let s=y(0,i,o,n),a=s;if(1===r)for(;a<i&&e[a].end<n+t;)a++;else if(r>1){const o=Array(r).fill(0);for(;a<i&&o.some((e=>e<n+t));){const t=e[a];o[t.lane]=t.end,a++}const l=Array(r).fill(n+t);for(;s>=0&&l.some((e=>e>=n));){const t=e[s];l[t.lane]=t.start,s--}s=Math.max(0,s-s%r),a=Math.min(i,a+(r-1-a%r))}return{startIndex:s,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=o((()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]}),((e,t,n,r,i)=>null===r||null===i?[]:e({startIndex:r,endIndex:i,overscan:t,count:n})),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;const i=r.key,o=this.elementsCache.get(i);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const n=this.measurementsCache[e];if(!n)return;const r=t-(this.itemSizeCache.get(n.key)??n.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach(((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))}))},this.getVirtualItems=o((()=>[this.getVirtualIndexes(),this.getMeasurements()]),((e,t)=>{const n=[];for(let r=0,i=e.length;r<i;r++){const i=t[e[r]];n.push(i)}return n}),{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return s(t[y(0,t.length-1,(e=>s(t[e]).start),e)])},this.getOffsetForAlignment=(e,t,n=0)=>{const r=this.getSize(),i=this.getScrollOffset();"auto"===t&&(t=e>=i+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const o=this.getTotalSize()-r;return Math.max(Math.min(o,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.measurementsCache[e];if(!n)return;const r=this.getSize(),i=this.getScrollOffset();if("auto"===t)if(n.end>=i+r-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=i+this.options.scrollPaddingStart))return[i,t];t="start"}const o="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const r=this.getOffsetForIndex(e,t);if(!r)return;const[i,o]=r;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout((()=>{this.scrollToIndexTimeoutId=null;if(this.elementsCache.has(this.options.getItemKey(e))){const[i]=s(this.getOffsetForIndex(e,o)),a=this.getScrollOffset();t=i,r=a,Math.abs(t-r)<=1||this.scrollToIndex(e,{align:o,behavior:n})}else this.scrollToIndex(e,{align:o,behavior:n});var t,r})))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes)n=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some((e=>null===e));){const n=t[r];null===e[n.lane]&&(e[n.lane]=n.end),r--}n=Math.max(...e.filter((e=>null!==e)))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const y=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(o<r)e=i+1;else{if(!(o>r))return i;t=i-1}}return e>0?e-1:0};const b="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function w(e){const t=r.useReducer((()=>({})),{})[1],n={...e,onChange:(n,r)=>{var o;r?(0,i.flushSync)(t):t(),null==(o=e.onChange)||o.call(e,n,r)}},[o]=r.useState((()=>new v(n)));return o.setOptions(n),b((()=>o._didMount()),[]),b((()=>o._willUpdate())),o}function x(e){return w({observeElementRect:d,observeElementOffset:f,scrollToFn:g,...e})}}}]);
|